codec

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bidder = []string{"NewBidder", "ParaId"}
View Source
var ContentVisibility = []string{"Draft", "Public"}
View Source
var Conviction = []string{"None", "Locked1x", "Locked2x", "Locked3x", "Locked4x", "Locked5x"}
View Source
var DownloadState = []string{"Started", "Ended"}
View Source
var EntryMethod = []string{"Paid", "Screening"}
View Source
var LiaisonJudgement = []string{"Pending", "Accepted", "Rejected"}
View Source
var ParachainDispatchOrigin = []string{"Signed", "Parachain"}
View Source
var ProposalCategory = []string{"Signaling"}
View Source
var ProposalStage = []string{"PreVoting", "Voting", "Completed"}
View Source
var ProposalStatus = []string{"Active", "Cancelled", "Expired", "Approved", "Rejected", "Slashed"}
View Source
var RewardDestination = []string{"Staked", "Stash", "Controller"}
View Source
var Role = []string{"Storage"}
View Source
var StorageHasher = []string{"Blake2_128", "Blake2_256", "Twox128", "Twox256", "Twox128Concat"}
View Source
var StoredState = []string{"Live", "PendingPause", "Paused", "PendingResume"}
View Source
var TallyType = []string{"OnePerson", "OneCoin"}
View Source
var UncleEntryItem = []string{"InclusionHeight", "Uncle"}
View Source
var VoteKind = []string{"Abstain", "Approve", "Reject", "Slash"}
View Source
var VoteStage = []string{"PreVoting", "Commit", "Voting", "Completed"}
View Source
var VoteThreshold = []string{"SuperMajorityApprove", "SuperMajorityAgainst", "SimpleMajority"}
View Source
var VoteType = []string{"Binary", "MultiOption"}
View Source
var WithdrawReasons = []string{"TransactionPayment", "Transfer", "Reserve", "Fee"}

Functions

func BytesToCompactBytes

func BytesToCompactBytes(bytes []byte) (res []byte)

func CompactBytesToBytes

func CompactBytesToBytes(bytes []byte) []byte

func Encode

func Encode(typeString string, value interface{}) (res string, err error)

func ExtendLEBytes

func ExtendLEBytes(input []byte, length int) []byte

func GetNumOfBytes

func GetNumOfBytes(b byte) (res int)

func GetNumOfBytesByUint32

func GetNumOfBytesByUint32(i uint32) (res int)

func MinInt

func MinInt(a int, b int) int

func RemoveExtraLEBytes

func RemoveExtraLEBytes(input []byte) []byte

func RevertBytes

func RevertBytes(input []byte) (output []byte)

Types

type AccountId

type AccountId H256

type AccountIndex

type AccountIndex U32

type ApprovalFlag

type ApprovalFlag U32

type Attestation

type Attestation Bytes

type AttestedCandidate

type AttestedCandidate H256

type AuthorityId

type AuthorityId H256

type AuthorityWeight

type AuthorityWeight U64

type Balance

type Balance U128

type BalanceLock

type BalanceLock struct {
	Id      string
	Amount  big.Int
	Until   uint64
	Reasons string
}

TODO: Unknown LockIdentifier

type BalanceOf

type BalanceOf Balance

type BlockNumber

type BlockNumber U64

type Bytes

type Bytes []U8

type CategoryId

type CategoryId U64

type ContentId

type ContentId H256

type DataObjectStorageRelationshipId

type DataObjectStorageRelationshipId U64

type DataObjectTypeId

type DataObjectTypeId U64

type DownloadSessionid

type DownloadSessionid U64

type EdgewareKeys

type EdgewareKeys struct {
	Grandpa AccountId
}

type EdgewareQueuedKeys

type EdgewareQueuedKeys struct {
	Validator ValidatorId
	Keys      EdgewareKeys
}

type EraIndex

type EraIndex U32

type Exposure

type Exposure struct {
	Total  Balance
	Own    Balance
	Others []IndividualExposure
}

type Gas

type Gas U64

type H256

type H256 string

type Hash

type Hash H256

type HeadData

type HeadData Bytes

type Heartbeat

type Heartbeat struct {
	BlockNumber  BlockNumber
	NetworkState OpaqueNetworkState
	SessionIndex SessionIndex
	AuthorityId  AuthorityId
}

type IPNSIdentity

type IPNSIdentity Bytes

type Identity

type Identity Bytes

type IdentityType

type IdentityType Bytes

type Index

type Index U64

type IndividualExposure

