types

package
v0.0.0-...-77861b7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "pegbridge"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// Byte length of chain ID / nonce occupied
	Uint64ByteArrayLength = 8
	Uint32ByteArrayLength = 4

	PegBridgeFeeDenomPrefix = "PBF-"
)

Variables

View Source
var (
	ErrNoInfoFound               = sdkerrors.Register(ModuleName, 7100, "no info found")
	ErrNoPeggedTokenBridgeFound  = sdkerrors.Register(ModuleName, 7101, "no PeggedTokenBridge found")
	ErrNoOriginalTokenVaultFound = sdkerrors.Register(ModuleName, 7102, "no OriginalTokenVault found")
)

x/pegbridge module sentinel errors

View Source
var (
	OriginalTokenVaultPrefix = []byte{0x01}
	PeggedTokenBridgePrefix  = []byte{0x02}
	OrigPeggedPairPrefix     = []byte{0x03}
	PeggedOrigIndexPrefix    = []byte{0x04}
	DepositInfoPrefix        = []byte{0x05}
	WithdrawInfoPrefix       = []byte{0x06}
	MintInfoPrefix           = []byte{0x07}
	BurnInfoPrefix           = []byte{0x08}
	FeeClaimInfoPrefix       = []byte{0x09}
	TotalSupplyPrefix        = []byte{0x0a}
	RefundPrefix             = []byte{0x0b}
	RefundClaimInfoPrefix    = []byte{0x0c}

	VersionedVaultPrefix  = []byte{0x11}
	VersionedBridgePrefix = []byte{0x12}
	VaultVersionPrefix    = []byte{0x13}
	BridgeVersionPrefix   = []byte{0x14}

	VaultMigrationPrefix = []byte{0x21}

	ConfiscationKeyPrefix = []byte{0x31}

	CfgKeyFeeSplitGlobal = []byte("cfg-feesplit")
)
View Source
var (
	ErrInvalidLengthPegbridge        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPegbridge          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPegbridge = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamStoreKeyTriggerSignCooldown = []byte("triggersigncooldown")
)

Parameter keys

Functions

func GetBridgeVersionKey

func GetBridgeVersionKey(chainId uint64, bridgeAddr *commontypes.Address) []byte

func GetBurnInfoKey

func GetBurnInfoKey(burnId eth.Hash) []byte

func GetChainIdAddressBytes

func GetChainIdAddressBytes(chainId uint64, address *commontypes.Address) []byte

func GetConfiscationKey

func GetConfiscationKey(chainId uint64, token *commontypes.Address) []byte

func GetDepositInfoKey

func GetDepositInfoKey(depositId eth.Hash) []byte

func GetFeeClaimInfoKey

func GetFeeClaimInfoKey(address eth.Addr, nonce uint64) []byte

func GetMintInfoKey

func GetMintInfoKey(mintId eth.Hash) []byte

func GetOrigPeggedByOrigPrefix

func GetOrigPeggedByOrigPrefix(origChainId uint64, origAddress *commontypes.Address) []byte

func GetOrigPeggedByOrigTokenAndPeggedChainIdPrefix

func GetOrigPeggedByOrigTokenAndPeggedChainIdPrefix(origChainId uint64, origAddress *commontypes.Address, peggedChainId uint64) []byte

func GetOrigPeggedPairKey

func GetOrigPeggedPairKey(origChainId uint64, origAddress *commontypes.Address, peggedChainId uint64) []byte

func GetOriginalTokenVaultKey

func GetOriginalTokenVaultKey(chainId uint64) []byte

func GetPeggedOrigIndexKey

func GetPeggedOrigIndexKey(peggedChainId uint64, peggedAddress *commontypes.Address) []byte

func GetPeggedTokenBridgeKey

func GetPeggedTokenBridgeKey(chainId uint64) []byte

func GetRefundClaimInfoKey

func GetRefundClaimInfoKey(depositId eth.Hash) []byte

func GetRefundKey

func GetRefundKey(depositId eth.Hash) []byte

func GetTotalSupplyKey

func GetTotalSupplyKey(peggedChainId uint64, peggedAddress *commontypes.Address) []byte

func GetVaultMigrationByChainPrefix

func GetVaultMigrationByChainPrefix(chainId uint64) []byte

func GetVaultMigrationKey

func GetVaultMigrationKey(chainId uint64, token *commontypes.Address) []byte

func GetVaultVersionKey

func GetVaultVersionKey(chainId uint64, vaultAddr *commontypes.Address) []byte

func GetVersionedBridgeKey

func GetVersionedBridgeKey(chainId uint64, version uint32) []byte

func GetVersionedVaultKey

func GetVersionedVaultKey(chainId uint64, version uint32) []byte

func GetWithdrawInfoKey

func GetWithdrawInfoKey(withdrawId eth.Hash) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func WrapErrNoInfoFound

func WrapErrNoInfoFound(id eth.Hash) error

WrapErrNoInfoFound returns an error if no info is found for an ID

func WrapErrNoOriginalTokenVaultFound

func WrapErrNoOriginalTokenVaultFound(chainId uint64) error

WrapErrNoOriginalTokenVaultFound returns an error if no OriginalTokenVault contract is found for a chainId

func WrapErrNoPeggedTokenBridgeFound

func WrapErrNoPeggedTokenBridgeFound(chainId uint64) error

WrapErrNoPeggedTokenBridgeFound returns an error if no PeggedTokenBridge contract is found for a chainId

Types

type BurnInfo

type BurnInfo struct {
	// chain_id defines the EVM chain ID on which the burn happened.
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// burn_id defines the burn ID.
	BurnId []byte `protobuf:"bytes,2,opt,name=burn_id,json=burnId,proto3" json:"burn_id,omitempty" yaml:"burn_id"`
	// withdraw_id defines the corresponding withdraw ID.
	WithdrawId []byte `protobuf:"bytes,3,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty" yaml:"withdraw_id"`
	// mint_id defines the corresponding mint ID.
	MintId        []byte `protobuf:"bytes,4,opt,name=mint_id,json=mintId,proto3" json:"mint_id,omitempty" yaml:"mint_id"`
	BridgeVersion uint32 `protobuf:"varint,5,opt,name=bridge_version,json=bridgeVersion,proto3" json:"bridge_version,omitempty" yaml:"bridge_version"`
}

BurnInfo describes the info for an on-chain burn tx submitted by a user to PeggedTokenBridge.

func (*BurnInfo) Descriptor

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

func (*BurnInfo) Equal

func (this *BurnInfo) Equal(that interface{}) bool

func (*BurnInfo) GetBridgeVersion

func (m *BurnInfo) GetBridgeVersion() uint32

func (*BurnInfo) GetBurnId

func (m *BurnInfo) GetBurnId() []byte

func (*BurnInfo) GetChainId

func (m *BurnInfo) GetChainId() uint64

func (*BurnInfo) GetMintId

func (m *BurnInfo) GetMintId() []byte

func (*BurnInfo) GetWithdrawId

func (m *BurnInfo) GetWithdrawId() []byte

func (*BurnInfo) Marshal

func (m *BurnInfo) Marshal() (dAtA []byte, err error)

func (*BurnInfo) MarshalTo

func (m *BurnInfo) MarshalTo(dAtA []byte) (int, error)

func (*BurnInfo) MarshalToSizedBuffer

func (m *BurnInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BurnInfo) ProtoMessage

func (*BurnInfo) ProtoMessage()

func (*BurnInfo) Reset

func (m *BurnInfo) Reset()

func (*BurnInfo) Size

func (m *BurnInfo) Size() (n int)

func (*BurnInfo) String

func (b *BurnInfo) String() string

func (*BurnInfo) Unmarshal

func (m *BurnInfo) Unmarshal(dAtA []byte) error

func (*BurnInfo) XXX_DiscardUnknown

func (m *BurnInfo) XXX_DiscardUnknown()

func (*BurnInfo) XXX_Marshal

func (m *BurnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BurnInfo) XXX_Merge

func (m *BurnInfo) XXX_Merge(src proto.Message)

func (*BurnInfo) XXX_Size

func (m *BurnInfo) XXX_Size() int

func (*BurnInfo) XXX_Unmarshal

func (m *BurnInfo) XXX_Unmarshal(b []byte) error

type ContractInfo

type ContractInfo struct {
	Contract types.ContractInfo `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract" yaml:"pegged_token_bridges"`
	Version  uint32             `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty" yaml:"version"`
}

func (*ContractInfo) Descriptor

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

func (*ContractInfo) Equal

func (this *ContractInfo) Equal(that interface{}) bool

func (*ContractInfo) GetContract

func (m *ContractInfo) GetContract() types.ContractInfo

func (*ContractInfo) GetVersion

func (m *ContractInfo) GetVersion() uint32

func (*ContractInfo) Marshal

func (m *ContractInfo) Marshal() (dAtA []byte, err error)

func (*ContractInfo) MarshalTo

func (m *ContractInfo) MarshalTo(dAtA []byte) (int, error)

func (*ContractInfo) MarshalToSizedBuffer

func (m *ContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractInfo) ProtoMessage

func (*ContractInfo) ProtoMessage()

func (*ContractInfo) Reset

func (m *ContractInfo) Reset()

func (*ContractInfo) Size

func (m *ContractInfo) Size() (n int)

func (*ContractInfo) String

func (m *ContractInfo) String() string

func (*ContractInfo) Unmarshal

func (m *ContractInfo) Unmarshal(dAtA []byte) error

func (*ContractInfo) XXX_DiscardUnknown

func (m *ContractInfo) XXX_DiscardUnknown()

func (*ContractInfo) XXX_Marshal

func (m *ContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractInfo) XXX_Merge

func (m *ContractInfo) XXX_Merge(src proto.Message)

func (*ContractInfo) XXX_Size

func (m *ContractInfo) XXX_Size() int

func (*ContractInfo) XXX_Unmarshal

func (m *ContractInfo) XXX_Unmarshal(b []byte) error

type DepositInfo

type DepositInfo struct {
	// chain_id defines the EVM chain ID on which the deposit happened.
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// deposit_id defines the deposit ID.
	DepositId []byte `protobuf:"bytes,2,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty" yaml:"deposit_id"`
	// mint_id defines the corresponding mint ID.
	MintId       []byte `protobuf:"bytes,3,opt,name=mint_id,json=mintId,proto3" json:"mint_id,omitempty" yaml:"mint_id"`
	VaultVersion uint32 `protobuf:"varint,4,opt,name=vault_version,json=vaultVersion,proto3" json:"vault_version,omitempty" yaml:"vault_version"`
}

DepositInfo describes the info for an on-chain deposit tx submitted by a user to OriginalTokenVaults.

func (*DepositInfo) Descriptor

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

func (*DepositInfo) Equal

func (this *DepositInfo) Equal(that interface{}) bool

func (*DepositInfo) GetChainId

func (m *DepositInfo) GetChainId() uint64

func (*DepositInfo) GetDepositId

func (m *DepositInfo) GetDepositId() []byte

func (*DepositInfo) GetMintId

func (m *DepositInfo) GetMintId() []byte

func (*DepositInfo) GetVaultVersion

func (m *DepositInfo) GetVaultVersion() uint32

func (*DepositInfo) Marshal

func (m *DepositInfo) Marshal() (dAtA []byte, err error)

func (*DepositInfo) MarshalTo

func (m *DepositInfo) MarshalTo(dAtA []byte) (int, error)

func (*DepositInfo) MarshalToSizedBuffer

func (m *DepositInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DepositInfo) ProtoMessage

func (*DepositInfo) ProtoMessage()

func (*DepositInfo) Reset

func (m *DepositInfo) Reset()

func (*DepositInfo) Size

func (m *DepositInfo) Size() (n int)

func (*DepositInfo) String

func (d *DepositInfo) String() string

func (*DepositInfo) Unmarshal

func (m *DepositInfo) Unmarshal(dAtA []byte) error

func (*DepositInfo) XXX_DiscardUnknown

func (m *DepositInfo) XXX_DiscardUnknown()

func (*DepositInfo) XXX_Marshal

func (m *DepositInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DepositInfo) XXX_Merge

func (m *DepositInfo) XXX_Merge(src proto.Message)

func (*DepositInfo) XXX_Size

func (m *DepositInfo) XXX_Size() int

func (*DepositInfo) XXX_Unmarshal

func (m *DepositInfo) XXX_Unmarshal(b []byte) error

type FeeClaimInfo

type FeeClaimInfo struct {
	// withdraw_id defines the corresponding withdraw ID
	WithdrawId   []byte `protobuf:"bytes,1,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty" yaml:"withdraw_id"`
	VaultVersion uint32 `protobuf:"varint,2,opt,name=vault_version,json=vaultVersion,proto3" json:"vault_version,omitempty" yaml:"vault_version"`
}

FeeClaimInfo describes the info for a pegbridge fee claim.

func (*FeeClaimInfo) Descriptor

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

func (*FeeClaimInfo) Equal

func (this *FeeClaimInfo) Equal(that interface{}) bool

func (*FeeClaimInfo) GetVaultVersion

func (m *FeeClaimInfo) GetVaultVersion() uint32

func (*FeeClaimInfo) GetWithdrawId

func (m *FeeClaimInfo) GetWithdrawId() []byte

func (*FeeClaimInfo) Marshal

func (m *FeeClaimInfo) Marshal() (dAtA []byte, err error)

func (*FeeClaimInfo) MarshalTo

func (m *FeeClaimInfo) MarshalTo(dAtA []byte) (int, error)

func (*FeeClaimInfo) MarshalToSizedBuffer

func (m *FeeClaimInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeeClaimInfo) ProtoMessage

func (*FeeClaimInfo) ProtoMessage()

func (*FeeClaimInfo) Reset

func (m *FeeClaimInfo) Reset()

func (*FeeClaimInfo) Size

func (m *FeeClaimInfo) Size() (n int)

func (*FeeClaimInfo) String

func (m *FeeClaimInfo) String() string

func (*FeeClaimInfo) Unmarshal

func (m *FeeClaimInfo) Unmarshal(dAtA []byte) error

func (*FeeClaimInfo) XXX_DiscardUnknown

func (m *FeeClaimInfo) XXX_DiscardUnknown()

func (*FeeClaimInfo) XXX_Marshal

func (m *FeeClaimInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeeClaimInfo) XXX_Merge

func (m *FeeClaimInfo) XXX_Merge(src proto.Message)

func (*FeeClaimInfo) XXX_Size

func (m *FeeClaimInfo) XXX_Size() int

func (*FeeClaimInfo) XXX_Unmarshal

func (m *FeeClaimInfo) XXX_Unmarshal(b []byte) error

type FeeSplit

type FeeSplit struct {
	CelerTreasuryFeePerc uint32 `` /* 126-byte string literal not displayed */
	CelerTreasuryAddr    string `protobuf:"bytes,2,opt,name=celer_treasury_addr,json=celerTreasuryAddr,proto3" json:"celer_treasury_addr,omitempty"`
}

Celer treasury is an EOA or a multi-sig wallet. The treasury will share a portion of the peg bridge percentage fee if a config exists. Not that celer_treasury_fee_perc should not exceed 100. The left portion is for sgn.

func (*FeeSplit) Descriptor

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

func (*FeeSplit) Equal

func (this *FeeSplit) Equal(that interface{}) bool

func (*FeeSplit) GetCelerTreasuryAddr

func (m *FeeSplit) GetCelerTreasuryAddr() string

func (*FeeSplit) GetCelerTreasuryFeePerc

func (m *FeeSplit) GetCelerTreasuryFeePerc() uint32

func (*FeeSplit) Marshal

func (m *FeeSplit) Marshal() (dAtA []byte, err error)

func (*FeeSplit) MarshalTo

func (m *FeeSplit) MarshalTo(dAtA []byte) (int, error)

func (*FeeSplit) MarshalToSizedBuffer

func (m *FeeSplit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeeSplit) ProtoMessage

func (*FeeSplit) ProtoMessage()

func (*FeeSplit) Reset

func (m *FeeSplit) Reset()

func (*FeeSplit) Size

func (m *FeeSplit) Size() (n int)

func (*FeeSplit) String

func (m *FeeSplit) String() string

func (*FeeSplit) Unmarshal

func (m *FeeSplit) Unmarshal(dAtA []byte) error

func (*FeeSplit) Validate

func (f *FeeSplit) Validate() error

func (*FeeSplit) XXX_DiscardUnknown

func (m *FeeSplit) XXX_DiscardUnknown()

func (*FeeSplit) XXX_Marshal

func (m *FeeSplit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeeSplit) XXX_Merge

func (m *FeeSplit) XXX_Merge(src proto.Message)

func (*FeeSplit) XXX_Size

func (m *FeeSplit) XXX_Size() int

func (*FeeSplit) XXX_Unmarshal

func (m *FeeSplit) XXX_Unmarshal(b []byte) error

type MigrationInfo

type MigrationInfo struct {
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// token to migrate
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" yaml:"token"`
	// old contract version
	FromVersion uint32 `protobuf:"varint,3,opt,name=from_version,json=fromVersion,proto3" json:"from_version,omitempty" yaml:"from_version"`
	// new contract version
	ToVersion uint32 `protobuf:"varint,4,opt,name=to_version,json=toVersion,proto3" json:"to_version,omitempty" yaml:"to_version"`
	// address of the contract to migrate to
	ToAddress string `protobuf:"bytes,5,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"`
	// eth address of the validator who will execute the migration
	Executor string `protobuf:"bytes,6,opt,name=executor,proto3" json:"executor,omitempty" yaml:"executor"`
}

func (*MigrationInfo) Descriptor

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

func (*MigrationInfo) Equal

func (this *MigrationInfo) Equal(that interface{}) bool

func (*MigrationInfo) GetChainId

func (m *MigrationInfo) GetChainId() uint64

func (*MigrationInfo) GetExecutor

func (m *MigrationInfo) GetExecutor() string

func (*MigrationInfo) GetFromVersion

func (m *MigrationInfo) GetFromVersion() uint32

func (*MigrationInfo) GetToAddress

func (m *MigrationInfo) GetToAddress() string

func (*MigrationInfo) GetToVersion

func (m *MigrationInfo) GetToVersion() uint32

func (*MigrationInfo) GetToken

func (m *MigrationInfo) GetToken() string

func (*MigrationInfo) Marshal

func (m *MigrationInfo) Marshal() (dAtA []byte, err error)

func (*MigrationInfo) MarshalTo

func (m *MigrationInfo) MarshalTo(dAtA []byte) (int, error)

func (*MigrationInfo) MarshalToSizedBuffer

func (m *MigrationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MigrationInfo) ProtoMessage

func (*MigrationInfo) ProtoMessage()

func (*MigrationInfo) Reset

func (m *MigrationInfo) Reset()

func (*MigrationInfo) Size

func (m *MigrationInfo) Size() (n int)

func (*MigrationInfo) String

func (m *MigrationInfo) String() string

func (*MigrationInfo) Unmarshal

