types

package
v0.10.0-fork-mamaki-tool Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 37 Imported by: 13

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// InternalQGBabiJSON is the json encoded abi for private functions in the
	// qgb contract. This is needed to encode data that is signed over in a way
	// that the contracts can easily verify.
	InternalQGBabiJSON = `` /* 1844-byte string literal not displayed */

	// Domain separator constants copied directly from the contracts.
	ValidatorSetDomainSeparator   = "0x636865636b706f696e7400000000000000000000000000000000000000000000"
	DataCommitmentDomainSeparator = "0x7472616e73616374696f6e426174636800000000000000000000000000000000"
)
View Source
const (
	EventTypeAttestationRequest = "AttestationRequest"
	AttributeKeyNonce           = "nonce"
)
View Source
const (
	// ModuleName is the name of the module.
	ModuleName = "qgb"

	// StoreKey to be used when creating the KVStore.
	StoreKey = ModuleName

	// RouterKey is the module name router key.
	RouterKey = ModuleName

	// QuerierRoute to be used for querier msgs.
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key.
	MemStoreKey = "mem_qgb"
)
View Source
const (
	// AttestationRequestKey indexes attestation requests by nonce
	AttestationRequestKey = "AttestationRequestKey"

	// LastUnBondingBlockHeight indexes the last validator unbonding block height
	LastUnBondingBlockHeight = "LastUnBondingBlockHeight"

	// LatestAttestationtNonce indexes the latest attestation request nonce
	LatestAttestationtNonce = "LatestAttestationNonce"
)
View Source
const (
	DefaultParamspace = ModuleName
)

DefaultParamspace defines the default qgb module parameter subspace

Variables

