Documentation
¶
Index ¶
- Variables
- func BytesToCompactBytes(bytes []byte) (res []byte)
- func CompactBytesToBytes(bytes []byte) []byte
- func Encode(typeString string, value interface{}) (res string, err error)
- func ExtendLEBytes(input []byte, length int) []byte
- func GetNumOfBytes(b byte) (res int)
- func GetNumOfBytesByUint32(i uint32) (res int)
- func MinInt(a int, b int) int
- func RemoveExtraLEBytes(input []byte) []byte
- func RevertBytes(input []byte) (output []byte)
- type AccountId
- type AccountIndex
- type ApprovalFlag
- type Attestation
- type AttestedCandidate
- type AuthorityId
- type AuthorityWeight
- type Balance
- type BalanceLock
- type BalanceOf
- type BlockNumber
- type Bytes
- type CategoryId
- type ContentId
- type DataObjectStorageRelationshipId
- type DataObjectTypeId
- type DownloadSessionid
- type EdgewareKeys
- type EdgewareQueuedKeys
- type EraIndex
- type Exposure
- type Gas
- type H256
- type Hash
- type HeadData
- type Heartbeat
- type IPNSIdentity
- type Identity
- type IdentityType
- type Index
- type IndividualExposure
- type Key
- type KeyValue
- type LegacyKeys
- type LegacyQueuedKeys
- type LiabilityIndex
- type LockPeriods
- type MemberId
- type Moment
- type NewAccountOutcome
- type OffenceDetails
- type OffsetBytes
- func (sb *OffsetBytes) Check() (err error)
- func (sb *OffsetBytes) FromCompact() (res OffsetBytes, err error)
- func (sb *OffsetBytes) GetAll() (bytes []byte)
- func (sb *OffsetBytes) GetNextByte() (b byte, err error)
- func (sb *OffsetBytes) GetNextBytes(length int) (bytes []byte, err error)
- func (sb *OffsetBytes) GetRemaining() (bytes []byte)
- func (sb *OffsetBytes) GetRemainingLength() (length int)
- func (sb *OffsetBytes) Reset()
- func (sb *OffsetBytes) ToAccountId() (res AccountId, err error)
- func (sb *OffsetBytes) ToAccountIndex() (res AccountIndex, err error)
- func (sb *OffsetBytes) ToApprovalFlag() (res ApprovalFlag, err error)
- func (sb *OffsetBytes) ToAttestation() (res Attestation, err error)
- func (sb *OffsetBytes) ToAttestedCandidate() (res AttestedCandidate, err error)
- func (sb *OffsetBytes) ToAuthorityId() (res AuthorityId, err error)
- func (sb *OffsetBytes) ToAuthorityWeight() (res AuthorityWeight, err error)
- func (sb *OffsetBytes) ToBalance() (res Balance, err error)
- func (sb *OffsetBytes) ToBalanceOf() (res BalanceOf, err error)
- func (sb *OffsetBytes) ToBidder() (string, error)
- func (sb *OffsetBytes) ToBlockNumber() (res BlockNumber, err error)
- func (sb *OffsetBytes) ToBool() (res bool, err error)
- func (sb *OffsetBytes) ToBytes() (res Bytes, err error)
- func (sb *OffsetBytes) ToCategoryId() (res CategoryId, err error)
- func (sb *OffsetBytes) ToCompact() (res OffsetBytes, err error)
- func (sb *OffsetBytes) ToCompactBalance() (res Balance, err error)
- func (sb *OffsetBytes) ToCompactEraIndex() (res EraIndex, err error)
- func (sb *OffsetBytes) ToCompactMoment() (res time.Time, err error)
- func (sb *OffsetBytes) ToCompactUInt32() (res U32, err error)
- func (sb *OffsetBytes) ToCompactUint128() (res U128, err error)
- func (sb *OffsetBytes) ToContentId() (res ContentId, err error)
- func (sb *OffsetBytes) ToContentVisibility() (string, error)
- func (sb *OffsetBytes) ToConviction() (string, error)
- func (sb *OffsetBytes) ToDataObjectStorageRelationshipId() (res DataObjectStorageRelationshipId, err error)
- func (sb *OffsetBytes) ToDataObjectTypeId() (res DataObjectTypeId, err error)
- func (sb *OffsetBytes) ToDownloadSessionid() (res DownloadSessionid, err error)
- func (sb *OffsetBytes) ToDownloadState() (string, error)
- func (sb *OffsetBytes) ToEdgewareKeys() (res EdgewareKeys, err error)
- func (sb *OffsetBytes) ToEdgewareQueuedKeys() (res EdgewareQueuedKeys, err error)
- func (sb *OffsetBytes) ToEntryMethod() (string, error)
- func (sb *OffsetBytes) ToEnumValue(enum []string) (res string, err error)
- func (sb *OffsetBytes) ToEraIndex() (res EraIndex, err error)
- func (sb *OffsetBytes) ToExposure() (res Exposure, err error)
- func (sb *OffsetBytes) ToGas() (res Gas, err error)
- func (sb *OffsetBytes) ToH256() (res string, err error)
- func (sb *OffsetBytes) ToHash() (res Hash, err error)
- func (sb *OffsetBytes) ToHeadData() (res HeadData, err error)
- func (sb *OffsetBytes) ToHeartbeat() (res Heartbeat, err error)
- func (sb *OffsetBytes) ToHex() (res string)
- func (sb *OffsetBytes) ToHexBytes() (res string, err error)
- func (sb *OffsetBytes) ToIPNSIdentity() (res IPNSIdentity, err error)
- func (sb *OffsetBytes) ToIdentity() (res Identity, err error)
- func (sb *OffsetBytes) ToIdentityType() (res IdentityType, err error)
- func (sb *OffsetBytes) ToIndex() (res Index, err error)
- func (sb *OffsetBytes) ToIndividualExposure() (res IndividualExposure, err error)
- func (sb *OffsetBytes) ToKey() (res Key, err error)
- func (sb *OffsetBytes) ToKeyValue() (res KeyValue, err error)
- func (sb *OffsetBytes) ToLegacyKeys() (res LegacyKeys, err error)
- func (sb *OffsetBytes) ToLegacyQueuedKeys() (res LegacyQueuedKeys, err error)
- func (sb *OffsetBytes) ToLiabilityIndex() (res LiabilityIndex, err error)
- func (sb *OffsetBytes) ToLiaisonJudgement() (string, error)
- func (sb *OffsetBytes) ToLockPeriods() (res LockPeriods, err error)
- func (sb *OffsetBytes) ToMemberId() (res MemberId, err error)
- func (sb *OffsetBytes) ToMoment() (res Moment, err error)
- func (sb *OffsetBytes) ToNewAccountOutcome() (res NewAccountOutcome, err error)
- func (sb *OffsetBytes) ToOpaqueMultiaddr() (res OpaqueMultiaddr, err error)
- func (sb *OffsetBytes) ToOpaqueNetworkState() (res OpaqueNetworkState, err error)
- func (sb *OffsetBytes) ToOpaquePeerId() (res OpaquePeerId, err error)
- func (sb *OffsetBytes) ToPaidTermId() (res PaidTermId, err error)
- func (sb *OffsetBytes) ToParaId() (res ParaId, err error)
- func (sb *OffsetBytes) ToParachainDispatchOrigin() (string, error)
- func (sb *OffsetBytes) ToPermill() (res Permill, err error)
- func (sb *OffsetBytes) ToPostId() (res PostId, err error)
- func (sb *OffsetBytes) ToPrefabWasmModule() (res PrefabWasmModule, err error)
- func (sb *OffsetBytes) ToPropIndex() (res PropIndex, err error)
- func (sb *OffsetBytes) ToProposalCategory() (string, error)
- func (sb *OffsetBytes) ToProposalContents() (res ProposalContents, err error)
- func (sb *OffsetBytes) ToProposalIndex() (res ProposalIndex, err error)
- func (sb *OffsetBytes) ToProposalStage() (string, error)
- func (sb *OffsetBytes) ToProposalStatus() (string, error)
- func (sb *OffsetBytes) ToProposalTitle() (res ProposalTitle, err error)
- func (sb *OffsetBytes) ToQueuedKeys() (res QueuedKeys, err error)
- func (sb *OffsetBytes) ToReferendumIndex() (res ReferendumIndex, err error)
- func (sb *OffsetBytes) ToReporter() (res Reporter, err error)
- func (sb *OffsetBytes) ToRewardDestination() (string, error)
- func (sb *OffsetBytes) ToRole() (string, error)
- func (sb *OffsetBytes) ToSchemaId() (res SchemaId, err error)
- func (sb *OffsetBytes) ToSessionIndex() (res SessionIndex, err error)
- func (sb *OffsetBytes) ToSessionKey() (res SessionKey, err error)
- func (sb *OffsetBytes) ToSessionKeysPolkadot() (res SessionKeysPolkadot, err error)
- func (sb *OffsetBytes) ToSessionKeysSubstrate() (res SessionKeysSubstrate, err error)
- func (sb *OffsetBytes) ToSetIndex() (res SetIndex, err error)
- func (sb *OffsetBytes) ToSoredState() (string, error)
- func (sb *OffsetBytes) ToStakingLedger() (res StakingLedger, err error)
- func (sb *OffsetBytes) ToStorageHasher() (string, error)
- func (sb *OffsetBytes) ToStoredPendingChange() (res StoredPendingChange, err error)
- func (sb *OffsetBytes) ToString() (res string, err error)
- func (sb *OffsetBytes) ToSubscriptionId() (res SubscriptionId, err error)
- func (sb *OffsetBytes) ToTallyType() (string, error)
- func (sb *OffsetBytes) ToThreadId() (res ThreadId, err error)
- func (sb *OffsetBytes) ToUint128() (res U128, err error)
- func (sb *OffsetBytes) ToUint16() (res uint16, err error)
- func (sb *OffsetBytes) ToUint32() (res U32, err error)
- func (sb *OffsetBytes) ToUint64() (res U64, err error)
- func (sb *OffsetBytes) ToUint8() (res U8, err error)
- func (sb *OffsetBytes) ToUncleEntryItem() (string, error)
- func (sb *OffsetBytes) ToUnlockChunk() (res UnlockChunk, err error)
- func (sb *OffsetBytes) ToUrl() (res Url, err error)
- func (sb *OffsetBytes) ToValidatorId() (res ValidatorId, err error)
- func (sb *OffsetBytes) ToValidatorPrefs() (res ValidatorPrefs, err error)
- func (sb *OffsetBytes) ToValidatorPrefsLegacy() (res ValidatorPrefsLegacy, err error)
- func (sb *OffsetBytes) ToVecCount() (res U32, err error)
- func (sb *OffsetBytes) ToVecQueuedKeys() (res []QueuedKeys, err error)
- func (sb *OffsetBytes) ToVecUint8ByLength(length U32) (res Bytes, err error)
- func (sb *OffsetBytes) ToVestingSchedule() (res VestingSchedule, err error)
- func (sb *OffsetBytes) ToVote() (res Vote, err error)
- func (sb *OffsetBytes) ToVoteIndex() (res VoteIndex, err error)
- func (sb *OffsetBytes) ToVoteKind() (string, error)
- func (sb *OffsetBytes) ToVoteStage() (string, error)
- func (sb *OffsetBytes) ToVoteThreshold() (string, error)
- func (sb *OffsetBytes) ToVoteType() (string, error)
- func (sb *OffsetBytes) ToVoterInfo() (res VoterInfo, err error)
- func (sb *OffsetBytes) ToWithdrawReasons() (string, error)
- type OpaqueMultiaddr
- type OpaqueNetworkState
- type OpaquePeerId
- type PaidTermId
- type ParaId
- type Permill
- type PostId
- type PrefabWasmModule
- type PropIndex
- type ProposalContents
- type ProposalIndex
- type ProposalTitle
- type QueuedKeys
- type ReferendumIndex
- type Reporter
- type SchemaId
- type SessionIndex
- type SessionKey
- type SessionKeysPolkadot
- type SessionKeysSubstrate
- type SetIndex
- type StakingLedger
- type StoredPendingChange
- type SubscriptionId
- type ThreadId
- type U128
- type U32
- type U64
- type U8
- type UnlockChunk
- type Url
- type ValidatorId
- type ValidatorPrefs
- type ValidatorPrefsLegacy
- type VestingSchedule
- type Vote
- type VoteIndex
- type VoterInfo
Constants ¶
This section is empty.
Variables ¶
var Bidder = []string{"NewBidder", "ParaId"}
var ContentVisibility = []string{"Draft", "Public"}
var Conviction = []string{"None", "Locked1x", "Locked2x", "Locked3x", "Locked4x", "Locked5x"}
var DownloadState = []string{"Started", "Ended"}
var EntryMethod = []string{"Paid", "Screening"}
var LiaisonJudgement = []string{"Pending", "Accepted", "Rejected"}
var ParachainDispatchOrigin = []string{"Signed", "Parachain"}
var ProposalCategory = []string{"Signaling"}
var ProposalStage = []string{"PreVoting", "Voting", "Completed"}
var ProposalStatus = []string{"Active", "Cancelled", "Expired", "Approved", "Rejected", "Slashed"}
var RewardDestination = []string{"Staked", "Stash", "Controller"}
var Role = []string{"Storage"}
var StorageHasher = []string{"Blake2_128", "Blake2_256", "Twox128", "Twox256", "Twox128Concat"}
var StoredState = []string{"Live", "PendingPause", "Paused", "PendingResume"}
var TallyType = []string{"OnePerson", "OneCoin"}
var UncleEntryItem = []string{"InclusionHeight", "Uncle"}
var VoteKind = []string{"Abstain", "Approve", "Reject", "Slash"}
var VoteStage = []string{"PreVoting", "Commit", "Voting", "Completed"}
var VoteThreshold = []string{"SuperMajorityApprove", "SuperMajorityAgainst", "SimpleMajority"}
var VoteType = []string{"Binary", "MultiOption"}
var WithdrawReasons = []string{"TransactionPayment", "Transfer", "Reserve", "Fee"}
Functions ¶
func BytesToCompactBytes ¶
func CompactBytesToBytes ¶
func ExtendLEBytes ¶
func GetNumOfBytes ¶
func GetNumOfBytesByUint32 ¶
func RemoveExtraLEBytes ¶
func RevertBytes ¶
Types ¶
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 BalanceLock ¶
TODO: Unknown LockIdentifier
type BlockNumber ¶
type BlockNumber U64
type CategoryId ¶
type CategoryId U64
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 Exposure ¶
type Exposure struct {
Total Balance
Own Balance
Others []IndividualExposure
}
type Heartbeat ¶
type Heartbeat struct {
BlockNumber BlockNumber
NetworkState OpaqueNetworkState
SessionIndex SessionIndex
AuthorityId AuthorityId
}
type IPNSIdentity ¶
type IPNSIdentity Bytes
type IdentityType ¶
type IdentityType Bytes
type IndividualExposure ¶
type LegacyKeys ¶
type LegacyQueuedKeys ¶
type LegacyQueuedKeys struct {
Validator ValidatorId
Keys LegacyKeys
}
type LiabilityIndex ¶
type LiabilityIndex U64
type LockPeriods ¶
type LockPeriods U8
type NewAccountOutcome ¶
type NewAccountOutcome U32
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) 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 PrefabWasmModule ¶
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 SessionIndex ¶
type SessionIndex uint32
type SessionKey ¶
type SessionKey H256
type SessionKeysPolkadot ¶
type SessionKeysSubstrate ¶
type StakingLedger ¶
type StakingLedger struct {
Stash AccountId
Total Balance
Active Balance
Unlocking []UnlockChunk
}
type StoredPendingChange ¶
type SubscriptionId ¶
type SubscriptionId U64
type UnlockChunk ¶
type ValidatorId ¶
type ValidatorId H256
type ValidatorPrefs ¶
type ValidatorPrefs struct {
ValidatorPayment Balance
}
type ValidatorPrefsLegacy ¶
type VestingSchedule ¶
type VestingSchedule struct {
Offset Balance
PerBlock Balance
StartingBlock BlockNumber
}