damm-sdk 1.2.32 → 1.3.0

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
@@ -37239,7 +37239,7 @@ var require_lib21 = __commonJS((exports) => {
37239
37239
  } });
37240
37240
  });
37241
37241
 
37242
- // node_modules/@ethersproject/json-wallets/node_modules/aes-js/index.js
37242
+ // node_modules/aes-js/index.js
37243
37243
  var require_aes_js = __commonJS((exports, module) => {
37244
37244
  (function(root) {
37245
37245
  function checkInt2(value) {
@@ -83389,6 +83389,117 @@ var withdrawMorphoVaultAssetTrx = ({
83389
83389
  };
83390
83390
  var WithdrawMorphoVaultCalldata = RedeemMorphoVaultCalldata;
83391
83391
  var withdrawMorphoVaultTrx = redeemMorphoVaultTrx;
83392
+ // src/integrations/syrup/syrup.vault.abi.ts
83393
+ var syrup_vault_abi_default = [
83394
+ {
83395
+ inputs: [
83396
+ { internalType: "uint256", name: "assets_", type: "uint256" },
83397
+ { internalType: "address", name: "receiver_", type: "address" }
83398
+ ],
83399
+ name: "deposit",
83400
+ outputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
83401
+ stateMutability: "nonpayable",
83402
+ type: "function"
83403
+ },
83404
+ {
83405
+ inputs: [
83406
+ { internalType: "uint256", name: "assets_", type: "uint256" },
83407
+ { internalType: "address", name: "owner_", type: "address" }
83408
+ ],
83409
+ name: "requestWithdraw",
83410
+ outputs: [
83411
+ {
83412
+ internalType: "uint256",
83413
+ name: "escrowedShares_",
83414
+ type: "uint256"
83415
+ }
83416
+ ],
83417
+ stateMutability: "nonpayable",
83418
+ type: "function"
83419
+ },
83420
+ {
83421
+ inputs: [
83422
+ { internalType: "uint256", name: "shares_", type: "uint256" },
83423
+ { internalType: "address", name: "owner_", type: "address" }
83424
+ ],
83425
+ name: "requestRedeem",
83426
+ outputs: [
83427
+ {
83428
+ internalType: "uint256",
83429
+ name: "escrowedShares_",
83430
+ type: "uint256"
83431
+ }
83432
+ ],
83433
+ stateMutability: "nonpayable",
83434
+ type: "function"
83435
+ },
83436
+ {
83437
+ inputs: [],
83438
+ name: "asset",
83439
+ outputs: [{ internalType: "address", name: "", type: "address" }],
83440
+ stateMutability: "view",
83441
+ type: "function"
83442
+ },
83443
+ {
83444
+ inputs: [{ internalType: "address", name: "", type: "address" }],
83445
+ name: "balanceOf",
83446
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
83447
+ stateMutability: "view",
83448
+ type: "function"
83449
+ },
83450
+ {
83451
+ inputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
83452
+ name: "convertToAssets",
83453
+ outputs: [{ internalType: "uint256", name: "assets_", type: "uint256" }],
83454
+ stateMutability: "view",
83455
+ type: "function"
83456
+ }
83457
+ ];
83458
+
83459
+ // src/integrations/syrup/syrup.vault.ts
83460
+ var syrupVaultInterface = new exports_ethers.utils.Interface(syrup_vault_abi_default);
83461
+ var DepositSyrupVaultCalldata = ({ assets, receiver }) => {
83462
+ return syrupVaultInterface.encodeFunctionData("deposit", [assets, receiver]);
83463
+ };
83464
+ var depositSyrupVaultTrx = ({
83465
+ args,
83466
+ syrupVaultAddress
83467
+ }) => {
83468
+ return createCall({
83469
+ operation: 0,
83470
+ to: syrupVaultAddress,
83471
+ value: 0n,
83472
+ data: DepositSyrupVaultCalldata(args)
83473
+ });
83474
+ };
83475
+ var RequestWithdrawSyrupVaultCalldata = ({ assets, owner }) => {
83476
+ return syrupVaultInterface.encodeFunctionData("requestWithdraw", [assets, owner]);
83477
+ };
83478
+ var requestWithdrawSyrupVaultTrx = ({
83479
+ args,
83480
+ syrupVaultAddress
83481
+ }) => {
83482
+ return createCall({
83483
+ operation: 0,
83484
+ to: syrupVaultAddress,
83485
+ value: 0n,
83486
+ data: RequestWithdrawSyrupVaultCalldata(args)
83487
+ });
83488
+ };
83489
+ var RequestRedeemSyrupVaultCalldata = ({ shares, owner }) => {
83490
+ return syrupVaultInterface.encodeFunctionData("requestRedeem", [shares, owner]);
83491
+ };
83492
+ var requestRedeemSyrupVaultTrx = ({
83493
+ args,
83494
+ syrupVaultAddress
83495
+ }) => {
83496
+ return createCall({
83497
+ operation: 0,
83498
+ to: syrupVaultAddress,
83499
+ value: 0n,
83500
+ data: RequestRedeemSyrupVaultCalldata(args)
83501
+ });
83502
+ };
83392
83503
  // src/integrations/merkl/merkl.distributor.abi.ts
83393
83504
  var merkl_distributor_abi_default = [
83394
83505
  { inputs: [], stateMutability: "nonpayable", type: "constructor" },
@@ -86531,6 +86642,8 @@ export {
86531
86642
  safeTransferFromWithDataErc721Trx,
86532
86643
  safeTransferFromErc721Trx,
86533
86644
  revokeFromVaultWhitelistTrx,
86645
+ requestWithdrawSyrupVaultTrx,
86646
+ requestRedeemSyrupVaultTrx,
86534
86647
  repayToLendleTrx,
86535
86648
  repayToAaveV3Trx,
86536
86649
  repayMorphoBlueTrx,
@@ -86557,6 +86670,7 @@ export {
86557
86670
  execTransactionWithDelay,
86558
86671
  execTransactionFromModuleTrx,
86559
86672
  depositToLendleTrx,
86673
+ depositSyrupVaultTrx,
86560
86674
  depositMorphoVaultTrx,
86561
86675
  depositForBurnToCctpTrx,
86562
86676
  createVaultProxyTrx,
@@ -86616,6 +86730,7 @@ export {
86616
86730
  TransactionWithRoleReturnDataCalldata,
86617
86731
  TransactionWithRoleCalldata,
86618
86732
  TransactionFromModuleCalldata,
86733
+ syrup_vault_abi_default as SyrupVaultAbi,
86619
86734
  SwapExactInputSingleCalldataV4,
86620
86735
  SupplyToAaveV3L2Calldata,
86621
86736
  SupplyToAaveV3L1Calldata,
@@ -86643,6 +86758,8 @@ export {
86643
86758
  RouterSwapExactOutputSingleCalldata,
86644
86759
  RouterSwapExactInputSingleCalldata,
86645
86760
  RevokeFromVaultWhitelistCalldata,
86761
+ RequestWithdrawSyrupVaultCalldata,
86762
+ RequestRedeemSyrupVaultCalldata,
86646
86763
  RepayToLendleCalldata,
86647
86764
  RepayToAaveV3L1Calldata,
86648
86765
  RepayMorphoBlueCalldata,
@@ -86667,6 +86784,7 @@ export {
86667
86784
  erc20_abi_default as Erc20Abi,
86668
86785
  erc721_abi_default as ERC721,
86669
86786
  DepositToLendleCalldata,
86787
+ DepositSyrupVaultCalldata,
86670
86788
  DepositMorphoVaultCalldata,
86671
86789
  DepositForBurnCalldata,
86672
86790
  DelayedTransactionCalldata,
@@ -86693,4 +86811,4 @@ export {
86693
86811
  aave_pool_abi_default as AaveL1PoolAbi
86694
86812
  };
86695
86813
 
86696
- //# debugId=7872553AF334952464756E2164756E21
86814
+ //# debugId=57555E316C5ADE8064756E2164756E21