types

package
v8.0.0-...-5ea88d2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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_capability"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	ProposalTypeUpdateHrpIbcChannel = "UpdateHrpIbcChannel"
)

Variables

View Source
var (
	ErrInvalidHRP                 = sdkerrors.Register(ModuleName, 11, "Invalid HRP")
	ErrInvalidIBCData             = sdkerrors.Register(ModuleName, 12, "Invalid IBC Data")
	ErrRecordNotFound             = sdkerrors.Register(ModuleName, 13, "No record found for requested HRP")
	ErrNoNativeHrp                = sdkerrors.Register(ModuleName, 14, "No native prefix was set")
	ErrInvalidOffsetHeightTimeout = sdkerrors.Register(ModuleName, 15, "At least one of offset height or offset timeout should be set")
)

x/bech32ibc module sentinel errors ibc-go registers error codes under 10

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 (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	NativeHrpKey            = KeyPrefix("native_hrp")
	HrpIBCRecordStorePrefix = KeyPrefix("hrp_ibc_record")
)
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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NewUpdateHrpIBCRecordProposal

func NewUpdateHrpIBCRecordProposal(title, description, hrp, sourceChannel string, toHeightOffset uint64, toTimeOffset time.Duration) govtypes.Content

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateHrp

func ValidateHrp(hrp string) error

This code was copied from bech32 library https://github.com/enigmampc/btcutil/blob/master/bech32/bech32.go#L26

Types

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (_ channeltypes.Channel, found bool)
}

ChannelKeeper defines the expected IBC channel keeper

type GenesisState

type GenesisState struct {
	NativeHRP     string         `protobuf:"bytes,1,opt,name=nativeHRP,proto3" json:"nativeHRP,omitempty" yaml:"native_hrp"`
	HrpIBCRecords []HrpIbcRecord `protobuf:"bytes,2,rep,name=hrpIBCRecords,proto3" json:"hrpIBCRecords" yaml:"hrp_ibc_records"`
}

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetHrpIBCRecords

func (m *GenesisState) GetHrpIBCRecords() []HrpIbcRecord

func (*GenesisState) GetNativeHRP

func (m *GenesisState) GetNativeHRP() string

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 HrpIbcRecord

type HrpIbcRecord struct {
	// The bech32 human readable prefix that serves as the key
	Hrp string `protobuf:"bytes,1,opt,name=hrp,proto3" json:"hrp,omitempty" yaml:"hrp"`
	// the channel by which the packet will be sent
	SourceChannel     string        `protobuf:"bytes,2,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"`
	IcsToHeightOffset uint64        `protobuf:"varint,3,opt,name=ics_to_height_offset,json=icsToHeightOffset,proto3" json:"ics_to_height_offset,omitempty"`
	IcsToTimeOffset   time.Duration `` /* 148-byte string literal not displayed */
}

An HrpIbcRecord maps a bech32 human-readable prefix to an IBC source channel

func (*HrpIbcRecord) Descriptor

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

func (*HrpIbcRecord) Equal

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

func (*HrpIbcRecord) GetHrp

func (m *HrpIbcRecord) GetHrp() string

func (*HrpIbcRecord) GetIcsToHeightOffset

func (m *HrpIbcRecord) GetIcsToHeightOffset() uint64

func (*HrpIbcRecord) GetIcsToTimeOffset

func (m *HrpIbcRecord) GetIcsToTimeOffset() time.Duration

func (*HrpIbcRecord) GetSourceChannel

func (m *HrpIbcRecord) GetSourceChannel() string

func (*HrpIbcRecord) Marshal

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

func (*HrpIbcRecord) MarshalTo

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

func (*HrpIbcRecord) MarshalToSizedBuffer

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

func (*HrpIbcRecord) ProtoMessage

func (*HrpIbcRecord) ProtoMessage()

func (*HrpIbcRecord) Reset

func (m *HrpIbcRecord) Reset()

func (*HrpIbcRecord) Size

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

func (*HrpIbcRecord) String

func (m *HrpIbcRecord) String() string

func (*HrpIbcRecord) Unmarshal

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

func (*HrpIbcRecord) XXX_DiscardUnknown

func (m *HrpIbcRecord) XXX_DiscardUnknown()

func (*HrpIbcRecord) XXX_Marshal

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

func (*HrpIbcRecord) XXX_Merge

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

func (*HrpIbcRecord) XXX_Size

func (m *HrpIbcRecord) XXX_Size() int

