types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeRegisterZone      = "register_zone"
	EventTypeRedemptionRequest = "request_redemption"

	AttributeKeyConnectionId     = "connection_id"
	AttributeKeyRecipientChain   = "chain_id"
	AttributeKeyRecipientAddress = "recipient"
	AttributeKeyBurnAmount       = "burn_amount"
	AttributeKeyRedeemAmount     = "redeem_amount"
	AttributeKeySourceAddress    = "source"

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

	// 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

	PortID = ModuleName

	Version = "ics27-1"

	// this value defines the number of delegation accounts per zone. This can only ever increase.
	DelegationAccountCount = 10
	// this value defines the number of delegation accounts a given deposit should be shared amongst
	DelegationAccountSplit = 9

	// beginblocker intervals
	DepositInterval             = 5
	DelegateInterval            = 25
	DelegateDelegationsInterval = 100 // probably wants to be somewhere in the region of 1000 (c. 3h) in prod with 7s blocks.
	ValidatorSetInterval        = 25
)
View Source
const (
	TypeMsgRegisterZone      = "registerzone"
	TypeMsgRequestRedemption = "requestredemption"
	TypeMsgSignalIntent      = "signalintent"
)

interchainstaking message types

Variables

View Source
var (
	ErrInvalidVersion = errors.New("invalid version")
	ErrMaxChannels    = errors.New("max channels exceeded")
)
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 (
	KeyPrefixZone             = []byte{prefixZone}
	KeyPrefixIntent           = []byte{prefixIntent}
	KeyPrefixPortMapping      = []byte{prefixPortMapping}
	KeyPrefixReceipt          = []byte{prefixReceipt}
	KeyPrefixWithdrawalRecord = []byte{prefixWithdrawalRecord}
)
View Source
var (
	ErrInvalidLengthMessages        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessages          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultDelegateAccountCount uint64  = 100
	DefaultDelegateAccountSplit uint64  = 10
	DefaultDepositInterval      uint64  = 50
	DefaultDelegateInterval     uint64  = 100
	DefaultDelegationsInterval  uint64  = 200
	DefaultValidatorSetInterval uint64  = 200
	DefaultCommissionRate       sdk.Dec = func() sdk.Dec { v, _ := sdk.NewDecFromStr("0.02"); return v }()

	// KeyDelegateAccountCount is store's key for DelegateAccountCount option
	KeyDelegateAccountCount = []byte("DelegateAccountCount")
	// KeyDelegateAccountSplit is store's key for the DelegateAccountSplit option
	KeyDelegateAccountSplit = []byte("DelegateAccountSplit")
	// KeyDepositInterval is store's key for the DepositInterval option
	KeyDepositInterval = []byte("DepositInterval")
	// KeyDelegateInterval is store's key for the DelegateInterval option
	KeyDelegateInterval = []byte("DelegateInterval")
	// KeyDelegationsInterval is store's key for the DelegationsInterval option
	KeyDelegationsInterval = []byte("DelegationsInterval")
	// KeyValidatorSetInterval is store's key for the ValidatorSetInterval option
	KeyValidatorSetInterval = []byte("ValidatorSetInterval")
	// KeyCommissionRate is store's key for the CommissionRate option
	KeyCommissionRate = []byte("CommissionRate")
)

Default ics params

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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func AccAddressFromBech32

func AccAddressFromBech32(address string, check_hrp string) (addr sdk.AccAddress, err error)

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for ics module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgHandler

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValAddressFromBech32

func ValAddressFromBech32(address string, check_hrp string) (addr sdk.ValAddress, err error)

Types

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 Delegation

type Delegation struct {
	DelegationAddress string `protobuf:"bytes,1,opt,name=delegation_address,json=delegationAddress,proto3" json:"delegation_address,omitempty"`
	ValidatorAddress  string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// TODO: determine whether this is Dec (shares) or Coins (tokens)
	Amount  github_com_cosmos_cosmos_sdk_types.Dec   `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"amount"`
	Rewards github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"rewards"`
	// Delegations here? or against validator?
	RedelegationEnd int64 `protobuf:"varint,5,opt,name=redelegation_end,json=redelegationEnd,proto3" json:"redelegation_end,omitempty"`
}

func (*Delegation) Descriptor

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

func (*Delegation) GetDelegationAddress

func (m *Delegation) GetDelegationAddress() string

func (*Delegation) GetRedelegationEnd

func (m *Delegation) GetRedelegationEnd() int64

func (*Delegation) GetRewards

func (*Delegation) GetValidatorAddress

func (m *Delegation) GetValidatorAddress() string

func (*Delegation) Marshal

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

func (*Delegation) MarshalTo

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

func (*Delegation) MarshalToSizedBuffer

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

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

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

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

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

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

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

func (*Delegation) XXX_Merge

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

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

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

type DelegatorIntent

type DelegatorIntent struct {
	Delegator string             `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Intents   []*ValidatorIntent `protobuf:"bytes,2,rep,name=intents,proto3" json:"intents,omitempty"`
}

func (DelegatorIntent) AddOrdinal

func (di DelegatorIntent) AddOrdinal(multiplier sdk.Int, intents map[string]*ValidatorIntent) DelegatorIntent

func (*DelegatorIntent) Descriptor

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

func (*DelegatorIntent) GetDelegator

func (m *DelegatorIntent) GetDelegator() string

func (*DelegatorIntent) GetIntents

func (m *DelegatorIntent) GetIntents() []*ValidatorIntent

func (*DelegatorIntent) Marshal

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

func (*DelegatorIntent) MarshalTo

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

func (*DelegatorIntent) MarshalToSizedBuffer

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

func (DelegatorIntent) Normalize

func (di DelegatorIntent) Normalize() DelegatorIntent

func (DelegatorIntent) Ordinalize

func (di DelegatorIntent) Ordinalize(multiple sdk.Int) DelegatorIntent

func (*DelegatorIntent) ProtoMessage

func (*DelegatorIntent) ProtoMessage()

