v2

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProposalTypeShieldClaim defines the type for a ShieldClaimProposal.
	ProposalTypeShieldClaim = "ShieldClaim"
)

Variables

View Source
var (
	ErrInvalidLengthShield        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShield          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupShield = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewUnbondingDelegation

func NewUnbondingDelegation(delAddr, valAddr string, entry stakingTypes.UnbondingDelegationEntry) stakingTypes.UnbondingDelegation

NewUnbondingDelegation returns a new UnbondingDelegation instance.

Types

type LastUpdateTime

type LastUpdateTime struct {
	Time *time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time,omitempty" yaml:"time"`
}

func (*LastUpdateTime) Descriptor

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

func (*LastUpdateTime) Marshal

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

func (*LastUpdateTime) MarshalTo

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

func (*LastUpdateTime) MarshalToSizedBuffer

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

func (*LastUpdateTime) ProtoMessage

func (*LastUpdateTime) ProtoMessage()

func (*LastUpdateTime) Reset

func (m *LastUpdateTime) Reset()

func (*LastUpdateTime) Size

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

func (*LastUpdateTime) String

func (m *LastUpdateTime) String() string

func (*LastUpdateTime) Unmarshal

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

func (*LastUpdateTime) XXX_DiscardUnknown

func (m *LastUpdateTime) XXX_DiscardUnknown()

func (*LastUpdateTime) XXX_Marshal

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

func (*LastUpdateTime) XXX_Merge

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

func (*LastUpdateTime) XXX_Size

func (m *LastUpdateTime) XXX_Size() int

func (*LastUpdateTime) XXX_Unmarshal

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

type LockedCollateral

type LockedCollateral struct {
	ProposalID uint64  `json:"proposal_id" yaml:"proposal_id"`
	Amount     sdk.Int `json:"locked_coins" yaml:"locked_coins"`
}

LockedCollateral defines the data type of locked collateral for a claim proposal.

func NewLockedCollateral

func NewLockedCollateral(proposalID uint64, lockedAmt sdk.Int) LockedCollateral

NewLockedCollateral returns a new LockedCollateral instance.

type MixedCoins

type MixedCoins struct {
	Native  github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=native,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"native"`
	Foreign github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=foreign,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"foreign"`
}

MixedCoins defines the struct for mixed coins with native and foreign coins.

func (MixedCoins) Add

func (mc MixedCoins) Add(a MixedCoins) MixedCoins

Add implements the add method of MixedCoins.

func (*MixedCoins) Descriptor

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

func (*MixedCoins) Marshal

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

func (*MixedCoins) MarshalTo

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

func (*MixedCoins) MarshalToSizedBuffer

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

func (*MixedCoins) ProtoMessage

func (*MixedCoins) ProtoMessage()

func (*MixedCoins) Reset

func (m *MixedCoins) Reset()

func (*MixedCoins) Size

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

func (*MixedCoins) String

func (m *MixedCoins) String() string

func (*MixedCoins) Unmarshal

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

func (*MixedCoins) XXX_DiscardUnknown

func (m *MixedCoins) XXX_DiscardUnknown()

func (*MixedCoins) XXX_Marshal

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

func (*MixedCoins) XXX_Merge

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

func (*MixedCoins) XXX_Size

func (m *MixedCoins) XXX_Size() int

func (*MixedCoins) XXX_Unmarshal

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

type MixedDecCoins

type MixedDecCoins struct {
	Native  github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=native,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"native"`
	Foreign github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=foreign,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"foreign"`
}

MixedDecCoins defines the struct for mixed coins in decimal with native and foreign decimal coins.

func InitMixedDecCoins

func InitMixedDecCoins() MixedDecCoins

InitMixedDecCoins initialize an empty mixed decimal coins instance.

func MixedDecCoinsFromMixedCoins

func MixedDecCoinsFromMixedCoins(mc MixedCoins) MixedDecCoins

MixedDecCoinsFromMixedCoins converts MixedCoins to MixedDecCoins.

func NewMixedDecCoins

func NewMixedDecCoins(native, foreign sdk.DecCoins) MixedDecCoins

NewMixedDecCoins returns a new mixed decimal coins instance.

func (MixedDecCoins) Add

Add adds two MixedDecCoins type coins together.

func (*MixedDecCoins) Descriptor

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

func (*MixedDecCoins) Marshal

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

func (*MixedDecCoins) MarshalTo

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

func (*MixedDecCoins) MarshalToSizedBuffer

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

func (MixedDecCoins) MulDec

func (mdc MixedDecCoins) MulDec(d sdk.Dec) MixedDecCoins

MulDec multiplies native and foreign coins by a decimal.

func (*MixedDecCoins) ProtoMessage

func (*MixedDecCoins) ProtoMessage()

func (MixedDecCoins) QuoDec

func (mdc MixedDecCoins) QuoDec(d sdk.Dec) MixedDecCoins

QuoDec divides native and foreign coins by a decimal.

func (*MixedDecCoins) Reset

func (m *MixedDecCoins) Reset()

func (*MixedDecCoins) Size

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

func (*MixedDecCoins) String

func (m *MixedDecCoins) String() string

func (MixedDecCoins) Sub

Sub calculates the difference between two mixed dec coins.

func (*MixedDecCoins) Unmarshal

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

func (*MixedDecCoins) XXX_DiscardUnknown

func (m *MixedDecCoins) XXX_DiscardUnknown()

func (*MixedDecCoins) XXX_Marshal

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

func (*MixedDecCoins) XXX_Merge

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

func (*MixedDecCoins) XXX_Size

func (m *MixedDecCoins) XXX_Size() int

func (*MixedDecCoins) XXX_Unmarshal

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

type Pool

type Pool struct {
	Id          uint64                                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Description string                                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Sponsor     string                                 `protobuf:"bytes,3,opt,name=sponsor,proto3" json:"sponsor,omitempty" yaml:"sponsor"`
	SponsorAddr string                                 `protobuf:"bytes,4,opt,name=sponsor_addr,json=sponsorAddr,proto3" json:"sponsor_addr,omitempty" yaml:"sponsor_addr"`
	ShieldLimit github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	Active      bool                                   `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty" yaml:"active"`
	Shield      github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=shield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shield" yaml:"shield"`
}

Pool contains a shield project pool's data.

func (*Pool) Descriptor

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

func (*Pool) Marshal

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

func (*Pool) MarshalTo

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

func (*Pool) MarshalToSizedBuffer

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

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) Reset