func (*HrpIbcRecord) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// HrpIbcRecords returns to full list of records
	HrpIbcRecords(ctx context.Context, in *QueryHrpIbcRecordsRequest, opts ...grpc.CallOption) (*QueryHrpIbcRecordsResponse, error)
	// HrpIbcRecord returns the record for a requested HRP
	HrpIbcRecord(ctx context.Context, in *QueryHrpIbcRecordRequest, opts ...grpc.CallOption) (*QueryHrpIbcRecordResponse, error)
	// NativeHrp returns the chain's native HRP
	NativeHrp(ctx context.Context, in *QueryNativeHrpRequest, opts ...grpc.CallOption) (*QueryNativeHrpResponse, 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 QueryHrpIbcRecordRequest

type QueryHrpIbcRecordRequest struct {
	Hrp string `protobuf:"bytes,1,opt,name=hrp,proto3" json:"hrp,omitempty" yaml:"hrp"`
}

func (*QueryHrpIbcRecordRequest) Descriptor

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

func (*QueryHrpIbcRecordRequest) GetHrp

func (m *QueryHrpIbcRecordRequest) GetHrp() string

func (*QueryHrpIbcRecordRequest) Marshal

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

func (*QueryHrpIbcRecordRequest) MarshalTo

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

func (*QueryHrpIbcRecordRequest) MarshalToSizedBuffer

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

func (*QueryHrpIbcRecordRequest) ProtoMessage

func (*QueryHrpIbcRecordRequest) ProtoMessage()

func (*QueryHrpIbcRecordRequest) Reset

func (m *QueryHrpIbcRecordRequest) Reset()

func (*QueryHrpIbcRecordRequest) Size

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

func (*QueryHrpIbcRecordRequest) String

func (m *QueryHrpIbcRecordRequest) String() string

func (*QueryHrpIbcRecordRequest) Unmarshal

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

func (*QueryHrpIbcRecordRequest) XXX_DiscardUnknown

func (m *QueryHrpIbcRecordRequest) XXX_DiscardUnknown()

func (*QueryHrpIbcRecordRequest) XXX_Marshal

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

func (*QueryHrpIbcRecordRequest) XXX_Merge

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

func (*QueryHrpIbcRecordRequest) XXX_Size

func (m *QueryHrpIbcRecordRequest) XXX_Size() int

func (*QueryHrpIbcRecordRequest) XXX_Unmarshal

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

type QueryHrpIbcRecordResponse

type QueryHrpIbcRecordResponse struct {
	HrpIbcRecord HrpIbcRecord `protobuf:"bytes,1,opt,name=hrp_ibc_record,json=hrpIbcRecord,proto3" json:"hrp_ibc_record" yaml:"hrp_ibc_record"`
}

func (*QueryHrpIbcRecordResponse) Descriptor

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

func (*QueryHrpIbcRecordResponse) GetHrpIbcRecord

func (m *QueryHrpIbcRecordResponse) GetHrpIbcRecord() HrpIbcRecord

func (*QueryHrpIbcRecordResponse) Marshal

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

func (*QueryHrpIbcRecordResponse) MarshalTo

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

func (*QueryHrpIbcRecordResponse) MarshalToSizedBuffer

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

func (*QueryHrpIbcRecordResponse) ProtoMessage

func (*QueryHrpIbcRecordResponse) ProtoMessage()

func (*QueryHrpIbcRecordResponse) Reset

func (m *QueryHrpIbcRecordResponse) Reset()

func (*QueryHrpIbcRecordResponse) Size

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

func (*QueryHrpIbcRecordResponse) String

func (m *QueryHrpIbcRecordResponse) String() string

func (*QueryHrpIbcRecordResponse) Unmarshal

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

func (*QueryHrpIbcRecordResponse) XXX_DiscardUnknown

func (m *QueryHrpIbcRecordResponse) XXX_DiscardUnknown()

func (*QueryHrpIbcRecordResponse) XXX_Marshal

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

func (*QueryHrpIbcRecordResponse) XXX_Merge

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

func (*QueryHrpIbcRecordResponse) XXX_Size

func (m *QueryHrpIbcRecordResponse) XXX_Size() int

func (*QueryHrpIbcRecordResponse) XXX_Unmarshal

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

type QueryHrpIbcRecordsRequest

type QueryHrpIbcRecordsRequest struct {
}

func (*QueryHrpIbcRecordsRequest) Descriptor

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

func (*QueryHrpIbcRecordsRequest) Marshal

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

func (*QueryHrpIbcRecordsRequest) MarshalTo

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

func (*QueryHrpIbcRecordsRequest) MarshalToSizedBuffer

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

func (*QueryHrpIbcRecordsRequest) ProtoMessage

func (*QueryHrpIbcRecordsRequest) ProtoMessage()

func (*QueryHrpIbcRecordsRequest) Reset

func (m *QueryHrpIbcRecordsRequest) Reset()

func (*QueryHrpIbcRecordsRequest) Size

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

func (*QueryHrpIbcRecordsRequest) String

func (m *QueryHrpIbcRecordsRequest) String() string

func (*QueryHrpIbcRecordsRequest) Unmarshal

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

func (*QueryHrpIbcRecordsRequest) XXX_DiscardUnknown

func (m *QueryHrpIbcRecordsRequest) XXX_DiscardUnknown()

func (*QueryHrpIbcRecordsRequest) XXX_Marshal

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

func (*QueryHrpIbcRecordsRequest) XXX_Merge

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

func (*QueryHrpIbcRecordsRequest) XXX_Size

func (m *QueryHrpIbcRecordsRequest) XXX_Size() int

func (*QueryHrpIbcRecordsRequest) XXX_Unmarshal

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

type QueryHrpIbcRecordsResponse

type QueryHrpIbcRecordsResponse struct {
	HrpIbcRecords []HrpIbcRecord `protobuf:"bytes,1,rep,name=hrp_ibc_records,json=hrpIbcRecords,proto3" json:"hrp_ibc_records" yaml:"hrp_ibc_records"`
}

func (*QueryHrpIbcRecordsResponse) Descriptor

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

func (*QueryHrpIbcRecordsResponse) GetHrpIbcRecords

func (m *QueryHrpIbcRecordsResponse) GetHrpIbcRecords() []HrpIbcRecord

func (*QueryHrpIbcRecordsResponse) Marshal

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

func (*QueryHrpIbcRecordsResponse) MarshalTo

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

func (*QueryHrpIbcRecordsResponse) MarshalToSizedBuffer

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

func (*QueryHrpIbcRecordsResponse) ProtoMessage

func (*QueryHrpIbcRecordsResponse) ProtoMessage()

func (*QueryHrpIbcRecordsResponse) Reset

func (m *QueryHrpIbcRecordsResponse) Reset()

func (*QueryHrpIbcRecordsResponse) Size

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

func (*QueryHrpIbcRecordsResponse) String

func (m *QueryHrpIbcRecordsResponse) String() string

func (*QueryHrpIbcRecordsResponse) Unmarshal

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

func (*QueryHrpIbcRecordsResponse) XXX_DiscardUnknown

func (m *QueryHrpIbcRecordsResponse) XXX_DiscardUnknown()

func (*QueryHrpIbcRecordsResponse) XXX_Marshal

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

func (*QueryHrpIbcRecordsResponse) XXX_Merge

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

func (*QueryHrpIbcRecordsResponse) XXX_Size

func (m *QueryHrpIbcRecordsResponse) XXX_Size() int

func (*QueryHrpIbcRecordsResponse) XXX_Unmarshal

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

type QueryNativeHrpRequest

type QueryNativeHrpRequest struct {
}

func (*QueryNativeHrpRequest) Descriptor

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

func (*QueryNativeHrpRequest) Marshal

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

func (*QueryNativeHrpRequest) MarshalTo

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

func (*QueryNativeHrpRequest) MarshalToSizedBuffer

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

func (*QueryNativeHrpRequest) ProtoMessage

func (*QueryNativeHrpRequest) ProtoMessage()

func (*QueryNativeHrpRequest) Reset

func (m *QueryNativeHrpRequest) Reset()

func (*QueryNativeHrpRequest) Size

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

func (*QueryNativeHrpRequest) String

func (m *QueryNativeHrpRequest) String() string

func (*QueryNativeHrpRequest) Unmarshal

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

func (*QueryNativeHrpRequest) XXX_DiscardUnknown

func (m *QueryNativeHrpRequest) XXX_DiscardUnknown()

func (*QueryNativeHrpRequest) XXX_Marshal

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

func (*QueryNativeHrpRequest) XXX_Merge

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

func (*QueryNativeHrpRequest) XXX_Size

func (m *QueryNativeHrpRequest) XXX_Size() int

func (*QueryNativeHrpRequest) XXX_Unmarshal

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

type QueryNativeHrpResponse

type QueryNativeHrpResponse struct {
	NativeHrp string `protobuf:"bytes,1,opt,name=native_hrp,json=nativeHrp,proto3" json:"native_hrp,omitempty" yaml:"native_hrp"`
}

func (*QueryNativeHrpResponse) Descriptor

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

func (*QueryNativeHrpResponse) GetNativeHrp

func (m *QueryNativeHrpResponse) GetNativeHrp() string

func (*QueryNativeHrpResponse) Marshal

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

func (*QueryNativeHrpResponse) MarshalTo

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

func (*QueryNativeHrpResponse) MarshalToSizedBuffer

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

func (*QueryNativeHrpResponse) ProtoMessage

func (*QueryNativeHrpResponse) ProtoMessage()

func (*QueryNativeHrpResponse) Reset

func (m *QueryNativeHrpResponse) Reset()

func (*QueryNativeHrpResponse) Size

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

func (*QueryNativeHrpResponse) String

func (m *QueryNativeHrpResponse) String() string

func (*QueryNativeHrpResponse) Unmarshal

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

func (*QueryNativeHrpResponse) XXX_DiscardUnknown

func (m *QueryNativeHrpResponse) XXX_DiscardUnknown()

func (*QueryNativeHrpResponse) XXX_Marshal

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

func (*QueryNativeHrpResponse) XXX_Merge

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

func (*QueryNativeHrpResponse) XXX_Size

func (m *QueryNativeHrpResponse) XXX_Size() int

func (*QueryNativeHrpResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// HrpIbcRecords returns to full list of records
	HrpIbcRecords(context.Context, *QueryHrpIbcRecordsRequest) (*QueryHrpIbcRecordsResponse, error)
	// HrpIbcRecord returns the record for a requested HRP
	HrpIbcRecord(context.Context, *QueryHrpIbcRecordRequest) (*QueryHrpIbcRecordResponse, error)
	// NativeHrp returns the chain's native HRP
	NativeHrp(context.Context, *QueryNativeHrpRequest) (*QueryNativeHrpResponse, error)
}

QueryServer is the server API for Query service.

type TransferKeeper

type TransferKeeper interface {
	// GetPort returns the portID for the transfer module. Used in ExportGenesis
	GetPort(ctx sdk.Context) string
}

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) HrpIbcRecord

