Serialize() {
        const buf = new util_1.default.Writer();
        // assets ([]AssetTransfer)
        {
            bytes_1.WriteVariableSize(buf, this.assets.length, 8, 8);
            this.assets.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        // offer_expiry (Timestamp)
        {
            buf.write(this.offer_expiry.Serialize());
        }
        // exchange_fee (uint64)
        {
            bytes_1.write(buf, this.exchange_fee, 'uint64');
        }
        // exchange_fee_address (PublicKeyHash)
        {
            buf.write(this.exchange_fee_address.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.WriteVariableSize(buf, this.assets.length, 8, 8);
            this.assets.forEach((value) => {
                buf.write(value.Serialize());
            });
        }
        {
            buf.write(this.offer_expiry.Serialize());
        }
        {
            bytes_1.write(buf, this.exchange_fee, 'uint64');
        }
        {
            buf.write(this.exchange_fee_address.Serialize());
        }
        return buf.buf;
    }
Serialize ( ) { const buf = new util_1 . default . Writer ( ) ; { bytes_1 . WriteVariableSize ( buf , this . assets . length , 8 , 8 ) ; this . assets . forEach ( ( value ) => { buf . write ( value . Serialize ( ) ) ; } ) ; } { buf . write ( this . offer_expiry . Serialize ( ) ) ; } { bytes_1 . write ( buf , this . exchange_fee , 'uint64' ) ; } { buf . write ( this . exchange_fee_address . Serialize ( ) ) ; } return buf . buf ; }
serialize returns the full OP_RETURN payload bytes.
serialize returns the full OP_RETURN payload bytes .
// assets ([]AssetTransfer) // offer_expiry (Timestamp) // exchange_fee (uint64) // exchange_fee_address (PublicKeyHash)