func (m *Pool) Reset()

func (*Pool) Size

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

func (*Pool) String

func (m *Pool) String() string

func (*Pool) Unmarshal

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

func (*Pool) XXX_DiscardUnknown

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal

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

func (*Pool) XXX_Merge

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

func (*Pool) XXX_Size

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal

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

type PoolPurchaser

type PoolPurchaser struct {
	// PoolID is the id of the shield pool.
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	// Purchaser is the chain address of the purchaser.
	Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"`
}

PoolPurchase is a pair of pool id and purchaser.

func (*PoolPurchaser) Descriptor

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

func (*PoolPurchaser) Marshal

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

func (*PoolPurchaser) MarshalTo

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

func (*PoolPurchaser) MarshalToSizedBuffer

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

func (*PoolPurchaser) ProtoMessage

func (*PoolPurchaser) ProtoMessage()

func (*PoolPurchaser) Reset

func (m *PoolPurchaser) Reset()

func (*PoolPurchaser) Size

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

func (*PoolPurchaser) String

func (m *PoolPurchaser) String() string

func (*PoolPurchaser) Unmarshal

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

func (*PoolPurchaser) XXX_DiscardUnknown

func (m *PoolPurchaser) XXX_DiscardUnknown()

func (*PoolPurchaser) XXX_Marshal

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

func (*PoolPurchaser) XXX_Merge

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

func (*PoolPurchaser) XXX_Size

func (m *PoolPurchaser) XXX_Size() int

