Documentation ¶
Index ¶
- type EthWallet
- func (w *EthWallet) ExecuteAndQueue(runTransaction func(*bind.TransactOpts) (*types.Transaction, error)) (*types.Transaction, error)
- func (w *EthWallet) ExecuteAndWait(runTransaction func(*bind.TransactOpts) (*types.Transaction, error)) error
- func (w *EthWallet) GetNextNonce() uint64
- func (w *EthWallet) GetTransactOpts() *bind.TransactOpts
- func (w *EthWallet) WaitForQueue() []error
- type VegaWallet
- func (vw *VegaWallet) DeriveKeyPair() (*VegaWallet, error)
- func (vw *VegaWallet) SignAny(data []byte) ([]byte, string, error)
- func (vw *VegaWallet) SignTx(req *walletpb.SubmitTransactionRequest, height uint64, chainID string) (*commandspb.Transaction, error)
- func (vw *VegaWallet) SignTxWithPoW(req *walletpb.SubmitTransactionRequest, ...) (*commandspb.Transaction, error)
- type WalletManager
- func (wm *WalletManager) GetAssetMainEthWallet(ethNetwork types.ETHNetwork) (*EthWallet, error)
- func (wm *WalletManager) GetEthWhaleWallet(ethNetwork types.ETHNetwork) (*EthWallet, error)
- func (wm *WalletManager) GetNetworkMainEthWallet(ethNetwork types.ETHNetwork, vegaNetwork string) (*EthWallet, error)
- func (wm *WalletManager) GetVegaTokenWhaleVegaWallet() (*VegaWallet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthWallet ¶
type EthWallet struct { *secrets.EthereumWalletPrivate HexAddress string Address common.Address // contains filtered or unexported fields }
func NewEthWallet ¶
func (*EthWallet) ExecuteAndQueue ¶
func (w *EthWallet) ExecuteAndQueue(runTransaction func(*bind.TransactOpts) (*types.Transaction, error)) (*types.Transaction, error)
func (*EthWallet) ExecuteAndWait ¶
func (w *EthWallet) ExecuteAndWait(runTransaction func(*bind.TransactOpts) (*types.Transaction, error)) error
func (*EthWallet) GetNextNonce ¶
func (*EthWallet) GetTransactOpts ¶
func (w *EthWallet) GetTransactOpts() *bind.TransactOpts
func (*EthWallet) WaitForQueue ¶
type VegaWallet ¶
type VegaWallet struct { *secrets.VegaWalletPrivate // contains filtered or unexported fields }
func GetVegaWalletSingleton ¶ added in v0.73.9
func GetVegaWalletSingleton( recoveryPhrase string, index uint32, ) (*VegaWallet, error)
func GetWalletForPubKey ¶ added in v0.73.9
func GetWalletForPubKey(pubKey string) *VegaWallet
func NewVegaWallet ¶
func NewVegaWallet( private *secrets.VegaWalletPrivate, ) (*VegaWallet, error)
func (*VegaWallet) DeriveKeyPair ¶
func (vw *VegaWallet) DeriveKeyPair() (*VegaWallet, error)
func (*VegaWallet) SignTx ¶
func (vw *VegaWallet) SignTx(req *walletpb.SubmitTransactionRequest, height uint64, chainID string) (*commandspb.Transaction, error)
func (*VegaWallet) SignTxWithPoW ¶
func (vw *VegaWallet) SignTxWithPoW(req *walletpb.SubmitTransactionRequest, lastBlockData *vegaapipb.LastBlockHeightResponse) (*commandspb.Transaction, error)
type WalletManager ¶
type WalletManager struct {
// contains filtered or unexported fields
}
func NewWalletManager ¶
func NewWalletManager( ethClientManager *ethutils.EthereumClientManager, walletSecretStore secrets.WalletSecretStore, ) *WalletManager
func (*WalletManager) GetAssetMainEthWallet ¶
func (wm *WalletManager) GetAssetMainEthWallet(ethNetwork types.ETHNetwork) (*EthWallet, error)
func (*WalletManager) GetEthWhaleWallet ¶
func (wm *WalletManager) GetEthWhaleWallet(ethNetwork types.ETHNetwork) (*EthWallet, error)
func (*WalletManager) GetNetworkMainEthWallet ¶
func (wm *WalletManager) GetNetworkMainEthWallet( ethNetwork types.ETHNetwork, vegaNetwork string, ) (*EthWallet, error)
func (*WalletManager) GetVegaTokenWhaleVegaWallet ¶
func (wm *WalletManager) GetVegaTokenWhaleVegaWallet() (*VegaWallet, error)
Click to show internal directories.
Click to hide internal directories.