types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 41 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	// ETHContractAddressLen is the length of contract address strings
	ETHContractAddressLen = 42

	// ZeroAddress is an EthAddress containing the zero ethereum address
	ZeroAddressString = "0x0000000000000000000000000000000000000000"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "attestation"

	// 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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_attestation"
)
View Source
const (
	// AttestationKeyPrefix is the prefix to retrieve all Attestation
	AttestationKeyPrefix = "Attestation/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// ObservedAttestationKeyPrefix is the prefix to retrieve all ObservedAttestation
	ObservedAttestationKeyPrefix = "ObservedAttestation/value/"
)
View Source
const TypeMsgSetOrchestratorAddress = "set_orchestrator_address"
View Source
const TypeMsgValsetConfirm = "valset_confirm"
View Source
const TypeMsgValsetUpdatedClaim = "valset_updated_claim"
View Source
const (
	// ValsetConfirmationKeyPrefix is the prefix to retrieve all ValsetConfirmation
	ValsetConfirmationKeyPrefix = "ValsetConfirmation/value/"
)
View Source
const (
	// ValsetKeyPrefix is the prefix to retrieve all Valset
	ValsetKeyPrefix = "Valset/value/"
)
View Source
const (
	// ValsetUpdatedClaimKeyPrefix is the prefix to retrieve all ValsetUpdatedClaim
	ValsetUpdatedClaimKeyPrefix = "ValsetUpdatedClaim/value/"
)

Variables ¶

View Source
var (
	ErrInvalidLengthAttestation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttestation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttestation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBridgeValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBridgeValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBridgeValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample                   = errorsmod.Register(ModuleName, 1100, "sample error")
	ErrInternal                 = errorsmod.Register(ModuleName, 1101, "internal")
	ErrDuplicate                = errorsmod.Register(ModuleName, 1102, "duplicate")
	ErrInvalid                  = errorsmod.Register(ModuleName, 1103, "invalid")
	ErrTimeout                  = errorsmod.Register(ModuleName, 1104, "timeout")
	ErrUnknown                  = errorsmod.Register(ModuleName, 1105, "unknown")
	ErrEmpty                    = errorsmod.Register(ModuleName, 1106, "empty")
	ErrOutdated                 = errorsmod.Register(ModuleName, 1107, "outdated")
	ErrUnsupported              = errorsmod.Register(ModuleName, 1108, "unsupported")
	ErrNonContiguousEventNonce  = errorsmod.Register(ModuleName, 1109, "non contiguous event nonce, expected: %v received: %v")
	ErrResetDelegateKeys        = errorsmod.Register(ModuleName, 1110, "can not set orchestrator addresses more than once")
	ErrMismatched               = errorsmod.Register(ModuleName, 1111, "mismatched")
	ErrNoValidators             = errorsmod.Register(ModuleName, 1112, "no bonded validators in active set")
	ErrInvalidValAddress        = errorsmod.Register(ModuleName, 1113, "invalid validator address in current valset %v")
	ErrInvalidEthAddress        = errorsmod.Register(ModuleName, 1114, "discovered invalid eth address stored for validator %v")
	ErrInvalidValset            = errorsmod.Register(ModuleName, 1115, "generated invalid valset")
	ErrDuplicateEthereumKey     = errorsmod.Register(ModuleName, 1116, "duplicate ethereum key")
	ErrDuplicateOrchestratorKey = errorsmod.Register(ModuleName, 1117, "duplicate orchestrator key")
)

x/attestation module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// EthAddressByValidatorKey indexes cosmos validator account addresses
	// i.e. gravity1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm
	// [0x1248a4405201cc3a00ab515ce9c4dd47]
	EthAddressByValidatorKey = util.HashString("EthAddressValidatorKey")

	// ValidatorByEthAddressKey indexes ethereum addresses
	// i.e. 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B
	// [0xbfe41763f372108317ed982a4cd1b4a8]
	ValidatorByEthAddressKey = util.HashString("ValidatorByEthAddressKey")

	// KeyOrchestratorAddress indexes the validator keys for an orchestrator
	// [0x391e8708521fb085676169e8fb232cda]
	KeyOrchestratorAddress = util.HashString("KeyOrchestratorAddress")
)
View Source
var (
	// LatestValsetNonce indexes the latest valset nonce
	// [0xba0fa05da166611b656bac7739a6e7d3]
	LatestValsetNonce = util.HashString("LatestValsetNonce")

	// LastUnBondingBlockHeight indexes the last validator unbonding block height
	// [0x06a6b30651341e80276e0d2e19449250]
	LastUnBondingBlockHeight = util.HashString("LastUnBondingBlockHeight")

	// LastEventNonceByValidatorKey indexes lateset event nonce by validator
	// [0xeefcb999cc3d7b80b052b55106a6ba5e]
	LastEventNonceByValidatorKey = util.HashString("LastEventNonceByValidatorKey")
)
View Source
var (
	ErrInvalidLengthLastClaimEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLastClaimEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLastClaimEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthValset        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValset          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValset = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValsetConfirmation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValsetConfirmation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValsetConfirmation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValsetUpdatedClaim        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValsetUpdatedClaim          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValsetUpdatedClaim = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	AttestationVotesPowerThreshold = sdk.NewInt(66)
)

AttestationVotesPowerThreshold threshold of votes power to succeed

View Source
var ClaimType_name = map[int32]string{
	0: "CLAIM_TYPE_UNSPECIFIED",
	1: "CLAIM_TYPE_VALSET_UPDATED",
	2: "CLAIM_TYPE_SET_METADATA_REQUEST",
	3: "CLAIM_TYPE_CROSSCHAIN_REQUEST",
	4: "CLAIM_TYPE_CROSSCHAIN_ACK_REQUEST",
	5: "CLAIM_TYPE_CROSSCHAIN_ACK_RECEIPT",
	6: "CLAIM_TYPE_FUND_DEPOSITED_REQUEST",
	7: "CLAIM_TYPE_FUND_PAID_REQUEST",
	8: "CLAIM_DEPOSIT_INFO_UPDATED_REQUEST",
}
View Source
var ClaimType_value = map[string]int32{
	"CLAIM_TYPE_UNSPECIFIED":             0,
	"CLAIM_TYPE_VALSET_UPDATED":          1,
	"CLAIM_TYPE_SET_METADATA_REQUEST":    2,
	"CLAIM_TYPE_CROSSCHAIN_REQUEST":      3,
	"CLAIM_TYPE_CROSSCHAIN_ACK_REQUEST":  4,
	"CLAIM_TYPE_CROSSCHAIN_ACK_RECEIPT":  5,
	"CLAIM_TYPE_FUND_DEPOSITED_REQUEST":  6,
	"CLAIM_TYPE_FUND_PAID_REQUEST":       7,
	"CLAIM_DEPOSIT_INFO_UPDATED_REQUEST": 8,
}
View Source
var PastEthSignatureCheckpointKey = util.HashString("PastEthSignatureCheckpointKey")

PastEthSignatureCheckpointKey indexes eth signature checkpoints that have existed [0x1cbe0be407a979331b98e599eeedd09f]

View Source
var ValsetUpdatedClaimStatus_name = map[int32]string{
	0: "VALSET_UPDATED_CLAIM_CREATED",
	1: "VALSET_UPDATED_CLAIM_VALIDATED",
}
View Source
var ValsetUpdatedClaimStatus_value = map[string]int32{
	"VALSET_UPDATED_CLAIM_CREATED":   0,
	"VALSET_UPDATED_CLAIM_VALIDATED": 1,
}

Functions ¶

func AttestationKey ¶

func AttestationKey(
	chainId string,
	contract string,
	eventNonce uint64,
	claimHash []byte,
) []byte

AttestationKey returns the store key to retrieve a Attestation from the index fields

func EthAddrLessThan ¶

func EthAddrLessThan(e EthAddress, o EthAddress) bool

EthAddrLessThan migrates the Ethereum address less than function

func GetEthAddressByValidatorKey ¶

func GetEthAddressByValidatorKey(validator sdk.ValAddress) []byte

GetEthAddressByValidatorKey returns the following key format prefix cosmos-validator [0x0][gravityvaloper1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]

func GetLastEventByValidatorKey ¶

func GetLastEventByValidatorKey(validator sdk.ValAddress, chainId string, contract string) []byte

GetLastEventByValidatorKey indexes latest event nonce by validator GetLastEventByValidatorKey returns the following key format prefix cosmos-validator [0x0][gravity1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]

func GetOrchestratorAddressKey ¶

func GetOrchestratorAddressKey(orc sdk.AccAddress) []byte

GetOrchestratorAddressKey returns the following key format prefix orchestrator address [0x0][gravity1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]

func GetPastEthSignatureCheckpointKey ¶

func GetPastEthSignatureCheckpointKey(checkpoint []byte) []byte

GetPastEthSignatureCheckpointKey returns the following key format prefix checkpoint [0x0][ checkpoint bytes ]

func GetValidatorByEthAddressKey ¶

func GetValidatorByEthAddressKey(ethAddress EthAddress) []byte

GetValidatorByEthAddressKey returns the following key format prefix cosmos-validator [0x0][0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B]

func KeyPrefix ¶

func KeyPrefix(p string) []byte

func NewEthereumSignature ¶

func NewEthereumSignature(hash []byte, privateKey *ecdsa.PrivateKey) ([]byte, error)

NewEthereumSignature creates a new signature over a given byte array

func ObservedAttestationKey ¶

func ObservedAttestationKey(
	chainId string,
	contract string,
	eventNonce uint64,
	claimHash []byte,
) []byte

ObservedAttestationKey returns the store key to retrieve a ObservedAttestation from the index fields

func ParamKeyTable ¶

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec ¶

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces ¶

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec ¶

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer ¶

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer ¶

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateEthAddress ¶

func ValidateEthAddress(address string) error

Validates the input string as an Ethereum Address Addresses must not be empty, have 42 character length, start with 0x and have 40 remaining characters in [0-9a-fA-F]

func ValidateEthereumSignature ¶

func ValidateEthereumSignature(hash []byte, signature []byte, ethAddress EthAddress) error

func ValidateEthereumSignatureStarknet ¶

func ValidateEthereumSignatureStarknet(hash []byte, signature []byte, ethAddress EthAddress) error

func ValidateSignatureWithFallback ¶

func ValidateSignatureWithFallback(hash []byte, signature []byte, ethAddress EthAddress) error

func ValsetConfirmationKey ¶

func ValsetConfirmationKey(
	valsetNonce uint64,
	orchestrator sdk.AccAddress,
) []byte

ValsetConfirmationKey returns the store key to retrieve a ValsetConfirmation from the index fields

func ValsetKey ¶

func ValsetKey(
	valsetNonce uint64,
) []byte

ValsetKey returns the store key to retrieve a Valset from the index fields

func ValsetUpdatedClaimKey ¶

func ValsetUpdatedClaimKey(
	chainId string,
	eventNonce uint64,
	claimHash []byte,
) []byte

ValsetUpdatedClaimKey returns the store key to retrieve a ValsetUpdatedClaim from the index fields

Types ¶

type AccountKeeper ¶

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) auth.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type Attestation ¶

type Attestation struct {
	Observed bool       `protobuf:"varint,1,opt,name=observed,proto3" json:"observed,omitempty"`
	Votes    []string   `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"`
	Height   uint64     `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Claim    *types.Any `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty"`
}

func (*Attestation) Descriptor ¶

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

func (*Attestation) GetClaim ¶

func (m *Attestation) GetClaim() *types.Any

func (*Attestation) GetHeight ¶

func (m *Attestation) GetHeight() uint64

func (*Attestation) GetObserved ¶

func (m *Attestation) GetObserved() bool

func (*Attestation) GetVotes ¶

func (m *Attestation) GetVotes() []string

func (*Attestation) Marshal ¶

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

func (*Attestation) MarshalTo ¶

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

func (*Attestation) MarshalToSizedBuffer ¶

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

func (*Attestation) ProtoMessage ¶

func (*Attestation) ProtoMessage()

func (*Attestation) Reset ¶

func (m *Attestation) Reset()

func (*Attestation) Size ¶

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

func (*Attestation) String ¶

func (m *Attestation) String() string

func (*Attestation) Unmarshal ¶

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

func (*Attestation) XXX_DiscardUnknown ¶

func (m *Attestation) XXX_DiscardUnknown()

func (*Attestation) XXX_Marshal ¶

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

func (*Attestation) XXX_Merge ¶

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

func (*Attestation) XXX_Size ¶

func (m *Attestation) XXX_Size() int

func (*Attestation) XXX_Unmarshal ¶

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

type AttestationHooks ¶

type AttestationHooks interface {
	AttestationObservedHook(ctx sdk.Context, claim Claim)
}

type BankKeeper ¶

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected bank keeper methods

type BridgeValidator ¶

type BridgeValidator struct {
	Power           uint64 `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"`
	EthereumAddress string `protobuf:"bytes,2,opt,name=ethereumAddress,proto3" json:"ethereumAddress,omitempty"`
}

func (*BridgeValidator) Descriptor ¶

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

func (*BridgeValidator) GetEthereumAddress ¶

func (m *BridgeValidator) GetEthereumAddress() string

func (*BridgeValidator) GetPower ¶

func (m *BridgeValidator) GetPower() uint64

func (*BridgeValidator) Marshal ¶

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

func (*BridgeValidator) MarshalTo ¶

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

func (*BridgeValidator) MarshalToSizedBuffer ¶

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

func (*BridgeValidator) ProtoMessage ¶

func (*BridgeValidator) ProtoMessage()

func (*BridgeValidator) Reset ¶

func (m *BridgeValidator) Reset()

func (*BridgeValidator) Size ¶

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

func (*BridgeValidator) String ¶

func (m *BridgeValidator) String() string

func (BridgeValidator) ToInternal ¶

func (b BridgeValidator) ToInternal() (*InternalBridgeValidator, error)

ToInternal transforms a BridgeValidator into its fully validated internal type

func (*BridgeValidator) Unmarshal ¶

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

func (*BridgeValidator) XXX_DiscardUnknown ¶

func (m *BridgeValidator) XXX_DiscardUnknown()

func (*BridgeValidator) XXX_Marshal ¶

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

func (*BridgeValidator) XXX_Merge ¶

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

func (*BridgeValidator) XXX_Size ¶

func (m *BridgeValidator) XXX_Size() int

func (*BridgeValidator) XXX_Unmarshal ¶

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

type BridgeValidators ¶

type BridgeValidators []BridgeValidator

BridgeValidators is the sorted set of validator data for Ethereum bridge MultiSig set

func (BridgeValidators) Equal ¶

Equal checks that slice contents and order are equal

func (BridgeValidators) ToInternal ¶

func (b BridgeValidators) ToInternal() (*InternalBridgeValidators, error)

type Claim ¶

type Claim interface {
	// All Ethereum claims that we relay from the Gravity contract and into the module
	// have a nonce that is monotonically increasing and unique, since this nonce is
	// issued by the Ethereum contract it is immutable and must be agreed on by all validators
	// any disagreement on what claim goes to what nonce means someone is lying.
	GetEventNonce() uint64

	GetChainId() string

	GetContract() string

	// The block height that the claimed event occurred on. This EventNonce provides sufficient
	// ordering for the execution of all claims. The block height is used only for batchTimeouts + logicTimeouts
	// when we go to create a new batch we set the timeout some number of batches out from the last
	// known height plus projected block progress since then.
	GetBlockHeight() uint64

	// the delegate address of the claimer, for MsgDepositClaim and MsgWithdrawClaim
	// this is sent in as the sdk.AccAddress of the delegated key. it is up to the user
	// to disambiguate this into a sdk.ValAddress
	GetClaimer() sdk.AccAddress

	// Which type of claim this is
	GetType() ClaimType

	ValidateBasic() error

	// The claim hash of this claim. This is used to store these claims and also used to check if two different
	// validators claims agree. Therefore it's extremely important that this include all elements of the claim
	// with the exception of the orchestrator who sent it in, which will be used as a different part of the index
	ClaimHash() ([]byte, error)
}