func (*PoolPurchaser) XXX_Unmarshal

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

type PoolPurchaserPairs

type PoolPurchaserPairs struct {
	Pairs []PoolPurchaser `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

PoolPurchaserPairs defines an array of PoolPurchaser objects.

func (*PoolPurchaserPairs) Descriptor

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

func (*PoolPurchaserPairs) GetPairs

func (m *PoolPurchaserPairs) GetPairs() []PoolPurchaser

func (*PoolPurchaserPairs) Marshal

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

func (*PoolPurchaserPairs) MarshalTo

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

func (*PoolPurchaserPairs) MarshalToSizedBuffer

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

func (*PoolPurchaserPairs) ProtoMessage

func (*PoolPurchaserPairs) ProtoMessage()

func (*PoolPurchaserPairs) Reset

func (m *PoolPurchaserPairs) Reset()

func (*PoolPurchaserPairs) Size

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

func (*PoolPurchaserPairs) String

func (m *PoolPurchaserPairs) String() string

func (*PoolPurchaserPairs) Unmarshal

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

func (*PoolPurchaserPairs) XXX_DiscardUnknown

func (m *PoolPurchaserPairs) XXX_DiscardUnknown()

func (*PoolPurchaserPairs) XXX_Marshal

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

func (*PoolPurchaserPairs) XXX_Merge

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

func (*PoolPurchaserPairs) XXX_Size

func (m *PoolPurchaserPairs) XXX_Size() int

func (*PoolPurchaserPairs) XXX_Unmarshal

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

type Provider

type Provider struct {
	// Address is the address of the provider.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// DelegationBonded is the amount of bonded delegation.
	DelegationBonded github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
	// Collateral is amount of all collaterals for the provider, including
	// those in withdraw queue but excluding those currently locked, in all
	// pools.
	Collateral github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */
	// TotalLocked is the amount locked for pending claims.
	TotalLocked github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	// Withdrawing is the amount of collateral in withdraw queues.
	Withdrawing github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// Rewards is the pooling rewards to be collected.
	Rewards MixedDecCoins `protobuf:"bytes,6,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"`
}

Provider tracks total delegation, total collateral, and rewards of a provider.

func (*Provider) Descriptor

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

func (*Provider) Marshal

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

func (*Provider) MarshalTo

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

func (*Provider) MarshalToSizedBuffer

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

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) Reset

func (m *Provider) Reset()

func (*Provider) Size

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

func (*Provider) String

func (m *Provider) String() string

func (*Provider) Unmarshal

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

func (*Provider) XXX_DiscardUnknown

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal

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

func (*Provider) XXX_Merge

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

func (*Provider) XXX_Size

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal

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

type Purchase

type Purchase struct {
	// PurchaseID is the purchase_id.
	PurchaseId uint64 `protobuf:"varint,1,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty" yaml:"purchase_id"`
	// ProtectionEndTime is the time when the protection of the shield ends.
	ProtectionEndTime time.Time `` /* 139-byte string literal not displayed */
	// DeletionTime is the time when the purchase should be deleted.
	DeletionTime time.Time `protobuf:"bytes,3,opt,name=deletion_time,json=deletionTime,proto3,stdtime" json:"deletion_time" yaml:"deletion_time"`
	// Description is the information about the protected asset.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Shield is the unused amount of shield purchased.
	Shield github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=shield,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"shield" yaml:"shield"`
	// ServiceFees is the service fees paid by this purchase.
	ServiceFees MixedDecCoins `protobuf:"bytes,6,opt,name=service_fees,json=serviceFees,proto3" json:"service_fees" yaml:"service_fees"`
}

Purchase record an individual purchase.

func (*Purchase) Descriptor

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

func (*Purchase) Marshal

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

func (*Purchase) MarshalTo

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

func (*Purchase) MarshalToSizedBuffer

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

func (*Purchase) ProtoMessage

func (*Purchase) ProtoMessage()

func (*Purchase) Reset

func (m *Purchase) Reset()