func (*DelegatorIntent) Reset

func (m *DelegatorIntent) Reset()

func (*DelegatorIntent) Size

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

func (*DelegatorIntent) String

func (m *DelegatorIntent) String() string

func (DelegatorIntent) ToMap

func (di DelegatorIntent) ToMap(multiple sdk.Int) map[string]sdk.Int

func (*DelegatorIntent) Unmarshal

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

func (*DelegatorIntent) XXX_DiscardUnknown

func (m *DelegatorIntent) XXX_DiscardUnknown()

func (*DelegatorIntent) XXX_Marshal

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

func (*DelegatorIntent) XXX_Merge

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

func (*DelegatorIntent) XXX_Size

func (m *DelegatorIntent) XXX_Size() int

func (*DelegatorIntent) XXX_Unmarshal

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

type Errors

type Errors struct {
	Errors map[string]error
}

Error represents aggregated errors, contained in a map.

func NewMultiError

func NewMultiError(errors map[string]error) Errors

NewMultiError returns an error aggregate using the given map.

func (Errors) Error

func (e Errors) Error() string

type GenesisState

type GenesisState struct {
	Params Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Zones  []RegisteredZone `protobuf:"bytes,2,rep,name=zones,proto3" json:"zones"`
}

GenesisState defines the interchainstaking module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default ics genesis state

func NewGenesisState

func NewGenesisState(params Params, zones []RegisteredZone) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetZones

func (m *GenesisState) GetZones() []RegisteredZone

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 ICAAccount

