v011

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceNodeKey = []byte{0x01}
	MetaNodeKey     = []byte{0x02}
)
View Source
var (
	ErrInvalidLengthRegister        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRegister          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRegister = fmt.Errorf("proto: unexpected end of group")
)

Functions

func MigrateStore

func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, legacySubspace types.ParamsSubspace, cdc codec.Codec) error

Types

type Description

type Description struct {
	Moniker         string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker" yaml:"moniker"`
	Identity        string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity" yaml:"identity",omitempty`
	Website         string `protobuf:"bytes,3,opt,name=website,proto3" json:"website" yaml:"website",omitempty`
	SecurityContact string `` /* 130-byte string literal not displayed */
	Details         string `protobuf:"bytes,5,opt,name=details,proto3" json:"details" yaml:"details",omitempty`
}

func (*Description) Descriptor

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

func (*Description) Equal

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

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (*Description) String

func (m *Description) String() string

func (*Description) Unmarshal

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

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type MetaNode

type MetaNode struct {
	NetworkAddress string                                 `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"`
	Pubkey         *types1.Any                            `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"`
	Suspend        bool                                   `protobuf:"varint,3,opt,name=suspend,proto3" json:"suspend" yaml:"suspend"`
	Status         types2.BondStatus                      `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status" yaml:"status"`
	Tokens         github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens" yaml:"tokens"`
	OwnerAddress   string                                 `protobuf:"bytes,6,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"`
	//  string                              beneficiary_address = 7 [
	//    (gogoproto.jsontag) = "beneficiary_address",
	//    (gogoproto.moretags) = "yaml:\"beneficiary_address\""
	//  ];
	Description  Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description" yaml:"description"`
	CreationTime time.Time   `protobuf:"bytes,8,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
}

func MustUnmarshalMetaNode

func MustUnmarshalMetaNode(cdc codec.Codec, value []byte) MetaNode

MustUnmarshalMetaNode unmarshal an meta node from a store value. Panics if fails

func UnmarshalMetaNode

func UnmarshalMetaNode(cdc codec.Codec, value []byte) (metaNode MetaNode, err error)

UnmarshalMetaNode unmarshal an meta node from a store value

func (*MetaNode) Descriptor

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

func (*MetaNode) Equal

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

func (*MetaNode) GetCreationTime

func (m *MetaNode) GetCreationTime() time.Time

func (*MetaNode) GetDescription

func (m *MetaNode) GetDescription() Description

func (*MetaNode) GetNetworkAddress

func (m *MetaNode) GetNetworkAddress() string

func (*MetaNode) GetOwnerAddress

func (m *MetaNode) GetOwnerAddress() string

func (*MetaNode) GetPubkey

func (m *MetaNode) GetPubkey() *types1.Any

func (*MetaNode) GetStatus

func (m *MetaNode) GetStatus() types2.BondStatus

func (*MetaNode) GetSuspend

func (m *MetaNode) GetSuspend() bool

func (*MetaNode) Marshal

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

func (*MetaNode) MarshalTo

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

func (*MetaNode) MarshalToSizedBuffer

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

func (*MetaNode) ProtoMessage

func (*MetaNode) ProtoMessage()

func (*MetaNode) Reset

func (m *MetaNode) Reset()

func (*MetaNode) Size

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

func (*MetaNode) String

func (m *MetaNode) String() string

func (*MetaNode) Unmarshal

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

func (MetaNode) UnpackInterfaces

func (v MetaNode) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*MetaNode) XXX_DiscardUnknown

func (m *MetaNode) XXX_DiscardUnknown()

func (*MetaNode) XXX_Marshal

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

func (*MetaNode) XXX_Merge

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

func (*MetaNode) XXX_Size

func (m *MetaNode) XXX_Size() int

func (*MetaNode) XXX_Unmarshal

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

type MetaNodeRegistrationVotePool

type MetaNodeRegistrationVotePool struct {
	NetworkAddress string    `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"`
	ApproveList    []string  `protobuf:"bytes,2,rep,name=approve_list,json=approveList,proto3" json:"approve_list" yaml:"approve_list"`
	RejectList     []string  `protobuf:"bytes,3,rep,name=reject_list,json=rejectList,proto3" json:"reject_list" yaml:"reject_list"`
	ExpireTime     time.Time `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3,stdtime" json:"expire_time" yaml:"expire_time"`
	IsVotePassed   bool      `protobuf:"varint,5,opt,name=is_vote_passed,json=isVotePassed,proto3" json:"is_vote_passed" yaml:"is_vote_passed"`
}

func (*MetaNodeRegistrationVotePool) Descriptor

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

func (*MetaNodeRegistrationVotePool) Equal

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

func (*MetaNodeRegistrationVotePool) GetApproveList

func (m *MetaNodeRegistrationVotePool) GetApproveList() []string

func (*MetaNodeRegistrationVotePool) GetExpireTime

func (m *MetaNodeRegistrationVotePool) GetExpireTime() time.Time

func (*MetaNodeRegistrationVotePool) GetIsVotePassed