Claim represents a claim on ethereum state

type ClaimType ¶

type ClaimType int32
const (
	CLAIM_TYPE_UNSPECIFIED             ClaimType = 0
	CLAIM_TYPE_VALSET_UPDATED          ClaimType = 1
	CLAIM_TYPE_SET_METADATA_REQUEST    ClaimType = 2
	CLAIM_TYPE_CROSSCHAIN_REQUEST      ClaimType = 3
	CLAIM_TYPE_CROSSCHAIN_ACK_REQUEST  ClaimType = 4
	CLAIM_TYPE_CROSSCHAIN_ACK_RECEIPT  ClaimType = 5
	CLAIM_TYPE_FUND_DEPOSITED_REQUEST  ClaimType = 6
	CLAIM_TYPE_FUND_PAID_REQUEST       ClaimType = 7
	CLAIM_DEPOSIT_INFO_UPDATED_REQUEST ClaimType = 8
)

func (ClaimType) EnumDescriptor ¶

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

func (ClaimType) String ¶

func (x ClaimType) String() string

type DistributionKeeper ¶

type DistributionKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
	GetFeePool(ctx sdk.Context) (feePool types.FeePool)
	SetFeePool(ctx sdk.Context, feePool types.FeePool)
}

type EthAddress ¶

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

Regular EthAddress

func EthAddressFromSignature ¶

func EthAddressFromSignature(hash []byte, signature []byte) (*EthAddress, error)

func EthAddressFromSignatureStarknet ¶

func EthAddressFromSignatureStarknet(hash []byte, signature []byte) (*EthAddress, error)

func NewEthAddress ¶

func NewEthAddress(address string) (*EthAddress, error)

Creates a new EthAddress from a string, performing validation and returning any validation errors

func NewEthAddressFromBytes ¶

func NewEthAddressFromBytes(address []byte) (*EthAddress, error)

func ZeroAddress ¶

func ZeroAddress() EthAddress

Returns a new EthAddress with 0x0000000000000000000000000000000000000000 as the wrapped address

func (EthAddress) GetAddress ¶

func (ea EthAddress) GetAddress() gethcommon.Address

Returns the contained address as a string

func (*EthAddress) SetAddress ¶

func (ea *EthAddress) SetAddress(address string) error

Sets the contained address, performing validation before updating the value

func (EthAddress) ValidateBasic ¶

func (ea EthAddress) ValidateBasic() error

Performs validation on the wrapped string

type EthereumSigned ¶

type EthereumSigned interface {
	GetCheckpoint(gravityIDstring string) ([]byte, error)
}

This interface is implemented by all the types that are used to create transactions on Ethereum that are signed by validators. The naming here could be improved.

type EventAttestationObserved ¶

type EventAttestationObserved struct {
	AttestationType ClaimType `` /* 138-byte string literal not displayed */
	AttestationId   []byte    `protobuf:"bytes,2,opt,name=attestation_id,json=attestationId,proto3" json:"attestation_id,omitempty"`
	ChainId         string    `protobuf:"bytes,3,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract        string    `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce      uint64    `protobuf:"varint,5,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
}

func (*EventAttestationObserved) Descriptor ¶

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

func (*EventAttestationObserved) GetAttestationId ¶

func (m *EventAttestationObserved) GetAttestationId() []byte

func (*EventAttestationObserved) GetAttestationType ¶

func (m *EventAttestationObserved) GetAttestationType() ClaimType

func (*EventAttestationObserved) GetChainId ¶

func (m *EventAttestationObserved) GetChainId() string

func (*EventAttestationObserved) GetContract ¶

func (m *EventAttestationObserved) GetContract() string

func (*EventAttestationObserved) GetEventNonce ¶

func (m *EventAttestationObserved) GetEventNonce() uint64

func (*EventAttestationObserved) Marshal ¶

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

func (*EventAttestationObserved) MarshalTo ¶

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

func (*EventAttestationObserved) MarshalToSizedBuffer ¶

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

func (*EventAttestationObserved) ProtoMessage ¶

func (*EventAttestationObserved) ProtoMessage()

func (*EventAttestationObserved) Reset ¶

func (m *EventAttestationObserved) Reset()

func (*EventAttestationObserved) Size ¶

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

func (*EventAttestationObserved) String ¶

func (m *EventAttestationObserved) String() string

func (*EventAttestationObserved) Unmarshal ¶

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

func (*EventAttestationObserved) XXX_DiscardUnknown ¶

func (m *EventAttestationObserved) XXX_DiscardUnknown()

func (*EventAttestationObserved) XXX_Marshal ¶

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

func (*EventAttestationObserved) XXX_Merge ¶

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

func (*EventAttestationObserved) XXX_Size ¶

func (m *EventAttestationObserved) XXX_Size() int

func (*EventAttestationObserved) XXX_Unmarshal ¶

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

type EventAttestationVote ¶

type EventAttestationVote struct {
	AttestationType ClaimType `` /* 138-byte string literal not displayed */
	AttestationId   []byte    `protobuf:"bytes,2,opt,name=attestation_id,json=attestationId,proto3" json:"attestation_id,omitempty"`
	ChainId         string    `protobuf:"bytes,3,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract        string    `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce      uint64    `protobuf:"varint,5,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	Voter           string    `protobuf:"bytes,6,opt,name=voter,proto3" json:"voter,omitempty"`
}

func (*EventAttestationVote) Descriptor ¶

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

func (*EventAttestationVote) GetAttestationId ¶

func (m *EventAttestationVote) GetAttestationId() []byte

func (*EventAttestationVote) GetAttestationType ¶

func (m *EventAttestationVote) GetAttestationType() ClaimType

func (*EventAttestationVote) GetChainId ¶

func (m *EventAttestationVote) GetChainId() string

func (*EventAttestationVote) GetContract ¶

func (m *EventAttestationVote) GetContract() string

func (*EventAttestationVote) GetEventNonce ¶

func (m *EventAttestationVote) GetEventNonce() uint64

func (*EventAttestationVote) GetVoter ¶

func (m *EventAttestationVote) GetVoter() string

func (*EventAttestationVote) Marshal ¶

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

func (*EventAttestationVote) MarshalTo ¶

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

func (*EventAttestationVote) MarshalToSizedBuffer ¶

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

func (*EventAttestationVote) ProtoMessage ¶

func (*EventAttestationVote) ProtoMessage()

func (*EventAttestationVote) Reset ¶

func (m *EventAttestationVote) Reset()

func (*EventAttestationVote) Size ¶

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

func (*EventAttestationVote) String ¶

func (m *EventAttestationVote) String() string

func (*EventAttestationVote) Unmarshal ¶

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

func (*EventAttestationVote) XXX_DiscardUnknown ¶

func (m *EventAttestationVote) XXX_DiscardUnknown()

func (*EventAttestationVote) XXX_Marshal ¶

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

func (*EventAttestationVote) XXX_Merge ¶

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

func (*EventAttestationVote) XXX_Size ¶

func (m *EventAttestationVote) XXX_Size() int

func (*EventAttestationVote) XXX_Unmarshal ¶

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

type EventSetOrchestratorAddresses ¶

type EventSetOrchestratorAddresses struct {
	ValidatorAddress    string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	OrchestratorAddress string `protobuf:"bytes,2,opt,name=orchestrator_address,json=orchestratorAddress,proto3" json:"orchestrator_address,omitempty"`
	OperatorEthAddress  string `protobuf:"bytes,3,opt,name=operator_eth_address,json=operatorEthAddress,proto3" json:"operator_eth_address,omitempty"`
}

func (*EventSetOrchestratorAddresses) Descriptor ¶

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

func (*EventSetOrchestratorAddresses) GetOperatorEthAddress ¶

func (m *EventSetOrchestratorAddresses) GetOperatorEthAddress() string

func (*EventSetOrchestratorAddresses) GetOrchestratorAddress ¶

func (m *EventSetOrchestratorAddresses) GetOrchestratorAddress() string

func (*EventSetOrchestratorAddresses) GetValidatorAddress ¶

func (m *EventSetOrchestratorAddresses) GetValidatorAddress() string

func (*EventSetOrchestratorAddresses) Marshal ¶

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

func (*EventSetOrchestratorAddresses) MarshalTo ¶

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

func (*EventSetOrchestratorAddresses) MarshalToSizedBuffer ¶

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

func (*EventSetOrchestratorAddresses) ProtoMessage ¶

func (*EventSetOrchestratorAddresses) ProtoMessage()

func (*EventSetOrchestratorAddresses) Reset ¶

func (m *EventSetOrchestratorAddresses) Reset()

func (*EventSetOrchestratorAddresses) Size ¶

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

func (*EventSetOrchestratorAddresses) String ¶

func (*EventSetOrchestratorAddresses) Unmarshal ¶

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

func (*EventSetOrchestratorAddresses) XXX_DiscardUnknown ¶

func (m *EventSetOrchestratorAddresses) XXX_DiscardUnknown()

func (*EventSetOrchestratorAddresses) XXX_Marshal ¶

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

func (*EventSetOrchestratorAddresses) XXX_Merge ¶

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

func (*EventSetOrchestratorAddresses) XXX_Size ¶

func (m *EventSetOrchestratorAddresses) XXX_Size() int

func (*EventSetOrchestratorAddresses) XXX_Unmarshal ¶

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

type EventValsetConfirm ¶

type EventValsetConfirm struct {
	ValsetNonce         uint64 `protobuf:"varint,1,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"`
	OrchestratorAddress string `protobuf:"bytes,2,opt,name=orchestrator_address,json=orchestratorAddress,proto3" json:"orchestrator_address,omitempty"`
	EthSigner           string `protobuf:"bytes,3,opt,name=ethSigner,proto3" json:"ethSigner,omitempty"`
	Signature           string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*EventValsetConfirm) Descriptor ¶

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

func (*EventValsetConfirm) GetEthSigner ¶

func (m *EventValsetConfirm) GetEthSigner() string

func (*EventValsetConfirm) GetOrchestratorAddress ¶

func (m *EventValsetConfirm) GetOrchestratorAddress() string

func (*EventValsetConfirm) GetSignature ¶

func (m *EventValsetConfirm) GetSignature() string

func (*EventValsetConfirm) GetValsetNonce ¶

func (m *EventValsetConfirm) GetValsetNonce() uint64

func (*EventValsetConfirm) Marshal ¶

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

func (*EventValsetConfirm) MarshalTo ¶

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

func (*EventValsetConfirm) MarshalToSizedBuffer ¶

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

func (*EventValsetConfirm) ProtoMessage ¶

func (*EventValsetConfirm) ProtoMessage()

func (*EventValsetConfirm) Reset ¶

func (m *EventValsetConfirm) Reset()

func (*EventValsetConfirm) Size ¶

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

func (*EventValsetConfirm) String ¶

func (m *EventValsetConfirm) String() string

func (*EventValsetConfirm) Unmarshal ¶

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

func (*EventValsetConfirm) XXX_DiscardUnknown ¶

func (m *EventValsetConfirm) XXX_DiscardUnknown()

func (*EventValsetConfirm) XXX_Marshal ¶

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

func (*EventValsetConfirm) XXX_Merge ¶

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

func (*EventValsetConfirm) XXX_Size ¶

func (m *EventValsetConfirm) XXX_Size() int

func (*EventValsetConfirm) XXX_Unmarshal ¶

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

type EventValsetCreate ¶

type EventValsetCreate struct {
	ValsetNonce   uint64            `protobuf:"varint,1,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"`
	ValsetHeight  uint64            `protobuf:"varint,2,opt,name=valset_height,json=valsetHeight,proto3" json:"valset_height,omitempty"`
	ValsetMembers []BridgeValidator `protobuf:"bytes,3,rep,name=valset_members,json=valsetMembers,proto3" json:"valset_members"`
}

func (*EventValsetCreate) Descriptor ¶

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

func (*EventValsetCreate) GetValsetHeight ¶

func (m *EventValsetCreate) GetValsetHeight() uint64

func (*EventValsetCreate) GetValsetMembers ¶

func (m *EventValsetCreate) GetValsetMembers() []BridgeValidator

func (*EventValsetCreate) GetValsetNonce ¶

func (m *EventValsetCreate) GetValsetNonce() uint64

func (*EventValsetCreate) Marshal ¶

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

func (*EventValsetCreate) MarshalTo ¶

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

func (*EventValsetCreate) MarshalToSizedBuffer ¶

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

func (*EventValsetCreate) ProtoMessage ¶

func (*EventValsetCreate) ProtoMessage()

func (*EventValsetCreate) Reset ¶

func (m *EventValsetCreate) Reset()

func (*EventValsetCreate) Size ¶

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

func (*EventValsetCreate) String ¶

func (m *EventValsetCreate) String() string

func (*EventValsetCreate) Unmarshal ¶

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

func (*EventValsetCreate) XXX_DiscardUnknown ¶

func (m *EventValsetCreate) XXX_DiscardUnknown()

func (*EventValsetCreate) XXX_Marshal ¶

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

func (*EventValsetCreate) XXX_Merge ¶

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

func (*EventValsetCreate) XXX_Size ¶

func (m *EventValsetCreate) XXX_Size() int

func (*EventValsetCreate) XXX_Unmarshal ¶

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

type EventValsetUpdatedClaimCreated ¶