type ICAAccount struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// balance defines the different coins this balance holds.
	Balance          github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"`
	DelegatedBalance github_com_cosmos_cosmos_sdk_types.Coin  `` /* 150-byte string literal not displayed */
	PortName         string                                   `protobuf:"bytes,4,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
}

func (*ICAAccount) Descriptor

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

func (*ICAAccount) GetAddress

func (m *ICAAccount) GetAddress() string

func (*ICAAccount) GetBalance

func (*ICAAccount) GetPortName

func (m *ICAAccount) GetPortName() string

func (*ICAAccount) Marshal

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

func (*ICAAccount) MarshalTo

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

func (*ICAAccount) MarshalToSizedBuffer

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

func (*ICAAccount) ProtoMessage

func (*ICAAccount) ProtoMessage()

func (*ICAAccount) Reset

func (m *ICAAccount) Reset()

func (*ICAAccount) Size

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

func (*ICAAccount) String

func (m *ICAAccount) String() string

func (*ICAAccount) Unmarshal

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

func (*ICAAccount) XXX_DiscardUnknown

func (m *ICAAccount) XXX_DiscardUnknown()

func (*ICAAccount) XXX_Marshal

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

func (*ICAAccount) XXX_Merge

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

func (*ICAAccount) XXX_Size

func (m *ICAAccount) XXX_Size() int

func (*ICAAccount) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterZone defines a method for registering a new zone. TODO: deprecate
	// in favour of governance vote.
	RegisterZone(ctx context.Context, in *MsgRegisterZone, opts ...grpc.CallOption) (*MsgRegisterZoneResponse, error)
	// RequestRedemption defines a method for requesting burning of qAssets for
	// native assets.
	RequestRedemption(ctx context.Context, in *MsgRequestRedemption, opts ...grpc.CallOption) (*MsgRequestRedemptionResponse, error)
	// SignalIntent defines a method for signalling voting intent for one or more
	// validators.
	SignalIntent(ctx context.Context, in *MsgSignalIntent, opts ...grpc.CallOption) (*MsgSignalIntentResponse, 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 MsgRegisterZone

type MsgRegisterZone struct {
	Identifier   string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty" yaml:"zone_name"`
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"`
	BaseDenom    string `protobuf:"bytes,4,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"`
	LocalDenom   string `protobuf:"bytes,5,opt,name=local_denom,json=localDenom,proto3" json:"local_denom,omitempty" yaml:"local_denom"`
	FromAddress  string `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	MultiSend    bool   `protobuf:"varint,7,opt,name=multi_send,json=multiSend,proto3" json:"multi_send,omitempty"`
}

MsgRegisterZone represents a message type to register a new zone. TODO: deprecate in favour of governance vote.

func NewMsgRegisterZone

func NewMsgRegisterZone(
	identifier string,
	connection_id string,
	chain_id string,
	local_denom string,
	base_denom string,
	from_address sdk.Address,
	multi_send bool,
) *MsgRegisterZone

NewMsgRegisterZone - construct a msg to register a new zone.

func (*MsgRegisterZone) Descriptor

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

func (MsgRegisterZone) GetSignBytes

func (msg MsgRegisterZone) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRegisterZone) GetSigners

func (msg MsgRegisterZone) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgRegisterZone) Marshal

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

func (*MsgRegisterZone) MarshalTo

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

func (*MsgRegisterZone) MarshalToSizedBuffer

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

func (*MsgRegisterZone) ProtoMessage

func (*MsgRegisterZone) ProtoMessage()

func (*MsgRegisterZone) Reset

func (m *MsgRegisterZone) Reset()

func (MsgRegisterZone) Route

func (msg MsgRegisterZone) Route() string

Route Implements Msg.

func (*MsgRegisterZone) Size

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

func (*MsgRegisterZone) String

func (m *MsgRegisterZone) String() string

func (MsgRegisterZone) Type

func (msg MsgRegisterZone) Type() string

Type Implements Msg.

func (*MsgRegisterZone) Unmarshal

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

func (MsgRegisterZone) ValidateBasic

func (msg MsgRegisterZone) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgRegisterZone) XXX_DiscardUnknown

func (m *MsgRegisterZone) XXX_DiscardUnknown()

func (*MsgRegisterZone) XXX_Marshal

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

func (*MsgRegisterZone) XXX_Merge

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

func (*MsgRegisterZone) XXX_Size

func (m *MsgRegisterZone) XXX_Size() int

func (*MsgRegisterZone) XXX_Unmarshal

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

type MsgRegisterZoneResponse

type MsgRegisterZoneResponse struct {
}

MsgRegisterZoneResponse defines the MsgRegisterZone response type.

func (*MsgRegisterZoneResponse) Descriptor

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

func (*MsgRegisterZoneResponse) Marshal

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

func (*MsgRegisterZoneResponse) MarshalTo

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

func (*MsgRegisterZoneResponse) MarshalToSizedBuffer

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

func (*MsgRegisterZoneResponse) ProtoMessage

func (*MsgRegisterZoneResponse) ProtoMessage()

func (*MsgRegisterZoneResponse) Reset

func (m *MsgRegisterZoneResponse) Reset()

func (*MsgRegisterZoneResponse) Size

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

func (*MsgRegisterZoneResponse) String

func (m *MsgRegisterZoneResponse) String() string

func (*MsgRegisterZoneResponse) Unmarshal

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

func (*MsgRegisterZoneResponse) XXX_DiscardUnknown

func (m *MsgRegisterZoneResponse) XXX_DiscardUnknown()

func (*MsgRegisterZoneResponse) XXX_Marshal

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

func (*MsgRegisterZoneResponse) XXX_Merge

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

func (*MsgRegisterZoneResponse) XXX_Size

func (m *MsgRegisterZoneResponse) XXX_Size() int

func (*MsgRegisterZoneResponse) XXX_Unmarshal

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

type MsgRequestRedemption

type MsgRequestRedemption struct {
	Coin               string `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty" yaml:"coin"`
	DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	FromAddress        string `protobuf:"bytes,3,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
}

MsgRegisterZone represents a message type to request a burn of qAssets for native assets.

func NewMsgRequestRedemption

func NewMsgRequestRedemption(coin string, destination_address string, from_address sdk.Address) *MsgRequestRedemption

NewMsgRequestRedemption - construct a msg to request redemption.

func (*MsgRequestRedemption) Descriptor

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

func (MsgRequestRedemption) GetSignBytes

func (msg MsgRequestRedemption) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRequestRedemption) GetSigners

func (msg MsgRequestRedemption) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgRequestRedemption) Marshal

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

func (*MsgRequestRedemption) MarshalTo

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

func (*MsgRequestRedemption) MarshalToSizedBuffer

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

func (*MsgRequestRedemption) ProtoMessage

func (*MsgRequestRedemption) ProtoMessage()

func (*MsgRequestRedemption) Reset

func (m *MsgRequestRedemption) Reset()

func (MsgRequestRedemption) Route

func (msg MsgRequestRedemption) Route() string

Route Implements Msg.

func (*MsgRequestRedemption) Size

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

func (*MsgRequestRedemption) String

func (m *MsgRequestRedemption) String() string

func (MsgRequestRedemption) Type

func (msg MsgRequestRedemption) Type() string

Type Implements Msg.

func (*MsgRequestRedemption) Unmarshal

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

func (MsgRequestRedemption) ValidateBasic

func (msg MsgRequestRedemption) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgRequestRedemption) XXX_DiscardUnknown

func (m *MsgRequestRedemption) XXX_DiscardUnknown()

func (*MsgRequestRedemption) XXX_Marshal

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

func (*MsgRequestRedemption) XXX_Merge

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

func (*MsgRequestRedemption) XXX_Size

func (m *MsgRequestRedemption) XXX_Size() int

func (*MsgRequestRedemption) XXX_Unmarshal

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

type MsgRequestRedemptionResponse

type MsgRequestRedemptionResponse struct {
}

MsgRequestRedemptionResponse defines the MsgRequestRedemption response type.

func (*MsgRequestRedemptionResponse) Descriptor

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

func (*MsgRequestRedemptionResponse) Marshal

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

func (*MsgRequestRedemptionResponse) MarshalTo

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

func (*MsgRequestRedemptionResponse) MarshalToSizedBuffer

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

func (*MsgRequestRedemptionResponse) ProtoMessage

func (*MsgRequestRedemptionResponse) ProtoMessage()

func (*MsgRequestRedemptionResponse) Reset

func (m *MsgRequestRedemptionResponse) Reset()

func (*MsgRequestRedemptionResponse) Size

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

func (*MsgRequestRedemptionResponse) String

func (*MsgRequestRedemptionResponse) Unmarshal

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

func (*MsgRequestRedemptionResponse) XXX_DiscardUnknown

func (m *MsgRequestRedemptionResponse) XXX_DiscardUnknown()

func (*MsgRequestRedemptionResponse) XXX_Marshal

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

func (*MsgRequestRedemptionResponse) XXX_Merge

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

func (*MsgRequestRedemptionResponse) XXX_Size

func (m *MsgRequestRedemptionResponse) XXX_Size() int

func (*MsgRequestRedemptionResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterZone defines a method for registering a new zone. TODO: deprecate
	// in favour of governance vote.
	RegisterZone(context.Context, *MsgRegisterZone) (*MsgRegisterZoneResponse, error)
	// RequestRedemption defines a method for requesting burning of qAssets for
	// native assets.
	RequestRedemption(context.Context, *MsgRequestRedemption) (*MsgRequestRedemptionResponse, error)
	// SignalIntent defines a method for signalling voting intent for one or more
	// validators.
	SignalIntent(context.Context, *MsgSignalIntent) (*MsgSignalIntentResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSignalIntent

type MsgSignalIntent struct {
	ChainId     string             `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	Intents     []*ValidatorIntent `protobuf:"bytes,2,rep,name=intents,proto3" json:"intents,omitempty" yaml:"intents"`
	FromAddress string             `protobuf:"bytes,3,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
}

MsgSignalIntent represents a message type for signalling voting intent for one or more validators.

func NewMsgSignalIntent

func NewMsgSignalIntent(chain_id string, intents []*ValidatorIntent, from_address sdk.Address) *MsgSignalIntent

NewMsgRequestRedemption - construct a msg to request redemption.

func (*MsgSignalIntent) Descriptor

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

func (MsgSignalIntent) GetSignBytes

func (msg MsgSignalIntent) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgSignalIntent) GetSigners

func (msg MsgSignalIntent) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgSignalIntent) Marshal

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

func (*MsgSignalIntent) MarshalTo

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

func (*MsgSignalIntent) MarshalToSizedBuffer

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

func (*MsgSignalIntent) ProtoMessage

func (*MsgSignalIntent) ProtoMessage()

func (*MsgSignalIntent) Reset

func (m *MsgSignalIntent) Reset()

func (MsgSignalIntent) Route

func (msg MsgSignalIntent) Route() string

Route Implements Msg.

func (*MsgSignalIntent) Size

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

func (*MsgSignalIntent) String

func (m *MsgSignalIntent) String() string

func (MsgSignalIntent) Type

func (msg MsgSignalIntent) Type() string

Type Implements Msg.

func (*MsgSignalIntent) Unmarshal

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

func (MsgSignalIntent) ValidateBasic

func (msg MsgSignalIntent) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgSignalIntent) XXX_DiscardUnknown

func (m *MsgSignalIntent) XXX_DiscardUnknown()

func (*MsgSignalIntent) XXX_Marshal

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

func (*MsgSignalIntent) XXX_Merge

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

func (*MsgSignalIntent) XXX_Size

func (m *MsgSignalIntent) XXX_Size() int

func (*MsgSignalIntent) XXX_Unmarshal

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

type MsgSignalIntentResponse

type MsgSignalIntentResponse struct {
}

MsgSignalIntentResponse defines the MsgSignalIntent response type.

func (*MsgSignalIntentResponse) Descriptor

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

func (*MsgSignalIntentResponse) Marshal

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

func (*MsgSignalIntentResponse) MarshalTo

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

func (*MsgSignalIntentResponse) MarshalToSizedBuffer

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

func (*MsgSignalIntentResponse) ProtoMessage

func (*MsgSignalIntentResponse) ProtoMessage()

func (*MsgSignalIntentResponse) Reset

func (m *MsgSignalIntentResponse) Reset()

func (*MsgSignalIntentResponse) Size

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

func (*MsgSignalIntentResponse) String

func (m *MsgSignalIntentResponse) String() string

func (*MsgSignalIntentResponse) Unmarshal

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

func (*MsgSignalIntentResponse) XXX_DiscardUnknown

func (m *MsgSignalIntentResponse) XXX_DiscardUnknown()

func (*MsgSignalIntentResponse) XXX_Marshal

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

func (*MsgSignalIntentResponse) XXX_Merge

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

func (*MsgSignalIntentResponse) XXX_Size

func (m *MsgSignalIntentResponse) XXX_Size() int

func (*MsgSignalIntentResponse) XXX_Unmarshal

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

type Params

type Params struct {
	DelegationAccountCount uint64                                 `` /* 130-byte string literal not displayed */
	DelegationAccountSplit uint64                                 `` /* 130-byte string literal not displayed */
	DepositInterval        uint64                                 `protobuf:"varint,3,opt,name=deposit_interval,json=depositInterval,proto3" json:"deposit_interval,omitempty"`
	DelegateInterval       uint64                                 `protobuf:"varint,4,opt,name=delegate_interval,json=delegateInterval,proto3" json:"delegate_interval,omitempty"`
	DelegationsInterval    uint64                                 `protobuf:"varint,5,opt,name=delegations_interval,json=delegationsInterval,proto3" json:"delegations_interval,omitempty"`
	ValidatorsetInterval   uint64                                 `protobuf:"varint,6,opt,name=validatorset_interval,json=validatorsetInterval,proto3" json:"validatorset_interval,omitempty"`
	CommissionRate         github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams default ics params

func MustUnmarshalParams

func MustUnmarshalParams(cdc *codec.LegacyAmino, value []byte) Params

unmarshal the current staking params value from store key or panic

func NewParams

func NewParams(
	delegate_account_count uint64,
	delegate_account_split uint64,
	deposit_interval uint64,
	delegate_interval uint64,
	delegations_interval uint64,
	valset_interval uint64,
	commission_rate sdk.Dec,
) Params

NewParams creates a new ics Params instance

func UnmarshalParams

func UnmarshalParams(cdc *codec.LegacyAmino, value []byte) (params Params, err error)

unmarshal the current staking params value from store key

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetDelegateInterval

func (m *Params) GetDelegateInterval() uint64

func (*Params) GetDelegationAccountCount

func (m *Params) GetDelegationAccountCount() uint64

func (*Params) GetDelegationAccountSplit

func (m *Params) GetDelegationAccountSplit() uint64

func (*Params) GetDelegationsInterval

func (m *Params) GetDelegationsInterval() uint64

func (*Params) GetDepositInterval

func (m *Params) GetDepositInterval() uint64

func (*Params) GetValidatorsetInterval

func (m *Params) GetValidatorsetInterval() uint64

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 implements 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

func (*Params) Unmarshal

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

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 PortConnectionTuple

type PortConnectionTuple struct {
	ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	PortId       string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
}

func (*PortConnectionTuple) Descriptor

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

func (*PortConnectionTuple) GetConnectionId

func (m *PortConnectionTuple) GetConnectionId() string

func (*PortConnectionTuple) GetPortId

func (m *PortConnectionTuple) GetPortId() string

func (*PortConnectionTuple) Marshal

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

func (*PortConnectionTuple) MarshalTo

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

func (*PortConnectionTuple) MarshalToSizedBuffer

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

func (*PortConnectionTuple) ProtoMessage

func (*PortConnectionTuple) ProtoMessage()

func (*PortConnectionTuple) Reset

func (m *PortConnectionTuple) Reset()

func (*PortConnectionTuple) Size

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

func (*PortConnectionTuple) String

func (m *PortConnectionTuple) String() string

func (*PortConnectionTuple) Unmarshal

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

func (*PortConnectionTuple) XXX_DiscardUnknown

func (m *PortConnectionTuple) XXX_DiscardUnknown()

func (*PortConnectionTuple) XXX_Marshal

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

func (*PortConnectionTuple) XXX_Merge

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

func (*PortConnectionTuple) XXX_Size

func (m *PortConnectionTuple) XXX_Size() int

func (*PortConnectionTuple) XXX_Unmarshal

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

type PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
	IsBound(ctx sdk.Context, portID string) bool
}

PortKeeper defines the expected IBC port keeper

type QueryClient

type QueryClient interface {
	// RegisteredZoneInfos provides meta data on connected zones.
	RegisteredZoneInfos(ctx context.Context, in *QueryRegisteredZonesInfoRequest, opts ...grpc.CallOption) (*QueryRegisteredZonesInfoResponse, error)
	// DepositAccountFromAddress provides data on the deposit address for a
	// connected zone.
	DepositAccountFromAddress(ctx context.Context, in *QueryDepositAccountForChainRequest, opts ...grpc.CallOption) (*QueryDepositAccountForChainResponse, error)
	// DelegatorIntent provides data on the intent of the delegator for the given
	// zone.
	DelegatorIntent(ctx context.Context, in *QueryDelegatorIntentRequest, opts ...grpc.CallOption) (*QueryDelegatorIntentResponse, 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 QueryDelegatorIntentRequest

type QueryDelegatorIntentRequest struct {
	ChainId     string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
}

func (*QueryDelegatorIntentRequest) Descriptor

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

func (*QueryDelegatorIntentRequest) GetChainId

func (m *QueryDelegatorIntentRequest) GetChainId() string

func (*QueryDelegatorIntentRequest) GetFromAddress

func (m *QueryDelegatorIntentRequest) GetFromAddress() string

func (*QueryDelegatorIntentRequest) Marshal

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

func (*QueryDelegatorIntentRequest) MarshalTo

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

func (*QueryDelegatorIntentRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorIntentRequest) ProtoMessage

func (*QueryDelegatorIntentRequest) ProtoMessage()

func (*QueryDelegatorIntentRequest) Reset

func (m *QueryDelegatorIntentRequest) Reset()

func (*QueryDelegatorIntentRequest) Size

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

func (*QueryDelegatorIntentRequest) String

func (m *QueryDelegatorIntentRequest) String() string

func (*QueryDelegatorIntentRequest) Unmarshal

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

func (*QueryDelegatorIntentRequest) XXX_DiscardUnknown

func (m *QueryDelegatorIntentRequest) XXX_DiscardUnknown()

func (*QueryDelegatorIntentRequest) XXX_Marshal

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

func (*QueryDelegatorIntentRequest) XXX_Merge

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

func (*QueryDelegatorIntentRequest) XXX_Size

func (m *QueryDelegatorIntentRequest) XXX_Size() int

func (*QueryDelegatorIntentRequest) XXX_Unmarshal

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

type QueryDelegatorIntentResponse

type QueryDelegatorIntentResponse struct {
	Intent *DelegatorIntent `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
}

