rewstruct

package
v0.9.28 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_rewstruct_rewstruct_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Amount

type Amount struct {
	Text     string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
	Numeric  []byte `protobuf:"bytes,3,opt,name=numeric,proto3" json:"numeric,omitempty"`
	Exp      int32  `protobuf:"varint,4,opt,name=exp,proto3" json:"exp,omitempty"`
	// contains filtered or unexported fields
}

func (*Amount) Descriptor deprecated

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

Deprecated: Use Amount.ProtoReflect.Descriptor instead.

func (*Amount) GetCurrency

func (x *Amount) GetCurrency() string

func (*Amount) GetExp

func (x *Amount) GetExp() int32

func (*Amount) GetNumeric

func (x *Amount) GetNumeric() []byte

func (*Amount) GetText

func (x *Amount) GetText() string

func (*Amount) ProtoMessage

func (*Amount) ProtoMessage()

func (*Amount) ProtoReflect

func (x *Amount) ProtoReflect() protoreflect.Message

func (*Amount) Reset

func (x *Amount) Reset()

func (*Amount) String

func (x *Amount) String() string

type Delegators

type Delegators struct {
	Height     uint64                          `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // delegator address
	Delegators map[string]*ValidatorsUnclaimed ``                                                                   // delegator address
	/* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Delegators) Descriptor deprecated

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

Deprecated: Use Delegators.ProtoReflect.Descriptor instead.

func (*Delegators) GetDelegators

func (x *Delegators) GetDelegators() map[string]*ValidatorsUnclaimed

func (*Delegators) GetHeight

func (x *Delegators) GetHeight() uint64

func (*Delegators) ProtoMessage

func (*Delegators) ProtoMessage()

func (*Delegators) ProtoReflect

func (x *Delegators) ProtoReflect() protoreflect.Message

func (*Delegators) Reset

func (x *Delegators) Reset()

func (*Delegators) String

func (x *Delegators) String() string

type Reward

type Reward struct {
	Network   string     `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	ChainId   string     `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Account   string     `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`     // delegator
	Validator string     `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"` // validator
	Sequence  uint64     `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Height    uint64     `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	Time      *Timestamp `protobuf:"bytes,7,opt,name=time,proto3" json:"time,omitempty"`         // full timestamp of grouped data
	Grouping  string     `protobuf:"bytes,8,opt,name=grouping,proto3" json:"grouping,omitempty"` // grouping that was used (like '1h' )
	Type      string     `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`         // optional
	Version   string     `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"`  //optional
	Amounts   []*Amount  `protobuf:"bytes,11,rep,name=amounts,proto3" json:"amounts,omitempty"`
	// contains filtered or unexported fields
}

func (*Reward) Descriptor deprecated

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

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetAccount

func (x *Reward) GetAccount() string

func (*Reward) GetAmounts

func (x *Reward) GetAmounts() []*Amount

func (*Reward) GetChainId

func (x *Reward) GetChainId() string

func (*Reward) GetGrouping

func (x *Reward) GetGrouping() string

func (*Reward) GetHeight

func (x *Reward) GetHeight() uint64

func (*Reward) GetNetwork

func (x *Reward) GetNetwork() string

func (*Reward) GetSequence

func (x *Reward) GetSequence() uint64

func (*Reward) GetTime

func (x *Reward) GetTime() *Timestamp

func (*Reward) GetType

func (x *Reward) GetType() string

func (*Reward) GetValidator

func (x *Reward) GetValidator() string

func (*Reward) GetVersion

func (x *Reward) GetVersion() string

func (*Reward) ProtoMessage

func (*Reward) ProtoMessage()

func (*Reward) ProtoReflect

func (x *Reward) ProtoReflect() protoreflect.Message

func (*Reward) Reset

func (x *Reward) Reset()

func (*Reward) String

func (x *Reward) String() string

type RewardAmount added in v0.9.18

