types

package
v3.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 41 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 = "interchaintxs"

	// 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_interchaintxs"
)
View Source
const ConsensusVersion = 2
View Source
const Delimiter = "."

Variables

View Source
var (
	ErrInvalidICAOwner           = errors.Register(ModuleName, 1100, "invalid interchain account interchainAccountID")
	ErrInvalidAccountAddress     = errors.Register(ModuleName, 1101, "invalid account address")
	ErrInterchainAccountNotFound = errors.Register(ModuleName, 1102, "interchain account not found")
	ErrNotContract               = errors.Register(ModuleName, 1103, "not a contract")
	ErrEmptyInterchainAccountID  = errors.Register(ModuleName, 1104, "empty interchain account id")
	ErrEmptyConnectionID         = errors.Register(ModuleName, 1105, "empty connection id")
	ErrNoMessages                = errors.Register(ModuleName, 1106, "no messages provided")
	ErrInvalidTimeout            = errors.Register(ModuleName, 1107, "invalid timeout")
	ErrInvalidPayerFee           = errors.Register(ModuleName, 1108, "invalid payer feerefunder")
	ErrLongInterchainAccountID   = errors.Register(ModuleName, 1109, "interchain account id is too long")
)

x/interchaintxs module sentinel errors

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                     = []byte{prefixParamsKey}
	ICARegistrationFeeFirstCodeID = []byte{prefixICARegistrationFeeFirstCodeID}
)
View Source
var (
	KeyMsgSubmitTxMaxMessages     = []byte("MsgSubmitTxMaxMessages")
	DefaultMsgSubmitTxMaxMessages = uint64(16)
	DefaultRegisterFee            = sdk.NewCoins(sdk.NewCoin(params.DefaultDenom, sdk.NewInt(1_000_000)))
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	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 PackTxMsgAny

func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error)

PackTxMsgAny marshals the sdk.Msg payload to a protobuf Any type

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error)
}

ChannelKeeper defines the expected IBC channel keeper

type FeeRefunderKeeper

type FeeRefunderKeeper interface {
	LockFees(ctx sdk.Context, payer sdk.AccAddress, packetID feerefundertypes.PacketID, fee feerefundertypes.Fee) error
	DistributeAcknowledgementFee(ctx sdk.Context, receiver sdk.AccAddress, packetID feerefundertypes.PacketID)
	DistributeTimeoutFee(ctx sdk.Context, receiver sdk.AccAddress, packetID feerefundertypes.PacketID)
}

type GenesisState

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

GenesisState defines the interchaintxs module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability 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 GetFeeCollectorAddr

type GetFeeCollectorAddr func(ctx sdk.Context) string

GetFeeCollectorAddr is a function to return the current fee collector address

type ICAControllerKeeper

type ICAControllerKeeper interface {
	GetActiveChannelID(ctx sdk.Context, connectionID, portID string) (string, bool)
	GetInterchainAccountAddress(ctx sdk.Context, connectionID, portID string) (string, bool)
	RegisterInterchainAccount(ctx sdk.Context, connectionID, owner, version string) error
	SendTx(ctx sdk.Context, chanCap *capabilitytypes.Capability, connectionID, portID string, icaPacketData icatypes.InterchainAccountPacketData, timeoutTimestamp uint64) (uint64, error)
}

type ICAOwner

type ICAOwner struct {
	// contains filtered or unexported fields
}

func ICAOwnerFromPort

func ICAOwnerFromPort(port string) (ICAOwner, error)

func NewICAOwner

func NewICAOwner(contractAddressBech32, interchainAccountID string) (ICAOwner, error)

func NewICAOwnerFromAddress

func NewICAOwnerFromAddress(address sdk.AccAddress, interchainAccountID string) ICAOwner

func (ICAOwner) GetContract

func (i ICAOwner) GetContract() sdk.AccAddress

func (ICAOwner) GetInterchainAccountID

func (i ICAOwner) GetInterchainAccountID() string

