types

package
v1.66.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyUnknownLog = iota + 100
	TyEth2Chain33Log
	TyWithdrawEthLog
	TyWithdrawChain33Log
	TyChain33ToEthLog
	TyAddValidatorLog
	TyRemoveValidatorLog
	TyModifyPowerLog
	TySetConsensusThresholdLog
	TyProphecyLog
	TyTransferLog
	TyTransferToExecLog
	TyWithdrawFromExecLog
)

log for x2ethereum log类型id值

View Source
const (
	TyUnknowAction = iota + 100
	TyEth2Chain33Action
	TyWithdrawEthAction
	TyWithdrawChain33Action
	TyChain33ToEthAction
	TyAddValidatorAction
	TyRemoveValidatorAction
	TyModifyPowerAction
	TySetConsensusThresholdAction
	TyTransferAction
	TyTransferToExecAction
	TyWithdrawFromExecAction

	NameEth2Chain33Action           = "Eth2Chain33Lock"
	NameWithdrawEthAction           = "Eth2Chain33Burn"
	NameWithdrawChain33Action       = "Chain33ToEthBurn"
	NameChain33ToEthAction          = "Chain33ToEthLock"
	NameAddValidatorAction          = "AddValidator"
	NameRemoveValidatorAction       = "RemoveValidator"
	NameModifyPowerAction           = "ModifyPower"
	NameSetConsensusThresholdAction = "SetConsensusThreshold"
	NameTransferAction              = "Transfer"
	NameTransferToExecAction        = "TransferToExec"
	NameWithdrawFromExecAction      = "WithdrawFromExec"
)

action类型id和name,这些常量可以自定义修改

View Source
const (
	DirEth2Chain33  = "eth2chain33"
	DirChain33ToEth = "chain33toeth"
	LockClaim       = "lock"
	BurnClaim       = "burn"
)

direct ...

View Source
const (
	FuncQueryEthProphecy               = "GetEthProphecy"
	FuncQueryValidators                = "GetValidators"
	FuncQueryTotalPower                = "GetTotalPower"
	FuncQueryConsensusThreshold        = "GetConsensusThreshold"
	FuncQuerySymbolTotalAmountByTxType = "GetSymbolTotalAmountByTxType"
	FuncQueryRelayerBalance            = "GetRelayerBalance"
)

query function name

View Source
const (
	LockClaimType = int32(1)
	BurnClaimType = int32(2)
)

lock type

View Source
const DefaultConsensusNeeded = int64(70)

DefaultConsensusNeeded ...

Variables

View Source
var (
	ProphecyKey                         = []byte("prefix_for_Prophecy")
	Eth2Chain33Key                      = []byte("prefix_for_Eth2Chain33")
	WithdrawEthKey                      = []byte("prefix_for_WithdrawEth")
	Chain33ToEthKey                     = []byte("prefix_for_Chain33ToEth")
	WithdrawChain33Key                  = []byte("prefix_for_WithdrawChain33")
	LastTotalPowerKey                   = []byte("prefix_for_LastTotalPower")
	ValidatorMapsKey                    = []byte("prefix_for_ValidatorMaps")
	ConsensusThresholdKey               = []byte("prefix_for_ConsensusThreshold")
	TokenSymbolTotalLockOrBurnAmountKey = []byte("prefix_for_TokenSymbolTotalLockOrBurnAmount-")
	TokenSymbolToTokenAddressKey        = []byte("prefix_for_TokenSymbolToTokenAddress-")
)

key

View Source
var (
	ErrInvalidClaimType              = errors.New("invalid claim type provided")
	ErrInvalidEthSymbol              = errors.New("invalid symbol provided, symbol \"eth\" must have null address set as token contract address")
	ErrInvalidChainID                = errors.New("invalid ethereum chain id")
	ErrInvalidEthAddress             = errors.New("invalid ethereum address provided, must be a valid hex-encoded Ethereum address")
	ErrInvalidEthNonce               = errors.New("invalid ethereum nonce provided, must be >= 0")
	ErrInvalidAddress                = errors.New("invalid Chain33 address")
	ErrInvalidIdentifier             = errors.New("invalid identifier provided, must be a nonempty string")
	ErrProphecyNotFound              = errors.New("prophecy with given id not found")
	ErrProphecyGet                   = errors.New("prophecy with given id find error")
	ErrinternalDB                    = errors.New("internal error serializing/deserializing prophecy")
	ErrNoClaims                      = errors.New("cannot create prophecy without initial claim")
	ErrInvalidClaim                  = errors.New("claim cannot be empty string")
	ErrProphecyFinalized             = errors.New("prophecy already finalized")
	ErrProphecyFailed                = errors.New("prophecy failed so you can't burn this prophecy")
	ErrDuplicateMessage              = errors.New("already processed message from validator for this id")
	ErrMinimumConsensusNeededInvalid = errors.New("minimum consensus proportion of validator staking power must be > 0 and <= 1")
	ErrInvalidValidator              = errors.New("validator is invalid")
	ErrUnknownAddress                = errors.New("module account does not exist")
	ErrPowerIsNotEnough              = errors.New("remove power is more than which this address saves")
	ErrAddressNotExist               = errors.New("this address doesn't exist in DB")
	ErrInvalidProphecyID             = errors.New("Prophecy ID is invalid")
	ErrAddressExists                 = errors.New("This address already exists")
	ErrInvalidAdminAddress           = errors.New("This address is not admin address")
	ErrClaimInconsist                = errors.New("This claim does not consist with others")
	ErrInvalidPower                  = errors.New("This power is invalid")
)

err ...

View Source
var (
	//KeyPrefixStateDB state db key必须前缀
	KeyPrefixStateDB = "mavl-x2ethereum-"
	//KeyPrefixLocalDB local db的key必须前缀
	KeyPrefixLocalDB = "LODB-x2ethereum-"
)
View Source
var (
	EthBridgeStatus_name = map[int32]string{
		0: "PendingStatusText",
		1: "SuccessStatusText",
		2: "FailedStatusText",
	}
	EthBridgeStatus_value = map[string]int32{
		"PendingStatusText": 0,
		"SuccessStatusText": 1,
		"FailedStatusText":  2,
	}
)

Enum value maps for EthBridgeStatus.

View Source
var DirectionType = [3]string{"", DirEth2Chain33, DirChain33ToEth}

DirectionType type

View Source
var (
	ErrSetKV = errors.New("Set KV error")
)

common

View Source
var File_ethoracle_proto protoreflect.FileDescriptor
View Source
var File_x2ethereum_proto protoreflect.FileDescriptor
View Source
var (
	//X2ethereumX 执行器名称定义
	X2ethereumX = "x2ethereum"
)

Functions

func CalChain33ToEthPrefix

func CalChain33ToEthPrefix() []byte

CalChain33ToEthPrefix ...

func CalConsensusThresholdPrefix

func CalConsensusThresholdPrefix() []byte

CalConsensusThresholdPrefix ...

func CalEth2Chain33Prefix

func CalEth2Chain33Prefix() []byte

CalEth2Chain33Prefix ...

func CalLastTotalPowerPrefix

func CalLastTotalPowerPrefix() []byte

CalLastTotalPowerPrefix ...

func CalProphecyPrefix

func CalProphecyPrefix(id string) []byte

CalProphecyPrefix ...

func CalTokenSymbolToTokenAddress

func CalTokenSymbolToTokenAddress(symbol string) []byte

CalTokenSymbolToTokenAddress ...

func CalTokenSymbolTotalLockOrBurnAmount

