types

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName = "utxverifier"

	StoreKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

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 (
	// ParamsKey saves the current module params.
	ParamsKey = collections.NewPrefix(0)

	// ParamsName is the name of the params collection.
	ParamsName = "params"

	// VerifiedInboundTxsKey saves the verified transactions collection prefix
	VerifiedInboundTxsKeyPrefix = collections.NewPrefix(1)

	// VerifiedInboundTxsName is the name of the verified transactions collection.
	VerifiedInboundTxsName = "verified_inbound_txs"
)
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 (
	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 (
	AminoCdc = codec.NewAminoCodec(amino)
)

Functions

func GetVerifiedInboundTxStorageKey

func GetVerifiedInboundTxStorageKey(chain, txHash string) string

GetVerifiedTxStorageKey returns the storage key for a verified transaction hash using the format "chain:txHash".

func NormalizeTxHash

func NormalizeTxHash(txHash string, vmType uregistrytypes.VmType) (string, error)

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

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

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)

Types

type EVMFundsAddedEventData

type EVMFundsAddedEventData struct {
	AmountInUSD *big.Int
	Decimals    uint32
	PayloadHash string
}

EVMFundsAddedEventData represents decoded data from the `FundsAdded` EVM event.

type GenesisState

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

GenesisState defines the module genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

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 MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func NewMsgUpdateParams

func NewMsgUpdateParams(
	sender sdk.Address,
	someValue bool,
) *MsgUpdateParams

NewMsgUpdateParams creates new instance of MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes

func (msg MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

Route returns the name of the module

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

Type returns the action

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) Validate

func (msg *MsgUpdateParams) Validate() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	SomeValue bool `protobuf:"varint,2,opt,name=some_value,json=someValue,proto3" json:"some_value,omitempty"`
}

Params defines the set of module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default module parameters.

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetSomeValue

func (m *Params) GetSomeValue() bool

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

Stringer method for Params.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate does the sanity check on the 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 QueryClient