type IndividualExposure struct {
	Who   AccountId
	Value Balance
}

type Key

type Key Bytes

type KeyValue

type KeyValue struct {
	Key   Bytes
	Value Bytes
}

type LegacyKeys

type LegacyKeys struct {
	Grandpa AccountId
	Babe    AccountId
}

type LegacyQueuedKeys

type LegacyQueuedKeys struct {
	Validator ValidatorId
	Keys      LegacyKeys
}

type LiabilityIndex

type LiabilityIndex U64

type LockPeriods

type LockPeriods U8

type MemberId

type MemberId U64

type Moment

type Moment U64

type NewAccountOutcome

type NewAccountOutcome U32

type OffenceDetails

type OffenceDetails struct {
}

TODO: Unknown structures

type OffsetBytes

type OffsetBytes struct {
	// contains filtered or unexported fields
}

OffsetBytes is a wrapper for []bytes that's keeping offset for reading purposes

func BoolToBytes

func BoolToBytes(value interface{}) (res OffsetBytes, err error)

func IntToBytes

func IntToBytes(value interface{}) (res OffsetBytes, err error)

func NewBytes

func NewBytes(data interface{}) (sb OffsetBytes, err error)

NewBytes creates OffsetBytes struct

func StringToBytes

func StringToBytes(value interface{}) (res OffsetBytes, err error)

func (*OffsetBytes) Check

func (sb *OffsetBytes) Check() (err error)

Check checks if extra bytes exist

func (*OffsetBytes) FromCompact

func (sb *OffsetBytes) FromCompact() (res OffsetBytes, err error)

func (*OffsetBytes) GetAll

func (sb *OffsetBytes) GetAll() (bytes []byte)

GetAll resets offset and returns all bytes

func (*OffsetBytes) GetNextByte

func (sb *OffsetBytes) GetNextByte() (b byte, err error)

GetNextByte returns next byte

func (*OffsetBytes) GetNextBytes

func (sb *OffsetBytes) GetNextBytes(length int) (bytes []byte, err error)

GetNextBytes returns `length` number of bytes

func (*OffsetBytes) GetRemaining

func (sb *OffsetBytes) GetRemaining() (bytes []byte)

GetRemaining returns remaining bytes

func (*OffsetBytes) GetRemainingLength

func (sb *OffsetBytes) GetRemainingLength() (length int)

GetRemainingLength returns number of remaining bytes

func (*OffsetBytes) Reset

func (sb *OffsetBytes) Reset()

Reset resets offset

func (*OffsetBytes) ToAccountId

func (sb *OffsetBytes) ToAccountId() (res AccountId, err error)

func (*OffsetBytes) ToAccountIndex

func (sb *OffsetBytes) ToAccountIndex() (res AccountIndex, err error)

func (*OffsetBytes) ToApprovalFlag

func (sb *OffsetBytes) ToApprovalFlag() (res ApprovalFlag, err error)

func (*OffsetBytes) ToAttestation

func (sb *OffsetBytes) ToAttestation() (res Attestation, err error)

func (*OffsetBytes) ToAttestedCandidate

func (sb *OffsetBytes) ToAttestedCandidate() (res AttestedCandidate, err error)

func (*OffsetBytes) ToAuthorityId

func (sb *OffsetBytes) ToAuthorityId() (res AuthorityId, err error)

func (*OffsetBytes) ToAuthorityWeight

func (sb *OffsetBytes) ToAuthorityWeight() (res AuthorityWeight, err error)

func (*OffsetBytes) ToBalance

func (sb *OffsetBytes) ToBalance() (res Balance, err error)

func (*OffsetBytes) ToBalanceOf

func (sb *OffsetBytes) ToBalanceOf() (res BalanceOf, err error)

func (*OffsetBytes) ToBidder

func (sb *OffsetBytes) ToBidder() (string, error)

func (*OffsetBytes) ToBlockNumber

func (sb *OffsetBytes) ToBlockNumber() (res BlockNumber, err error)

func (*OffsetBytes) ToBool

func (sb *OffsetBytes) ToBool() (res bool, err error)

func (*OffsetBytes) ToBytes

func (sb *OffsetBytes) ToBytes() (res Bytes, err error)

ToBytes ... <Vec<u8>> i.e. OffsetBytes

func (*OffsetBytes) ToCategoryId

func (sb *OffsetBytes) ToCategoryId() (res CategoryId, err error)

func (*OffsetBytes) ToCompact