func (m *MetaNodeRegistrationVotePool) GetIsVotePassed() bool

func (*MetaNodeRegistrationVotePool) GetNetworkAddress

func (m *MetaNodeRegistrationVotePool) GetNetworkAddress() string

func (*MetaNodeRegistrationVotePool) GetRejectList

func (m *MetaNodeRegistrationVotePool) GetRejectList() []string

func (*MetaNodeRegistrationVotePool) Marshal

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

func (*MetaNodeRegistrationVotePool) MarshalTo

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

func (*MetaNodeRegistrationVotePool) MarshalToSizedBuffer

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

func (*MetaNodeRegistrationVotePool) ProtoMessage

func (*MetaNodeRegistrationVotePool) ProtoMessage()

func (*MetaNodeRegistrationVotePool) Reset

func (m *MetaNodeRegistrationVotePool) Reset()

func (*MetaNodeRegistrationVotePool) Size

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

func (*MetaNodeRegistrationVotePool) String

func (*MetaNodeRegistrationVotePool) Unmarshal

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

func (*MetaNodeRegistrationVotePool) XXX_DiscardUnknown

func (m *MetaNodeRegistrationVotePool) XXX_DiscardUnknown()

func (*MetaNodeRegistrationVotePool) XXX_Marshal

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

func (*MetaNodeRegistrationVotePool) XXX_Merge

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

func (*MetaNodeRegistrationVotePool) XXX_Size

func (m *MetaNodeRegistrationVotePool) XXX_Size() int

func (*MetaNodeRegistrationVotePool) XXX_Unmarshal

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

type Params

type Params struct {
	BondDenom               string        `protobuf:"bytes,1,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom" yaml:"bond_denom"`
	UnbondingThreasholdTime time.Duration `` /* 167-byte string literal not displayed */
	UnbondingCompletionTime time.Duration `` /* 167-byte string literal not displayed */
	MaxEntries              uint32        `protobuf:"varint,4,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries" yaml:"max_entries",omitempty`
	ResourceNodeRegEnabled  bool          `` /* 155-byte string literal not displayed */
	ResourceNodeMinDeposit  types.Coin    `` /* 154-byte string literal not displayed */
	VotingPeriod            time.Duration `protobuf:"bytes,7,opt,name=voting_period,json=votingPeriod,proto3,stdduration" json:"voting_period" yaml:"voting_period"`
}

Params defines the Register module parameters

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetBondDenom

func (m *Params) GetBondDenom() string

func (*Params) GetMaxEntries

func (m *Params) GetMaxEntries() uint32

func (*Params) GetResourceNodeMinDeposit

func (m *Params) GetResourceNodeMinDeposit() types.Coin

func (*Params) GetResourceNodeRegEnabled

func (m *Params) GetResourceNodeRegEnabled() bool

func (*Params) GetUnbondingCompletionTime

func (m *Params) GetUnbondingCompletionTime() time.Duration

func (*Params) GetUnbondingThreasholdTime

func (m *Params) GetUnbondingThreasholdTime() time.Duration

func (*Params) GetVotingPeriod

