types

package
v0.0.0-...-0ac33a6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the name of module.
	ModuleName = "ibcmodule"

	// PortID defines the port ID that module module binds to.
	PortID = ModuleName

	// Version defines the current version the IBC module supports
	Version = ModuleName + "-1"

	StoreKey = ModuleName

	EventTypePacket = "example_data_packet"
)

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 (
	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 (
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ErrInvalidGenesisState = sdkerrors.Register(ModuleName, 1, "invalid genesis state")
)

Functions

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)

Types

type Acknowledgement

type Acknowledgement struct {
	// response
	//
	// Types that are valid to be assigned to Response:
	//
	//	*Acknowledgement_Result
	//	*Acknowledgement_Error
	Response isAcknowledgement_Response `protobuf_oneof:"response"`
}

Acknowledgement

func (*Acknowledgement) Descriptor

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

func (*Acknowledgement) GetError

func (m *Acknowledgement) GetError() string

func (*Acknowledgement) GetResponse

func (m *Acknowledgement) GetResponse() isAcknowledgement_Response

func (*Acknowledgement) GetResult

func (m *Acknowledgement) GetResult() []byte

func (*Acknowledgement) Marshal

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

func (*Acknowledgement) MarshalTo

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

func (*Acknowledgement) MarshalToSizedBuffer

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

func (*Acknowledgement) ProtoMessage

func (*Acknowledgement) ProtoMessage()

func (*Acknowledgement) Reset

func (m *Acknowledgement) Reset()

func (*Acknowledgement) Size

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

func (*Acknowledgement) String

func (m *Acknowledgement) String() string

func (*Acknowledgement) Unmarshal

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

func (*Acknowledgement) XXX_DiscardUnknown

func (m *Acknowledgement) XXX_DiscardUnknown()

func (*Acknowledgement) XXX_Marshal

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

func (*Acknowledgement) XXX_Merge

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

func (*Acknowledgement) XXX_OneofWrappers

func (*Acknowledgement) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Acknowledgement) XXX_Size

func (m *Acknowledgement) XXX_Size() int

func (*Acknowledgement) XXX_Unmarshal

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

type Acknowledgement_Error

type Acknowledgement_Error struct {
	Error string `protobuf:"bytes,22,opt,name=error,proto3,oneof" json:"error,omitempty"`
}

func (*Acknowledgement_Error) MarshalTo

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

func (*Acknowledgement_Error) MarshalToSizedBuffer

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

func (*Acknowledgement_Error) Size

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

type Acknowledgement_Result

type Acknowledgement_Result struct {
	Result []byte `protobuf:"bytes,21,opt,name=result,proto3,oneof" json:"result,omitempty"`
}

func (*Acknowledgement_Result) MarshalTo

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

func (*Acknowledgement_Result) MarshalToSizedBuffer

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

func (*Acknowledgement_Result) Size

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

type ExamplePacketData

type ExamplePacketData struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	SomeData string `protobuf:"bytes,2,opt,name=some_data,json=someData,proto3" json:"some_data,omitempty"`
}

ExamplePacketData

func (*ExamplePacketData) Descriptor

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

func (ExamplePacketData) GetBytes

func (epd ExamplePacketData) GetBytes() ([]byte, error)

GetBytes returns the sorted JSON encoding of the packet data.

func (*ExamplePacketData) GetPacketSender

func (epd *ExamplePacketData) GetPacketSender(sourcePortID string) string

GetPacketSender implements exported.PacketData.

func (*ExamplePacketData) GetSender

func (m *ExamplePacketData) GetSender() string

func (*ExamplePacketData) GetSomeData

func (m *ExamplePacketData) GetSomeData() string

func (*ExamplePacketData) Marshal

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

func (*ExamplePacketData) MarshalTo

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

func (*ExamplePacketData) MarshalToSizedBuffer

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

func (ExamplePacketData) MustGetBytes

func (epd ExamplePacketData) MustGetBytes() []byte

GetBytes must return the sorted JSON encoding of the packet data.

func (*ExamplePacketData) ProtoMessage

func (*ExamplePacketData) ProtoMessage()

func (*ExamplePacketData) Reset

func (m *ExamplePacketData) Reset()