func (*UnimplementedQueryServer) HrpIbcRecords

func (*UnimplementedQueryServer) NativeHrp

type UpdateHrpIbcChannelProposal

type UpdateHrpIbcChannelProposal struct {
	Title             string        `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description       string        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Hrp               string        `protobuf:"bytes,3,opt,name=hrp,proto3" json:"hrp,omitempty" yaml:"hrp"`
	SourceChannel     string        `protobuf:"bytes,4,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"`
	IcsToHeightOffset uint64        `protobuf:"varint,5,opt,name=ics_to_height_offset,json=icsToHeightOffset,proto3" json:"ics_to_height_offset,omitempty"`
	IcsToTimeOffset   time.Duration `` /* 140-byte string literal not displayed */
}

UpdateHrpIBCRecordProposal is a gov Content type for adding a new record between a bech32 prefix and an IBC (port, channel). It can be used to add a new record to the set. It can also be used to update the IBC channel to associate with a specific denom. If channel is set to "", it will remove the record from the set.

func (*UpdateHrpIbcChannelProposal) Descriptor

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

func (*UpdateHrpIbcChannelProposal) Equal

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

func (*UpdateHrpIbcChannelProposal) GetDescription

func (p *UpdateHrpIbcChannelProposal) GetDescription() string

func (*UpdateHrpIbcChannelProposal) GetTitle

func (p *UpdateHrpIbcChannelProposal) GetTitle() string

func (*UpdateHrpIbcChannelProposal) Marshal

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

func (*UpdateHrpIbcChannelProposal) MarshalTo

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

func (*UpdateHrpIbcChannelProposal) MarshalToSizedBuffer

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

func (*UpdateHrpIbcChannelProposal) ProposalRoute

func (p *UpdateHrpIbcChannelProposal) ProposalRoute() string

func (*UpdateHrpIbcChannelProposal) ProposalType

func (p *UpdateHrpIbcChannelProposal) ProposalType() string

func (*UpdateHrpIbcChannelProposal) ProtoMessage

func (*UpdateHrpIbcChannelProposal) ProtoMessage()

func (*UpdateHrpIbcChannelProposal) Reset

func (m *UpdateHrpIbcChannelProposal) Reset()

func (*UpdateHrpIbcChannelProposal) Size

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

func (UpdateHrpIbcChannelProposal) String

func (*UpdateHrpIbcChannelProposal) Unmarshal

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

func (*UpdateHrpIbcChannelProposal) ValidateBasic

func (p *UpdateHrpIbcChannelProposal) ValidateBasic() error

func (*UpdateHrpIbcChannelProposal) XXX_DiscardUnknown

func (m *UpdateHrpIbcChannelProposal) XXX_DiscardUnknown()

func (*UpdateHrpIbcChannelProposal) XXX_Marshal

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

func (*UpdateHrpIbcChannelProposal) XXX_Merge

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

func (*UpdateHrpIbcChannelProposal) XXX_Size

func (m *UpdateHrpIbcChannelProposal) XXX_Size() int

func (*UpdateHrpIbcChannelProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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