Documentation ¶
Index ¶
- Variables
- func GenerateEthereumWallet(zetaPaths paths.Paths, registryPassphrase, walletPassphrase string, ...) (map[string]string, error)
- func GenerateZetaWallet(zetaPaths paths.Paths, registryPassphrase, walletPassphrase string, ...) (map[string]string, error)
- func GetEthereumWallet(zetaPaths paths.Paths, registryPassphrase string) (*eth.Wallet, error)
- func GetEthereumWalletWithRegistry(zetaPaths paths.Paths, reg *registry.Registry) (*eth.Wallet, error)
- func GetZetaWallet(zetaPaths paths.Paths, registryPassphrase string) (*zeta.Wallet, error)
- func ImportEthereumWallet(zetaPaths paths.Paths, ...) (map[string]string, error)
- func ImportTendermintPubkey(zetaPaths paths.Paths, registryPassphrase, pubkey string, overwrite bool) (map[string]string, error)
- func ImportZetaWallet(zetaPaths 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 GenerateZetaWallet ¶
func GetEthereumWallet ¶
func GetZetaWallet ¶
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 *zeta.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 { Zeta *zeta.Wallet Ethereum *eth.Wallet Tendermint *TendermintPubkey }
func GetNodeWallets ¶
func (*NodeWallets) SetEthereumWallet ¶
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.