func CalTokenSymbolTotalLockOrBurnAmount(symbol, tokenAddress, direction, txType string) []byte

CalTokenSymbolTotalLockOrBurnAmount ...

func CalValidatorMapsPrefix

func CalValidatorMapsPrefix() []byte

CalValidatorMapsPrefix ...

func CalWithdrawChain33Prefix

func CalWithdrawChain33Prefix() []byte

CalWithdrawChain33Prefix ...

func CalWithdrawEthPrefix

func CalWithdrawEthPrefix() []byte

CalWithdrawEthPrefix ...

func CheckPower

func CheckPower(power int64) bool

CheckPower ...

func DivideDot

func DivideDot(in string) (left, right string, err error)

DivideDot ...

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor defines register executor

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork defines register fork

func IsExecAddrMatch

func IsExecAddrMatch(name string, to string) bool

IsExecAddrMatch ...

func MultiplySpecifyTimes

func MultiplySpecifyTimes(start float64, time int64) float64

MultiplySpecifyTimes ...

func RegisterX2EthereumServer

func RegisterX2EthereumServer(s *grpc.Server, srv X2EthereumServer)

func ToWei

func ToWei(amount float64, decimal int64) *big.Int

ToWei 将eth单位的金额转为wei单位

func Toeth

func Toeth(amount string, decimal int64) float64

Toeth ...

func TrimZeroAndDot

func TrimZeroAndDot(s string) string

TrimZeroAndDot ...

Types

type Chain33ToEth

type Chain33ToEth struct {
	TokenContract    string `protobuf:"bytes,1,opt,name=TokenContract,proto3" json:"TokenContract,omitempty"`
	Chain33Sender    string `protobuf:"bytes,2,opt,name=Chain33Sender,proto3" json:"Chain33Sender,omitempty"`
	EthereumReceiver string `protobuf:"bytes,3,opt,name=EthereumReceiver,proto3" json:"EthereumReceiver,omitempty"`
	Amount           string `protobuf:"bytes,4,opt,name=Amount,proto3" json:"Amount,omitempty"`
	IssuerDotSymbol  string `protobuf:"bytes,5,opt,name=IssuerDotSymbol,proto3" json:"IssuerDotSymbol,omitempty"`
	Decimals         int64  `protobuf:"varint,7,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	// contains filtered or unexported fields
}

MsgBurn defines a message for burning coins and triggering a related event

func (*Chain33ToEth) Descriptor deprecated

func (*Chain33ToEth) Descriptor() ([]byte, []int)

Deprecated: Use Chain33ToEth.ProtoReflect.Descriptor instead.

func (*Chain33ToEth) GetAmount

func (x *Chain33ToEth) GetAmount() string

func (*Chain33ToEth) GetChain33Sender

func (x *Chain33ToEth) GetChain33Sender() string

func (*Chain33ToEth) GetDecimals

func (x *Chain33ToEth) GetDecimals() int64

func (*Chain33ToEth) GetEthereumReceiver

func (x *Chain33ToEth) GetEthereumReceiver() string

func (*Chain33ToEth) GetIssuerDotSymbol

func (x *Chain33ToEth) GetIssuerDotSymbol() string

func (*Chain33ToEth) GetTokenContract

func (x *Chain33ToEth) GetTokenContract() string

func (*Chain33ToEth) ProtoMessage

func (*Chain33ToEth) ProtoMessage()

func (*Chain33ToEth) ProtoReflect added in v1.65.3

func (x *Chain33ToEth) ProtoReflect() protoreflect.Message

func (*Chain33ToEth) Reset

func (x *Chain33ToEth) Reset()

func (*Chain33ToEth) String

func (x *Chain33ToEth) String() string

type ClaimValidators

type ClaimValidators struct {
	Claim      string     `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
	Validators *StringMap `protobuf:"bytes,2,opt,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

func (*ClaimValidators) Descriptor deprecated

func (*ClaimValidators) Descriptor() ([]byte, []int)

Deprecated: Use ClaimValidators.ProtoReflect.Descriptor instead.

func (*ClaimValidators) GetClaim

func (x *ClaimValidators) GetClaim() string

func (*ClaimValidators) GetValidators

func (x *ClaimValidators) GetValidators() *StringMap

func (*ClaimValidators) ProtoMessage

func (*ClaimValidators) ProtoMessage()

func (*ClaimValidators) ProtoReflect added in v1.65.3

func (x *ClaimValidators) ProtoReflect() protoreflect.Message

func (*ClaimValidators) Reset

func (x *ClaimValidators) Reset()

func (*ClaimValidators) String

func (x *ClaimValidators) String() string

type Eth2Chain33

type Eth2Chain33 struct {
	EthereumChainID       int64  `protobuf:"varint,1,opt,name=EthereumChainID,proto3" json:"EthereumChainID,omitempty"`
	BridgeContractAddress string `protobuf:"bytes,2,opt,name=BridgeContractAddress,proto3" json:"BridgeContractAddress,omitempty"`
	Nonce                 int64  `protobuf:"varint,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	IssuerDotSymbol       string `protobuf:"bytes,4,opt,name=IssuerDotSymbol,proto3" json:"IssuerDotSymbol,omitempty"`
	TokenContractAddress  string `protobuf:"bytes,6,opt,name=TokenContractAddress,proto3" json:"TokenContractAddress,omitempty"`
	EthereumSender        string `protobuf:"bytes,7,opt,name=EthereumSender,proto3" json:"EthereumSender,omitempty"`
	Chain33Receiver       string `protobuf:"bytes,8,opt,name=Chain33Receiver,proto3" json:"Chain33Receiver,omitempty"`
	ValidatorAddress      string `protobuf:"bytes,9,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"`
	Amount                string `protobuf:"bytes,10,opt,name=Amount,proto3" json:"Amount,omitempty"`
	ClaimType             int64  `protobuf:"varint,11,opt,name=ClaimType,proto3" json:"ClaimType,omitempty"`
	Decimals              int64  `protobuf:"varint,12,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	// contains filtered or unexported fields
}

EthBridgeClaim is a structure that contains all the data for a particular bridge claim

func (*Eth2Chain33) Descriptor deprecated

func (*Eth2Chain33) Descriptor() ([]byte, []int)

Deprecated: Use Eth2Chain33.ProtoReflect.Descriptor instead.

func (*Eth2Chain33) GetAmount

func (x *Eth2Chain33) GetAmount() string

func (*Eth2Chain33) GetBridgeContractAddress

func (x *Eth2Chain33) GetBridgeContractAddress() string

func (*Eth2Chain33) GetChain33Receiver

func (x *Eth2Chain33) GetChain33Receiver() string

func (*Eth2Chain33) GetClaimType

func (x *Eth2Chain33) GetClaimType() int64

func (*Eth2Chain33) GetDecimals

func (x *Eth2Chain33) GetDecimals() int64

func (*Eth2Chain33) GetEthereumChainID

func (x *Eth2Chain33) GetEthereumChainID() int64

func (*Eth2Chain33) GetEthereumSender

func (x *Eth2Chain33) GetEthereumSender() string

func (*Eth2Chain33) GetIssuerDotSymbol

func (x *Eth2Chain33) GetIssuerDotSymbol() string

func (*Eth2Chain33) GetNonce

func (x *Eth2Chain33) GetNonce() int64

func (*Eth2Chain33) GetTokenContractAddress

func (x *Eth2Chain33) GetTokenContractAddress() string

func (*Eth2Chain33) GetValidatorAddress

func (x *Eth2Chain33) GetValidatorAddress() string

func (*Eth2Chain33) ProtoMessage

func (*Eth2Chain33) ProtoMessage()

func (*Eth2Chain33) ProtoReflect added in v1.65.3

func (x *Eth2Chain33) ProtoReflect() protoreflect.Message

func (*Eth2Chain33) Reset

func (x *Eth2Chain33) Reset()

func (*Eth2Chain33) String

func (x *Eth2Chain33) String() string

type EthBridgeStatus

type EthBridgeStatus int32
const (
	EthBridgeStatus_PendingStatusText EthBridgeStatus = 0
	EthBridgeStatus_SuccessStatusText EthBridgeStatus = 1
	EthBridgeStatus_FailedStatusText  EthBridgeStatus = 2
)

func (EthBridgeStatus) Descriptor added in v1.65.3

func (EthBridgeStatus) Enum added in v1.65.3

func (x EthBridgeStatus) Enum() *EthBridgeStatus

func (EthBridgeStatus) EnumDescriptor deprecated

func (EthBridgeStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use EthBridgeStatus.Descriptor instead.

func (EthBridgeStatus) Number added in v1.65.3

func (EthBridgeStatus) String

func (x EthBridgeStatus) String() string

func (EthBridgeStatus) Type added in v1.65.3

type MsgConsensusThreshold

type MsgConsensusThreshold struct {
	ConsensusThreshold int64 `protobuf:"varint,1,opt,name=consensusThreshold,proto3" json:"consensusThreshold,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgConsensusThreshold) Descriptor deprecated

func (*MsgConsensusThreshold) Descriptor() ([]byte, []int)

Deprecated: Use MsgConsensusThreshold.ProtoReflect.Descriptor instead.

func (*MsgConsensusThreshold) GetConsensusThreshold

func (x *MsgConsensusThreshold) GetConsensusThreshold() int64

func (*MsgConsensusThreshold) ProtoMessage

func (*MsgConsensusThreshold) ProtoMessage()

func (*MsgConsensusThreshold) ProtoReflect added in v1.65.3

func (x *MsgConsensusThreshold) ProtoReflect() protoreflect.Message

func (*MsgConsensusThreshold) Reset

func (x *MsgConsensusThreshold) Reset()

func (*MsgConsensusThreshold) String

func (x *MsgConsensusThreshold) String() string

type MsgValidator

type MsgValidator struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Power   int64  `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgValidator) Descriptor deprecated

func (*MsgValidator) Descriptor() ([]byte, []int)

Deprecated: Use MsgValidator.ProtoReflect.Descriptor instead.

func (*MsgValidator) GetAddress

func (x *MsgValidator) GetAddress() string

func (*MsgValidator) GetPower

func (x *MsgValidator) GetPower() int64

func (*MsgValidator) ProtoMessage

func (*MsgValidator) ProtoMessage()

func (*MsgValidator) ProtoReflect added in v1.65.3

func (x *MsgValidator) ProtoReflect() protoreflect.Message

func (*MsgValidator) Reset

func (x *MsgValidator) Reset()

func (*MsgValidator) String

func (x *MsgValidator) String() string

type OracleClaim

type OracleClaim struct {
	ID               string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"`
	Content          string `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"`
	// contains filtered or unexported fields
}