type EventValsetUpdatedClaimCreated struct {
	AttestationId []byte            `protobuf:"bytes,1,opt,name=attestation_id,json=attestationId,proto3" json:"attestation_id,omitempty"`
	ChainId       string            `protobuf:"bytes,2,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract      string            `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce    uint64            `protobuf:"varint,4,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	ValsetNonce   uint64            `protobuf:"varint,5,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"`
	EventHeight   uint64            `protobuf:"varint,6,opt,name=event_height,json=eventHeight,proto3" json:"event_height,omitempty"`
	SrcTxHash     string            `protobuf:"bytes,7,opt,name=src_tx_hash,json=srcTxHash,proto3" json:"src_tx_hash,omitempty"`
	ValsetMembers []BridgeValidator `protobuf:"bytes,8,rep,name=valset_members,json=valsetMembers,proto3" json:"valset_members"`
}

func (*EventValsetUpdatedClaimCreated) Descriptor ¶

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

func (*EventValsetUpdatedClaimCreated) GetAttestationId ¶

func (m *EventValsetUpdatedClaimCreated) GetAttestationId() []byte

func (*EventValsetUpdatedClaimCreated) GetChainId ¶

func (m *EventValsetUpdatedClaimCreated) GetChainId() string

func (*EventValsetUpdatedClaimCreated) GetContract ¶

func (m *EventValsetUpdatedClaimCreated) GetContract() string

func (*EventValsetUpdatedClaimCreated) GetEventHeight ¶

func (m *EventValsetUpdatedClaimCreated) GetEventHeight() uint64

func (*EventValsetUpdatedClaimCreated) GetEventNonce ¶

func (m *EventValsetUpdatedClaimCreated) GetEventNonce() uint64

func (*EventValsetUpdatedClaimCreated) GetSrcTxHash ¶

func (m *EventValsetUpdatedClaimCreated) GetSrcTxHash() string

func (*EventValsetUpdatedClaimCreated) GetValsetMembers ¶

func (m *EventValsetUpdatedClaimCreated) GetValsetMembers() []BridgeValidator

func (*EventValsetUpdatedClaimCreated) GetValsetNonce ¶

func (m *EventValsetUpdatedClaimCreated) GetValsetNonce() uint64

func (*EventValsetUpdatedClaimCreated) Marshal ¶

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

func (*EventValsetUpdatedClaimCreated) MarshalTo ¶

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

func (*EventValsetUpdatedClaimCreated) MarshalToSizedBuffer ¶

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

func (*EventValsetUpdatedClaimCreated) ProtoMessage ¶

func (*EventValsetUpdatedClaimCreated) ProtoMessage()

func (*EventValsetUpdatedClaimCreated) Reset ¶

func (m *EventValsetUpdatedClaimCreated) Reset()

func (*EventValsetUpdatedClaimCreated) Size ¶

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

func (*EventValsetUpdatedClaimCreated) String ¶

func (*EventValsetUpdatedClaimCreated) Unmarshal ¶

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

func (*EventValsetUpdatedClaimCreated) XXX_DiscardUnknown ¶

func (m *EventValsetUpdatedClaimCreated) XXX_DiscardUnknown()

func (*EventValsetUpdatedClaimCreated) XXX_Marshal ¶

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

func (*EventValsetUpdatedClaimCreated) XXX_Merge ¶

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

func (*EventValsetUpdatedClaimCreated) XXX_Size ¶

func (m *EventValsetUpdatedClaimCreated) XXX_Size() int

func (*EventValsetUpdatedClaimCreated) XXX_Unmarshal ¶

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

type GenesisState ¶

type GenesisState struct {
	Params                 Params               `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	ValsetList             []Valset             `protobuf:"bytes,2,rep,name=valsetList,proto3" json:"valsetList"`
	AttestationList        []Attestation        `protobuf:"bytes,3,rep,name=attestationList,proto3" json:"attestationList"`
	ValsetConfirmationList []ValsetConfirmation `protobuf:"bytes,4,rep,name=valsetConfirmationList,proto3" json:"valsetConfirmationList"`
	ValsetUpdatedClaimList []ValsetUpdatedClaim `protobuf:"bytes,5,rep,name=valsetUpdatedClaimList,proto3" json:"valsetUpdatedClaimList"`
	// this line is used by starport scaffolding # genesis/proto/state
	ObservedAttestationList []Attestation `protobuf:"bytes,6,rep,name=observedAttestationList,proto3" json:"observedAttestationList"`
}

GenesisState defines the attestation module's genesis state.

func DefaultGenesis ¶

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor ¶

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

func (*GenesisState) GetAttestationList ¶

func (m *GenesisState) GetAttestationList() []Attestation

func (*GenesisState) GetObservedAttestationList ¶

func (m *GenesisState) GetObservedAttestationList() []Attestation

func (*GenesisState) GetParams ¶

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetValsetConfirmationList ¶

func (m *GenesisState) GetValsetConfirmationList() []ValsetConfirmation

func (*GenesisState) GetValsetList ¶

func (m *GenesisState) GetValsetList() []Valset

func (*GenesisState) GetValsetUpdatedClaimList ¶

func (m *GenesisState) GetValsetUpdatedClaimList() []ValsetUpdatedClaim

func (*GenesisState) Marshal ¶

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

func (*GenesisState) MarshalTo ¶

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

func (*GenesisState) MarshalToSizedBuffer ¶

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

func (*GenesisState) ProtoMessage ¶

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset ¶

func (m *GenesisState) Reset()

func (*GenesisState) Size ¶

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

func (*GenesisState) String ¶

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal ¶

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

func (GenesisState) Validate ¶

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown ¶

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal ¶

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

func (*GenesisState) XXX_Merge ¶

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

func (*GenesisState) XXX_Size ¶

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal ¶

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

type InternalBridgeValidator ¶

type InternalBridgeValidator struct {
	Power           uint64
	EthereumAddress EthAddress
}

InternalBridgeValidator is a BridgeValidator but with validated EthereumAddress

func NewInternalBridgeValidator ¶

func NewInternalBridgeValidator(bridgeValidator BridgeValidator) (*InternalBridgeValidator, error)

func (InternalBridgeValidator) ToExternal ¶

func (InternalBridgeValidator) ValidateBasic ¶

func (i InternalBridgeValidator) ValidateBasic() error

type InternalBridgeValidators ¶

type InternalBridgeValidators []*InternalBridgeValidator

InternalBridgeValidators is the sorted set of validator data for Ethereum bridge MultiSig set

func (InternalBridgeValidators) GetPowers ¶

func (b InternalBridgeValidators) GetPowers() []uint64

GetPowers returns only the power values for all members

func (InternalBridgeValidators) HasDuplicates ¶

func (b InternalBridgeValidators) HasDuplicates() bool

HasDuplicates returns true if there are duplicates in the set

func (InternalBridgeValidators) PowerDiff ¶

PowerDiff returns the difference in power between two bridge validator sets note this is Gravity bridge power *not* Cosmos voting power. Cosmos voting power is based on the absolute number of tokens in the staking pool at any given time Gravity bridge power is normalized using the equation.

validators cosmos voting power / total cosmos voting power in this block = gravity bridge power / u32_max

As an example if someone has 52% of the Cosmos voting power when a validator set is created their Gravity bridge voting power is u32_max * .52

Normalized voting power dramatically reduces how often we have to produce new validator set updates. For example if the total on chain voting power increases by 1% due to inflation, we shouldn't have to generate a new validator set, after all the validators retained their relative percentages during inflation and normalized Gravity bridge power shows no difference.

func (InternalBridgeValidators) Sort ¶

func (b InternalBridgeValidators) Sort()

Sort sorts the validators by power

func (InternalBridgeValidators) ToExternal ¶

func (InternalBridgeValidators) TotalPower ¶

func (b InternalBridgeValidators) TotalPower() (out uint64)

TotalPower returns the total power in the bridge validator set

func (InternalBridgeValidators) ValidateBasic ¶

func (b InternalBridgeValidators) ValidateBasic() error

ValidateBasic performs stateless checks

type LastClaimEvent ¶

