Documentation ¶
Index ¶
- type Client
- type DebugClient
- type EthClient
- type RpcClient
- func (c *RpcClient) BundlerClearState(ctx context.Context) error
- func (c *RpcClient) BundlerDumpMempool(ctx context.Context, entryPoint common.Address) ([]*userop.UserOperation, error)
- func (c *RpcClient) BundlerSendBundleNow(ctx context.Context) (*common.Hash, error)
- func (c *RpcClient) BundlerSetBundlingMode(ctx context.Context, mode string) error
- func (c *RpcClient) ChainId(ctx context.Context) (*big.Int, error)
- func (c *RpcClient) EstimateUserOperationGas(ctx context.Context, op *userop.UserOperation, entryPoint common.Address) (*gas.GasEstimates, error)
- func (c *RpcClient) GetUserOperationByHash(ctx context.Context, userOpHash common.Hash) (*filter.HashLookupResult, error)
- func (c *RpcClient) GetUserOperationReceipt(ctx context.Context, userOpHash common.Hash) (*filter.UserOperationReceipt, error)
- func (c *RpcClient) SendUserOperation(ctx context.Context, op *userop.UserOperation, entryPoint common.Address) (common.Hash, error)
- func (c *RpcClient) SupportedEntryPoints(ctx context.Context) ([]common.Address, error)
- type UserOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { EthClient DebugClient }
type DebugClient ¶
type DebugClient interface { BundlerClearState(ctx context.Context) error BundlerDumpMempool(ctx context.Context, entryPoint common.Address) ([]*userop.UserOperation, error) BundlerSendBundleNow(ctx context.Context) (*common.Hash, error) BundlerSetBundlingMode(ctx context.Context, mode string) error }
type EthClient ¶
type EthClient interface { SendUserOperation(ctx context.Context, op *userop.UserOperation, entryPoint common.Address) (common.Hash, error) EstimateUserOperationGas(ctx context.Context, op *userop.UserOperation, entryPoint common.Address) (*gas.GasEstimates, error) GetUserOperationReceipt(ctx context.Context, userOpHash common.Hash) (*filter.UserOperationReceipt, error) GetUserOperationByHash(ctx context.Context, userOpHash common.Hash) (*filter.HashLookupResult, error) SupportedEntryPoints(ctx context.Context) ([]common.Address, error) ChainId(ctx context.Context) (*big.Int, error) }
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func (*RpcClient) BundlerClearState ¶
func (*RpcClient) BundlerDumpMempool ¶
func (*RpcClient) BundlerSendBundleNow ¶
func (*RpcClient) BundlerSetBundlingMode ¶
func (*RpcClient) EstimateUserOperationGas ¶
func (c *RpcClient) EstimateUserOperationGas(ctx context.Context, op *userop.UserOperation, entryPoint common.Address) (*gas.GasEstimates, error)
func (*RpcClient) GetUserOperationByHash ¶
func (*RpcClient) GetUserOperationReceipt ¶
func (*RpcClient) SendUserOperation ¶
type UserOperation ¶
type UserOperation struct { Sender common.Address `json:"sender"` Nonce *hexutil.Big `json:"nonce"` InitCode hexutil.Bytes `json:"initCode"` CallData hexutil.Bytes `json:"callData"` CallGasLimit *hexutil.Big `json:"callGasLimit"` VerificationGasLimit *hexutil.Big `json:"verificationGasLimit"` PreVerificationGas *hexutil.Big `json:"preVerificationGas"` MaxFeePerGas *hexutil.Big `json:"maxFeePerGas"` MaxPriorityFeePerGas *hexutil.Big `json:"maxPriorityFeePerGas"` PaymasterAndData hexutil.Bytes `json:"paymasterAndData"` Signature hexutil.Bytes `json:"signature"` }
func (*UserOperation) ToUserOperation ¶
func (uo *UserOperation) ToUserOperation() *userop.UserOperation
Click to show internal directories.
Click to hide internal directories.