EthBridgeClaim is a structure that contains all the data for a particular bridge claim

func (*OracleClaim) Descriptor deprecated

func (*OracleClaim) Descriptor() ([]byte, []int)

Deprecated: Use OracleClaim.ProtoReflect.Descriptor instead.

func (*OracleClaim) GetContent

func (x *OracleClaim) GetContent() string

func (*OracleClaim) GetID

func (x *OracleClaim) GetID() string

func (*OracleClaim) GetValidatorAddress

func (x *OracleClaim) GetValidatorAddress() string

func (*OracleClaim) ProtoMessage

func (*OracleClaim) ProtoMessage()

func (*OracleClaim) ProtoReflect added in v1.65.3

func (x *OracleClaim) ProtoReflect() protoreflect.Message

func (*OracleClaim) Reset

func (x *OracleClaim) Reset()

func (*OracleClaim) String

func (x *OracleClaim) String() string

type OracleClaimContent

type OracleClaimContent struct {
	Chain33Receiver string `protobuf:"bytes,1,opt,name=Chain33Receiver,proto3" json:"Chain33Receiver,omitempty"`
	Amount          string `protobuf:"bytes,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	ClaimType       int64  `protobuf:"varint,3,opt,name=ClaimType,proto3" json:"ClaimType,omitempty"`
	Decimals        int64  `protobuf:"varint,4,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	// contains filtered or unexported fields
}

OracleClaimContent is the details of how the content of the claim for each validator will be stored in the oracle

func (*OracleClaimContent) Descriptor deprecated

func (*OracleClaimContent) Descriptor() ([]byte, []int)

Deprecated: Use OracleClaimContent.ProtoReflect.Descriptor instead.

func (*OracleClaimContent) GetAmount

func (x *OracleClaimContent) GetAmount() string

func (*OracleClaimContent) GetChain33Receiver

func (x *OracleClaimContent) GetChain33Receiver() string

func (*OracleClaimContent) GetClaimType

func (x *OracleClaimContent) GetClaimType() int64

func (*OracleClaimContent) GetDecimals

func (x *OracleClaimContent) GetDecimals() int64

func (*OracleClaimContent) ProtoMessage

func (*OracleClaimContent) ProtoMessage()

func (*OracleClaimContent) ProtoReflect added in v1.65.3

func (x *OracleClaimContent) ProtoReflect() protoreflect.Message

func (*OracleClaimContent) Reset

func (x *OracleClaimContent) Reset()

func (*OracleClaimContent) String

func (x *OracleClaimContent) String() string

type Prophecy

type Prophecy struct {
	ID              string             `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Status          *ProphecyStatus    `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
	ClaimValidators []*ClaimValidators `protobuf:"bytes,3,rep,name=ClaimValidators,proto3" json:"ClaimValidators,omitempty"`
	ValidatorClaims []*ValidatorClaims `protobuf:"bytes,4,rep,name=ValidatorClaims,proto3" json:"ValidatorClaims,omitempty"`
	// contains filtered or unexported fields
}

func (*Prophecy) Descriptor deprecated

func (*Prophecy) Descriptor() ([]byte, []int)

Deprecated: Use Prophecy.ProtoReflect.Descriptor instead.

func (*Prophecy) GetClaimValidators

func (x *Prophecy) GetClaimValidators() []*ClaimValidators

func (*Prophecy) GetID

func (x *Prophecy) GetID() string

func (*Prophecy) GetStatus

func (x *Prophecy) GetStatus() *ProphecyStatus

func (*Prophecy) GetValidatorClaims

func (x *Prophecy) GetValidatorClaims() []*ValidatorClaims

func (*Prophecy) ProtoMessage

func (*Prophecy) ProtoMessage()

func (*Prophecy) ProtoReflect added in v1.65.3

func (x *Prophecy) ProtoReflect() protoreflect.Message

func (*Prophecy) Reset

func (x *Prophecy) Reset()

func (*Prophecy) String

func (x *Prophecy) String() string

type ProphecyStatus

type ProphecyStatus struct {
	Text       EthBridgeStatus `protobuf:"varint,1,opt,name=Text,proto3,enum=types.EthBridgeStatus" json:"Text,omitempty"`
	FinalClaim string          `protobuf:"bytes,2,opt,name=FinalClaim,proto3" json:"FinalClaim,omitempty"`
	// contains filtered or unexported fields
}

func (*ProphecyStatus) Descriptor deprecated

func (*ProphecyStatus) Descriptor() ([]byte, []int)

Deprecated: Use ProphecyStatus.ProtoReflect.Descriptor instead.

func (*ProphecyStatus) GetFinalClaim

func (x *ProphecyStatus) GetFinalClaim() string

func (*ProphecyStatus) GetText

func (x *ProphecyStatus) GetText() EthBridgeStatus

func (*ProphecyStatus) ProtoMessage

func (*ProphecyStatus) ProtoMessage()

func (*ProphecyStatus) ProtoReflect added in v1.65.3

func (x *ProphecyStatus) ProtoReflect() protoreflect.Message

func (*ProphecyStatus) Reset

func (x *ProphecyStatus) Reset()

func (*ProphecyStatus) String

func (x *ProphecyStatus) String() string

type QueryConsensusThresholdParams

type QueryConsensusThresholdParams struct {
	// contains filtered or unexported fields
}

func (*QueryConsensusThresholdParams) Descriptor deprecated

func (*QueryConsensusThresholdParams) Descriptor() ([]byte, []int)

Deprecated: Use QueryConsensusThresholdParams.ProtoReflect.Descriptor instead.

func (*QueryConsensusThresholdParams) ProtoMessage

func (*QueryConsensusThresholdParams) ProtoMessage()

func (*QueryConsensusThresholdParams) ProtoReflect added in v1.65.3

func (*QueryConsensusThresholdParams) Reset

func (x *QueryConsensusThresholdParams) Reset()

func (*QueryConsensusThresholdParams) String

type QueryEthProphecyParams

type QueryEthProphecyParams struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

查询接口定义

func (*QueryEthProphecyParams) Descriptor deprecated

func (*QueryEthProphecyParams) Descriptor() ([]byte, []int)

Deprecated: Use QueryEthProphecyParams.ProtoReflect.Descriptor instead.

func (*QueryEthProphecyParams) GetID

func (x *QueryEthProphecyParams) GetID() string

func (*QueryEthProphecyParams) ProtoMessage

func (*QueryEthProphecyParams) ProtoMessage()

func (*QueryEthProphecyParams) ProtoReflect added in v1.65.3

func (x *QueryEthProphecyParams) ProtoReflect() protoreflect.Message

func (*QueryEthProphecyParams) Reset

func (x *QueryEthProphecyParams) Reset()

func (*QueryEthProphecyParams) String

func (x *QueryEthProphecyParams) String() string

type QueryRelayerBalance

type QueryRelayerBalance struct {
	TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	TokenAddr   string `protobuf:"bytes,3,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRelayerBalance) Descriptor deprecated

func (*QueryRelayerBalance) Descriptor() ([]byte, []int)

Deprecated: Use QueryRelayerBalance.ProtoReflect.Descriptor instead.

func (*QueryRelayerBalance) GetAddress

func (x *QueryRelayerBalance) GetAddress() string

func (*QueryRelayerBalance) GetTokenAddr

func (x *QueryRelayerBalance) GetTokenAddr() string

func (*QueryRelayerBalance) GetTokenSymbol

func (x *QueryRelayerBalance) GetTokenSymbol() string

func (*QueryRelayerBalance) ProtoMessage

func (*QueryRelayerBalance) ProtoMessage()

func (*QueryRelayerBalance) ProtoReflect added in v1.65.3

func (x *QueryRelayerBalance) ProtoReflect() protoreflect.Message

func (*QueryRelayerBalance) Reset

func (x *QueryRelayerBalance) Reset()

func (*QueryRelayerBalance) String

func (x *QueryRelayerBalance) String() string

type QuerySymbolAssetsByTxTypeParams

type QuerySymbolAssetsByTxTypeParams struct {
	TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Direction   int64  `protobuf:"varint,2,opt,name=direction,proto3" json:"direction,omitempty"`
	TxType      string `protobuf:"bytes,3,opt,name=txType,proto3" json:"txType,omitempty"`
	TokenAddr   string `protobuf:"bytes,4,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
	Decimal     int64  `protobuf:"varint,5,opt,name=decimal,proto3" json:"decimal,omitempty"`
	// contains filtered or unexported fields
}

func (*QuerySymbolAssetsByTxTypeParams) Descriptor deprecated

func (*QuerySymbolAssetsByTxTypeParams) Descriptor() ([]byte, []int)

Deprecated: Use QuerySymbolAssetsByTxTypeParams.ProtoReflect.Descriptor instead.

func (*QuerySymbolAssetsByTxTypeParams) GetDecimal

func (x *QuerySymbolAssetsByTxTypeParams) GetDecimal() int64

func (*QuerySymbolAssetsByTxTypeParams) GetDirection

func (x *QuerySymbolAssetsByTxTypeParams) GetDirection() int64

func (*QuerySymbolAssetsByTxTypeParams) GetTokenAddr

func (x *QuerySymbolAssetsByTxTypeParams) GetTokenAddr() string

func (*QuerySymbolAssetsByTxTypeParams) GetTokenSymbol

func (x *QuerySymbolAssetsByTxTypeParams) GetTokenSymbol() string

func (*QuerySymbolAssetsByTxTypeParams) GetTxType

func (x *QuerySymbolAssetsByTxTypeParams) GetTxType() string

func (*QuerySymbolAssetsByTxTypeParams) ProtoMessage

func (*QuerySymbolAssetsByTxTypeParams) ProtoMessage()

func (*QuerySymbolAssetsByTxTypeParams) ProtoReflect added in v1.65.3

func (*QuerySymbolAssetsByTxTypeParams) Reset

func (*QuerySymbolAssetsByTxTypeParams) String

type QueryTotalPowerParams

type QueryTotalPowerParams struct {
	// contains filtered or unexported fields
}

func (*QueryTotalPowerParams) Descriptor deprecated

func (*QueryTotalPowerParams) Descriptor() ([]byte, []int)

Deprecated: Use QueryTotalPowerParams.ProtoReflect.Descriptor instead.

func (*QueryTotalPowerParams) ProtoMessage

func (*QueryTotalPowerParams) ProtoMessage()

func (*QueryTotalPowerParams) ProtoReflect added in v1.65.3

func (x *QueryTotalPowerParams) ProtoReflect() protoreflect.Message

func (*QueryTotalPowerParams) Reset

func (x *QueryTotalPowerParams) Reset()

func (*QueryTotalPowerParams) String

func (x *QueryTotalPowerParams) String() string

type QueryValidatorsParams

type QueryValidatorsParams struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryValidatorsParams) Descriptor deprecated

func (*QueryValidatorsParams) Descriptor() ([]byte, []int)

Deprecated: Use QueryValidatorsParams.ProtoReflect.Descriptor instead.

func (*QueryValidatorsParams) GetValidator

func (x *QueryValidatorsParams) GetValidator() string

func (*QueryValidatorsParams) ProtoMessage

func (*QueryValidatorsParams) ProtoMessage()

func (*QueryValidatorsParams) ProtoReflect added in v1.65.3

func (x *QueryValidatorsParams) ProtoReflect() protoreflect.Message

func (*QueryValidatorsParams) Reset

func (x *QueryValidatorsParams) Reset()

func (*QueryValidatorsParams) String

func (x *QueryValidatorsParams) String() string

type ReceiptChain33ToEth

type ReceiptChain33ToEth struct {
	TokenContract    string `protobuf:"bytes,1,opt,name=TokenContract,proto3" json:"TokenContract,omitempty"`
	Chain33Sender    string `protobuf:"bytes,2,opt,name=Chain33Sender,proto3" json:"Chain33Sender,omitempty"`
	EthereumReceiver string `protobuf:"bytes,3,opt,name=EthereumReceiver,proto3" json:"EthereumReceiver,omitempty"`
	Amount           string `protobuf:"bytes,4,opt,name=Amount,proto3" json:"Amount,omitempty"`
	IssuerDotSymbol  string `protobuf:"bytes,5,opt,name=IssuerDotSymbol,proto3" json:"IssuerDotSymbol,omitempty"`
	Decimals         int64  `protobuf:"varint,6,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptChain33ToEth) Descriptor deprecated

func (*ReceiptChain33ToEth) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptChain33ToEth.ProtoReflect.Descriptor instead.

func (*ReceiptChain33ToEth) GetAmount

func (x *ReceiptChain33ToEth) GetAmount() string

func (*ReceiptChain33ToEth) GetChain33Sender

func (x *ReceiptChain33ToEth) GetChain33Sender() string

func (*ReceiptChain33ToEth) GetDecimals

func (x *ReceiptChain33ToEth) GetDecimals() int64

func (*ReceiptChain33ToEth) GetEthereumReceiver

func (x *ReceiptChain33ToEth) GetEthereumReceiver() string

func (*ReceiptChain33ToEth) GetIssuerDotSymbol

func (x *ReceiptChain33ToEth) GetIssuerDotSymbol() string

func (*ReceiptChain33ToEth) GetTokenContract

func (x *ReceiptChain33ToEth) GetTokenContract() string

func (*ReceiptChain33ToEth) ProtoMessage

func (*ReceiptChain33ToEth) ProtoMessage()

func (*ReceiptChain33ToEth) ProtoReflect added in v1.65.3

func (x *ReceiptChain33ToEth) ProtoReflect() protoreflect.Message

func (*ReceiptChain33ToEth) Reset

func (x *ReceiptChain33ToEth) Reset()

func (*ReceiptChain33ToEth) String

func (x *ReceiptChain33ToEth) String() string

type ReceiptEth2Chain33

type ReceiptEth2Chain33 struct {
	EthereumChainID       int64  `protobuf:"varint,1,opt,name=EthereumChainID,proto3" json:"EthereumChainID,omitempty"`
	BridgeContractAddress string `protobuf:"bytes,2,opt,name=BridgeContractAddress,proto3" json:"BridgeContractAddress,omitempty"`
	Nonce                 int64  `protobuf:"varint,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	IssuerDotSymbol       string `protobuf:"bytes,4,opt,name=IssuerDotSymbol,proto3" json:"IssuerDotSymbol,omitempty"`
	TokenAddress          string `protobuf:"bytes,5,opt,name=TokenAddress,proto3" json:"TokenAddress,omitempty"`
	EthereumSender        string `protobuf:"bytes,7,opt,name=EthereumSender,proto3" json:"EthereumSender,omitempty"`
	Chain33Receiver       string `protobuf:"bytes,8,opt,name=Chain33Receiver,proto3" json:"Chain33Receiver,omitempty"`
	ValidatorAddress      string `protobuf:"bytes,9,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"`
	Amount                string `protobuf:"bytes,10,opt,name=Amount,proto3" json:"Amount,omitempty"`
	ClaimType             int64  `protobuf:"varint,11,opt,name=ClaimType,proto3" json:"ClaimType,omitempty"`
	XTxHash               []byte `protobuf:"bytes,12,opt,name=xTxHash,proto3" json:"xTxHash,omitempty"`
	XHeight               uint64 `protobuf:"varint,13,opt,name=xHeight,proto3" json:"xHeight,omitempty"`
	ProphecyID            string `protobuf:"bytes,14,opt,name=ProphecyID,proto3" json:"ProphecyID,omitempty"`
	Decimals              int64  `protobuf:"varint,15,opt,name=Decimals,proto3" json:"Decimals,omitempty"`
	// contains filtered or unexported fields
}

回执接口定义

func (*ReceiptEth2Chain33) Descriptor deprecated

func (*ReceiptEth2Chain33) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptEth2Chain33.ProtoReflect.Descriptor instead.

func (*ReceiptEth2Chain33) GetAmount

func (x *ReceiptEth2Chain33) GetAmount() string

func (*ReceiptEth2Chain33) GetBridgeContractAddress

func (x *ReceiptEth2Chain33) GetBridgeContractAddress() string

func (*ReceiptEth2Chain33) GetChain33Receiver

func (x *ReceiptEth2Chain33) GetChain33Receiver() string

func (*ReceiptEth2Chain33) GetClaimType

func (x *ReceiptEth2Chain33) GetClaimType() int64

func (*ReceiptEth2Chain33) GetDecimals

func (x *ReceiptEth2Chain33) GetDecimals() int64

func (*ReceiptEth2Chain33) GetEthereumChainID

func (x *ReceiptEth2Chain33) GetEthereumChainID() int64

func (*ReceiptEth2Chain33) GetEthereumSender

func (x *ReceiptEth2Chain33) GetEthereumSender() string

func (*ReceiptEth2Chain33) GetIssuerDotSymbol

func (x *ReceiptEth2Chain33) GetIssuerDotSymbol() string

func (*ReceiptEth2Chain33) GetNonce

func (x *ReceiptEth2Chain33) GetNonce() int64

func (*ReceiptEth2Chain33) GetProphecyID

func (x *ReceiptEth2Chain33) GetProphecyID() string

func (*ReceiptEth2Chain33) GetTokenAddress

func (x *ReceiptEth2Chain33) GetTokenAddress() string

func (*ReceiptEth2Chain33) GetValidatorAddress

func (x *ReceiptEth2Chain33) GetValidatorAddress() string

func (*ReceiptEth2Chain33) GetXHeight

func (x *ReceiptEth2Chain33) GetXHeight() uint64

func (*ReceiptEth2Chain33) GetXTxHash

func (x *ReceiptEth2Chain33) GetXTxHash() []byte

func (*ReceiptEth2Chain33) ProtoMessage

func (*ReceiptEth2Chain33) ProtoMessage()

func (*ReceiptEth2Chain33) ProtoReflect added in v1.65.3

func (x *ReceiptEth2Chain33) ProtoReflect() protoreflect.Message

func (*ReceiptEth2Chain33) Reset

func (x *ReceiptEth2Chain33) Reset()

func (*ReceiptEth2Chain33) String

func (x *ReceiptEth2Chain33) String() string

type ReceiptEthProphecy