func (*ExamplePacketData) Size

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

func (*ExamplePacketData) String

func (m *ExamplePacketData) String() string

func (*ExamplePacketData) Unmarshal

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

func (*ExamplePacketData) XXX_DiscardUnknown

func (m *ExamplePacketData) XXX_DiscardUnknown()

func (*ExamplePacketData) XXX_Marshal

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

func (*ExamplePacketData) XXX_Merge

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

func (*ExamplePacketData) XXX_Size

func (m *ExamplePacketData) XXX_Size() int

func (*ExamplePacketData) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
}

GenesisState defines the modules genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default module GenesisState.

func NewGenesisState

func NewGenesisState() *GenesisState

NewGenesisState initializes and returns a new GenesisState.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() 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 validation of the GenesisState.

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 {
	// SendExampleTx defines a rpc handler for MsgSendExampleTx.
	SendExampleTx(ctx context.Context, in *MsgSendExampleTx, opts ...grpc.CallOption) (*MsgSendExampleTxResponse, 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 MsgSendExampleTx

type MsgSendExampleTx struct {
	Sender           string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	SourcePort       string `protobuf:"bytes,2,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"`
	SourceChannel    string `protobuf:"bytes,3,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
	TimeoutTimestamp uint64 `protobuf:"varint,4,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"`
	SomeData         string `protobuf:"bytes,5,opt,name=some_data,json=someData,proto3" json:"some_data,omitempty"`
}

MsgSendExampleTx defines the payload for Msg/SendExampleTx

func (*MsgSendExampleTx) Descriptor

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

func (*MsgSendExampleTx) Marshal

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

func (*MsgSendExampleTx) MarshalTo

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

func (*MsgSendExampleTx) MarshalToSizedBuffer

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

func (*MsgSendExampleTx) ProtoMessage

func (*MsgSendExampleTx) ProtoMessage()

func (*MsgSendExampleTx) Reset

func (m *MsgSendExampleTx) Reset()

func (*MsgSendExampleTx) Size

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

func (*MsgSendExampleTx) String

func (m *MsgSendExampleTx) String() string

func (*MsgSendExampleTx) Unmarshal

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

func (*MsgSendExampleTx) XXX_DiscardUnknown

func (m *MsgSendExampleTx) XXX_DiscardUnknown()

func (*MsgSendExampleTx) XXX_Marshal

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

func (*MsgSendExampleTx) XXX_Merge

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

func (*MsgSendExampleTx) XXX_Size

func (m *MsgSendExampleTx) XXX_Size() int

func (*MsgSendExampleTx) XXX_Unmarshal

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

type MsgSendExampleTxResponse

type MsgSendExampleTxResponse struct {
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

MsgSendExampleTxResponse defines the response.

func (*MsgSendExampleTxResponse) Descriptor

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

func (*MsgSendExampleTxResponse) Marshal

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

func (*MsgSendExampleTxResponse) MarshalTo

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

func (*MsgSendExampleTxResponse) MarshalToSizedBuffer

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

func (*MsgSendExampleTxResponse) ProtoMessage

func (*MsgSendExampleTxResponse) ProtoMessage()

func (*MsgSendExampleTxResponse) Reset

func (m *MsgSendExampleTxResponse) Reset()

func (*MsgSendExampleTxResponse) Size

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

func (*MsgSendExampleTxResponse) String

func (m *MsgSendExampleTxResponse) String() string

func (*MsgSendExampleTxResponse) Unmarshal

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

func (*MsgSendExampleTxResponse) XXX_DiscardUnknown

func (m *MsgSendExampleTxResponse) XXX_DiscardUnknown()

func (*MsgSendExampleTxResponse) XXX_Marshal

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

func (*MsgSendExampleTxResponse) XXX_Merge

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

func (*MsgSendExampleTxResponse) XXX_Size

func (m *MsgSendExampleTxResponse) XXX_Size() int

func (*MsgSendExampleTxResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// SendExampleTx defines a rpc handler for MsgSendExampleTx.
	SendExampleTx(context.Context, *MsgSendExampleTx) (*MsgSendExampleTxResponse, error)
}

MsgServer is the server API for Msg service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SendExampleTx

Jump to

Keyboard shortcuts

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