View Source
var (
	ExternalQGBabi     abi.ABI
	InternalQGBabi     abi.ABI
	BridgeValidatorAbi abi.Arguments

	VsDomainSeparator ethcmn.Hash
	DcDomainSeparator ethcmn.Hash
	BridgeID          = ethcmn.HexToHash("Evm_Celestia_Bridge") //  TODO to be removed afterwards
)
View Source
var (
	ErrInvalid                               = sdkerrors.Register(ModuleName, 3, "invalid")
	ErrDuplicate                             = sdkerrors.Register(ModuleName, 2, "duplicate")
	ErrUnknown                               = sdkerrors.Register(ModuleName, 5, "unknown")
	ErrEmpty                                 = sdkerrors.Register(ModuleName, 6, "empty")
	ErrResetDelegateKeys                     = sdkerrors.Register(ModuleName, 10, "can not set orchestrator addresses more than once")
	ErrNoValidators                          = sdkerrors.Register(ModuleName, 12, "no bonded validators in active set")
	ErrInvalidValAddress                     = sdkerrors.Register(ModuleName, 13, "invalid validator address in current valset %v")
	ErrInvalidEVMAddress                     = sdkerrors.Register(ModuleName, 14, "discovered invalid EVM address stored for validator %v")
	ErrInvalidValset                         = sdkerrors.Register(ModuleName, 15, "generated invalid valset")
	ErrAttestationNotValsetRequest           = sdkerrors.Register(ModuleName, 16, "attestation is not a valset request")
	ErrAttestationNotDataCommitmentRequest   = sdkerrors.Register(ModuleName, 17, "attestation is not a data commitment request")
	ErrAttestationNotFound                   = sdkerrors.Register(ModuleName, 18, "attestation not found")
	ErrNilDataCommitmentRequest              = sdkerrors.Register(ModuleName, 19, "data commitment cannot be nil when setting attestation") //nolint:lll
	ErrNilValsetRequest                      = sdkerrors.Register(ModuleName, 20, "valset cannot be nil when setting attestation")
	ErrValidatorNotInValset                  = sdkerrors.Register(ModuleName, 21, "validator signing is not in the valset")
	ErrNilAttestation                        = sdkerrors.Register(ModuleName, 22, "nil attestation")
	ErrAttestationNotCastToDataCommitment    = sdkerrors.Register(ModuleName, 23, "couldn't cast attestation to data commitment")
	ErrWindowNotFound                        = sdkerrors.Register(ModuleName, 25, "couldn't find data commitment window in store")
	ErrUnmarshalllAttestation                = sdkerrors.Register(ModuleName, 26, "couldn't unmarshall attestation from store")
	ErrNonceHigherThanLatestAttestationNonce = sdkerrors.Register(ModuleName, 27, "the provided nonce is higher than the latest attestation nonce")
	ErrNoValsetBeforeNonceOne                = sdkerrors.Register(ModuleName, 28, "there is no valset before attestation nonce 1")
)
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 (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = 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 (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ParamsStoreKeyDataCommitmentWindow = []byte("DataCommitmentWindow")

ParamsStoreKeyDataCommitmentWindow

Functions

func ConvertByteArrToString added in v0.7.0

func ConvertByteArrToString(value []byte) string

func EVMAddrLessThan added in v0.9.0

func EVMAddrLessThan(e common.Address, o common.Address) bool

EVMAddrLessThan migrates the EVM address less than function.

func GetAttestationKey added in v0.7.0

func GetAttestationKey(nonce uint64) string

GetAttestationKey returns the following key format prefix nonce [0x0][0 0 0 0 0 0 0 1]

func ParamKeyTable added in v0.7.0

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for qgb module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgHandler

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.7.0

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient added in v0.7.0

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint added in v0.7.0

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer added in v0.7.0

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func UInt64Bytes added in v0.7.0

func UInt64Bytes(n uint64) []byte

UInt64Bytes uses the SDK byte marshaling to encode a uint64.

Types

type AttestationRequestI added in v0.7.0

type AttestationRequestI interface {
	proto.Message
	codec.ProtoMarshaler
	Type() AttestationType
	GetNonce() uint64
}

AttestationRequestI is either a DataCommitment or a Valset. This was decided as part of the universal nonce approach under: https://github.com/celestiaorg/celestia-app/issues/468#issuecomment-1156887715

type AttestationType added in v0.7.0

type AttestationType int64
const (
	DataCommitmentRequestType AttestationType = iota
	ValsetRequestType
)

type BridgeValidator added in v0.7.0

type BridgeValidator struct {
	// Voting power of the validator.
	Power uint64 `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"`
	// EVM address that will be used by the validator to sign messages.
	EvmAddress string `protobuf:"bytes,2,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}

BridgeValidator represents a validator's ETH address and its power

func (*BridgeValidator) Descriptor added in v0.7.0

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

func (*BridgeValidator) GetEvmAddress added in v0.9.0

func (m *BridgeValidator) GetEvmAddress() string

func (*BridgeValidator) GetPower added in v0.7.0

func (m *BridgeValidator) GetPower() uint64

func (*BridgeValidator) Marshal added in v0.7.0

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

func (*BridgeValidator) MarshalTo added in v0.7.0

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

func (*BridgeValidator) MarshalToSizedBuffer added in v0.7.0

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

func (*BridgeValidator) ProtoMessage added in v0.7.0

func (*BridgeValidator) ProtoMessage()

func (*BridgeValidator) Reset added in v0.7.0

func (m *BridgeValidator) Reset()

func (*BridgeValidator) Size added in v0.7.0

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

func (*BridgeValidator) String added in v0.7.0

func (m *BridgeValidator) String() string

func (BridgeValidator) ToInternal added in v0.7.0

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

ToInternal transforms a BridgeValidator into its fully validated internal type.

func (*BridgeValidator) Unmarshal added in v0.7.0

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

func (*BridgeValidator) XXX_DiscardUnknown added in v0.7.0

func (m *BridgeValidator) XXX_DiscardUnknown()

func (*BridgeValidator) XXX_Marshal added in v0.7.0

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

func (*BridgeValidator) XXX_Merge added in v0.7.0

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

func (*BridgeValidator) XXX_Size added in v0.7.0

func (m *BridgeValidator) XXX_Size() int

func (*BridgeValidator) XXX_Unmarshal added in v0.7.0

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

type BridgeValidators added in v0.7.0

type BridgeValidators []BridgeValidator

BridgeValidators is the sorted set of validator data for EVM bridge MultiSig set.

func (BridgeValidators) ToInternal added in v0.7.0

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

type DataCommitment added in v0.7.0

type DataCommitment struct {
	// Universal nonce defined under:
	// https://github.com/celestiaorg/celestia-app/pull/464
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// First block defining the ordered set of blocks used to create the
	// commitment.
	BeginBlock uint64 `protobuf:"varint,2,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
	// Last block defining the ordered set of blocks used to create the
	// commitment.
	EndBlock uint64 `protobuf:"varint,3,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
}

DataCommitment is the data commitment request message that will be signed using orchestrators. It does not contain a `commitment` field as this message will be created inside the state machine and it doesn't make sense to ask tendermint for the commitment there.

func NewDataCommitment added in v0.7.0

func NewDataCommitment(
	nonce uint64,
	beginBlock uint64,
	endBlock uint64,
) *DataCommitment

NewDataCommitment creates a new DataCommitment.

func (*DataCommitment) Descriptor added in v0.7.0

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

func (*DataCommitment) GetBeginBlock added in v0.7.0

func (m *DataCommitment) GetBeginBlock() uint64

func (*DataCommitment) GetEndBlock added in v0.7.0

func (m *DataCommitment) GetEndBlock() uint64

func (*DataCommitment) GetNonce added in v0.7.0

func (m *DataCommitment) GetNonce() uint64

func (*DataCommitment) Marshal added in v0.7.0

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

func (*DataCommitment) MarshalTo added in v0.7.0

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

func (*DataCommitment) MarshalToSizedBuffer added in v0.7.0

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

func (*DataCommitment) ProtoMessage added in v0.7.0

func (*DataCommitment) ProtoMessage()

func (*DataCommitment) Reset added in v0.7.0

func (m *DataCommitment) Reset()

func (*DataCommitment) Size added in v0.7.0

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

func (*DataCommitment) String added in v0.7.0

func (m *DataCommitment) String() string

func (*DataCommitment) Type added in v0.7.0

func (m *DataCommitment) Type() AttestationType

func (*DataCommitment) Unmarshal added in v0.7.0

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

func (*DataCommitment) XXX_DiscardUnknown added in v0.7.0

func (m *DataCommitment) XXX_DiscardUnknown()

func (*DataCommitment) XXX_Marshal added in v0.7.0

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

func (*DataCommitment) XXX_Merge added in v0.7.0

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

func (*DataCommitment) XXX_Size added in v0.7.0

func (m *DataCommitment) XXX_Size() int

func (*DataCommitment) XXX_Unmarshal added in v0.7.0

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

type GenesisState

type GenesisState struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

GenesisState struct, containing all persistant data required by the Gravity module

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams added in v0.7.0

func (m *GenesisState) GetParams() *Params

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 added in v0.7.0

type InternalBridgeValidator struct {
	Power      uint64
	EVMAddress common.Address
}

Bridge Validator but with validated EVMAddress.

func NewInternalBridgeValidator added in v0.7.0

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

func (InternalBridgeValidator) ToExternal added in v0.7.0

func (InternalBridgeValidator) ValidateBasic added in v0.7.0

func (i InternalBridgeValidator) ValidateBasic() error

type InternalBridgeValidators added in v0.7.0

type InternalBridgeValidators []*InternalBridgeValidator

InternalBridgeValidators is the sorted set of validator data for EVM bridge MultiSig set.

func (InternalBridgeValidators) GetPowers added in v0.7.0

func (ibv InternalBridgeValidators) GetPowers() []uint64

GetPowers returns only the power values for all members.

func (InternalBridgeValidators) HasDuplicates added in v0.7.0

func (ibv InternalBridgeValidators) HasDuplicates() bool

HasDuplicates returns true if there are duplicates in the set.

func (InternalBridgeValidators) PowerDiff added in v0.7.0

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 added in v0.7.0

func (ibv InternalBridgeValidators) Sort()

Sort sorts the validators by power.

func (InternalBridgeValidators) ToExternal added in v0.7.0

func (ibv InternalBridgeValidators) ToExternal() BridgeValidators

func (InternalBridgeValidators) TotalPower added in v0.7.0

func (ibv InternalBridgeValidators) TotalPower() (out uint64)

TotalPower returns the total power in the bridge validator set.

func (InternalBridgeValidators) ValidateBasic added in v0.7.0

func (ibv InternalBridgeValidators) ValidateBasic() error

ValidateBasic performs stateless checks.

type MsgClient

type MsgClient interface {
	// ValsetConfirm allows the validators to submit their signatures over the
	// validator set.
	ValsetConfirm(ctx context.Context, in *MsgValsetConfirm, opts ...grpc.CallOption) (*MsgValsetConfirmResponse, error)
	// DataCommitmentConfirm allows the validators to submit a confirmation for a
	// data commitment.
	DataCommitmentConfirm(ctx context.Context, in *MsgDataCommitmentConfirm, opts ...grpc.CallOption) (*MsgDataCommitmentConfirmResponse, 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 MsgDataCommitmentConfirm

type MsgDataCommitmentConfirm struct {
	// Universal nonce referencing the Data Commitment.
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Signature over the commitment, the range of blocks, the validator address
	// and the EVM address.
	Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// Orchestrator account address who will be signing the message.
	ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// Hex `0x` encoded EVM public key that will be used by this validator on
	// EVM.
	EvmAddress string `protobuf:"bytes,4,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
	// Merkle root over a merkle tree containing the data roots of a set of
	// blocks.
	Commitment string `protobuf:"bytes,5,opt,name=commitment,proto3" json:"commitment,omitempty"`
	// First block defining the ordered set of blocks used to create the
	// commitment.
	BeginBlock uint64 `protobuf:"varint,6,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
	// Last block defining the ordered set of blocks used to create the
	// commitment.
	EndBlock uint64 `protobuf:"varint,7,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
}

MsgDataCommitmentConfirm describes a data commitment for a set of blocks.

func (*MsgDataCommitmentConfirm) Descriptor

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

func (*MsgDataCommitmentConfirm) GetBeginBlock added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetBeginBlock() uint64

func (*MsgDataCommitmentConfirm) GetCommitment added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetCommitment() string

func (*MsgDataCommitmentConfirm) GetEndBlock added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetEndBlock() uint64

func (*MsgDataCommitmentConfirm) GetEvmAddress added in v0.9.0

func (m *MsgDataCommitmentConfirm) GetEvmAddress() string

func (*MsgDataCommitmentConfirm) GetNonce added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetNonce() uint64

func (*MsgDataCommitmentConfirm) GetSignature added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetSignature() string

func (*MsgDataCommitmentConfirm) GetSigners

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

GetSigners defines whose signature is required.

func (*MsgDataCommitmentConfirm) GetValidatorAddress added in v0.7.0

func (m *MsgDataCommitmentConfirm) GetValidatorAddress() string

func (*MsgDataCommitmentConfirm) Marshal

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

func (*MsgDataCommitmentConfirm) MarshalTo

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

func (*MsgDataCommitmentConfirm) MarshalToSizedBuffer

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

func (*MsgDataCommitmentConfirm) ProtoMessage

func (*MsgDataCommitmentConfirm) ProtoMessage()

func (*MsgDataCommitmentConfirm) Reset

func (m *MsgDataCommitmentConfirm) Reset()

func (*MsgDataCommitmentConfirm) Size

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

func (*MsgDataCommitmentConfirm) String

func (m *MsgDataCommitmentConfirm) String() string

func (*MsgDataCommitmentConfirm) Type added in v0.7.0

func (msg *MsgDataCommitmentConfirm) Type() string

Type should return the action.

func (*MsgDataCommitmentConfirm) Unmarshal

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

func (*MsgDataCommitmentConfirm) ValidateBasic

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

ValidateBasic performs stateless checks.

func (*MsgDataCommitmentConfirm) XXX_DiscardUnknown

func (m *MsgDataCommitmentConfirm) XXX_DiscardUnknown()

func (*MsgDataCommitmentConfirm) XXX_Marshal

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

func (*MsgDataCommitmentConfirm) XXX_Merge

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

func (*MsgDataCommitmentConfirm) XXX_Size

func (m *MsgDataCommitmentConfirm) XXX_Size() int

func (*MsgDataCommitmentConfirm) XXX_Unmarshal

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

type MsgDataCommitmentConfirmResponse

type MsgDataCommitmentConfirmResponse struct {
}

MsgValsetConfirmResponse describes the response returned after the submission of a MsgDataCommitmentConfirm.

func (*MsgDataCommitmentConfirmResponse) Descriptor

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

func (*MsgDataCommitmentConfirmResponse) Marshal

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

func (*MsgDataCommitmentConfirmResponse) MarshalTo

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

func (*MsgDataCommitmentConfirmResponse) MarshalToSizedBuffer

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

func (*MsgDataCommitmentConfirmResponse) ProtoMessage

func (*MsgDataCommitmentConfirmResponse) ProtoMessage()

func (*MsgDataCommitmentConfirmResponse) Reset

func (*MsgDataCommitmentConfirmResponse) Size

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

func (*MsgDataCommitmentConfirmResponse) String

func (*MsgDataCommitmentConfirmResponse) Unmarshal

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

func (*MsgDataCommitmentConfirmResponse) XXX_DiscardUnknown

func (m *MsgDataCommitmentConfirmResponse) XXX_DiscardUnknown()

func (*MsgDataCommitmentConfirmResponse) XXX_Marshal

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

func (*MsgDataCommitmentConfirmResponse) XXX_Merge

func (*MsgDataCommitmentConfirmResponse) XXX_Size

func (m *MsgDataCommitmentConfirmResponse) XXX_Size() int

func (*MsgDataCommitmentConfirmResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// ValsetConfirm allows the validators to submit their signatures over the
	// validator set.
	ValsetConfirm(context.Context, *MsgValsetConfirm) (*MsgValsetConfirmResponse, error)
	// DataCommitmentConfirm allows the validators to submit a confirmation for a
	// data commitment.
	DataCommitmentConfirm(context.Context, *MsgDataCommitmentConfirm) (*MsgDataCommitmentConfirmResponse, error)
}

MsgServer is the server API for Msg service.

type MsgValsetConfirm

type MsgValsetConfirm struct {
	// Universal nonce referencing the `ValSet`.
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Orchestrator `celes1` account address.
	Orchestrator string `protobuf:"bytes,2,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
	// EVM address, associated to the orchestrator, used to sign the `ValSet`
	// message.
	EvmAddress string `protobuf:"bytes,3,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
	// The `ValSet` message signature.
	Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

MsgValsetConfirm this is the message sent by the validators when they wish to submit their signatures over the validator set at a given block height. Validators sign the validator set, powers, and EVM addresses of the entire validator set at the height of a ValsetRequest and submit that signature with this message.

If a sufficient number of validators (66% of voting power) (A) have set EVM addresses and (B) submit ValsetConfirm messages with their signatures it is then possible for anyone to view these signatures in the chain store and submit them to EVM to update the validator set -------------

func (*MsgValsetConfirm) Descriptor

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

func (*MsgValsetConfirm) GetEvmAddress added in v0.9.0

func (m *MsgValsetConfirm) GetEvmAddress() string

func (*MsgValsetConfirm) GetNonce

func (m *MsgValsetConfirm) GetNonce() uint64

func (*MsgValsetConfirm) GetOrchestrator

func (m *MsgValsetConfirm) GetOrchestrator() string

func (*MsgValsetConfirm) GetSignature

func (m *MsgValsetConfirm) GetSignature() string

func (*MsgValsetConfirm) GetSigners

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

GetSigners defines whose signature is required.

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 added in v0.7.0

func (msg *MsgValsetConfirm) Route() string

Route fullfills the sdk.Msg interface.

func (*MsgValsetConfirm) Size

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

func (*MsgValsetConfirm) String

func (m *MsgValsetConfirm) String() string

func (*MsgValsetConfirm) Type added in v0.7.0

func (msg *MsgValsetConfirm) Type() string

Type should return the action.

func (*MsgValsetConfirm) Unmarshal

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

func (*MsgValsetConfirm) ValidateBasic

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

ValidateBasic performs stateless checks.

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 {
}

MsgValsetConfirmResponse describes the response returned after the submission of a MsgValsetConfirm.

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 Params added in v0.7.0

type Params struct {
	DataCommitmentWindow uint64 `protobuf:"varint,1,opt,name=data_commitment_window,json=dataCommitmentWindow,proto3" json:"data_commitment_window,omitempty"`
}

Params represent the Quantum Gravity Bridge genesis and store parameters.

func (*Params) Descriptor added in v0.7.0

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

func (*Params) GetDataCommitmentWindow added in v0.7.0

func (m *Params) GetDataCommitmentWindow() uint64

func (*Params) Marshal added in v0.7.0

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

func (*Params) MarshalTo added in v0.7.0

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

func (*Params) MarshalToSizedBuffer added in v0.7.0

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

func (*Params) ParamSetPairs added in v0.7.0

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

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs of auth module's parameters.

func (*Params) ProtoMessage added in v0.7.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.7.0

func (m *Params) Reset()

func (*Params) Size added in v0.7.0

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

func (*Params) String added in v0.7.0

func (m *Params) String() string

func (*Params) Unmarshal added in v0.7.0

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

func (Params) ValidateBasic added in v0.7.0

func (p Params) ValidateBasic() error

ValidateBasic checks that the parameters have valid values.

func (*Params) XXX_DiscardUnknown added in v0.7.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.7.0

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

func (*Params) XXX_Merge added in v0.7.0

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

func (*Params) XXX_Size added in v0.7.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.7.0

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

type QueryAttestationRequestByNonceRequest added in v0.7.0

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

QueryAttestationRequestByNonceRequest

func (*QueryAttestationRequestByNonceRequest) Descriptor added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) GetNonce added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) Marshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) MarshalTo added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) ProtoMessage added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) ProtoMessage()