func (sb *OffsetBytes) ToCompact() (res OffsetBytes, err error)

func (*OffsetBytes) ToCompactBalance

func (sb *OffsetBytes) ToCompactBalance() (res Balance, err error)

func (*OffsetBytes) ToCompactEraIndex

func (sb *OffsetBytes) ToCompactEraIndex() (res EraIndex, err error)

func (*OffsetBytes) ToCompactMoment

func (sb *OffsetBytes) ToCompactMoment() (res time.Time, err error)

func (*OffsetBytes) ToCompactUInt32

func (sb *OffsetBytes) ToCompactUInt32() (res U32, err error)

func (*OffsetBytes) ToCompactUint128

func (sb *OffsetBytes) ToCompactUint128() (res U128, err error)

func (*OffsetBytes) ToContentId

func (sb *OffsetBytes) ToContentId() (res ContentId, err error)

func (*OffsetBytes) ToContentVisibility

func (sb *OffsetBytes) ToContentVisibility() (string, error)

func (*OffsetBytes) ToConviction

func (sb *OffsetBytes) ToConviction() (string, error)

func (*OffsetBytes) ToDataObjectStorageRelationshipId

func (sb *OffsetBytes) ToDataObjectStorageRelationshipId() (res DataObjectStorageRelationshipId, err error)

func (*OffsetBytes) ToDataObjectTypeId

func (sb *OffsetBytes) ToDataObjectTypeId() (res DataObjectTypeId, err error)

func (*OffsetBytes) ToDownloadSessionid

func (sb *OffsetBytes) ToDownloadSessionid() (res DownloadSessionid, err error)

func (*OffsetBytes) ToDownloadState

func (sb *OffsetBytes) ToDownloadState() (string, error)

func (*OffsetBytes) ToEdgewareKeys

func (sb *OffsetBytes) ToEdgewareKeys() (res EdgewareKeys, err error)

ToEdgewareKeys ... (AccountId)

func (*OffsetBytes) ToEdgewareQueuedKeys

func (sb *OffsetBytes) ToEdgewareQueuedKeys() (res EdgewareQueuedKeys, err error)

ToEdgewareQueuedKeys ... (ValidatorId, EdgewareQueuedKeys)

func (*OffsetBytes) ToEntryMethod

func (sb *OffsetBytes) ToEntryMethod() (string, error)

func (*OffsetBytes) ToEnumValue

func (sb *OffsetBytes) ToEnumValue(enum []string) (res string, err error)

func (*OffsetBytes) ToEraIndex

func (sb *OffsetBytes) ToEraIndex() (res EraIndex, err error)

func (*OffsetBytes) ToExposure

func (sb *OffsetBytes) ToExposure() (res Exposure, err error)

ToExposure ... (Compact<Balance>, Compact<Balance>, Compact<Balance>, Vec<IndividualExposure<AccountId, Balance>>)

func (*OffsetBytes) ToGas

func (sb *OffsetBytes) ToGas() (res Gas, err error)

func (*OffsetBytes) ToH256

func (sb *OffsetBytes) ToH256() (res string, err error)

func (*OffsetBytes) ToHash

func (sb *OffsetBytes) ToHash() (res Hash, err error)

func (*OffsetBytes) ToHeadData

func (sb *OffsetBytes) ToHeadData() (res HeadData, err error)

func (*OffsetBytes) ToHeartbeat

func (sb *OffsetBytes) ToHeartbeat() (res Heartbeat, err error)

ToOpaqueNetworkState ... (BlockNumber, OpaqueNetworkState, SessionIndex, AuthorityId)

func (*OffsetBytes) ToHex

func (sb *OffsetBytes) ToHex() (res string)

func (*OffsetBytes) ToHexBytes

func (sb *OffsetBytes) ToHexBytes() (res string, err error)

Complex types

func (*OffsetBytes) ToIPNSIdentity

func (sb *OffsetBytes) ToIPNSIdentity() (res IPNSIdentity, err error)

func (*OffsetBytes) ToIdentity

func (sb *OffsetBytes) ToIdentity() (res Identity, err error)

func (*OffsetBytes) ToIdentityType

func (sb *OffsetBytes) ToIdentityType() (res IdentityType, err error)

func (*OffsetBytes) ToIndex

func (sb *OffsetBytes) ToIndex() (res Index, err error)

func (*OffsetBytes) ToIndividualExposure

func (sb *OffsetBytes) ToIndividualExposure() (res IndividualExposure, err error)