func (m *MigrationInfo) Unmarshal(dAtA []byte) error

func (*MigrationInfo) XXX_DiscardUnknown

func (m *MigrationInfo) XXX_DiscardUnknown()

func (*MigrationInfo) XXX_Marshal

func (m *MigrationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MigrationInfo) XXX_Merge

func (m *MigrationInfo) XXX_Merge(src proto.Message)

func (*MigrationInfo) XXX_Size

func (m *MigrationInfo) XXX_Size() int

func (*MigrationInfo) XXX_Unmarshal

func (m *MigrationInfo) XXX_Unmarshal(b []byte) error

type MintInfo

type MintInfo struct {
	// chain_id defines the EVM chain ID to mint the pegged token.
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// mint_proto_bytes defines the serialized mint protobuf to be submitted to PeggedTokenBridge.
	MintProtoBytes []byte `` /* 129-byte string literal not displayed */
	// signatures defines the signatures to be verified on PeggedTokenBridge.
	Signatures []types.Signature `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures" yaml:"signatures"`
	// base_fee defines the base fee charged for the mintage.
	BaseFee string `protobuf:"bytes,4,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty" yaml:"base_fee"`
	// percentage_fee defines the percentage fee charged for the mintage.
	PercentageFee string `protobuf:"bytes,5,opt,name=percentage_fee,json=percentageFee,proto3" json:"percentage_fee,omitempty" yaml:"percentage_fee"`
	// success defines whether the minting has been completed on-chain.
	Success       bool   `protobuf:"varint,6,opt,name=success,proto3" json:"success,omitempty" yaml:"success"`
	LastReqTime   int64  `protobuf:"varint,7,opt,name=last_req_time,json=lastReqTime,proto3" json:"last_req_time,omitempty"`
	BridgeVersion uint32 `protobuf:"varint,8,opt,name=bridge_version,json=bridgeVersion,proto3" json:"bridge_version,omitempty" yaml:"bridge_version"`
}

MintInfo describes the info for an on-chain mint request to be submitted to PeggedTokenBridge.

func (*MintInfo) Descriptor

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

func (*MintInfo) Equal

func (this *MintInfo) Equal(that interface{}) bool

func (*MintInfo) GetAddrSigs

func (m *MintInfo) GetAddrSigs() []*cbrtypes.AddrSig

func (*MintInfo) GetBaseFee

func (m *MintInfo) GetBaseFee() string

func (*MintInfo) GetBridgeVersion

func (m *MintInfo) GetBridgeVersion() uint32

func (*MintInfo) GetChainId

func (m *MintInfo) GetChainId() uint64

func (*MintInfo) GetLastReqTime

func (m *MintInfo) GetLastReqTime() int64

func (*MintInfo) GetMintProtoBytes

func (m *MintInfo) GetMintProtoBytes() []byte

func (*MintInfo) GetPercentageFee

func (m *MintInfo) GetPercentageFee() string

func (*MintInfo) GetSignatures

func (m *MintInfo) GetSignatures() []types.Signature

func (*MintInfo) GetSortedSigsBytes

func (m *MintInfo) GetSortedSigsBytes() [][]byte

func (*MintInfo) GetSuccess

func (m *MintInfo) GetSuccess() bool

func (*MintInfo) Marshal

func (m *MintInfo) Marshal() (dAtA []byte, err error)

func (*MintInfo) MarshalTo

func (m *MintInfo) MarshalTo(dAtA []byte) (int, error)

func (*MintInfo) MarshalToSizedBuffer

func (m *MintInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MintInfo) ProtoMessage

func (*MintInfo) ProtoMessage()

func (*MintInfo) Reset

func (m *MintInfo) Reset()

func (*MintInfo) ShortStr

func (m *MintInfo) ShortStr() string

func (*MintInfo) SignersStr

func (m *MintInfo) SignersStr() string

func (*MintInfo) SigsStr

func (m *MintInfo) SigsStr() string

func (*MintInfo) Size

func (m *MintInfo) Size() (n int)

func (*MintInfo) String

func (m *MintInfo) String() string

func (*MintInfo) Unmarshal

func (m *MintInfo) Unmarshal(dAtA []byte) error

func (*MintInfo) XXX_DiscardUnknown

func (m *MintInfo) XXX_DiscardUnknown()

func (*MintInfo) XXX_Marshal

func (m *MintInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MintInfo) XXX_Merge

func (m *MintInfo) XXX_Merge(src proto.Message)

func (*MintInfo) XXX_Size

func (m *MintInfo) XXX_Size() int

func (*MintInfo) XXX_Unmarshal

func (m *MintInfo) XXX_Unmarshal(b []byte) error

type MintOnChain

type MintOnChain struct {
	// token defines the token address.
	Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// account defines the account address that the tokens should be mint to.
	Account []byte `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// amount defines the mint amount.
	Amount []byte `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// depositor defines the account address that made deposit at the original token chain.
	// Not applicable to refund claims and governance-triggered mints.
	Depositor []byte `protobuf:"bytes,4,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// ref_chain_id defines the reference chain ID, taking values of:
	// 1. The common case of deposit-mint: the chain ID on which the corresponding deposit happened;
	// 2. Pegbridge refund claim: the chain ID on which the corresponding burn happened;
	// 3. Governance-triggered mint: the chain ID on which the minting will happen.
	RefChainId uint64 `protobuf:"varint,5,opt,name=ref_chain_id,json=refChainId,proto3" json:"ref_chain_id,omitempty"`
	// ref_id defines a unique reference ID, taking values of:
	// 1. The common case of deposit-mint: the deposit ID;
	// 2. Refund for wrong burn: the burn ID;
	// 3. Governance-triggered mint: ID as needed.
	RefId []byte `protobuf:"bytes,6,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
}

MintOnChain describes the mint protobuf to be submitted on-chain.

func (*MintOnChain) Descriptor

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

func (*MintOnChain) Equal

func (this *MintOnChain) Equal(that interface{}) bool

func (*MintOnChain) GetAccount

func (m *MintOnChain) GetAccount() []byte

func (*MintOnChain) GetAmount

func (m *MintOnChain) GetAmount() []byte

func (*MintOnChain) GetDepositor

func (m *MintOnChain) GetDepositor() []byte

func (*MintOnChain) GetRefChainId

func (m *MintOnChain) GetRefChainId() uint64

func (*MintOnChain) GetRefId

func (m *MintOnChain) GetRefId() []byte

func (*MintOnChain) GetToken

func (m *MintOnChain) GetToken() []byte

func (*MintOnChain) Marshal

func (m *MintOnChain) Marshal() (dAtA []byte, err error)

func (*MintOnChain) MarshalTo

func (m *MintOnChain) MarshalTo(dAtA []byte) (int, error)

func (*MintOnChain) MarshalToSizedBuffer

func (m *MintOnChain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MintOnChain) ProtoMessage

func (*MintOnChain) ProtoMessage()

func (*MintOnChain) Reset

func (m *MintOnChain) Reset()

func (*MintOnChain) Size

func (m *MintOnChain) Size() (n int)

func (*MintOnChain) String

func (m *MintOnChain) String() string

func (*MintOnChain) Unmarshal

func (m *MintOnChain) Unmarshal(dAtA []byte) error

func (*MintOnChain) XXX_DiscardUnknown

func (m *MintOnChain) XXX_DiscardUnknown()

func (*MintOnChain) XXX_Marshal

func (m *MintOnChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MintOnChain) XXX_Merge

func (m *MintOnChain) XXX_Merge(src proto.Message)

func (*MintOnChain) XXX_Size

func (m *MintOnChain) XXX_Size() int

func (*MintOnChain) XXX_Unmarshal

func (m *MintOnChain) XXX_Unmarshal(b []byte) error

type MsgClaimFee

type MsgClaimFee struct {
	// delegator_address defines the delegator's Ethereum address.
	DelegatorAddress string `` /* 134-byte string literal not displayed */
	// chain_id defines the EVM chain ID for which the fees are claimed.
	ChainId uint64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// token_address defines the fee token address.
	TokenAddress string `protobuf:"bytes,3,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty" yaml:"token_address"`
	// nonce defines a per-account nonce for the claim. Can be timestamp in practice.
	Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty" yaml:"nonce"`
	// signature defines a delegator signature of:
	// keccak256(abi.encodePacked("PegClaimFee", delegator_address, chain_id, token_address, nonce))
	Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"`
	// sender defines the SGN account sending the claim Msg.
	Sender      string `protobuf:"bytes,6,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	IsValidator bool   `protobuf:"varint,7,opt,name=is_validator,json=isValidator,proto3" json:"is_validator,omitempty" yaml:"is_validator"`
	// delegator can specify another receiver addr to receive the fee
	// by default fee will be sent to "delegator_address" if "receiver" is not specified
	Receiver string `protobuf:"bytes,8,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

MsgClaimFee defines the Msg/ClaimFee request type.

func NewMsgClaimFee

func NewMsgClaimFee(
	delAddress string, chainId uint64, tokenAddress string, nonce uint64, sender string) *MsgClaimFee

func (*MsgClaimFee) Descriptor

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

func (*MsgClaimFee) GetSignBytes

func (msg *MsgClaimFee) GetSignBytes() []byte

func (*MsgClaimFee) GetSigners

func (msg *MsgClaimFee) GetSigners() []sdk.AccAddress

func (*MsgClaimFee) Marshal

func (m *MsgClaimFee) Marshal() (dAtA []byte, err error)

func (*MsgClaimFee) MarshalTo

func (m *MsgClaimFee) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimFee) MarshalToSizedBuffer

func (m *MsgClaimFee) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimFee) ProtoMessage

func (*MsgClaimFee) ProtoMessage()

func (*MsgClaimFee) Reset

func (m *MsgClaimFee) Reset()

func (*MsgClaimFee) Route

func (msg *MsgClaimFee) Route() string

func (*MsgClaimFee) Size

func (m *MsgClaimFee) Size() (n int)

func (*MsgClaimFee) String

func (m *MsgClaimFee) String() string

func (*MsgClaimFee) Type

func (msg *MsgClaimFee) Type() string

func (*MsgClaimFee) Unmarshal

func (m *MsgClaimFee) Unmarshal(dAtA []byte) error

func (*MsgClaimFee) ValidateBasic

func (msg *MsgClaimFee) ValidateBasic() error

func (*MsgClaimFee) XXX_DiscardUnknown

func (m *MsgClaimFee) XXX_DiscardUnknown()

func (*MsgClaimFee) XXX_Marshal

func (m *MsgClaimFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimFee) XXX_Merge

func (m *MsgClaimFee) XXX_Merge(src proto.Message)

func (*MsgClaimFee) XXX_Size

func (m *MsgClaimFee) XXX_Size() int

func (*MsgClaimFee) XXX_Unmarshal

func (m *MsgClaimFee) XXX_Unmarshal(b []byte) error

type MsgClaimFeeResponse

type MsgClaimFeeResponse struct {
}

MsgClaimFeeResponse defines the Msg/ClaimFee response type.

func (*MsgClaimFeeResponse) Descriptor

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

func (*MsgClaimFeeResponse) Equal

func (this *MsgClaimFeeResponse) Equal(that interface{}) bool

func (*MsgClaimFeeResponse) Marshal

func (m *MsgClaimFeeResponse) Marshal() (dAtA []byte, err error)

func (*MsgClaimFeeResponse) MarshalTo

func (m *MsgClaimFeeResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimFeeResponse) MarshalToSizedBuffer

func (m *MsgClaimFeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimFeeResponse) ProtoMessage

func (*MsgClaimFeeResponse) ProtoMessage()

func (*MsgClaimFeeResponse) Reset

func (m *MsgClaimFeeResponse) Reset()

func (*MsgClaimFeeResponse) Size

func (m *MsgClaimFeeResponse) Size() (n int)

func (*MsgClaimFeeResponse) String

func (m *MsgClaimFeeResponse) String() string

func (*MsgClaimFeeResponse) Unmarshal

func (m *MsgClaimFeeResponse) Unmarshal(dAtA []byte) error

func (*MsgClaimFeeResponse) XXX_DiscardUnknown

func (m *MsgClaimFeeResponse) XXX_DiscardUnknown()

func (*MsgClaimFeeResponse) XXX_Marshal

func (m *MsgClaimFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimFeeResponse) XXX_Merge

func (m *MsgClaimFeeResponse) XXX_Merge(src proto.Message)

func (*MsgClaimFeeResponse) XXX_Size

func (m *MsgClaimFeeResponse) XXX_Size() int

func (*MsgClaimFeeResponse) XXX_Unmarshal

func (m *MsgClaimFeeResponse) XXX_Unmarshal(b []byte) error

type MsgClaimRefund

type MsgClaimRefund struct {
	// ref_id defines the reference ID, represents the deposit/burn to be refunded
	RefId string `protobuf:"bytes,1,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty" yaml:"ref_id"`
	// sender defines the SGN account sending this Msg
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgClaimRefund defines the Msg/ClaimRefund request type.

func NewMsgClaimRefund

func NewMsgClaimRefund(sender string) *MsgClaimRefund

func (*MsgClaimRefund) Descriptor

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

func (*MsgClaimRefund) Equal

func (this *MsgClaimRefund) Equal(that interface{}) bool

func (*MsgClaimRefund) GetRefId

func (m *MsgClaimRefund) GetRefId() string

func (*MsgClaimRefund) GetSender

func (m *MsgClaimRefund) GetSender() string

func (*MsgClaimRefund) GetSignBytes

func (msg *MsgClaimRefund) GetSignBytes() []byte

func (*MsgClaimRefund) GetSigners

func (msg *MsgClaimRefund) GetSigners() []sdk.AccAddress

func (*MsgClaimRefund) Marshal

func (m *MsgClaimRefund) Marshal() (dAtA []byte, err error)

func (*MsgClaimRefund) MarshalTo

func (m *MsgClaimRefund) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimRefund) MarshalToSizedBuffer

func (m *MsgClaimRefund) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimRefund) ProtoMessage

func (*MsgClaimRefund) ProtoMessage()

func (*MsgClaimRefund) Reset

func (m *MsgClaimRefund) Reset()

func (*MsgClaimRefund) Route

func (msg *MsgClaimRefund) Route() string

func (*MsgClaimRefund) Size

func (m *MsgClaimRefund) Size() (n int)

func (*MsgClaimRefund) String

func (m *MsgClaimRefund) String() string

func (*MsgClaimRefund) Type

func (msg *MsgClaimRefund) Type() string

func (*MsgClaimRefund) Unmarshal

func (m *MsgClaimRefund) Unmarshal(dAtA []byte) error

func (*MsgClaimRefund) ValidateBasic

func (msg *MsgClaimRefund) ValidateBasic() error

func (*MsgClaimRefund) XXX_DiscardUnknown

func (m *MsgClaimRefund) XXX_DiscardUnknown()

func (*MsgClaimRefund) XXX_Marshal

func (m *MsgClaimRefund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimRefund) XXX_Merge

func (m *MsgClaimRefund) XXX_Merge(src proto.Message)

func (*MsgClaimRefund) XXX_Size

func (m *MsgClaimRefund) XXX_Size() int

func (*MsgClaimRefund) XXX_Unmarshal

func (m *MsgClaimRefund) XXX_Unmarshal(b []byte) error

type MsgClaimRefundResponse

type MsgClaimRefundResponse struct {
}

MsgClaimRefundResponse defines the Msg/ClaimRefund response type.

func (*MsgClaimRefundResponse) Descriptor

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

func (*MsgClaimRefundResponse) Equal

func (this *MsgClaimRefundResponse) Equal(that interface{}) bool

func (*MsgClaimRefundResponse) Marshal

func (m *MsgClaimRefundResponse) Marshal() (dAtA []byte, err error)

func (*MsgClaimRefundResponse) MarshalTo

func (m *MsgClaimRefundResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimRefundResponse) MarshalToSizedBuffer

func (m *MsgClaimRefundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimRefundResponse) ProtoMessage

func (*MsgClaimRefundResponse) ProtoMessage()

func (*MsgClaimRefundResponse) Reset

func (m *MsgClaimRefundResponse) Reset()

func (*MsgClaimRefundResponse) Size

func (m *MsgClaimRefundResponse) Size() (n int)

func (*MsgClaimRefundResponse) String

func (m *MsgClaimRefundResponse) String() string

func (*MsgClaimRefundResponse) Unmarshal

func (m *MsgClaimRefundResponse) Unmarshal(dAtA []byte) error

func (*MsgClaimRefundResponse) XXX_DiscardUnknown

func (m *MsgClaimRefundResponse) XXX_DiscardUnknown()

func (*MsgClaimRefundResponse) XXX_Marshal

func (m *MsgClaimRefundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimRefundResponse) XXX_Merge

func (m *MsgClaimRefundResponse) XXX_Merge(src proto.Message)

func (*MsgClaimRefundResponse) XXX_Size

func (m *MsgClaimRefundResponse) XXX_Size() int

func (*MsgClaimRefundResponse) XXX_Unmarshal