type ReceiptEthProphecy struct {
	ID              string             `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Status          *ProphecyStatus    `protobuf:"bytes,2,opt,name=Status,proto3" json:"Status,omitempty"`
	ClaimValidators []*ClaimValidators `protobuf:"bytes,3,rep,name=ClaimValidators,proto3" json:"ClaimValidators,omitempty"`
	ValidatorClaims []*ValidatorClaims `protobuf:"bytes,4,rep,name=ValidatorClaims,proto3" json:"ValidatorClaims,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptEthProphecy) Descriptor deprecated

func (*ReceiptEthProphecy) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptEthProphecy.ProtoReflect.Descriptor instead.

func (*ReceiptEthProphecy) GetClaimValidators

func (x *ReceiptEthProphecy) GetClaimValidators() []*ClaimValidators

func (*ReceiptEthProphecy) GetID

func (x *ReceiptEthProphecy) GetID() string

func (*ReceiptEthProphecy) GetStatus

func (x *ReceiptEthProphecy) GetStatus() *ProphecyStatus

func (*ReceiptEthProphecy) GetValidatorClaims

func (x *ReceiptEthProphecy) GetValidatorClaims() []*ValidatorClaims

func (*ReceiptEthProphecy) ProtoMessage

func (*ReceiptEthProphecy) ProtoMessage()

func (*ReceiptEthProphecy) ProtoReflect added in v1.65.3

func (x *ReceiptEthProphecy) ProtoReflect() protoreflect.Message

func (*ReceiptEthProphecy) Reset

func (x *ReceiptEthProphecy) Reset()

func (*ReceiptEthProphecy) String

func (x *ReceiptEthProphecy) String() string

type ReceiptQueryConsensusThreshold

type ReceiptQueryConsensusThreshold struct {
	ConsensusThreshold int64 `protobuf:"varint,1,opt,name=consensusThreshold,proto3" json:"consensusThreshold,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQueryConsensusThreshold) Descriptor deprecated

func (*ReceiptQueryConsensusThreshold) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQueryConsensusThreshold.ProtoReflect.Descriptor instead.

func (*ReceiptQueryConsensusThreshold) GetConsensusThreshold

func (x *ReceiptQueryConsensusThreshold) GetConsensusThreshold() int64

func (*ReceiptQueryConsensusThreshold) ProtoMessage

func (*ReceiptQueryConsensusThreshold) ProtoMessage()

func (*ReceiptQueryConsensusThreshold) ProtoReflect added in v1.65.3

func (*ReceiptQueryConsensusThreshold) Reset

func (x *ReceiptQueryConsensusThreshold) Reset()

func (*ReceiptQueryConsensusThreshold) String

type ReceiptQueryRelayerBalance

type ReceiptQueryRelayerBalance struct {
	Res []*ReceiptQueryRelayerBalanceForOneToken `protobuf:"bytes,1,rep,name=res,proto3" json:"res,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQueryRelayerBalance) Descriptor deprecated

func (*ReceiptQueryRelayerBalance) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQueryRelayerBalance.ProtoReflect.Descriptor instead.

func (*ReceiptQueryRelayerBalance) GetRes

func (*ReceiptQueryRelayerBalance) ProtoMessage

func (*ReceiptQueryRelayerBalance) ProtoMessage()

func (*ReceiptQueryRelayerBalance) ProtoReflect added in v1.65.3

func (*ReceiptQueryRelayerBalance) Reset

func (x *ReceiptQueryRelayerBalance) Reset()

func (*ReceiptQueryRelayerBalance) String

func (x *ReceiptQueryRelayerBalance) String() string

type ReceiptQueryRelayerBalanceForOneToken

type ReceiptQueryRelayerBalanceForOneToken struct {
	Balance     string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	TokenSymbol string `protobuf:"bytes,2,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	TokenAddr   string `protobuf:"bytes,3,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQueryRelayerBalanceForOneToken) Descriptor deprecated

func (*ReceiptQueryRelayerBalanceForOneToken) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQueryRelayerBalanceForOneToken.ProtoReflect.Descriptor instead.

func (*ReceiptQueryRelayerBalanceForOneToken) GetBalance

func (*ReceiptQueryRelayerBalanceForOneToken) GetTokenAddr

func (*ReceiptQueryRelayerBalanceForOneToken) GetTokenSymbol

func (x *ReceiptQueryRelayerBalanceForOneToken) GetTokenSymbol() string

func (*ReceiptQueryRelayerBalanceForOneToken) ProtoMessage

func (*ReceiptQueryRelayerBalanceForOneToken) ProtoMessage()

func (*ReceiptQueryRelayerBalanceForOneToken) ProtoReflect added in v1.65.3

func (*ReceiptQueryRelayerBalanceForOneToken) Reset

func (*ReceiptQueryRelayerBalanceForOneToken) String

type ReceiptQuerySymbolAssets

type ReceiptQuerySymbolAssets struct {
	Res []*ReceiptQuerySymbolAssetsByTxType `protobuf:"bytes,1,rep,name=res,proto3" json:"res,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQuerySymbolAssets) Descriptor deprecated

func (*ReceiptQuerySymbolAssets) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQuerySymbolAssets.ProtoReflect.Descriptor instead.

func (*ReceiptQuerySymbolAssets) GetRes

func (*ReceiptQuerySymbolAssets) ProtoMessage

func (*ReceiptQuerySymbolAssets) ProtoMessage()

func (*ReceiptQuerySymbolAssets) ProtoReflect added in v1.65.3

func (x *ReceiptQuerySymbolAssets) ProtoReflect() protoreflect.Message

func (*ReceiptQuerySymbolAssets) Reset

func (x *ReceiptQuerySymbolAssets) Reset()

func (*ReceiptQuerySymbolAssets) String

func (x *ReceiptQuerySymbolAssets) String() string

type ReceiptQuerySymbolAssetsByTxType

type ReceiptQuerySymbolAssetsByTxType struct {
	TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	TotalAmount string `protobuf:"bytes,2,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"`
	TxType      string `protobuf:"bytes,3,opt,name=txType,proto3" json:"txType,omitempty"`
	Direction   int64  `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	TokenAddr   string `protobuf:"bytes,5,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQuerySymbolAssetsByTxType) Descriptor deprecated

func (*ReceiptQuerySymbolAssetsByTxType) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQuerySymbolAssetsByTxType.ProtoReflect.Descriptor instead.

func (*ReceiptQuerySymbolAssetsByTxType) GetDirection

func (x *ReceiptQuerySymbolAssetsByTxType) GetDirection() int64

func (*ReceiptQuerySymbolAssetsByTxType) GetTokenAddr

func (x *ReceiptQuerySymbolAssetsByTxType) GetTokenAddr() string

func (*ReceiptQuerySymbolAssetsByTxType) GetTokenSymbol

func (x *ReceiptQuerySymbolAssetsByTxType) GetTokenSymbol() string

func (*ReceiptQuerySymbolAssetsByTxType) GetTotalAmount

func (x *ReceiptQuerySymbolAssetsByTxType) GetTotalAmount() string

func (*ReceiptQuerySymbolAssetsByTxType) GetTxType

func (*ReceiptQuerySymbolAssetsByTxType) ProtoMessage

func (*ReceiptQuerySymbolAssetsByTxType) ProtoMessage()

func (*ReceiptQuerySymbolAssetsByTxType) ProtoReflect added in v1.65.3

func (*ReceiptQuerySymbolAssetsByTxType) Reset

func (*ReceiptQuerySymbolAssetsByTxType) String

type ReceiptQueryTotalPower

type ReceiptQueryTotalPower struct {
	TotalPower int64 `protobuf:"varint,1,opt,name=totalPower,proto3" json:"totalPower,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQueryTotalPower) Descriptor deprecated

func (*ReceiptQueryTotalPower) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQueryTotalPower.ProtoReflect.Descriptor instead.

func (*ReceiptQueryTotalPower) GetTotalPower

func (x *ReceiptQueryTotalPower) GetTotalPower() int64

func (*ReceiptQueryTotalPower) ProtoMessage

func (*ReceiptQueryTotalPower) ProtoMessage()

func (*ReceiptQueryTotalPower) ProtoReflect added in v1.65.3

func (x *ReceiptQueryTotalPower) ProtoReflect() protoreflect.Message

func (*ReceiptQueryTotalPower) Reset

func (x *ReceiptQueryTotalPower) Reset()

func (*ReceiptQueryTotalPower) String

func (x *ReceiptQueryTotalPower) String() string

type ReceiptQueryValidator

type ReceiptQueryValidator struct {
	Validators []*MsgValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	TotalPower int64           `protobuf:"varint,2,opt,name=totalPower,proto3" json:"totalPower,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptQueryValidator) Descriptor deprecated

func (*ReceiptQueryValidator) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptQueryValidator.ProtoReflect.Descriptor instead.

func (*ReceiptQueryValidator) GetTotalPower

func (x *ReceiptQueryValidator) GetTotalPower() int64

func (*ReceiptQueryValidator) GetValidators

func (x *ReceiptQueryValidator) GetValidators() []*MsgValidator

func (*ReceiptQueryValidator) ProtoMessage

func (*ReceiptQueryValidator) ProtoMessage()

func (*ReceiptQueryValidator) ProtoReflect added in v1.65.3

func (x *ReceiptQueryValidator) ProtoReflect() protoreflect.Message

func (*ReceiptQueryValidator) Reset

func (x *ReceiptQueryValidator) Reset()

func (*ReceiptQueryValidator) String

func (x *ReceiptQueryValidator) String() string

type ReceiptSetConsensusThreshold

type ReceiptSetConsensusThreshold struct {
	PreConsensusThreshold int64  `protobuf:"varint,1,opt,name=preConsensusThreshold,proto3" json:"preConsensusThreshold,omitempty"`
	NowConsensusThreshold int64  `protobuf:"varint,2,opt,name=nowConsensusThreshold,proto3" json:"nowConsensusThreshold,omitempty"`
	XTxHash               []byte `protobuf:"bytes,3,opt,name=xTxHash,proto3" json:"xTxHash,omitempty"`
	XHeight               uint64 `protobuf:"varint,4,opt,name=xHeight,proto3" json:"xHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptSetConsensusThreshold) Descriptor deprecated

func (*ReceiptSetConsensusThreshold) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptSetConsensusThreshold.ProtoReflect.Descriptor instead.

func (*ReceiptSetConsensusThreshold) GetNowConsensusThreshold

func (x *ReceiptSetConsensusThreshold) GetNowConsensusThreshold() int64

func (*ReceiptSetConsensusThreshold) GetPreConsensusThreshold

func (x *ReceiptSetConsensusThreshold) GetPreConsensusThreshold() int64

func (*ReceiptSetConsensusThreshold) GetXHeight

func (x *ReceiptSetConsensusThreshold) GetXHeight() uint64

func (*ReceiptSetConsensusThreshold) GetXTxHash

func (x *ReceiptSetConsensusThreshold) GetXTxHash() []byte

func (*ReceiptSetConsensusThreshold) ProtoMessage

func (*ReceiptSetConsensusThreshold) ProtoMessage()

func (*ReceiptSetConsensusThreshold) ProtoReflect added in v1.65.3

func (*ReceiptSetConsensusThreshold) Reset

func (x *ReceiptSetConsensusThreshold) Reset()

func (*ReceiptSetConsensusThreshold) String

type ReceiptTokenToTokenAddress

type ReceiptTokenToTokenAddress struct {
	TokenAddress []string `protobuf:"bytes,1,rep,name=tokenAddress,proto3" json:"tokenAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptTokenToTokenAddress) Descriptor deprecated

func (*ReceiptTokenToTokenAddress) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptTokenToTokenAddress.ProtoReflect.Descriptor instead.

func (*ReceiptTokenToTokenAddress) GetTokenAddress

func (x *ReceiptTokenToTokenAddress) GetTokenAddress() []string

func (*ReceiptTokenToTokenAddress) ProtoMessage

func (*ReceiptTokenToTokenAddress) ProtoMessage()

func (*ReceiptTokenToTokenAddress) ProtoReflect added in v1.65.3

func (*ReceiptTokenToTokenAddress) Reset

func (x *ReceiptTokenToTokenAddress) Reset()

func (*ReceiptTokenToTokenAddress) String

func (x *ReceiptTokenToTokenAddress) String() string

type ReceiptValidator

type ReceiptValidator struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Power   int64  `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	XTxHash []byte `protobuf:"bytes,3,opt,name=xTxHash,proto3" json:"xTxHash,omitempty"`
	XHeight uint64 `protobuf:"varint,4,opt,name=xHeight,proto3" json:"xHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptValidator) Descriptor deprecated

func (*ReceiptValidator) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptValidator.ProtoReflect.Descriptor instead.

func (*ReceiptValidator) GetAddress

func (x *ReceiptValidator) GetAddress() string

func (*ReceiptValidator) GetPower

func (x *ReceiptValidator) GetPower() int64

func (*ReceiptValidator) GetXHeight

func (x *ReceiptValidator) GetXHeight() uint64

func (*ReceiptValidator) GetXTxHash

func (x *ReceiptValidator) GetXTxHash() []byte

func (*ReceiptValidator) ProtoMessage

func (*ReceiptValidator) ProtoMessage()

func (*ReceiptValidator) ProtoReflect added in v1.65.3

func (x *ReceiptValidator) ProtoReflect() protoreflect.Message

func (*ReceiptValidator) Reset

func (x *ReceiptValidator) Reset()

func (*ReceiptValidator) String

func (x *ReceiptValidator) String() string

type StringMap

type StringMap struct {
	Validators []string `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

func (*StringMap) Descriptor deprecated

func (*StringMap) Descriptor() ([]byte, []int)

Deprecated: Use StringMap.ProtoReflect.Descriptor instead.

func (*StringMap) GetValidators

func (x *StringMap) GetValidators() []string

func (*StringMap) ProtoMessage

func (*StringMap) ProtoMessage()

func (*StringMap) ProtoReflect added in v1.65.3

func (x *StringMap) ProtoReflect() protoreflect.Message

func (*StringMap) Reset

func (x *StringMap) Reset()

func (*StringMap) String

func (x *StringMap) String() string

type UnimplementedX2EthereumServer

type UnimplementedX2EthereumServer struct {
}

UnimplementedX2EthereumServer can be embedded to have forward compatible implementations.

type ValidatorClaims

type ValidatorClaims struct {
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	Claim     string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorClaims) Descriptor deprecated

func (*ValidatorClaims) Descriptor() ([]byte, []int)

Deprecated: Use ValidatorClaims.ProtoReflect.Descriptor instead.

func (*ValidatorClaims) GetClaim

func (x *ValidatorClaims) GetClaim() string

func (*ValidatorClaims) GetValidator

func (x *ValidatorClaims) GetValidator() string

func (*ValidatorClaims) ProtoMessage

func (*ValidatorClaims) ProtoMessage()

func (*ValidatorClaims) ProtoReflect added in v1.65.3

func (x *ValidatorClaims) ProtoReflect() protoreflect.Message

func (*ValidatorClaims) Reset

func (x *ValidatorClaims) Reset()

func (*ValidatorClaims) String

func (x *ValidatorClaims) String() string

type ValidatorList

type ValidatorList struct {
	Validators []*MsgValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidatorList) Descriptor deprecated

func (*ValidatorList) Descriptor() ([]byte, []int)

Deprecated: Use ValidatorList.ProtoReflect.Descriptor instead.

func (*ValidatorList) GetValidators

func (x *ValidatorList) GetValidators() []*MsgValidator

func (*ValidatorList) ProtoMessage

func (*ValidatorList) ProtoMessage()

func (*ValidatorList) ProtoReflect added in v1.65.3

func (x *ValidatorList) ProtoReflect() protoreflect.Message

func (*ValidatorList) Reset

func (x *ValidatorList) Reset()

func (*ValidatorList) String

func (x *ValidatorList) String() string

type X2EthereumAction

type X2EthereumAction struct {

	// Types that are assignable to Value:
	//	*X2EthereumAction_Eth2Chain33Lock
	//	*X2EthereumAction_Eth2Chain33Burn
	//	*X2EthereumAction_Chain33ToEthBurn
	//	*X2EthereumAction_Chain33ToEthLock
	//	*X2EthereumAction_AddValidator
	//	*X2EthereumAction_RemoveValidator
	//	*X2EthereumAction_ModifyPower
	//	*X2EthereumAction_SetConsensusThreshold
	//	*X2EthereumAction_Transfer
	//	*X2EthereumAction_TransferToExec
	//	*X2EthereumAction_WithdrawFromExec
	Value isX2EthereumAction_Value `protobuf_oneof:"value"`
	Ty    int32                    `protobuf:"varint,12,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*X2EthereumAction) Descriptor deprecated

func (*X2EthereumAction) Descriptor() ([]byte, []int)

Deprecated: Use X2EthereumAction.ProtoReflect.Descriptor instead.

func (*X2EthereumAction) GetActionName

func (action *X2EthereumAction) GetActionName() string

GetActionName get action name

func (*X2EthereumAction) GetAddValidator

func (x *X2EthereumAction) GetAddValidator() *MsgValidator

func (*X2EthereumAction) GetChain33ToEthBurn

func (x *X2EthereumAction) GetChain33ToEthBurn() *Chain33ToEth

func (*X2EthereumAction) GetChain33ToEthLock

func (x *X2EthereumAction) GetChain33ToEthLock() *Chain33ToEth

func (*X2EthereumAction) GetEth2Chain33Burn

func (x *X2EthereumAction) GetEth2Chain33Burn() *Eth2Chain33

func (*X2EthereumAction) GetEth2Chain33Lock

func (x *X2EthereumAction) GetEth2Chain33Lock() *Eth2Chain33

func (*X2EthereumAction) GetModifyPower

func (x *X2EthereumAction) GetModifyPower() *MsgValidator

func (*X2EthereumAction) GetRemoveValidator

func (x *X2EthereumAction) GetRemoveValidator() *MsgValidator

func (*X2EthereumAction) GetSetConsensusThreshold

func (x *X2EthereumAction) GetSetConsensusThreshold() *MsgConsensusThreshold

func (*X2EthereumAction) GetTransfer

func (x *X2EthereumAction) GetTransfer() *types.AssetsTransfer

func (*X2EthereumAction) GetTransferToExec

func (x *X2EthereumAction) GetTransferToExec() *types.AssetsTransferToExec

func (*X2EthereumAction) GetTy

func (x *X2EthereumAction) GetTy() int32

func (*X2EthereumAction) GetValue

func (m *X2EthereumAction) GetValue() isX2EthereumAction_Value

func (*X2EthereumAction) GetWithdrawFromExec

func (x *X2EthereumAction) GetWithdrawFromExec() *types.AssetsWithdraw

func (*X2EthereumAction) ProtoMessage

func (*X2EthereumAction) ProtoMessage()

func (*X2EthereumAction) ProtoReflect added in v1.65.3

func (x *X2EthereumAction) ProtoReflect() protoreflect.Message

func (*X2EthereumAction) Reset

func (x *X2EthereumAction) Reset()

func (*X2EthereumAction) String

func (x *X2EthereumAction) String() string

type X2EthereumAction_AddValidator

type X2EthereumAction_AddValidator struct {
	AddValidator *MsgValidator `protobuf:"bytes,5,opt,name=addValidator,proto3,oneof"`
}

type X2EthereumAction_Chain33ToEthBurn

type X2EthereumAction_Chain33ToEthBurn struct {
	Chain33ToEthBurn *Chain33ToEth `protobuf:"bytes,3,opt,name=chain33ToEthBurn,proto3,oneof"`
}

type X2EthereumAction_Chain33ToEthLock

type X2EthereumAction_Chain33ToEthLock struct {
	Chain33ToEthLock *Chain33ToEth `protobuf:"bytes,4,opt,name=chain33ToEthLock,proto3,oneof"`
}

type X2EthereumAction_Eth2Chain33Burn

type X2EthereumAction_Eth2Chain33Burn struct {
	Eth2Chain33Burn *Eth2Chain33 `protobuf:"bytes,2,opt,name=eth2Chain33Burn,proto3,oneof"`
}

type X2EthereumAction_Eth2Chain33Lock

type X2EthereumAction_Eth2Chain33Lock struct {
	Eth2Chain33Lock *Eth2Chain33 `protobuf:"bytes,1,opt,name=eth2Chain33Lock,proto3,oneof"`
}

type X2EthereumAction_ModifyPower

type X2EthereumAction_ModifyPower struct {
	ModifyPower *MsgValidator `protobuf:"bytes,7,opt,name=modifyPower,proto3,oneof"`
}

type X2EthereumAction_RemoveValidator

type X2EthereumAction_RemoveValidator struct {
	RemoveValidator *MsgValidator `protobuf:"bytes,6,opt,name=removeValidator,proto3,oneof"`
}

type X2EthereumAction_SetConsensusThreshold

type X2EthereumAction_SetConsensusThreshold struct {
	SetConsensusThreshold *MsgConsensusThreshold `protobuf:"bytes,8,opt,name=setConsensusThreshold,proto3,oneof"`
}

type X2EthereumAction_Transfer

type X2EthereumAction_Transfer struct {
	Transfer *types.AssetsTransfer `protobuf:"bytes,9,opt,name=transfer,proto3,oneof"`
}

type X2EthereumAction_TransferToExec

type X2EthereumAction_TransferToExec struct {
	TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,10,opt,name=transferToExec,proto3,oneof"`
}

type X2EthereumAction_WithdrawFromExec

type X2EthereumAction_WithdrawFromExec struct {
	WithdrawFromExec *types.AssetsWithdraw `protobuf:"bytes,11,opt,name=withdrawFromExec,proto3,oneof"`
}

type X2EthereumClient

type X2EthereumClient interface {
}

X2EthereumClient is the client API for X2Ethereum service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewX2EthereumClient

func NewX2EthereumClient(cc grpc.ClientConnInterface) X2EthereumClient

type X2EthereumServer

type X2EthereumServer interface {
}

X2EthereumServer is the server API for X2Ethereum service.

type X2ethereumType

type X2ethereumType struct {
	types.ExecTypeBase
}

X2ethereumType ...

func NewType

func NewType(cfg *types.Chain33Config) *X2ethereumType

NewType ...

func (X2ethereumType) ActionName

func (x X2ethereumType) ActionName(tx *types.Transaction) string

ActionName get PrivacyType action name

func (*X2ethereumType) CreateTx

func (x *X2ethereumType) CreateTx(action string, msg json.RawMessage) (*types.Transaction, error)

CreateTx token 创建合约

func (*X2ethereumType) GetLogMap

func (x *X2ethereumType) GetLogMap() map[int64]*types.LogInfo

GetLogMap 获取合约log相关信息

func (*X2ethereumType) GetName

func (x *X2ethereumType) GetName() string

GetName ...

func (*X2ethereumType) GetPayload

func (x *X2ethereumType) GetPayload() types.Message

GetPayload 获取合约action结构

func (*X2ethereumType) GetTypeMap

func (x *X2ethereumType) GetTypeMap() map[string]int32

GetTypeMap 获取合约action的id和name信息

Jump to

Keyboard shortcuts

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