type LastClaimEvent struct {
	EventNonce  uint64 `protobuf:"varint,1,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	EventHeight uint64 `protobuf:"varint,2,opt,name=eventHeight,proto3" json:"eventHeight,omitempty"`
}

func (*LastClaimEvent) Descriptor ¶

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

func (*LastClaimEvent) GetEventHeight ¶

func (m *LastClaimEvent) GetEventHeight() uint64

func (*LastClaimEvent) GetEventNonce ¶

func (m *LastClaimEvent) GetEventNonce() uint64

func (*LastClaimEvent) Marshal ¶

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

func (*LastClaimEvent) MarshalTo ¶

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

func (*LastClaimEvent) MarshalToSizedBuffer ¶

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

func (*LastClaimEvent) ProtoMessage ¶

func (*LastClaimEvent) ProtoMessage()

func (*LastClaimEvent) Reset ¶

func (m *LastClaimEvent) Reset()

func (*LastClaimEvent) Size ¶

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

func (*LastClaimEvent) String ¶

func (m *LastClaimEvent) String() string

func (*LastClaimEvent) Unmarshal ¶

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

func (*LastClaimEvent) XXX_DiscardUnknown ¶

func (m *LastClaimEvent) XXX_DiscardUnknown()

func (*LastClaimEvent) XXX_Marshal ¶

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

func (*LastClaimEvent) XXX_Merge ¶

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

func (*LastClaimEvent) XXX_Size ¶

func (m *LastClaimEvent) XXX_Size() int

func (*LastClaimEvent) XXX_Unmarshal ¶

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

type MsgClient ¶

type MsgClient interface {
	SetOrchestratorAddress(ctx context.Context, in *MsgSetOrchestratorAddress, opts ...grpc.CallOption) (*MsgSetOrchestratorAddressResponse, error)
	ValsetConfirm(ctx context.Context, in *MsgValsetConfirm, opts ...grpc.CallOption) (*MsgValsetConfirmResponse, error)
	ValsetUpdatedClaim(ctx context.Context, in *MsgValsetUpdatedClaim, opts ...grpc.CallOption) (*MsgValsetUpdatedClaimResponse, 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 MsgServer ¶

MsgServer is the server API for Msg service.

type MsgSetOrchestratorAddress ¶

type MsgSetOrchestratorAddress struct {
	Validator    string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	Orchestrator string `protobuf:"bytes,2,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
	EthAddress   string `protobuf:"bytes,3,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
}

func NewMsgSetOrchestratorAddress ¶

func NewMsgSetOrchestratorAddress(validator string, orchestrator string, ethAddress string) *MsgSetOrchestratorAddress

func (*MsgSetOrchestratorAddress) Descriptor ¶

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

func (*MsgSetOrchestratorAddress) GetEthAddress ¶

func (m *MsgSetOrchestratorAddress) GetEthAddress() string

func (*MsgSetOrchestratorAddress) GetOrchestrator ¶

func (m *MsgSetOrchestratorAddress) GetOrchestrator() string

func (*MsgSetOrchestratorAddress) GetSignBytes ¶

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

func (*MsgSetOrchestratorAddress) GetSigners ¶

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

func (*MsgSetOrchestratorAddress) GetValidator ¶

func (m *MsgSetOrchestratorAddress) GetValidator() string

func (*MsgSetOrchestratorAddress) Marshal ¶

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

func (*MsgSetOrchestratorAddress) MarshalTo ¶

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

func (*MsgSetOrchestratorAddress) MarshalToSizedBuffer ¶

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

func (*MsgSetOrchestratorAddress) ProtoMessage ¶

func (*MsgSetOrchestratorAddress) ProtoMessage()

func (*MsgSetOrchestratorAddress) Reset ¶

func (m *MsgSetOrchestratorAddress) Reset()

func (*MsgSetOrchestratorAddress) Route ¶

func (msg *MsgSetOrchestratorAddress) Route() string

func (*MsgSetOrchestratorAddress) Size ¶

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

func (*MsgSetOrchestratorAddress) String ¶

func (m *MsgSetOrchestratorAddress) String() string

func (*MsgSetOrchestratorAddress) Type ¶

func (msg *MsgSetOrchestratorAddress) Type() string

func (*MsgSetOrchestratorAddress) Unmarshal ¶

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

func (*MsgSetOrchestratorAddress) ValidateBasic ¶

func (msg *MsgSetOrchestratorAddress) ValidateBasic() (err error)

func (*MsgSetOrchestratorAddress) XXX_DiscardUnknown ¶

func (m *MsgSetOrchestratorAddress) XXX_DiscardUnknown()

func (*MsgSetOrchestratorAddress) XXX_Marshal ¶

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

func (*MsgSetOrchestratorAddress) XXX_Merge ¶

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

func (*MsgSetOrchestratorAddress) XXX_Size ¶

func (m *MsgSetOrchestratorAddress) XXX_Size() int

func (*MsgSetOrchestratorAddress) XXX_Unmarshal ¶

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

type MsgSetOrchestratorAddressResponse ¶

type MsgSetOrchestratorAddressResponse struct {
}

func (*MsgSetOrchestratorAddressResponse) Descriptor ¶

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

func (*MsgSetOrchestratorAddressResponse) Marshal ¶

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

func (*MsgSetOrchestratorAddressResponse) MarshalTo ¶

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

func (*MsgSetOrchestratorAddressResponse) MarshalToSizedBuffer ¶

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

func (*MsgSetOrchestratorAddressResponse) ProtoMessage ¶

func (*MsgSetOrchestratorAddressResponse) ProtoMessage()

func (*MsgSetOrchestratorAddressResponse) Reset ¶

func (*MsgSetOrchestratorAddressResponse) Size ¶

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

func (*MsgSetOrchestratorAddressResponse) String ¶

func (*MsgSetOrchestratorAddressResponse) Unmarshal ¶

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

func (*MsgSetOrchestratorAddressResponse) XXX_DiscardUnknown ¶

func (m *MsgSetOrchestratorAddressResponse) XXX_DiscardUnknown()

func (*MsgSetOrchestratorAddressResponse) XXX_Marshal ¶

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

func (*MsgSetOrchestratorAddressResponse) XXX_Merge ¶

func (*MsgSetOrchestratorAddressResponse) XXX_Size ¶

func (m *MsgSetOrchestratorAddressResponse) XXX_Size() int

func (*MsgSetOrchestratorAddressResponse) XXX_Unmarshal ¶

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

type MsgValsetConfirm ¶

type MsgValsetConfirm struct {
	Orchestrator string `protobuf:"bytes,1,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
	ValsetNonce  uint64 `protobuf:"varint,2,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
	EthAddress   string `protobuf:"bytes,3,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Signature    string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

func NewMsgValsetConfirm ¶

func NewMsgValsetConfirm(orchestrator string, valsetNonce uint64, ethAddress string, signature string) *MsgValsetConfirm

func (*MsgValsetConfirm) Descriptor ¶

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

func (*MsgValsetConfirm) GetEthAddress ¶

func (m *MsgValsetConfirm) GetEthAddress() string

func (*MsgValsetConfirm) GetOrchestrator ¶

func (m *MsgValsetConfirm) GetOrchestrator() string

func (*MsgValsetConfirm) GetSignBytes ¶

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

func (*MsgValsetConfirm) GetSignature ¶

func (m *MsgValsetConfirm) GetSignature() string

func (*MsgValsetConfirm) GetSigners ¶

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

func (*MsgValsetConfirm) GetValsetNonce ¶

func (m *MsgValsetConfirm) GetValsetNonce() uint64

func (*MsgValsetConfirm) Marshal ¶

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

func (*MsgValsetConfirm) MarshalTo ¶

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

func (*MsgValsetConfirm) MarshalToSizedBuffer ¶

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

func (*MsgValsetConfirm) ProtoMessage ¶

func (*MsgValsetConfirm) ProtoMessage()

func (*MsgValsetConfirm) Reset ¶

func (m *MsgValsetConfirm) Reset()

func (*MsgValsetConfirm) Route ¶

func (msg *MsgValsetConfirm) Route() string

func (*MsgValsetConfirm) Size ¶

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

func (*MsgValsetConfirm) String ¶

func (m *MsgValsetConfirm) String() string

func (*MsgValsetConfirm) Type ¶

func (msg *MsgValsetConfirm) Type() string

func (*MsgValsetConfirm) Unmarshal ¶

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

func (*MsgValsetConfirm) ValidateBasic ¶

func (msg *MsgValsetConfirm) ValidateBasic() error

func (*MsgValsetConfirm) XXX_DiscardUnknown ¶

func (m *MsgValsetConfirm) XXX_DiscardUnknown()

func (*MsgValsetConfirm) XXX_Marshal ¶

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

func (*MsgValsetConfirm) XXX_Merge ¶

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

func (*MsgValsetConfirm) XXX_Size ¶

func (m *MsgValsetConfirm) XXX_Size() int

func (*MsgValsetConfirm) XXX_Unmarshal ¶

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

type MsgValsetConfirmResponse ¶

type MsgValsetConfirmResponse struct {
}

func (*MsgValsetConfirmResponse) Descriptor ¶

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

func (*MsgValsetConfirmResponse) Marshal ¶

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

func (*MsgValsetConfirmResponse) MarshalTo ¶

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

func (*MsgValsetConfirmResponse) MarshalToSizedBuffer ¶

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

func (*MsgValsetConfirmResponse) ProtoMessage ¶

func (*MsgValsetConfirmResponse) ProtoMessage()

func (*MsgValsetConfirmResponse) Reset ¶

func (m *MsgValsetConfirmResponse) Reset()

func (*MsgValsetConfirmResponse) Size ¶

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

func (*MsgValsetConfirmResponse) String ¶

func (m *MsgValsetConfirmResponse) String() string

func (*MsgValsetConfirmResponse) Unmarshal ¶

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

func (*MsgValsetConfirmResponse) XXX_DiscardUnknown ¶

func (m *MsgValsetConfirmResponse) XXX_DiscardUnknown()

func (*MsgValsetConfirmResponse) XXX_Marshal ¶

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

func (*MsgValsetConfirmResponse) XXX_Merge ¶

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

func (*MsgValsetConfirmResponse) XXX_Size ¶

func (m *MsgValsetConfirmResponse) XXX_Size() int

func (*MsgValsetConfirmResponse) XXX_Unmarshal ¶

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

type MsgValsetUpdatedClaim ¶

type MsgValsetUpdatedClaim struct {
	Orchestrator string            `protobuf:"bytes,1,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
	ChainId      string            `protobuf:"bytes,2,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract     string            `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce   uint64            `protobuf:"varint,4,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	ValsetNonce  uint64            `protobuf:"varint,5,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
	BlockHeight  uint64            `protobuf:"varint,6,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	Members      []BridgeValidator `protobuf:"bytes,7,rep,name=members,proto3" json:"members"`
	SourceTxHash string            `protobuf:"bytes,8,opt,name=sourceTxHash,proto3" json:"sourceTxHash,omitempty"`
}

func NewMsgValsetUpdatedClaim ¶

func NewMsgValsetUpdatedClaim(orchestrator string, chainId string, contract string, eventNonce uint64, valsetNonce uint64, blockHeight uint64, srcTxHash string, members []BridgeValidator) *MsgValsetUpdatedClaim

func (*MsgValsetUpdatedClaim) ClaimHash ¶

func (msg *MsgValsetUpdatedClaim) ClaimHash() ([]byte, error)

Hash implements BridgeDeposit.Hash modify this with care as it is security sensitive. If an element of the claim is not in this hash a single hostile validator could engineer a hash collision and execute a version of the claim with any unhashed data changed to benefit them. note that the Orchestrator is the only field excluded from this hash, this is because that value is used higher up in the store structure for who has made what claim and is verified by the msg ante-handler for signatures

func (*MsgValsetUpdatedClaim) Descriptor ¶

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

func (*MsgValsetUpdatedClaim) GetBlockHeight ¶

func (m *MsgValsetUpdatedClaim) GetBlockHeight() uint64

func (*MsgValsetUpdatedClaim) GetChainId ¶

func (m *MsgValsetUpdatedClaim) GetChainId() string

func (MsgValsetUpdatedClaim) GetClaimer ¶

func (msg MsgValsetUpdatedClaim) GetClaimer() sdk.AccAddress

func (*MsgValsetUpdatedClaim) GetContract ¶

func (m *MsgValsetUpdatedClaim) GetContract() string

func (*MsgValsetUpdatedClaim) GetEventNonce ¶

func (m *MsgValsetUpdatedClaim) GetEventNonce() uint64

func (*MsgValsetUpdatedClaim) GetMembers ¶

func (m *MsgValsetUpdatedClaim) GetMembers() []BridgeValidator

func (*MsgValsetUpdatedClaim) GetOrchestrator ¶

func (m *MsgValsetUpdatedClaim) GetOrchestrator() string

func (*MsgValsetUpdatedClaim) GetSignBytes ¶

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

func (*MsgValsetUpdatedClaim) GetSigners ¶

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

func (*MsgValsetUpdatedClaim) GetSourceTxHash ¶

func (m *MsgValsetUpdatedClaim) GetSourceTxHash() string

func (*MsgValsetUpdatedClaim) GetType ¶

func (e *MsgValsetUpdatedClaim) GetType() ClaimType

GetType returns the type of the claim

func (*MsgValsetUpdatedClaim) GetValsetNonce ¶

func (m *MsgValsetUpdatedClaim) GetValsetNonce() uint64

func (*MsgValsetUpdatedClaim) Marshal ¶

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

func (*MsgValsetUpdatedClaim) MarshalTo ¶

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

func (*MsgValsetUpdatedClaim) MarshalToSizedBuffer ¶

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

func (*MsgValsetUpdatedClaim) ProtoMessage ¶

func (*MsgValsetUpdatedClaim) ProtoMessage()

func (*MsgValsetUpdatedClaim) Reset ¶

func (m *MsgValsetUpdatedClaim) Reset()

func (*MsgValsetUpdatedClaim) Route ¶

func (msg *MsgValsetUpdatedClaim) Route() string

func (*MsgValsetUpdatedClaim) Size ¶

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

func (*MsgValsetUpdatedClaim) String ¶

func (m *MsgValsetUpdatedClaim) String() string

func (*MsgValsetUpdatedClaim) Type ¶

func (msg *MsgValsetUpdatedClaim) Type() string

func (*MsgValsetUpdatedClaim) Unmarshal ¶

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

func (*MsgValsetUpdatedClaim) ValidateBasic ¶

func (msg *MsgValsetUpdatedClaim) ValidateBasic() error

func (*MsgValsetUpdatedClaim) XXX_DiscardUnknown ¶

func (m *MsgValsetUpdatedClaim) XXX_DiscardUnknown()

func (*MsgValsetUpdatedClaim) XXX_Marshal ¶

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

func (*MsgValsetUpdatedClaim) XXX_Merge ¶

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

func (*MsgValsetUpdatedClaim) XXX_Size ¶

func (m *MsgValsetUpdatedClaim) XXX_Size() int

func (*MsgValsetUpdatedClaim) XXX_Unmarshal ¶

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

type MsgValsetUpdatedClaimResponse ¶

type MsgValsetUpdatedClaimResponse struct {
}

func (*MsgValsetUpdatedClaimResponse) Descriptor ¶

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

func (*MsgValsetUpdatedClaimResponse) Marshal ¶

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

func (*MsgValsetUpdatedClaimResponse) MarshalTo ¶

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

func (*MsgValsetUpdatedClaimResponse) MarshalToSizedBuffer ¶

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

func (*MsgValsetUpdatedClaimResponse) ProtoMessage ¶

func (*MsgValsetUpdatedClaimResponse) ProtoMessage()

func (*MsgValsetUpdatedClaimResponse) Reset ¶

func (m *MsgValsetUpdatedClaimResponse) Reset()

func (*MsgValsetUpdatedClaimResponse) Size ¶

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

func (*MsgValsetUpdatedClaimResponse) String ¶

func (*MsgValsetUpdatedClaimResponse) Unmarshal ¶

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

func (*MsgValsetUpdatedClaimResponse) XXX_DiscardUnknown ¶

func (m *MsgValsetUpdatedClaimResponse) XXX_DiscardUnknown()

func (*MsgValsetUpdatedClaimResponse) XXX_Marshal ¶

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

func (*MsgValsetUpdatedClaimResponse) XXX_Merge ¶

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

func (*MsgValsetUpdatedClaimResponse) XXX_Size ¶

func (m *MsgValsetUpdatedClaimResponse) XXX_Size() int

func (*MsgValsetUpdatedClaimResponse) XXX_Unmarshal ¶

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

type MultiAttestationHooks ¶

type MultiAttestationHooks []AttestationHooks

func NewMultiAttestationHooks ¶

func NewMultiAttestationHooks(hooks ...AttestationHooks) MultiAttestationHooks

func (MultiAttestationHooks) AttestationObservedHook ¶

func (h MultiAttestationHooks) AttestationObservedHook(ctx sdk.Context, claim Claim)

type MultichainKeeper ¶

type MultichainKeeper interface {
	// Methods imported from multichain should be defined here
	GetLastObservedEventNonce(ctx sdk.Context, chainId string, contract string) uint64
	SetLastObservedEventNonce(ctx sdk.Context, chainId string, contract string, nonce uint64)
	GetLastObservedEventBlockHeight(ctx sdk.Context, contract string, chainId string) uint64
	SetLastObservedEventBlockHeight(ctx sdk.Context, chainId string, contract string, blockHeight uint64)
	SetNonceObservedStatus(ctx sdk.Context, nonceObservedStatus multichainTypes.NonceObservedStatus)
	SetLastObservedValsetNonce(ctx sdk.Context, chainId string, nonce uint64)
	GetLastObservedValsetNonce(ctx sdk.Context, chainId string) uint64
	GetAllChainConfig(ctx sdk.Context) (list []multichainTypes.ChainConfig)
	GetAllContractConfig(ctx sdk.Context) (list []multichainTypes.ContractConfig)
	GetChainConfig(ctx sdk.Context, chainId string) (chainConfig multichainTypes.ChainConfig, found bool)
	GetContractConfig(ctx sdk.Context, chainId string, contract string) (val multichainTypes.ContractConfig, found bool)
	IsNonceObserved(ctx sdk.Context, chainId string, contractAddress string, nonce uint64) (isObserved bool)
}

type Params ¶

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams ¶

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams ¶

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor ¶

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

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 get the params.ParamSet

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

String implements the Stringer interface.

func (*Params) Unmarshal ¶

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

func (Params) Validate ¶

func (p Params) Validate() error

Validate validates the set of params

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 QueryAllAttestationRequest ¶

type QueryAllAttestationRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAttestationRequest) Descriptor ¶

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

func (*QueryAllAttestationRequest) GetPagination ¶

func (m *QueryAllAttestationRequest) GetPagination() *query.PageRequest

func (*QueryAllAttestationRequest) Marshal ¶

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

func (*QueryAllAttestationRequest) MarshalTo ¶

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

func (*QueryAllAttestationRequest) MarshalToSizedBuffer ¶

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

func (*QueryAllAttestationRequest) ProtoMessage ¶

func (*QueryAllAttestationRequest) ProtoMessage()

func (*QueryAllAttestationRequest) Reset ¶

func (m *QueryAllAttestationRequest) Reset()

func (*QueryAllAttestationRequest) Size ¶

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

func (*QueryAllAttestationRequest) String ¶

func (m *QueryAllAttestationRequest) String() string

func (*QueryAllAttestationRequest) Unmarshal ¶

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

func (*QueryAllAttestationRequest) XXX_DiscardUnknown ¶

func (m *QueryAllAttestationRequest) XXX_DiscardUnknown()

func (*QueryAllAttestationRequest) XXX_Marshal ¶

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

func (*QueryAllAttestationRequest) XXX_Merge ¶

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

func (*QueryAllAttestationRequest) XXX_Size ¶

func (m *QueryAllAttestationRequest) XXX_Size() int

func (*QueryAllAttestationRequest) XXX_Unmarshal ¶

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

type QueryAllAttestationResponse ¶

