Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AddressesFlags = []cli.Flag{ &cli.StringFlag{ Name: "address-manager-address", Usage: "AddressManager address", EnvVars: []string{"ADDRESS_MANAGER_ADDRESS"}, }, &cli.StringFlag{ Name: "patex-portal-address", Usage: "PatexPortal address", EnvVars: []string{"PATEX_PORTAL_ADDRESS"}, }, &cli.StringFlag{ Name: "l1-standard-bridge-address", Usage: "L1StandardBridge address", EnvVars: []string{"L1_STANDARD_BRIDGE_ADDRESS"}, }, &cli.StringFlag{ Name: "l1-crossdomain-messenger-address", Usage: "L1CrossDomainMessenger address", EnvVars: []string{"L1_CROSSDOMAIN_MESSENGER_ADDRESS"}, }, &cli.StringFlag{ Name: "canonical-transaction-chain-address", Usage: "CanonicalTransactionChain address", EnvVars: []string{"CANONICAL_TRANSACTION_CHAIN_ADDRESS"}, }, &cli.StringFlag{ Name: "state-commitment-chain-address", Usage: "StateCommitmentChain address", EnvVars: []string{"STATE_COMMITMENT_CHAIN_ADDRESS"}, }, }
AddressesFlags represent the flags associated with address parsing.
var ClientsFlags = []cli.Flag{ &cli.StringFlag{ Name: "l1-rpc-url", Required: true, Usage: "L1 RPC URL", EnvVars: []string{"L1_RPC_URL"}, }, &cli.StringFlag{ Name: "l2-rpc-url", Required: true, Usage: "L2 RPC URL", EnvVars: []string{"L2_RPC_URL"}, }, }
ClientsFlags represent the flags associated with creating RPC clients.
Functions ¶
func IterateState ¶
func PartitionKeyspace ¶
PartitionKeyspace divides the key space into partitions by dividing the maximum keyspace by count then multiplying by i. This will leave some slots left over, which we handle below. It returns the start and end keys for the partition as a common.Hash. Note that the returned range of keys is inclusive, i.e., [start, end] NOT [start, end).
func ProgressLogger ¶
Types ¶
type Addresses ¶
type Addresses struct { AddressManager common.Address PatexPortal common.Address L1StandardBridge common.Address L1CrossDomainMessenger common.Address CanonicalTransactionChain common.Address StateCommitmentChain common.Address }
Addresses represents the address values of various contracts. The values can be easily populated via a cli.Context.
func NewAddresses ¶
NewAddresses populates an Addresses struct given a cli.Context. This is useful for writing scripts that interact with smart contracts.
type Clients ¶
type Clients struct { L1Client *ethclient.Client L2Client *ethclient.Client L1RpcClient *rpc.Client L2RpcClient *rpc.Client L1GethClient *gethclient.Client L2GethClient *gethclient.Client }
clients represents a set of initialized RPC clients
func NewClients ¶
NewClients will create new RPC clients from a CLI context