func (*QueryDelegatorIntentResponse) Descriptor

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

func (*QueryDelegatorIntentResponse) GetIntent

func (*QueryDelegatorIntentResponse) Marshal

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

func (*QueryDelegatorIntentResponse) MarshalTo

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

func (*QueryDelegatorIntentResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorIntentResponse) ProtoMessage

func (*QueryDelegatorIntentResponse) ProtoMessage()

func (*QueryDelegatorIntentResponse) Reset

func (m *QueryDelegatorIntentResponse) Reset()

func (*QueryDelegatorIntentResponse) Size

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

func (*QueryDelegatorIntentResponse) String

func (*QueryDelegatorIntentResponse) Unmarshal

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

func (*QueryDelegatorIntentResponse) XXX_DiscardUnknown

func (m *QueryDelegatorIntentResponse) XXX_DiscardUnknown()

func (*QueryDelegatorIntentResponse) XXX_Marshal

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

func (*QueryDelegatorIntentResponse) XXX_Merge

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

func (*QueryDelegatorIntentResponse) XXX_Size

func (m *QueryDelegatorIntentResponse) XXX_Size() int

func (*QueryDelegatorIntentResponse) XXX_Unmarshal

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

type QueryDepositAccountForChainRequest

type QueryDepositAccountForChainRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
}

