@m0-foundation/ntt-sdk-route 0.0.15 → 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 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");
@@ -999,7 +1000,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
999
1000
  async *transferSolanaExtension(ntt, sender, amount2, recipient, sourceToken, destinationToken, options, outboxItem) {
1000
1001
  const router = new SolanaRoutes(ntt);
1001
1002
  if (router.getSolanaContracts().token === sourceToken) {
1002
- return ntt.transfer(sender, amount2, recipient, options);
1003
+ yield* ntt.transfer(sender, amount2, recipient, options);
1004
+ return;
1003
1005
  }
1004
1006
  const config = await ntt.getConfig();
1005
1007
  if (config.paused) throw new Error("Contract is paused");
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");
@@ -991,7 +992,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
991
992
  async *transferSolanaExtension(ntt, sender, amount2, recipient, sourceToken, destinationToken, options, outboxItem) {
992
993
  const router = new SolanaRoutes(ntt);
993
994
  if (router.getSolanaContracts().token === sourceToken) {
994
- return ntt.transfer(sender, amount2, recipient, options);
995
+ yield* ntt.transfer(sender, amount2, recipient, options);
996
+ return;
995
997
  }
996
998
  const config = await ntt.getConfig();
997
999
  if (config.paused) throw new Error("Contract is paused");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m0-foundation/ntt-sdk-route",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",