wallet

package
v0.75.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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 NewEthWallet(
	ethClient *ethclient.Client,
	private *secrets.EthereumWalletPrivate,
) (*EthWallet, error)

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 (w *EthWallet) GetNextNonce() uint64

func (*EthWallet) GetTransactOpts

func (w *EthWallet) GetTransactOpts() *bind.TransactOpts

func (*EthWallet) WaitForQueue

func (w *EthWallet) WaitForQueue() []error

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) SignAny

func (vw *VegaWallet) SignAny(data []byte) ([]byte, string, error)

func (*VegaWallet) SignTx

func (vw *VegaWallet) SignTx(req *walletpb.SubmitTransactionRequest, height uint64, chainID string) (*commandspb.Transaction, error)

func (*VegaWallet) SignTxWithPoW

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL