chainbench
Advanced tools
| from locust import task | ||
| from chainbench.user.http import RpcCall | ||
| from chainbench.user.protocol.solana import SolanaUser | ||
| class GetProgramAccounts(SolanaUser): | ||
| @task | ||
| def get_program_accounts_shark_task(self) -> None: | ||
| self.make_rpc_call( | ||
| RpcCall( | ||
| method="getProgramAccounts", | ||
| params=[ | ||
| "SharkXwkS3h24fJ2LZvgG5tPbsH3BKQYuAtKdqskf1f", | ||
| {"encoding": "base64", "commitment": "confirmed"}, | ||
| ], | ||
| ), | ||
| name="getProgramAccounts_shark", | ||
| ) |
| from locust import task | ||
| from chainbench.user.http import RpcCall | ||
| from chainbench.user.protocol.solana import SolanaUser | ||
| class GetProgramAccounts(SolanaUser): | ||
| @task | ||
| def get_program_accounts_stake_task(self) -> None: | ||
| self.make_rpc_call( | ||
| RpcCall( | ||
| method="getProgramAccounts", | ||
| params=[ | ||
| "Stake11111111111111111111111111111111111111", | ||
| { | ||
| "encoding": "jsonParsed", | ||
| "commitment": "finalized", | ||
| "filters": [ | ||
| {"memcmp": {"bytes": "2K9XJAj3VtojUhyKdXVfGnueSvnyFNfSACkn1CwgBees", "offset": 12}} | ||
| ], | ||
| }, | ||
| ], | ||
| ), | ||
| name="getProgramAccounts_stake", | ||
| ) |
@@ -572,3 +572,3 @@ import re | ||
| def trace_replay_block_transactions_task(self) -> None: | ||
| self.make_rpc_call(self.trace_replay_transaction()) | ||
| self.make_rpc_call(self.trace_replay_block_transactions()) | ||
@@ -575,0 +575,0 @@ @tag("trace") |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: chainbench | ||
| Version: 0.7.4 | ||
| Version: 0.7.5 | ||
| Summary: | ||
@@ -5,0 +5,0 @@ Author: Egor Molodik |
+1
-1
| [tool.poetry] | ||
| name = "chainbench" | ||
| version = "0.7.4" | ||
| version = "0.7.5" | ||
| description = "" | ||
@@ -5,0 +5,0 @@ authors = [ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
289914
0.49%64
3.23%8404
0.45%