types

package
v0.0.0-...-77985df Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the OPB module
	ModuleName = "tibc"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the OPB module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the OPB module
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgCreateClient    = "create"
	TypeMsgUpgradeClient   = "upgrade"
	TypeMsgRegisterRelayer = "register"
	TypeMsgSetRoutingRules = "set-rules"
)

Variables

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

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type MsgClient

type MsgClient interface {
	CreateClient(ctx context.Context, in *MsgCreateClient, opts ...grpc.CallOption) (*MsgCreateClientResponse, error)
	UpgradeClient(ctx context.Context, in *MsgUpgradeClient, opts ...grpc.CallOption) (*MsgUpgradeClientResponse, error)
	RegisterRelayer(ctx context.Context, in *MsgRegisterRelayer, opts ...grpc.CallOption) (*MsgRegisterRelayerResponse, error)
	SetRoutingRules(ctx context.Context, in *MsgSetRoutingRules, opts ...grpc.CallOption) (*MsgSetRoutingRulesResponse, 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 MsgCreateClient

type MsgCreateClient struct {
	ChainName      string     `protobuf:"bytes,1,opt,name=chainName,proto3" json:"chainName,omitempty"`
	ClientState    *types.Any `protobuf:"bytes,2,opt,name=clientState,proto3" json:"clientState,omitempty"`
	ConsensusState *types.Any `protobuf:"bytes,3,opt,name=consensusState,proto3" json:"consensusState,omitempty"`
	Signer         string     `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgMint defines a message to mint the base native token.

func NewMsgCreateClient

func NewMsgCreateClient(chainName string, clientState exported.ClientState, consensusState exported.ConsensusState, signer sdk.AccAddress) (*MsgCreateClient, error)

func (*MsgCreateClient) Descriptor

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

func (*MsgCreateClient) Equal

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

func (MsgCreateClient) GetSigners

func (m MsgCreateClient) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgCreateClient) Marshal

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

func (*MsgCreateClient) MarshalTo

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

func (*MsgCreateClient) MarshalToSizedBuffer

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

func (*MsgCreateClient) ProtoMessage

func (*MsgCreateClient) ProtoMessage()

func (*MsgCreateClient) Reset

func (m *MsgCreateClient) Reset()

func (MsgCreateClient) Route

func (m MsgCreateClient) Route() string

Route implements Msg.

func (*MsgCreateClient) Size

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

func (*MsgCreateClient) String

func (m *MsgCreateClient) String() string

func (MsgCreateClient) Type

func (m MsgCreateClient) Type() string

Type implements Msg.

func (*MsgCreateClient) Unmarshal

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

func (MsgCreateClient) UnpackInterfaces

func (cup MsgCreateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateClient) ValidateBasic

func (m MsgCreateClient) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgCreateClient) XXX_DiscardUnknown

func (m *MsgCreateClient) XXX_DiscardUnknown()

func (*MsgCreateClient) XXX_Marshal

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

func (*MsgCreateClient) XXX_Merge

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

func (*MsgCreateClient) XXX_Size

func (m *MsgCreateClient) XXX_Size() int

func (*MsgCreateClient) XXX_Unmarshal

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

type MsgCreateClientResponse

type MsgCreateClientResponse struct {
}

MsgMintResponse defines the Msg/Mint response type.

func (*MsgCreateClientResponse) Descriptor

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

func (*MsgCreateClientResponse) Marshal

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

func (*MsgCreateClientResponse) MarshalTo

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

func (*MsgCreateClientResponse) MarshalToSizedBuffer

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

func (*MsgCreateClientResponse) ProtoMessage

func (*MsgCreateClientResponse) ProtoMessage()

func (*MsgCreateClientResponse) Reset

func (m *MsgCreateClientResponse) Reset()

func (*MsgCreateClientResponse) Size

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

func (*MsgCreateClientResponse) String

func (m *MsgCreateClientResponse) String() string

func (*MsgCreateClientResponse) Unmarshal

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

func (*MsgCreateClientResponse) XXX_DiscardUnknown

func (m *MsgCreateClientResponse) XXX_DiscardUnknown()

func (*MsgCreateClientResponse) XXX_Marshal

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

func (*MsgCreateClientResponse) XXX_Merge

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

func (*MsgCreateClientResponse) XXX_Size

func (m *MsgCreateClientResponse) XXX_Size() int

func (*MsgCreateClientResponse) XXX_Unmarshal

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

type MsgRegisterRelayer

type MsgRegisterRelayer struct {
	ChainName string   `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	Relayers  []string `protobuf:"bytes,2,rep,name=relayers,proto3" json:"relayers,omitempty"`
	Signer    string   `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

func NewMsgRegisterRelayer

func NewMsgRegisterRelayer(chainName string, relayers []string, signer sdk.AccAddress) (*MsgRegisterRelayer, error)

func (*MsgRegisterRelayer) Descriptor

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

func (*MsgRegisterRelayer) Equal

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

func (MsgRegisterRelayer) GetSigners

func (m MsgRegisterRelayer) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgRegisterRelayer) Marshal

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

func (*MsgRegisterRelayer) MarshalTo

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

func (*MsgRegisterRelayer) MarshalToSizedBuffer

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

func (*MsgRegisterRelayer) ProtoMessage

func (*MsgRegisterRelayer) ProtoMessage()

func (*MsgRegisterRelayer) Reset

func (m *MsgRegisterRelayer) Reset()

func (MsgRegisterRelayer) Route

func (m MsgRegisterRelayer) Route() string

Route implements Msg.

func (*MsgRegisterRelayer) Size

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

func (*MsgRegisterRelayer) String

func (m *MsgRegisterRelayer) String() string

func (MsgRegisterRelayer) Type

func (m MsgRegisterRelayer) Type() string

Type implements Msg.

func (*MsgRegisterRelayer) Unmarshal

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

func (MsgRegisterRelayer) ValidateBasic

func (m MsgRegisterRelayer) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgRegisterRelayer) XXX_DiscardUnknown

func (m *MsgRegisterRelayer) XXX_DiscardUnknown()

func (*MsgRegisterRelayer) XXX_Marshal

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

func (*MsgRegisterRelayer) XXX_Merge

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

func (*MsgRegisterRelayer) XXX_Size

func (m *MsgRegisterRelayer) XXX_Size() int

func (*MsgRegisterRelayer) XXX_Unmarshal

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

type MsgRegisterRelayerResponse

type MsgRegisterRelayerResponse struct {
}

func (*MsgRegisterRelayerResponse) Descriptor

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

func (*MsgRegisterRelayerResponse) Marshal

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

func (*MsgRegisterRelayerResponse) MarshalTo

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

func (*MsgRegisterRelayerResponse) MarshalToSizedBuffer

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

func (*MsgRegisterRelayerResponse) ProtoMessage

func (*MsgRegisterRelayerResponse) ProtoMessage()

func (*MsgRegisterRelayerResponse) Reset

func (m *MsgRegisterRelayerResponse) Reset()

func (*MsgRegisterRelayerResponse) Size

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

func (*MsgRegisterRelayerResponse) String

func (m *MsgRegisterRelayerResponse) String() string

func (*MsgRegisterRelayerResponse) Unmarshal

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

func (*MsgRegisterRelayerResponse) XXX_DiscardUnknown

func (m *MsgRegisterRelayerResponse) XXX_DiscardUnknown()

func (*MsgRegisterRelayerResponse) XXX_Marshal

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

func (*MsgRegisterRelayerResponse) XXX_Merge

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

func (*MsgRegisterRelayerResponse) XXX_Size

func (m *MsgRegisterRelayerResponse) XXX_Size() int

func (*MsgRegisterRelayerResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetRoutingRules

type MsgSetRoutingRules struct {
	Rules  []string `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	Signer string   `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
}

func NewMsgSetRoutingRules

func NewMsgSetRoutingRules(rules []string, signer sdk.AccAddress) (*MsgSetRoutingRules, error)

func (*MsgSetRoutingRules) Descriptor

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

func (*MsgSetRoutingRules) Equal

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

func (MsgSetRoutingRules) GetSigners

func (m MsgSetRoutingRules) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgSetRoutingRules) Marshal

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

func (*MsgSetRoutingRules) MarshalTo

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

func (*MsgSetRoutingRules) MarshalToSizedBuffer

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

func (*MsgSetRoutingRules) ProtoMessage

func (*MsgSetRoutingRules) ProtoMessage()

func (*MsgSetRoutingRules) Reset

func (m *MsgSetRoutingRules) Reset()

func (*MsgSetRoutingRules) Size

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

func (*MsgSetRoutingRules) String

func (m *MsgSetRoutingRules) String() string

func (MsgSetRoutingRules) Type

func (m MsgSetRoutingRules) Type() string

Type implements Msg.

func (*MsgSetRoutingRules) Unmarshal

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

func (MsgSetRoutingRules) ValidateBasic

func (cup MsgSetRoutingRules) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*MsgSetRoutingRules) XXX_DiscardUnknown

func (m *MsgSetRoutingRules) XXX_DiscardUnknown()

func (*MsgSetRoutingRules) XXX_Marshal

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

func (*MsgSetRoutingRules) XXX_Merge

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

func (*MsgSetRoutingRules) XXX_Size

func (m *MsgSetRoutingRules) XXX_Size() int

func (*MsgSetRoutingRules) XXX_Unmarshal

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

type MsgSetRoutingRulesResponse

type MsgSetRoutingRulesResponse struct {
}

func (*MsgSetRoutingRulesResponse) Descriptor

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

func (*MsgSetRoutingRulesResponse) Marshal

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

func (*MsgSetRoutingRulesResponse) MarshalTo

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

func (*MsgSetRoutingRulesResponse) MarshalToSizedBuffer

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

func (*MsgSetRoutingRulesResponse) ProtoMessage

func (*MsgSetRoutingRulesResponse) ProtoMessage()

func (*MsgSetRoutingRulesResponse) Reset

func (m *MsgSetRoutingRulesResponse) Reset()

func (*MsgSetRoutingRulesResponse) Size

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

func (*MsgSetRoutingRulesResponse) String

func (m *MsgSetRoutingRulesResponse) String() string

func (*MsgSetRoutingRulesResponse) Unmarshal

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

func (*MsgSetRoutingRulesResponse) XXX_DiscardUnknown

func (m *MsgSetRoutingRulesResponse) XXX_DiscardUnknown()

func (*MsgSetRoutingRulesResponse) XXX_Marshal

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

func (*MsgSetRoutingRulesResponse) XXX_Merge

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

func (*MsgSetRoutingRulesResponse) XXX_Size

func (m *MsgSetRoutingRulesResponse) XXX_Size() int

func (*MsgSetRoutingRulesResponse) XXX_Unmarshal

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

type MsgUpgradeClient

type MsgUpgradeClient struct {
	ChainName      string     `protobuf:"bytes,1,opt,name=chainName,proto3" json:"chainName,omitempty"`
	ClientState    *types.Any `protobuf:"bytes,2,opt,name=clientState,proto3" json:"clientState,omitempty"`
	ConsensusState *types.Any `protobuf:"bytes,3,opt,name=consensusState,proto3" json:"consensusState,omitempty"`
	Signer         string     `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgReclaim defines a message to reclaim the specified native token.

func NewMsgUpgradeClient

func NewMsgUpgradeClient(chainName string, clientState exported.ClientState, consensusState exported.ConsensusState, signer sdk.AccAddress) (*MsgUpgradeClient, error)

func (*MsgUpgradeClient) Descriptor

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

func (*MsgUpgradeClient) Equal

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

func (MsgUpgradeClient) GetSigners

func (m MsgUpgradeClient) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgUpgradeClient) Marshal

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

func (*MsgUpgradeClient) MarshalTo

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

func (*MsgUpgradeClient) MarshalToSizedBuffer

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

func (*MsgUpgradeClient) ProtoMessage

func (*MsgUpgradeClient) ProtoMessage()

func (*MsgUpgradeClient) Reset

func (m *MsgUpgradeClient) Reset()

func (MsgUpgradeClient) Route

func (m MsgUpgradeClient) Route() string

Route implements Msg.

func (*MsgUpgradeClient) Size

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

func (*MsgUpgradeClient) String

func (m *MsgUpgradeClient) String() string

func (MsgUpgradeClient) Type

func (m MsgUpgradeClient) Type() string

Type implements Msg.

func (*MsgUpgradeClient) Unmarshal

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

func (MsgUpgradeClient) UnpackInterfaces

func (cup MsgUpgradeClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgUpgradeClient) ValidateBasic

func (m MsgUpgradeClient) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgUpgradeClient) XXX_DiscardUnknown

func (m *MsgUpgradeClient) XXX_DiscardUnknown()

func (*MsgUpgradeClient) XXX_Marshal

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

func (*MsgUpgradeClient) XXX_Merge

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

func (*MsgUpgradeClient) XXX_Size

func (m *MsgUpgradeClient) XXX_Size() int

func (*MsgUpgradeClient) XXX_Unmarshal

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

type MsgUpgradeClientResponse

type MsgUpgradeClientResponse struct {
}

MsgReclaimResponse defines the Msg/Reclaim response type.

func (*MsgUpgradeClientResponse) Descriptor

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

func (*MsgUpgradeClientResponse) Marshal

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

func (*MsgUpgradeClientResponse) MarshalTo

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

func (*MsgUpgradeClientResponse) MarshalToSizedBuffer

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

func (*MsgUpgradeClientResponse) ProtoMessage

func (*MsgUpgradeClientResponse) ProtoMessage()

func (*MsgUpgradeClientResponse) Reset

func (m *MsgUpgradeClientResponse) Reset()

func (*MsgUpgradeClientResponse) Size

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

func (*MsgUpgradeClientResponse) String

func (m *MsgUpgradeClientResponse) String() string

func (*MsgUpgradeClientResponse) Unmarshal

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

func (*MsgUpgradeClientResponse) XXX_DiscardUnknown

func (m *MsgUpgradeClientResponse) XXX_DiscardUnknown()

func (*MsgUpgradeClientResponse) XXX_Marshal

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

func (*MsgUpgradeClientResponse) XXX_Merge

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

func (*MsgUpgradeClientResponse) XXX_Size

func (m *MsgUpgradeClientResponse) XXX_Size() int

func (*MsgUpgradeClientResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateClient

func (*UnimplementedMsgServer) RegisterRelayer

func (*UnimplementedMsgServer) SetRoutingRules

func (*UnimplementedMsgServer) UpgradeClient

Jump to

Keyboard shortcuts

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