Documentation ¶
Index ¶
- Variables
- func GenerateEthereumWallet(vegaPaths paths.Paths, registryPassphrase, walletPassphrase string, ...) (map[string]string, error)
- func GenerateVegaWallet(vegaPaths paths.Paths, registryPassphrase, walletPassphrase string, ...) (map[string]string, error)
- func GetEthereumWallet(vegaPaths paths.Paths, registryPassphrase string) (*eth.Wallet, error)
- func GetEthereumWalletWithRegistry(vegaPaths paths.Paths, reg *registry.Registry) (*eth.Wallet, error)
- func GetVegaWallet(vegaPaths paths.Paths, registryPassphrase string) (*vega.Wallet, error)
- func ImportEthereumWallet(vegaPaths paths.Paths, ...) (map[string]string, error)
- func ImportTendermintPubkey(vegaPaths paths.Paths, registryPassphrase, pubkey string, overwrite bool) (map[string]string, error)
- func ImportVegaWallet(vegaPaths paths.Paths, ...) (map[string]string, error)
- type BlockchainStats
- type Chain
- type Commander
- type Config
- type NodeWallets
- type TendermintPubkey
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateEthereumWallet ¶
func GenerateVegaWallet ¶
func GetEthereumWallet ¶
func GetEthereumWalletWithRegistry ¶ added in v0.56.0
func GetVegaWallet ¶
func ImportEthereumWallet ¶
func ImportTendermintPubkey ¶
Types ¶
type BlockchainStats ¶
type BlockchainStats interface {
Height() uint64
}
type Chain ¶
type Chain interface { SubmitTransactionSync(ctx context.Context, tx *commandspb.Transaction) (*tmctypes.ResultBroadcastTx, error) SubmitTransactionAsync(ctx context.Context, tx *commandspb.Transaction) (*tmctypes.ResultBroadcastTx, error) GetChainID(ctx context.Context) (string, error) }
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
func NewCommander ¶
func NewCommander(cfg Config, log *logging.Logger, bc Chain, w *vega.Wallet, bstats BlockchainStats) (*Commander, error)
NewCommander - used to sign and send transaction from core e.g. NodeRegistration, NodeVote chain argument can't be passed in cmd package, but is used for tests.
func (*Commander) Command ¶
func (c *Commander) Command(ctx context.Context, cmd txn.Command, payload proto.Message, done func(string, error), bo *backoff.ExponentialBackOff)
Command - send command to chain. Note: beware when passing in an exponential back off since the done function may be called many times.
func (*Commander) CommandSync ¶
func (*Commander) CommandWithPoW ¶
func (c *Commander) CommandWithPoW(ctx context.Context, cmd txn.Command, payload proto.Message, done func(string, error), bo *backoff.ExponentialBackOff, pow *commandspb.ProofOfWork)
type Config ¶
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
type NodeWallets ¶
type NodeWallets struct { Vega *vega.Wallet Ethereum *eth.Wallet Tendermint *TendermintPubkey }
func GetNodeWallets ¶
func (*NodeWallets) SetEthereumWallet ¶ added in v0.56.0
func (w *NodeWallets) SetEthereumWallet(ethWallet *eth.Wallet)
func (*NodeWallets) Verify ¶
func (w *NodeWallets) Verify() error
type TendermintPubkey ¶
type TendermintPubkey struct {
Pubkey string
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
clef/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.