func (m *MsgClaimRefundResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// SignMint defines a method for validators to co-sign a mint request to
	// a PeggedTokenBridge contract.
	SignMint(ctx context.Context, in *MsgSignMint, opts ...grpc.CallOption) (*MsgSignMintResponse, error)
	// SignWithdraw defines a method for validators to co-sign a withdraw request to
	// an OriginalTokenVault contract.
	SignWithdraw(ctx context.Context, in *MsgSignWithdraw, opts ...grpc.CallOption) (*MsgSignWithdrawResponse, error)
	// TriggerSignMint defines a method to trigger validators to co-sign a mint request.
	// Used if automatic event syncing failed.
	TriggerSignMint(ctx context.Context, in *MsgTriggerSignMint, opts ...grpc.CallOption) (*MsgTriggerSignMintResponse, error)
	// TriggerSignWithdraw defines a method to trigger validators to co-sign a withdraw request.
	// Used if automatic event syncing failed.
	TriggerSignWithdraw(ctx context.Context, in *MsgTriggerSignWithdraw, opts ...grpc.CallOption) (*MsgTriggerSignWithdrawResponse, error)
	// ClaimFee defines a method for SGN delegators to trigger a claim of pegbridge fee.
	ClaimFee(ctx context.Context, in *MsgClaimFee, opts ...grpc.CallOption) (*MsgClaimFeeResponse, error)
	// ClaimRefund defines a method to trigger a refund process
	ClaimRefund(ctx context.Context, in *MsgClaimRefund, opts ...grpc.CallOption) (*MsgClaimRefundResponse, error)
	// MigrateVault defines a method to trigger a vault migration process
	MigrateVault(ctx context.Context, in *MsgMigrateVault, opts ...grpc.CallOption) (*MsgMigrateVaultResponse, error)
	// ResetTotalSupply defines a method for certain validator to trigger a process
	// to reset some tokens' current totalSupply. Temporarily used.
	ResetTotalSupply(ctx context.Context, in *MsgResetTotalSupply, opts ...grpc.CallOption) (*MsgResetTotalSupplyResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgMigrateVault

type MsgMigrateVault struct {
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	Token   string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" yaml:"token"`
	Amount  string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"`
	// to_address defines the address of the contract to migrate to
	ToAddress string `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"`
	// sender defines the SGN account sending this Msg
	Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

func NewMsgMigrateVault

func NewMsgMigrateVault(chainId uint64, token, amount, toAddress, sender string) *MsgMigrateVault

func (*MsgMigrateVault) Descriptor

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

func (*MsgMigrateVault) Equal

func (this *MsgMigrateVault) Equal(that interface{}) bool

func (*MsgMigrateVault) GetAmount

func (m *MsgMigrateVault) GetAmount() string

func (*MsgMigrateVault) GetChainId

func (m *MsgMigrateVault) GetChainId() uint64

func (*MsgMigrateVault) GetSender

func (m *MsgMigrateVault) GetSender() string

func (*MsgMigrateVault) GetSignBytes

func (msg *MsgMigrateVault) GetSignBytes() []byte

func (*MsgMigrateVault) GetSigners

func (msg *MsgMigrateVault) GetSigners() []sdk.AccAddress

func (*MsgMigrateVault) GetToAddress

func (m *MsgMigrateVault) GetToAddress() string

func (*MsgMigrateVault) GetToken

func (m *MsgMigrateVault) GetToken() string

func (*MsgMigrateVault) Marshal

func (m *MsgMigrateVault) Marshal() (dAtA []byte, err error)

func (*MsgMigrateVault) MarshalTo

func (m *MsgMigrateVault) MarshalTo(dAtA []byte) (int, error)

func (*MsgMigrateVault) MarshalToSizedBuffer

func (m *MsgMigrateVault) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMigrateVault) ProtoMessage

func (*MsgMigrateVault) ProtoMessage()

func (*MsgMigrateVault) Reset

func (m *MsgMigrateVault) Reset()

func (*MsgMigrateVault) Route

func (msg *MsgMigrateVault) Route() string

func (*MsgMigrateVault) Size

func (m *MsgMigrateVault) Size() (n int)

func (*MsgMigrateVault) String

func (m *MsgMigrateVault) String() string

func (*MsgMigrateVault) Type

func (msg *MsgMigrateVault) Type() string

func (*MsgMigrateVault) Unmarshal

func (m *MsgMigrateVault) Unmarshal(dAtA []byte) error

func (*MsgMigrateVault) ValidateBasic

func (msg *MsgMigrateVault) ValidateBasic() error

func (*MsgMigrateVault) XXX_DiscardUnknown

func (m *MsgMigrateVault) XXX_DiscardUnknown()

func (*MsgMigrateVault) XXX_Marshal

func (m *MsgMigrateVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMigrateVault) XXX_Merge

func (m *MsgMigrateVault) XXX_Merge(src proto.Message)

func (*MsgMigrateVault) XXX_Size

func (m *MsgMigrateVault) XXX_Size() int

func (*MsgMigrateVault) XXX_Unmarshal

func (m *MsgMigrateVault) XXX_Unmarshal(b []byte) error

type MsgMigrateVaultResponse

type MsgMigrateVaultResponse struct {
}

func (*MsgMigrateVaultResponse) Descriptor

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

func (*MsgMigrateVaultResponse) Equal

func (this *MsgMigrateVaultResponse) Equal(that interface{}) bool

func (*MsgMigrateVaultResponse) Marshal

func (m *MsgMigrateVaultResponse) Marshal() (dAtA []byte, err error)

func (*MsgMigrateVaultResponse) MarshalTo

func (m *MsgMigrateVaultResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgMigrateVaultResponse) MarshalToSizedBuffer

func (m *MsgMigrateVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMigrateVaultResponse) ProtoMessage

func (*MsgMigrateVaultResponse) ProtoMessage()

func (*MsgMigrateVaultResponse) Reset

func (m *MsgMigrateVaultResponse) Reset()

func (*MsgMigrateVaultResponse) Size

func (m *MsgMigrateVaultResponse) Size() (n int)

func (*MsgMigrateVaultResponse) String

func (m *MsgMigrateVaultResponse) String() string

func (*MsgMigrateVaultResponse) Unmarshal

func (m *MsgMigrateVaultResponse) Unmarshal(dAtA []byte) error

func (*MsgMigrateVaultResponse) XXX_DiscardUnknown

func (m *MsgMigrateVaultResponse) XXX_DiscardUnknown()

func (*MsgMigrateVaultResponse) XXX_Marshal

func (m *MsgMigrateVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMigrateVaultResponse) XXX_Merge

func (m *MsgMigrateVaultResponse) XXX_Merge(src proto.Message)

func (*MsgMigrateVaultResponse) XXX_Size

func (m *MsgMigrateVaultResponse) XXX_Size() int

func (*MsgMigrateVaultResponse) XXX_Unmarshal

func (m *MsgMigrateVaultResponse) XXX_Unmarshal(b []byte) error

type MsgResetTotalSupply

type MsgResetTotalSupply struct {
	// chain_id defines the chain ID, on which token you reset is deployed
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// token_address defines the token address
	TokenAddress string `protobuf:"bytes,2,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty" yaml:"token_address"`
	// total_supply defines the total supply amount you wanna set
	TotalSupply string `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty" yaml:"total_supply"`
	// sender defines the SGN account sending this Msg
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgResetTotalSupply defines the Msg/ResetTotalSupply request type.

func NewMsgResetTotalSupply

func NewMsgResetTotalSupply(sender string) *MsgResetTotalSupply

func (*MsgResetTotalSupply) Descriptor

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

func (*MsgResetTotalSupply) Equal

func (this *MsgResetTotalSupply) Equal(that interface{}) bool

func (*MsgResetTotalSupply) GetChainId

func (m *MsgResetTotalSupply) GetChainId() uint64

func (*MsgResetTotalSupply) GetSender

func (m *MsgResetTotalSupply) GetSender() string

func (*MsgResetTotalSupply) GetSignBytes

func (msg *MsgResetTotalSupply) GetSignBytes() []byte

func (*MsgResetTotalSupply) GetSigners

func (msg *MsgResetTotalSupply) GetSigners() []sdk.AccAddress

func (*MsgResetTotalSupply) GetTokenAddress

func (m *MsgResetTotalSupply) GetTokenAddress() string

func (*MsgResetTotalSupply) GetTotalSupply

func (m *MsgResetTotalSupply) GetTotalSupply() string

func (*MsgResetTotalSupply) Marshal

func (m *MsgResetTotalSupply) Marshal() (dAtA []byte, err error)

func (*MsgResetTotalSupply) MarshalTo

func (m *MsgResetTotalSupply) MarshalTo(dAtA []byte) (int, error)

func (*MsgResetTotalSupply) MarshalToSizedBuffer

func (m *MsgResetTotalSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgResetTotalSupply) ProtoMessage

func (*MsgResetTotalSupply) ProtoMessage()

func (*MsgResetTotalSupply) Reset

func (m *MsgResetTotalSupply) Reset()

func (*MsgResetTotalSupply) Route

func (msg *MsgResetTotalSupply) Route() string

func (*MsgResetTotalSupply) Size

func (m *MsgResetTotalSupply) Size() (n int)

func (*MsgResetTotalSupply) String

func (m *MsgResetTotalSupply) String() string

func (*MsgResetTotalSupply) Type

func (msg *MsgResetTotalSupply) Type() string

func (*MsgResetTotalSupply) Unmarshal

func (m *MsgResetTotalSupply) Unmarshal(dAtA []byte) error

func (*MsgResetTotalSupply) ValidateBasic

func (msg *MsgResetTotalSupply) ValidateBasic() error

func (*MsgResetTotalSupply) XXX_DiscardUnknown

func (m *MsgResetTotalSupply) XXX_DiscardUnknown()

func (*MsgResetTotalSupply) XXX_Marshal

func (m *MsgResetTotalSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgResetTotalSupply) XXX_Merge

func (m *MsgResetTotalSupply) XXX_Merge(src proto.Message)

func (*MsgResetTotalSupply) XXX_Size

func (m *MsgResetTotalSupply) XXX_Size() int

func (*MsgResetTotalSupply) XXX_Unmarshal

func (m *MsgResetTotalSupply) XXX_Unmarshal(b []byte) error

type MsgResetTotalSupplyResponse

type MsgResetTotalSupplyResponse struct {
}

MsgResetTotalSupplyResponse defines the Msg/ResetTotalSupply response type.

func (*MsgResetTotalSupplyResponse) Descriptor

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

func (*MsgResetTotalSupplyResponse) Equal

func (this *MsgResetTotalSupplyResponse) Equal(that interface{}) bool

func (*MsgResetTotalSupplyResponse) Marshal

func (m *MsgResetTotalSupplyResponse) Marshal() (dAtA []byte, err error)

func (*MsgResetTotalSupplyResponse) MarshalTo

func (m *MsgResetTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgResetTotalSupplyResponse) MarshalToSizedBuffer

func (m *MsgResetTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgResetTotalSupplyResponse) ProtoMessage

func (*MsgResetTotalSupplyResponse) ProtoMessage()

func (*MsgResetTotalSupplyResponse) Reset

func (m *MsgResetTotalSupplyResponse) Reset()

func (*MsgResetTotalSupplyResponse) Size

func (m *MsgResetTotalSupplyResponse) Size() (n int)

func (*MsgResetTotalSupplyResponse) String

func (m *MsgResetTotalSupplyResponse) String() string

func (*MsgResetTotalSupplyResponse) Unmarshal

func (m *MsgResetTotalSupplyResponse) Unmarshal(dAtA []byte) error

func (*MsgResetTotalSupplyResponse) XXX_DiscardUnknown

func (m *MsgResetTotalSupplyResponse) XXX_DiscardUnknown()

func (*MsgResetTotalSupplyResponse) XXX_Marshal

func (m *MsgResetTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgResetTotalSupplyResponse) XXX_Merge

func (m *MsgResetTotalSupplyResponse) XXX_Merge(src proto.Message)

func (*MsgResetTotalSupplyResponse) XXX_Size

func (m *MsgResetTotalSupplyResponse) XXX_Size() int

func (*MsgResetTotalSupplyResponse) XXX_Unmarshal

func (m *MsgResetTotalSupplyResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// SignMint defines a method for validators to co-sign a mint request to
	// a PeggedTokenBridge contract.
	SignMint(context.Context, *MsgSignMint) (*MsgSignMintResponse, error)
	// SignWithdraw defines a method for validators to co-sign a withdraw request to
	// an OriginalTokenVault contract.
	SignWithdraw(context.Context, *MsgSignWithdraw) (*MsgSignWithdrawResponse, error)
	// TriggerSignMint defines a method to trigger validators to co-sign a mint request.
	// Used if automatic event syncing failed.
	TriggerSignMint(context.Context, *MsgTriggerSignMint) (*MsgTriggerSignMintResponse, error)
	// TriggerSignWithdraw defines a method to trigger validators to co-sign a withdraw request.
	// Used if automatic event syncing failed.
	TriggerSignWithdraw(context.Context, *MsgTriggerSignWithdraw) (*MsgTriggerSignWithdrawResponse, error)
	// ClaimFee defines a method for SGN delegators to trigger a claim of pegbridge fee.
	ClaimFee(context.Context, *MsgClaimFee) (*MsgClaimFeeResponse, error)
	// ClaimRefund defines a method to trigger a refund process
	ClaimRefund(context.Context, *MsgClaimRefund) (*MsgClaimRefundResponse, error)
	// MigrateVault defines a method to trigger a vault migration process
	MigrateVault(context.Context, *MsgMigrateVault) (*MsgMigrateVaultResponse, error)
	// ResetTotalSupply defines a method for certain validator to trigger a process
	// to reset some tokens' current totalSupply. Temporarily used.
	ResetTotalSupply(context.Context, *MsgResetTotalSupply) (*MsgResetTotalSupplyResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSignMint

type MsgSignMint struct {
	// mint_id defines the mint ID calculated with
	// keccak256(abi.encodePacked("mint", request.token, request.account, request.amount, request.nonce));
	MintId string `protobuf:"bytes,1,opt,name=mint_id,json=mintId,proto3" json:"mint_id,omitempty" yaml:"mint_id"`
	// sender defines the SGN account sending the signing Msg.
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// signature defines the signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"`
}

MsgSignMint signs a mint request.

func NewMsgSignMint

func NewMsgSignMint(sender string) *MsgSignMint

func (*MsgSignMint) Descriptor

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

func (*MsgSignMint) GetSignBytes

func (msg *MsgSignMint) GetSignBytes() []byte

func (*MsgSignMint) GetSigners

func (msg *MsgSignMint) GetSigners() []sdk.AccAddress

func (*MsgSignMint) Marshal

func (m *MsgSignMint) Marshal() (dAtA []byte, err error)

func (*MsgSignMint) MarshalTo

func (m *MsgSignMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgSignMint) MarshalToSizedBuffer

func (m *MsgSignMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSignMint) ProtoMessage

func (*MsgSignMint) ProtoMessage()

func (*MsgSignMint) Reset

func (m *MsgSignMint) Reset()

func (*MsgSignMint) Route

func (msg *MsgSignMint) Route() string

func (*MsgSignMint) Size

func (m *MsgSignMint) Size() (n int)

func (*MsgSignMint) String

func (m *MsgSignMint) String() string

func (*MsgSignMint) Type

func (msg *MsgSignMint) Type() string

func (*MsgSignMint) Unmarshal

func (m *MsgSignMint) Unmarshal(dAtA []byte) error

func (*MsgSignMint) ValidateBasic

func (msg *MsgSignMint) ValidateBasic() error

func (*MsgSignMint) XXX_DiscardUnknown

func (m *MsgSignMint) XXX_DiscardUnknown()

func (*MsgSignMint) XXX_Marshal

func (m *MsgSignMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSignMint) XXX_Merge

func (m *MsgSignMint) XXX_Merge(src proto.Message)

func (*MsgSignMint) XXX_Size

func (m *MsgSignMint) XXX_Size() int

func (*MsgSignMint) XXX_Unmarshal

func (m *MsgSignMint) XXX_Unmarshal(b []byte) error

type MsgSignMintResponse

type MsgSignMintResponse struct {
}

MsgSignMintResponse defines the Msg/SignMint response type.

func (*MsgSignMintResponse) Descriptor

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

func (*MsgSignMintResponse) Equal

func (this *MsgSignMintResponse) Equal(that interface{}) bool

func (*MsgSignMintResponse) Marshal

func (m *MsgSignMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgSignMintResponse) MarshalTo

func (m *MsgSignMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSignMintResponse) MarshalToSizedBuffer

func (m *MsgSignMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSignMintResponse) ProtoMessage

func (*MsgSignMintResponse) ProtoMessage()

func (*MsgSignMintResponse) Reset

func (m *MsgSignMintResponse) Reset()

func (*MsgSignMintResponse) Size

func (m *MsgSignMintResponse) Size() (n int)

func (*MsgSignMintResponse) String

func (m *MsgSignMintResponse) String() string

func (*MsgSignMintResponse) Unmarshal

func (m *MsgSignMintResponse) Unmarshal(dAtA []byte) error

func (*MsgSignMintResponse) XXX_DiscardUnknown

func (m *MsgSignMintResponse) XXX_DiscardUnknown()

func (*MsgSignMintResponse) XXX_Marshal

func (m *MsgSignMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSignMintResponse) XXX_Merge

func (m *MsgSignMintResponse) XXX_Merge(src proto.Message)

func (*MsgSignMintResponse) XXX_Size

func (m *MsgSignMintResponse) XXX_Size() int

func (*MsgSignMintResponse) XXX_Unmarshal

func (m *MsgSignMintResponse) XXX_Unmarshal(b []byte) error

type MsgSignWithdraw

type MsgSignWithdraw struct {
	// withdraw_id defines the withdraw ID calculated with
	// keccak256(abi.encodePacked(request.receiver, request.token, request.amount, request.burnChainId, request.nonce)
	WithdrawId string `protobuf:"bytes,1,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty" yaml:"withdraw_id"`
	// sender defines the SGN account sending the signing Msg.
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// signature defines the signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"`
}

MsgSignWithdraw signs a mint request.

func NewMsgSignWithdraw

func NewMsgSignWithdraw(sender string) *MsgSignWithdraw

func (*MsgSignWithdraw) Descriptor

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

func (*MsgSignWithdraw) GetSignBytes

func (msg *MsgSignWithdraw) GetSignBytes() []byte

func (*MsgSignWithdraw) GetSigners

func (msg *MsgSignWithdraw) GetSigners() []sdk.AccAddress

func (*MsgSignWithdraw) Marshal

func (m *MsgSignWithdraw) Marshal() (dAtA []byte, err error)

func (*MsgSignWithdraw) MarshalTo

func (m *MsgSignWithdraw) MarshalTo(dAtA []byte) (int, error)

func (*MsgSignWithdraw) MarshalToSizedBuffer

func (m *MsgSignWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSignWithdraw) ProtoMessage

func (*MsgSignWithdraw) ProtoMessage()

func (*MsgSignWithdraw) Reset

func (m *MsgSignWithdraw) Reset()

func (*MsgSignWithdraw) Route

func (msg *MsgSignWithdraw) Route() string

func (*MsgSignWithdraw) Size

func (m *MsgSignWithdraw) Size() (n int)

func (*MsgSignWithdraw) String

func (m *MsgSignWithdraw) String() string

func (*MsgSignWithdraw) Type

func (msg *MsgSignWithdraw) Type() string

func (*MsgSignWithdraw) Unmarshal

func (m *MsgSignWithdraw) Unmarshal(dAtA []byte) error

func (*MsgSignWithdraw) ValidateBasic

func (msg *MsgSignWithdraw) ValidateBasic() error

func (*MsgSignWithdraw) XXX_DiscardUnknown

func (m *MsgSignWithdraw) XXX_DiscardUnknown()

func (*MsgSignWithdraw) XXX_Marshal

func (m *MsgSignWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSignWithdraw) XXX_Merge

func (m *MsgSignWithdraw) XXX_Merge(src proto.Message)

func (*MsgSignWithdraw) XXX_Size

func (m *MsgSignWithdraw) XXX_Size() int

func (*MsgSignWithdraw) XXX_Unmarshal

func (m *MsgSignWithdraw) XXX_Unmarshal(b []byte) error

type MsgSignWithdrawResponse

type MsgSignWithdrawResponse struct {
}

MsgSignWithdrawResponse defines the Msg/SignWithdraw response type.

func (*MsgSignWithdrawResponse) Descriptor

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

func (*MsgSignWithdrawResponse) Equal

func (this *MsgSignWithdrawResponse) Equal(that interface{}) bool

func (*MsgSignWithdrawResponse) Marshal

func (m *MsgSignWithdrawResponse) Marshal() (dAtA []byte, err error)

func (*MsgSignWithdrawResponse) MarshalTo

func (m *MsgSignWithdrawResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSignWithdrawResponse) MarshalToSizedBuffer

func (m *MsgSignWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSignWithdrawResponse) ProtoMessage

func (*MsgSignWithdrawResponse) ProtoMessage()

func (*MsgSignWithdrawResponse) Reset

func (m *MsgSignWithdrawResponse) Reset()

func (*MsgSignWithdrawResponse) Size

func (m *MsgSignWithdrawResponse) Size() (n int)

func (*MsgSignWithdrawResponse) String

func (m *MsgSignWithdrawResponse) String() string

func (*MsgSignWithdrawResponse) Unmarshal

func (m *MsgSignWithdrawResponse) Unmarshal(dAtA []byte) error

func (*MsgSignWithdrawResponse) XXX_DiscardUnknown

func (m *MsgSignWithdrawResponse) XXX_DiscardUnknown()

func (*MsgSignWithdrawResponse) XXX_Marshal

func (m *MsgSignWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSignWithdrawResponse) XXX_Merge

func (m *MsgSignWithdrawResponse) XXX_Merge(src proto.Message)

func (*MsgSignWithdrawResponse) XXX_Size

func (m *MsgSignWithdrawResponse) XXX_Size() int

func (*MsgSignWithdrawResponse) XXX_Unmarshal

func (m *MsgSignWithdrawResponse) XXX_Unmarshal(b []byte) error

type MsgTriggerSignMint

type MsgTriggerSignMint struct {
	// mint_id defines the mint ID
	MintId string `protobuf:"bytes,1,opt,name=mint_id,json=mintId,proto3" json:"mint_id,omitempty"`
	// sender defines the SGN account sending the trigger Msg.
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
}

func NewMsgTriggerSignMint

func NewMsgTriggerSignMint(sender string) *MsgTriggerSignMint

func (*MsgTriggerSignMint) Descriptor

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

func (*MsgTriggerSignMint) GetSignBytes

func (msg *MsgTriggerSignMint) GetSignBytes() []byte

func (*MsgTriggerSignMint) GetSigners

func (msg *MsgTriggerSignMint) GetSigners() []sdk.AccAddress

func (*MsgTriggerSignMint) Marshal

func (m *MsgTriggerSignMint) Marshal() (dAtA []byte, err error)

func (*MsgTriggerSignMint) MarshalTo

func (m *MsgTriggerSignMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgTriggerSignMint) MarshalToSizedBuffer

func (m *MsgTriggerSignMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTriggerSignMint) ProtoMessage

func (*MsgTriggerSignMint) ProtoMessage()

func (*MsgTriggerSignMint) Reset

func (m *MsgTriggerSignMint) Reset()

func (*MsgTriggerSignMint) Route

func (msg *MsgTriggerSignMint) Route() string

func (*MsgTriggerSignMint) Size

func (m *MsgTriggerSignMint) Size() (n int)

func (*MsgTriggerSignMint) String

func (m *MsgTriggerSignMint) String() string

func (*MsgTriggerSignMint) Type

func (msg *MsgTriggerSignMint) Type() string

func (*MsgTriggerSignMint) Unmarshal

func (m *MsgTriggerSignMint) Unmarshal(dAtA []byte) error

func (*MsgTriggerSignMint) ValidateBasic

func (msg *MsgTriggerSignMint) ValidateBasic() error

func (*MsgTriggerSignMint) XXX_DiscardUnknown

func (m *MsgTriggerSignMint) XXX_DiscardUnknown()

func (*MsgTriggerSignMint) XXX_Marshal

func (m *MsgTriggerSignMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTriggerSignMint) XXX_Merge

func (m *MsgTriggerSignMint) XXX_Merge(src proto.Message)

func (*MsgTriggerSignMint) XXX_Size

func (m *MsgTriggerSignMint) XXX_Size() int

func (*MsgTriggerSignMint) XXX_Unmarshal

func (m *MsgTriggerSignMint) XXX_Unmarshal(b []byte) error

type MsgTriggerSignMintResponse

type MsgTriggerSignMintResponse struct {
}

func (*MsgTriggerSignMintResponse) Descriptor

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

func (*MsgTriggerSignMintResponse) Equal

func (this *MsgTriggerSignMintResponse) Equal(that interface{}) bool

func (*MsgTriggerSignMintResponse) Marshal

func (m *MsgTriggerSignMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgTriggerSignMintResponse) MarshalTo

func (m *MsgTriggerSignMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTriggerSignMintResponse) MarshalToSizedBuffer

func (m *MsgTriggerSignMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTriggerSignMintResponse) ProtoMessage

func (*MsgTriggerSignMintResponse) ProtoMessage()

func (*MsgTriggerSignMintResponse) Reset

func (m *MsgTriggerSignMintResponse) Reset()

func (*MsgTriggerSignMintResponse) Size

func (m *MsgTriggerSignMintResponse) Size() (n int)

func (*MsgTriggerSignMintResponse) String

func (m *MsgTriggerSignMintResponse) String() string

func (*MsgTriggerSignMintResponse) Unmarshal

func (m *MsgTriggerSignMintResponse) Unmarshal(dAtA []byte) error

func (*MsgTriggerSignMintResponse) XXX_DiscardUnknown

func (m *MsgTriggerSignMintResponse) XXX_DiscardUnknown()

func (*MsgTriggerSignMintResponse) XXX_Marshal

func (m *MsgTriggerSignMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTriggerSignMintResponse) XXX_Merge

func (m *MsgTriggerSignMintResponse) XXX_Merge(src proto.Message)

func (*MsgTriggerSignMintResponse) XXX_Size

func (m *MsgTriggerSignMintResponse) XXX_Size() int

func (*MsgTriggerSignMintResponse) XXX_Unmarshal

func (m *MsgTriggerSignMintResponse) XXX_Unmarshal(b []byte) error

type MsgTriggerSignWithdraw

type MsgTriggerSignWithdraw struct {
	// withdraw_id defines the withdraw ID
	WithdrawId string `protobuf:"bytes,1,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty"`
	// sender defines the SGN account sending the trigger Msg.
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
}

func NewMsgTriggerSignWithdraw

func NewMsgTriggerSignWithdraw(sender string) *MsgTriggerSignWithdraw

func (*MsgTriggerSignWithdraw) Descriptor

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

func (*MsgTriggerSignWithdraw) GetSignBytes

func (msg *MsgTriggerSignWithdraw) GetSignBytes() []byte

func (*MsgTriggerSignWithdraw) GetSigners

func (msg *MsgTriggerSignWithdraw) GetSigners() []sdk.AccAddress

func (*MsgTriggerSignWithdraw) Marshal

func (m *MsgTriggerSignWithdraw) Marshal() (dAtA []byte, err error)

func (*MsgTriggerSignWithdraw) MarshalTo

func (m *MsgTriggerSignWithdraw) MarshalTo(dAtA []byte) (int, error)

func (*MsgTriggerSignWithdraw) MarshalToSizedBuffer

func (m *MsgTriggerSignWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTriggerSignWithdraw) ProtoMessage

func (*MsgTriggerSignWithdraw) ProtoMessage()

func (*MsgTriggerSignWithdraw) Reset

func (m *MsgTriggerSignWithdraw) Reset()

func (*MsgTriggerSignWithdraw) Route

func (msg *MsgTriggerSignWithdraw) Route() string

func (*MsgTriggerSignWithdraw) Size

func (m *MsgTriggerSignWithdraw) Size() (n int)

func (*MsgTriggerSignWithdraw) String

func (m *MsgTriggerSignWithdraw) String() string

func (*MsgTriggerSignWithdraw) Type

func (msg *MsgTriggerSignWithdraw) Type() string

func (*MsgTriggerSignWithdraw) Unmarshal

func (m *MsgTriggerSignWithdraw) Unmarshal(dAtA []byte) error

func (*MsgTriggerSignWithdraw) ValidateBasic

func (msg *MsgTriggerSignWithdraw) ValidateBasic() error

func (*MsgTriggerSignWithdraw) XXX_DiscardUnknown

func (m *MsgTriggerSignWithdraw) XXX_DiscardUnknown()

func (*MsgTriggerSignWithdraw) XXX_Marshal

func (m *MsgTriggerSignWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTriggerSignWithdraw) XXX_Merge

func (m *MsgTriggerSignWithdraw) XXX_Merge(src proto.Message)

func (*MsgTriggerSignWithdraw) XXX_Size

func (m *MsgTriggerSignWithdraw) XXX_Size() int

func (*MsgTriggerSignWithdraw) XXX_Unmarshal

func (m *MsgTriggerSignWithdraw) XXX_Unmarshal(b []byte) error

type MsgTriggerSignWithdrawResponse

type MsgTriggerSignWithdrawResponse struct {
}

func (*MsgTriggerSignWithdrawResponse) Descriptor

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

func (*MsgTriggerSignWithdrawResponse) Equal

func (this *MsgTriggerSignWithdrawResponse) Equal(that interface{}) bool

func (*MsgTriggerSignWithdrawResponse) Marshal

func (m *MsgTriggerSignWithdrawResponse) Marshal() (dAtA []byte, err error)

func (*MsgTriggerSignWithdrawResponse) MarshalTo

func (m *MsgTriggerSignWithdrawResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTriggerSignWithdrawResponse) MarshalToSizedBuffer

func (m *MsgTriggerSignWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTriggerSignWithdrawResponse) ProtoMessage

func (*MsgTriggerSignWithdrawResponse) ProtoMessage()

func (*MsgTriggerSignWithdrawResponse) Reset

func (m *MsgTriggerSignWithdrawResponse) Reset()

func (*MsgTriggerSignWithdrawResponse) Size

func (m *MsgTriggerSignWithdrawResponse) Size() (n int)

func (*MsgTriggerSignWithdrawResponse) String

func (*MsgTriggerSignWithdrawResponse) Unmarshal

func (m *MsgTriggerSignWithdrawResponse) Unmarshal(dAtA []byte) error

func (*MsgTriggerSignWithdrawResponse) XXX_DiscardUnknown

func (m *MsgTriggerSignWithdrawResponse) XXX_DiscardUnknown()

func (*MsgTriggerSignWithdrawResponse) XXX_Marshal

func (m *MsgTriggerSignWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTriggerSignWithdrawResponse) XXX_Merge

func (m *MsgTriggerSignWithdrawResponse) XXX_Merge(src proto.Message)

func (*MsgTriggerSignWithdrawResponse) XXX_Size

func (m *MsgTriggerSignWithdrawResponse) XXX_Size() int

func (*MsgTriggerSignWithdrawResponse) XXX_Unmarshal

func (m *MsgTriggerSignWithdrawResponse) XXX_Unmarshal(b []byte) error

type OrigPeggedPair

type OrigPeggedPair struct {
	// orig defines the original token.
	Orig types.ERC20Token `protobuf:"bytes,1,opt,name=orig,proto3" json:"orig" yaml:"orig"`
	// pegged defines the pegged token.
	Pegged types.ERC20Token `protobuf:"bytes,2,opt,name=pegged,proto3" json:"pegged" yaml:"pegged"`
	// mint_fee_bps defines the fee percentage in points to mint pegged tokens. 1 pip = 0.0001%
	MintFeePips uint32 `protobuf:"varint,3,opt,name=mint_fee_pips,json=mintFeePips,proto3" json:"mint_fee_pips,omitempty" yaml:"mint_fee_pips"`
	// max_mint_fee defines the max mint fee chargeable.
	MaxMintFee string `protobuf:"bytes,4,opt,name=max_mint_fee,json=maxMintFee,proto3" json:"max_mint_fee,omitempty" yaml:"max_mint_fee"`
	// burn_fee_bps defines the fee percentage in points to burn pegged tokens. 1 pip = 0.0001%
	BurnFeePips uint32 `protobuf:"varint,5,opt,name=burn_fee_pips,json=burnFeePips,proto3" json:"burn_fee_pips,omitempty" yaml:"burn_fee_pips"`
	// max_burn_fee defines the max burn fee chargeable.
	MaxBurnFee string `protobuf:"bytes,6,opt,name=max_burn_fee,json=maxBurnFee,proto3" json:"max_burn_fee,omitempty" yaml:"max_burn_fee"`
	// supply_cap defines the max mint amount of the bridge used by this pair
	SupplyCap            string    `protobuf:"bytes,7,opt,name=supply_cap,json=supplyCap,proto3" json:"supply_cap,omitempty" yaml:"supply_cap"`
	VaultVersion         uint32    `protobuf:"varint,8,opt,name=vault_version,json=vaultVersion,proto3" json:"vault_version,omitempty" yaml:"vault_version"`
	BridgeVersion        uint32    `protobuf:"varint,9,opt,name=bridge_version,json=bridgeVersion,proto3" json:"bridge_version,omitempty" yaml:"bridge_version"`
	MintFeeSplitOverride *FeeSplit `` /* 157-byte string literal not displayed */
	BurnFeeSplitOverride *FeeSplit `` /* 157-byte string literal not displayed */
}

OrigPeggedPair describes a pair of original-pegged ERC20 tokens on two EVM-compatible chains.

func (*OrigPeggedPair) Descriptor

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

func (*OrigPeggedPair) Equal

func (this *OrigPeggedPair) Equal(that interface{}) bool

func (*OrigPeggedPair) GetBridgeVersion

func (m *OrigPeggedPair) GetBridgeVersion() uint32

func (*OrigPeggedPair) GetBurnFeePips

func (m *OrigPeggedPair) GetBurnFeePips() uint32

func (*OrigPeggedPair) GetBurnFeeSplitOverride

func (m *OrigPeggedPair) GetBurnFeeSplitOverride() *FeeSplit

func (*OrigPeggedPair) GetMaxBurnFee

func (m *OrigPeggedPair) GetMaxBurnFee() string

func (*OrigPeggedPair) GetMaxMintFee

func (m *OrigPeggedPair) GetMaxMintFee() string

func (*OrigPeggedPair) GetMintFeePips

func (m *OrigPeggedPair) GetMintFeePips() uint32

func (*OrigPeggedPair) GetMintFeeSplitOverride

func (m *OrigPeggedPair) GetMintFeeSplitOverride() *FeeSplit

func (*OrigPeggedPair) GetOrig

func (m *OrigPeggedPair) GetOrig() types.ERC20Token

func (*OrigPeggedPair) GetPegged

func (m *OrigPeggedPair) GetPegged() types.ERC20Token

func (*OrigPeggedPair) GetSupplyCap

func (m *OrigPeggedPair) GetSupplyCap() string

func (*OrigPeggedPair) GetVaultVersion

func (m *OrigPeggedPair) GetVaultVersion() uint32

func (*OrigPeggedPair) Marshal

func (m *OrigPeggedPair) Marshal() (dAtA []byte, err error)

func (*OrigPeggedPair) MarshalTo

func (m *OrigPeggedPair) MarshalTo(dAtA []byte) (int, error)

func (*OrigPeggedPair) MarshalToSizedBuffer

func (m *OrigPeggedPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrigPeggedPair) ProtoMessage

func (*OrigPeggedPair) ProtoMessage()

func (*OrigPeggedPair) Reset

func (m *OrigPeggedPair) Reset()

func (*OrigPeggedPair) Size

func (m *OrigPeggedPair) Size() (n int)

func (*OrigPeggedPair) String

func (m *OrigPeggedPair) String() string

func (*OrigPeggedPair) Unmarshal

func (m *OrigPeggedPair) Unmarshal(dAtA []byte) error

func (*OrigPeggedPair) Validate

func (p *OrigPeggedPair) Validate() error

func (*OrigPeggedPair) ValidateBasic

func (p *OrigPeggedPair) ValidateBasic() error

func (*OrigPeggedPair) XXX_DiscardUnknown

func (m *OrigPeggedPair) XXX_DiscardUnknown()

func (*OrigPeggedPair) XXX_Marshal

func (m *OrigPeggedPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrigPeggedPair) XXX_Merge

func (m *OrigPeggedPair) XXX_Merge(src proto.Message)

func (*OrigPeggedPair) XXX_Size

func (m *OrigPeggedPair) XXX_Size() int

func (*OrigPeggedPair) XXX_Unmarshal

func (m *OrigPeggedPair) XXX_Unmarshal(b []byte) error

type OriginalTokenVaultDeleteProposal

type OriginalTokenVaultDeleteProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ChainId     uint64 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Version     uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// deposit defines the amount for MsgSubmitProposal
	Deposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

func (*OriginalTokenVaultDeleteProposal) Descriptor

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

func (*OriginalTokenVaultDeleteProposal) GetChainId

func (m *OriginalTokenVaultDeleteProposal) GetChainId() uint64

func (*OriginalTokenVaultDeleteProposal) GetDescription

func (m *OriginalTokenVaultDeleteProposal) GetDescription() string

func (*OriginalTokenVaultDeleteProposal) GetTitle

func (*OriginalTokenVaultDeleteProposal) GetVersion

func (m *OriginalTokenVaultDeleteProposal) GetVersion() uint32

func (*OriginalTokenVaultDeleteProposal) Marshal

func (m *OriginalTokenVaultDeleteProposal) Marshal() (dAtA []byte, err error)

func (*OriginalTokenVaultDeleteProposal) MarshalTo

func (m *OriginalTokenVaultDeleteProposal) MarshalTo(dAtA []byte) (int, error)

func (*OriginalTokenVaultDeleteProposal) MarshalToSizedBuffer

func (m *OriginalTokenVaultDeleteProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OriginalTokenVaultDeleteProposal) ProtoMessage

func (*OriginalTokenVaultDeleteProposal) ProtoMessage()

func (*OriginalTokenVaultDeleteProposal) Reset

func (*OriginalTokenVaultDeleteProposal) Size

func (m *OriginalTokenVaultDeleteProposal) Size() (n int)

func (*OriginalTokenVaultDeleteProposal) String

func (*OriginalTokenVaultDeleteProposal) Unmarshal

func (m *OriginalTokenVaultDeleteProposal) Unmarshal(dAtA []byte) error

func (*OriginalTokenVaultDeleteProposal) XXX_DiscardUnknown

func (m *OriginalTokenVaultDeleteProposal) XXX_DiscardUnknown()

func (*OriginalTokenVaultDeleteProposal) XXX_Marshal

func (m *OriginalTokenVaultDeleteProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OriginalTokenVaultDeleteProposal) XXX_Merge

func (*OriginalTokenVaultDeleteProposal) XXX_Size

func (m *OriginalTokenVaultDeleteProposal) XXX_Size() int

func (*OriginalTokenVaultDeleteProposal) XXX_Unmarshal

func (m *OriginalTokenVaultDeleteProposal) XXX_Unmarshal(b []byte) error

type PairDeleteProposal

type PairDeleteProposal struct {
	Title        string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description  string          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PairToDelete *OrigPeggedPair `protobuf:"bytes,3,opt,name=pair_to_delete,json=pairToDelete,proto3" json:"pair_to_delete,omitempty"`
	// deposit defines the amount for MsgSubmitProposal
	Deposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

func (*PairDeleteProposal) Descriptor

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

func (*PairDeleteProposal) GetDescription

func (m *PairDeleteProposal) GetDescription() string

func (*PairDeleteProposal) GetPairToDelete

func (m *PairDeleteProposal) GetPairToDelete() *OrigPeggedPair

func (*PairDeleteProposal) GetTitle

func (m *PairDeleteProposal) GetTitle() string

func (*PairDeleteProposal) Marshal

func (m *PairDeleteProposal) Marshal() (dAtA []byte, err error)

func (*PairDeleteProposal) MarshalTo

func (m *PairDeleteProposal) MarshalTo(dAtA []byte) (int, error)

func (*PairDeleteProposal) MarshalToSizedBuffer

func (m *PairDeleteProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PairDeleteProposal) ProtoMessage

func (*PairDeleteProposal) ProtoMessage()

func (*PairDeleteProposal) Reset

func (m *PairDeleteProposal) Reset()

func (*PairDeleteProposal) Size

func (m *PairDeleteProposal) Size() (n int)

func (*PairDeleteProposal) String

func (m *PairDeleteProposal) String() string

func (*PairDeleteProposal) Unmarshal

func (m *PairDeleteProposal) Unmarshal(dAtA []byte) error

func (*PairDeleteProposal) XXX_DiscardUnknown

func (m *PairDeleteProposal) XXX_DiscardUnknown()

func (*PairDeleteProposal) XXX_Marshal

func (m *PairDeleteProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairDeleteProposal) XXX_Merge

func (m *PairDeleteProposal) XXX_Merge(src proto.Message)

func (*PairDeleteProposal) XXX_Size

func (m *PairDeleteProposal) XXX_Size() int

func (*PairDeleteProposal) XXX_Unmarshal

func (m *PairDeleteProposal) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// trigger_sign_cooldown defines the minimal time between two trigger signing requests.
	TriggerSignCooldown time.Duration `` /* 161-byte string literal not displayed */
}

Params defines the set of params for the pegbridge module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default pegbridge parameters

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetTriggerSignCooldown

func (m *Params) GetTriggerSignCooldown() time.Duration

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate performs validation on farming parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type PegConfig

type PegConfig struct {
	// pegged_token_bridges defines the PeggedTokenBridge contracts.
	PeggedTokenBridges []ContractInfo `` /* 135-byte string literal not displayed */
	// original_token_vaults defines the OriginalTokenVault contracts.
	OriginalTokenVaults []ContractInfo `` /* 139-byte string literal not displayed */
	// orig_pegged_pairs defines the original-pegged token pairs.
	OrigPeggedPairs []OrigPeggedPair `protobuf:"bytes,3,rep,name=orig_pegged_pairs,json=origPeggedPairs,proto3" json:"orig_pegged_pairs" yaml:"orig_pegged_pairs"`
	FeeSplitGlobal  *FeeSplit        `` /* 129-byte string literal not displayed */
}

PegConfig describes the pegbridge specific configs.

func (*PegConfig) Descriptor

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

func (*PegConfig) Equal

func (this *PegConfig) Equal(that interface{}) bool

func (*PegConfig) GetFeeSplitGlobal

func (m *PegConfig) GetFeeSplitGlobal() *FeeSplit

func (*PegConfig) GetOrigPeggedPairs

func (m *PegConfig) GetOrigPeggedPairs() []OrigPeggedPair

func (*PegConfig) GetOriginalTokenVaults

func (m *PegConfig) GetOriginalTokenVaults() []ContractInfo

func (*PegConfig) GetPeggedTokenBridges

func (m *PegConfig) GetPeggedTokenBridges() []ContractInfo

func (*PegConfig) Marshal

func (m *PegConfig) Marshal() (dAtA []byte, err error)

func (*PegConfig) MarshalTo

func (m *PegConfig) MarshalTo(dAtA []byte) (int, error)

func (*PegConfig) MarshalToSizedBuffer

func (m *PegConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PegConfig) ProtoMessage

func (*PegConfig) ProtoMessage()

func (*PegConfig) Reset

func (m *PegConfig) Reset()

func (*PegConfig) Size

func (m *PegConfig) Size() (n int)

func (*PegConfig) String

func (m *PegConfig) String() string

func (*PegConfig) Unmarshal

func (m *PegConfig) Unmarshal(dAtA []byte) error

func (*PegConfig) Validate

func (c *PegConfig) Validate() error

func (*PegConfig) XXX_DiscardUnknown

func (m *PegConfig) XXX_DiscardUnknown()

func (*PegConfig) XXX_Marshal

func (m *PegConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PegConfig) XXX_Merge

func (m *PegConfig) XXX_Merge(src proto.Message)

func (*PegConfig) XXX_Size

func (m *PegConfig) XXX_Size() int

func (*PegConfig) XXX_Unmarshal

func (m *PegConfig) XXX_Unmarshal(b []byte) error

type PegProposal

type PegProposal struct {
	Title       string     `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PegConfig   *PegConfig `protobuf:"bytes,3,opt,name=peg_config,json=pegConfig,proto3" json:"peg_config,omitempty"`
	// deposit defines the amount for MsgSubmitProposal
	Deposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

PegProposal describes a pegbridge config proposal, note it must be a whole json

func (*PegProposal) Descriptor

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

func (*PegProposal) GetDescription

func (m *PegProposal) GetDescription() string

func (*PegProposal) GetPegConfig

func (m *PegProposal) GetPegConfig() *PegConfig

func (*PegProposal) GetTitle

func (m *PegProposal) GetTitle() string

func (*PegProposal) Marshal

func (m *PegProposal) Marshal() (dAtA []byte, err error)

func (*PegProposal) MarshalTo

func (m *PegProposal) MarshalTo(dAtA []byte) (int, error)

func (*PegProposal) MarshalToSizedBuffer

func (m *PegProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PegProposal) ProtoMessage

func (*PegProposal) ProtoMessage()

func (*PegProposal) Reset

func (m *PegProposal) Reset()

func (*PegProposal) Size

func (m *PegProposal) Size() (n int)

func (*PegProposal) String

func (m *PegProposal) String() string

func (*PegProposal) Unmarshal

func (m *PegProposal) Unmarshal(dAtA []byte) error

func (*PegProposal) XXX_DiscardUnknown

func (m *PegProposal) XXX_DiscardUnknown()

func (*PegProposal) XXX_Marshal

func (m *PegProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PegProposal) XXX_Merge

func (m *PegProposal) XXX_Merge(src proto.Message)

func (*PegProposal) XXX_Size

func (m *PegProposal) XXX_Size() int

func (*PegProposal) XXX_Unmarshal

func (m *PegProposal) XXX_Unmarshal(b []byte) error

type PeggedOrigIndex

type PeggedOrigIndex struct {
	// pegged defines the pegged token info.
	Pegged types.ContractInfo `protobuf:"bytes,1,opt,name=pegged,proto3" json:"pegged" yaml:"pegged"`
	// orig defines the original token info.
	Orig types.ContractInfo `protobuf:"bytes,2,opt,name=orig,proto3" json:"orig" yaml:"orig"`
}

PeggedOrigIndex describes the reverse lookup index from a pegged token to the original token, if exists.

func (*PeggedOrigIndex) Descriptor

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

func (*PeggedOrigIndex) Equal

func (this *PeggedOrigIndex) Equal(that interface{}) bool

func (*PeggedOrigIndex) GetOrig

func (m *PeggedOrigIndex) GetOrig() types.ContractInfo

func (*PeggedOrigIndex) GetPegged

func (m *PeggedOrigIndex) GetPegged() types.ContractInfo

func (*PeggedOrigIndex) Marshal

func (m *PeggedOrigIndex) Marshal() (dAtA []byte, err error)

func (*PeggedOrigIndex) MarshalTo

func (m *PeggedOrigIndex) MarshalTo(dAtA []byte) (int, error)

func (*PeggedOrigIndex) MarshalToSizedBuffer

func (m *PeggedOrigIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PeggedOrigIndex) ProtoMessage

func (*PeggedOrigIndex) ProtoMessage()

func (*PeggedOrigIndex) Reset

func (m *PeggedOrigIndex) Reset()

func (*PeggedOrigIndex) Size

func (m *PeggedOrigIndex) Size() (n int)

func (*PeggedOrigIndex) String

func (m *PeggedOrigIndex) String() string

func (*PeggedOrigIndex) Unmarshal

func (m *PeggedOrigIndex) Unmarshal(dAtA []byte) error

func (*PeggedOrigIndex) XXX_DiscardUnknown

func (m *PeggedOrigIndex) XXX_DiscardUnknown()

func (*PeggedOrigIndex) XXX_Marshal

func (m *PeggedOrigIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeggedOrigIndex) XXX_Merge

func (m *PeggedOrigIndex) XXX_Merge(src proto.Message)

func (*PeggedOrigIndex) XXX_Size

func (m *PeggedOrigIndex) XXX_Size() int

func (*PeggedOrigIndex) XXX_Unmarshal

func (m *PeggedOrigIndex) XXX_Unmarshal(b []byte) error

type PeggedTokenBridgeDeleteProposal

type PeggedTokenBridgeDeleteProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ChainId     uint64 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Version     uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	// deposit defines the amount for MsgSubmitProposal
	Deposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

func (*PeggedTokenBridgeDeleteProposal) Descriptor

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

func (*PeggedTokenBridgeDeleteProposal) GetChainId

func (m *PeggedTokenBridgeDeleteProposal) GetChainId() uint64

func (*PeggedTokenBridgeDeleteProposal) GetDescription

func (m *PeggedTokenBridgeDeleteProposal) GetDescription() string

func (*PeggedTokenBridgeDeleteProposal) GetTitle

func (*PeggedTokenBridgeDeleteProposal) GetVersion

func (m *PeggedTokenBridgeDeleteProposal) GetVersion() uint32

func (*PeggedTokenBridgeDeleteProposal) Marshal

func (m *PeggedTokenBridgeDeleteProposal) Marshal() (dAtA []byte, err error)

func (*PeggedTokenBridgeDeleteProposal) MarshalTo

func (m *PeggedTokenBridgeDeleteProposal) MarshalTo(dAtA []byte) (int, error)

func (*PeggedTokenBridgeDeleteProposal) MarshalToSizedBuffer

func (m *PeggedTokenBridgeDeleteProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PeggedTokenBridgeDeleteProposal) ProtoMessage

func (*PeggedTokenBridgeDeleteProposal) ProtoMessage()

func (*PeggedTokenBridgeDeleteProposal) Reset

func (*PeggedTokenBridgeDeleteProposal) Size

func (m *PeggedTokenBridgeDeleteProposal) Size() (n int)

func (*PeggedTokenBridgeDeleteProposal) String

func (*PeggedTokenBridgeDeleteProposal) Unmarshal

func (m *PeggedTokenBridgeDeleteProposal) Unmarshal(dAtA []byte) error

func (*PeggedTokenBridgeDeleteProposal) XXX_DiscardUnknown

func (m *PeggedTokenBridgeDeleteProposal) XXX_DiscardUnknown()

func (*PeggedTokenBridgeDeleteProposal) XXX_Marshal

func (m *PeggedTokenBridgeDeleteProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeggedTokenBridgeDeleteProposal) XXX_Merge

func (m *PeggedTokenBridgeDeleteProposal) XXX_Merge(src proto.Message)

func (*PeggedTokenBridgeDeleteProposal) XXX_Size

func (m *PeggedTokenBridgeDeleteProposal) XXX_Size() int

func (*PeggedTokenBridgeDeleteProposal) XXX_Unmarshal

func (m *PeggedTokenBridgeDeleteProposal) XXX_Unmarshal(b []byte) error

type QueryBurnInfoRequest

type QueryBurnInfoRequest struct {
	BurnId string `protobuf:"bytes,1,opt,name=burn_id,json=burnId,proto3" json:"burn_id,omitempty"`
}

QueryBurnInfoRequest is the request type for the Query/BurnInfo RPC method.

func (*QueryBurnInfoRequest) Descriptor

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

func (*QueryBurnInfoRequest) GetBurnId

func (m *QueryBurnInfoRequest) GetBurnId() string

func (*QueryBurnInfoRequest) Marshal

func (m *QueryBurnInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryBurnInfoRequest) MarshalTo

func (m *QueryBurnInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBurnInfoRequest) MarshalToSizedBuffer

func (m *QueryBurnInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBurnInfoRequest) ProtoMessage

func (*QueryBurnInfoRequest) ProtoMessage()

func (*QueryBurnInfoRequest) Reset

func (m *QueryBurnInfoRequest) Reset()

func (*QueryBurnInfoRequest) Size

func (m *QueryBurnInfoRequest) Size() (n int)

func (*QueryBurnInfoRequest) String

func (m *QueryBurnInfoRequest) String() string

func (*QueryBurnInfoRequest) Unmarshal

func (m *QueryBurnInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryBurnInfoRequest) XXX_DiscardUnknown

func (m *QueryBurnInfoRequest) XXX_DiscardUnknown()

func (*QueryBurnInfoRequest) XXX_Marshal

func (m *QueryBurnInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBurnInfoRequest) XXX_Merge

func (m *QueryBurnInfoRequest) XXX_Merge(src proto.Message)

func (*QueryBurnInfoRequest) XXX_Size

func (m *QueryBurnInfoRequest) XXX_Size() int

func (*QueryBurnInfoRequest) XXX_Unmarshal

func (m *QueryBurnInfoRequest) XXX_Unmarshal(b []byte) error

type QueryBurnInfoResponse

type QueryBurnInfoResponse struct {
	BurnInfo BurnInfo `protobuf:"bytes,1,opt,name=burn_info,json=burnInfo,proto3" json:"burn_info"`
}

QueryBurnInfoResponse is the response type for the Query/BurnInfo RPC method.

func (*QueryBurnInfoResponse) Descriptor

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

func (*QueryBurnInfoResponse) GetBurnInfo

func (m *QueryBurnInfoResponse) GetBurnInfo() BurnInfo

func (*QueryBurnInfoResponse) Marshal

func (m *QueryBurnInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryBurnInfoResponse) MarshalTo

func (m *QueryBurnInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBurnInfoResponse) MarshalToSizedBuffer

func (m *QueryBurnInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBurnInfoResponse) ProtoMessage

func (*QueryBurnInfoResponse) ProtoMessage()

func (*QueryBurnInfoResponse) Reset

func (m *QueryBurnInfoResponse) Reset()

func (*QueryBurnInfoResponse) Size

func (m *QueryBurnInfoResponse) Size() (n int)

func (*QueryBurnInfoResponse) String

func (m *QueryBurnInfoResponse) String() string

func (*QueryBurnInfoResponse) Unmarshal

func (m *QueryBurnInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryBurnInfoResponse) XXX_DiscardUnknown

func (m *QueryBurnInfoResponse) XXX_DiscardUnknown()

func (*QueryBurnInfoResponse) XXX_Marshal

func (m *QueryBurnInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBurnInfoResponse) XXX_Merge

func (m *QueryBurnInfoResponse) XXX_Merge(src proto.Message)

func (*QueryBurnInfoResponse) XXX_Size

func (m *QueryBurnInfoResponse) XXX_Size() int

func (*QueryBurnInfoResponse) XXX_Unmarshal

func (m *QueryBurnInfoResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params queries params of the pegbridge module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Config queries config of the pegbridge module.
	Config(ctx context.Context, in *QueryConfigRequest, opts ...grpc.CallOption) (*PegConfig, error)
	// OrigPeggedPairs queries the original-pegged pairs, following:
	// 1. If orig specified:
	//   - 1.1. If pegged chain ID specified, returns single pair if found;
	//   - 1.2. Else, returns all pairs from orig;
	// 2. If orig not specified but pegged specified, returns a single pair if found;
	// 3. Else, returns all pairs.
	OrigPeggedPairs(ctx context.Context, in *QueryOrigPeggedPairsRequest, opts ...grpc.CallOption) (*QueryOrigPeggedPairsResponse, error)
	// EstimatedAmountFees queries the estimated received amount and charged fees for a mint / withdraw request.
	EstimatedAmountFees(ctx context.Context, in *QueryEstimatedAmountFeesRequest, opts ...grpc.CallOption) (*QueryEstimatedAmountFeesResponse, error)
	// DepositInfo queries the deposit info
	DepositInfo(ctx context.Context, in *QueryDepositInfoRequest, opts ...grpc.CallOption) (*QueryDepositInfoResponse, error)
	// WithdrawInfo queries the withdraw info
	WithdrawInfo(ctx context.Context, in *QueryWithdrawInfoRequest, opts ...grpc.CallOption) (*QueryWithdrawInfoResponse, error)
	// MintInfo queries the mint info
	MintInfo(ctx context.Context, in *QueryMintInfoRequest, opts ...grpc.CallOption) (*QueryMintInfoResponse, error)
	// BurnInfo queries the burn info
	BurnInfo(ctx context.Context, in *QueryBurnInfoRequest, opts ...grpc.CallOption) (*QueryBurnInfoResponse, error)
	// FeeClaimInfo queries the fee claim info
	FeeClaimInfo(ctx context.Context, in *QueryFeeClaimInfoRequest, opts ...grpc.CallOption) (*QueryFeeClaimInfoResponse, error)
	// SupplyInfo queries the total supply and supply cap
	SupplyInfo(ctx context.Context, in *QuerySupplyInfoRequest, opts ...grpc.CallOption) (*QuerySupplyInfoResponse, error)
	// RefundClaimInfo queries the corresponding withdrawId of certain depositId
	RefundClaimInfo(ctx context.Context, in *QueryRefundClaimInfoRequest, opts ...grpc.CallOption) (*QueryRefundClaimInfoResponse, error)
	VaultMigration(ctx context.Context, in *QueryVaultMigrationRequest, opts ...grpc.CallOption) (*QueryVaultMigrationResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryConfigRequest

type QueryConfigRequest struct {
}

func (*QueryConfigRequest) Descriptor

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

func (*QueryConfigRequest) Marshal

func (m *QueryConfigRequest) Marshal() (dAtA []byte, err error)

func (*QueryConfigRequest) MarshalTo

func (m *QueryConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryConfigRequest) MarshalToSizedBuffer

func (m *QueryConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConfigRequest) ProtoMessage

func (*QueryConfigRequest) ProtoMessage()

func (*QueryConfigRequest) Reset

func (m *QueryConfigRequest) Reset()

func (*QueryConfigRequest) Size

func (m *QueryConfigRequest) Size() (n int)

func (*QueryConfigRequest) String

func (m *QueryConfigRequest) String() string

func (*QueryConfigRequest) Unmarshal

func (m *QueryConfigRequest) Unmarshal(dAtA []byte) error

func (*QueryConfigRequest) XXX_DiscardUnknown

func (m *QueryConfigRequest) XXX_DiscardUnknown()

func (*QueryConfigRequest) XXX_Marshal

func (m *QueryConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConfigRequest) XXX_Merge

func (m *QueryConfigRequest) XXX_Merge(src proto.Message)

func (*QueryConfigRequest) XXX_Size

func (m *QueryConfigRequest) XXX_Size() int

func (*QueryConfigRequest) XXX_Unmarshal

func (m *QueryConfigRequest) XXX_Unmarshal(b []byte) error

type QueryDepositInfoRequest

type QueryDepositInfoRequest struct {
	DepositId string `protobuf:"bytes,1,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"`
}

QueryDepositInfoRequest is the request type for the Query/DepositInfo RPC method.

func (*QueryDepositInfoRequest) Descriptor

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

func (*QueryDepositInfoRequest) GetDepositId

func (m *QueryDepositInfoRequest) GetDepositId() string

func (*QueryDepositInfoRequest) Marshal

func (m *QueryDepositInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryDepositInfoRequest) MarshalTo

func (m *QueryDepositInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDepositInfoRequest) MarshalToSizedBuffer

func (m *QueryDepositInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDepositInfoRequest) ProtoMessage

func (*QueryDepositInfoRequest) ProtoMessage()

func (*QueryDepositInfoRequest) Reset

func (m *QueryDepositInfoRequest) Reset()

func (*QueryDepositInfoRequest) Size

func (m *QueryDepositInfoRequest) Size() (n int)

func (*QueryDepositInfoRequest) String

func (m *QueryDepositInfoRequest) String() string

func (*QueryDepositInfoRequest) Unmarshal

func (m *QueryDepositInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryDepositInfoRequest) XXX_DiscardUnknown

func (m *QueryDepositInfoRequest) XXX_DiscardUnknown()

func (*QueryDepositInfoRequest) XXX_Marshal

func (m *QueryDepositInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDepositInfoRequest) XXX_Merge

func (m *QueryDepositInfoRequest) XXX_Merge(src proto.Message)

func (*QueryDepositInfoRequest) XXX_Size

func (m *QueryDepositInfoRequest) XXX_Size() int

func (*QueryDepositInfoRequest) XXX_Unmarshal

func (m *QueryDepositInfoRequest) XXX_Unmarshal(b []byte) error

type QueryDepositInfoResponse

type QueryDepositInfoResponse struct {
	DepositInfo DepositInfo `protobuf:"bytes,1,opt,name=deposit_info,json=depositInfo,proto3" json:"deposit_info"`
}

QueryDepositInfoResponse is the response type for the Query/DepositInfo RPC method.

func (*QueryDepositInfoResponse) Descriptor

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

func (*QueryDepositInfoResponse) GetDepositInfo

func (m *QueryDepositInfoResponse) GetDepositInfo() DepositInfo

func (*QueryDepositInfoResponse) Marshal

func (m *QueryDepositInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryDepositInfoResponse) MarshalTo

func (m *QueryDepositInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDepositInfoResponse) MarshalToSizedBuffer

func (m *QueryDepositInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDepositInfoResponse) ProtoMessage

func (*QueryDepositInfoResponse) ProtoMessage()

func (*QueryDepositInfoResponse) Reset

func (m *QueryDepositInfoResponse) Reset()

func (*QueryDepositInfoResponse) Size

func (m *QueryDepositInfoResponse) Size() (n int)

func (*QueryDepositInfoResponse) String

func (m *QueryDepositInfoResponse) String() string

func (*QueryDepositInfoResponse) Unmarshal

func (m *QueryDepositInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryDepositInfoResponse) XXX_DiscardUnknown

func (m *QueryDepositInfoResponse) XXX_DiscardUnknown()

func (*QueryDepositInfoResponse) XXX_Marshal

func (m *QueryDepositInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDepositInfoResponse) XXX_Merge

func (m *QueryDepositInfoResponse) XXX_Merge(src proto.Message)

func (*QueryDepositInfoResponse) XXX_Size

func (m *QueryDepositInfoResponse) XXX_Size() int

func (*QueryDepositInfoResponse) XXX_Unmarshal

func (m *QueryDepositInfoResponse) XXX_Unmarshal(b []byte) error

type QueryEstimatedAmountFeesRequest

type QueryEstimatedAmountFeesRequest struct {
	Pair          OrigPeggedPair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair"`
	RequestAmount string         `protobuf:"bytes,2,opt,name=request_amount,json=requestAmount,proto3" json:"request_amount,omitempty"`
	Mint          bool           `protobuf:"varint,3,opt,name=mint,proto3" json:"mint,omitempty"`
}

QueryEstimatedAmountFeesRequest is the request type for the Query/EstimatedAmountFees RPC method.

func (*QueryEstimatedAmountFeesRequest) Descriptor

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

func (*QueryEstimatedAmountFeesRequest) GetMint

func (*QueryEstimatedAmountFeesRequest) GetPair

func (*QueryEstimatedAmountFeesRequest) GetRequestAmount

func (m *QueryEstimatedAmountFeesRequest) GetRequestAmount() string

func (*QueryEstimatedAmountFeesRequest) Marshal

func (m *QueryEstimatedAmountFeesRequest) Marshal() (dAtA []byte, err error)

func (*QueryEstimatedAmountFeesRequest) MarshalTo

func (m *QueryEstimatedAmountFeesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimatedAmountFeesRequest) MarshalToSizedBuffer

func (m *QueryEstimatedAmountFeesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimatedAmountFeesRequest) ProtoMessage

func (*QueryEstimatedAmountFeesRequest) ProtoMessage()

func (*QueryEstimatedAmountFeesRequest) Reset

func (*QueryEstimatedAmountFeesRequest) Size

func (m *QueryEstimatedAmountFeesRequest) Size() (n int)

func (*QueryEstimatedAmountFeesRequest) String

func (*QueryEstimatedAmountFeesRequest) Unmarshal

func (m *QueryEstimatedAmountFeesRequest) Unmarshal(dAtA []byte) error

func (*QueryEstimatedAmountFeesRequest) XXX_DiscardUnknown

func (m *QueryEstimatedAmountFeesRequest) XXX_DiscardUnknown()

func (*QueryEstimatedAmountFeesRequest) XXX_Marshal

func (m *QueryEstimatedAmountFeesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimatedAmountFeesRequest) XXX_Merge

func (m *QueryEstimatedAmountFeesRequest) XXX_Merge(src proto.Message)

func (*QueryEstimatedAmountFeesRequest) XXX_Size

func (m *QueryEstimatedAmountFeesRequest) XXX_Size() int

func (*QueryEstimatedAmountFeesRequest) XXX_Unmarshal

func (m *QueryEstimatedAmountFeesRequest) XXX_Unmarshal(b []byte) error

type QueryEstimatedAmountFeesResponse

type QueryEstimatedAmountFeesResponse struct {
	ReceiveAmount string `protobuf:"bytes,1,opt,name=receive_amount,json=receiveAmount,proto3" json:"receive_amount,omitempty"`
	BaseFee       string `protobuf:"bytes,2,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	PercentageFee string `protobuf:"bytes,3,opt,name=percentage_fee,json=percentageFee,proto3" json:"percentage_fee,omitempty"`
}

QueryEstimatedAmountFeesResponse is the response type for the Query/EstimatedAmountFees RPC method.

func (*QueryEstimatedAmountFeesResponse) Descriptor

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

func (*QueryEstimatedAmountFeesResponse) GetBaseFee

func (m *QueryEstimatedAmountFeesResponse) GetBaseFee() string

func (*QueryEstimatedAmountFeesResponse) GetPercentageFee

func (m *QueryEstimatedAmountFeesResponse) GetPercentageFee() string

func (*QueryEstimatedAmountFeesResponse) GetReceiveAmount

func (m *QueryEstimatedAmountFeesResponse) GetReceiveAmount() string

func (*QueryEstimatedAmountFeesResponse) Marshal

func (m *QueryEstimatedAmountFeesResponse) Marshal() (dAtA []byte, err error)

func (*QueryEstimatedAmountFeesResponse) MarshalTo

func (m *QueryEstimatedAmountFeesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimatedAmountFeesResponse) MarshalToSizedBuffer

func (m *QueryEstimatedAmountFeesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimatedAmountFeesResponse) ProtoMessage

func (*QueryEstimatedAmountFeesResponse) ProtoMessage()

func (*QueryEstimatedAmountFeesResponse) Reset

func (*QueryEstimatedAmountFeesResponse) Size

func (m *QueryEstimatedAmountFeesResponse) Size() (n int)

func (*QueryEstimatedAmountFeesResponse) String

func (*QueryEstimatedAmountFeesResponse) Unmarshal

func (m *QueryEstimatedAmountFeesResponse) Unmarshal(dAtA []byte) error

func (*QueryEstimatedAmountFeesResponse) XXX_DiscardUnknown

func (m *QueryEstimatedAmountFeesResponse) XXX_DiscardUnknown()

func (*QueryEstimatedAmountFeesResponse) XXX_Marshal

func (m *QueryEstimatedAmountFeesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimatedAmountFeesResponse) XXX_Merge

func (*QueryEstimatedAmountFeesResponse) XXX_Size

func (m *QueryEstimatedAmountFeesResponse) XXX_Size() int

func (*QueryEstimatedAmountFeesResponse) XXX_Unmarshal

func (m *QueryEstimatedAmountFeesResponse) XXX_Unmarshal(b []byte) error

type QueryFeeClaimInfoRequest

type QueryFeeClaimInfoRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Nonce   uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

QueryFeeClaimInfoRequest is the request type for the Query/FeeClaimInfo RPC method.

func (*QueryFeeClaimInfoRequest) Descriptor

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

func (*QueryFeeClaimInfoRequest) GetAddress

func (m *QueryFeeClaimInfoRequest) GetAddress() string

func (*QueryFeeClaimInfoRequest) GetNonce

func (m *QueryFeeClaimInfoRequest) GetNonce() uint64

func (*QueryFeeClaimInfoRequest) Marshal

func (m *QueryFeeClaimInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryFeeClaimInfoRequest) MarshalTo

func (m *QueryFeeClaimInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeeClaimInfoRequest) MarshalToSizedBuffer

func (m *QueryFeeClaimInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeeClaimInfoRequest) ProtoMessage

func (*QueryFeeClaimInfoRequest) ProtoMessage()

func (*QueryFeeClaimInfoRequest) Reset

func (m *QueryFeeClaimInfoRequest) Reset()

func (*QueryFeeClaimInfoRequest) Size

func (m *QueryFeeClaimInfoRequest) Size() (n int)

func (*QueryFeeClaimInfoRequest) String

func (m *QueryFeeClaimInfoRequest) String() string

func (*QueryFeeClaimInfoRequest) Unmarshal

func (m *QueryFeeClaimInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryFeeClaimInfoRequest) XXX_DiscardUnknown

func (m *QueryFeeClaimInfoRequest) XXX_DiscardUnknown()

func (*QueryFeeClaimInfoRequest) XXX_Marshal

func (m *QueryFeeClaimInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeeClaimInfoRequest) XXX_Merge

func (m *QueryFeeClaimInfoRequest) XXX_Merge(src proto.Message)

func (*QueryFeeClaimInfoRequest) XXX_Size

func (m *QueryFeeClaimInfoRequest) XXX_Size() int

func (*QueryFeeClaimInfoRequest) XXX_Unmarshal

func (m *QueryFeeClaimInfoRequest) XXX_Unmarshal(b []byte) error

type QueryFeeClaimInfoResponse

type QueryFeeClaimInfoResponse struct {
	FeeClaimInfo FeeClaimInfo `protobuf:"bytes,1,opt,name=fee_claim_info,json=feeClaimInfo,proto3" json:"fee_claim_info"`
}

QueryFeeClaimInfoResponse is the response type for the Query/FeeClaimInfo RPC method.

func (*QueryFeeClaimInfoResponse) Descriptor

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

func (*QueryFeeClaimInfoResponse) GetFeeClaimInfo

func (m *QueryFeeClaimInfoResponse) GetFeeClaimInfo() FeeClaimInfo

func (*QueryFeeClaimInfoResponse) Marshal

func (m *QueryFeeClaimInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeeClaimInfoResponse) MarshalTo

func (m *QueryFeeClaimInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeeClaimInfoResponse) MarshalToSizedBuffer

func (m *QueryFeeClaimInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeeClaimInfoResponse) ProtoMessage

func (*QueryFeeClaimInfoResponse) ProtoMessage()

func (*QueryFeeClaimInfoResponse) Reset

func (m *QueryFeeClaimInfoResponse) Reset()

func (*QueryFeeClaimInfoResponse) Size

func (m *QueryFeeClaimInfoResponse) Size() (n int)

func (*QueryFeeClaimInfoResponse) String

func (m *QueryFeeClaimInfoResponse) String() string

func (*QueryFeeClaimInfoResponse) Unmarshal

func (m *QueryFeeClaimInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryFeeClaimInfoResponse) XXX_DiscardUnknown

func (m *QueryFeeClaimInfoResponse) XXX_DiscardUnknown()

func (*QueryFeeClaimInfoResponse) XXX_Marshal

func (m *QueryFeeClaimInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeeClaimInfoResponse) XXX_Merge

func (m *QueryFeeClaimInfoResponse) XXX_Merge(src proto.Message)

func (*QueryFeeClaimInfoResponse) XXX_Size

func (m *QueryFeeClaimInfoResponse) XXX_Size() int

func (*QueryFeeClaimInfoResponse) XXX_Unmarshal

func (m *QueryFeeClaimInfoResponse) XXX_Unmarshal(b []byte) error

type QueryMintInfoRequest

type QueryMintInfoRequest struct {
	MintId string `protobuf:"bytes,1,opt,name=mint_id,json=mintId,proto3" json:"mint_id,omitempty"`
}

QueryMintInfoRequest is the request type for the Query/MintInfo RPC method.

func (*QueryMintInfoRequest) Descriptor

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

func (*QueryMintInfoRequest) GetMintId

func (m *QueryMintInfoRequest) GetMintId() string

func (*QueryMintInfoRequest) Marshal

func (m *QueryMintInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryMintInfoRequest) MarshalTo

func (m *QueryMintInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryMintInfoRequest) MarshalToSizedBuffer

func (m *QueryMintInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMintInfoRequest) ProtoMessage

func (*QueryMintInfoRequest) ProtoMessage()

func (*QueryMintInfoRequest) Reset

func (m *QueryMintInfoRequest) Reset()

func (*QueryMintInfoRequest) Size

func (m *QueryMintInfoRequest) Size() (n int)

func (*QueryMintInfoRequest) String

func (m *QueryMintInfoRequest) String() string

func (*QueryMintInfoRequest) Unmarshal

func (m *QueryMintInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryMintInfoRequest) XXX_DiscardUnknown

func (m *QueryMintInfoRequest) XXX_DiscardUnknown()

func (*QueryMintInfoRequest) XXX_Marshal

func (m *QueryMintInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMintInfoRequest) XXX_Merge

func (m *QueryMintInfoRequest) XXX_Merge(src proto.Message)

func (*QueryMintInfoRequest) XXX_Size

func (m *QueryMintInfoRequest) XXX_Size() int

func (*QueryMintInfoRequest) XXX_Unmarshal

func (m *QueryMintInfoRequest) XXX_Unmarshal(b []byte) error

type QueryMintInfoResponse

type QueryMintInfoResponse struct {
	MintInfo MintInfo `protobuf:"bytes,1,opt,name=mint_info,json=mintInfo,proto3" json:"mint_info"`
}

QueryMintInfoResponse is the response type for the Query/MintInfo RPC method.

func (*QueryMintInfoResponse) Descriptor

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

func (*QueryMintInfoResponse) GetMintInfo

func (m *QueryMintInfoResponse) GetMintInfo() MintInfo

func (*QueryMintInfoResponse) Marshal

func (m *QueryMintInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryMintInfoResponse) MarshalTo

func (m *QueryMintInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryMintInfoResponse) MarshalToSizedBuffer

func (m *QueryMintInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMintInfoResponse) ProtoMessage

func (*QueryMintInfoResponse) ProtoMessage()

func (*QueryMintInfoResponse) Reset

func (m *QueryMintInfoResponse) Reset()

func (*QueryMintInfoResponse) Size

func (m *QueryMintInfoResponse) Size() (n int)

func (*QueryMintInfoResponse) String

func (m *QueryMintInfoResponse) String() string

func (*QueryMintInfoResponse) Unmarshal

func (m *QueryMintInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryMintInfoResponse) XXX_DiscardUnknown

func (m *QueryMintInfoResponse) XXX_DiscardUnknown()

func (*QueryMintInfoResponse) XXX_Marshal

func (m *QueryMintInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMintInfoResponse) XXX_Merge

func (m *QueryMintInfoResponse) XXX_Merge(src proto.Message)

func (*QueryMintInfoResponse) XXX_Size

func (m *QueryMintInfoResponse) XXX_Size() int

func (*QueryMintInfoResponse) XXX_Unmarshal

func (m *QueryMintInfoResponse) XXX_Unmarshal(b []byte) error

type QueryOrigPeggedPairsRequest

type QueryOrigPeggedPairsRequest struct {
	Orig   *types.ContractInfo `protobuf:"bytes,1,opt,name=orig,proto3" json:"orig,omitempty"`
	Pegged *types.ContractInfo `protobuf:"bytes,2,opt,name=pegged,proto3" json:"pegged,omitempty"`
}

QueryOrigPeggedPairsRequest is the request type for the Query/OrigPeggedPairs RPC method.

func (*QueryOrigPeggedPairsRequest) Descriptor

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

func (*QueryOrigPeggedPairsRequest) GetOrig

func (*QueryOrigPeggedPairsRequest) GetPegged

func (*QueryOrigPeggedPairsRequest) Marshal

func (m *QueryOrigPeggedPairsRequest) Marshal() (dAtA []byte, err error)

func (*QueryOrigPeggedPairsRequest) MarshalTo

func (m *QueryOrigPeggedPairsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrigPeggedPairsRequest) MarshalToSizedBuffer

func (m *QueryOrigPeggedPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrigPeggedPairsRequest) ProtoMessage

func (*QueryOrigPeggedPairsRequest) ProtoMessage()

func (*QueryOrigPeggedPairsRequest) Reset

func (m *QueryOrigPeggedPairsRequest) Reset()

func (*QueryOrigPeggedPairsRequest) Size

func (m *QueryOrigPeggedPairsRequest) Size() (n int)

func (*QueryOrigPeggedPairsRequest) String

func (m *QueryOrigPeggedPairsRequest) String() string

func (*QueryOrigPeggedPairsRequest) Unmarshal

func (m *QueryOrigPeggedPairsRequest) Unmarshal(dAtA []byte) error

func (*QueryOrigPeggedPairsRequest) XXX_DiscardUnknown

func (m *QueryOrigPeggedPairsRequest) XXX_DiscardUnknown()

func (*QueryOrigPeggedPairsRequest) XXX_Marshal

func (m *QueryOrigPeggedPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrigPeggedPairsRequest) XXX_Merge

func (m *QueryOrigPeggedPairsRequest) XXX_Merge(src proto.Message)

func (*QueryOrigPeggedPairsRequest) XXX_Size

func (m *QueryOrigPeggedPairsRequest) XXX_Size() int

func (*QueryOrigPeggedPairsRequest) XXX_Unmarshal

func (m *QueryOrigPeggedPairsRequest) XXX_Unmarshal(b []byte) error

type QueryOrigPeggedPairsResponse

type QueryOrigPeggedPairsResponse struct {
	Pairs []OrigPeggedPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

QueryOrigPeggedPairsResponse is the response type for the Query/OrigPeggedPairs RPC method.

func (*QueryOrigPeggedPairsResponse) Descriptor

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

func (*QueryOrigPeggedPairsResponse) GetPairs

func (*QueryOrigPeggedPairsResponse) Marshal

func (m *QueryOrigPeggedPairsResponse) Marshal() (dAtA []byte, err error)

func (*QueryOrigPeggedPairsResponse) MarshalTo

func (m *QueryOrigPeggedPairsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOrigPeggedPairsResponse) MarshalToSizedBuffer

func (m *QueryOrigPeggedPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOrigPeggedPairsResponse) ProtoMessage

func (*QueryOrigPeggedPairsResponse) ProtoMessage()

func (*QueryOrigPeggedPairsResponse) Reset

func (m *QueryOrigPeggedPairsResponse) Reset()

func (*QueryOrigPeggedPairsResponse) Size

func (m *QueryOrigPeggedPairsResponse) Size() (n int)

func (*QueryOrigPeggedPairsResponse) String

func (*QueryOrigPeggedPairsResponse) Unmarshal

func (m *QueryOrigPeggedPairsResponse) Unmarshal(dAtA []byte) error

func (*QueryOrigPeggedPairsResponse) XXX_DiscardUnknown

func (m *QueryOrigPeggedPairsResponse) XXX_DiscardUnknown()

func (*QueryOrigPeggedPairsResponse) XXX_Marshal

func (m *QueryOrigPeggedPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOrigPeggedPairsResponse) XXX_Merge

func (m *QueryOrigPeggedPairsResponse) XXX_Merge(src proto.Message)

func (*QueryOrigPeggedPairsResponse) XXX_Size

func (m *QueryOrigPeggedPairsResponse) XXX_Size() int

func (*QueryOrigPeggedPairsResponse) XXX_Unmarshal

func (m *QueryOrigPeggedPairsResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryRefundClaimInfoRequest

type QueryRefundClaimInfoRequest struct {
	DepositId string `protobuf:"bytes,1,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"`
}

QueryRefundClaimInfoRequest is the request type for the Query/RefundClaimInfo RPC method.

func (*QueryRefundClaimInfoRequest) Descriptor

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

func (*QueryRefundClaimInfoRequest) GetDepositId

func (m *QueryRefundClaimInfoRequest) GetDepositId() string

func (*QueryRefundClaimInfoRequest) Marshal

func (m *QueryRefundClaimInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryRefundClaimInfoRequest) MarshalTo

func (m *QueryRefundClaimInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryRefundClaimInfoRequest) MarshalToSizedBuffer

func (m *QueryRefundClaimInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRefundClaimInfoRequest) ProtoMessage

func (*QueryRefundClaimInfoRequest) ProtoMessage()

func (*QueryRefundClaimInfoRequest) Reset

func (m *QueryRefundClaimInfoRequest) Reset()

func (*QueryRefundClaimInfoRequest) Size

func (m *QueryRefundClaimInfoRequest) Size() (n int)

func (*QueryRefundClaimInfoRequest) String

func (m *QueryRefundClaimInfoRequest) String() string

func (*QueryRefundClaimInfoRequest) Unmarshal

func (m *QueryRefundClaimInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryRefundClaimInfoRequest) XXX_DiscardUnknown

func (m *QueryRefundClaimInfoRequest) XXX_DiscardUnknown()

func (*QueryRefundClaimInfoRequest) XXX_Marshal

func (m *QueryRefundClaimInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRefundClaimInfoRequest) XXX_Merge

func (m *QueryRefundClaimInfoRequest) XXX_Merge(src proto.Message)

func (*QueryRefundClaimInfoRequest) XXX_Size

func (m *QueryRefundClaimInfoRequest) XXX_Size() int

func (*QueryRefundClaimInfoRequest) XXX_Unmarshal

func (m *QueryRefundClaimInfoRequest) XXX_Unmarshal(b []byte) error

type QueryRefundClaimInfoResponse

type QueryRefundClaimInfoResponse struct {
	WithdrawId string `protobuf:"bytes,1,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty"`
}

QueryRefundClaimInfoResponse is the response type for the Query/RefundClaimInfo RPC method.

func (*QueryRefundClaimInfoResponse) Descriptor

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

func (*QueryRefundClaimInfoResponse) GetWithdrawId

func (m *QueryRefundClaimInfoResponse) GetWithdrawId() string

func (*QueryRefundClaimInfoResponse) Marshal

func (m *QueryRefundClaimInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryRefundClaimInfoResponse) MarshalTo

func (m *QueryRefundClaimInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryRefundClaimInfoResponse) MarshalToSizedBuffer

func (m *QueryRefundClaimInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryRefundClaimInfoResponse) ProtoMessage

func (*QueryRefundClaimInfoResponse) ProtoMessage()

func (*QueryRefundClaimInfoResponse) Reset

func (m *QueryRefundClaimInfoResponse) Reset()

func (*QueryRefundClaimInfoResponse) Size

func (m *QueryRefundClaimInfoResponse) Size() (n int)

func (*QueryRefundClaimInfoResponse) String

func (*QueryRefundClaimInfoResponse) Unmarshal

func (m *QueryRefundClaimInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryRefundClaimInfoResponse) XXX_DiscardUnknown

func (m *QueryRefundClaimInfoResponse) XXX_DiscardUnknown()

func (*QueryRefundClaimInfoResponse) XXX_Marshal

func (m *QueryRefundClaimInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryRefundClaimInfoResponse) XXX_Merge

func (m *QueryRefundClaimInfoResponse) XXX_Merge(src proto.Message)

func (*QueryRefundClaimInfoResponse) XXX_Size

func (m *QueryRefundClaimInfoResponse) XXX_Size() int

func (*QueryRefundClaimInfoResponse) XXX_Unmarshal

func (m *QueryRefundClaimInfoResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params queries params of the pegbridge module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Config queries config of the pegbridge module.
	Config(context.Context, *QueryConfigRequest) (*PegConfig, error)
	// OrigPeggedPairs queries the original-pegged pairs, following:
	// 1. If orig specified:
	//   - 1.1. If pegged chain ID specified, returns single pair if found;
	//   - 1.2. Else, returns all pairs from orig;
	// 2. If orig not specified but pegged specified, returns a single pair if found;
	// 3. Else, returns all pairs.
	OrigPeggedPairs(context.Context, *QueryOrigPeggedPairsRequest) (*QueryOrigPeggedPairsResponse, error)
	// EstimatedAmountFees queries the estimated received amount and charged fees for a mint / withdraw request.
	EstimatedAmountFees(context.Context, *QueryEstimatedAmountFeesRequest) (*QueryEstimatedAmountFeesResponse, error)
	// DepositInfo queries the deposit info
	DepositInfo(context.Context, *QueryDepositInfoRequest) (*QueryDepositInfoResponse, error)
	// WithdrawInfo queries the withdraw info
	WithdrawInfo(context.Context, *QueryWithdrawInfoRequest) (*QueryWithdrawInfoResponse, error)
	// MintInfo queries the mint info
	MintInfo(context.Context, *QueryMintInfoRequest) (*QueryMintInfoResponse, error)
	// BurnInfo queries the burn info
	BurnInfo(context.Context, *QueryBurnInfoRequest) (*QueryBurnInfoResponse, error)
	// FeeClaimInfo queries the fee claim info
	FeeClaimInfo(context.Context, *QueryFeeClaimInfoRequest) (*QueryFeeClaimInfoResponse, error)
	// SupplyInfo queries the total supply and supply cap
	SupplyInfo(context.Context, *QuerySupplyInfoRequest) (*QuerySupplyInfoResponse, error)
	// RefundClaimInfo queries the corresponding withdrawId of certain depositId
	RefundClaimInfo(context.Context, *QueryRefundClaimInfoRequest) (*QueryRefundClaimInfoResponse, error)
	VaultMigration(context.Context, *QueryVaultMigrationRequest) (*QueryVaultMigrationResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyInfoRequest

type QuerySupplyInfoRequest struct {
	PeggedChainId uint64 `protobuf:"varint,1,opt,name=pegged_chain_id,json=peggedChainId,proto3" json:"pegged_chain_id,omitempty"`
	PeggedAddress string `protobuf:"bytes,2,opt,name=pegged_address,json=peggedAddress,proto3" json:"pegged_address,omitempty"`
}

QuerySupplyInfoRequest is the request type for the Query/SupplyInfo RPC method.

func (*QuerySupplyInfoRequest) Descriptor

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

func (*QuerySupplyInfoRequest) GetPeggedAddress

func (m *QuerySupplyInfoRequest) GetPeggedAddress() string

func (*QuerySupplyInfoRequest) GetPeggedChainId

func (m *QuerySupplyInfoRequest) GetPeggedChainId() uint64

func (*QuerySupplyInfoRequest) Marshal

func (m *QuerySupplyInfoRequest) Marshal() (dAtA []byte, err error)

func (*QuerySupplyInfoRequest) MarshalTo

func (m *QuerySupplyInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyInfoRequest) MarshalToSizedBuffer

func (m *QuerySupplyInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyInfoRequest) ProtoMessage

func (*QuerySupplyInfoRequest) ProtoMessage()

func (*QuerySupplyInfoRequest) Reset

func (m *QuerySupplyInfoRequest) Reset()

func (*QuerySupplyInfoRequest) Size

func (m *QuerySupplyInfoRequest) Size() (n int)

func (*QuerySupplyInfoRequest) String

func (m *QuerySupplyInfoRequest) String() string

func (*QuerySupplyInfoRequest) Unmarshal

func (m *QuerySupplyInfoRequest) Unmarshal(dAtA []byte) error

func (*QuerySupplyInfoRequest) XXX_DiscardUnknown

func (m *QuerySupplyInfoRequest) XXX_DiscardUnknown()

func (*QuerySupplyInfoRequest) XXX_Marshal

func (m *QuerySupplyInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyInfoRequest) XXX_Merge

func (m *QuerySupplyInfoRequest) XXX_Merge(src proto.Message)

func (*QuerySupplyInfoRequest) XXX_Size

func (m *QuerySupplyInfoRequest) XXX_Size() int

func (*QuerySupplyInfoRequest) XXX_Unmarshal

func (m *QuerySupplyInfoRequest) XXX_Unmarshal(b []byte) error

type QuerySupplyInfoResponse

type QuerySupplyInfoResponse struct {
	Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	Cap   string `protobuf:"bytes,2,opt,name=cap,proto3" json:"cap,omitempty"`
}

QuerySupplyInfoResponse is the response type for the Query/SupplyInfo RPC method.

func (*QuerySupplyInfoResponse) Descriptor

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

func (*QuerySupplyInfoResponse) GetCap

func (m *QuerySupplyInfoResponse) GetCap() string

func (*QuerySupplyInfoResponse) GetTotal

func (m *QuerySupplyInfoResponse) GetTotal() string

func (*QuerySupplyInfoResponse) Marshal

func (m *QuerySupplyInfoResponse) Marshal() (dAtA []byte, err error)

func (*QuerySupplyInfoResponse) MarshalTo

func (m *QuerySupplyInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyInfoResponse) MarshalToSizedBuffer

func (m *QuerySupplyInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyInfoResponse) ProtoMessage

func (*QuerySupplyInfoResponse) ProtoMessage()

func (*QuerySupplyInfoResponse) Reset

func (m *QuerySupplyInfoResponse) Reset()

func (*QuerySupplyInfoResponse) Size

func (m *QuerySupplyInfoResponse) Size() (n int)

func (*QuerySupplyInfoResponse) String

func (m *QuerySupplyInfoResponse) String() string

func (*QuerySupplyInfoResponse) Unmarshal

func (m *QuerySupplyInfoResponse) Unmarshal(dAtA []byte) error

func (*QuerySupplyInfoResponse) XXX_DiscardUnknown

func (m *QuerySupplyInfoResponse) XXX_DiscardUnknown()

func (*QuerySupplyInfoResponse) XXX_Marshal

func (m *QuerySupplyInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyInfoResponse) XXX_Merge

func (m *QuerySupplyInfoResponse) XXX_Merge(src proto.Message)

func (*QuerySupplyInfoResponse) XXX_Size

func (m *QuerySupplyInfoResponse) XXX_Size() int

func (*QuerySupplyInfoResponse) XXX_Unmarshal

func (m *QuerySupplyInfoResponse) XXX_Unmarshal(b []byte) error

type QueryVaultMigrationRequest

type QueryVaultMigrationRequest struct {
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Token   string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
}

func (*QueryVaultMigrationRequest) Descriptor

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

func (*QueryVaultMigrationRequest) GetChainId

func (m *QueryVaultMigrationRequest) GetChainId() uint64

func (*QueryVaultMigrationRequest) GetToken

func (m *QueryVaultMigrationRequest) GetToken() string

func (*QueryVaultMigrationRequest) Marshal

func (m *QueryVaultMigrationRequest) Marshal() (dAtA []byte, err error)

func (*QueryVaultMigrationRequest) MarshalTo

func (m *QueryVaultMigrationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryVaultMigrationRequest) MarshalToSizedBuffer

func (m *QueryVaultMigrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVaultMigrationRequest) ProtoMessage

func (*QueryVaultMigrationRequest) ProtoMessage()

func (*QueryVaultMigrationRequest) Reset

func (m *QueryVaultMigrationRequest) Reset()

func (*QueryVaultMigrationRequest) Size

func (m *QueryVaultMigrationRequest) Size() (n int)

func (*QueryVaultMigrationRequest) String

func (m *QueryVaultMigrationRequest) String() string

func (*QueryVaultMigrationRequest) Unmarshal

func (m *QueryVaultMigrationRequest) Unmarshal(dAtA []byte) error

func (*QueryVaultMigrationRequest) XXX_DiscardUnknown

func (m *QueryVaultMigrationRequest) XXX_DiscardUnknown()

func (*QueryVaultMigrationRequest) XXX_Marshal

func (m *QueryVaultMigrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVaultMigrationRequest) XXX_Merge

func (m *QueryVaultMigrationRequest) XXX_Merge(src proto.Message)

func (*QueryVaultMigrationRequest) XXX_Size

func (m *QueryVaultMigrationRequest) XXX_Size() int

func (*QueryVaultMigrationRequest) XXX_Unmarshal

func (m *QueryVaultMigrationRequest) XXX_Unmarshal(b []byte) error

type QueryVaultMigrationResponse

type QueryVaultMigrationResponse struct {
	VaultMigrations []VaultMigration `protobuf:"bytes,1,rep,name=vault_migrations,json=vaultMigrations,proto3" json:"vault_migrations"`
}

func (*QueryVaultMigrationResponse) Descriptor

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

func (*QueryVaultMigrationResponse) GetVaultMigrations

func (m *QueryVaultMigrationResponse) GetVaultMigrations() []VaultMigration

func (*QueryVaultMigrationResponse) Marshal

func (m *QueryVaultMigrationResponse) Marshal() (dAtA []byte, err error)

func (*QueryVaultMigrationResponse) MarshalTo

func (m *QueryVaultMigrationResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryVaultMigrationResponse) MarshalToSizedBuffer

func (m *QueryVaultMigrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVaultMigrationResponse) ProtoMessage

func (*QueryVaultMigrationResponse) ProtoMessage()

func (*QueryVaultMigrationResponse) Reset

func (m *QueryVaultMigrationResponse) Reset()

func (*QueryVaultMigrationResponse) Size

func (m *QueryVaultMigrationResponse) Size() (n int)

func (*QueryVaultMigrationResponse) String

func (m *QueryVaultMigrationResponse) String() string

func (*QueryVaultMigrationResponse) Unmarshal

func (m *QueryVaultMigrationResponse) Unmarshal(dAtA []byte) error

func (*QueryVaultMigrationResponse) XXX_DiscardUnknown

func (m *QueryVaultMigrationResponse) XXX_DiscardUnknown()

func (*QueryVaultMigrationResponse) XXX_Marshal

func (m *QueryVaultMigrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVaultMigrationResponse) XXX_Merge

func (m *QueryVaultMigrationResponse) XXX_Merge(src proto.Message)

func (*QueryVaultMigrationResponse) XXX_Size

func (m *QueryVaultMigrationResponse) XXX_Size() int

func (*QueryVaultMigrationResponse) XXX_Unmarshal

func (m *QueryVaultMigrationResponse) XXX_Unmarshal(b []byte) error

type QueryWithdrawInfoRequest

type QueryWithdrawInfoRequest struct {
	WithdrawId string `protobuf:"bytes,1,opt,name=withdraw_id,json=withdrawId,proto3" json:"withdraw_id,omitempty"`
}

QueryWithdrawInfoRequest is the request type for the Query/WithdrawInfo RPC method.

func (*QueryWithdrawInfoRequest) Descriptor

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

func (*QueryWithdrawInfoRequest) GetWithdrawId

func (m *QueryWithdrawInfoRequest) GetWithdrawId() string

func (*QueryWithdrawInfoRequest) Marshal

func (m *QueryWithdrawInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryWithdrawInfoRequest) MarshalTo

func (m *QueryWithdrawInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryWithdrawInfoRequest) MarshalToSizedBuffer

func (m *QueryWithdrawInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWithdrawInfoRequest) ProtoMessage

func (*QueryWithdrawInfoRequest) ProtoMessage()

func (*QueryWithdrawInfoRequest) Reset

func (m *QueryWithdrawInfoRequest) Reset()

func (*QueryWithdrawInfoRequest) Size

func (m *QueryWithdrawInfoRequest) Size() (n int)

func (*QueryWithdrawInfoRequest) String

func (m *QueryWithdrawInfoRequest) String() string

func (*QueryWithdrawInfoRequest) Unmarshal

func (m *QueryWithdrawInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryWithdrawInfoRequest) XXX_DiscardUnknown

func (m *QueryWithdrawInfoRequest) XXX_DiscardUnknown()

func (*QueryWithdrawInfoRequest) XXX_Marshal

func (m *QueryWithdrawInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWithdrawInfoRequest) XXX_Merge

func (m *QueryWithdrawInfoRequest) XXX_Merge(src proto.Message)

func (*QueryWithdrawInfoRequest) XXX_Size

func (m *QueryWithdrawInfoRequest) XXX_Size() int

func (*QueryWithdrawInfoRequest) XXX_Unmarshal

func (m *QueryWithdrawInfoRequest) XXX_Unmarshal(b []byte) error

type QueryWithdrawInfoResponse

type QueryWithdrawInfoResponse struct {
	WithdrawInfo WithdrawInfo `protobuf:"bytes,1,opt,name=withdraw_info,json=withdrawInfo,proto3" json:"withdraw_info"`
}

QueryWithdrawInfoResponse is the response type for the Query/WithdrawInfo RPC method.

func (*QueryWithdrawInfoResponse) Descriptor

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

func (*QueryWithdrawInfoResponse) GetWithdrawInfo

func (m *QueryWithdrawInfoResponse) GetWithdrawInfo() WithdrawInfo

func (*QueryWithdrawInfoResponse) Marshal

func (m *QueryWithdrawInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryWithdrawInfoResponse) MarshalTo

func (m *QueryWithdrawInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryWithdrawInfoResponse) MarshalToSizedBuffer

func (m *QueryWithdrawInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryWithdrawInfoResponse) ProtoMessage

func (*QueryWithdrawInfoResponse) ProtoMessage()

func (*QueryWithdrawInfoResponse) Reset

func (m *QueryWithdrawInfoResponse) Reset()

func (*QueryWithdrawInfoResponse) Size

func (m *QueryWithdrawInfoResponse) Size() (n int)

func (*QueryWithdrawInfoResponse) String

func (m *QueryWithdrawInfoResponse) String() string

func (*QueryWithdrawInfoResponse) Unmarshal

func (m *QueryWithdrawInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryWithdrawInfoResponse) XXX_DiscardUnknown

func (m *QueryWithdrawInfoResponse) XXX_DiscardUnknown()

func (*QueryWithdrawInfoResponse) XXX_Marshal

func (m *QueryWithdrawInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryWithdrawInfoResponse) XXX_Merge

func (m *QueryWithdrawInfoResponse) XXX_Merge(src proto.Message)

func (*QueryWithdrawInfoResponse) XXX_Size

func (m *QueryWithdrawInfoResponse) XXX_Size() int

func (*QueryWithdrawInfoResponse) XXX_Unmarshal

func (m *QueryWithdrawInfoResponse) XXX_Unmarshal(b []byte) error

type TotalSupplyUpdateProposal

type TotalSupplyUpdateProposal struct {
	Title       string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Pair        *OrigPeggedPair `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"`
	// total supply amount that will be set for the pair
	TotalSupply string `protobuf:"bytes,4,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// deposit defines the amount for MsgSubmitProposal
	Deposit github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

TotalSupplyUpdateProposal describes a proposal to update the current totalSupply of a certain pair. No need to supply a full-content pair, only orig and pegged will be used. This proposal is only used for backward compatibility (manually set the total supply for pegged tokens that were already supported before this supply tracking feature is launched).

func (*TotalSupplyUpdateProposal) Descriptor

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

func (*TotalSupplyUpdateProposal) GetDescription

func (m *TotalSupplyUpdateProposal) GetDescription() string

func (*TotalSupplyUpdateProposal) GetPair

func (*TotalSupplyUpdateProposal) GetTitle

func (m *TotalSupplyUpdateProposal) GetTitle() string

func (*TotalSupplyUpdateProposal) GetTotalSupply

func (m *TotalSupplyUpdateProposal) GetTotalSupply() string

func (*TotalSupplyUpdateProposal) Marshal

func (m *TotalSupplyUpdateProposal) Marshal() (dAtA []byte, err error)

func (*TotalSupplyUpdateProposal) MarshalTo

func (m *TotalSupplyUpdateProposal) MarshalTo(dAtA []byte) (int, error)

func (*TotalSupplyUpdateProposal) MarshalToSizedBuffer

func (m *TotalSupplyUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TotalSupplyUpdateProposal) ProtoMessage

func (*TotalSupplyUpdateProposal) ProtoMessage()

func (*TotalSupplyUpdateProposal) Reset

func (m *TotalSupplyUpdateProposal) Reset()

func (*TotalSupplyUpdateProposal) Size

func (m *TotalSupplyUpdateProposal) Size() (n int)

func (*TotalSupplyUpdateProposal) String

func (m *TotalSupplyUpdateProposal) String() string

func (*TotalSupplyUpdateProposal) Unmarshal

func (m *TotalSupplyUpdateProposal) Unmarshal(dAtA []byte) error

func (*TotalSupplyUpdateProposal) XXX_DiscardUnknown

func (m *TotalSupplyUpdateProposal) XXX_DiscardUnknown()

func (*TotalSupplyUpdateProposal) XXX_Marshal

func (m *TotalSupplyUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TotalSupplyUpdateProposal) XXX_Merge

func (m *TotalSupplyUpdateProposal) XXX_Merge(src proto.Message)

func (*TotalSupplyUpdateProposal) XXX_Size

func (m *TotalSupplyUpdateProposal) XXX_Size() int

func (*TotalSupplyUpdateProposal) XXX_Unmarshal

func (m *TotalSupplyUpdateProposal) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimFee

func (*UnimplementedMsgServer) ClaimRefund

func (*UnimplementedMsgServer) MigrateVault

func (*UnimplementedMsgServer) ResetTotalSupply

func (*UnimplementedMsgServer) SignMint

func (*UnimplementedMsgServer) SignWithdraw

func (*UnimplementedMsgServer) TriggerSignMint

func (*UnimplementedMsgServer) TriggerSignWithdraw

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) BurnInfo

func (*UnimplementedQueryServer) Config

func (*UnimplementedQueryServer) DepositInfo

func (*UnimplementedQueryServer) EstimatedAmountFees

func (*UnimplementedQueryServer) FeeClaimInfo

func (*UnimplementedQueryServer) MintInfo

func (*UnimplementedQueryServer) OrigPeggedPairs

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) RefundClaimInfo

func (*UnimplementedQueryServer) SupplyInfo

func (*UnimplementedQueryServer) VaultMigration

func (*UnimplementedQueryServer) WithdrawInfo

type VaultMigration

type VaultMigration struct {
	MigrationInfo MigrationInfo `protobuf:"bytes,1,opt,name=migration_info,json=migrationInfo,proto3" json:"migration_info" yaml:"migration_info"`
	// deadline (in unix sec) to complete migration
	Deadline int64 `protobuf:"varint,7,opt,name=deadline,proto3" json:"deadline,omitempty" yaml:"deadline"`
	// associated withdraw ids, use string for easy printing
	WithdrawIds []string `protobuf:"bytes,8,rep,name=withdraw_ids,json=withdrawIds,proto3" json:"withdraw_ids,omitempty" yaml:"withdraw_ids"`
}

func (*VaultMigration) Descriptor

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

func (*VaultMigration) Equal

func (this *VaultMigration) Equal(that interface{}) bool

func (*VaultMigration) GetDeadline

func (m *VaultMigration) GetDeadline() int64

func (*VaultMigration) GetMigrationInfo

func (m *VaultMigration) GetMigrationInfo() MigrationInfo

func (*VaultMigration) GetWithdrawIds

func (m *VaultMigration) GetWithdrawIds() []string

func (*VaultMigration) Marshal

func (m *VaultMigration) Marshal() (dAtA []byte, err error)

func (*VaultMigration) MarshalTo

func (m *VaultMigration) MarshalTo(dAtA []byte) (int, error)

func (*VaultMigration) MarshalToSizedBuffer

func (m *VaultMigration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VaultMigration) ProtoMessage

func (*VaultMigration) ProtoMessage()

func (*VaultMigration) Reset

func (m *VaultMigration) Reset()

func (*VaultMigration) Size

func (m *VaultMigration) Size() (n int)

func (*VaultMigration) String

func (m *VaultMigration) String() string

func (*VaultMigration) Unmarshal

func (m *VaultMigration) Unmarshal(dAtA []byte) error

func (*VaultMigration) XXX_DiscardUnknown

func (m *VaultMigration) XXX_DiscardUnknown()

func (*VaultMigration) XXX_Marshal

func (m *VaultMigration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VaultMigration) XXX_Merge

func (m *VaultMigration) XXX_Merge(src proto.Message)

func (*VaultMigration) XXX_Size

func (m *VaultMigration) XXX_Size() int

func (*VaultMigration) XXX_Unmarshal

func (m *VaultMigration) XXX_Unmarshal(b []byte) error

type VaultMigrationProposal

type VaultMigrationProposal struct {
	Title         string                                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description   string                                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	MigrationInfo MigrationInfo                          `protobuf:"bytes,3,opt,name=migration_info,json=migrationInfo,proto3" json:"migration_info"`
	Duration      int64                                  `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
	Deposit       github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=deposit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"deposit"`
}

func (*VaultMigrationProposal) Descriptor

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

func (*VaultMigrationProposal) GetDescription

func (m *VaultMigrationProposal) GetDescription() string

func (*VaultMigrationProposal) GetDuration

func (m *VaultMigrationProposal) GetDuration() int64

func (*VaultMigrationProposal) GetMigrationInfo

func (m *VaultMigrationProposal) GetMigrationInfo() MigrationInfo

func (*VaultMigrationProposal) GetTitle

func (m *VaultMigrationProposal) GetTitle() string

func (*VaultMigrationProposal) Marshal

func (m *VaultMigrationProposal) Marshal() (dAtA []byte, err error)

func (*VaultMigrationProposal) MarshalTo

func (m *VaultMigrationProposal) MarshalTo(dAtA []byte) (int, error)

func (*VaultMigrationProposal) MarshalToSizedBuffer

func (m *VaultMigrationProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VaultMigrationProposal) ProtoMessage

func (*VaultMigrationProposal) ProtoMessage()

func (*VaultMigrationProposal) Reset

func (m *VaultMigrationProposal) Reset()

func (*VaultMigrationProposal) Size

func (m *VaultMigrationProposal) Size() (n int)

func (*VaultMigrationProposal) String

func (m *VaultMigrationProposal) String() string

func (*VaultMigrationProposal) Unmarshal

func (m *VaultMigrationProposal) Unmarshal(dAtA []byte) error

func (*VaultMigrationProposal) XXX_DiscardUnknown

func (m *VaultMigrationProposal) XXX_DiscardUnknown()

func (*VaultMigrationProposal) XXX_Marshal

func (m *VaultMigrationProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VaultMigrationProposal) XXX_Merge

func (m *VaultMigrationProposal) XXX_Merge(src proto.Message)

func (*VaultMigrationProposal) XXX_Size

func (m *VaultMigrationProposal) XXX_Size() int

func (*VaultMigrationProposal) XXX_Unmarshal

func (m *VaultMigrationProposal) XXX_Unmarshal(b []byte) error

type WithdrawInfo

type WithdrawInfo struct {
	// chain_id defines the EVM chain ID to withdraw the original token
	ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// withdraw_proto_bytes defines the serialized withdraw protobuf to be submitted to OriginalTokenVault.
	WithdrawProtoBytes []byte `` /* 145-byte string literal not displayed */
	// signatures defines the signatures to be verified on OriginalTokenVault.
	Signatures []types.Signature `protobuf:"bytes,3,rep,name=signatures,proto3" json:"signatures" yaml:"signatures"`
	// base_fee defines the base fee charged for the withdrawal.
	BaseFee string `protobuf:"bytes,4,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty" yaml:"base_fee"`
	// percentage_fee defines the percentage fee charged for the withdrawal.
	PercentageFee string `protobuf:"bytes,5,opt,name=percentage_fee,json=percentageFee,proto3" json:"percentage_fee,omitempty" yaml:"percentage_fee"`
	// success defines whether the withdrawal has been completed on-chain.
	Success      bool   `protobuf:"varint,6,opt,name=success,proto3" json:"success,omitempty" yaml:"success"`
	LastReqTime  int64  `protobuf:"varint,7,opt,name=last_req_time,json=lastReqTime,proto3" json:"last_req_time,omitempty"`
	VaultVersion uint32 `protobuf:"varint,8,opt,name=vault_version,json=vaultVersion,proto3" json:"vault_version,omitempty" yaml:"vault_version"`
}

WithdrawInfo describes the info for an on-chain withdraw request to be submitted to OriginalTokenVault.

func (*WithdrawInfo) Descriptor

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

func (*WithdrawInfo) Equal

func (this *WithdrawInfo) Equal(that interface{}) bool

func (*WithdrawInfo) GetAddrSigs

func (w *WithdrawInfo) GetAddrSigs() []*cbrtypes.AddrSig

func (*WithdrawInfo) GetBaseFee

func (m *WithdrawInfo) GetBaseFee() string

func (*WithdrawInfo) GetChainId

func (m *WithdrawInfo) GetChainId() uint64

func (*WithdrawInfo) GetLastReqTime

func (m *WithdrawInfo) GetLastReqTime() int64

func (*WithdrawInfo) GetPercentageFee

func (m *WithdrawInfo) GetPercentageFee() string

func (*WithdrawInfo) GetSignatures

func (m *WithdrawInfo) GetSignatures() []types.Signature

func (*WithdrawInfo) GetSortedSigsBytes

func (w *WithdrawInfo) GetSortedSigsBytes() [][]byte

func (*WithdrawInfo) GetSuccess

func (m *WithdrawInfo) GetSuccess() bool

func (*WithdrawInfo) GetVaultVersion

func (m *WithdrawInfo) GetVaultVersion() uint32

func (*WithdrawInfo) GetWithdrawProtoBytes

func (m *WithdrawInfo) GetWithdrawProtoBytes() []byte

func (*WithdrawInfo) Marshal

func (m *WithdrawInfo) Marshal() (dAtA []byte, err error)

func (*WithdrawInfo) MarshalTo

func (m *WithdrawInfo) MarshalTo(dAtA []byte) (int, error)

func (*WithdrawInfo) MarshalToSizedBuffer

func (m *WithdrawInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WithdrawInfo) ProtoMessage

func (*WithdrawInfo) ProtoMessage()

func (*WithdrawInfo) Reset

func (m *WithdrawInfo) Reset()

func (*WithdrawInfo) ShortStr

func (w *WithdrawInfo) ShortStr() string

func (*WithdrawInfo) SignersStr

func (w *WithdrawInfo) SignersStr() string

func (*WithdrawInfo) SigsStr

func (w *WithdrawInfo) SigsStr() string

func (*WithdrawInfo) Size

func (m *WithdrawInfo) Size() (n int)

func (*WithdrawInfo) String

func (w *WithdrawInfo) String() string

func (*WithdrawInfo) Unmarshal

func (m *WithdrawInfo) Unmarshal(dAtA []byte) error

func (*WithdrawInfo) XXX_DiscardUnknown

func (m *WithdrawInfo) XXX_DiscardUnknown()

func (*WithdrawInfo) XXX_Marshal

func (m *WithdrawInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawInfo) XXX_Merge

func (m *WithdrawInfo) XXX_Merge(src proto.Message)

func (*WithdrawInfo) XXX_Size

func (m *WithdrawInfo) XXX_Size() int

func (*WithdrawInfo) XXX_Unmarshal

func (m *WithdrawInfo) XXX_Unmarshal(b []byte) error

type WithdrawOnChain

type WithdrawOnChain struct {
	// token defines the token address. for non-evm chains, value meaning is different
	Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// receiver defines the account address that the tokens should be withdrawn to.
	Receiver []byte `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// amount defines the withdraw amount.
	Amount []byte `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// burn_account defines the account that burned the pegged token.
	// 0xFF00000000000000000000000000000000000000 for vault migration
	// Not applicable to fee claims, refund claims and other governance-triggered withdrawals.
	BurnAccount []byte `protobuf:"bytes,4,opt,name=burn_account,json=burnAccount,proto3" json:"burn_account,omitempty"`
	// ref_chain_id defines the reference chain ID, taking values of:
	// 1. The common case of burn-withdraw: the chain ID on which the corresponding burn happened;
	// 2. Pegbridge fee claim: zero / Not applicable;
	// 3. Pegbridge refund claim: the chain ID on which the corresponding deposit happened;
	// 4. Other governance-triggered withdrawals: the chain ID on which the withdrawal will happen.
	RefChainId uint64 `protobuf:"varint,5,opt,name=ref_chain_id,json=refChainId,proto3" json:"ref_chain_id,omitempty"`
	// ref_id defines a unique reference ID, taking values of:
	// 1. The common case of burn-withdraw: the burn ID;
	// 2. Pegbridge fee claim: a per-account nonce;
	// 3. Refund for wrong deposit: the deposit ID;
	// 4. Governance-triggered withdrawal: ID as needed.
	RefId []byte `protobuf:"bytes,6,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
}

WithdrawOnChain describes the withdraw protobuf to be submitted on-chain.

func (*WithdrawOnChain) Descriptor

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

func (*WithdrawOnChain) Equal

func (this *WithdrawOnChain) Equal(that interface{}) bool

func (*WithdrawOnChain) GetAmount

func (m *WithdrawOnChain) GetAmount() []byte

func (*WithdrawOnChain) GetBurnAccount

func (m *WithdrawOnChain) GetBurnAccount() []byte

func (*WithdrawOnChain) GetReceiver

func (m *WithdrawOnChain) GetReceiver() []byte

func (*WithdrawOnChain) GetRefChainId

func (m *WithdrawOnChain) GetRefChainId() uint64

func (*WithdrawOnChain) GetRefId

func (m *WithdrawOnChain) GetRefId() []byte

func (*WithdrawOnChain) GetToken

func (m *WithdrawOnChain) GetToken() []byte

func (*WithdrawOnChain) Marshal

func (m *WithdrawOnChain) Marshal() (dAtA []byte, err error)

func (*WithdrawOnChain) MarshalTo

func (m *WithdrawOnChain) MarshalTo(dAtA []byte) (int, error)

func (*WithdrawOnChain) MarshalToSizedBuffer

func (m *WithdrawOnChain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WithdrawOnChain) ProtoMessage

func (*WithdrawOnChain) ProtoMessage()

func (*WithdrawOnChain) Reset

func (m *WithdrawOnChain) Reset()

func (*WithdrawOnChain) Size

func (m *WithdrawOnChain) Size() (n int)

func (*WithdrawOnChain) String

func (w *WithdrawOnChain) String() string

func (*WithdrawOnChain) Unmarshal

func (m *WithdrawOnChain) Unmarshal(dAtA []byte) error

func (*WithdrawOnChain) XXX_DiscardUnknown

func (m *WithdrawOnChain) XXX_DiscardUnknown()

func (*WithdrawOnChain) XXX_Marshal

func (m *WithdrawOnChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawOnChain) XXX_Merge

func (m *WithdrawOnChain) XXX_Merge(src proto.Message)

func (*WithdrawOnChain) XXX_Size

func (m *WithdrawOnChain) XXX_Size() int

func (*WithdrawOnChain) XXX_Unmarshal

func (m *WithdrawOnChain) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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