type QueryClient interface {
	// Params queries all parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// VerifiedTxHash queries if a transaction hash is verified on a specific chain.
	VerifiedTxHash(ctx context.Context, in *QueryVerifiedTxHashRequest, opts ...grpc.CallOption) (*QueryVerifiedTxHashResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries all parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// VerifiedTxHash queries if a transaction hash is verified on a specific chain.
	VerifiedTxHash(context.Context, *QueryVerifiedTxHashRequest) (*QueryVerifiedTxHashResponse, error)
}

QueryServer is the server API for Query service.

type QueryVerifiedTxHashRequest

type QueryVerifiedTxHashRequest struct {
	// chain is the identifier of the chain to query.
	Chain string `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	// hash is the hash of the transaction to query.
	TxHash string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
}

QueryVerifiedTxHashRequest is the request type for querying if a transaction hash is verified.

func (*QueryVerifiedTxHashRequest) Descriptor

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

func (*QueryVerifiedTxHashRequest) GetChain

func (m *QueryVerifiedTxHashRequest) GetChain() string

func (*QueryVerifiedTxHashRequest) GetTxHash

func (m *QueryVerifiedTxHashRequest) GetTxHash() string

func (*QueryVerifiedTxHashRequest) Marshal

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

func (*QueryVerifiedTxHashRequest) MarshalTo

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

func (*QueryVerifiedTxHashRequest) MarshalToSizedBuffer

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

func (*QueryVerifiedTxHashRequest) ProtoMessage

func (*QueryVerifiedTxHashRequest) ProtoMessage()

func (*QueryVerifiedTxHashRequest) Reset

func (m *QueryVerifiedTxHashRequest) Reset()

func (*QueryVerifiedTxHashRequest) Size

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

func (*QueryVerifiedTxHashRequest) String

func (m *QueryVerifiedTxHashRequest) String() string

func (*QueryVerifiedTxHashRequest) Unmarshal

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

func (*QueryVerifiedTxHashRequest) XXX_DiscardUnknown

func (m *QueryVerifiedTxHashRequest) XXX_DiscardUnknown()

func (*QueryVerifiedTxHashRequest) XXX_Marshal

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

func (*QueryVerifiedTxHashRequest) XXX_Merge

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

func (*QueryVerifiedTxHashRequest) XXX_Size

func (m *QueryVerifiedTxHashRequest) XXX_Size() int

func (*QueryVerifiedTxHashRequest) XXX_Unmarshal

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

type QueryVerifiedTxHashResponse

type QueryVerifiedTxHashResponse struct {
	// metadata contains full details if the transaction hash is verified.
	Metadata *VerifiedTxMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// found indicates whether the tx was found in the store.
	Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
}

QueryVerifiedTxHashResponse is the response type for the Query/VerifiedTxHash RPC method.

func (*QueryVerifiedTxHashResponse) Descriptor

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

func (*QueryVerifiedTxHashResponse) GetFound

func (m *QueryVerifiedTxHashResponse) GetFound() bool

func (*QueryVerifiedTxHashResponse) GetMetadata

func (*QueryVerifiedTxHashResponse) Marshal

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

func (*QueryVerifiedTxHashResponse) MarshalTo

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

func (*QueryVerifiedTxHashResponse) MarshalToSizedBuffer

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

func (*QueryVerifiedTxHashResponse) ProtoMessage

func (*QueryVerifiedTxHashResponse) ProtoMessage()

func (*QueryVerifiedTxHashResponse) Reset

func (m *QueryVerifiedTxHashResponse) Reset()

func (*QueryVerifiedTxHashResponse) Size

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

func (*QueryVerifiedTxHashResponse) String

func (m *QueryVerifiedTxHashResponse) String() string

func (*QueryVerifiedTxHashResponse) Unmarshal

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

func (*QueryVerifiedTxHashResponse) XXX_DiscardUnknown

func (m *QueryVerifiedTxHashResponse) XXX_DiscardUnknown()

func (*QueryVerifiedTxHashResponse) XXX_Marshal

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

func (*QueryVerifiedTxHashResponse) XXX_Merge

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

func (*QueryVerifiedTxHashResponse) XXX_Size

func (m *QueryVerifiedTxHashResponse) XXX_Size() int

func (*QueryVerifiedTxHashResponse) XXX_Unmarshal

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

type SVMFundsAddedEventData

type SVMFundsAddedEventData struct {
	AmountInUSD *big.Int
	Decimals    uint32
	PayloadHash string // hex-encoded
}

SVMFundsAddedEventData represents decoded FundsAdded event from Solana

type USDValue

type USDValue struct {
	Amount   string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Decimals uint32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
}

func (*USDValue) Descriptor

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

func (*USDValue) GetAmount

func (m *USDValue) GetAmount() string

func (*USDValue) GetDecimals

func (m *USDValue) GetDecimals() uint32

func (*USDValue) Marshal

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

func (*USDValue) MarshalTo

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

func (*USDValue) MarshalToSizedBuffer

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

func (*USDValue) ProtoMessage

func (*USDValue) ProtoMessage()

func (*USDValue) Reset

func (m *USDValue) Reset()

func (*USDValue) Size

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

func (*USDValue) String

func (m *USDValue) String() string

func (*USDValue) Unmarshal

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

func (*USDValue) XXX_DiscardUnknown

func (m *USDValue) XXX_DiscardUnknown()

func (*USDValue) XXX_Marshal

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

func (*USDValue) XXX_Merge

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

func (*USDValue) XXX_Size

func (m *USDValue) XXX_Size() int

func (*USDValue) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) VerifiedTxHash

type UregistryKeeper

type UregistryKeeper interface {
	GetChainConfig(ctx context.Context, chain string) (types.ChainConfig, error)
}

UregistryKeeper defines the expected interface for the Uregistry module.

type VerifiedTxMetadata

type VerifiedTxMetadata struct {
	Minted        bool      `protobuf:"varint,1,opt,name=minted,proto3" json:"minted,omitempty"`
	PayloadHashes []string  `protobuf:"bytes,2,rep,name=payload_hashes,json=payloadHashes,proto3" json:"payload_hashes,omitempty"`
	UsdValue      *USDValue `protobuf:"bytes,3,opt,name=usd_value,json=usdValue,proto3" json:"usd_value,omitempty"`
	Sender        string    `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

VerifiedTxMetadata is a format to store verifiedTxs

func (*VerifiedTxMetadata) Descriptor

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

func (*VerifiedTxMetadata) GetMinted

func (m *VerifiedTxMetadata) GetMinted() bool

func (*VerifiedTxMetadata) GetPayloadHashes

func (m *VerifiedTxMetadata) GetPayloadHashes() []string

func (*VerifiedTxMetadata) GetSender

func (m *VerifiedTxMetadata) GetSender() string

func (*VerifiedTxMetadata) GetUsdValue

func (m *VerifiedTxMetadata) GetUsdValue() *USDValue

func (*VerifiedTxMetadata) Marshal

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

func (*VerifiedTxMetadata) MarshalTo

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

func (*VerifiedTxMetadata) MarshalToSizedBuffer

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

func (*VerifiedTxMetadata) ProtoMessage

func (*VerifiedTxMetadata) ProtoMessage()

func (*VerifiedTxMetadata) Reset

func (m *VerifiedTxMetadata) Reset()

func (*VerifiedTxMetadata) Size

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

func (*VerifiedTxMetadata) String

func (m *VerifiedTxMetadata) String() string

func (*VerifiedTxMetadata) Unmarshal

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

func (*VerifiedTxMetadata) XXX_DiscardUnknown

func (m *VerifiedTxMetadata) XXX_DiscardUnknown()

func (*VerifiedTxMetadata) XXX_Marshal

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

func (*VerifiedTxMetadata) XXX_Merge

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

func (*VerifiedTxMetadata) XXX_Size

func (m *VerifiedTxMetadata) XXX_Size() int

func (*VerifiedTxMetadata) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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