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());
        }
        // asset_revision (uint32)
        {
            bytes_1.write(buf, this.asset_revision, 'uint32');
        }
        // amendments ([]Amendment)
        {
            bytes_1.WriteVariableSize(buf, this.amendments.length, 8, 8);
            this.amendments.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        // ref_tx_id (TxId)
        {
            buf.write(this.ref_tx_id.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.write(buf, this.asset_revision, 'uint32');
        }
        {
            bytes_1.WriteVariableSize(buf, this.amendments.length, 8, 8);
            this.amendments.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        {
            buf.write(this.ref_tx_id.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 . write ( buf , this . asset_revision , 'uint32' ) ; } { bytes_1 . WriteVariableSize ( buf , this . amendments . length , 8 , 8 ) ; this . amendments . forEach ( ( value ) => { buf . write ( value . Serialize ( ) ) ; } ) ; } { buf . write ( this . ref_tx_id . 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) // asset_revision (uint32) // amendments ([]Amendment) // ref_tx_id (TxId)