type QueryAllAttestationResponse struct {
	Attestation []Attestation       `protobuf:"bytes,1,rep,name=attestation,proto3" json:"attestation"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAttestationResponse) Descriptor ¶

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

func (*QueryAllAttestationResponse) GetAttestation ¶

func (m *QueryAllAttestationResponse) GetAttestation() []Attestation

func (*QueryAllAttestationResponse) GetPagination ¶

func (m *QueryAllAttestationResponse) GetPagination() *query.PageResponse

func (*QueryAllAttestationResponse) Marshal ¶

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

func (*QueryAllAttestationResponse) MarshalTo ¶

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

func (*QueryAllAttestationResponse) MarshalToSizedBuffer ¶

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

func (*QueryAllAttestationResponse) ProtoMessage ¶

func (*QueryAllAttestationResponse) ProtoMessage()

func (*QueryAllAttestationResponse) Reset ¶

func (m *QueryAllAttestationResponse) Reset()

func (*QueryAllAttestationResponse) Size ¶

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

func (*QueryAllAttestationResponse) String ¶

func (m *QueryAllAttestationResponse) String() string

func (*QueryAllAttestationResponse) Unmarshal ¶

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

func (*QueryAllAttestationResponse) XXX_DiscardUnknown ¶

func (m *QueryAllAttestationResponse) XXX_DiscardUnknown()

func (*QueryAllAttestationResponse) XXX_Marshal ¶

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

func (*QueryAllAttestationResponse) XXX_Merge ¶

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

func (*QueryAllAttestationResponse) XXX_Size ¶

func (m *QueryAllAttestationResponse) XXX_Size() int

func (*QueryAllAttestationResponse) XXX_Unmarshal ¶

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

type QueryAllObservedAttestationRequest ¶

type QueryAllObservedAttestationRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllObservedAttestationRequest) Descriptor ¶

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

func (*QueryAllObservedAttestationRequest) GetPagination ¶

func (*QueryAllObservedAttestationRequest) Marshal ¶

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

func (*QueryAllObservedAttestationRequest) MarshalTo ¶

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

func (*QueryAllObservedAttestationRequest) MarshalToSizedBuffer ¶

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

func (*QueryAllObservedAttestationRequest) ProtoMessage ¶

func (*QueryAllObservedAttestationRequest) ProtoMessage()

func (*QueryAllObservedAttestationRequest) Reset ¶

func (*QueryAllObservedAttestationRequest) Size ¶

func (*QueryAllObservedAttestationRequest) String ¶

func (*QueryAllObservedAttestationRequest) Unmarshal ¶

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

func (*QueryAllObservedAttestationRequest) XXX_DiscardUnknown ¶

func (m *QueryAllObservedAttestationRequest) XXX_DiscardUnknown()

func (*QueryAllObservedAttestationRequest) XXX_Marshal ¶

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

func (*QueryAllObservedAttestationRequest) XXX_Merge ¶

func (*QueryAllObservedAttestationRequest) XXX_Size ¶

func (*QueryAllObservedAttestationRequest) XXX_Unmarshal ¶

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

type QueryAllObservedAttestationResponse ¶

type QueryAllObservedAttestationResponse struct {
	ObservedAttestation []Attestation       `protobuf:"bytes,1,rep,name=observedAttestation,proto3" json:"observedAttestation"`
	Pagination          *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllObservedAttestationResponse) Descriptor ¶

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

func (*QueryAllObservedAttestationResponse) GetObservedAttestation ¶

func (m *QueryAllObservedAttestationResponse) GetObservedAttestation() []Attestation

func (*QueryAllObservedAttestationResponse) GetPagination ¶

func (*QueryAllObservedAttestationResponse) Marshal ¶

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

func (*QueryAllObservedAttestationResponse) MarshalTo ¶

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

func (*QueryAllObservedAttestationResponse) MarshalToSizedBuffer ¶

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

func (*QueryAllObservedAttestationResponse) ProtoMessage ¶

func (*QueryAllObservedAttestationResponse) ProtoMessage()

func (*QueryAllObservedAttestationResponse) Reset ¶

func (*QueryAllObservedAttestationResponse) Size ¶

func (*QueryAllObservedAttestationResponse) String ¶

func (*QueryAllObservedAttestationResponse) Unmarshal ¶

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

func (*QueryAllObservedAttestationResponse) XXX_DiscardUnknown ¶

func (m *QueryAllObservedAttestationResponse) XXX_DiscardUnknown()

func (*QueryAllObservedAttestationResponse) XXX_Marshal ¶

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

func (*QueryAllObservedAttestationResponse) XXX_Merge ¶

func (*QueryAllObservedAttestationResponse) XXX_Size ¶

func (*QueryAllObservedAttestationResponse) XXX_Unmarshal ¶

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

type QueryAllValsetConfirmationRequest ¶

type QueryAllValsetConfirmationRequest struct {
	ValsetNonce uint64             `protobuf:"varint,1,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"`
	Pagination  *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetConfirmationRequest) Descriptor ¶

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

func (*QueryAllValsetConfirmationRequest) GetPagination ¶

func (*QueryAllValsetConfirmationRequest) GetValsetNonce ¶

func (m *QueryAllValsetConfirmationRequest) GetValsetNonce() uint64

func (*QueryAllValsetConfirmationRequest) Marshal ¶

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

func (*QueryAllValsetConfirmationRequest) MarshalTo ¶

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

func (*QueryAllValsetConfirmationRequest) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetConfirmationRequest) ProtoMessage ¶

func (*QueryAllValsetConfirmationRequest) ProtoMessage()

func (*QueryAllValsetConfirmationRequest) Reset ¶

func (*QueryAllValsetConfirmationRequest) Size ¶

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

func (*QueryAllValsetConfirmationRequest) String ¶

func (*QueryAllValsetConfirmationRequest) Unmarshal ¶

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

func (*QueryAllValsetConfirmationRequest) XXX_DiscardUnknown ¶

func (m *QueryAllValsetConfirmationRequest) XXX_DiscardUnknown()

func (*QueryAllValsetConfirmationRequest) XXX_Marshal ¶

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

func (*QueryAllValsetConfirmationRequest) XXX_Merge ¶

func (*QueryAllValsetConfirmationRequest) XXX_Size ¶

func (m *QueryAllValsetConfirmationRequest) XXX_Size() int

func (*QueryAllValsetConfirmationRequest) XXX_Unmarshal ¶

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

type QueryAllValsetConfirmationResponse ¶

type QueryAllValsetConfirmationResponse struct {
	ValsetConfirmation []ValsetConfirmation `protobuf:"bytes,1,rep,name=valsetConfirmation,proto3" json:"valsetConfirmation"`
	Pagination         *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetConfirmationResponse) Descriptor ¶

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

func (*QueryAllValsetConfirmationResponse) GetPagination ¶

func (*QueryAllValsetConfirmationResponse) GetValsetConfirmation ¶

func (m *QueryAllValsetConfirmationResponse) GetValsetConfirmation() []ValsetConfirmation

func (*QueryAllValsetConfirmationResponse) Marshal ¶

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

func (*QueryAllValsetConfirmationResponse) MarshalTo ¶

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

func (*QueryAllValsetConfirmationResponse) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetConfirmationResponse) ProtoMessage ¶

func (*QueryAllValsetConfirmationResponse) ProtoMessage()

func (*QueryAllValsetConfirmationResponse) Reset ¶

func (*QueryAllValsetConfirmationResponse) Size ¶

func (*QueryAllValsetConfirmationResponse) String ¶

func (*QueryAllValsetConfirmationResponse) Unmarshal ¶

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

func (*QueryAllValsetConfirmationResponse) XXX_DiscardUnknown ¶

func (m *QueryAllValsetConfirmationResponse) XXX_DiscardUnknown()

func (*QueryAllValsetConfirmationResponse) XXX_Marshal ¶

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

func (*QueryAllValsetConfirmationResponse) XXX_Merge ¶

func (*QueryAllValsetConfirmationResponse) XXX_Size ¶

func (*QueryAllValsetConfirmationResponse) XXX_Unmarshal ¶

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

type QueryAllValsetRequest ¶

type QueryAllValsetRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetRequest) Descriptor ¶

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

func (*QueryAllValsetRequest) GetPagination ¶

func (m *QueryAllValsetRequest) GetPagination() *query.PageRequest

func (*QueryAllValsetRequest) Marshal ¶

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

func (*QueryAllValsetRequest) MarshalTo ¶

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

func (*QueryAllValsetRequest) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetRequest) ProtoMessage ¶

func (*QueryAllValsetRequest) ProtoMessage()

func (*QueryAllValsetRequest) Reset ¶

func (m *QueryAllValsetRequest) Reset()

func (*QueryAllValsetRequest) Size ¶

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

func (*QueryAllValsetRequest) String ¶

func (m *QueryAllValsetRequest) String() string

func (*QueryAllValsetRequest) Unmarshal ¶

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

func (*QueryAllValsetRequest) XXX_DiscardUnknown ¶

func (m *QueryAllValsetRequest) XXX_DiscardUnknown()

func (*QueryAllValsetRequest) XXX_Marshal ¶

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

func (*QueryAllValsetRequest) XXX_Merge ¶

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

func (*QueryAllValsetRequest) XXX_Size ¶

func (m *QueryAllValsetRequest) XXX_Size() int

func (*QueryAllValsetRequest) XXX_Unmarshal ¶

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

type QueryAllValsetResponse ¶

type QueryAllValsetResponse struct {
	Valset     []Valset            `protobuf:"bytes,1,rep,name=valset,proto3" json:"valset"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetResponse) Descriptor ¶

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

func (*QueryAllValsetResponse) GetPagination ¶

func (m *QueryAllValsetResponse) GetPagination() *query.PageResponse

func (*QueryAllValsetResponse) GetValset ¶

func (m *QueryAllValsetResponse) GetValset() []Valset

func (*QueryAllValsetResponse) Marshal ¶

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

func (*QueryAllValsetResponse) MarshalTo ¶

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

func (*QueryAllValsetResponse) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetResponse) ProtoMessage ¶

func (*QueryAllValsetResponse) ProtoMessage()

func (*QueryAllValsetResponse) Reset ¶

func (m *QueryAllValsetResponse) Reset()

func (*QueryAllValsetResponse) Size ¶

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

func (*QueryAllValsetResponse) String ¶

func (m *QueryAllValsetResponse) String() string

func (*QueryAllValsetResponse) Unmarshal ¶

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

func (*QueryAllValsetResponse) XXX_DiscardUnknown ¶

func (m *QueryAllValsetResponse) XXX_DiscardUnknown()

func (*QueryAllValsetResponse) XXX_Marshal ¶

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

func (*QueryAllValsetResponse) XXX_Merge ¶

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

func (*QueryAllValsetResponse) XXX_Size ¶

func (m *QueryAllValsetResponse) XXX_Size() int

func (*QueryAllValsetResponse) XXX_Unmarshal ¶

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

type QueryAllValsetUpdatedClaimRequest ¶

type QueryAllValsetUpdatedClaimRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetUpdatedClaimRequest) Descriptor ¶

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

func (*QueryAllValsetUpdatedClaimRequest) GetPagination ¶

func (*QueryAllValsetUpdatedClaimRequest) Marshal ¶

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

func (*QueryAllValsetUpdatedClaimRequest) MarshalTo ¶

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

func (*QueryAllValsetUpdatedClaimRequest) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetUpdatedClaimRequest) ProtoMessage ¶

func (*QueryAllValsetUpdatedClaimRequest) ProtoMessage()

func (*QueryAllValsetUpdatedClaimRequest) Reset ¶

func (*QueryAllValsetUpdatedClaimRequest) Size ¶

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

func (*QueryAllValsetUpdatedClaimRequest) String ¶

func (*QueryAllValsetUpdatedClaimRequest) Unmarshal ¶

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

func (*QueryAllValsetUpdatedClaimRequest) XXX_DiscardUnknown ¶

func (m *QueryAllValsetUpdatedClaimRequest) XXX_DiscardUnknown()

func (*QueryAllValsetUpdatedClaimRequest) XXX_Marshal ¶

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

func (*QueryAllValsetUpdatedClaimRequest) XXX_Merge ¶

func (*QueryAllValsetUpdatedClaimRequest) XXX_Size ¶

func (m *QueryAllValsetUpdatedClaimRequest) XXX_Size() int

func (*QueryAllValsetUpdatedClaimRequest) XXX_Unmarshal ¶

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

type QueryAllValsetUpdatedClaimResponse ¶

type QueryAllValsetUpdatedClaimResponse struct {
	ValsetUpdatedClaim []ValsetUpdatedClaim `protobuf:"bytes,1,rep,name=valsetUpdatedClaim,proto3" json:"valsetUpdatedClaim"`
	Pagination         *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllValsetUpdatedClaimResponse) Descriptor ¶

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

func (*QueryAllValsetUpdatedClaimResponse) GetPagination ¶

func (*QueryAllValsetUpdatedClaimResponse) GetValsetUpdatedClaim ¶

func (m *QueryAllValsetUpdatedClaimResponse) GetValsetUpdatedClaim() []ValsetUpdatedClaim

func (*QueryAllValsetUpdatedClaimResponse) Marshal ¶

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

func (*QueryAllValsetUpdatedClaimResponse) MarshalTo ¶

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

func (*QueryAllValsetUpdatedClaimResponse) MarshalToSizedBuffer ¶

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

func (*QueryAllValsetUpdatedClaimResponse) ProtoMessage ¶

func (*QueryAllValsetUpdatedClaimResponse) ProtoMessage()

func (*QueryAllValsetUpdatedClaimResponse) Reset ¶

func (*QueryAllValsetUpdatedClaimResponse) Size ¶

func (*QueryAllValsetUpdatedClaimResponse) String ¶

func (*QueryAllValsetUpdatedClaimResponse) Unmarshal ¶

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

func (*QueryAllValsetUpdatedClaimResponse) XXX_DiscardUnknown ¶

func (m *QueryAllValsetUpdatedClaimResponse) XXX_DiscardUnknown()

func (*QueryAllValsetUpdatedClaimResponse) XXX_Marshal ¶

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

func (*QueryAllValsetUpdatedClaimResponse) XXX_Merge ¶

func (*QueryAllValsetUpdatedClaimResponse) XXX_Size ¶

func (*QueryAllValsetUpdatedClaimResponse) XXX_Unmarshal ¶

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

type QueryClient ¶

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a Valset by nonce.
	Valset(ctx context.Context, in *QueryGetValsetRequest, opts ...grpc.CallOption) (*QueryGetValsetResponse, error)
	// Queries a list of Valset items.
	ValsetAll(ctx context.Context, in *QueryAllValsetRequest, opts ...grpc.CallOption) (*QueryAllValsetResponse, error)
	// Queries a Attestation by index.
	Attestation(ctx context.Context, in *QueryGetAttestationRequest, opts ...grpc.CallOption) (*QueryGetAttestationResponse, error)
	// Queries a list of Attestation items.
	AttestationAll(ctx context.Context, in *QueryAllAttestationRequest, opts ...grpc.CallOption) (*QueryAllAttestationResponse, error)
	// Queries a ValsetConfirmation by valset nonce.
	ValsetConfirmation(ctx context.Context, in *QueryGetValsetConfirmationRequest, opts ...grpc.CallOption) (*QueryGetValsetConfirmationResponse, error)
	// Queries a list of ValsetConfirmation items.
	ValsetConfirmationAll(ctx context.Context, in *QueryAllValsetConfirmationRequest, opts ...grpc.CallOption) (*QueryAllValsetConfirmationResponse, error)
	// Queries a ValsetUpdatedClaim by index.
	ValsetUpdatedClaim(ctx context.Context, in *QueryGetValsetUpdatedClaimRequest, opts ...grpc.CallOption) (*QueryGetValsetUpdatedClaimResponse, error)
	// Queries a list of ValsetUpdatedClaim items.
	ValsetUpdatedClaimAll(ctx context.Context, in *QueryAllValsetUpdatedClaimRequest, opts ...grpc.CallOption) (*QueryAllValsetUpdatedClaimResponse, error)
	// Queries a list of LatestValsetNonce items.
	LatestValsetNonce(ctx context.Context, in *QueryLatestValsetNonceRequest, opts ...grpc.CallOption) (*QueryLatestValsetNonceResponse, error)
	// Queries a list of LatestValset items.
	LatestValset(ctx context.Context, in *QueryLatestValsetRequest, opts ...grpc.CallOption) (*QueryLatestValsetResponse, error)
	// Queries a list of LastEventNonce items.
	LastEventNonce(ctx context.Context, in *QueryLastEventNonceRequest, opts ...grpc.CallOption) (*QueryLastEventNonceResponse, error)
	// Queries a list of ListOrchestrators items.
	ListOrchestrators(ctx context.Context, in *QueryListOrchestratorsRequest, opts ...grpc.CallOption) (*QueryListOrchestratorsResponse, error)
	// Queries a list of FetchOrchestratorValidator items.
	FetchOrchestratorValidator(ctx context.Context, in *QueryFetchOrchestratorValidatorRequest, opts ...grpc.CallOption) (*QueryFetchOrchestratorValidatorResponse, error)
	// Queries a list of ObservedAttestation items.
	ObservedAttestation(ctx context.Context, in *QueryGetObservedAttestationRequest, opts ...grpc.CallOption) (*QueryGetObservedAttestationResponse, error)
	ObservedAttestationAll(ctx context.Context, in *QueryAllObservedAttestationRequest, opts ...grpc.CallOption) (*QueryAllObservedAttestationResponse, 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 QueryFetchOrchestratorValidatorRequest ¶

type QueryFetchOrchestratorValidatorRequest struct {
	OrchestratorAddress string `protobuf:"bytes,1,opt,name=orchestrator_address,json=orchestratorAddress,proto3" json:"orchestrator_address,omitempty"`
}

func (*QueryFetchOrchestratorValidatorRequest) Descriptor ¶

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

func (*QueryFetchOrchestratorValidatorRequest) GetOrchestratorAddress ¶

func (m *QueryFetchOrchestratorValidatorRequest) GetOrchestratorAddress() string

func (*QueryFetchOrchestratorValidatorRequest) Marshal ¶

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

func (*QueryFetchOrchestratorValidatorRequest) MarshalTo ¶

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

func (*QueryFetchOrchestratorValidatorRequest) MarshalToSizedBuffer ¶

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

func (*QueryFetchOrchestratorValidatorRequest) ProtoMessage ¶

func (*QueryFetchOrchestratorValidatorRequest) Reset ¶

func (*QueryFetchOrchestratorValidatorRequest) Size ¶

func (*QueryFetchOrchestratorValidatorRequest) String ¶

func (*QueryFetchOrchestratorValidatorRequest) Unmarshal ¶

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

func (*QueryFetchOrchestratorValidatorRequest) XXX_DiscardUnknown ¶

func (m *QueryFetchOrchestratorValidatorRequest) XXX_DiscardUnknown()

func (*QueryFetchOrchestratorValidatorRequest) XXX_Marshal ¶

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

func (*QueryFetchOrchestratorValidatorRequest) XXX_Merge ¶

func (*QueryFetchOrchestratorValidatorRequest) XXX_Size ¶

func (*QueryFetchOrchestratorValidatorRequest) XXX_Unmarshal ¶

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

type QueryFetchOrchestratorValidatorResponse ¶

type QueryFetchOrchestratorValidatorResponse struct {
	Validator types.Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}

func (*QueryFetchOrchestratorValidatorResponse) Descriptor ¶

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

func (*QueryFetchOrchestratorValidatorResponse) GetValidator ¶

func (*QueryFetchOrchestratorValidatorResponse) Marshal ¶

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

func (*QueryFetchOrchestratorValidatorResponse) MarshalTo ¶

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

func (*QueryFetchOrchestratorValidatorResponse) MarshalToSizedBuffer ¶

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

func (*QueryFetchOrchestratorValidatorResponse) ProtoMessage ¶

func (*QueryFetchOrchestratorValidatorResponse) Reset ¶

func (*QueryFetchOrchestratorValidatorResponse) Size ¶

func (*QueryFetchOrchestratorValidatorResponse) String ¶

func (*QueryFetchOrchestratorValidatorResponse) Unmarshal ¶

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

func (*QueryFetchOrchestratorValidatorResponse) XXX_DiscardUnknown ¶

func (m *QueryFetchOrchestratorValidatorResponse) XXX_DiscardUnknown()

func (*QueryFetchOrchestratorValidatorResponse) XXX_Marshal ¶

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

func (*QueryFetchOrchestratorValidatorResponse) XXX_Merge ¶

func (*QueryFetchOrchestratorValidatorResponse) XXX_Size ¶

func (*QueryFetchOrchestratorValidatorResponse) XXX_Unmarshal ¶

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

type QueryGetAttestationRequest ¶

type QueryGetAttestationRequest struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Contract   string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce uint64 `protobuf:"varint,3,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"`
}