func (*QueryAttestationRequestByNonceRequest) Reset added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) Size added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) String added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) Unmarshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) XXX_DiscardUnknown added in v0.7.0

func (m *QueryAttestationRequestByNonceRequest) XXX_DiscardUnknown()

func (*QueryAttestationRequestByNonceRequest) XXX_Marshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceRequest) XXX_Merge added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) XXX_Size added in v0.7.0

func (*QueryAttestationRequestByNonceRequest) XXX_Unmarshal added in v0.7.0

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

type QueryAttestationRequestByNonceResponse added in v0.7.0

type QueryAttestationRequestByNonceResponse struct {
	// AttestationRequestI is either a Data Commitment or a Valset.
	// This was decided as part of the universal nonce approach under:
	// https://github.com/celestiaorg/celestia-app/issues/468#issuecomment-1156887715
	Attestation *types.Any `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"`
}

QueryAttestationRequestByNonceResponse

func (*QueryAttestationRequestByNonceResponse) Descriptor added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) GetAttestation added in v0.7.0

func (m *QueryAttestationRequestByNonceResponse) GetAttestation() *types.Any

func (*QueryAttestationRequestByNonceResponse) Marshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) MarshalTo added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) ProtoMessage added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) Reset added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) Size added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) String added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) Unmarshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) XXX_DiscardUnknown added in v0.7.0

