Serialize() {
        const buf = new util_1.default.Writer();
        // asset_type (string)
        {
            bytes_1.WriteFixedChar(buf, this.asset_type, 3);
        }
        // asset_code (AssetCode)
        {
            buf.write(this.asset_code.Serialize());
        }
        // quantities ([]QuantityIndex)
        {
            bytes_1.WriteVariableSize(buf, this.quantities.length, 16, 8);
            this.quantities.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        // timestamp (Timestamp)
        {
            buf.write(this.timestamp.Serialize());
        }
        return buf.buf;
    }
// serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
Serialize() {
        const buf = new util_1.default.Writer();
        {
            bytes_1.WriteFixedChar(buf, this.asset_type, 3);
        }
        {
            buf.write(this.asset_code.Serialize());
        }
        {
            bytes_1.WriteVariableSize(buf, this.quantities.length, 16, 8);
            this.quantities.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        {
            buf.write(this.timestamp.Serialize());
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . WriteFixedChar ( buf , this . asset_type , 3 ) ; } { buf . write ( this . asset_code . Serialize ( ) ) ; } { bytes_1 . WriteVariableSize ( buf , this . quantities . length , 16 , 8 ) ; this . quantities . forEach ( ( value ) => { buf . write ( value . Serialize ( ) ) ; } ) ; } { buf . write ( this . timestamp . Serialize ( ) ) ; } return buf . buf ; }
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
// asset_type (string) // asset_code (AssetCode) // quantities ([]QuantityIndex) // timestamp (Timestamp)