func (*QueryGetAttestationRequest) Descriptor ¶

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

func (*QueryGetAttestationRequest) GetChainId ¶

func (m *QueryGetAttestationRequest) GetChainId() string

func (*QueryGetAttestationRequest) GetContract ¶

func (m *QueryGetAttestationRequest) GetContract() string

func (*QueryGetAttestationRequest) GetEventNonce ¶

func (m *QueryGetAttestationRequest) GetEventNonce() uint64

func (*QueryGetAttestationRequest) Marshal ¶

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

func (*QueryGetAttestationRequest) MarshalTo ¶

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

func (*QueryGetAttestationRequest) MarshalToSizedBuffer ¶

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

func (*QueryGetAttestationRequest) ProtoMessage ¶

func (*QueryGetAttestationRequest) ProtoMessage()

func (*QueryGetAttestationRequest) Reset ¶

func (m *QueryGetAttestationRequest) Reset()

func (*QueryGetAttestationRequest) Size ¶

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

func (*QueryGetAttestationRequest) String ¶

func (m *QueryGetAttestationRequest) String() string

func (*QueryGetAttestationRequest) Unmarshal ¶

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

func (*QueryGetAttestationRequest) XXX_DiscardUnknown ¶

func (m *QueryGetAttestationRequest) XXX_DiscardUnknown()

func (*QueryGetAttestationRequest) XXX_Marshal ¶

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

func (*QueryGetAttestationRequest) XXX_Merge ¶

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

func (*QueryGetAttestationRequest) XXX_Size ¶

func (m *QueryGetAttestationRequest) XXX_Size() int

func (*QueryGetAttestationRequest) XXX_Unmarshal ¶

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

type QueryGetAttestationResponse ¶

type QueryGetAttestationResponse struct {
	Attestation Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation"`
}

func (*QueryGetAttestationResponse) Descriptor ¶

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

func (*QueryGetAttestationResponse) GetAttestation ¶

func (m *QueryGetAttestationResponse) GetAttestation() Attestation

func (*QueryGetAttestationResponse) Marshal ¶

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

func (*QueryGetAttestationResponse) MarshalTo ¶

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

func (*QueryGetAttestationResponse) MarshalToSizedBuffer ¶

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

func (*QueryGetAttestationResponse) ProtoMessage ¶

func (*QueryGetAttestationResponse) ProtoMessage()

func (*QueryGetAttestationResponse) Reset ¶

func (m *QueryGetAttestationResponse) Reset()

func (*QueryGetAttestationResponse) Size ¶

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

func (*QueryGetAttestationResponse) String ¶

func (m *QueryGetAttestationResponse) String() string

func (*QueryGetAttestationResponse) Unmarshal ¶

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

func (*QueryGetAttestationResponse) XXX_DiscardUnknown ¶

func (m *QueryGetAttestationResponse) XXX_DiscardUnknown()

func (*QueryGetAttestationResponse) XXX_Marshal ¶

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

func (*QueryGetAttestationResponse) XXX_Merge ¶

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

func (*QueryGetAttestationResponse) XXX_Size ¶

func (m *QueryGetAttestationResponse) XXX_Size() int

func (*QueryGetAttestationResponse) XXX_Unmarshal ¶

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

type QueryGetObservedAttestationRequest ¶

type QueryGetObservedAttestationRequest struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Contract   string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce uint64 `protobuf:"varint,3,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryGetObservedAttestationRequest) Descriptor ¶

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

func (*QueryGetObservedAttestationRequest) GetChainId ¶

func (*QueryGetObservedAttestationRequest) GetContract ¶

func (m *QueryGetObservedAttestationRequest) GetContract() string

func (*QueryGetObservedAttestationRequest) GetEventNonce ¶

func (m *QueryGetObservedAttestationRequest) GetEventNonce() uint64

func (*QueryGetObservedAttestationRequest) Marshal ¶

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

func (*QueryGetObservedAttestationRequest) MarshalTo ¶

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

func (*QueryGetObservedAttestationRequest) MarshalToSizedBuffer ¶

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

func (*QueryGetObservedAttestationRequest) ProtoMessage ¶

func (*QueryGetObservedAttestationRequest) ProtoMessage()

func (*QueryGetObservedAttestationRequest) Reset ¶

func (*QueryGetObservedAttestationRequest) Size ¶

func (*QueryGetObservedAttestationRequest) String ¶

func (*QueryGetObservedAttestationRequest) Unmarshal ¶

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

func (*QueryGetObservedAttestationRequest) XXX_DiscardUnknown ¶

func (m *QueryGetObservedAttestationRequest) XXX_DiscardUnknown()

func (*QueryGetObservedAttestationRequest) XXX_Marshal ¶

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

func (*QueryGetObservedAttestationRequest) XXX_Merge ¶

func (*QueryGetObservedAttestationRequest) XXX_Size ¶

func (*QueryGetObservedAttestationRequest) XXX_Unmarshal ¶

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

type QueryGetObservedAttestationResponse ¶

type QueryGetObservedAttestationResponse struct {
	ObservedAttestation Attestation `protobuf:"bytes,1,opt,name=observedAttestation,proto3" json:"observedAttestation"`
}

func (*QueryGetObservedAttestationResponse) Descriptor ¶

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

func (*QueryGetObservedAttestationResponse) GetObservedAttestation ¶

func (m *QueryGetObservedAttestationResponse) GetObservedAttestation() Attestation

func (*QueryGetObservedAttestationResponse) Marshal ¶

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

func (*QueryGetObservedAttestationResponse) MarshalTo ¶

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

func (*QueryGetObservedAttestationResponse) MarshalToSizedBuffer ¶

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

func (*QueryGetObservedAttestationResponse) ProtoMessage ¶

func (*QueryGetObservedAttestationResponse) ProtoMessage()

func (*QueryGetObservedAttestationResponse) Reset ¶

func (*QueryGetObservedAttestationResponse) Size ¶

func (*QueryGetObservedAttestationResponse) String ¶

func (*QueryGetObservedAttestationResponse) Unmarshal ¶

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

func (*QueryGetObservedAttestationResponse) XXX_DiscardUnknown ¶

func (m *QueryGetObservedAttestationResponse) XXX_DiscardUnknown()

func (*QueryGetObservedAttestationResponse) XXX_Marshal ¶

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

func (*QueryGetObservedAttestationResponse) XXX_Merge ¶

func (*QueryGetObservedAttestationResponse) XXX_Size ¶

func (*QueryGetObservedAttestationResponse) XXX_Unmarshal ¶

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

type QueryGetValsetConfirmationRequest ¶

type QueryGetValsetConfirmationRequest struct {
	ValsetNonce  uint64 `protobuf:"varint,1,opt,name=valset_nonce,json=valsetNonce,proto3" json:"valset_nonce,omitempty"`
	Orchestrator string `protobuf:"bytes,2,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
}

func (*QueryGetValsetConfirmationRequest) Descriptor ¶

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

func (*QueryGetValsetConfirmationRequest) GetOrchestrator ¶

func (m *QueryGetValsetConfirmationRequest) GetOrchestrator() string

func (*QueryGetValsetConfirmationRequest) GetValsetNonce ¶

func (m *QueryGetValsetConfirmationRequest) GetValsetNonce() uint64

func (*QueryGetValsetConfirmationRequest) Marshal ¶

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

func (*QueryGetValsetConfirmationRequest) MarshalTo ¶

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

func (*QueryGetValsetConfirmationRequest) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetConfirmationRequest) ProtoMessage ¶

func (*QueryGetValsetConfirmationRequest) ProtoMessage()

func (*QueryGetValsetConfirmationRequest) Reset ¶

func (*QueryGetValsetConfirmationRequest) Size ¶

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

func (*QueryGetValsetConfirmationRequest) String ¶

func (*QueryGetValsetConfirmationRequest) Unmarshal ¶

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

func (*QueryGetValsetConfirmationRequest) XXX_DiscardUnknown ¶

func (m *QueryGetValsetConfirmationRequest) XXX_DiscardUnknown()

func (*QueryGetValsetConfirmationRequest) XXX_Marshal ¶

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

func (*QueryGetValsetConfirmationRequest) XXX_Merge ¶

func (*QueryGetValsetConfirmationRequest) XXX_Size ¶

func (m *QueryGetValsetConfirmationRequest) XXX_Size() int

func (*QueryGetValsetConfirmationRequest) XXX_Unmarshal ¶

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

type QueryGetValsetConfirmationResponse ¶

type QueryGetValsetConfirmationResponse struct {
	ValsetConfirmation ValsetConfirmation `protobuf:"bytes,1,opt,name=valsetConfirmation,proto3" json:"valsetConfirmation"`
}

func (*QueryGetValsetConfirmationResponse) Descriptor ¶

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

func (*QueryGetValsetConfirmationResponse) GetValsetConfirmation ¶

func (m *QueryGetValsetConfirmationResponse) GetValsetConfirmation() ValsetConfirmation

func (*QueryGetValsetConfirmationResponse) Marshal ¶

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

func (*QueryGetValsetConfirmationResponse) MarshalTo ¶

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

func (*QueryGetValsetConfirmationResponse) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetConfirmationResponse) ProtoMessage ¶

func (*QueryGetValsetConfirmationResponse) ProtoMessage()

func (*QueryGetValsetConfirmationResponse) Reset ¶

func (*QueryGetValsetConfirmationResponse) Size ¶

func (*QueryGetValsetConfirmationResponse) String ¶

func (*QueryGetValsetConfirmationResponse) Unmarshal ¶

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

func (*QueryGetValsetConfirmationResponse) XXX_DiscardUnknown ¶

func (m *QueryGetValsetConfirmationResponse) XXX_DiscardUnknown()

func (*QueryGetValsetConfirmationResponse) XXX_Marshal ¶

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

func (*QueryGetValsetConfirmationResponse) XXX_Merge ¶

func (*QueryGetValsetConfirmationResponse) XXX_Size ¶

func (*QueryGetValsetConfirmationResponse) XXX_Unmarshal ¶

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

type QueryGetValsetRequest ¶

type QueryGetValsetRequest struct {
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

func (*QueryGetValsetRequest) Descriptor ¶

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

func (*QueryGetValsetRequest) GetNonce ¶

func (m *QueryGetValsetRequest) GetNonce() uint64

func (*QueryGetValsetRequest) Marshal ¶

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

func (*QueryGetValsetRequest) MarshalTo ¶

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

func (*QueryGetValsetRequest) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetRequest) ProtoMessage ¶

func (*QueryGetValsetRequest) ProtoMessage()

func (*QueryGetValsetRequest) Reset ¶

func (m *QueryGetValsetRequest) Reset()

func (*QueryGetValsetRequest) Size ¶

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

func (*QueryGetValsetRequest) String ¶

func (m *QueryGetValsetRequest) String() string

func (*QueryGetValsetRequest) Unmarshal ¶

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

func (*QueryGetValsetRequest) XXX_DiscardUnknown ¶

func (m *QueryGetValsetRequest) XXX_DiscardUnknown()

func (*QueryGetValsetRequest) XXX_Marshal ¶

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

func (*QueryGetValsetRequest) XXX_Merge ¶

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

func (*QueryGetValsetRequest) XXX_Size ¶

func (m *QueryGetValsetRequest) XXX_Size() int

func (*QueryGetValsetRequest) XXX_Unmarshal ¶

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

type QueryGetValsetResponse ¶

type QueryGetValsetResponse struct {
	Valset Valset `protobuf:"bytes,1,opt,name=valset,proto3" json:"valset"`
}

func (*QueryGetValsetResponse) Descriptor ¶

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

func (*QueryGetValsetResponse) GetValset ¶

func (m *QueryGetValsetResponse) GetValset() Valset

func (*QueryGetValsetResponse) Marshal ¶

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

func (*QueryGetValsetResponse) MarshalTo ¶

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

func (*QueryGetValsetResponse) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetResponse) ProtoMessage ¶

func (*QueryGetValsetResponse) ProtoMessage()

func (*QueryGetValsetResponse) Reset ¶

func (m *QueryGetValsetResponse) Reset()

func (*QueryGetValsetResponse) Size ¶

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

func (*QueryGetValsetResponse) String ¶

func (m *QueryGetValsetResponse) String() string

func (*QueryGetValsetResponse) Unmarshal ¶

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

func (*QueryGetValsetResponse) XXX_DiscardUnknown ¶

func (m *QueryGetValsetResponse) XXX_DiscardUnknown()

func (*QueryGetValsetResponse) XXX_Marshal ¶

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

func (*QueryGetValsetResponse) XXX_Merge ¶

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

func (*QueryGetValsetResponse) XXX_Size ¶

func (m *QueryGetValsetResponse) XXX_Size() int

func (*QueryGetValsetResponse) XXX_Unmarshal ¶

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

type QueryGetValsetUpdatedClaimRequest ¶

type QueryGetValsetUpdatedClaimRequest struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	EventNonce uint64 `protobuf:"varint,3,opt,name=event_nonce,json=eventNonce,proto3" json:"event_nonce,omitempty"`
}

func (*QueryGetValsetUpdatedClaimRequest) Descriptor ¶

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

func (*QueryGetValsetUpdatedClaimRequest) GetChainId ¶

func (m *QueryGetValsetUpdatedClaimRequest) GetChainId() string

func (*QueryGetValsetUpdatedClaimRequest) GetEventNonce ¶

func (m *QueryGetValsetUpdatedClaimRequest) GetEventNonce() uint64

func (*QueryGetValsetUpdatedClaimRequest) Marshal ¶

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

func (*QueryGetValsetUpdatedClaimRequest) MarshalTo ¶

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

func (*QueryGetValsetUpdatedClaimRequest) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetUpdatedClaimRequest) ProtoMessage ¶

func (*QueryGetValsetUpdatedClaimRequest) ProtoMessage()

func (*QueryGetValsetUpdatedClaimRequest) Reset ¶

func (*QueryGetValsetUpdatedClaimRequest) Size ¶

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

func (*QueryGetValsetUpdatedClaimRequest) String ¶

func (*QueryGetValsetUpdatedClaimRequest) Unmarshal ¶

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

func (*QueryGetValsetUpdatedClaimRequest) XXX_DiscardUnknown ¶

func (m *QueryGetValsetUpdatedClaimRequest) XXX_DiscardUnknown()

func (*QueryGetValsetUpdatedClaimRequest) XXX_Marshal ¶

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

func (*QueryGetValsetUpdatedClaimRequest) XXX_Merge ¶

func (*QueryGetValsetUpdatedClaimRequest) XXX_Size ¶

func (m *QueryGetValsetUpdatedClaimRequest) XXX_Size() int

func (*QueryGetValsetUpdatedClaimRequest) XXX_Unmarshal ¶

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