func (m *QueryAttestationRequestByNonceResponse) XXX_DiscardUnknown()

func (*QueryAttestationRequestByNonceResponse) XXX_Marshal added in v0.7.0

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

func (*QueryAttestationRequestByNonceResponse) XXX_Merge added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) XXX_Size added in v0.7.0

func (*QueryAttestationRequestByNonceResponse) XXX_Unmarshal added in v0.7.0

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

type QueryClient

type QueryClient interface {
	// Params queries the current parameters for the qgb module
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// AttestationRequestByNonce queries attestation request by nonce.
	// Returns nil if not found.
	AttestationRequestByNonce(ctx context.Context, in *QueryAttestationRequestByNonceRequest, opts ...grpc.CallOption) (*QueryAttestationRequestByNonceResponse, error)
	// LatestAttestationNonce queries latest attestation nonce.
	LatestAttestationNonce(ctx context.Context, in *QueryLatestAttestationNonceRequest, opts ...grpc.CallOption) (*QueryLatestAttestationNonceResponse, error)
	// LastUnbondingHeight returns the last unbonding height
	LastUnbondingHeight(ctx context.Context, in *QueryLastUnbondingHeightRequest, opts ...grpc.CallOption) (*QueryLastUnbondingHeightResponse, 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 QueryLastUnbondingHeightRequest added in v0.7.0

type QueryLastUnbondingHeightRequest struct {
}

QueryLastUnbondingHeightRequest

func (*QueryLastUnbondingHeightRequest) Descriptor added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) Marshal added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) MarshalTo added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) ProtoMessage added in v0.7.0

