Documentation
¶
Index ¶
- Variables
- func WaitForTransaction(ctx context.Context, ethClient *ethclient.Client, tx *types.Transaction, ...) error
- type ChainClient
- func NewChainClientForID(ctx context.Context, cfg config.Config, networkParams *types.NetworkParams, ...) (*ChainClient, error)
- func NewEVMChainClient(ctx context.Context, cfg config.EVMBridge, ethConfig *vega.EVMBridgeConfigs, ...) (*ChainClient, error)
- func NewPrimaryChainClient(ctx context.Context, cfg config.PrimaryBridge, ethConfig *vega.EthereumConfig, ...) (*ChainClient, error)
- func (c *ChainClient) DepositERC20AssetFromAddress(ctx context.Context, minterPrivateHexKey string, ...) error
- func (c *ChainClient) DepositERC20AssetFromMinter(ctx context.Context, assetContractHexAddress string, ...) error
- func (c *ChainClient) EthClient() *ethclient.Client
- func (c *ChainClient) ID() string
- func (c *ChainClient) ListAsset(ctx context.Context, signers []*Wallet, assetID, assetHexAddress string, ...) error
- func (c *ChainClient) RemoveMinterStake(ctx context.Context, partyPubKey string) error
- func (c *ChainClient) Signers(ctx context.Context) ([]common.Address, error)
- func (c *ChainClient) StakeFromMinter(ctx context.Context, stakes map[string]*types.Amount) error
- type ChainsClient
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSignerFound = errors.New("no signer found") ErrStakingBridgeDisabled = errors.New("staking bridge is disabled for this client") )
Functions ¶
Types ¶
type ChainClient ¶
type ChainClient struct {
// contains filtered or unexported fields
}
func NewChainClientForID ¶
func NewEVMChainClient ¶
func NewEVMChainClient(ctx context.Context, cfg config.EVMBridge, ethConfig *vega.EVMBridgeConfigs, logger *zap.Logger) (*ChainClient, error)
func NewPrimaryChainClient ¶
func NewPrimaryChainClient(ctx context.Context, cfg config.PrimaryBridge, ethConfig *vega.EthereumConfig, logger *zap.Logger) (*ChainClient, error)
func (*ChainClient) DepositERC20AssetFromAddress ¶
func (*ChainClient) DepositERC20AssetFromMinter ¶
func (*ChainClient) EthClient ¶
func (c *ChainClient) EthClient() *ethclient.Client
func (*ChainClient) ID ¶
func (c *ChainClient) ID() string
func (*ChainClient) RemoveMinterStake ¶
func (c *ChainClient) RemoveMinterStake(ctx context.Context, partyPubKey string) error
func (*ChainClient) StakeFromMinter ¶
type ChainsClient ¶
type ChainsClient struct {
PrimaryChain *ChainClient
EVMChain *ChainClient
}
func NewChainClients ¶
func NewChainClients(ctx context.Context, cfg config.Config, networkParams *types.NetworkParams, logger *zap.Logger) (*ChainsClient, error)
Click to show internal directories.
Click to hide internal directories.