type RewardAmount struct {
	Amounts   []*Amount `protobuf:"bytes,1,rep,name=amounts,proto3" json:"amounts,omitempty"`
	Validator string    `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

RewardAmount represents a delegator reward structure for cosmos base networks

func (*RewardAmount) Descriptor deprecated added in v0.9.18

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

Deprecated: Use RewardAmount.ProtoReflect.Descriptor instead.

func (*RewardAmount) GetAmounts added in v0.9.18

func (x *RewardAmount) GetAmounts() []*Amount

func (*RewardAmount) GetValidator added in v0.9.18

func (x *RewardAmount) GetValidator() string

func (*RewardAmount) ProtoMessage added in v0.9.18

func (*RewardAmount) ProtoMessage()

func (*RewardAmount) ProtoReflect added in v0.9.18

func (x *RewardAmount) ProtoReflect() protoreflect.Message

func (*RewardAmount) Reset added in v0.9.18

func (x *RewardAmount) Reset()

func (*RewardAmount) String added in v0.9.18

func (x *RewardAmount) String() string

type RewardTx added in v0.9.18

type RewardTx struct {
	Type             string          `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Timestamp        *Timestamp      `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Height           uint64          `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Hash             string          `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	Delegator        string          `protobuf:"bytes,5,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc     string          `protobuf:"bytes,6,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst     string          `protobuf:"bytes,7,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	Amounts          []*Amount       `protobuf:"bytes,8,rep,name=amounts,proto3" json:"amounts,omitempty"`
	Rewards          []*RewardAmount `protobuf:"bytes,9,rep,name=rewards,proto3" json:"rewards,omitempty"`
	RewardRecipients []string        `protobuf:"bytes,10,rep,name=reward_recipients,json=rewardRecipients,proto3" json:"reward_recipients,omitempty"`
	// contains filtered or unexported fields
}

RewardTx represents a transaction reward structure for cosmos base networks

func (*RewardTx) Descriptor deprecated added in v0.9.18

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

Deprecated: Use RewardTx.ProtoReflect.Descriptor instead.

func (*RewardTx) GetAmounts added in v0.9.18

func (x *RewardTx) GetAmounts() []*Amount

func (*RewardTx) GetDelegator added in v0.9.18

func (x *RewardTx) GetDelegator() string

func (*RewardTx) GetHash added in v0.9.18

func (x *RewardTx) GetHash() string

func (*RewardTx) GetHeight added in v0.9.18

func (x *RewardTx) GetHeight() uint64

func (*RewardTx) GetRewardRecipients added in v0.9.19

func (x *RewardTx) GetRewardRecipients() []string

func (*RewardTx) GetRewards added in v0.9.18

func (x *RewardTx) GetRewards() []*RewardAmount

func (*RewardTx) GetTimestamp added in v0.9.18

func (x *RewardTx) GetTimestamp() *Timestamp

func (*RewardTx) GetType added in v0.9.18

func (x *RewardTx) GetType() string

func (*RewardTx) GetValidatorDst added in v0.9.18

func (x *RewardTx) GetValidatorDst() string

func (*RewardTx) GetValidatorSrc added in v0.9.18

func (x *RewardTx) GetValidatorSrc() string

func (*RewardTx) ProtoMessage added in v0.9.18

func (*RewardTx) ProtoMessage()

func (*RewardTx) ProtoReflect added in v0.9.18

func (x *RewardTx) ProtoReflect() protoreflect.Message

func (*RewardTx) Reset added in v0.9.18

func (x *RewardTx) Reset()

func (*RewardTx) String added in v0.9.18

func (x *RewardTx) String() string

type RewardTxs added in v0.9.18

type RewardTxs struct {
	Txs []*RewardTx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*RewardTxs) Descriptor deprecated added in v0.9.18

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

Deprecated: Use RewardTxs.ProtoReflect.Descriptor instead.

func (*RewardTxs) GetTxs added in v0.9.18

func (x *RewardTxs) GetTxs() []*RewardTx

func (*RewardTxs) ProtoMessage added in v0.9.18

func (*RewardTxs) ProtoMessage()

func (*RewardTxs) ProtoReflect added in v0.9.18

func (x *RewardTxs) ProtoReflect() protoreflect.Message

func (*RewardTxs) Reset added in v0.9.18

func (x *RewardTxs) Reset()

func (*RewardTxs) String added in v0.9.18

func (x *RewardTxs) String() string

type Rewards

type Rewards struct {
	Network  string          `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	ChainId  string          `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Sequence uint64          `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Height   uint64          `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Time     *Timestamp      `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`         // full timestamp of grouped data
	Grouping string          `protobuf:"bytes,6,opt,name=grouping,proto3" json:"grouping,omitempty"` // grouping that was used (like '1h' )
	Type     string          `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`         // optional
	Version  string          `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`   //optional
	Claimed  []*SimpleReward `protobuf:"bytes,9,rep,name=claimed,proto3" json:"claimed,omitempty"`
	Earned   []*SimpleReward `protobuf:"bytes,10,rep,name=earned,proto3" json:"earned,omitempty"`
	// contains filtered or unexported fields
}

func (*Rewards) Descriptor deprecated

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

Deprecated: Use Rewards.ProtoReflect.Descriptor instead.

func (*Rewards) GetChainId

func (x *Rewards) GetChainId() string

func (*Rewards) GetClaimed

func (x *Rewards) GetClaimed() []*SimpleReward

func (*Rewards) GetEarned

func (x *Rewards) GetEarned() []*SimpleReward

func (*Rewards) GetGrouping

func (x *Rewards) GetGrouping() string

func (*Rewards) GetHeight

func (x *Rewards) GetHeight() uint64

func (*Rewards) GetNetwork

func (x *Rewards) GetNetwork() string

func (*Rewards) GetSequence

func (x *Rewards) GetSequence() uint64

func (*Rewards) GetTime

func (x *Rewards) GetTime() *Timestamp

func (*Rewards) GetType

func (x *Rewards) GetType() string

func (*Rewards) GetVersion

func (x *Rewards) GetVersion() string

func (*Rewards) ProtoMessage

func (*Rewards) ProtoMessage()

func (*Rewards) ProtoReflect

func (x *Rewards) ProtoReflect() protoreflect.Message

func (*Rewards) Reset

func (x *Rewards) Reset()

func (*Rewards) String

func (x *Rewards) String() string

type SimpleReward

type SimpleReward struct {
	Account          string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`     // delegator
	Validator        string     `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` // validator
	Height           uint64     `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Time             *Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` // full timestamp of grouped data
	Amounts          []*Amount  `protobuf:"bytes,6,rep,name=amounts,proto3" json:"amounts,omitempty"`
	TxHash           string     `protobuf:"bytes,7,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	RewardRecipients []string   `protobuf:"bytes,8,rep,name=reward_recipients,json=rewardRecipients,proto3" json:"reward_recipients,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleReward) Descriptor deprecated

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

Deprecated: Use SimpleReward.ProtoReflect.Descriptor instead.

func (*SimpleReward) GetAccount

func (x *SimpleReward) GetAccount() string

func (*SimpleReward) GetAmounts

func (x *SimpleReward) GetAmounts() []*Amount

func (*SimpleReward) GetHeight

func (x *SimpleReward) GetHeight() uint64

func (*SimpleReward) GetRewardRecipients added in v0.9.21

func (x *SimpleReward) GetRewardRecipients() []string

func (*SimpleReward) GetTime

func (x *SimpleReward) GetTime() *Timestamp

func (*SimpleReward) GetTxHash added in v0.9.21

func (x *SimpleReward) GetTxHash() string

func (*SimpleReward) GetValidator

func (x *SimpleReward) GetValidator() string

func (*SimpleReward) ProtoMessage

func (*SimpleReward) ProtoMessage()

func (*SimpleReward) ProtoReflect

func (x *SimpleReward) ProtoReflect() protoreflect.Message

func (*SimpleReward) Reset

func (x *SimpleReward) Reset()

func (*SimpleReward) String

func (x *SimpleReward) String() string

type Timestamp

type Timestamp struct {
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos   int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetNanos

func (x *Timestamp) GetNanos() int32

func (*Timestamp) GetSeconds

func (x *Timestamp) GetSeconds() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

func (x *Timestamp) ProtoReflect() protoreflect.Message

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

type Tx

type Tx struct {
	Type         string     `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Timestamp    *Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Height       uint64     `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Sender       []string   `protobuf:"bytes,4,rep,name=sender,proto3" json:"sender,omitempty"`
	Recipient    []string   `protobuf:"bytes,5,rep,name=recipient,proto3" json:"recipient,omitempty"`
	Validator    []string   `protobuf:"bytes,6,rep,name=validator,proto3" json:"validator,omitempty"`
	Delegator    string     `protobuf:"bytes,7,opt,name=delegator,proto3" json:"delegator,omitempty"`
	ValidatorSrc string     `protobuf:"bytes,8,opt,name=validator_src,json=validatorSrc,proto3" json:"validator_src,omitempty"`
	ValidatorDst string     `protobuf:"bytes,9,opt,name=validator_dst,json=validatorDst,proto3" json:"validator_dst,omitempty"`
	Amounts      []*Amount  `protobuf:"bytes,10,rep,name=amounts,proto3" json:"amounts,omitempty"`
	Rewards      []*Amount  `protobuf:"bytes,11,rep,name=rewards,proto3" json:"rewards,omitempty"`
	// contains filtered or unexported fields
}

func (*Tx) Descriptor deprecated

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

Deprecated: Use Tx.ProtoReflect.Descriptor instead.

func (*Tx) GetAmounts

func (x *Tx) GetAmounts() []*Amount

func (*Tx) GetDelegator

func (x *Tx) GetDelegator() string

func (*Tx) GetHeight

func (x *Tx) GetHeight() uint64

func (*Tx) GetRecipient

func (x *Tx) GetRecipient() []string

func (*Tx) GetRewards

func (x *Tx) GetRewards() []*Amount

func (*Tx) GetSender

func (x *Tx) GetSender() []string

func (*Tx) GetTimestamp

func (x *Tx) GetTimestamp() *Timestamp

func (*Tx) GetType

func (x *Tx) GetType() string

func (*Tx) GetValidator

func (x *Tx) GetValidator() []string

func (*Tx) GetValidatorDst

func (x *Tx) GetValidatorDst() string

func (*Tx) GetValidatorSrc

func (x *Tx) GetValidatorSrc() string

func (*Tx) ProtoMessage

func (*Tx) ProtoMessage()

func (*Tx) ProtoReflect

func (x *Tx) ProtoReflect() protoreflect.Message

func (*Tx) Reset

func (x *Tx) Reset()

func (*Tx) String

func (x *Tx) String() string

type Txs

type Txs struct {
	Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*Txs) Descriptor deprecated

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

Deprecated: Use Txs.ProtoReflect.Descriptor instead.

func (*Txs) GetTxs

func (x *Txs) GetTxs() []*Tx

func (*Txs) ProtoMessage

func (*Txs) ProtoMessage()

func (*Txs) ProtoReflect

func (x *Txs) ProtoReflect() protoreflect.Message

func (*Txs) Reset

func (x *Txs) Reset()

func (*Txs) String

func (x *Txs) String() string

type UnclaimedDenoms

type UnclaimedDenoms struct {
	Amount map[string]*Amount `` //denom
	/* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UnclaimedDenoms) Descriptor deprecated

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

Deprecated: Use UnclaimedDenoms.ProtoReflect.Descriptor instead.

func (*UnclaimedDenoms) GetAmount

func (x *UnclaimedDenoms) GetAmount() map[string]*Amount

func (*UnclaimedDenoms) ProtoMessage

func (*UnclaimedDenoms) ProtoMessage()

func (*UnclaimedDenoms) ProtoReflect

func (x *UnclaimedDenoms) ProtoReflect() protoreflect.Message

func (*UnclaimedDenoms) Reset

func (x *UnclaimedDenoms) Reset()

func (*UnclaimedDenoms) String

func (x *UnclaimedDenoms) String() string

type ValidatorsUnclaimed

type ValidatorsUnclaimed struct {
	Amounts map[string]*UnclaimedDenoms `` // validator address
	/* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidatorsUnclaimed) Descriptor deprecated

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

Deprecated: Use ValidatorsUnclaimed.ProtoReflect.Descriptor instead.

func (*ValidatorsUnclaimed) GetAmounts

func (x *ValidatorsUnclaimed) GetAmounts() map[string]*UnclaimedDenoms

func (*ValidatorsUnclaimed) ProtoMessage

func (*ValidatorsUnclaimed) ProtoMessage()

func (*ValidatorsUnclaimed) ProtoReflect

func (x *ValidatorsUnclaimed) ProtoReflect() protoreflect.Message

func (*ValidatorsUnclaimed) Reset

func (x *ValidatorsUnclaimed) Reset()

func (*ValidatorsUnclaimed) String

func (x *ValidatorsUnclaimed) String() string

Jump to

Keyboard shortcuts

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