func (ICAOwner) String

func (i ICAOwner) String() string

type MsgClient

type MsgClient interface {
	RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error)
	SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, error)
	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 MsgRegisterInterchainAccount

type MsgRegisterInterchainAccount struct {
	FromAddress         string                                   `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ConnectionId        string                                   `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
	InterchainAccountId string                                   `` /* 149-byte string literal not displayed */
	RegisterFee         github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */
}

MsgRegisterInterchainAccount is used to register an account on a remote zone.

func (*MsgRegisterInterchainAccount) Descriptor

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

func (*MsgRegisterInterchainAccount) GetSignBytes

func (msg *MsgRegisterInterchainAccount) GetSignBytes() []byte

func (*MsgRegisterInterchainAccount) GetSigners

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

func (*MsgRegisterInterchainAccount) Marshal

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

func (*MsgRegisterInterchainAccount) MarshalTo

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

func (*MsgRegisterInterchainAccount) MarshalToSizedBuffer

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

func (*MsgRegisterInterchainAccount) ProtoMessage

func (*MsgRegisterInterchainAccount) ProtoMessage()

func (*MsgRegisterInterchainAccount) Reset

func (m *MsgRegisterInterchainAccount) Reset()

func (*MsgRegisterInterchainAccount) Route

func (msg *MsgRegisterInterchainAccount) Route() string

func (*MsgRegisterInterchainAccount) Size

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

func (*MsgRegisterInterchainAccount) String

func (*MsgRegisterInterchainAccount) Type

func (*MsgRegisterInterchainAccount) Unmarshal

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

func (*MsgRegisterInterchainAccount) ValidateBasic

func (msg *MsgRegisterInterchainAccount) ValidateBasic() error

func (*MsgRegisterInterchainAccount) XXX_DiscardUnknown

func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown()

func (*MsgRegisterInterchainAccount) XXX_Marshal

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

func (*MsgRegisterInterchainAccount) XXX_Merge

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

func (*MsgRegisterInterchainAccount) XXX_Size

func (m *MsgRegisterInterchainAccount) XXX_Size() int

func (*MsgRegisterInterchainAccount) XXX_Unmarshal

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

type MsgRegisterInterchainAccountResponse

type MsgRegisterInterchainAccountResponse struct {
}

MsgRegisterInterchainAccountResponse is the response type for MsgRegisterInterchainAccount.

func (*MsgRegisterInterchainAccountResponse) Descriptor

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

func (*MsgRegisterInterchainAccountResponse) Marshal

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

func (*MsgRegisterInterchainAccountResponse) MarshalTo

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