QueryDepositAccountForChainRequest is the request type for the Query/InterchainAccountAddress RPC

func (*QueryDepositAccountForChainRequest) Descriptor

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

func (*QueryDepositAccountForChainRequest) GetChainId

func (*QueryDepositAccountForChainRequest) Marshal

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

func (*QueryDepositAccountForChainRequest) MarshalTo

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

func (*QueryDepositAccountForChainRequest) MarshalToSizedBuffer

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

func (*QueryDepositAccountForChainRequest) ProtoMessage

func (*QueryDepositAccountForChainRequest) ProtoMessage()

func (*QueryDepositAccountForChainRequest) Reset

func (*QueryDepositAccountForChainRequest) Size

func (*QueryDepositAccountForChainRequest) String

func (*QueryDepositAccountForChainRequest) Unmarshal

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

func (*QueryDepositAccountForChainRequest) XXX_DiscardUnknown

func (m *QueryDepositAccountForChainRequest) XXX_DiscardUnknown()

func (*QueryDepositAccountForChainRequest) XXX_Marshal

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

func (*QueryDepositAccountForChainRequest) XXX_Merge

func (*QueryDepositAccountForChainRequest) XXX_Size

func (*QueryDepositAccountForChainRequest) XXX_Unmarshal

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

type QueryDepositAccountForChainResponse

type QueryDepositAccountForChainResponse struct {
	DepositAccountAddress string `` /* 157-byte string literal not displayed */
}

QueryDepositAccountForChainResponse the response type for the Query/InterchainAccountAddress RPC

func (*QueryDepositAccountForChainResponse) Descriptor

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

func (*QueryDepositAccountForChainResponse) GetDepositAccountAddress

func (m *QueryDepositAccountForChainResponse) GetDepositAccountAddress() string

func (*QueryDepositAccountForChainResponse) Marshal

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

