Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { WriteAdapter QueryAdapter }
Adapter is a type that helps facilitate communication with the EVM base shard.
func NewAdapter ¶
func NewAdapter(cfg AdapterConfig, opts ...Option) (Adapter, error)
type AdapterConfig ¶
type QueryAdapter ¶
type QueryAdapter interface { // QueryTransactions queries transactions stored on-chain. This is primarily used to rebuild state during world // recovery. QueryTransactions( context.Context, *shardtypes.QueryTransactionsRequest) (*shardtypes.QueryTransactionsResponse, error) }
QueryAdapter provides the functionality to query transactions from the EVM base shard.
type WriteAdapter ¶
type WriteAdapter interface { // Submit submits a transaction to the EVM base shard's game tx sequencer, where the tx data will be sequenced and // stored on chain. Submit(ctx context.Context, p *sign.Transaction, txID, epoch uint64) error }
WriteAdapter provides the functionality to send transactions to the EVM base shard.
Click to show internal directories.
Click to hide internal directories.