type QueryGetValsetUpdatedClaimResponse ¶

type QueryGetValsetUpdatedClaimResponse struct {
	ValsetUpdatedClaim ValsetUpdatedClaim `protobuf:"bytes,1,opt,name=valsetUpdatedClaim,proto3" json:"valsetUpdatedClaim"`
}

func (*QueryGetValsetUpdatedClaimResponse) Descriptor ¶

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

func (*QueryGetValsetUpdatedClaimResponse) GetValsetUpdatedClaim ¶

func (m *QueryGetValsetUpdatedClaimResponse) GetValsetUpdatedClaim() ValsetUpdatedClaim

func (*QueryGetValsetUpdatedClaimResponse) Marshal ¶

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

func (*QueryGetValsetUpdatedClaimResponse) MarshalTo ¶

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

func (*QueryGetValsetUpdatedClaimResponse) MarshalToSizedBuffer ¶

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

func (*QueryGetValsetUpdatedClaimResponse) ProtoMessage ¶

func (*QueryGetValsetUpdatedClaimResponse) ProtoMessage()

func (*QueryGetValsetUpdatedClaimResponse) Reset ¶

func (*QueryGetValsetUpdatedClaimResponse) Size ¶

func (*QueryGetValsetUpdatedClaimResponse) String ¶

func (*QueryGetValsetUpdatedClaimResponse) Unmarshal ¶

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

func (*QueryGetValsetUpdatedClaimResponse) XXX_DiscardUnknown ¶

func (m *QueryGetValsetUpdatedClaimResponse) XXX_DiscardUnknown()

func (*QueryGetValsetUpdatedClaimResponse) XXX_Marshal ¶

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

func (*QueryGetValsetUpdatedClaimResponse) XXX_Merge ¶

func (*QueryGetValsetUpdatedClaimResponse) XXX_Size ¶

func (*QueryGetValsetUpdatedClaimResponse) XXX_Unmarshal ¶

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

type QueryLastEventNonceRequest ¶

type QueryLastEventNonceRequest struct {
	ChainId          string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Contract         string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

func (*QueryLastEventNonceRequest) Descriptor ¶

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

func (*QueryLastEventNonceRequest) GetChainId ¶

func (m *QueryLastEventNonceRequest) GetChainId() string

func (*QueryLastEventNonceRequest) GetContract ¶

func (m *QueryLastEventNonceRequest) GetContract() string

func (*QueryLastEventNonceRequest) GetValidatorAddress ¶

func (m *QueryLastEventNonceRequest) GetValidatorAddress() string

func (*QueryLastEventNonceRequest) Marshal ¶

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

func (*QueryLastEventNonceRequest) MarshalTo ¶

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

func (*QueryLastEventNonceRequest) MarshalToSizedBuffer ¶

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

func (*QueryLastEventNonceRequest) ProtoMessage ¶

func (*QueryLastEventNonceRequest) ProtoMessage()

func (*QueryLastEventNonceRequest) Reset ¶

func (m *QueryLastEventNonceRequest) Reset()

func (*QueryLastEventNonceRequest) Size ¶

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

func (*QueryLastEventNonceRequest) String ¶

func (m *QueryLastEventNonceRequest) String() string

func (*QueryLastEventNonceRequest) Unmarshal ¶

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

func (*QueryLastEventNonceRequest) XXX_DiscardUnknown ¶

func (m *QueryLastEventNonceRequest) XXX_DiscardUnknown()

func (*QueryLastEventNonceRequest) XXX_Marshal ¶

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

func (*QueryLastEventNonceRequest) XXX_Merge ¶

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

func (*QueryLastEventNonceRequest) XXX_Size ¶

func (m *QueryLastEventNonceRequest) XXX_Size() int

func (*QueryLastEventNonceRequest) XXX_Unmarshal ¶

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

type QueryLastEventNonceResponse ¶

type QueryLastEventNonceResponse struct {
	EventNonce  uint64 `protobuf:"varint,1,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	EventHeight uint64 `protobuf:"varint,2,opt,name=eventHeight,proto3" json:"eventHeight,omitempty"`
}

func (*QueryLastEventNonceResponse) Descriptor ¶

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

func (*QueryLastEventNonceResponse) GetEventHeight ¶

func (m *QueryLastEventNonceResponse) GetEventHeight() uint64

func (*QueryLastEventNonceResponse) GetEventNonce ¶

func (m *QueryLastEventNonceResponse) GetEventNonce() uint64

func (*QueryLastEventNonceResponse) Marshal ¶

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

func (*QueryLastEventNonceResponse) MarshalTo ¶

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

func (*QueryLastEventNonceResponse) MarshalToSizedBuffer ¶

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

func (*QueryLastEventNonceResponse) ProtoMessage ¶

func (*QueryLastEventNonceResponse) ProtoMessage()

func (*QueryLastEventNonceResponse) Reset ¶

func (m *QueryLastEventNonceResponse) Reset()

func (*QueryLastEventNonceResponse) Size ¶

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

func (*QueryLastEventNonceResponse) String ¶

func (m *QueryLastEventNonceResponse) String() string

func (*QueryLastEventNonceResponse) Unmarshal ¶

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

func (*QueryLastEventNonceResponse) XXX_DiscardUnknown ¶

func (m *QueryLastEventNonceResponse) XXX_DiscardUnknown()

func (*QueryLastEventNonceResponse) XXX_Marshal ¶

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

func (*QueryLastEventNonceResponse) XXX_Merge ¶

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

func (*QueryLastEventNonceResponse) XXX_Size ¶

func (m *QueryLastEventNonceResponse) XXX_Size() int

func (*QueryLastEventNonceResponse) XXX_Unmarshal ¶

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

type QueryLatestValsetNonceRequest ¶

type QueryLatestValsetNonceRequest struct {
}

func (*QueryLatestValsetNonceRequest) Descriptor ¶

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

func (*QueryLatestValsetNonceRequest) Marshal ¶

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

func (*QueryLatestValsetNonceRequest) MarshalTo ¶

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

func (*QueryLatestValsetNonceRequest) MarshalToSizedBuffer ¶

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

func (*QueryLatestValsetNonceRequest) ProtoMessage ¶

func (*QueryLatestValsetNonceRequest) ProtoMessage()

func (*QueryLatestValsetNonceRequest) Reset ¶

func (m *QueryLatestValsetNonceRequest) Reset()

func (*QueryLatestValsetNonceRequest) Size ¶

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

func (*QueryLatestValsetNonceRequest) String ¶

func (*QueryLatestValsetNonceRequest) Unmarshal ¶

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

func (*QueryLatestValsetNonceRequest) XXX_DiscardUnknown ¶

func (m *QueryLatestValsetNonceRequest) XXX_DiscardUnknown()

func (*QueryLatestValsetNonceRequest) XXX_Marshal ¶

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

func (*QueryLatestValsetNonceRequest) XXX_Merge ¶

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

func (*QueryLatestValsetNonceRequest) XXX_Size ¶

func (m *QueryLatestValsetNonceRequest) XXX_Size() int

func (*QueryLatestValsetNonceRequest) XXX_Unmarshal ¶

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

type QueryLatestValsetNonceResponse ¶

type QueryLatestValsetNonceResponse struct {
	ValsetNonce uint64 `protobuf:"varint,1,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
}

func (*QueryLatestValsetNonceResponse) Descriptor ¶

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

func (*QueryLatestValsetNonceResponse) GetValsetNonce ¶

func (m *QueryLatestValsetNonceResponse) GetValsetNonce() uint64

func (*QueryLatestValsetNonceResponse) Marshal ¶

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

func (*QueryLatestValsetNonceResponse) MarshalTo ¶

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

func (*QueryLatestValsetNonceResponse) MarshalToSizedBuffer ¶

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

func (*QueryLatestValsetNonceResponse) ProtoMessage ¶

func (*QueryLatestValsetNonceResponse) ProtoMessage()

func (*QueryLatestValsetNonceResponse) Reset ¶

func (m *QueryLatestValsetNonceResponse) Reset()

func (*QueryLatestValsetNonceResponse) Size ¶

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

func (*QueryLatestValsetNonceResponse) String ¶

func (*QueryLatestValsetNonceResponse) Unmarshal ¶

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

func (*QueryLatestValsetNonceResponse) XXX_DiscardUnknown ¶

func (m *QueryLatestValsetNonceResponse) XXX_DiscardUnknown()

func (*QueryLatestValsetNonceResponse) XXX_Marshal ¶

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

func (*QueryLatestValsetNonceResponse) XXX_Merge ¶

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

func (*QueryLatestValsetNonceResponse) XXX_Size ¶

func (m *QueryLatestValsetNonceResponse) XXX_Size() int

func (*QueryLatestValsetNonceResponse) XXX_Unmarshal ¶

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

type QueryLatestValsetRequest ¶

type QueryLatestValsetRequest struct {
}

func (*QueryLatestValsetRequest) Descriptor ¶

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

func (*QueryLatestValsetRequest) Marshal ¶

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

func (*QueryLatestValsetRequest) MarshalTo ¶

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

func (*QueryLatestValsetRequest) MarshalToSizedBuffer ¶

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

func (*QueryLatestValsetRequest) ProtoMessage ¶

func (*QueryLatestValsetRequest) ProtoMessage()

func (*QueryLatestValsetRequest) Reset ¶

func (m *QueryLatestValsetRequest) Reset()

func (*QueryLatestValsetRequest) Size ¶

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

func (*QueryLatestValsetRequest) String ¶

func (m *QueryLatestValsetRequest) String() string

func (*QueryLatestValsetRequest) Unmarshal ¶

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

func (*QueryLatestValsetRequest) XXX_DiscardUnknown ¶

func (m *QueryLatestValsetRequest) XXX_DiscardUnknown()

func (*QueryLatestValsetRequest) XXX_Marshal ¶

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

func (*QueryLatestValsetRequest) XXX_Merge ¶

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

func (*QueryLatestValsetRequest) XXX_Size ¶

func (m *QueryLatestValsetRequest) XXX_Size() int

func (*QueryLatestValsetRequest) XXX_Unmarshal ¶

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

type QueryLatestValsetResponse ¶

type QueryLatestValsetResponse struct {
	Valset Valset `protobuf:"bytes,1,opt,name=valset,proto3" json:"valset"`
}

func (*QueryLatestValsetResponse) Descriptor ¶

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

func (*QueryLatestValsetResponse) GetValset ¶

func (m *QueryLatestValsetResponse) GetValset() Valset

func (*QueryLatestValsetResponse) Marshal ¶

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

func (*QueryLatestValsetResponse) MarshalTo ¶

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

func (*QueryLatestValsetResponse) MarshalToSizedBuffer ¶

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

func (*QueryLatestValsetResponse) ProtoMessage ¶

func (*QueryLatestValsetResponse) ProtoMessage()

func (*QueryLatestValsetResponse) Reset ¶

func (m *QueryLatestValsetResponse) Reset()

func (*QueryLatestValsetResponse) Size ¶

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

func (*QueryLatestValsetResponse) String ¶

func (m *QueryLatestValsetResponse) String() string

func (*QueryLatestValsetResponse) Unmarshal ¶

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

func (*QueryLatestValsetResponse) XXX_DiscardUnknown ¶

func (m *QueryLatestValsetResponse) XXX_DiscardUnknown()

func (*QueryLatestValsetResponse) XXX_Marshal ¶

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

func (*QueryLatestValsetResponse) XXX_Merge ¶

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

func (*QueryLatestValsetResponse) XXX_Size ¶

func (m *QueryLatestValsetResponse) XXX_Size() int

func (*QueryLatestValsetResponse) XXX_Unmarshal ¶

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

type QueryListOrchestratorsRequest ¶

type QueryListOrchestratorsRequest struct {
}

func (*QueryListOrchestratorsRequest) Descriptor ¶

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

func (*QueryListOrchestratorsRequest) Marshal ¶

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

func (*QueryListOrchestratorsRequest) MarshalTo ¶

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

func (*QueryListOrchestratorsRequest) MarshalToSizedBuffer ¶

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

func (*QueryListOrchestratorsRequest) ProtoMessage ¶

func (*QueryListOrchestratorsRequest) ProtoMessage()

func (*QueryListOrchestratorsRequest) Reset ¶

func (m *QueryListOrchestratorsRequest) Reset()

func (*QueryListOrchestratorsRequest) Size ¶

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

func (*QueryListOrchestratorsRequest) String ¶

func (*QueryListOrchestratorsRequest) Unmarshal ¶

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

func (*QueryListOrchestratorsRequest) XXX_DiscardUnknown ¶

func (m *QueryListOrchestratorsRequest) XXX_DiscardUnknown()

func (*QueryListOrchestratorsRequest) XXX_Marshal ¶

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

func (*QueryListOrchestratorsRequest) XXX_Merge ¶

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

func (*QueryListOrchestratorsRequest) XXX_Size ¶

func (m *QueryListOrchestratorsRequest) XXX_Size() int

func (*QueryListOrchestratorsRequest) XXX_Unmarshal ¶

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

type QueryListOrchestratorsResponse ¶

type QueryListOrchestratorsResponse struct {
	OrchestratorSet []MsgSetOrchestratorAddress `protobuf:"bytes,1,rep,name=orchestrator_set,json=orchestratorSet,proto3" json:"orchestrator_set"`
}

func (*QueryListOrchestratorsResponse) Descriptor ¶

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

func (*QueryListOrchestratorsResponse) GetOrchestratorSet ¶

func (*QueryListOrchestratorsResponse) Marshal ¶

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

func (*QueryListOrchestratorsResponse) MarshalTo ¶

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

func (*QueryListOrchestratorsResponse) MarshalToSizedBuffer ¶

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

func (*QueryListOrchestratorsResponse) ProtoMessage ¶

func (*QueryListOrchestratorsResponse) ProtoMessage()

func (*QueryListOrchestratorsResponse) Reset ¶

func (m *QueryListOrchestratorsResponse) Reset()

func (*QueryListOrchestratorsResponse) Size ¶

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

func (*QueryListOrchestratorsResponse) String ¶

func (*QueryListOrchestratorsResponse) Unmarshal ¶

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

func (*QueryListOrchestratorsResponse) XXX_DiscardUnknown ¶

func (m *QueryListOrchestratorsResponse) XXX_DiscardUnknown()

func (*QueryListOrchestratorsResponse) XXX_Marshal ¶

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

func (*QueryListOrchestratorsResponse) XXX_Merge ¶

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

func (*QueryListOrchestratorsResponse) XXX_Size ¶

func (m *QueryListOrchestratorsResponse) XXX_Size() int

func (*QueryListOrchestratorsResponse) XXX_Unmarshal ¶

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

type QueryParamsRequest ¶

type QueryParamsRequest struct {
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is 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 QueryServer ¶

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a Valset by nonce.
	Valset(context.Context, *QueryGetValsetRequest) (*QueryGetValsetResponse, error)
	// Queries a list of Valset items.
	ValsetAll(context.Context, *QueryAllValsetRequest) (*QueryAllValsetResponse, error)
	// Queries a Attestation by index.
	Attestation(context.Context, *QueryGetAttestationRequest) (*QueryGetAttestationResponse, error)
	// Queries a list of Attestation items.
	AttestationAll(context.Context, *QueryAllAttestationRequest) (*QueryAllAttestationResponse, error)
	// Queries a ValsetConfirmation by valset nonce.
	ValsetConfirmation(context.Context, *QueryGetValsetConfirmationRequest) (*QueryGetValsetConfirmationResponse, error)
	// Queries a list of ValsetConfirmation items.
	ValsetConfirmationAll(context.Context, *QueryAllValsetConfirmationRequest) (*QueryAllValsetConfirmationResponse, error)
	// Queries a ValsetUpdatedClaim by index.
	ValsetUpdatedClaim(context.Context, *QueryGetValsetUpdatedClaimRequest) (*QueryGetValsetUpdatedClaimResponse, error)
	// Queries a list of ValsetUpdatedClaim items.
	ValsetUpdatedClaimAll(context.Context, *QueryAllValsetUpdatedClaimRequest) (*QueryAllValsetUpdatedClaimResponse, error)
	// Queries a list of LatestValsetNonce items.
	LatestValsetNonce(context.Context, *QueryLatestValsetNonceRequest) (*QueryLatestValsetNonceResponse, error)
	// Queries a list of LatestValset items.
	LatestValset(context.Context, *QueryLatestValsetRequest) (*QueryLatestValsetResponse, error)
	// Queries a list of LastEventNonce items.
	LastEventNonce(context.Context, *QueryLastEventNonceRequest) (*QueryLastEventNonceResponse, error)
	// Queries a list of ListOrchestrators items.
	ListOrchestrators(context.Context, *QueryListOrchestratorsRequest) (*QueryListOrchestratorsResponse, error)
	// Queries a list of FetchOrchestratorValidator items.
	FetchOrchestratorValidator(context.Context, *QueryFetchOrchestratorValidatorRequest) (*QueryFetchOrchestratorValidatorResponse, error)
	// Queries a list of ObservedAttestation items.
	ObservedAttestation(context.Context, *QueryGetObservedAttestationRequest) (*QueryGetObservedAttestationResponse, error)
	ObservedAttestationAll(context.Context, *QueryAllObservedAttestationRequest) (*QueryAllObservedAttestationResponse, error)
}

QueryServer is the server API for Query service.

type SlashingKeeper ¶

type SlashingKeeper interface {
	GetValidatorSigningInfo(ctx sdk.Context, address sdk.ConsAddress) (info slashingtypes.ValidatorSigningInfo, found bool)
}

type StakingKeeper ¶

type StakingKeeper interface {
	GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
	GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator)
	GetLastValidatorPower(ctx sdk.Context, operator sdk.ValAddress) int64
	GetLastTotalPower(ctx sdk.Context) (power sdkmath.Int)
	ValidatorQueueIterator(ctx sdk.Context, endTime time.Time, endHeight int64) sdk.Iterator
	GetParams(ctx sdk.Context) stakingtypes.Params
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	IterateBondedValidatorsByPower(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	IterateLastValidators(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))

	// iterate through validators by operator address, execute func for each validator
	IterateValidators(sdk.Context,
		func(index int64, validator stakingtypes.ValidatorI) (stop bool))

	Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI            // get a particular validator by operator address
	ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI // get a particular validator by consensus address

	// slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction
	Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) math.Int
	Jail(sdk.Context, sdk.ConsAddress)   // jail a validator
	Unjail(sdk.Context, sdk.ConsAddress) // unjail a validator

	// Delegation allows for getting a particular delegation for a given validator
	// and delegator outside the scope of the staking module.
	Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingtypes.DelegationI

	// MaxValidators returns the maximum amount of bonded validators
	MaxValidators(sdk.Context) uint32

	GetHistoricalInfo(ctx sdk.Context, height int64) (stakingtypes.HistoricalInfo, bool)
	GetValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) (validator stakingtypes.Validator, found bool)
}