func (*QueryDepositAccountForChainResponse) MarshalTo

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

func (*QueryDepositAccountForChainResponse) MarshalToSizedBuffer

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

func (*QueryDepositAccountForChainResponse) ProtoMessage

func (*QueryDepositAccountForChainResponse) ProtoMessage()

func (*QueryDepositAccountForChainResponse) Reset

func (*QueryDepositAccountForChainResponse) Size

func (*QueryDepositAccountForChainResponse) String

func (*QueryDepositAccountForChainResponse) Unmarshal

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

func (*QueryDepositAccountForChainResponse) XXX_DiscardUnknown

func (m *QueryDepositAccountForChainResponse) XXX_DiscardUnknown()

func (*QueryDepositAccountForChainResponse) XXX_Marshal

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

func (*QueryDepositAccountForChainResponse) XXX_Merge

func (*QueryDepositAccountForChainResponse) XXX_Size

func (*QueryDepositAccountForChainResponse) XXX_Unmarshal

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

type QueryRegisteredZonesInfoRequest

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

func (*QueryRegisteredZonesInfoRequest) Descriptor

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

func (*QueryRegisteredZonesInfoRequest) GetPagination

func (*QueryRegisteredZonesInfoRequest) Marshal

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

func (*QueryRegisteredZonesInfoRequest) MarshalTo

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

func (*QueryRegisteredZonesInfoRequest) MarshalToSizedBuffer

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

func (*QueryRegisteredZonesInfoRequest) ProtoMessage

func (*QueryRegisteredZonesInfoRequest) ProtoMessage()

func (*QueryRegisteredZonesInfoRequest) Reset

func (*QueryRegisteredZonesInfoRequest) Size

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

func (*QueryRegisteredZonesInfoRequest) String

func (*QueryRegisteredZonesInfoRequest) Unmarshal

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

func (*QueryRegisteredZonesInfoRequest) XXX_DiscardUnknown

func (m *QueryRegisteredZonesInfoRequest) XXX_DiscardUnknown()

func (*QueryRegisteredZonesInfoRequest) XXX_Marshal

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

func (*QueryRegisteredZonesInfoRequest) XXX_Merge

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

func (*QueryRegisteredZonesInfoRequest) XXX_Size

func (m *QueryRegisteredZonesInfoRequest) XXX_Size() int

func (*QueryRegisteredZonesInfoRequest) XXX_Unmarshal

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

type QueryRegisteredZonesInfoResponse