func (*QueryLastUnbondingHeightRequest) ProtoMessage()

func (*QueryLastUnbondingHeightRequest) Reset added in v0.7.0

func (*QueryLastUnbondingHeightRequest) Size added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) String added in v0.7.0

func (*QueryLastUnbondingHeightRequest) Unmarshal added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLastUnbondingHeightRequest) XXX_DiscardUnknown()

func (*QueryLastUnbondingHeightRequest) XXX_Marshal added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) XXX_Merge added in v0.7.0

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

func (*QueryLastUnbondingHeightRequest) XXX_Size added in v0.7.0

func (m *QueryLastUnbondingHeightRequest) XXX_Size() int

func (*QueryLastUnbondingHeightRequest) XXX_Unmarshal added in v0.7.0

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

type QueryLastUnbondingHeightResponse added in v0.7.0

type QueryLastUnbondingHeightResponse struct {
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

QueryLastUnbondingHeightResponse

func (*QueryLastUnbondingHeightResponse) Descriptor added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) GetHeight added in v0.7.0

func (*QueryLastUnbondingHeightResponse) Marshal added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) MarshalTo added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) ProtoMessage added in v0.7.0

func (*QueryLastUnbondingHeightResponse) ProtoMessage()

func (*QueryLastUnbondingHeightResponse) Reset added in v0.7.0

