damm-sdk 1.1.28-alpha.6 → 1.1.28-alpha.8

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.cjs CHANGED
@@ -277,6 +277,107 @@ var init_toHex = __esm(() => {
277
277
  init_pad();
278
278
  });
279
279
 
280
+ // node_modules/viem/_esm/constants/number.js
281
+ var maxInt8, maxInt16, maxInt24, maxInt32, maxInt40, maxInt48, maxInt56, maxInt64, maxInt72, maxInt80, maxInt88, maxInt96, maxInt104, maxInt112, maxInt120, maxInt128, maxInt136, maxInt144, maxInt152, maxInt160, maxInt168, maxInt176, maxInt184, maxInt192, maxInt200, maxInt208, maxInt216, maxInt224, maxInt232, maxInt240, maxInt248, maxInt256, minInt8, minInt16, minInt24, minInt32, minInt40, minInt48, minInt56, minInt64, minInt72, minInt80, minInt88, minInt96, minInt104, minInt112, minInt120, minInt128, minInt136, minInt144, minInt152, minInt160, minInt168, minInt176, minInt184, minInt192, minInt200, minInt208, minInt216, minInt224, minInt232, minInt240, minInt248, minInt256, maxUint8, maxUint16, maxUint24, maxUint32, maxUint40, maxUint48, maxUint56, maxUint64, maxUint72, maxUint80, maxUint88, maxUint96, maxUint104, maxUint112, maxUint120, maxUint128, maxUint136, maxUint144, maxUint152, maxUint160, maxUint168, maxUint176, maxUint184, maxUint192, maxUint200, maxUint208, maxUint216, maxUint224, maxUint232, maxUint240, maxUint248, maxUint256;
282
+ var init_number = __esm(() => {
283
+ maxInt8 = 2n ** (8n - 1n) - 1n;
284
+ maxInt16 = 2n ** (16n - 1n) - 1n;
285
+ maxInt24 = 2n ** (24n - 1n) - 1n;
286
+ maxInt32 = 2n ** (32n - 1n) - 1n;
287
+ maxInt40 = 2n ** (40n - 1n) - 1n;
288
+ maxInt48 = 2n ** (48n - 1n) - 1n;
289
+ maxInt56 = 2n ** (56n - 1n) - 1n;
290
+ maxInt64 = 2n ** (64n - 1n) - 1n;
291
+ maxInt72 = 2n ** (72n - 1n) - 1n;
292
+ maxInt80 = 2n ** (80n - 1n) - 1n;
293
+ maxInt88 = 2n ** (88n - 1n) - 1n;
294
+ maxInt96 = 2n ** (96n - 1n) - 1n;
295
+ maxInt104 = 2n ** (104n - 1n) - 1n;
296
+ maxInt112 = 2n ** (112n - 1n) - 1n;
297
+ maxInt120 = 2n ** (120n - 1n) - 1n;
298
+ maxInt128 = 2n ** (128n - 1n) - 1n;
299
+ maxInt136 = 2n ** (136n - 1n) - 1n;
300
+ maxInt144 = 2n ** (144n - 1n) - 1n;
301
+ maxInt152 = 2n ** (152n - 1n) - 1n;
302
+ maxInt160 = 2n ** (160n - 1n) - 1n;
303
+ maxInt168 = 2n ** (168n - 1n) - 1n;
304
+ maxInt176 = 2n ** (176n - 1n) - 1n;
305
+ maxInt184 = 2n ** (184n - 1n) - 1n;
306
+ maxInt192 = 2n ** (192n - 1n) - 1n;
307
+ maxInt200 = 2n ** (200n - 1n) - 1n;
308
+ maxInt208 = 2n ** (208n - 1n) - 1n;
309
+ maxInt216 = 2n ** (216n - 1n) - 1n;
310
+ maxInt224 = 2n ** (224n - 1n) - 1n;
311
+ maxInt232 = 2n ** (232n - 1n) - 1n;
312
+ maxInt240 = 2n ** (240n - 1n) - 1n;
313
+ maxInt248 = 2n ** (248n - 1n) - 1n;
314
+ maxInt256 = 2n ** (256n - 1n) - 1n;
315
+ minInt8 = -(2n ** (8n - 1n));
316
+ minInt16 = -(2n ** (16n - 1n));
317
+ minInt24 = -(2n ** (24n - 1n));
318
+ minInt32 = -(2n ** (32n - 1n));
319
+ minInt40 = -(2n ** (40n - 1n));
320
+ minInt48 = -(2n ** (48n - 1n));
321
+ minInt56 = -(2n ** (56n - 1n));
322
+ minInt64 = -(2n ** (64n - 1n));
323
+ minInt72 = -(2n ** (72n - 1n));
324
+ minInt80 = -(2n ** (80n - 1n));
325
+ minInt88 = -(2n ** (88n - 1n));
326
+ minInt96 = -(2n ** (96n - 1n));
327
+ minInt104 = -(2n ** (104n - 1n));
328
+ minInt112 = -(2n ** (112n - 1n));
329
+ minInt120 = -(2n ** (120n - 1n));
330
+ minInt128 = -(2n ** (128n - 1n));
331
+ minInt136 = -(2n ** (136n - 1n));
332
+ minInt144 = -(2n ** (144n - 1n));
333
+ minInt152 = -(2n ** (152n - 1n));
334
+ minInt160 = -(2n ** (160n - 1n));
335
+ minInt168 = -(2n ** (168n - 1n));
336
+ minInt176 = -(2n ** (176n - 1n));
337
+ minInt184 = -(2n ** (184n - 1n));
338
+ minInt192 = -(2n ** (192n - 1n));
339
+ minInt200 = -(2n ** (200n - 1n));
340
+ minInt208 = -(2n ** (208n - 1n));
341
+ minInt216 = -(2n ** (216n - 1n));
342
+ minInt224 = -(2n ** (224n - 1n));
343
+ minInt232 = -(2n ** (232n - 1n));
344
+ minInt240 = -(2n ** (240n - 1n));
345
+ minInt248 = -(2n ** (248n - 1n));
346
+ minInt256 = -(2n ** (256n - 1n));
347
+ maxUint8 = 2n ** 8n - 1n;
348
+ maxUint16 = 2n ** 16n - 1n;
349
+ maxUint24 = 2n ** 24n - 1n;
350
+ maxUint32 = 2n ** 32n - 1n;
351
+ maxUint40 = 2n ** 40n - 1n;
352
+ maxUint48 = 2n ** 48n - 1n;
353
+ maxUint56 = 2n ** 56n - 1n;
354
+ maxUint64 = 2n ** 64n - 1n;
355
+ maxUint72 = 2n ** 72n - 1n;
356
+ maxUint80 = 2n ** 80n - 1n;
357
+ maxUint88 = 2n ** 88n - 1n;
358
+ maxUint96 = 2n ** 96n - 1n;
359
+ maxUint104 = 2n ** 104n - 1n;
360
+ maxUint112 = 2n ** 112n - 1n;
361
+ maxUint120 = 2n ** 120n - 1n;
362
+ maxUint128 = 2n ** 128n - 1n;
363
+ maxUint136 = 2n ** 136n - 1n;
364
+ maxUint144 = 2n ** 144n - 1n;
365
+ maxUint152 = 2n ** 152n - 1n;
366
+ maxUint160 = 2n ** 160n - 1n;
367
+ maxUint168 = 2n ** 168n - 1n;
368
+ maxUint176 = 2n ** 176n - 1n;
369
+ maxUint184 = 2n ** 184n - 1n;
370
+ maxUint192 = 2n ** 192n - 1n;
371
+ maxUint200 = 2n ** 200n - 1n;
372
+ maxUint208 = 2n ** 208n - 1n;
373
+ maxUint216 = 2n ** 216n - 1n;
374
+ maxUint224 = 2n ** 224n - 1n;
375
+ maxUint232 = 2n ** 232n - 1n;
376
+ maxUint240 = 2n ** 240n - 1n;
377
+ maxUint248 = 2n ** 248n - 1n;
378
+ maxUint256 = 2n ** 256n - 1n;
379
+ });
380
+
280
381
  // node:buffer