type QueryRegisteredZonesInfoResponse struct {
	Zones      []RegisteredZone    `protobuf:"bytes,1,rep,name=zones,proto3" json:"zones"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryRegisteredZonesInfoResponse) Descriptor

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

func (*QueryRegisteredZonesInfoResponse) GetPagination

func (*QueryRegisteredZonesInfoResponse) GetZones

func (*QueryRegisteredZonesInfoResponse) Marshal

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

func (*QueryRegisteredZonesInfoResponse) MarshalTo

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

func (*QueryRegisteredZonesInfoResponse) MarshalToSizedBuffer

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

func (*QueryRegisteredZonesInfoResponse) ProtoMessage

func (*QueryRegisteredZonesInfoResponse) ProtoMessage()

func (*QueryRegisteredZonesInfoResponse) Reset

func (*QueryRegisteredZonesInfoResponse) Size

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

func (*QueryRegisteredZonesInfoResponse) String

func (*QueryRegisteredZonesInfoResponse) Unmarshal

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

func (*QueryRegisteredZonesInfoResponse) XXX_DiscardUnknown

func (m *QueryRegisteredZonesInfoResponse) XXX_DiscardUnknown()

func (*QueryRegisteredZonesInfoResponse) XXX_Marshal

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

func (*QueryRegisteredZonesInfoResponse) XXX_Merge

func (*QueryRegisteredZonesInfoResponse) XXX_Size

func (m *QueryRegisteredZonesInfoResponse) XXX_Size() int

func (*QueryRegisteredZonesInfoResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// RegisteredZoneInfos provides meta data on connected zones.
	RegisteredZoneInfos(context.Context, *QueryRegisteredZonesInfoRequest) (*QueryRegisteredZonesInfoResponse, error)
	// DepositAccountFromAddress provides data on the deposit address for a
	// connected zone.
	DepositAccountFromAddress(context.Context, *QueryDepositAccountForChainRequest) (*QueryDepositAccountForChainResponse, error)
	// DelegatorIntent provides data on the intent of the delegator for the given
	// zone.
	DelegatorIntent(context.Context, *QueryDelegatorIntentRequest) (*QueryDelegatorIntentResponse, error)
}

QueryServer is the server API for Query service.

type Receipt

type Receipt struct {
	Zone   *RegisteredZone                          `protobuf:"bytes,1,opt,name=zone,proto3" json:"zone,omitempty"`
	Sender string                                   `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Txhash string                                   `protobuf:"bytes,3,opt,name=txhash,proto3" json:"txhash,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

func (*Receipt) Descriptor

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

func (*Receipt) GetAmount

func (*Receipt) GetSender

func (m *Receipt) GetSender() string

func (*Receipt) GetTxhash

func (m *Receipt) GetTxhash() string

func (*Receipt) GetZone

func (m *Receipt) GetZone() *RegisteredZone

func (*Receipt) Marshal

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

func (*Receipt) MarshalTo

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

func (*Receipt) MarshalToSizedBuffer

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

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) Reset

func (m *Receipt) Reset()

func (*Receipt) Size

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

func (*Receipt) String

func (m *Receipt) String() string

func (*Receipt) Unmarshal

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

func (*Receipt) XXX_DiscardUnknown

func (m *Receipt) XXX_DiscardUnknown()

func (*Receipt) XXX_Marshal

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

func (*Receipt) XXX_Merge

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

func (*Receipt) XXX_Size

func (m *Receipt) XXX_Size() int

func (*Receipt) XXX_Unmarshal

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

type RegisteredZone

type RegisteredZone struct {
	Identifier          string                                 `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	ConnectionId        string                                 `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	ChainId             string                                 `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	DepositAddress      *ICAAccount                            `protobuf:"bytes,4,opt,name=deposit_address,json=depositAddress,proto3" json:"deposit_address,omitempty"`
	DelegationAddresses []*ICAAccount                          `protobuf:"bytes,5,rep,name=delegation_addresses,json=delegationAddresses,proto3" json:"delegation_addresses,omitempty"`
	LocalDenom          string                                 `protobuf:"bytes,6,opt,name=local_denom,json=localDenom,proto3" json:"local_denom,omitempty"`
	BaseDenom           string                                 `protobuf:"bytes,7,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
	RedemptionRate      github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	Validators          []*Validator                           `protobuf:"bytes,9,rep,name=validators,proto3" json:"validators,omitempty"`
	DelegatorIntent     map[string]*DelegatorIntent            `` /* 195-byte string literal not displayed */
	AggregateIntent     map[string]*ValidatorIntent            `` /* 195-byte string literal not displayed */
	MultiSend           bool                                   `protobuf:"varint,12,opt,name=multi_send,json=multiSend,proto3" json:"multi_send,omitempty"`
	LastRedemptionRate  github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	FeeAddress          *ICAAccount                            `protobuf:"bytes,14,opt,name=fee_address,json=feeAddress,proto3" json:"fee_address,omitempty"`
	WithdrawalAddress   *ICAAccount                            `protobuf:"bytes,15,opt,name=withdrawal_address,json=withdrawalAddress,proto3" json:"withdrawal_address,omitempty"`
	WithdrawalWaitgroup uint32                                 `protobuf:"varint,16,opt,name=withdrawal_waitgroup,json=withdrawalWaitgroup,proto3" json:"withdrawal_waitgroup,omitempty"`
}

func (RegisteredZone) ApplyDiffsToDistribution

func (z RegisteredZone) ApplyDiffsToDistribution(distribution map[string]sdk.Coin, diffs map[string]sdk.Int) (map[string]sdk.Coin, sdk.Int)

func (*RegisteredZone) ConvertCoinsToOrdinalIntents

func (z *RegisteredZone) ConvertCoinsToOrdinalIntents(ctx sdk.Context, coins sdk.Coins) map[string]*ValidatorIntent

func (*RegisteredZone) Descriptor

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

func (RegisteredZone) DetermineStateIntentDiff

func (z RegisteredZone) DetermineStateIntentDiff(aggregateIntent map[string]*ValidatorIntent) map[string]sdk.Int

func (*RegisteredZone) GetAggregateIntent

func (m *RegisteredZone) GetAggregateIntent() map[string]*ValidatorIntent

func (*RegisteredZone) GetBaseDenom

func (m *RegisteredZone) GetBaseDenom() string

func (*RegisteredZone) GetChainId

func (m *RegisteredZone) GetChainId() string

func (*RegisteredZone) GetConnectionId

func (m *RegisteredZone) GetConnectionId() string

func (*RegisteredZone) GetDelegatedAmount

func (z *RegisteredZone) GetDelegatedAmount() sdk.Coin

func (*RegisteredZone) GetDelegationAccountByAddress

func (z *RegisteredZone) GetDelegationAccountByAddress(address string) (*ICAAccount, error)

func (RegisteredZone) GetDelegationAccountsByLowestBalance

func (z RegisteredZone) GetDelegationAccountsByLowestBalance(qty uint64) []*ICAAccount

func (*RegisteredZone) GetDelegationAddresses

func (m *RegisteredZone) GetDelegationAddresses() []*ICAAccount

func (*RegisteredZone) GetDelegationsForDelegator

func (z *RegisteredZone) GetDelegationsForDelegator(delegator string) []*Delegation

func (*RegisteredZone) GetDelegatorIntent

func (m *RegisteredZone) GetDelegatorIntent() map[string]*DelegatorIntent

func (*RegisteredZone) GetDepositAddress

func (m *RegisteredZone) GetDepositAddress() *ICAAccount

func (*RegisteredZone) GetFeeAddress

func (m *RegisteredZone) GetFeeAddress() *ICAAccount

func (*RegisteredZone) GetIdentifier

func (m *RegisteredZone) GetIdentifier() string

func (*RegisteredZone) GetLocalDenom

func (m *RegisteredZone) GetLocalDenom() string

func (*RegisteredZone) GetMultiSend

func (m *RegisteredZone) GetMultiSend() bool

func (*RegisteredZone) GetRedemptionTargets

func (z *RegisteredZone) GetRedemptionTargets(requests map[string]sdk.Int, denom string) map[string]map[string]sdk.Coin

func (*RegisteredZone) GetValidatorByValoper

func (z *RegisteredZone) GetValidatorByValoper(valoper string) (*Validator, error)

func (*RegisteredZone) GetValidators

func (m *RegisteredZone) GetValidators() []*Validator

func (RegisteredZone) GetValidatorsAsSlice

func (z RegisteredZone) GetValidatorsAsSlice() []string

func (*RegisteredZone) GetWithdrawalAddress

func (m *RegisteredZone) GetWithdrawalAddress() *ICAAccount

func (*RegisteredZone) GetWithdrawalWaitgroup

func (m *RegisteredZone) GetWithdrawalWaitgroup() uint32

func (*RegisteredZone) Marshal

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

func (*RegisteredZone) MarshalTo

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

func (*RegisteredZone) MarshalToSizedBuffer

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

func (*RegisteredZone) ProtoMessage

func (*RegisteredZone) ProtoMessage()

func (*RegisteredZone) Reset

func (m *RegisteredZone) Reset()

func (*RegisteredZone) Size

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

func (*RegisteredZone) String

func (m *RegisteredZone) String() string

func (RegisteredZone) SupportMultiSend

func (z RegisteredZone) SupportMultiSend() bool

func (*RegisteredZone) Unmarshal

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

func (*RegisteredZone) ValidateCoinsForZone

func (z *RegisteredZone) ValidateCoinsForZone(ctx sdk.Context, coins sdk.Coins) error

func (*RegisteredZone) XXX_DiscardUnknown

func (m *RegisteredZone) XXX_DiscardUnknown()

func (*RegisteredZone) XXX_Marshal

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

func (*RegisteredZone) XXX_Merge

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

func (*RegisteredZone) XXX_Size

func (m *RegisteredZone) XXX_Size() int

func (*RegisteredZone) XXX_Unmarshal

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

type TransferRecord

type TransferRecord struct {
	Sender    string                                  `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string                                  `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

func (*TransferRecord) Descriptor

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

func (*TransferRecord) GetRecipient

func (m *TransferRecord) GetRecipient() string

func (*TransferRecord) GetSender

func (m *TransferRecord) GetSender() string

func (*TransferRecord) Marshal

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

func (*TransferRecord) MarshalTo

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

func (*TransferRecord) MarshalToSizedBuffer

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

func (*TransferRecord) ProtoMessage

func (*TransferRecord) ProtoMessage()

func (*TransferRecord) Reset

func (m *TransferRecord) Reset()

func (*TransferRecord) Size

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

func (*TransferRecord) String

func (m *TransferRecord) String() string

func (*TransferRecord) Unmarshal

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

func (*TransferRecord) XXX_DiscardUnknown

func (m *TransferRecord) XXX_DiscardUnknown()

func (*TransferRecord) XXX_Marshal

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

func (*TransferRecord) XXX_Merge

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

func (*TransferRecord) XXX_Size

func (m *TransferRecord) XXX_Size() int

func (*TransferRecord) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RegisterZone

func (*UnimplementedMsgServer) RequestRedemption

func (*UnimplementedMsgServer) SignalIntent

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DelegatorIntent

func (*UnimplementedQueryServer) RegisteredZoneInfos

type Validator

type Validator struct {
	ValoperAddress string                                 `protobuf:"bytes,1,opt,name=valoper_address,json=valoperAddress,proto3" json:"valoper_address,omitempty"`
	CommissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	VotingPower    github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */
	Delegations    []*Delegation                          `protobuf:"bytes,4,rep,name=delegations,proto3" json:"delegations,omitempty"`
}

func (*Validator) Descriptor

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

func (Validator) GetDelegationForDelegator

func (v Validator) GetDelegationForDelegator(delegator string) (*Delegation, error)

func (*Validator) GetDelegations

func (m *Validator) GetDelegations() []*Delegation

func (*Validator) GetValoperAddress

func (m *Validator) GetValoperAddress() string

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorIntent

type ValidatorIntent struct {
	ValoperAddress string                                 `protobuf:"bytes,1,opt,name=valoper_address,json=valoperAddress,proto3" json:"valoper_address,omitempty"`
	Weight         github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

func IntentsFromString

func IntentsFromString(input string) ([]*ValidatorIntent, error)

IntentsFromString validates and parses the given string into a slice containing pointers to ValidatorIntent.

The combined weights must be 1.0 and the valoper addresses must be valid bech32 strings. (what about zero weights?)

Tokens are comma separated, e.g. "0.3cosmosvaloper1xxxxxxxxx,0.3cosmosvaloper1yyyyyyyyy,0.4cosmosvaloper1zzzzzzzzz".

func (*ValidatorIntent) Descriptor

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

func (*ValidatorIntent) GetValoperAddress

func (m *ValidatorIntent) GetValoperAddress() string

func (*ValidatorIntent) Marshal

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

func (*ValidatorIntent) MarshalTo

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

func (*ValidatorIntent) MarshalToSizedBuffer

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

func (*ValidatorIntent) ProtoMessage

func (*ValidatorIntent) ProtoMessage()

func (*ValidatorIntent) Reset

func (m *ValidatorIntent) Reset()

func (*ValidatorIntent) Size

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

func (*ValidatorIntent) String

func (m *ValidatorIntent) String() string

func (*ValidatorIntent) Unmarshal

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

func (*ValidatorIntent) XXX_DiscardUnknown

func (m *ValidatorIntent) XXX_DiscardUnknown()

func (*ValidatorIntent) XXX_Marshal

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

func (*ValidatorIntent) XXX_Merge

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

func (*ValidatorIntent) XXX_Size

func (m *ValidatorIntent) XXX_Size() int

func (*ValidatorIntent) XXX_Unmarshal

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

type WithdrawalRecord

type WithdrawalRecord struct {
	Delegator string                                  `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Validator string                                  `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Recipient string                                  `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	Status    int32                                   `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
}

func (*WithdrawalRecord) Descriptor

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

func (*WithdrawalRecord) GetDelegator

func (m *WithdrawalRecord) GetDelegator() string

func (*WithdrawalRecord) GetRecipient

func (m *WithdrawalRecord) GetRecipient() string

func (*WithdrawalRecord) GetStatus

func (m *WithdrawalRecord) GetStatus() int32

func (*WithdrawalRecord) GetValidator

func (m *WithdrawalRecord) GetValidator() string

func (*WithdrawalRecord) Marshal

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

func (*WithdrawalRecord) MarshalTo

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

func (*WithdrawalRecord) MarshalToSizedBuffer

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

func (*WithdrawalRecord) ProtoMessage

func (*WithdrawalRecord) ProtoMessage()

func (*WithdrawalRecord) Reset

func (m *WithdrawalRecord) Reset()

func (*WithdrawalRecord) Size

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

func (*WithdrawalRecord) String

func (m *WithdrawalRecord) String() string

func (*WithdrawalRecord) Unmarshal

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

func (*WithdrawalRecord) XXX_DiscardUnknown

func (m *WithdrawalRecord) XXX_DiscardUnknown()

func (*WithdrawalRecord) XXX_Marshal

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

func (*WithdrawalRecord) XXX_Merge

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

func (*WithdrawalRecord) XXX_Size

func (m *WithdrawalRecord) XXX_Size() int

func (*WithdrawalRecord) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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