types

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func GetCheckpointOracleSet(oracleSet *types.OracleSet, gravityIDStr string) ([]byte, error)

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 TronAddressFromSignature

func TronAddressFromSignature(hash []byte, signature []byte) (string, error)

func ValidateExternalAddress

func ValidateExternalAddress(addr string) error

ValidateExternalAddress validates the ethereum address strings

func ValidateTronSignature

func ValidateTronSignature(hash []byte, signature []byte, ethAddress string) error

ValidateTronSignature takes a message, an associated signature and public key and returns an error if the signature isn't valid

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL