BorshObjectMixin mixin
Borsh Object Mixin
- Implemented types
- Mixin applications
-
- AccountInfo
- Authorized
- Delegation
- EpochInfo
- Fee
- FeeCalculator
- Lockup
- LockupArgs
- LockupCheckedArgs
- MasterEditionAccount
- MetadataAccount
- MetadataCollection
- MetadataCollectionDetailsV1
- MetadataCreator
- MetadataUses
- MintAccountInfo
- NonceAccount
- Stake
- StakeAccount
- StakeAccountInfo
- StakeMeta
- StakePool
- TokenAccountInfo
- ValidatorList
- ValidatorListHeader
- ValidatorStakeInfo
Properties
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
borshSize(
) → int -
Returns the serialized byte length of
this
instance. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh(
) → Iterable< int> -
Serializes
this
instance into a buffer. -
toJson(
) → dynamic -
Serialises
this
class into a JSON object.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
borshCodec
→ BorshStructTypedCodec<
BorshCodec> -
The encoders/decoders of
this
class' properties.no setter
Static Methods
-
fromBorsh<
T extends BorshObjectMixin> (Iterable< int> buffer) → T -
Creates an instance of
this
class from a buffer. -
fromBorshBase64<
T extends BorshObjectMixin> (String encoded) → T -
Creates an instance of
this
class from a base-64 encoded string. -
tryFromBorsh<
T extends BorshObjectMixin> (Iterable< int> ? buffer) → T? -
Creates an instance of
this
class from a buffer. -
tryFromBorshBase64<
T extends BorshObjectMixin> (String? encoded) → T? -
Creates an instance of
this
class from a base-64 encoded string.