types

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 44 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypePacket                          = "ics27_packet"
	EventTypeTimeout                         = "timeout"
	EventTypeUpdateParams                    = "update_params"
	EventTypeCreateHostChain                 = "create_host_chain"
	EventTypeUpdateHostChain                 = "update_host_chain"
	EventTypeDeleteHostChain                 = "delete_host_chain"
	EventTypeCValueUpdate                    = "c_value_update"
	EventTypeUnsuccessfulInstantiateContract = "unsuccessful_instantiate_contract"
	EventTypeUnsuccessfulExecuteContract     = "unsuccessful_execute_contract"
	EventICAChannelCreated                   = "ica_channel_created"

	AttributeID               = "id"
	AttributeChainID          = "chain_id"
	AttributeConnectionID     = "connection_id"
	AttributeUpdates          = "connection_id"
	AttributeNewCValue        = "new_c_value"
	AttributeOldCValue        = "old_c_value"
	AttributeEpoch            = "epoch_number"
	AttributeKeyAuthority     = "authority"
	AttributeKeyUpdatedParams = "updated_params"
	AttributeKeyAck           = "acknowledgement"
	AttributeKeyAckSuccess    = "success"
	AttributeKeyAckError      = "error"
	AttributeICAMessages      = "ica_messages"
	AttributeICAPortOwner     = "ica_port_owner"
	AttributeICAChannelID     = "ica_channel_id"
	AttributeICAAddress       = "ica_address"
	AttributeSender           = "msg_sender"

	AttributeValueCategory = ModuleName
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "ratesync"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_ratesync"

	LiquidStakeAllowAllDenoms = "*"
	LiquidStakeEpoch          = "hour"
	DefaultPortOwnerPrefix    = "pstake_ratesync_"

	ICATimeoutTimestamp = 60 * time.Minute
)
View Source
const (
	TypeMsgCreateHostChain = "create_host_chain"
	TypeMsgUpdateHostChain = "update_host_chain"
	TypeMsgDeleteHostChain = "delete_host_chain"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgUpdateParams = "msg_update_params"

Variables

View Source
var (
	ErrInvalidLengthContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContract = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrRegisterFailed   = errorsmod.Register(ModuleName, 3001, "host chain register failed")
	ErrInvalid          = errorsmod.Register(ModuleName, 3002, "Invalid data")
	ErrICATxFailure     = errorsmod.Register(ModuleName, 3003, "ica transaction failed")
	ErrInvalidResponses = errorsmod.Register(ModuleName, 3004, "not enough message responses")
)

x/ratesync 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 (
	HostChainIDKeyPrefix = []byte{0x01}
	HostChainKeyPrefix   = []byte{0x02}
	ParamsKeyPrefix      = []byte{0x00}
)
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 (
	ErrInvalidLengthRatesync        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRatesync          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRatesync = 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 FeatureType_name = map[int32]string{
	0: "LIQUID_STAKE_IBC",
	1: "LIQUID_STAKE",
}
View Source
var FeatureType_value = map[string]int32{
	"LIQUID_STAKE_IBC": 0,
	"LIQUID_STAKE":     1,
}
View Source
var InstantiationState_name = map[int32]string{
	0: "INSTANTIATION_NOT_INITIATED",
	1: "INSTANTIATION_INITIATED",
	2: "INSTANTIATION_COMPLETED",
}
View Source
var InstantiationState_value = map[string]int32{
	"INSTANTIATION_NOT_INITIATED": 0,
	"INSTANTIATION_INITIATED":     1,
	"INSTANTIATION_COMPLETED":     2,
}

Functions

func DefaultPortOwner

func DefaultPortOwner(id uint64) string

func HostChainKey

func HostChainKey(
	id uint64,
) []byte

HostChainKey returns the store key to retrieve a Chain from the index fields

func IDFromPortID

func IDFromPortID(portID string) (uint64, error)

func MustICAPortIDFromOwner

func MustICAPortIDFromOwner(owner string) string

func OwnerFromPortID

func OwnerFromPortID(portID string) (string, error)

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

func ValidateLiquidStakeDenoms

func ValidateLiquidStakeDenoms(denoms []string) error

Types

type AccountKeeper

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

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

type EpochsKeeper

type EpochsKeeper interface {
	GetEpochInfo(ctx sdk.Context, identifier string) persistencetypes.EpochInfo
}

type ExecuteLiquidStakeRate

type ExecuteLiquidStakeRate struct {
	LiquidStakeRate LiquidStakeRate `protobuf:"bytes,1,opt,name=liquid_stake_rate,json=liquidStakeRate,proto3" json:"liquid_stake_rate"`
}

wrapper for liquidstakerate as wasm msg should be marshalled as encodedMsg = { wasmMsg: { wasm MsgDetails } }

func (*ExecuteLiquidStakeRate) Descriptor

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

func (*ExecuteLiquidStakeRate) GetLiquidStakeRate

func (m *ExecuteLiquidStakeRate) GetLiquidStakeRate() LiquidStakeRate

func (*ExecuteLiquidStakeRate) Marshal

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

func (*ExecuteLiquidStakeRate) MarshalTo

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

func (*ExecuteLiquidStakeRate) MarshalToSizedBuffer

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

func (*ExecuteLiquidStakeRate) ProtoMessage

func (*ExecuteLiquidStakeRate) ProtoMessage()

func (*ExecuteLiquidStakeRate) Reset

func (m *ExecuteLiquidStakeRate) Reset()

func (*ExecuteLiquidStakeRate) Size

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

func (*ExecuteLiquidStakeRate) String

func (m *ExecuteLiquidStakeRate) String() string

func (*ExecuteLiquidStakeRate) Unmarshal

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

func (*ExecuteLiquidStakeRate) XXX_DiscardUnknown

func (m *ExecuteLiquidStakeRate) XXX_DiscardUnknown()

func (*ExecuteLiquidStakeRate) XXX_Marshal

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

func (*ExecuteLiquidStakeRate) XXX_Merge

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

func (*ExecuteLiquidStakeRate) XXX_Size

func (m *ExecuteLiquidStakeRate) XXX_Size() int

func (*ExecuteLiquidStakeRate) XXX_Unmarshal

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

type Feature

type Feature struct {
	// triggers on hooks
	LiquidStakeIBC LiquidStake `protobuf:"bytes,1,opt,name=liquid_stake_i_b_c,json=liquidStakeIBC,proto3" json:"liquid_stake_i_b_c"`
	// triggers on hour epoch
	LiquidStake LiquidStake `protobuf:"bytes,2,opt,name=liquid_stake,json=liquidStake,proto3" json:"liquid_stake"`
}

func (*Feature) Descriptor

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

func (*Feature) GetLiquidStake

func (m *Feature) GetLiquidStake() LiquidStake

func (*Feature) GetLiquidStakeIBC

func (m *Feature) GetLiquidStakeIBC() LiquidStake

func (*Feature) Marshal

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

func (*Feature) MarshalTo

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

func (*Feature) MarshalToSizedBuffer

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

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) Reset

func (m *Feature) Reset()

func (*Feature) Size

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

func (*Feature) String

func (m *Feature) String() string

func (*Feature) Unmarshal

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

func (Feature) ValdidateBasic

func (f Feature) ValdidateBasic() error

func (*Feature) XXX_DiscardUnknown

func (m *Feature) XXX_DiscardUnknown()

func (*Feature) XXX_Marshal

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

func (*Feature) XXX_Merge

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

func (*Feature) XXX_Size

func (m *Feature) XXX_Size() int

func (*Feature) XXX_Unmarshal

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

type FeatureType

type FeatureType int32
const (
	FeatureType_LIQUID_STAKE_IBC FeatureType = 0
	FeatureType_LIQUID_STAKE     FeatureType = 1
)

func (FeatureType) EnumDescriptor

func (FeatureType) EnumDescriptor() ([]byte, []int)

func (FeatureType) String

func (x FeatureType) String() string

type GenesisState

type GenesisState struct {
	Params     Params      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	HostChains []HostChain `protobuf:"bytes,2,rep,name=host_chains,json=hostChains,proto3" json:"host_chains"`
}

GenesisState defines the ratesync module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetHostChains

func (m *GenesisState) GetHostChains() []HostChain

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 HostChain

type HostChain struct {
	// unique id
	ID                uint64           `protobuf:"varint,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"`
	ChainID           string           `protobuf:"bytes,2,opt,name=chain_i_d,json=chainID,proto3" json:"chain_i_d,omitempty"`
	ConnectionID      string           `protobuf:"bytes,3,opt,name=connection_i_d,json=connectionID,proto3" json:"connection_i_d,omitempty"`
	ICAAccount        types.ICAAccount `protobuf:"bytes,4,opt,name=i_c_a_account,json=iCAAccount,proto3" json:"i_c_a_account"`
	Features          Feature          `protobuf:"bytes,5,opt,name=features,proto3" json:"features"`
	TransferChannelID string           `protobuf:"bytes,6,opt,name=transfer_channel_i_d,json=transferChannelID,proto3" json:"transfer_channel_i_d,omitempty"`
	TransferPortID    string           `protobuf:"bytes,7,opt,name=transfer_port_i_d,json=transferPortID,proto3" json:"transfer_port_i_d,omitempty"`
}

HostChain defines the ratesync module's HostChain state.

func (*HostChain) Descriptor

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

func (*HostChain) GetChainID

func (m *HostChain) GetChainID() string

func (*HostChain) GetConnectionID

func (m *HostChain) GetConnectionID() string

func (*HostChain) GetFeatures

func (m *HostChain) GetFeatures() Feature

func (*HostChain) GetICAAccount

func (m *HostChain) GetICAAccount() types.ICAAccount

func (*HostChain) GetID

func (m *HostChain) GetID() uint64

func (*HostChain) GetTransferChannelID added in v2.10.0

func (m *HostChain) GetTransferChannelID() string

func (*HostChain) GetTransferPortID added in v2.10.0

func (m *HostChain) GetTransferPortID() string

func (HostChain) IsActive

func (hc HostChain) IsActive() bool

func (*HostChain) Marshal

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

func (*HostChain) MarshalTo

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

func (*HostChain) MarshalToSizedBuffer

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

func (*HostChain) ProtoMessage

func (*HostChain) ProtoMessage()

func (*HostChain) Reset

func (m *HostChain) Reset()

func (*HostChain) Size

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

func (*HostChain) String

func (m *HostChain) String() string

func (*HostChain) Unmarshal

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

func (HostChain) ValidateBasic

func (hc HostChain) ValidateBasic() error

func (*HostChain) XXX_DiscardUnknown

func (m *HostChain) XXX_DiscardUnknown()

func (*HostChain) XXX_Marshal

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

func (*HostChain) XXX_Merge

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

func (*HostChain) XXX_Size

func (m *HostChain) XXX_Size() int

func (*HostChain) XXX_Unmarshal

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

type ICAControllerKeeper

type ICAControllerKeeper interface {
	RegisterInterchainAccount(ctx sdk.Context, connectionID, owner, version string) error
	GetInterchainAccountAddress(ctx sdk.Context, connectionID, portID string) (string, bool)
	GetOpenActiveChannel(ctx sdk.Context, connectionID, portID string) (string, bool)
}

type ICAMemo

type ICAMemo struct {
	FeatureType FeatureType `` /* 136-byte string literal not displayed */
	HostChainID uint64      `protobuf:"varint,2,opt,name=host_chain_i_d,json=hostChainID,proto3" json:"host_chain_i_d,omitempty"`
}

aim to keep this smaller than 256 MaxCharLen in ICA memo.

func (*ICAMemo) Descriptor

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

func (*ICAMemo) GetFeatureType

func (m *ICAMemo) GetFeatureType() FeatureType

func (*ICAMemo) GetHostChainID

func (m *ICAMemo) GetHostChainID() uint64

func (*ICAMemo) Marshal

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

func (*ICAMemo) MarshalTo

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

func (*ICAMemo) MarshalToSizedBuffer

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

func (*ICAMemo) ProtoMessage

func (*ICAMemo) ProtoMessage()

func (*ICAMemo) Reset

func (m *ICAMemo) Reset()

func (*ICAMemo) Size

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

func (*ICAMemo) String

func (m *ICAMemo) String() string

func (*ICAMemo) Unmarshal

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

func (*ICAMemo) XXX_DiscardUnknown

func (m *ICAMemo) XXX_DiscardUnknown()

func (*ICAMemo) XXX_Marshal

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

func (*ICAMemo) XXX_Merge

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

func (*ICAMemo) XXX_Size

func (m *ICAMemo) XXX_Size() int

func (*ICAMemo) XXX_Unmarshal

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

type InstantiateLiquidStakeRateContract

type InstantiateLiquidStakeRateContract struct {
	Admin             string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	TransferChannelID string `protobuf:"bytes,2,opt,name=transfer_channel_i_d,json=transferChannelID,proto3" json:"transfer_channel_i_d,omitempty"`
	TransferPortID    string `protobuf:"bytes,3,opt,name=transfer_port_i_d,json=transferPortID,proto3" json:"transfer_port_i_d,omitempty"`
}

msg blob for instantiate contract.

func (*InstantiateLiquidStakeRateContract) Descriptor

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

func (*InstantiateLiquidStakeRateContract) GetAdmin

func (*InstantiateLiquidStakeRateContract) GetTransferChannelID added in v2.10.0

func (m *InstantiateLiquidStakeRateContract) GetTransferChannelID() string

func (*InstantiateLiquidStakeRateContract) GetTransferPortID added in v2.10.0

func (m *InstantiateLiquidStakeRateContract) GetTransferPortID() string

func (*InstantiateLiquidStakeRateContract) Marshal

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

func (*InstantiateLiquidStakeRateContract) MarshalTo

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

func (*InstantiateLiquidStakeRateContract) MarshalToSizedBuffer

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

func (*InstantiateLiquidStakeRateContract) ProtoMessage

func (*InstantiateLiquidStakeRateContract) ProtoMessage()

func (*InstantiateLiquidStakeRateContract) Reset

func (*InstantiateLiquidStakeRateContract) Size

func (*InstantiateLiquidStakeRateContract) String

func (*InstantiateLiquidStakeRateContract) Unmarshal

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

func (*InstantiateLiquidStakeRateContract) XXX_DiscardUnknown

func (m *InstantiateLiquidStakeRateContract) XXX_DiscardUnknown()

func (*InstantiateLiquidStakeRateContract) XXX_Marshal

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

func (*InstantiateLiquidStakeRateContract) XXX_Merge

func (*InstantiateLiquidStakeRateContract) XXX_Size

func (*InstantiateLiquidStakeRateContract) XXX_Unmarshal

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

type InstantiationState

type InstantiationState int32
const (
	// Not Initiated
	InstantiationState_INSTANTIATION_NOT_INITIATED InstantiationState = 0
	// Initiated
	InstantiationState_INSTANTIATION_INITIATED InstantiationState = 1
	// we should have an address
	InstantiationState_INSTANTIATION_COMPLETED InstantiationState = 2
)

func (InstantiationState) EnumDescriptor

func (InstantiationState) EnumDescriptor() ([]byte, []int)

func (InstantiationState) String

func (x InstantiationState) String() string

type LiquidStake

type LiquidStake struct {
	FeatureType FeatureType `` /* 136-byte string literal not displayed */
	// needs to be uploaded before hand
	CodeID uint64 `protobuf:"varint,2,opt,name=code_i_d,json=codeID,proto3" json:"code_i_d,omitempty"`
	// state of instantiation, do not support gov based instantiation. (need ICA
	// to be at least admin)
	Instantiation InstantiationState `` /* 128-byte string literal not displayed */
	// address of instantiated contract.
	ContractAddress string `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// allow * as default for all denoms in case of lsibc, or default bond denom
	// in case of ls.
	Denoms  []string `protobuf:"bytes,5,rep,name=denoms,proto3" json:"denoms,omitempty"`
	Enabled bool     `protobuf:"varint,6,opt,name=enabled,proto3" json:"enabled,omitempty"`
}

func (LiquidStake) AllowsAllDenoms

func (lsConfig LiquidStake) AllowsAllDenoms() bool

func (LiquidStake) AllowsDenom

func (lsConfig LiquidStake) AllowsDenom(denom string) bool

func (*LiquidStake) Descriptor

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

func (LiquidStake) Equals

func (lsConfig LiquidStake) Equals(l2 LiquidStake) bool

func (*LiquidStake) GetCodeID

func (m *LiquidStake) GetCodeID() uint64

func (*LiquidStake) GetContractAddress

func (m *LiquidStake) GetContractAddress() string

func (*LiquidStake) GetDenoms

func (m *LiquidStake) GetDenoms() []string

func (*LiquidStake) GetEnabled

func (m *LiquidStake) GetEnabled() bool

func (*LiquidStake) GetFeatureType

func (m *LiquidStake) GetFeatureType() FeatureType

func (*LiquidStake) GetInstantiation

func (m *LiquidStake) GetInstantiation() InstantiationState

func (*LiquidStake) Marshal

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

func (*LiquidStake) MarshalTo

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

func (*LiquidStake) MarshalToSizedBuffer

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

func (*LiquidStake) ProtoMessage

func (*LiquidStake) ProtoMessage()

func (*LiquidStake) Reset

func (m *LiquidStake) Reset()

func (*LiquidStake) Size

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

func (*LiquidStake) String

func (m *LiquidStake) String() string

func (*LiquidStake) Unmarshal

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

func (LiquidStake) ValdidateBasic

func (lsConfig LiquidStake) ValdidateBasic() error

func (*LiquidStake) XXX_DiscardUnknown

func (m *LiquidStake) XXX_DiscardUnknown()

func (*LiquidStake) XXX_Marshal

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

func (*LiquidStake) XXX_Merge

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

func (*LiquidStake) XXX_Size

func (m *LiquidStake) XXX_Size() int

func (*LiquidStake) XXX_Unmarshal

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

type LiquidStakeIBCKeeper

type LiquidStakeIBCKeeper interface {
	GetHostChain(ctx sdk.Context, chainID string) (*liquidstakeibctypes.HostChain, bool)
}

type LiquidStakeKeeper

type LiquidStakeKeeper interface {
	// add for stkxprt
	GetNetAmountState(ctx sdk.Context) liquidstaketypes.NetAmountState
	LiquidBondDenom(ctx sdk.Context) string
}

type LiquidStakeRate

type LiquidStakeRate struct {
	DefaultBondDenom string `protobuf:"bytes,1,opt,name=default_bond_denom,json=defaultBondDenom,proto3" json:"default_bond_denom,omitempty"`
	StkDenom         string `protobuf:"bytes,2,opt,name=stk_denom,json=stkDenom,proto3" json:"stk_denom,omitempty"`
	// cvalue = default_bond_denom_price/stk_denom_price
	// cvalue = stk_denom_supply/default_bond_denom_supply
	CValue              github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=c_value,json=cValue,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"c_value"`
	ControllerChainTime int64                                  `protobuf:"varint,4,opt,name=controller_chain_time,json=controllerChainTime,proto3" json:"controller_chain_time,omitempty"`
}

msg blob for execute contract.

func (*LiquidStakeRate) Descriptor

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

func (*LiquidStakeRate) GetControllerChainTime

func (m *LiquidStakeRate) GetControllerChainTime() int64

func (*LiquidStakeRate) GetDefaultBondDenom

func (m *LiquidStakeRate) GetDefaultBondDenom() string

func (*LiquidStakeRate) GetStkDenom

func (m *LiquidStakeRate) GetStkDenom() string

func (*LiquidStakeRate) Marshal

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

func (*LiquidStakeRate) MarshalTo

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

func (*LiquidStakeRate) MarshalToSizedBuffer

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

func (*LiquidStakeRate) ProtoMessage

func (*LiquidStakeRate) ProtoMessage()

func (*LiquidStakeRate) Reset

func (m *LiquidStakeRate) Reset()

func (*LiquidStakeRate) Size

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

func (*LiquidStakeRate) String

func (m *LiquidStakeRate) String() string

func (*LiquidStakeRate) Unmarshal

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

func (*LiquidStakeRate) XXX_DiscardUnknown

func (m *LiquidStakeRate) XXX_DiscardUnknown()

func (*LiquidStakeRate) XXX_Marshal

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

func (*LiquidStakeRate) XXX_Merge

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

func (*LiquidStakeRate) XXX_Size

func (m *LiquidStakeRate) XXX_Size() int

func (*LiquidStakeRate) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreateHostChain(ctx context.Context, in *MsgCreateHostChain, opts ...grpc.CallOption) (*MsgCreateHostChainResponse, error)
	UpdateHostChain(ctx context.Context, in *MsgUpdateHostChain, opts ...grpc.CallOption) (*MsgUpdateHostChainResponse, error)
	DeleteHostChain(ctx context.Context, in *MsgDeleteHostChain, opts ...grpc.CallOption) (*MsgDeleteHostChainResponse, 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 MsgCreateHostChain

type MsgCreateHostChain struct {
	Authority string    `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	HostChain HostChain `protobuf:"bytes,2,opt,name=host_chain,json=hostChain,proto3" json:"host_chain"`
}

func NewMsgCreateHostChain

func NewMsgCreateHostChain(
	authority string,
	hc HostChain,
) *MsgCreateHostChain

func (*MsgCreateHostChain) Descriptor

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

func (*MsgCreateHostChain) GetAuthority

func (m *MsgCreateHostChain) GetAuthority() string

func (*MsgCreateHostChain) GetHostChain

func (m *MsgCreateHostChain) GetHostChain() HostChain

func (*MsgCreateHostChain) GetSignBytes

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

func (*MsgCreateHostChain) GetSigners

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

func (*MsgCreateHostChain) Marshal

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

func (*MsgCreateHostChain) MarshalTo

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

func (*MsgCreateHostChain) MarshalToSizedBuffer

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

func (*MsgCreateHostChain) ProtoMessage

func (*MsgCreateHostChain) ProtoMessage()

func (*MsgCreateHostChain) Reset

func (m *MsgCreateHostChain) Reset()

func (*MsgCreateHostChain) Route

func (msg *MsgCreateHostChain) Route() string

func (*MsgCreateHostChain) Size

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

func (*MsgCreateHostChain) String

func (m *MsgCreateHostChain) String() string

func (*MsgCreateHostChain) Type

func (msg *MsgCreateHostChain) Type() string

func (*MsgCreateHostChain) Unmarshal

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

func (*MsgCreateHostChain) ValidateBasic

func (msg *MsgCreateHostChain) ValidateBasic() error

func (*MsgCreateHostChain) XXX_DiscardUnknown

func (m *MsgCreateHostChain) XXX_DiscardUnknown()

func (*MsgCreateHostChain) XXX_Marshal

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

func (*MsgCreateHostChain) XXX_Merge

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

func (*MsgCreateHostChain) XXX_Size

func (m *MsgCreateHostChain) XXX_Size() int

func (*MsgCreateHostChain) XXX_Unmarshal

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

type MsgCreateHostChainResponse

type MsgCreateHostChainResponse struct {
	ID uint64 `protobuf:"varint,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"`
}

func (*MsgCreateHostChainResponse) Descriptor

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

func (*MsgCreateHostChainResponse) GetID

func (*MsgCreateHostChainResponse) Marshal

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

func (*MsgCreateHostChainResponse) MarshalTo

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

func (*MsgCreateHostChainResponse) MarshalToSizedBuffer

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

func (*MsgCreateHostChainResponse) ProtoMessage

func (*MsgCreateHostChainResponse) ProtoMessage()

func (*MsgCreateHostChainResponse) Reset

func (m *MsgCreateHostChainResponse) Reset()

func (*MsgCreateHostChainResponse) Size

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

func (*MsgCreateHostChainResponse) String

func (m *MsgCreateHostChainResponse) String() string

func (*MsgCreateHostChainResponse) Unmarshal

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

func (*MsgCreateHostChainResponse) XXX_DiscardUnknown

func (m *MsgCreateHostChainResponse) XXX_DiscardUnknown()

func (*MsgCreateHostChainResponse) XXX_Marshal

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

func (*MsgCreateHostChainResponse) XXX_Merge

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

func (*MsgCreateHostChainResponse) XXX_Size

func (m *MsgCreateHostChainResponse) XXX_Size() int

func (*MsgCreateHostChainResponse) XXX_Unmarshal

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

type MsgDeleteHostChain

type MsgDeleteHostChain struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	ID        uint64 `protobuf:"varint,2,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"`
}

func NewMsgDeleteHostChain

func NewMsgDeleteHostChain(
	creator string,
	id uint64,
) *MsgDeleteHostChain

func (*MsgDeleteHostChain) Descriptor

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

func (*MsgDeleteHostChain) GetAuthority

func (m *MsgDeleteHostChain) GetAuthority() string

func (*MsgDeleteHostChain) GetID

func (m *MsgDeleteHostChain) GetID() uint64

func (*MsgDeleteHostChain) GetSignBytes

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

func (*MsgDeleteHostChain) GetSigners

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

func (*MsgDeleteHostChain) Marshal

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

func (*MsgDeleteHostChain) MarshalTo

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

func (*MsgDeleteHostChain) MarshalToSizedBuffer

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

func (*MsgDeleteHostChain) ProtoMessage

func (*MsgDeleteHostChain) ProtoMessage()

func (*MsgDeleteHostChain) Reset

func (m *MsgDeleteHostChain) Reset()

func (*MsgDeleteHostChain) Route

func (msg *MsgDeleteHostChain) Route() string

func (*MsgDeleteHostChain) Size

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

func (*MsgDeleteHostChain) String

func (m *MsgDeleteHostChain) String() string

func (*MsgDeleteHostChain) Type

func (msg *MsgDeleteHostChain) Type() string

func (*MsgDeleteHostChain) Unmarshal

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

func (*MsgDeleteHostChain) ValidateBasic

func (msg *MsgDeleteHostChain) ValidateBasic() error

func (*MsgDeleteHostChain) XXX_DiscardUnknown

func (m *MsgDeleteHostChain) XXX_DiscardUnknown()

func (*MsgDeleteHostChain) XXX_Marshal

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

func (*MsgDeleteHostChain) XXX_Merge

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

func (*MsgDeleteHostChain) XXX_Size

func (m *MsgDeleteHostChain) XXX_Size() int

func (*MsgDeleteHostChain) XXX_Unmarshal

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

type MsgDeleteHostChainResponse

type MsgDeleteHostChainResponse struct {
}

func (*MsgDeleteHostChainResponse) Descriptor

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

func (*MsgDeleteHostChainResponse) Marshal

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

func (*MsgDeleteHostChainResponse) MarshalTo

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

func (*MsgDeleteHostChainResponse) MarshalToSizedBuffer

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

func (*MsgDeleteHostChainResponse) ProtoMessage

func (*MsgDeleteHostChainResponse) ProtoMessage()

func (*MsgDeleteHostChainResponse) Reset

func (m *MsgDeleteHostChainResponse) Reset()

func (*MsgDeleteHostChainResponse) Size

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

func (*MsgDeleteHostChainResponse) String

func (m *MsgDeleteHostChainResponse) String() string

func (*MsgDeleteHostChainResponse) Unmarshal

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

func (*MsgDeleteHostChainResponse) XXX_DiscardUnknown

func (m *MsgDeleteHostChainResponse) XXX_DiscardUnknown()

func (*MsgDeleteHostChainResponse) XXX_Marshal

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

func (*MsgDeleteHostChainResponse) XXX_Merge

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

func (*MsgDeleteHostChainResponse) XXX_Size

func (m *MsgDeleteHostChainResponse) XXX_Size() int

func (*MsgDeleteHostChainResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdateHostChain

type MsgUpdateHostChain struct {
	Authority string    `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	HostChain HostChain `protobuf:"bytes,2,opt,name=host_chain,json=hostChain,proto3" json:"host_chain"`
}

func NewMsgUpdateHostChain

func NewMsgUpdateHostChain(
	creator string,
	hc HostChain,
) *MsgUpdateHostChain

func (*MsgUpdateHostChain) Descriptor

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

func (*MsgUpdateHostChain) GetAuthority

func (m *MsgUpdateHostChain) GetAuthority() string

func (*MsgUpdateHostChain) GetHostChain

func (m *MsgUpdateHostChain) GetHostChain() HostChain

func (*MsgUpdateHostChain) GetSignBytes

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

func (*MsgUpdateHostChain) GetSigners

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

func (*MsgUpdateHostChain) Marshal

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

func (*MsgUpdateHostChain) MarshalTo

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

func (*MsgUpdateHostChain) MarshalToSizedBuffer

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

func (*MsgUpdateHostChain) ProtoMessage

func (*MsgUpdateHostChain) ProtoMessage()

func (*MsgUpdateHostChain) Reset

func (m *MsgUpdateHostChain) Reset()

func (*MsgUpdateHostChain) Route

func (msg *MsgUpdateHostChain) Route() string

func (*MsgUpdateHostChain) Size

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

func (*MsgUpdateHostChain) String

func (m *MsgUpdateHostChain) String() string

func (*MsgUpdateHostChain) Type

func (msg *MsgUpdateHostChain) Type() string

func (*MsgUpdateHostChain) Unmarshal

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

func (*MsgUpdateHostChain) ValidateBasic

func (msg *MsgUpdateHostChain) ValidateBasic() error

func (*MsgUpdateHostChain) XXX_DiscardUnknown

func (m *MsgUpdateHostChain) XXX_DiscardUnknown()

func (*MsgUpdateHostChain) XXX_Marshal

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

func (*MsgUpdateHostChain) XXX_Merge

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

func (*MsgUpdateHostChain) XXX_Size

func (m *MsgUpdateHostChain) XXX_Size() int

func (*MsgUpdateHostChain) XXX_Unmarshal

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

type MsgUpdateHostChainResponse

type MsgUpdateHostChainResponse struct {
}

func (*MsgUpdateHostChainResponse) Descriptor

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

func (*MsgUpdateHostChainResponse) Marshal

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

func (*MsgUpdateHostChainResponse) MarshalTo

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

func (*MsgUpdateHostChainResponse) MarshalToSizedBuffer

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

func (*MsgUpdateHostChainResponse) ProtoMessage

func (*MsgUpdateHostChainResponse) ProtoMessage()

func (*MsgUpdateHostChainResponse) Reset

func (m *MsgUpdateHostChainResponse) Reset()

func (*MsgUpdateHostChainResponse) Size

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

func (*MsgUpdateHostChainResponse) String

func (m *MsgUpdateHostChainResponse) String() string

func (*MsgUpdateHostChainResponse) Unmarshal

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

func (*MsgUpdateHostChainResponse) XXX_DiscardUnknown

func (m *MsgUpdateHostChainResponse) XXX_DiscardUnknown()

func (*MsgUpdateHostChainResponse) XXX_Marshal

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

func (*MsgUpdateHostChainResponse) XXX_Merge

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

func (*MsgUpdateHostChainResponse) XXX_Size

func (m *MsgUpdateHostChainResponse) XXX_Size() int

func (*MsgUpdateHostChainResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func NewMsgUpdateParams

func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes

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

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 {
}

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 {
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(admin sdk.AccAddress) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetAdmin

func (m *Params) GetAdmin() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

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 QueryAllHostChainsRequest

type QueryAllHostChainsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllHostChainsRequest) Descriptor

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

func (*QueryAllHostChainsRequest) GetPagination

func (m *QueryAllHostChainsRequest) GetPagination() *query.PageRequest

func (*QueryAllHostChainsRequest) Marshal

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

func (*QueryAllHostChainsRequest) MarshalTo

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

func (*QueryAllHostChainsRequest) MarshalToSizedBuffer

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

func (*QueryAllHostChainsRequest) ProtoMessage

func (*QueryAllHostChainsRequest) ProtoMessage()

func (*QueryAllHostChainsRequest) Reset

func (m *QueryAllHostChainsRequest) Reset()

func (*QueryAllHostChainsRequest) Size

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

func (*QueryAllHostChainsRequest) String

func (m *QueryAllHostChainsRequest) String() string

func (*QueryAllHostChainsRequest) Unmarshal

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

func (*QueryAllHostChainsRequest) XXX_DiscardUnknown

func (m *QueryAllHostChainsRequest) XXX_DiscardUnknown()

func (*QueryAllHostChainsRequest) XXX_Marshal

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

func (*QueryAllHostChainsRequest) XXX_Merge

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

func (*QueryAllHostChainsRequest) XXX_Size

func (m *QueryAllHostChainsRequest) XXX_Size() int

func (*QueryAllHostChainsRequest) XXX_Unmarshal

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

type QueryAllHostChainsResponse

type QueryAllHostChainsResponse struct {
	HostChains []HostChain         `protobuf:"bytes,1,rep,name=host_chains,json=hostChains,proto3" json:"host_chains"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllHostChainsResponse) Descriptor

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

func (*QueryAllHostChainsResponse) GetHostChains

func (m *QueryAllHostChainsResponse) GetHostChains() []HostChain

func (*QueryAllHostChainsResponse) GetPagination

func (m *QueryAllHostChainsResponse) GetPagination() *query.PageResponse

func (*QueryAllHostChainsResponse) Marshal

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

func (*QueryAllHostChainsResponse) MarshalTo

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

func (*QueryAllHostChainsResponse) MarshalToSizedBuffer

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

func (*QueryAllHostChainsResponse) ProtoMessage

func (*QueryAllHostChainsResponse) ProtoMessage()

func (*QueryAllHostChainsResponse) Reset

func (m *QueryAllHostChainsResponse) Reset()

func (*QueryAllHostChainsResponse) Size

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

func (*QueryAllHostChainsResponse) String

func (m *QueryAllHostChainsResponse) String() string

func (*QueryAllHostChainsResponse) Unmarshal

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

func (*QueryAllHostChainsResponse) XXX_DiscardUnknown

func (m *QueryAllHostChainsResponse) XXX_DiscardUnknown()

func (*QueryAllHostChainsResponse) XXX_Marshal

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

func (*QueryAllHostChainsResponse) XXX_Merge

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

func (*QueryAllHostChainsResponse) XXX_Size

func (m *QueryAllHostChainsResponse) XXX_Size() int

func (*QueryAllHostChainsResponse) XXX_Unmarshal

func (m *QueryAllHostChainsResponse) 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)
	// Queries a list of Chain items.
	HostChain(ctx context.Context, in *QueryGetHostChainRequest, opts ...grpc.CallOption) (*QueryGetHostChainResponse, error)
	AllHostChains(ctx context.Context, in *QueryAllHostChainsRequest, opts ...grpc.CallOption) (*QueryAllHostChainsResponse, 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 QueryGetHostChainRequest

type QueryGetHostChainRequest struct {
	ID uint64 `protobuf:"varint,1,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"`
}

func (*QueryGetHostChainRequest) Descriptor

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

func (*QueryGetHostChainRequest) GetID

func (m *QueryGetHostChainRequest) GetID() uint64

func (*QueryGetHostChainRequest) Marshal

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

func (*QueryGetHostChainRequest) MarshalTo

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

func (*QueryGetHostChainRequest) MarshalToSizedBuffer

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

func (*QueryGetHostChainRequest) ProtoMessage

func (*QueryGetHostChainRequest) ProtoMessage()

func (*QueryGetHostChainRequest) Reset

func (m *QueryGetHostChainRequest) Reset()

func (*QueryGetHostChainRequest) Size

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

func (*QueryGetHostChainRequest) String

func (m *QueryGetHostChainRequest) String() string

func (*QueryGetHostChainRequest) Unmarshal

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

func (*QueryGetHostChainRequest) XXX_DiscardUnknown

func (m *QueryGetHostChainRequest) XXX_DiscardUnknown()

func (*QueryGetHostChainRequest) XXX_Marshal

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

func (*QueryGetHostChainRequest) XXX_Merge

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

func (*QueryGetHostChainRequest) XXX_Size

func (m *QueryGetHostChainRequest) XXX_Size() int

func (*QueryGetHostChainRequest) XXX_Unmarshal

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

type QueryGetHostChainResponse

type QueryGetHostChainResponse struct {
	HostChain HostChain `protobuf:"bytes,1,opt,name=host_chain,json=hostChain,proto3" json:"host_chain"`
}

func (*QueryGetHostChainResponse) Descriptor

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

func (*QueryGetHostChainResponse) GetHostChain

func (m *QueryGetHostChainResponse) GetHostChain() HostChain

func (*QueryGetHostChainResponse) Marshal

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

func (*QueryGetHostChainResponse) MarshalTo

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

func (*QueryGetHostChainResponse) MarshalToSizedBuffer

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

func (*QueryGetHostChainResponse) ProtoMessage

func (*QueryGetHostChainResponse) ProtoMessage()

func (*QueryGetHostChainResponse) Reset

func (m *QueryGetHostChainResponse) Reset()

func (*QueryGetHostChainResponse) Size

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

func (*QueryGetHostChainResponse) String

func (m *QueryGetHostChainResponse) String() string

func (*QueryGetHostChainResponse) Unmarshal

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

func (*QueryGetHostChainResponse) XXX_DiscardUnknown

func (m *QueryGetHostChainResponse) XXX_DiscardUnknown()

func (*QueryGetHostChainResponse) XXX_Marshal

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

func (*QueryGetHostChainResponse) XXX_Merge

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

func (*QueryGetHostChainResponse) XXX_Size

func (m *QueryGetHostChainResponse) XXX_Size() int

func (*QueryGetHostChainResponse) XXX_Unmarshal

func (m *QueryGetHostChainResponse) 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)
	// Queries a list of Chain items.
	HostChain(context.Context, *QueryGetHostChainRequest) (*QueryGetHostChainResponse, error)
	AllHostChains(context.Context, *QueryAllHostChainsRequest) (*QueryAllHostChainsResponse, 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) CreateHostChain

func (*UnimplementedMsgServer) DeleteHostChain

func (*UnimplementedMsgServer) UpdateHostChain

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllHostChains

func (*UnimplementedQueryServer) HostChain

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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