func (m *Params) GetVotingPeriod() time.Duration

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 (m *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 ResourceNode

type ResourceNode struct {
	NetworkAddress  string                                 `protobuf:"bytes,1,opt,name=network_address,json=networkAddress,proto3" json:"network_address" yaml:"network_address"`
	Pubkey          *types1.Any                            `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey" yaml:"pubkey"`
	Suspend         bool                                   `protobuf:"varint,3,opt,name=suspend,proto3" json:"suspend" yaml:"suspend"`
	Status          types2.BondStatus                      `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status" yaml:"status"`
	Tokens          github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens" yaml:"tokens"`
	OwnerAddress    string                                 `protobuf:"bytes,6,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address" yaml:"owner_address"`
	Description     Description                            `protobuf:"bytes,7,opt,name=description,proto3" json:"description" yaml:"description"`
	CreationTime    time.Time                              `protobuf:"bytes,8,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
	NodeType        uint32                                 `protobuf:"varint,9,opt,name=node_type,json=nodeType,proto3" json:"node_type" yaml:"node_type"`
	EffectiveTokens github_com_cosmos_cosmos_sdk_types.Int `` /* 171-byte string literal not displayed */
}

func MustUnmarshalResourceNode

func MustUnmarshalResourceNode(cdc codec.Codec, value []byte) ResourceNode

MustUnmarshalResourceNode unmarshal a resourceNode from a store value. Panics if fails

func UnmarshalResourceNode

func UnmarshalResourceNode(cdc codec.Codec, value []byte) (v ResourceNode, err error)

UnmarshalResourceNode unmarshal a resourceNode from a store value

func (*ResourceNode) Descriptor

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

func (*ResourceNode) Equal

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

func (*ResourceNode) GetCreationTime

func (m *ResourceNode) GetCreationTime() time.Time

func (*ResourceNode) GetDescription

func (m *ResourceNode) GetDescription() Description

func (*ResourceNode) GetNetworkAddress

func (m *ResourceNode) GetNetworkAddress() string

func (*ResourceNode) GetNodeType

func (m *ResourceNode) GetNodeType() uint32

func (*ResourceNode) GetOwnerAddress

func (m *ResourceNode) GetOwnerAddress() string

func (*ResourceNode) GetPubkey

func (m *ResourceNode) GetPubkey() *types1.Any

func (*ResourceNode) GetStatus

func (m *ResourceNode) GetStatus() types2.BondStatus

func (*ResourceNode) GetSuspend

func (m *ResourceNode) GetSuspend() bool

func (*ResourceNode) Marshal

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

func (*ResourceNode) MarshalTo

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

func (*ResourceNode) MarshalToSizedBuffer

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

func (*ResourceNode) ProtoMessage

func (*ResourceNode) ProtoMessage()

func (*ResourceNode) Reset

func (m *ResourceNode) Reset()

func (*ResourceNode) Size

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

func (*ResourceNode) String

func (m *ResourceNode) String() string

func (*ResourceNode) Unmarshal

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

func (ResourceNode) UnpackInterfaces

func (v ResourceNode) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*ResourceNode) XXX_DiscardUnknown

func (m *ResourceNode) XXX_DiscardUnknown()

func (*ResourceNode) XXX_Marshal

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

func (*ResourceNode) XXX_Merge

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

func (*ResourceNode) XXX_Size

func (m *ResourceNode) XXX_Size() int

func (*ResourceNode) XXX_Unmarshal

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

type UnbondingNode

type UnbondingNode struct {
	NetworkAddr string                `protobuf:"bytes,1,opt,name=network_addr,json=networkAddr,proto3" json:"network_addr" yaml:"network_addr"`
	IsMetaNode  bool                  `protobuf:"varint,2,opt,name=is_meta_node,json=isMetaNode,proto3" json:"is_meta_node" yaml:"is_meta_node"`
	Entries     []*UnbondingNodeEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries" yaml:"entries"`
}

UnbondingNode stores all of a single delegator's unbonding bonds for a single unbonding node in a time-ordered list

func (*UnbondingNode) Descriptor

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

func (*UnbondingNode) Equal

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

func (*UnbondingNode) GetEntries

func (m *UnbondingNode) GetEntries() []*UnbondingNodeEntry

func (*UnbondingNode) GetIsMetaNode

func (m *UnbondingNode) GetIsMetaNode() bool

func (*UnbondingNode) GetNetworkAddr

func (m *UnbondingNode) GetNetworkAddr() string

func (*UnbondingNode) Marshal

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

func (*UnbondingNode) MarshalTo

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

func (*UnbondingNode) MarshalToSizedBuffer

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

func (*UnbondingNode) ProtoMessage

func (*UnbondingNode) ProtoMessage()

func (*UnbondingNode) Reset

func (m *UnbondingNode) Reset()

func (*UnbondingNode) Size

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

func (*UnbondingNode) String

func (m *UnbondingNode) String() string

func (*UnbondingNode) Unmarshal

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

func (*UnbondingNode) XXX_DiscardUnknown

func (m *UnbondingNode) XXX_DiscardUnknown()

func (*UnbondingNode) XXX_Marshal

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

func (*UnbondingNode) XXX_Merge

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

func (*UnbondingNode) XXX_Size

func (m *UnbondingNode) XXX_Size() int

func (*UnbondingNode) XXX_Unmarshal

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

type UnbondingNodeEntry

type UnbondingNodeEntry struct {
	CreationHeight int64                                   `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height" yaml:"creation_height"`
	CompletionTime time.Time                               `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
	InitialBalance *github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */
	Balance        *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance" yaml:"balance"`
}

func (*UnbondingNodeEntry) Descriptor

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

func (*UnbondingNodeEntry) Equal

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

func (*UnbondingNodeEntry) GetCompletionTime

func (m *UnbondingNodeEntry) GetCompletionTime() time.Time

func (*UnbondingNodeEntry) GetCreationHeight

func (m *UnbondingNodeEntry) GetCreationHeight() int64

func (*UnbondingNodeEntry) Marshal

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

func (*UnbondingNodeEntry) MarshalTo

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

func (*UnbondingNodeEntry) MarshalToSizedBuffer

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

func (*UnbondingNodeEntry) ProtoMessage

func (*UnbondingNodeEntry) ProtoMessage()

func (*UnbondingNodeEntry) Reset

func (m *UnbondingNodeEntry) Reset()

func (*UnbondingNodeEntry) Size

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

func (*UnbondingNodeEntry) String

func (m *UnbondingNodeEntry) String() string

func (*UnbondingNodeEntry) Unmarshal

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

func (*UnbondingNodeEntry) XXX_DiscardUnknown

func (m *UnbondingNodeEntry) XXX_DiscardUnknown()

func (*UnbondingNodeEntry) XXX_Marshal

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

func (*UnbondingNodeEntry) XXX_Merge

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

func (*UnbondingNodeEntry) XXX_Size

func (m *UnbondingNodeEntry) XXX_Size() int

func (*UnbondingNodeEntry) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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