func (*QueryLastUnbondingHeightResponse) Size added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) String added in v0.7.0

func (*QueryLastUnbondingHeightResponse) Unmarshal added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLastUnbondingHeightResponse) XXX_DiscardUnknown()

func (*QueryLastUnbondingHeightResponse) XXX_Marshal added in v0.7.0

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

func (*QueryLastUnbondingHeightResponse) XXX_Merge added in v0.7.0

func (*QueryLastUnbondingHeightResponse) XXX_Size added in v0.7.0

func (m *QueryLastUnbondingHeightResponse) XXX_Size() int

func (*QueryLastUnbondingHeightResponse) XXX_Unmarshal added in v0.7.0

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

type QueryLastValsetRequestBeforeNonceRequest added in v0.7.0

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

QueryLastValsetRequestBeforeNonceRequest last Valset request before universal nonce request

func (*QueryLastValsetRequestBeforeNonceRequest) Descriptor added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceRequest) GetNonce added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) Marshal added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceRequest) MarshalTo added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceRequest) ProtoMessage added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) Reset added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) Size added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) String added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) Unmarshal added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLastValsetRequestBeforeNonceRequest) XXX_DiscardUnknown()

func (*QueryLastValsetRequestBeforeNonceRequest) XXX_Marshal added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceRequest) XXX_Merge added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) XXX_Size added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceRequest) XXX_Unmarshal added in v0.7.0

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

