Documentation ¶
Index ¶
- Constants
- func GetCheckpointConfirmBatch(txBatch *types.OutgoingTxBatch, gravityIDStr string) ([]byte, error)
- func GetCheckpointOracleSet(oracleSet *types.OracleSet, gravityIDStr string) ([]byte, error)
- func NewTronSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func TronAddressFromSignature(hash []byte, signature []byte) (string, error)
- func ValidateExternalAddress(addr string) error
- func ValidateTronSignature(hash []byte, signature []byte, ethAddress string) error
- type MsgValidateBasic
- func (b MsgValidateBasic) MsgBridgeTokenClaimValidate(m crosschaintype.MsgBridgeTokenClaim) (err error)
- func (b MsgValidateBasic) MsgConfirmBatchValidate(m crosschaintype.MsgConfirmBatch) (err error)
- func (b MsgValidateBasic) MsgOracleSetConfirmValidate(m crosschaintype.MsgOracleSetConfirm) (err error)
- func (b MsgValidateBasic) MsgOracleSetUpdatedClaimValidate(m crosschaintype.MsgOracleSetUpdatedClaim) (err error)
- func (b MsgValidateBasic) MsgRequestBatchValidate(m crosschaintype.MsgRequestBatch) (err error)
- func (b MsgValidateBasic) MsgSendToExternalClaimValidate(m crosschaintype.MsgSendToExternalClaim) (err error)
- func (b MsgValidateBasic) MsgSendToExternalValidate(m crosschaintype.MsgSendToExternal) (err error)
- func (b MsgValidateBasic) MsgSendToFxClaimValidate(m crosschaintype.MsgSendToFxClaim) (err error)
- func (b MsgValidateBasic) MsgSetOrchestratorAddressValidate(m crosschaintype.MsgSetOrchestratorAddress) (err error)
Constants ¶
View Source
const ( // ModuleName is the name of the module ModuleName = "tron" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // QuerierRoute to be used for querier msgs QuerierRoute = ModuleName )
View Source
const ExternalContractAddressLen = 34
ExternalContractAddressLen is the length of contract address strings
Variables ¶
This section is empty.
Functions ¶
func GetCheckpointConfirmBatch ¶
func GetCheckpointConfirmBatch(txBatch *types.OutgoingTxBatch, gravityIDStr string) ([]byte, error)
func GetCheckpointOracleSet ¶
GetCheckpointOracleSet returns the checkpoint
func NewTronSignature ¶
func NewTronSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)
NewTronSignature creates a new signuature over a given byte array
func ValidateExternalAddress ¶
ValidateExternalAddress validates the ethereum address strings
Types ¶
type MsgValidateBasic ¶
type MsgValidateBasic struct {
crosschaintype.EthereumMsgValidateBasic
}
MsgValidateBasic
func (MsgValidateBasic) MsgBridgeTokenClaimValidate ¶
func (b MsgValidateBasic) MsgBridgeTokenClaimValidate(m crosschaintype.MsgBridgeTokenClaim) (err error)
func (MsgValidateBasic) MsgConfirmBatchValidate ¶
func (b MsgValidateBasic) MsgConfirmBatchValidate(m crosschaintype.MsgConfirmBatch) (err error)
func (MsgValidateBasic) MsgOracleSetConfirmValidate ¶
func (b MsgValidateBasic) MsgOracleSetConfirmValidate(m crosschaintype.MsgOracleSetConfirm) (err error)
func (MsgValidateBasic) MsgOracleSetUpdatedClaimValidate ¶
func (b MsgValidateBasic) MsgOracleSetUpdatedClaimValidate(m crosschaintype.MsgOracleSetUpdatedClaim) (err error)
func (MsgValidateBasic) MsgRequestBatchValidate ¶
func (b MsgValidateBasic) MsgRequestBatchValidate(m crosschaintype.MsgRequestBatch) (err error)
func (MsgValidateBasic) MsgSendToExternalClaimValidate ¶
func (b MsgValidateBasic) MsgSendToExternalClaimValidate(m crosschaintype.MsgSendToExternalClaim) (err error)
func (MsgValidateBasic) MsgSendToExternalValidate ¶
func (b MsgValidateBasic) MsgSendToExternalValidate(m crosschaintype.MsgSendToExternal) (err error)
func (MsgValidateBasic) MsgSendToFxClaimValidate ¶
func (b MsgValidateBasic) MsgSendToFxClaimValidate(m crosschaintype.MsgSendToFxClaim) (err error)
func (MsgValidateBasic) MsgSetOrchestratorAddressValidate ¶
func (b MsgValidateBasic) MsgSetOrchestratorAddressValidate(m crosschaintype.MsgSetOrchestratorAddress) (err error)
Click to show internal directories.
Click to hide internal directories.