func (*Purchase) Size

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

func (*Purchase) String

func (m *Purchase) String() string

func (*Purchase) Unmarshal

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

func (*Purchase) XXX_DiscardUnknown

func (m *Purchase) XXX_DiscardUnknown()

func (*Purchase) XXX_Marshal

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

func (*Purchase) XXX_Merge

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

func (*Purchase) XXX_Size

func (m *Purchase) XXX_Size() int

func (*Purchase) XXX_Unmarshal

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

type PurchaseList

type PurchaseList struct {
	// PoolID is the id of the shield of the purchase.
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	// Purchaser is the address making the purchase.
	Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"`
	// Entries stores all purchases by the purchaser in the pool.
	Entries []Purchase `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries" yaml:"entries"`
}

PurchaseList is a collection of purchase.

func (*PurchaseList) Descriptor

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

func (*PurchaseList) Marshal

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

func (*PurchaseList) MarshalTo

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

func (*PurchaseList) MarshalToSizedBuffer

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

func (*PurchaseList) ProtoMessage

func (*PurchaseList) ProtoMessage()

func (*PurchaseList) Reset

func (m *PurchaseList) Reset()

func (*PurchaseList) Size

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

func (*PurchaseList) String

func (m *PurchaseList) String() string

func (*PurchaseList) Unmarshal

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

func (*PurchaseList) XXX_DiscardUnknown

func (m *PurchaseList) XXX_DiscardUnknown()

func (*PurchaseList) XXX_Marshal

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

func (*PurchaseList) XXX_Merge

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

func (*PurchaseList) XXX_Size

func (m *PurchaseList) XXX_Size() int

func (*PurchaseList) XXX_Unmarshal

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

type ShieldClaimProposal

type ShieldClaimProposal struct {
	ProposalId  uint64                                   `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"`
	PoolId      uint64                                   `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	PurchaseId  uint64                                   `protobuf:"varint,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty" yaml:"purchase_id"`
	Loss        github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=loss,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"loss" yaml:"loss"`
	Evidence    string                                   `protobuf:"bytes,5,opt,name=evidence,proto3" json:"evidence,omitempty" yaml:"evidence"`
	Description string                                   `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Proposer    string                                   `protobuf:"bytes,7,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"`
}

func NewShieldClaimProposal

func NewShieldClaimProposal(poolID uint64, loss sdk.Coins, purchaseID uint64, evidence, description string, proposer sdk.AccAddress) *ShieldClaimProposal

NewShieldClaimProposal creates a new shield claim proposal.

func (*ShieldClaimProposal) Descriptor

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

func (ShieldClaimProposal) GetDescription

func (scp ShieldClaimProposal) GetDescription() string

GetDescription returns the description of a shield claim proposal.

func (ShieldClaimProposal) GetTitle

func (scp ShieldClaimProposal) GetTitle() string

GetTitle returns the title of a shield claim proposal.

func (*ShieldClaimProposal) Marshal

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

func (*ShieldClaimProposal) MarshalTo

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

func (*ShieldClaimProposal) MarshalToSizedBuffer

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

func (ShieldClaimProposal) ProposalRoute

func (scp ShieldClaimProposal) ProposalRoute() string

GetDescription returns the routing key of a shield claim proposal.

func (ShieldClaimProposal) ProposalType

func (scp ShieldClaimProposal) ProposalType() string

ProposalType returns the type of a shield claim proposal.

func (*ShieldClaimProposal) ProtoMessage

func (*ShieldClaimProposal) ProtoMessage()

func (*ShieldClaimProposal) Reset

func (m *ShieldClaimProposal) Reset()

func (*ShieldClaimProposal) Size

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

func (ShieldClaimProposal) String

func (scp ShieldClaimProposal) String() string

String implements the Stringer interface.

func (*ShieldClaimProposal) Unmarshal

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

func (ShieldClaimProposal) ValidateBasic

func (scp ShieldClaimProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks.

func (*ShieldClaimProposal) XXX_DiscardUnknown

func (m *ShieldClaimProposal) XXX_DiscardUnknown()

func (*ShieldClaimProposal) XXX_Marshal

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

func (*ShieldClaimProposal) XXX_Merge

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

func (*ShieldClaimProposal) XXX_Size

func (m *ShieldClaimProposal) XXX_Size() int

func (*ShieldClaimProposal) XXX_Unmarshal

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

type ShieldStaking

type ShieldStaking struct {
	PoolId            uint64                                 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	Purchaser         string                                 `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty" yaml:"purchaser"`
	Amount            github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"`
	WithdrawRequested github_com_cosmos_cosmos_sdk_types.Int `` /* 178-byte string literal not displayed */
}

