# Functions

BigIntToIntBytes encodes the given big.Int to a big endian encoded signed integer byte slice of the given byte length, using a two's complement if the big.Int is negative and returning an error if the given big.Int would be bigger than the maximum positive (negative) numbers the byte slice of the given length could hold.
BigIntToUintBytes encodes the given big.Int to a big endian encoded unsigned integer byte slice of the given byte length, returning an error if the given big.Int would be bigger than the maximum number the byte slice of the given length could hold.
CreateStorageKey uses the given metadata and to derive the right hashing of method, prefix as well as arguments to create a hashed StorageKey.
DecodeFromBytes decodes `bz` with the scale codec into `target`.
DecodeFromHexString decodes `str` with the scale codec into `target`.
EncodedLength returns the length of the value when encoded as a byte array.
EncodeToBytes encodes `value` with the scale codec, returning []byte.
EncodeToHexString encodes `value` with the scale codec, returning a hex string (prefixed by 0x).
Eq compares the value of the input to see if there is a match.
GetHash returns a hash of the value.
Hex returns a hex string representation of the value (not of the encoded value).
HexDecodeString decodes bytes from a hex string.
HexEncode encodes bytes to a hex string.
IntBytesToBigInt decodes the given byte slice containing a big endian encoded signed integer to a big.Int, using a two's complement if the most significant bit is 1.
MustHexDecodeString panics if str cannot be decoded.
NewAccountID creates a new AccountID type.
NewAccountIndex creates a new AccountIndex type.
Deprecated: NewAccountInfo creates a new AccountInfo type.
NewAddressFromAccountID creates an Address from the given AccountID (public key).
NewAddressFromAccountIndex creates an Address from the given AccountIndex.
NewAddressFromHexAccountID creates an Address from the given hex string that contains an AccountID (public key).
NewAuthorityID creates a new AuthorityID type.
NewBool creates a new Bool.
NewBytes creates a new Bytes type.
NewBytes1024 creates a new Bytes1024 type.
NewBytes128 creates a new Bytes128 type.
NewBytes16 creates a new Bytes16 type.
NewBytes2048 creates a new Bytes2048 type.
NewBytes256 creates a new Bytes256 type.
NewBytes32 creates a new Bytes32 type.
NewBytes512 creates a new Bytes512 type.
NewBytes64 creates a new Bytes64 type.
NewBytes8 creates a new Bytes8 type.
No description provided by the author
NewData creates a new Data type.
NewExtrinsic creates a new Extrinsic from the provided Call.
NewH160 creates a new H160 type.
NewH256 creates a new H256 type.
NewH512 creates a new H512 type.
NewHash creates a new Hash type.
NewHashFromHexString creates a new Hash type from a hex string.
NewI128 creates a new I128 type.
NewI16 creates a new I16 type.
NewI256 creates a new I256 type.
NewI32 creates a new I32 type.
NewI64 creates a new I64 type.
NewI8 creates a new I8 type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMoment creates a new Moment type.
NewNull creates a new Null type.
NewOptionBool creates an OptionBool with a value.
NewOptionBoolEmpty creates an OptionBool without a value.
NewOptionBytes creates an OptionBytes with a value.
NewOptionBytes1024 creates an OptionBytes1024 with a value.
NewOptionBytes1024Empty creates an OptionBytes1024 without a value.
NewOptionBytes128 creates an OptionBytes128 with a value.
NewOptionBytes128Empty creates an OptionBytes128 without a value.
NewOptionBytes16 creates an OptionBytes16 with a value.
NewOptionBytes16Empty creates an OptionBytes16 without a value.
NewOptionBytes2048 creates an OptionBytes2048 with a value.
NewOptionBytes2048Empty creates an OptionBytes2048 without a value.
NewOptionBytes256 creates an OptionBytes256 with a value.
NewOptionBytes256Empty creates an OptionBytes256 without a value.
NewOptionBytes32 creates an OptionBytes32 with a value.
NewOptionBytes32Empty creates an OptionBytes32 without a value.
NewOptionBytes512 creates an OptionBytes512 with a value.
NewOptionBytes512Empty creates an OptionBytes512 without a value.
NewOptionBytes64 creates an OptionBytes64 with a value.
NewOptionBytes64Empty creates an OptionBytes64 without a value.
NewOptionBytes8 creates an OptionBytes8 with a value.
NewOptionBytes8Empty creates an OptionBytes8 without a value.
NewOptionBytesEmpty creates an OptionBytes without a value.
NewOptionH160 creates an OptionH160 with a value.
NewOptionH160Empty creates an OptionH160 without a value.
NewOptionH256 creates an OptionH256 with a value.
NewOptionH256Empty creates an OptionH256 without a value.
NewOptionH512 creates an OptionH512 with a value.
NewOptionH512Empty creates an OptionH512 without a value.
NewOptionHash creates an OptionHash with a value.
NewOptionHashEmpty creates an OptionHash without a value.
NewOptionI16 creates an OptionI16 with a value.
NewOptionI16Empty creates an OptionI16 without a value.
NewOptionI32 creates an OptionI32 with a value.
NewOptionI32Empty creates an OptionI32 without a value.
NewOptionI64 creates an OptionI64 with a value.
NewOptionI64Empty creates an OptionI64 without a value.
NewOptionI8 creates an OptionI8 with a value.
NewOptionI8Empty creates an OptionI8 without a value.
NewOptionU16 creates an OptionU16 with a value.
NewOptionU16Empty creates an OptionU16 without a value.
NewOptionU32 creates an OptionU32 with a value.
NewOptionU32Empty creates an OptionU32 without a value.
NewOptionU64 creates an OptionU64 with a value.
NewOptionU64Empty creates an OptionU64 without a value.
NewOptionU8 creates an OptionU8 with a value.
NewOptionU8Empty creates an OptionU8 without a value.
No description provided by the author
NewSignature creates a new Signature type.
NewStorageDataRaw creates a new StorageDataRaw type.
NewStorageKey creates a new StorageKey type.
NewText creates a new Text type.
NewU128 creates a new U128 type.
NewU16 creates a new U16 type.
NewU256 creates a new U256 type.
NewU32 creates a new U32 type.
NewU64 creates a new U64 type.
NewU8 creates a new U8 type.
NewWeight creates a new Weight type.
NewWeightMultiplier creates a new WeightMultiplier type.
UintBytesToBigInt decodes the given byte slice containing a big endian encoded unsigned integer to a big.Int.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
v0 is unknown.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

