Documentation ¶
Index ¶
- Variables
- type Mgr
- func (mgr Mgr) ProcessDepositConfirmation(event *types.ConfirmDepositStarted) error
- func (mgr Mgr) ProcessGatewayTxConfirmation(event *types.ConfirmGatewayTxStarted) error
- func (mgr Mgr) ProcessNewChain(event *types.ChainAdded) (err error)
- func (mgr Mgr) ProcessTokenConfirmation(event *types.ConfirmTokenStarted) error
- func (mgr Mgr) ProcessTransferKeyConfirmation(event *types.ConfirmKeyTransferStarted) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERC20TransferSig = crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)")) ERC20TokenDeploymentSig = crypto.Keccak256Hash([]byte("TokenDeployed(string,address)")) MultisigTransferOperatorshipSig = crypto.Keccak256Hash([]byte("OperatorshipTransferred(bytes)")) ContractCallSig = crypto.Keccak256Hash([]byte("ContractCall(address,string,string,bytes32,bytes)")) ContractCallWithTokenSig = crypto.Keccak256Hash([]byte("ContractCallWithToken(address,string,string,bytes32,bytes,string,uint256)")) TokenSentSig = crypto.Keccak256Hash([]byte("TokenSent(address,string,string,string,uint256)")) )
Smart contract event signatures
Functions ¶
This section is empty.
Types ¶
type Mgr ¶
type Mgr struct {
// contains filtered or unexported fields
}
Mgr manages all communication with Ethereum
func NewMgr ¶
func NewMgr(rpcs map[string]rpc.Client, cliCtx sdkClient.Context, broadcaster broadcast.Broadcaster, logger tmLog.Logger, cdc *codec.LegacyAmino, valAddr sdk.ValAddress) *Mgr
NewMgr returns a new Mgr instance
func (Mgr) ProcessDepositConfirmation ¶
func (mgr Mgr) ProcessDepositConfirmation(event *types.ConfirmDepositStarted) error
ProcessDepositConfirmation votes on the correctness of an EVM chain token deposit
func (Mgr) ProcessGatewayTxConfirmation ¶
func (mgr Mgr) ProcessGatewayTxConfirmation(event *types.ConfirmGatewayTxStarted) error
ProcessGatewayTxConfirmation votes on the correctness of an EVM chain gateway's transactions
func (Mgr) ProcessNewChain ¶
func (mgr Mgr) ProcessNewChain(event *types.ChainAdded) (err error)
ProcessNewChain notifies the operator that vald needs to be restarted/udpated for a new chain
func (Mgr) ProcessTokenConfirmation ¶
func (mgr Mgr) ProcessTokenConfirmation(event *types.ConfirmTokenStarted) error
ProcessTokenConfirmation votes on the correctness of an EVM chain token deployment
func (Mgr) ProcessTransferKeyConfirmation ¶
func (mgr Mgr) ProcessTransferKeyConfirmation(event *types.ConfirmKeyTransferStarted) error
ProcessTransferKeyConfirmation votes on the correctness of an EVM chain key transfer
Click to show internal directories.
Click to hide internal directories.