func (*ShieldStaking) Descriptor

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

func (*ShieldStaking) Marshal

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

func (*ShieldStaking) MarshalTo

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

func (*ShieldStaking) MarshalToSizedBuffer

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

func (*ShieldStaking) ProtoMessage

func (*ShieldStaking) ProtoMessage()

func (*ShieldStaking) Reset

func (m *ShieldStaking) Reset()

func (*ShieldStaking) Size

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

func (*ShieldStaking) String

func (m *ShieldStaking) String() string

func (*ShieldStaking) Unmarshal

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

func (*ShieldStaking) XXX_DiscardUnknown

func (m *ShieldStaking) XXX_DiscardUnknown()

func (*ShieldStaking) XXX_Marshal

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

func (*ShieldStaking) XXX_Merge

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

func (*ShieldStaking) XXX_Size

func (m *ShieldStaking) XXX_Size() int

func (*ShieldStaking) XXX_Unmarshal

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

type Withdraw

type Withdraw struct {
	// Address is the chain address of the provider withdrawing.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// Amount is the amount of withdraw.
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"`
	// CompletionTime is the scheduled withdraw completion time.
	CompletionTime time.Time `protobuf:"bytes,3,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"`
}

Withdraw stores an ongoing withdraw of pool collateral.

func (*Withdraw) Descriptor

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

func (*Withdraw) Marshal

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

func (*Withdraw) MarshalTo

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

func (*Withdraw) MarshalToSizedBuffer

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

func (*Withdraw) ProtoMessage

func (*Withdraw) ProtoMessage()

func (*Withdraw) Reset

func (m *Withdraw) Reset()

func (*Withdraw) Size

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

func (*Withdraw) String

func (m *Withdraw) String() string

func (*Withdraw) Unmarshal

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

func (*Withdraw) XXX_DiscardUnknown

func (m *Withdraw) XXX_DiscardUnknown()

func (*Withdraw) XXX_Marshal

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

func (*Withdraw) XXX_Merge

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

func (*Withdraw) XXX_Size

func (m *Withdraw) XXX_Size() int

func (*Withdraw) XXX_Unmarshal

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

type Withdraws

type Withdraws struct {
	Withdraws []Withdraw `protobuf:"bytes,1,rep,name=withdraws,proto3" json:"withdraws"`
}

Withdraws defines an array of Withdraw objects.

func (*Withdraws) Descriptor

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

func (*Withdraws) GetWithdraws

func (m *Withdraws) GetWithdraws() []Withdraw

func (*Withdraws) Marshal

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

func (*Withdraws) MarshalTo

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

func (*Withdraws) MarshalToSizedBuffer

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

func (*Withdraws) ProtoMessage

func (*Withdraws) ProtoMessage()

func (*Withdraws) Reset

func (m *Withdraws) Reset()

func (*Withdraws) Size

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

func (*Withdraws) String

func (m *Withdraws) String() string

func (*Withdraws) Unmarshal

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

func (*Withdraws) XXX_DiscardUnknown

func (m *Withdraws) XXX_DiscardUnknown()

func (*Withdraws) XXX_Marshal

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

func (*Withdraws) XXX_Merge

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

func (*Withdraws) XXX_Size

func (m *Withdraws) XXX_Size() int

func (*Withdraws) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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