StakingKeeper defines the expected staking keeper methods

type UnimplementedMsgServer ¶

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SetOrchestratorAddress ¶

func (*UnimplementedMsgServer) ValsetConfirm ¶

func (*UnimplementedMsgServer) ValsetUpdatedClaim ¶

type UnimplementedQueryServer ¶

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Attestation ¶

func (*UnimplementedQueryServer) AttestationAll ¶

func (*UnimplementedQueryServer) LastEventNonce ¶

func (*UnimplementedQueryServer) LatestValset ¶

func (*UnimplementedQueryServer) LatestValsetNonce ¶

func (*UnimplementedQueryServer) ListOrchestrators ¶

func (*UnimplementedQueryServer) Params ¶

func (*UnimplementedQueryServer) Valset ¶

func (*UnimplementedQueryServer) ValsetAll ¶

type Valset ¶

type Valset struct {
	Nonce   uint64            `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Members []BridgeValidator `protobuf:"bytes,2,rep,name=members,proto3" json:"members"`
	Height  uint64            `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

func NewValset ¶

func NewValset(nonce, height uint64, members InternalBridgeValidators) (*Valset, error)

NewValset returns a new valset

func (*Valset) Descriptor ¶

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

func (Valset) Equal ¶

func (v Valset) Equal(o Valset) (bool, error)

Equal compares all of the valset members, additionally returning an error explaining the problem

func (Valset) GetCheckpoint ¶

func (v Valset) GetCheckpoint(routerIdString string) ([]byte, error)

GetCheckpoint returns the checkpoint

func (*Valset) GetHeight ¶

func (m *Valset) GetHeight() uint64

func (*Valset) GetMembers ¶

func (m *Valset) GetMembers() []BridgeValidator

func (*Valset) GetNonce ¶

func (m *Valset) GetNonce() uint64

func (*Valset) Marshal ¶

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

func (*Valset) MarshalTo ¶

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

func (*Valset) MarshalToSizedBuffer ¶

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

func (*Valset) ProtoMessage ¶

func (*Valset) ProtoMessage()

func (*Valset) Reset ¶

func (m *Valset) Reset()

func (*Valset) Size ¶

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

func (*Valset) String ¶

func (m *Valset) String() string

func (*Valset) Unmarshal ¶

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

func (*Valset) WithoutEmptyMembers ¶

func (v *Valset) WithoutEmptyMembers() *Valset

WithoutEmptyMembers returns a new Valset without member that have 0 power or an empty Ethereum address.

func (*Valset) XXX_DiscardUnknown ¶

func (m *Valset) XXX_DiscardUnknown()

func (*Valset) XXX_Marshal ¶

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

func (*Valset) XXX_Merge ¶

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

func (*Valset) XXX_Size ¶

func (m *Valset) XXX_Size() int

func (*Valset) XXX_Unmarshal ¶

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

type ValsetConfirmation ¶

type ValsetConfirmation struct {
	ValsetNonce  uint64 `protobuf:"varint,1,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
	EthAddress   string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`
	Signature    string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	Orchestrator string `protobuf:"bytes,4,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
}

func NewValsetConfirmation ¶

func NewValsetConfirmation(valsetNonce uint64, ethSigner string, signature string, orchestrator string) *ValsetConfirmation

func (*ValsetConfirmation) Descriptor ¶

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

func (*ValsetConfirmation) GetEthAddress ¶

func (m *ValsetConfirmation) GetEthAddress() string

func (*ValsetConfirmation) GetOrchestrator ¶

func (m *ValsetConfirmation) GetOrchestrator() string

func (*ValsetConfirmation) GetSignature ¶

func (m *ValsetConfirmation) GetSignature() string

func (*ValsetConfirmation) GetValsetNonce ¶

func (m *ValsetConfirmation) GetValsetNonce() uint64

func (*ValsetConfirmation) Marshal ¶

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

func (*ValsetConfirmation) MarshalTo ¶

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

func (*ValsetConfirmation) MarshalToSizedBuffer ¶

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

func (*ValsetConfirmation) ProtoMessage ¶

func (*ValsetConfirmation) ProtoMessage()

func (*ValsetConfirmation) Reset ¶

func (m *ValsetConfirmation) Reset()

func (*ValsetConfirmation) Size ¶

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

func (*ValsetConfirmation) String ¶

func (m *ValsetConfirmation) String() string

func (*ValsetConfirmation) Unmarshal ¶

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

func (*ValsetConfirmation) XXX_DiscardUnknown ¶

func (m *ValsetConfirmation) XXX_DiscardUnknown()

func (*ValsetConfirmation) XXX_Marshal ¶

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

func (*ValsetConfirmation) XXX_Merge ¶

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

func (*ValsetConfirmation) XXX_Size ¶

func (m *ValsetConfirmation) XXX_Size() int

func (*ValsetConfirmation) XXX_Unmarshal ¶

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

type ValsetUpdatedClaim ¶

type ValsetUpdatedClaim struct {
	ChainId      string                   `protobuf:"bytes,1,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract     string                   `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce   uint64                   `protobuf:"varint,3,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	ValsetNonce  uint64                   `protobuf:"varint,4,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
	BlockHeight  uint64                   `protobuf:"varint,5,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	SourceTxHash string                   `protobuf:"bytes,6,opt,name=sourceTxHash,proto3" json:"sourceTxHash,omitempty"`
	Status       ValsetUpdatedClaimStatus `` /* 135-byte string literal not displayed */
}

func NewValsetUpdatedClaim ¶

func NewValsetUpdatedClaim(chainId string, contract string, eventNonce uint64, blockHeight uint64,
	valsetNonce uint64, sourceTxHash string,
) *ValsetUpdatedClaim

func (*ValsetUpdatedClaim) Descriptor ¶

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

func (*ValsetUpdatedClaim) GetBlockHeight ¶

func (m *ValsetUpdatedClaim) GetBlockHeight() uint64

func (*ValsetUpdatedClaim) GetChainId ¶

func (m *ValsetUpdatedClaim) GetChainId() string

func (*ValsetUpdatedClaim) GetContract ¶

func (m *ValsetUpdatedClaim) GetContract() string

func (*ValsetUpdatedClaim) GetEventNonce ¶

func (m *ValsetUpdatedClaim) GetEventNonce() uint64

func (*ValsetUpdatedClaim) GetSourceTxHash ¶

func (m *ValsetUpdatedClaim) GetSourceTxHash() string

func (*ValsetUpdatedClaim) GetStatus ¶

func (*ValsetUpdatedClaim) GetValsetNonce ¶

func (m *ValsetUpdatedClaim) GetValsetNonce() uint64

func (*ValsetUpdatedClaim) Marshal ¶

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

func (*ValsetUpdatedClaim) MarshalTo ¶

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

func (*ValsetUpdatedClaim) MarshalToSizedBuffer ¶

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

func (*ValsetUpdatedClaim) ProtoMessage ¶

func (*ValsetUpdatedClaim) ProtoMessage()

func (*ValsetUpdatedClaim) Reset ¶

func (m *ValsetUpdatedClaim) Reset()

func (*ValsetUpdatedClaim) Size ¶

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

func (*ValsetUpdatedClaim) String ¶

func (m *ValsetUpdatedClaim) String() string

func (*ValsetUpdatedClaim) Unmarshal ¶

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

func (*ValsetUpdatedClaim) XXX_DiscardUnknown ¶

func (m *ValsetUpdatedClaim) XXX_DiscardUnknown()

func (*ValsetUpdatedClaim) XXX_Marshal ¶

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

func (*ValsetUpdatedClaim) XXX_Merge ¶

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

func (*ValsetUpdatedClaim) XXX_Size ¶

func (m *ValsetUpdatedClaim) XXX_Size() int

func (*ValsetUpdatedClaim) XXX_Unmarshal ¶

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

type ValsetUpdatedClaimHash ¶

type ValsetUpdatedClaimHash struct {
	ChainId      string            `protobuf:"bytes,1,opt,name=chainId,proto3" json:"chainId,omitempty"`
	Contract     string            `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	EventNonce   uint64            `protobuf:"varint,3,opt,name=eventNonce,proto3" json:"eventNonce,omitempty"`
	ValsetNonce  uint64            `protobuf:"varint,4,opt,name=valsetNonce,proto3" json:"valsetNonce,omitempty"`
	BlockHeight  uint64            `protobuf:"varint,5,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	Members      []BridgeValidator `protobuf:"bytes,6,rep,name=members,proto3" json:"members"`
	SourceTxHash string            `protobuf:"bytes,7,opt,name=sourceTxHash,proto3" json:"sourceTxHash,omitempty"`
}

func NewValsetUpdatedClaimHash ¶

func NewValsetUpdatedClaimHash(
	chainId string,
	contract string,
	eventNonce uint64,
	blockHeight uint64,
	valsetNonce uint64,
	sourceTxHash string,
	members []BridgeValidator,
) *ValsetUpdatedClaimHash

func (*ValsetUpdatedClaimHash) Descriptor ¶

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

func (*ValsetUpdatedClaimHash) GetBlockHeight ¶

func (m *ValsetUpdatedClaimHash) GetBlockHeight() uint64

func (*ValsetUpdatedClaimHash) GetChainId ¶

func (m *ValsetUpdatedClaimHash) GetChainId() string

func (*ValsetUpdatedClaimHash) GetContract ¶

func (m *ValsetUpdatedClaimHash) GetContract() string

func (*ValsetUpdatedClaimHash) GetEventNonce ¶

func (m *ValsetUpdatedClaimHash) GetEventNonce() uint64

func (*ValsetUpdatedClaimHash) GetMembers ¶

func (m *ValsetUpdatedClaimHash) GetMembers() []BridgeValidator

func (*ValsetUpdatedClaimHash) GetSourceTxHash ¶

func (m *ValsetUpdatedClaimHash) GetSourceTxHash() string

func (*ValsetUpdatedClaimHash) GetValsetNonce ¶

func (m *ValsetUpdatedClaimHash) GetValsetNonce() uint64

func (*ValsetUpdatedClaimHash) Marshal ¶

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

func (*ValsetUpdatedClaimHash) MarshalTo ¶

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

func (*ValsetUpdatedClaimHash) MarshalToSizedBuffer ¶

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

func (*ValsetUpdatedClaimHash) ProtoMessage ¶

func (*ValsetUpdatedClaimHash) ProtoMessage()

func (*ValsetUpdatedClaimHash) Reset ¶

func (m *ValsetUpdatedClaimHash) Reset()

func (*ValsetUpdatedClaimHash) Size ¶

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

func (*ValsetUpdatedClaimHash) String ¶

func (m *ValsetUpdatedClaimHash) String() string

func (*ValsetUpdatedClaimHash) Unmarshal ¶

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

func (*ValsetUpdatedClaimHash) XXX_DiscardUnknown ¶

func (m *ValsetUpdatedClaimHash) XXX_DiscardUnknown()

func (*ValsetUpdatedClaimHash) XXX_Marshal ¶

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

func (*ValsetUpdatedClaimHash) XXX_Merge ¶

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

func (*ValsetUpdatedClaimHash) XXX_Size ¶

func (m *ValsetUpdatedClaimHash) XXX_Size() int

func (*ValsetUpdatedClaimHash) XXX_Unmarshal ¶

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

type ValsetUpdatedClaimStatus ¶

type ValsetUpdatedClaimStatus int32
const (
	VALSET_UPDATED_CLAIM_CREATED   ValsetUpdatedClaimStatus = 0
	VALSET_UPDATED_CLAIM_VALIDATED ValsetUpdatedClaimStatus = 1
)

func (ValsetUpdatedClaimStatus) EnumDescriptor ¶

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

func (ValsetUpdatedClaimStatus) String ¶

func (x ValsetUpdatedClaimStatus) String() string

type Valsets ¶

type Valsets []Valset

Valsets is a collection of valset

func (Valsets) Len ¶

func (v Valsets) Len() int

func (Valsets) Less ¶

func (v Valsets) Less(i, j int) bool

func (Valsets) Swap ¶

func (v Valsets) Swap(i, j int)

Jump to

Keyboard shortcuts

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