Ejemplo n.º 1
0
        public override void Decode(byte[] byteArray, ref int p)
        {
            var start = p;

            Id = new Hash();
            Id.Decode(byteArray, ref p);

            State = new U32();
            State.Decode(byteArray, ref p);

            MetaXy = new Vec <U8Arr16>();
            MetaXy.Decode(byteArray, ref p);

            Intrinsic = new Balance();
            Intrinsic.Decode(byteArray, ref p);

            Level = new U8();
            Level.Decode(byteArray, ref p);

            Phases = new Vec <BlockNumber>();
            Phases.Decode(byteArray, ref p);

            Adaptations = new Vec <Hash>();
            Adaptations.Decode(byteArray, ref p);

            _size = p - start;
        }
Ejemplo n.º 2
0
        public override void Decode(byte[] byteArray, ref int p)
        {
            var start = p;

            ConstData = new Vec <U8>();
            ConstData.Decode(byteArray, ref p);

            VariableData = new Vec <U8>();
            VariableData.Decode(byteArray, ref p);

            _size = p - start;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
        public override void Decode(byte[] byteArray, ref int p)
        {
            var start = p;

            Id = new Hash();
            Id.Decode(byteArray, ref p);

            Begin = new BlockNumber();
            Begin.Decode(byteArray, ref p);

            Duration = new U16();
            Duration.Decode(byteArray, ref p);

            EventType = new EnumType <GameEventType>();
            EventType.Decode(byteArray, ref p);

            Hashes = new Vec <Hash>();
            Hashes.Decode(byteArray, ref p);

            Value = new U64();
            Value.Decode(byteArray, ref p);

            _size = p - start;
        }