ToIndividualExposure ... (AccountId, Compact<Balance>)

func (*OffsetBytes) ToKey

func (sb *OffsetBytes) ToKey() (res Key, err error)

func (*OffsetBytes) ToKeyValue

func (sb *OffsetBytes) ToKeyValue() (res KeyValue, err error)

ToKeyValue ... (Vec<u8>, Vec<u8>)

func (*OffsetBytes) ToLegacyKeys

func (sb *OffsetBytes) ToLegacyKeys() (res LegacyKeys, err error)

ToLegacyKeys ... (AccountId, AccountId)

func (*OffsetBytes) ToLegacyQueuedKeys

func (sb *OffsetBytes) ToLegacyQueuedKeys() (res LegacyQueuedKeys, err error)

ToLegacyQueuedKeys ... (ValidatorId, LegacyKeys)

func (*OffsetBytes) ToLiabilityIndex

func (sb *OffsetBytes) ToLiabilityIndex() (res LiabilityIndex, err error)

func (*OffsetBytes) ToLiaisonJudgement

func (sb *OffsetBytes) ToLiaisonJudgement() (string, error)

func (*OffsetBytes) ToLockPeriods

func (sb *OffsetBytes) ToLockPeriods() (res LockPeriods, err error)

func (*OffsetBytes) ToMemberId

func (sb *OffsetBytes) ToMemberId() (res MemberId, err error)

func (*OffsetBytes) ToMoment

func (sb *OffsetBytes) ToMoment() (res Moment, err error)

func (*OffsetBytes) ToNewAccountOutcome

func (sb *OffsetBytes) ToNewAccountOutcome() (res NewAccountOutcome, err error)

func (*OffsetBytes) ToOpaqueMultiaddr

func (sb *OffsetBytes) ToOpaqueMultiaddr() (res OpaqueMultiaddr, err error)

func (*OffsetBytes) ToOpaqueNetworkState

func (sb *OffsetBytes) ToOpaqueNetworkState() (res OpaqueNetworkState, err error)

ToOpaqueNetworkState ... (OpaquePeerId, Vec<OpaqueMultiaddr>)

func (*OffsetBytes) ToOpaquePeerId

func (sb *OffsetBytes) ToOpaquePeerId() (res OpaquePeerId, err error)

func (*OffsetBytes) ToPaidTermId

func (sb *OffsetBytes) ToPaidTermId() (res PaidTermId, err error)

func (*OffsetBytes) ToParaId

func (sb *OffsetBytes) ToParaId() (res ParaId, err error)

func (*OffsetBytes) ToParachainDispatchOrigin

func (sb *OffsetBytes) ToParachainDispatchOrigin() (string, error)

func (*OffsetBytes) ToPermill

func (sb *OffsetBytes) ToPermill() (res Permill, err error)

func (*OffsetBytes) ToPostId

func (sb *OffsetBytes) ToPostId() (res PostId, err error)

func (*OffsetBytes) ToPrefabWasmModule

func (sb *OffsetBytes) ToPrefabWasmModule() (res PrefabWasmModule, err error)

ToPrefabWasmModule ... (Compact<u32>, Compact<u32>, Compact<u32>, Option<Null>, OffsetBytes)

func (*OffsetBytes) ToPropIndex

func (sb *OffsetBytes) ToPropIndex() (res PropIndex, err error)

func (*OffsetBytes) ToProposalCategory

func (sb *OffsetBytes) ToProposalCategory() (string, error)

func (*OffsetBytes) ToProposalContents

func (sb *OffsetBytes) ToProposalContents() (res ProposalContents, err error)

func (*OffsetBytes) ToProposalIndex

func (sb *OffsetBytes) ToProposalIndex() (res ProposalIndex, err error)

func (*OffsetBytes) ToProposalStage

func (sb *OffsetBytes) ToProposalStage() (string, error)

func (*OffsetBytes) ToProposalStatus

func (sb *OffsetBytes) ToProposalStatus() (string, error)

func (*OffsetBytes) ToProposalTitle

func (sb *OffsetBytes) ToProposalTitle() (res ProposalTitle, err error)

func (*OffsetBytes) ToQueuedKeys

func (sb *OffsetBytes) ToQueuedKeys() (res QueuedKeys, err error)

ToQueuedKeys ... (ValidatorId, Keys)

func (*OffsetBytes) ToReferendumIndex

func (sb *OffsetBytes) ToReferendumIndex() (res ReferendumIndex, err error)

func (*OffsetBytes) ToReporter

