UNPKG

@debridge-finance/desdk

Version:

Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically

18 lines 582 B
export 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", ]; } } //# sourceMappingURL=send.js.map