281
382
  var exports_buffer2 = {};
282
383
  __export(exports_buffer2, {
@@ -44221,6 +44322,7 @@ __export(exports_src, {
44221
44322
  repayToAaveV3Trx: () => repayToAaveV3Trx,
44222
44323
  repayMorphoBlueTrx: () => repayMorphoBlueTrx,
44223
44324
  mintPositionTrx: () => mintPositionTrx,
44325
+ maxApproveERC20Trx: () => maxApproveERC20Trx,
44224
44326
  lagoonV1VaultAbi: () => vault_abi_default,
44225
44327
  lagoonV1SiloAbi: () => silo_abi_default,
44226
44328
  lagoonV1FactoryAbi: () => factory_abi_default,
@@ -44951,7 +45053,10 @@ var erc721_abi_default = [
44951
45053
  type: "function"
44952
45054
  }
44953
45055
  ];
45056
+ // node_modules/viem/_esm/constants/address.js
45057
+ var zeroAddress = "0x0000000000000000000000000000000000000000";
44954
45058
  // node_modules/viem/_esm/index.js
45059
+ init_number();
44955
45060
  init_toHex();
44956
45061
  init_fromHex();
44957
45062
  init_pad();
@@ -45280,7 +45385,7 @@ class VoidSigner extends Signer {
45280
45385
  }
45281
45386
 
45282
45387
  // node_modules/@ethersproject/contracts/lib.esm/index.js
45283
- var import_address = __toESM(require_lib7());
45388
+ var import_address2 = __toESM(require_lib7());
45284
45389
 
45285
45390
  // node_modules/@ethersproject/bignumber/lib.esm/bignumber.js
45286
45391
  var import_bn = __toESM(require_bn());
@@ -45951,7 +46056,7 @@ function resolveName(resolver, nameOrPromise) {
45951
46056
  logger4.throwArgumentError("invalid address or ENS name", "name", name);
45952
46057
  }
45953
46058
  try {
45954
- return import_address.getAddress(name);
46059
+ return import_address2.getAddress(name);
45955
46060
  } catch (error) {}
45956
46061
  if (!resolver) {
45957
46062
  logger4.throwError("a provider or signer is needed to resolve ENS names", import_logger4.Logger.errors.UNSUPPORTED_OPERATION, {
@@ -46003,7 +46108,7 @@ function populateTransaction(contract, fragment, args) {
46003
46108
  override: resolveName(contract.signer, overrides.from),
46004
46109
  signer: contract.signer.getAddress()
46005
46110
  }).then((check) => __awaiter2(this, undefined, undefined, function* () {
46006
- if (import_address.getAddress(check.signer) !== check.override) {
46111
+ if (import_address2.getAddress(check.signer) !== check.override) {
46007
46112
  logger4.throwError("Contract with a Signer cannot override from", import_logger4.Logger.errors.UNSUPPORTED_OPERATION, {
46008
46113
  operation: "overrides.from"
46009
46114
  });
@@ -46394,7 +46499,7 @@ class BaseContract {
46394
46499
  import_properties2.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
46395
46500
  } else {
46396
46501
  try {
46397
- import_properties2.defineReadOnly(this, "resolvedAddress", Promise.resolve(import_address.getAddress(addressOrName)));
46502
+ import_properties2.defineReadOnly(this, "resolvedAddress", Promise.resolve(import_address2.getAddress(addressOrName)));
46398
46503
  } catch (error) {
46399
46504
  logger4.throwError("provider is required to use ENS name as contract address", import_logger4.Logger.errors.UNSUPPORTED_OPERATION, {
46400
46505
  operation: "new Contract"
@@ -46461,7 +46566,7 @@ class BaseContract {
46461
46566
  });
46462
46567
  }
46463
46568
  static getContractAddress(transaction) {
46464
- return import_address.getContractAddress(transaction);
46569
+ return import_address2.getContractAddress(transaction);
46465
46570
  }
46466
46571
  static getInterface(contractInterface) {
46467
46572
  if (import_abi.Interface.isInterface(contractInterface)) {
@@ -46816,7 +46921,7 @@ class ContractFactory {
46816
46921
  return Contract.getInterface(contractInterface);
46817
46922
  }
46818
46923
  static getContractAddress(tx) {
46819
- return import_address.getContractAddress(tx);
46924
+ return import_address2.getContractAddress(tx);
46820
46925
  }
46821
46926
  static getContract(address, contractInterface, signer) {
46822
46927
  return new Contract(address, contractInterface, signer);
@@ -47132,7 +47237,7 @@ var import_logger7 = __toESM(require_lib());
47132
47237
  var version7 = "providers/5.7.2";
47133
47238
 
47134
47239
  // node_modules/@ethersproject/providers/lib.esm/formatter.js
47135
- var import_address2 = __toESM(require_lib7());
47240
+ var import_address3 = __toESM(require_lib7());
47136
47241
  var import_bytes4 = __toESM(require_lib2());
47137
47242
  var import_properties3 = __toESM(require_lib4());
47138
47243
  var import_transactions2 = __toESM(require_lib16());
@@ -47308,17 +47413,17 @@ class Formatter {
47308
47413
  return result;
47309
47414
  }
47310
47415
  address(value) {
47311
- return import_address2.getAddress(value);
47416
+ return import_address3.getAddress(value);
47312
47417
  }
47313
47418
  callAddress(value) {
47314
47419
  if (!import_bytes4.isHexString(value, 32)) {
47315
47420
  return null;
47316
47421
  }
47317
- const address = import_address2.getAddress(import_bytes4.hexDataSlice(value, 12));
47422
+ const address = import_address3.getAddress(import_bytes4.hexDataSlice(value, 12));
47318
47423
  return address === AddressZero ? null : address;
47319
47424
  }
47320
47425
  contractAddress(value) {
47321
- return import_address2.getContractAddress(value);
47426
+ return import_address3.getContractAddress(value);
47322
47427
  }
47323
47428
  blockTag(blockTag) {
47324
47429
  if (blockTag == null) {
@@ -52108,7 +52213,7 @@ __export(exports_utils, {
52108
52213
  isHexString: () => import_bytes9.isHexString,
52109
52214
  isBytesLike: () => import_bytes9.isBytesLike,
52110
52215
  isBytes: () => import_bytes9.isBytes,
52111
- isAddress: () => import_address3.isAddress,
52216
+ isAddress: () => import_address4.isAddress,
52112
52217
  id: () => import_hash4.id,
52113
52218
  hexlify: () => import_bytes9.hexlify,
52114
52219
  hexZeroPad: () => import_bytes9.hexZeroPad,
@@ -52120,10 +52225,10 @@ __export(exports_utils, {
52120
52225
  hashMessage: () => import_hash4.hashMessage,
52121
52226
  getStatic: () => import_properties15.getStatic,
52122
52227
  getJsonWalletAddress: () => import_json_wallets.getJsonWalletAddress,
52123
- getIcapAddress: () => import_address3.getIcapAddress,
52124
- getCreate2Address: () => import_address3.getCreate2Address,
52125
- getContractAddress: () => import_address3.getContractAddress,
52126
- getAddress: () => import_address3.getAddress,
52228
+ getIcapAddress: () => import_address4.getIcapAddress,
52229
+ getCreate2Address: () => import_address4.getCreate2Address,
52230
+ getContractAddress: () => import_address4.getContractAddress,
52231
+ getAddress: () => import_address4.getAddress,
52127
52232
  getAccountPath: () => import_hdnode.getAccountPath,
52128
52233
  formatUnits: () => import_units.formatUnits,
52129
52234
  formatEther: () => import_units.formatEther,
@@ -52172,7 +52277,7 @@ __export(exports_utils, {
52172
52277
  AbiCoder: () => import_abi2.AbiCoder
52173
52278
  });
52174
52279
  var import_abi2 = __toESM(require_lib13());
52175
- var import_address3 = __toESM(require_lib7());
52280
+ var import_address4 = __toESM(require_lib7());
52176
52281
  var base64 = __toESM(require_lib10());
52177
52282
  var import_basex2 = __toESM(require_lib18());
52178
52283
  var import_bytes9 = __toESM(require_lib2());
@@ -57508,7 +57613,7 @@ function invariant(condition, message) {
57508
57613
  var import_decimal = __toESM(require_decimal());
57509
57614
  var import_big = __toESM(require_big());
57510
57615
  var import_toformat = __toESM(require_toFormat());
57511
- var import_address4 = __toESM(require_lib7());
57616
+ var import_address5 = __toESM(require_lib7());
57512
57617
  function _defineProperties(target, props) {
57513
57618
  for (var i2 = 0;i2 < props.length; i2++) {
57514
57619
  var descriptor = props[i2];
@@ -58068,7 +58173,7 @@ var NativeCurrency = /* @__PURE__ */ function(_BaseCurrency) {
58068
58173
  }(BaseCurrency);
58069
58174
  function validateAndParseAddress(address) {
58070
58175
  try {
58071
- return import_address4.getAddress(address);
58176
+ return import_address5.getAddress(address);
58072
58177
  } catch (error) {
58073
58178
  throw new Error(address + " is not a valid address.");
58074
58179
  }
@@ -58168,7 +58273,7 @@ function sqrt(value) {
58168
58273
  // node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
58169
58274
  var import_jsbi2 = __toESM(require_jsbi_umd());
58170
58275
  var import_abi3 = __toESM(require_lib13());
58171
- var import_address5 = __toESM(require_lib7());
58276
+ var import_address6 = __toESM(require_lib7());
58172
58277
  var import_solidity2 = __toESM(require_lib27());
58173
58278
  // node_modules/@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json
58174
58279
  var IMulticall_default = {
@@ -62104,7 +62209,7 @@ var Q192 = /* @__PURE__ */ import_jsbi2.default.exponentiate(Q96, /* @__PURE__ *
62104
62209
  function computePoolAddress(_ref) {
62105
62210
  var { factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride } = _ref;
62106
62211
  var _ref2 = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA], token0 = _ref2[0], token1 = _ref2[1];
62107
- return import_address5.getCreate2Address(factoryAddress, import_solidity2.keccak256(["bytes"], [import_abi3.defaultAbiCoder.encode(["address", "address", "uint24"], [token0.address, token1.address, fee])]), initCodeHashManualOverride != null ? initCodeHashManualOverride : POOL_INIT_CODE_HASH);
62212
+ return import_address6.getCreate2Address(factoryAddress, import_solidity2.keccak256(["bytes"], [import_abi3.defaultAbiCoder.encode(["address", "address", "uint24"], [token0.address, token1.address, fee])]), initCodeHashManualOverride != null ? initCodeHashManualOverride : POOL_INIT_CODE_HASH);
62108
62213
  }
62109
62214
  var LiquidityMath = /* @__PURE__ */ function() {
62110
62215
  function LiquidityMath2() {}
@@ -63477,7 +63582,7 @@ var import_jsbi3 = __toESM(require_jsbi_umd());
63477
63582
  var import_decimal2 = __toESM(require_decimal());
63478
63583
  var import_big2 = __toESM(require_big());
63479
63584
  var import_toformat2 = __toESM(require_toFormat());
63480
- var import_address6 = __toESM(require_lib7());
63585
+ var import_address7 = __toESM(require_lib7());
63481
63586
  var import_bytes10 = __toESM(require_lib2());
63482
63587
  var import_keccak2562 = __toESM(require_lib5());
63483
63588
  var import_strings6 = __toESM(require_lib9());
@@ -64184,7 +64289,7 @@ var NativeCurrency2 = /* @__PURE__ */ function(_BaseCurrency) {
64184
64289
  }(BaseCurrency3);
64185
64290
  function validateAndParseAddress2(address) {
64186
64291
  try {
64187
- return import_address6.getAddress(address);
64292
+ return import_address7.getAddress(address);
64188
64293
  } catch (error) {
64189
64294
  throw new Error(address + " is not a valid address.");
64190
64295
  }
@@ -64291,7 +64396,7 @@ function computeZksyncCreate2Address(sender, bytecodeHash, salt, input) {
64291
64396
  var prefix2 = import_keccak2562.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
64292
64397
  var inputHash = import_keccak2562.keccak256(input);
64293
64398
  var addressBytes = import_keccak2562.keccak256(import_bytes10.concat([prefix2, import_bytes10.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
64294
- return import_address6.getAddress(addressBytes);
64399
+ return import_address7.getAddress(addressBytes);
64295
64400
  }
64296
64401
  var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
64297
64402
  var ZERO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(0);
@@ -64316,7 +64421,7 @@ function sqrt2(value) {
64316
64421
  // node_modules/@uniswap/v4-sdk/node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
64317
64422
  var import_jsbi4 = __toESM(require_jsbi_umd());
64318
64423
  var import_abi4 = __toESM(require_lib13());
64319
- var import_address7 = __toESM(require_lib7());
64424
+ var import_address8 = __toESM(require_lib7());
64320
64425
  var import_solidity3 = __toESM(require_lib27());
64321
64426
  function _arrayLikeToArray2(r, a) {
64322
64427
  (a == null || a > r.length) && (a = r.length);
@@ -64768,7 +64873,7 @@ function computePoolAddress2(_ref) {
64768
64873
  case ChainId2.ZKSYNC:
64769
64874
  return computeZksyncCreate2Address(factoryAddress, initCodeHash, salt);
64770
64875
  default:
64771
- return import_address7.getCreate2Address(factoryAddress, salt, initCodeHash);
64876
+ return import_address8.getCreate2Address(factoryAddress, salt, initCodeHash);
64772
64877
  }
64773
64878
  }
64774
64879
  var FullMath2 = /* @__PURE__ */ function() {
@@ -78554,44 +78659,63 @@ var withdrawMorphoBlueTrx = ({
78554
78659
  data: WithdrawMorphoBlueCalldata(args)
78555
78660
  };
78556
78661
  };
78557
- // src/lib/erc20.ts
78662
+ // src/integrations/erc20/index.ts
78558
78663
  var erc20Interface = new exports_ethers.utils.Interface(erc20_abi_default);
78559
78664
  var TransferCalldata = ({ recipient, amount }) => {
78560
78665
  return erc20Interface.encodeFunctionData("transfer", [recipient, amount]);
78561
78666
  };
78562
78667
  var transferERC20Trx = ({ token, recipient, amount }) => {
78563
- return {
78668
+ return createCall({
78564
78669
  to: token,
78565
78670
  data: TransferCalldata({ recipient, amount }),
78566
78671
  value: 0n,
78567
78672
  operation: 0
78568
- };
78673
+ });
78569
78674
  };
78570
78675
  var ApproveCalldata = ({ spender, amount }) => {
78676
+ if (spender === zeroAddress) {
78677
+ throw new Error("Cannot approve token: ZERO_ADDRESS");
78678
+ }
78571
78679
  return erc20Interface.encodeFunctionData("approve", [spender, amount]);
78572
78680
  };
78573
78681
  var approveERC20Trx = ({ token, spender, amount }) => {
78574
- return {
78682
+ return createCall({
78575
78683
  to: token,
78576
78684
  data: ApproveCalldata({ spender, amount }),
78577
78685
  value: 0n,
78578
78686
  operation: 0
78579
- };
78687
+ });
78688
+ };
78689
+ var maxApproveERC20Trx = (token, spender) => {
78690
+ return createCall({
78691
+ to: token,
78692
+ data: ApproveCalldata({ spender, amount: maxUint256 }),
78693
+ value: 0n,
78694
+ operation: 0
78695
+ });
78580
78696
  };
78581
78697
  var TransferFromCalldata = ({
78582
78698
  spender,
78583
78699
  recipient,
78584
78700
  amount
78585
78701
  }) => {
78702
+ if (spender === zeroAddress) {
78703
+ throw new Error("Cannot transfer from token: ZERO_ADDRESS");
78704
+ }
78586
78705
  return erc20Interface.encodeFunctionData("transferFrom", [spender, recipient, amount]);
78587
78706
  };
78588
- var transferFromERC20Trx = ({ token, spender, recipient, amount }) => {
78589
- return {
78707
+ var transferFromERC20Trx = ({
78708
+ token,
78709
+ spender,
78710
+ recipient,
78711
+ amount
78712
+ }) => {
78713
+ return createCall({
78590
78714
  to: token,
78591
78715
  data: TransferFromCalldata({ spender, recipient, amount }),
78592
78716
  value: 0n,
78593
78717
  operation: 0
78594
- };
78718
+ });
78595
78719
  };
78596
78720
  // src/lib/utils.ts
78597
78721
  var executeTrx = ({
@@ -78687,4 +78811,4 @@ var simulateOrThrow = async (env2) => {
78687
78811
  };
78688
78812
  };
78689
78813
 
78690
- //# debugId=3496F68D117030BD64756E2164756E21
78814
+ //# debugId=68A5B12867CAEDBD64756E2164756E21