# Structs

Deprecated: AccountInfo is an account information structure for contracts.
Address is a wrapper around an AccountId or an AccountIndex.
Block encoded with header and extrinsics.
Call is the extrinsic function descriptor.
Callindex is a 16 bit wrapper around the `[sectionIndex, methodIndex]` value that uniquely identifies a method.
ChainProperties contains the SS58 format, the token decimals and the token symbol.
No description provided by the author
DigestItem specifies the item in the logs of a digest.
DispatchClass is a generalized group of dispatch types.
DispatchError is an error occurring during extrinsic dispatch.
DispatchInfo contains a bundle of static information collected from the `#[weight = $x]` attributes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventBalancesNewAccount is emitted when a new account was created.
EventBalancesReapedAccount is emitted when an account was reaped.
EventBalancesTransfer is emitted when a transfer succeeded (from, to, value, fees).
EventGrandpaNewAuthorities is emitted when a new authority set has been applied.
EventGrandpaPaused is emitted when the current authority set has been paused.
EventGrandpaResumed is emitted when the current authority set has been resumed.
EventImOnlineAllGood is emitted when at the end of the session, no offence was committed.
EventImOnlineHeartbeatReceived is emitted when a new heartbeat was received from AuthorityId.
EventImOnlineSomeOffline is emitted when the end of the session, at least once validator was found to be offline.
EventIndicesNewAccountIndex is emitted when a new account index was assigned.
No description provided by the author
EventOffencesOffence is emitted when there is an offence reported of the given kind happened at the session_index and (kind-specific) time slot.
EventRecords is a default set of possible event records that can be used as a target for `func (e EventRecordsRaw) Decode(...`.
EventSessionNewSession is emitted when a new session has happened.
EventStakingOldSlashingReportDiscarded is emitted when an old slashing report from a prior era was discarded because it could not be processed.
EventStakingReward is emitted when all validators have been rewarded by the first balance; the second is the remainder, from the maximum amount of reward.
EventStakingSlash is emitted when one validator (and its nominators) has been slashed by the given amount.
EventSystemExtrinsicFailed is emitted when an extrinsic failed.
EventSystemExtrinsicFailedV8 is emitted when an extrinsic failed Deprecated: EventSystemExtrinsicFailedV8 exists to allow users to simply implement their own EventRecords struct if they are on metadata version 8 or below.
EventSystemExtrinsicSuccess is emitted when an extrinsic completed successfully.
EventSystemExtrinsicSuccessV8 is emitted when an extrinsic completed successfully Deprecated: EventSystemExtrinsicSuccessV8 exists to allow users to simply implement their own EventRecords struct if they are on metadata version 8 or below.
EventTreasuryDeposit is emitted when some funds have been deposited.
ExampleEnum - Enum types can be represented using Go's structs.
ExampleStruct - Struct types (fixed-sized series of values with predetermined and fixed types, typically without names/labels/keys) can be represented using Go's structs.
ExampleTuple - Tuple types (fixed-sized series of values with predetermined and fixed types, typically without names/labels/keys) can be represented using Go's structs.
ExampleVec - Vec types (vectors, lists, series, sets, arrays, slices) can be represented using Go's native slices and arrays.
ExampleVecAny - VecAny is used in polkadot-js as a list of elements that are of any type, while Vec and VecFixed require fixed types.
Exposure lists the own and nominated stake of a validator.
Extrinsic is a piece of Args bundled into a block that expresses something from the "external" (i.e.
ExtrinsicEra indicates either a mortal or immortal extrinsic.
ExtrinsicPayloadV3 is a signing payload for an Extrinsic.
No description provided by the author
No description provided by the author
ExtrinsicStatus is an enum containing the result of an extrinsic submission.
No description provided by the author
No description provided by the author
No description provided by the author
Health contains the status of a node.
I128 is a signed 128-bit integer, it is represented as a big.Int in Go.
I256 is a signed 256-bit integer, it is represented as a big.Int in Go.
IndividualExposure contains the nominated stake by one specific third party.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Modelled after packages/types/src/Metadata/v10/Metadata.ts.
Modelled after https://github.com/paritytech/substrate/blob/v1.0.0rc2/srml/metadata/src/lib.rs.
Modelled after packages/types/src/Metadata/v7/Metadata.ts.
Modelled after packages/types/src/Metadata/v8/Metadata.ts.
Modelled after packages/types/src/Metadata/v9/Metadata.ts.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Moment is a wrapper around milliseconds/timestamps using the `time.Time` type.
MortalEra for an extrinsic, indicating period and phase.
MultiSignature.
NetworkState contains the current state of the network.
OptionBool is a structure that can store a Bool or a missing value Note that encoding rules are slightly different from other "option" fields This implementation was adopted from https://github.com/Joystream/parity-codec-go/blob/develop/noreflect/codec.go.
OptionBytes is a structure that can store a Bytes or a missing value.
OptionBytes1024 is a structure that can store a Bytes1024 or a missing value.
OptionBytes128 is a structure that can store a Bytes128 or a missing value.
OptionBytes16 is a structure that can store a Bytes16 or a missing value.
OptionBytes2048 is a structure that can store a Bytes2048 or a missing value.
OptionBytes256 is a structure that can store a Bytes256 or a missing value.
OptionBytes32 is a structure that can store a Bytes32 or a missing value.
OptionBytes512 is a structure that can store a Bytes512 or a missing value.
OptionBytes64 is a structure that can store a Bytes64 or a missing value.
OptionBytes8 is a structure that can store a Bytes8 or a missing value.
OptionH160 is a structure that can store a H160 or a missing value.
OptionH256 is a structure that can store a H256 or a missing value.
OptionH512 is a structure that can store a H512 or a missing value.
OptionHash is a structure that can store a Hash or a missing value.
OptionI16 is a structure that can store a I16 or a missing value.
OptionI32 is a structure that can store a I32 or a missing value.
OptionI64 is a structure that can store a I64 or a missing value.
OptionI8 is a structure that can store a I8 or a missing value.
OptionU16 is a structure that can store a U16 or a missing value.
OptionU32 is a structure that can store a U32 or a missing value.
OptionU64 is a structure that can store a U64 or a missing value.
OptionU8 is a structure that can store a U8 or a missing value.
PeerInfo contains information about a connected peer.
Phase is an enum describing the current phase of the event (applying the extrinsic or finalized).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StorageChangeSet contains changes from storage subscriptions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
U128 is an unsigned 128-bit integer, it is represented as a big.Int in Go.
U256 is an usigned 256-bit integer, it is represented as a big.Int in Go.

# Interfaces

Hexer interface is implemented by any type that has a Hex() function returning a string.
No description provided by the author

# Type aliases

AccountID represents a public key (an 32 byte array).
AccountIndex is a shortened, variable-length encoding for an Account.
Args are the encoded arguments for a Call.
AuthorityID represents a public key (an 32 byte array).
No description provided by the author
Bool represents boolean values.
Bytes represents byte slices.
Bytes1024 represents an 1024 byte array.
Bytes128 represents an 128 byte array.
Bytes16 represents an 16 byte array.
Bytes2048 represents an 2048 byte array.
Bytes256 represents an 256 byte array.
Bytes32 represents an 32 byte array.
Bytes512 represents an 512 byte array.
Bytes64 represents an 64 byte array.
Bytes8 represents an 8 byte array.
BytesBare represents byte slices that will be encoded bare, i.
ConsensusEngineID is a 4-byte identifier (actually a [u8; 4]) identifying the engine, e.g.
Data is a raw data structure, containing raw bytes that are not decoded/encoded (without any length encoding).
Digest contains logs.
DigestOf contains logs.
No description provided by the author
EventRecordsRaw is a raw record for a set of events, represented as the raw bytes.
H160 is a hash containing 160 bits (20 bytes), typically used in blocks, extrinsics and as a sane default.
H256 is a hash containing 256 bits (32 bytes), typically used in blocks, extrinsics and as a sane default.
H512 is a hash containing 512 bits (64 bytes), typically used for signature.
Hash is the default hash that is used across the system.
I16 is a signed 16-bit integer.
I32 is a signed 32-bit integer.
I64 is a signed 64-bit integer.
I8 is a signed 8-bit integer.
No description provided by the author
Null is a type that does not contain anything (apart from null).
Origin is an internal-only value that will be ignored when encoding/decoding.
Signature is a H512.
StorageDataRaw contains raw bytes that are not decoded/encoded.
StorageKey represents typically hashed storage keys of the system.
Text is a string type.
Type is a string, specifically to handle types.
U16 is an unsigned 16-bit integer.
U32 is an unsigned 32-bit integer.
U64 is an unsigned 64-bit integer.
U8 is an unsigned 8-bit integer.
TODO adjust to use U256 or even big ints instead, needs to adopt codec though.
Deprecated: USize is a system default unsigned number, typically used in RPC to report non-consensus data.
Weight is a numeric range of a transaction weight.
WeightMultiplier represents how a fee value can be computed from a weighted transaction.