@debridge-finance/desdk
Version:
Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically
22 lines • 705 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Message = void 0;
class Message {
constructor(args) {
Object.assign(this, args);
}
getEncodedArgs() {
return [
this.tokenAddress,
this.amount.toString(),
this.chainIdTo.toString(),
this.receiver.toString(),
this.permit ? this.permit.toString() : "0x",
this.useAssetFee !== undefined ? this.useAssetFee : false,
this.referralCode ? this.referralCode.toString() : "0",
this.autoParams ? this.autoParams.encode() : "0x",
];
}
}
exports.Message = Message;
//# sourceMappingURL=send.js.map