func (*MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer

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

func (*MsgRegisterInterchainAccountResponse) ProtoMessage

func (*MsgRegisterInterchainAccountResponse) ProtoMessage()

func (*MsgRegisterInterchainAccountResponse) Reset

func (*MsgRegisterInterchainAccountResponse) Size

func (*MsgRegisterInterchainAccountResponse) String

func (*MsgRegisterInterchainAccountResponse) Unmarshal

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

func (*MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown

func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown()

func (*MsgRegisterInterchainAccountResponse) XXX_Marshal

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

func (*MsgRegisterInterchainAccountResponse) XXX_Merge

func (*MsgRegisterInterchainAccountResponse) XXX_Size

func (*MsgRegisterInterchainAccountResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSubmitTx

type MsgSubmitTx struct {
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// interchain_account_id is supposed to be the unique identifier, e.g.,
	// lido/kava. This allows contracts to have more than one interchain accounts
	// on remote zone This identifier will be a part of the portID that we'll
	// claim our capability for.
	InterchainAccountId string        `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"`
	ConnectionId        string        `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	Msgs                []*types1.Any `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs,omitempty"`
	Memo                string        `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"`
	// timeout in seconds after which the packet times out
	Timeout uint64     `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Fee     types2.Fee `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee"`
}

MsgSubmitTx defines the payload for Msg/SubmitTx

func (*MsgSubmitTx) Descriptor

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

func (*MsgSubmitTx) GetSignBytes

func (msg *MsgSubmitTx) GetSignBytes() []byte

func (*MsgSubmitTx) GetSigners

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

func (*MsgSubmitTx) Marshal

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

func (*MsgSubmitTx) MarshalTo

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

func (*MsgSubmitTx) MarshalToSizedBuffer

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

func (*MsgSubmitTx) ProtoMessage

func (*MsgSubmitTx) ProtoMessage()

func (*MsgSubmitTx) Reset

func (m *MsgSubmitTx) Reset()

func (*MsgSubmitTx) Route

func (msg *MsgSubmitTx) Route() string

func (*MsgSubmitTx) Size

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

func (*MsgSubmitTx) String

func (m *MsgSubmitTx) String() string

func (*MsgSubmitTx) Type

func (msg *MsgSubmitTx) Type() string

func (*MsgSubmitTx) Unmarshal

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

func (*MsgSubmitTx) UnpackInterfaces

func (msg *MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

implements UnpackInterfacesMessage.UnpackInterfaces (https://github.com/cosmos/cosmos-sdk/blob/d07d35f29e0a0824b489c552753e8798710ff5a8/codec/types/interface_registry.go#L60)

func (*MsgSubmitTx) ValidateBasic

func (msg *MsgSubmitTx) ValidateBasic() error

func (*MsgSubmitTx) XXX_DiscardUnknown

func (m *MsgSubmitTx) XXX_DiscardUnknown()

func (*MsgSubmitTx) XXX_Marshal

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

func (*MsgSubmitTx) XXX_Merge

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

func (*MsgSubmitTx) XXX_Size

func (m *MsgSubmitTx) XXX_Size() int

func (*MsgSubmitTx) XXX_Unmarshal

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

type MsgSubmitTxResponse

type MsgSubmitTxResponse struct {
	// channel's sequence_id for outgoing ibc packet. Unique per a channel.
	SequenceId uint64 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"`
	// channel src channel on neutron side transaction was submitted from
	Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
}

MsgSubmitTxResponse defines the response for Msg/SubmitTx

func (*MsgSubmitTxResponse) Descriptor

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

func (*MsgSubmitTxResponse) GetChannel

func (m *MsgSubmitTxResponse) GetChannel() string

func (*MsgSubmitTxResponse) GetSequenceId

func (m *MsgSubmitTxResponse) GetSequenceId() uint64

func (*MsgSubmitTxResponse) Marshal

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

func (*MsgSubmitTxResponse) MarshalTo

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

func (*MsgSubmitTxResponse) MarshalToSizedBuffer

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

func (*MsgSubmitTxResponse) ProtoMessage

func (*MsgSubmitTxResponse) ProtoMessage()

func (*MsgSubmitTxResponse) Reset

func (m *MsgSubmitTxResponse) Reset()

func (*MsgSubmitTxResponse) Size

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

func (*MsgSubmitTxResponse) String

func (m *MsgSubmitTxResponse) String() string

func (*MsgSubmitTxResponse) Unmarshal

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

func (*MsgSubmitTxResponse) XXX_DiscardUnknown

func (m *MsgSubmitTxResponse) XXX_DiscardUnknown()

func (*MsgSubmitTxResponse) XXX_Marshal

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

func (*MsgSubmitTxResponse) XXX_Merge

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

func (*MsgSubmitTxResponse) XXX_Size

func (m *MsgSubmitTxResponse) XXX_Size() int

func (*MsgSubmitTxResponse) XXX_Unmarshal

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

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 x/interchaintxs parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the MsgUpdateParams request type.

Since: 0.47

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

func (*MsgUpdateParams) GetSigners

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

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

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

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

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: 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 {
	// Defines maximum amount of messages to be passed in MsgSubmitTx
	MsgSubmitTxMaxMessages uint64 `` /* 134-byte string literal not displayed */
	// Defines a minimum fee required to register interchain account
	RegisterFee []types.Coin `protobuf:"bytes,2,rep,name=register_fee,json=registerFee,proto3" json:"register_fee"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(msgSubmitTxMaxMessages uint64, registerFee sdk.Coins) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetMsgSubmitTxMaxMessages

func (m *Params) GetMsgSubmitTxMaxMessages() uint64

func (*Params) GetRegisterFee

func (m *Params) GetRegisterFee() []types.Coin

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

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

ParamSetPairs get the params.ParamSet

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

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of 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 {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, 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 QueryInterchainAccountAddressRequest

type QueryInterchainAccountAddressRequest struct {
	// owner_address is the owner of the interchain account on the controller
	// chain
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	// interchain_account_id is an identifier of your interchain account from
	// which you want to execute msgs
	InterchainAccountId string `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"`
	// connection_id is an IBC connection identifier between Neutron and remote
	// chain
	ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
}

func (*QueryInterchainAccountAddressRequest) Descriptor

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

func (*QueryInterchainAccountAddressRequest) Marshal

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

func (*QueryInterchainAccountAddressRequest) MarshalTo

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

func (*QueryInterchainAccountAddressRequest) MarshalToSizedBuffer

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

func (*QueryInterchainAccountAddressRequest) ProtoMessage

func (*QueryInterchainAccountAddressRequest) ProtoMessage()

func (*QueryInterchainAccountAddressRequest) Reset

func (*QueryInterchainAccountAddressRequest) Size

func (*QueryInterchainAccountAddressRequest) String

func (*QueryInterchainAccountAddressRequest) Unmarshal

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

func (*QueryInterchainAccountAddressRequest) XXX_DiscardUnknown

func (m *QueryInterchainAccountAddressRequest) XXX_DiscardUnknown()

func (*QueryInterchainAccountAddressRequest) XXX_Marshal

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

func (*QueryInterchainAccountAddressRequest) XXX_Merge

func (*QueryInterchainAccountAddressRequest) XXX_Size

func (*QueryInterchainAccountAddressRequest) XXX_Unmarshal

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

type QueryInterchainAccountAddressResponse

type QueryInterchainAccountAddressResponse struct {
	// The corresponding interchain account address on the host chain
	InterchainAccountAddress string `` /* 135-byte string literal not displayed */
}

Query response for an interchain account address

func (*QueryInterchainAccountAddressResponse) Descriptor

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

func (*QueryInterchainAccountAddressResponse) GetInterchainAccountAddress

func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() string

func (*QueryInterchainAccountAddressResponse) Marshal

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

func (*QueryInterchainAccountAddressResponse) MarshalTo

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

func (*QueryInterchainAccountAddressResponse) MarshalToSizedBuffer

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

func (*QueryInterchainAccountAddressResponse) ProtoMessage

func (*QueryInterchainAccountAddressResponse) ProtoMessage()

func (*QueryInterchainAccountAddressResponse) Reset

func (*QueryInterchainAccountAddressResponse) Size

func (*QueryInterchainAccountAddressResponse) String

func (*QueryInterchainAccountAddressResponse) Unmarshal

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

func (*QueryInterchainAccountAddressResponse) XXX_DiscardUnknown

func (m *QueryInterchainAccountAddressResponse) XXX_DiscardUnknown()

func (*QueryInterchainAccountAddressResponse) XXX_Marshal

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

func (*QueryInterchainAccountAddressResponse) XXX_Merge

func (*QueryInterchainAccountAddressResponse) XXX_Size

func (*QueryInterchainAccountAddressResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is 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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	InterchainAccountAddress(context.Context, *QueryInterchainAccountAddressRequest) (*QueryInterchainAccountAddressResponse, 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) RegisterInterchainAccount

func (*UnimplementedMsgServer) SubmitTx

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

type WasmKeeper

type WasmKeeper interface {
	HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool
	GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo
	Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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