Documentation ¶
Index ¶
- func Bech32ifyAddressBytes(prefix string, address sdk.AccAddress) (string, error)
- func GetAccAddressFromValAdderss(address, accountPrefix string) (string, error)
- func GetTimeFromUNIXTimeStamp(unix int) time.Time
- func ValAddressFromBech32(address, prefix string) (valAddr sdk.ValAddress, err error)
- type Account
- func (a Account) GetAddress() string
- func (a Account) GetEndTime() (time.Time, error)
- func (a Account) GetEndTimeUNIX() (int, error)
- func (a Account) GetOriginalVesting() sdktypes.Coins
- func (a Account) GetStartTime() (time.Time, error)
- func (a Account) GetStartTimeUNIX() (int, error)
- func (a Account) GetType() string
- type AddressSharesInIncentiveContract
- type AppState
- type BaseAccount
- type BaseVestingAccount
- type BeginUnlocking
- type CallBackInfo
- type CallBackInfoWithHeight
- type ContinuousVestingAccount
- type ContractDetails
- type DelayedVestingAccount
- type Delegator
- type Delegators
- type DepositorDetailsBond
- type DepositorDetailsUnbond
- type DirRange
- type Genesis
- type GenesisState
- type LockDetailsByHeight
- type Params
- type PeriodicVestingAccount
- type PermanentLockedAccount
- type Test
- type ToBeMintedBondsAtHeight
- type Validators
- func (v Validators) GetAccountAddressesList() ([]string, error)
- func (v Validators) GetListOfDecPercentage(totalShares sdk.Dec) []sdk.Dec
- func (v Validators) GetListOfMoniker() []string
- func (v Validators) GetTotalDelegations() []sdk.Int
- func (v Validators) GetTotalShares() sdk.Dec
- func (v Validators) SortStable()
- type VestingPeriods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bech32ifyAddressBytes ¶
func Bech32ifyAddressBytes(prefix string, address sdk.AccAddress) (string, error)
Bech32ifyAddressBytes returns a bech32 representation of address bytes. Returns an empty sting if the byte slice is 0-length. Returns an error if the bech32 conversion fails or the prefix is empty.
func ValAddressFromBech32 ¶
func ValAddressFromBech32(address, prefix string) (valAddr sdk.ValAddress, err error)
ValAddressFromBech32 creates a ValAddress from a Bech32 string.
Types ¶
type Account ¶
type Account struct { Type string `json:"@type"` BaseVestingAccount BaseVestingAccount `json:"base_vesting_account"` StartTime string `json:"start_time"` VestingPeriods []VestingPeriods `json:"vesting_periods"` }
func (Account) GetAddress ¶
func (Account) GetEndTimeUNIX ¶
func (Account) GetOriginalVesting ¶
func (Account) GetStartTimeUNIX ¶
type AddressSharesInIncentiveContract ¶
type AddressSharesInIncentiveContract struct {}
type AppState ¶
type AppState struct {
Auth GenesisState `json:"auth"`
}
type BaseAccount ¶
type BaseAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty" yaml:"public_key"` AccountNumber string `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty" yaml:"account_number"` Sequence string `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` }
type BaseVestingAccount ¶
type BaseVestingAccount struct { BaseAccount BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` OriginalVesting sdktypes.Coins `` /* 174-byte string literal not displayed */ DelegatedFree sdktypes.Coins `` /* 166-byte string literal not displayed */ DelegatedVesting sdktypes.Coins `` /* 178-byte string literal not displayed */ EndTime string `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` }
type BeginUnlocking ¶
type CallBackInfo ¶
type CallBackInfoWithHeight ¶
type CallBackInfoWithHeight struct { Height int64 `json:"height"` CallBackInfos []CallBackInfo `json:"callBackInfos"` }
type ContractDetails ¶
type ContractDetails struct { Address string `json:"address"` LockID int64 `json:"lock_id"` LockedTokensProtoString string `json:"locked_tokens_proto_string"` Action string `json:"action"` CallbackInfo string `json:"callback_info"` ReplyMessageID string `json:"reply_message_id"` ReplyResult string `json:"reply_result"` }
type DelayedVestingAccount ¶
type Delegators ¶
type Delegators []Delegator
func (Delegators) SortStable ¶
func (d Delegators) SortStable()
type DepositorDetailsBond ¶
type DepositorDetailsUnbond ¶
type GenesisState ¶
type LockDetailsByHeight ¶
type LockDetailsByHeight struct { Height int64 `json:"height"` ContractDetails []ContractDetails `json:"contract_details"` }
type PeriodicVestingAccount ¶
type PermanentLockedAccount ¶
type ToBeMintedBondsAtHeight ¶
type ToBeMintedBondsAtHeight struct { Height int64 `json:"height"` DepositorDetailsBond []DepositorDetailsBond `json:"depositor_details_bond"` }
type Validators ¶
type Validators []stakingtypes.Validator
func ConvertToInternalValidators ¶
func ConvertToInternalValidators(validatorList stakingtypes.Validators) Validators
func (Validators) GetAccountAddressesList ¶
func (v Validators) GetAccountAddressesList() ([]string, error)
func (Validators) GetListOfDecPercentage ¶
func (v Validators) GetListOfDecPercentage(totalShares sdk.Dec) []sdk.Dec
func (Validators) GetListOfMoniker ¶
func (v Validators) GetListOfMoniker() []string
func (Validators) GetTotalDelegations ¶
func (v Validators) GetTotalDelegations() []sdk.Int
func (Validators) GetTotalShares ¶
func (v Validators) GetTotalShares() sdk.Dec
func (Validators) SortStable ¶
func (v Validators) SortStable()
type VestingPeriods ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.