type QueryLastValsetRequestBeforeNonceResponse added in v0.7.0

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

QueryLastValsetRequestBeforeNonceResponse last Valset request before height response

func (*QueryLastValsetRequestBeforeNonceResponse) Descriptor added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceResponse) GetValset added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) Marshal added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceResponse) MarshalTo added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceResponse) ProtoMessage added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) Reset added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) Size added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) String added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) Unmarshal added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLastValsetRequestBeforeNonceResponse) XXX_DiscardUnknown()

func (*QueryLastValsetRequestBeforeNonceResponse) XXX_Marshal added in v0.7.0

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

func (*QueryLastValsetRequestBeforeNonceResponse) XXX_Merge added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) XXX_Size added in v0.7.0

func (*QueryLastValsetRequestBeforeNonceResponse) XXX_Unmarshal added in v0.7.0

type QueryLatestAttestationNonceRequest added in v0.7.0

type QueryLatestAttestationNonceRequest struct {
}

QueryLatestAttestationNonceRequest latest attestation nonce request

func (*QueryLatestAttestationNonceRequest) Descriptor added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) Marshal added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) MarshalTo added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) ProtoMessage added in v0.7.0

func (*QueryLatestAttestationNonceRequest) ProtoMessage()

func (*QueryLatestAttestationNonceRequest) Reset added in v0.7.0

func (*QueryLatestAttestationNonceRequest) Size added in v0.7.0

func (*QueryLatestAttestationNonceRequest) String added in v0.7.0

func (*QueryLatestAttestationNonceRequest) Unmarshal added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLatestAttestationNonceRequest) XXX_DiscardUnknown()

func (*QueryLatestAttestationNonceRequest) XXX_Marshal added in v0.7.0

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

func (*QueryLatestAttestationNonceRequest) XXX_Merge added in v0.7.0

func (*QueryLatestAttestationNonceRequest) XXX_Size added in v0.7.0

func (*QueryLatestAttestationNonceRequest) XXX_Unmarshal added in v0.7.0

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

type QueryLatestAttestationNonceResponse added in v0.7.0

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

QueryLatestAttestationNonceResponse latest attestation nonce response

func (*QueryLatestAttestationNonceResponse) Descriptor added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) GetNonce added in v0.7.0

func (*QueryLatestAttestationNonceResponse) Marshal added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) MarshalTo added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) ProtoMessage added in v0.7.0

func (*QueryLatestAttestationNonceResponse) ProtoMessage()

func (*QueryLatestAttestationNonceResponse) Reset added in v0.7.0

func (*QueryLatestAttestationNonceResponse) Size added in v0.7.0

func (*QueryLatestAttestationNonceResponse) String added in v0.7.0

func (*QueryLatestAttestationNonceResponse) Unmarshal added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) XXX_DiscardUnknown added in v0.7.0

func (m *QueryLatestAttestationNonceResponse) XXX_DiscardUnknown()

func (*QueryLatestAttestationNonceResponse) XXX_Marshal added in v0.7.0

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

func (*QueryLatestAttestationNonceResponse) XXX_Merge added in v0.7.0

func (*QueryLatestAttestationNonceResponse) XXX_Size added in v0.7.0

func (*QueryLatestAttestationNonceResponse) XXX_Unmarshal added in v0.7.0

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

type QueryParamsRequest added in v0.7.0

type QueryParamsRequest struct {
}

QueryParamsRequest

func (*QueryParamsRequest) Descriptor added in v0.7.0

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

func (*QueryParamsRequest) Marshal added in v0.7.0

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

func (*QueryParamsRequest) MarshalTo added in v0.7.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryParamsRequest) ProtoMessage added in v0.7.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.7.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.7.0

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

