Structs§
- Cluster
- Executor
Cluster - Network
Cluster - Retention
Config - Represents the default retention policy and overrides for prunable tables. Instantiated only if
PruningOptionsis provided on indexer start. - Snapshot
LagConfig
Functions§
- prep_
executor_ cluster - serve_
executor - Takes in a simulated instantiation of a Sui blockchain and builds a cluster around it. This cluster is typically used in e2e tests to emulate and test behaviors.
- start_
cluster - Starts a validator, fullnode, indexer, and graphql service for testing.
- start_
graphql_ server - start_
graphql_ server_ with_ fn_ rpc - start_
network_ cluster - Starts a validator, fullnode, indexer (using data ingestion). Re-using GraphQL’s ConnectionConfig for convenience.
This does not start any GraphQL services, only the network cluster. You can start a GraphQL service
calling
start_graphql_server. - wait_
for_ graphql_ checkpoint_ catchup - Ping the GraphQL server until its background task has updated the checkpoint watermark to the desired checkpoint.
- wait_
for_ graphql_ checkpoint_ pruned - Ping the GraphQL server for a checkpoint until an empty response is returned, indicating that the checkpoint has been pruned.
- wait_
for_ graphql_ epoch_ catchup - Ping the GraphQL server until its background task has updated the checkpoint watermark to the desired checkpoint.
- wait_
for_ graphql_ server - Repeatedly ping the GraphQL server for 60s, until it responds