func (sb *OffsetBytes) ToReporter() (res Reporter, err error)

func (*OffsetBytes) ToRewardDestination

func (sb *OffsetBytes) ToRewardDestination() (string, error)

func (*OffsetBytes) ToRole

func (sb *OffsetBytes) ToRole() (string, error)

func (*OffsetBytes) ToSchemaId

func (sb *OffsetBytes) ToSchemaId() (res SchemaId, err error)

func (*OffsetBytes) ToSessionIndex

func (sb *OffsetBytes) ToSessionIndex() (res SessionIndex, err error)

func (*OffsetBytes) ToSessionKey

func (sb *OffsetBytes) ToSessionKey() (res SessionKey, err error)

func (*OffsetBytes) ToSessionKeysPolkadot

func (sb *OffsetBytes) ToSessionKeysPolkadot() (res SessionKeysPolkadot, err error)

ToSessionKeysPolkadot ... (AccountId, AccountId, AccountId, AccountId)

func (*OffsetBytes) ToSessionKeysSubstrate

func (sb *OffsetBytes) ToSessionKeysSubstrate() (res SessionKeysSubstrate, err error)

ToSessionKeysSubstrate ... (AccountId, AccountId, AccountId)

func (*OffsetBytes) ToSetIndex

func (sb *OffsetBytes) ToSetIndex() (res SetIndex, err error)

func (*OffsetBytes) ToSoredState

func (sb *OffsetBytes) ToSoredState() (string, error)

func (*OffsetBytes) ToStakingLedger

func (sb *OffsetBytes) ToStakingLedger() (res StakingLedger, err error)

ToStakingLedger ... (AccountId, Compact<Balance>, Compact<Balance>, Vec<UnlockChunk<Balance>>)

func (*OffsetBytes) ToStorageHasher

func (sb *OffsetBytes) ToStorageHasher() (string, error)

func (*OffsetBytes) ToStoredPendingChange

func (sb *OffsetBytes) ToStoredPendingChange() (res StoredPendingChange, err error)

ToStoredPendingChange ... (U32, U32)

func (*OffsetBytes) ToString

func (sb *OffsetBytes) ToString() (res string, err error)

func (*OffsetBytes) ToSubscriptionId

func (sb *OffsetBytes) ToSubscriptionId() (res SubscriptionId, err error)

func (*OffsetBytes) ToTallyType

func (sb *OffsetBytes) ToTallyType() (string, error)

func (*OffsetBytes) ToThreadId

func (sb *OffsetBytes) ToThreadId() (res ThreadId, err error)

func (*OffsetBytes) ToUint128

func (sb *OffsetBytes) ToUint128() (res U128, err error)

func (*OffsetBytes) ToUint16

func (sb *OffsetBytes) ToUint16() (res uint16, err error)

func (*OffsetBytes) ToUint32

func (sb *OffsetBytes) ToUint32() (res U32, err error)

func (*OffsetBytes) ToUint64

func (sb *OffsetBytes) ToUint64() (res U64, err error)

func (*OffsetBytes) ToUint8

func (sb *OffsetBytes) ToUint8() (res U8, err error)

func (*OffsetBytes) ToUncleEntryItem

func (sb *OffsetBytes) ToUncleEntryItem() (string, error)

func (*OffsetBytes) ToUnlockChunk

func (sb *OffsetBytes) ToUnlockChunk() (res UnlockChunk, err error)

ToUnlockChunk ... (Compact<Balance>, Compact<EraIndex>)

func (*OffsetBytes) ToUrl

func (sb *OffsetBytes) ToUrl() (res Url, err error)

func (*OffsetBytes) ToValidatorId

func (sb *OffsetBytes) ToValidatorId() (res ValidatorId, err error)

func (*OffsetBytes) ToValidatorPrefs

func (sb *OffsetBytes) ToValidatorPrefs() (res ValidatorPrefs, err error)

ToValidatorPrefs ... (Compact<Balance>)

func (*OffsetBytes) ToValidatorPrefsLegacy

func (sb *OffsetBytes) ToValidatorPrefsLegacy() (res ValidatorPrefsLegacy, err error)

ToValidatorPrefsLegacy ... (Compact<u32>,Compact<Balance>)

func (*OffsetBytes) ToVecCount

func (sb *OffsetBytes) ToVecCount() (res U32, err error)

func (*OffsetBytes) ToVecQueuedKeys

func (sb *OffsetBytes) ToVecQueuedKeys() (res []QueuedKeys, err error)