func (*QueryParamsRequest) String added in v0.7.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.7.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.7.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.7.0

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

func (*QueryParamsRequest) XXX_Merge added in v0.7.0

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

func (*QueryParamsRequest) XXX_Size added in v0.7.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.7.0

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

type QueryParamsResponse added in v0.7.0

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse

func (*QueryParamsResponse) Descriptor added in v0.7.0

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

func (*QueryParamsResponse) GetParams added in v0.7.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.7.0

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

func (*QueryParamsResponse) MarshalTo added in v0.7.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*QueryParamsResponse) ProtoMessage added in v0.7.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.7.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.7.0

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

func (*QueryParamsResponse) String added in v0.7.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.7.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.7.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.7.0

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

func (*QueryParamsResponse) XXX_Merge added in v0.7.0

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

func (*QueryParamsResponse) XXX_Size added in v0.7.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.7.0

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

type QueryServer

type QueryServer interface {
	// Params queries the current parameters for the qgb module
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// AttestationRequestByNonce queries attestation request by nonce.
	// Returns nil if not found.
	AttestationRequestByNonce(context.Context, *QueryAttestationRequestByNonceRequest) (*QueryAttestationRequestByNonceResponse, error)
	// LatestAttestationNonce queries latest attestation nonce.
	LatestAttestationNonce(context.Context, *QueryLatestAttestationNonceRequest) (*QueryLatestAttestationNonceResponse, error)
	// LastUnbondingHeight returns the last unbonding height
	LastUnbondingHeight(context.Context, *QueryLastUnbondingHeightRequest) (*QueryLastUnbondingHeightResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) DataCommitmentConfirm

func (*UnimplementedMsgServer) ValsetConfirm

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AttestationRequestByNonce added in v0.7.0

func (*UnimplementedQueryServer) LastUnbondingHeight added in v0.7.0

func (*UnimplementedQueryServer) LatestAttestationNonce added in v0.7.0

func (*UnimplementedQueryServer) Params added in v0.7.0

type Valset added in v0.7.0

type Valset struct {
	// Universal nonce defined under:
	// https://github.com/celestiaorg/celestia-app/pull/464
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// List of BridgeValidator containing the current validator set.
	Members []BridgeValidator `protobuf:"bytes,2,rep,name=members,proto3" json:"members"`
	// Current chain height
	Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

Valset is the EVM Bridge Multsig Set, each qgb validator also maintains an ETH key to sign messages, these are used to check signatures on ETH because of the significant gas savings

func NewValset added in v0.7.0

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

NewValset returns a new valset.

func (*Valset) Descriptor added in v0.7.0

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

func (*Valset) GetHeight added in v0.7.0

func (m *Valset) GetHeight() uint64

func (*Valset) GetMembers added in v0.7.0

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

func (*Valset) GetNonce added in v0.7.0

func (m *Valset) GetNonce() uint64

func (*Valset) Hash added in v0.7.0

func (v *Valset) Hash() (ethcmn.Hash, error)

Hash mimics the 'computeValsetHash' function used by the qgb contracts by using a Valset to compute the hash of the abi encoded validator set.

func (*Valset) Marshal added in v0.7.0

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

func (*Valset) MarshalTo added in v0.7.0

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

func (*Valset) MarshalToSizedBuffer added in v0.7.0

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

func (*Valset) ProtoMessage added in v0.7.0

func (*Valset) ProtoMessage()

func (*Valset) Reset added in v0.7.0

func (m *Valset) Reset()

func (*Valset) SignBytes added in v0.7.0

func (v *Valset) SignBytes(bridgeID ethcmn.Hash) (ethcmn.Hash, error)

SignBytes produces the bytes that celestia validators are required to sign over when the validator set changes.

func (*Valset) Size added in v0.7.0

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

func (*Valset) String added in v0.7.0

func (m *Valset) String() string

func (*Valset) TwoThirdsThreshold added in v0.7.0

func (v *Valset) TwoThirdsThreshold() uint64

func (Valset) Type added in v0.7.0

func (v Valset) Type() AttestationType

func (*Valset) Unmarshal added in v0.7.0

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

func (*Valset) XXX_DiscardUnknown added in v0.7.0

func (m *Valset) XXX_DiscardUnknown()

func (*Valset) XXX_Marshal added in v0.7.0

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

func (*Valset) XXX_Merge added in v0.7.0

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

func (*Valset) XXX_Size added in v0.7.0

func (m *Valset) XXX_Size() int

func (*Valset) XXX_Unmarshal added in v0.7.0

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

Jump to

Keyboard shortcuts

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