@m0-foundation/ntt-sdk-route 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -974,7 +974,7 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
|
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
976
|
const contract = new ethers.Contract(ntt.managerAddress, [
|
|
977
|
-
"function transferMLikeToken(uint256 amount, address sourceToken, uint16 destinationChainId, bytes32 destinationToken, bytes32 recipient, bytes32 refundAddress) external payable returns (uint64 sequence)"
|
|
977
|
+
"function transferMLikeToken(uint256 amount, address sourceToken, uint16 destinationChainId, bytes32 destinationToken, bytes32 recipient, bytes32 refundAddress, bytes memory transceiverInstructions) external payable returns (uint64 sequence)"
|
|
978
978
|
]);
|
|
979
979
|
const txReq = await contract.getFunction("transferMLikeToken").populateTransaction(
|
|
980
980
|
amount2,
|
|
@@ -983,6 +983,7 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
|
|
|
983
983
|
sdkConnect.toUniversal(destination.chain, destinationToken).toString(),
|
|
984
984
|
receiver,
|
|
985
985
|
receiver,
|
|
986
|
+
[],
|
|
986
987
|
{ value: await ntt.quoteDeliveryPrice(destination.chain, options) }
|
|
987
988
|
);
|
|
988
989
|
yield ntt.createUnsignedTx(sdkEvm.addFrom(txReq, senderAddress), "Ntt.transfer");
|
package/dist/index.mjs
CHANGED
|
@@ -966,7 +966,7 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
|
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
968
|
const contract = new Contract(ntt.managerAddress, [
|
|
969
|
-
"function transferMLikeToken(uint256 amount, address sourceToken, uint16 destinationChainId, bytes32 destinationToken, bytes32 recipient, bytes32 refundAddress) external payable returns (uint64 sequence)"
|
|
969
|
+
"function transferMLikeToken(uint256 amount, address sourceToken, uint16 destinationChainId, bytes32 destinationToken, bytes32 recipient, bytes32 refundAddress, bytes memory transceiverInstructions) external payable returns (uint64 sequence)"
|
|
970
970
|
]);
|
|
971
971
|
const txReq = await contract.getFunction("transferMLikeToken").populateTransaction(
|
|
972
972
|
amount2,
|
|
@@ -975,6 +975,7 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
|
|
|
975
975
|
toUniversal(destination.chain, destinationToken).toString(),
|
|
976
976
|
receiver,
|
|
977
977
|
receiver,
|
|
978
|
+
[],
|
|
978
979
|
{ value: await ntt.quoteDeliveryPrice(destination.chain, options) }
|
|
979
980
|
);
|
|
980
981
|
yield ntt.createUnsignedTx(addFrom(txReq, senderAddress), "Ntt.transfer");
|