ToVecQueuedKeys ... Vec<(ValidatorId, Keys)>

func (*OffsetBytes) ToVecUint8ByLength

func (sb *OffsetBytes) ToVecUint8ByLength(length U32) (res Bytes, err error)

ToVecUint8ByLength ...

func (*OffsetBytes) ToVestingSchedule

func (sb *OffsetBytes) ToVestingSchedule() (res VestingSchedule, err error)

ToVestingSchedule ... (Balance, Balance, BlockNumber)

func (*OffsetBytes) ToVote

func (sb *OffsetBytes) ToVote() (res Vote, err error)

func (*OffsetBytes) ToVoteIndex

func (sb *OffsetBytes) ToVoteIndex() (res VoteIndex, err error)

func (*OffsetBytes) ToVoteKind

func (sb *OffsetBytes) ToVoteKind() (string, error)

func (*OffsetBytes) ToVoteStage

func (sb *OffsetBytes) ToVoteStage() (string, error)

func (*OffsetBytes) ToVoteThreshold

func (sb *OffsetBytes) ToVoteThreshold() (string, error)

func (*OffsetBytes) ToVoteType

func (sb *OffsetBytes) ToVoteType() (string, error)

func (*OffsetBytes) ToVoterInfo

func (sb *OffsetBytes) ToVoterInfo() (res VoterInfo, err error)

ToVoterInfo ... (VoteIndex, VoteIndex, Balance, Balance)

func (*OffsetBytes) ToWithdrawReasons

func (sb *OffsetBytes) ToWithdrawReasons() (string, error)

type OpaqueMultiaddr

type OpaqueMultiaddr Bytes

type OpaqueNetworkState

type OpaqueNetworkState struct {
	PeerId            OpaquePeerId
	ExternalAddresses OpaqueMultiaddr
}

type OpaquePeerId

type OpaquePeerId Bytes

type PaidTermId

type PaidTermId U64

type ParaId

type ParaId U32

type Permill

type Permill U32

type PostId

type PostId U64

type PrefabWasmModule

type PrefabWasmModule struct {
	ScheduleVersion U32
	Initial         U32
	Maximum         U32
	Code            Bytes
}

type PropIndex

type PropIndex U32

type ProposalContents

type ProposalContents Bytes

type ProposalIndex

type ProposalIndex U32

type ProposalTitle

type ProposalTitle Bytes

type QueuedKeys

type QueuedKeys struct {
	Validator ValidatorId
	Keys      SessionKeysPolkadot
}

TODO: Keys?

type ReferendumIndex

type ReferendumIndex U32

type Reporter

type Reporter AccountId

type SchemaId

type SchemaId U64

type SessionIndex

type SessionIndex uint32

type SessionKey

type SessionKey H256

type SessionKeysPolkadot

type SessionKeysPolkadot struct {
	Grandpa    AccountId
	Babe       AccountId
	ImOnline   AccountId
	Parachains AccountId
}

type SessionKeysSubstrate

type SessionKeysSubstrate struct {
	Grandpa  AccountId
	Babe     AccountId
	ImOnline AccountId
}

type SetIndex

type SetIndex U32

type StakingLedger

type StakingLedger struct {
	Stash     AccountId
	Total     Balance
	Active    Balance
	Unlocking []UnlockChunk
}

type StoredPendingChange

type StoredPendingChange struct {
	ScheduledAt U32
	Forced      U32
}

type SubscriptionId

type SubscriptionId U64

type ThreadId

type ThreadId uint64

type U128

type U128 big.Int

type U32

type U32 uint32

type U64

type U64 uint64

type U8

type U8 uint8

type UnlockChunk

type UnlockChunk struct {
	Value Balance
	Era   EraIndex
}

type Url

type Url Bytes

type ValidatorId

type ValidatorId H256

type ValidatorPrefs

type ValidatorPrefs struct {
	ValidatorPayment Balance
}

type ValidatorPrefsLegacy

type ValidatorPrefsLegacy struct {
	UnstakeThreshold U32
	ValidatorPayment Balance
}

type VestingSchedule

type VestingSchedule struct {
	Offset        Balance
	PerBlock      Balance
	StartingBlock BlockNumber
}

type Vote

type Vote U8

type VoteIndex

type VoteIndex U32

type VoterInfo

type VoterInfo struct {
	LastActive VoteIndex
	LastWin    VoteIndex
	Pot        Balance
	Stake      Balance
}

Jump to

Keyboard shortcuts

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