Documentation ¶
Index ¶
- Constants
- type BundlerWalletDetails
- type DevAccount
- type PreDeployedContracts
- type Wallet
- func (w *Wallet) GetBundlerWalletDetails() BundlerWalletDetails
- func (w *Wallet) GetDevAccounts(ctx context.Context) ([]DevAccount, error)
- func (w *Wallet) GetEthClient() *ethclient.Client
- func (w *Wallet) GetGethClient() *gethclient.Client
- func (w *Wallet) GetKeyStoreAccounts() []common.Address
- func (w *Wallet) GetPreDeployedContracts() PreDeployedContracts
Constants ¶
const DefaultSeedPhrase = "test test test test test test test test test test test junk"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundlerWalletDetails ¶
type BundlerWalletDetails struct { Beneficiary common.Address Mnemonic string EntryPointAddress common.Address }
BundlerWalletDetails contains the details of the bundler wallet
type DevAccount ¶
type DevAccount struct { Address common.Address PublicKey *ecdsa.PublicKey PrivateKey *ecdsa.PrivateKey PrivateKeyHex string Balance *big.Int }
DevAccount contains the details of the default development account
func GenerateAccountsFromSeed ¶
func GenerateAccountsFromSeed(seedPhrase string, numAccounts int) ([]DevAccount, error)
generateAccountsFromSeed generates a number of accounts from a seed phrase
type PreDeployedContracts ¶
type PreDeployedContracts struct { EntryPointAddress common.Address SimpleAccountFactoryAddress common.Address GlobalCounterAddress common.Address }
PreDeployedContracts contains the pre-deployed contracts
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
Wallet contains the details of the wallet for Betsy
func NewWallet ¶
func NewWallet(ctx context.Context, ethNodePort string, coinbaseKeystoreFile string) (*Wallet, error)
NewWallet creates a new wallet for Betsy
func (*Wallet) GetBundlerWalletDetails ¶
func (w *Wallet) GetBundlerWalletDetails() BundlerWalletDetails
GetBundlerWalletDetails returns the details of the bundler wallet
func (*Wallet) GetDevAccounts ¶
func (w *Wallet) GetDevAccounts(ctx context.Context) ([]DevAccount, error)
GetDevAccounts returns the default development accounts
func (*Wallet) GetEthClient ¶
GetEthClient returns the Ethereum client
func (*Wallet) GetGethClient ¶
func (w *Wallet) GetGethClient() *gethclient.Client
GetGethClient returns the Geth client
func (*Wallet) GetKeyStoreAccounts ¶
GetKeyStoreAccounts returns all the accounts in the keystore
func (*Wallet) GetPreDeployedContracts ¶
func (w *Wallet) GetPreDeployedContracts() PreDeployedContracts
GetPreDeployedContracts returns the pre-deployed contracts