public override void Decode(byte[] byteArray, ref int p) { var start = p; Owner = new AccountId(); Owner.Decode(byteArray, ref p); Fraction = new U128(); Fraction.Decode(byteArray, ref p); _size = p - start; }
public override void Decode(byte[] byteArray, ref int p) { var start = p; Owner = new AccountId(); Owner.Decode(byteArray, ref p); ConstData = new Vec <U8>(); ConstData.Decode(byteArray, ref p); VariableData = new Vec <U8>(); VariableData.Decode(byteArray, ref p); _size = p - start; }
public override void Decode(byte[] byteArray, ref int p) { var start = p; Owner = new AccountId(); Owner.Decode(byteArray, ref p); Mode = new EnumType <CollectionMode>(); Mode.Decode(byteArray, ref p); Access = new EnumType <AccessMode>(); Access.Decode(byteArray, ref p); DecimalPoints = new DecimalPoints(); DecimalPoints.Decode(byteArray, ref p); CollectionName = new Vec <U16>(); CollectionName.Decode(byteArray, ref p); Description = new Vec <U16>(); Description.Decode(byteArray, ref p); TokenPrefix = new Vec <U8>(); TokenPrefix.Decode(byteArray, ref p); MintMode = new Bool(); MintMode.Decode(byteArray, ref p); OffchainSchema = new Vec <U8>(); OffchainSchema.Decode(byteArray, ref p); SchemaVersion = new EnumType <SchemaVersion>(); SchemaVersion.Decode(byteArray, ref p); Sponsorship = new EnumType <SponsorshipState>(); Sponsorship.Decode(byteArray, ref p); Limits = new CollectionLimits(); Limits.Decode(byteArray, ref p); VariableOnChainSchema = new Vec <U8>(); VariableOnChainSchema.Decode(byteArray, ref p); ConstOnChainSchema = new Vec <U8>(); ConstOnChainSchema.Decode(byteArray, ref p); _size = p - start; }
public override void Decode(byte[] byteArray, ref int p) { var start = p; Address = new Vec <U8>(); Address.Decode(byteArray, ref p); Account = new AccountId(); Account.Decode(byteArray, ref p); Signature = new Vec <U8>(); Signature.Decode(byteArray, ref p); State = new EnumType <ClaimState>(); State.Decode(byteArray, ref p); Balance = new Balance(); Balance.Decode(byteArray, ref p); _size = p - start; }