Documentation ¶
Index ¶
- Constants
- func BuildClient(t *testing.T, rpcURL, bundlerURL url.URL, addresses Contracts, ...) userop.Client
- func SendNative(ctx context.Context, node *EthNode, from, to Account, fundAmount *big.Int) error
- func SetupPaymaster(ctx context.Context, t *testing.T, node *EthNode, bundler *BundlerNode) *url.URL
- func WaitMined(ctx context.Context, node *EthNode, tx *types.Transaction) (*types.Receipt, error)
- type Account
- type BundlerNode
- type Contracts
- type EthNode
- type MockedClient
Constants ¶
View Source
const ENTRY_POINT_ADDRESS_V06 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
These addresses are hardcoded in the Paymaster contract and determined by CREATE2
Variables ¶
This section is empty.
Functions ¶
func BuildClient ¶ added in v0.0.118
func SendNative ¶ added in v0.0.40
func SetupPaymaster ¶ added in v0.0.118
Types ¶
type Account ¶
type Account struct { PrivateKey *ecdsa.PrivateKey Address common.Address TransactOpts *bind.TransactOpts }
type BundlerNode ¶
type BundlerNode struct { Container testcontainers.Container LocalURL url.URL ContainerURL url.URL }
func NewBundler ¶
type Contracts ¶
type EthNode ¶
type MockedClient ¶ added in v0.0.54
func (*MockedClient) SendTransaction ¶ added in v0.0.54
func (m *MockedClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
Click to show internal directories.
Click to hide internal directories.