damm-sdk 1.3.1 → 1.3.3

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/aes-js/index.js
37242
+ // node_modules/@ethersproject/json-wallets/node_modules/aes-js/index.js
37243
37243
  var require_aes_js = __commonJS((exports, module) => {
37244
37244
  (function(root) {
37245
37245
  function checkInt2(value) {
@@ -86624,6 +86624,161 @@ var claimRedeemOriginArmTrx = ({
86624
86624
  data: ClaimRedeemOriginArmCalldata(args)
86625
86625
  });
86626
86626
  };
86627
+ // src/integrations/syrup/syrup.vault.abi.ts
86628
+ var syrup_vault_abi_default = [
86629
+ {
86630
+ inputs: [
86631
+ { internalType: "uint256", name: "assets", type: "uint256" },
86632
+ { internalType: "address", name: "receiver", type: "address" }
86633
+ ],
86634
+ name: "deposit",
86635
+ outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
86636
+ stateMutability: "nonpayable",
86637
+ type: "function"
86638
+ },
86639
+ {
86640
+ inputs: [
86641
+ { internalType: "uint256", name: "shares", type: "uint256" },
86642
+ { internalType: "address", name: "owner", type: "address" }
86643
+ ],
86644
+ name: "requestRedeem",
86645
+ outputs: [{ internalType: "uint256", name: "escrowedShares", type: "uint256" }],
86646
+ stateMutability: "nonpayable",
86647
+ type: "function"
86648
+ }
86649
+ ];
86650
+
86651
+ // src/integrations/syrup/syrup.vault.ts
86652
+ var syrupVaultInterface = new exports_ethers.utils.Interface(syrup_vault_abi_default);
86653
+ var DepositSyrupVaultCalldata = ({ assets, receiver }) => {
86654
+ return syrupVaultInterface.encodeFunctionData("deposit", [assets, receiver]);
86655
+ };
86656
+ var depositSyrupVaultTrx = ({
86657
+ args,
86658
+ syrupVaultAddress
86659
+ }) => {
86660
+ return createCall({
86661
+ operation: 0,
86662
+ to: syrupVaultAddress,
86663
+ value: 0n,
86664
+ data: DepositSyrupVaultCalldata(args)
86665
+ });
86666
+ };
86667
+ var RequestRedeemSyrupVaultCalldata = ({ shares, owner }) => {
86668
+ return syrupVaultInterface.encodeFunctionData("requestRedeem", [shares, owner]);
86669
+ };
86670
+ var requestRedeemSyrupVaultTrx = ({
86671
+ args,
86672
+ syrupVaultAddress
86673
+ }) => {
86674
+ return createCall({
86675
+ operation: 0,
86676
+ to: syrupVaultAddress,
86677
+ value: 0n,
86678
+ data: RequestRedeemSyrupVaultCalldata(args)
86679
+ });
86680
+ };
86681
+ // src/integrations/gearbox/gearbox.vault.abi.ts
86682
+ var gearbox_vault_abi_default = [
86683
+ {
86684
+ inputs: [
86685
+ { internalType: "uint256", name: "assets", type: "uint256" },
86686
+ { internalType: "address", name: "receiver", type: "address" }
86687
+ ],
86688
+ name: "deposit",
86689
+ outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
86690
+ stateMutability: "nonpayable",
86691
+ type: "function"
86692
+ },
86693
+ {
86694
+ inputs: [
86695
+ { internalType: "uint256", name: "assets", type: "uint256" },
86696
+ { internalType: "address", name: "receiver", type: "address" },
86697
+ { internalType: "address", name: "owner", type: "address" }
86698
+ ],
86699
+ name: "withdraw",
86700
+ outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
86701
+ stateMutability: "nonpayable",
86702
+ type: "function"
86703
+ },
86704
+ {
86705
+ inputs: [
86706
+ { internalType: "uint256", name: "shares", type: "uint256" },
86707
+ { internalType: "address", name: "receiver", type: "address" },
86708
+ { internalType: "address", name: "owner", type: "address" }
86709
+ ],
86710
+ name: "redeem",
86711
+ outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
86712
+ stateMutability: "nonpayable",
86713
+ type: "function"
86714
+ },
86715
+ {
86716
+ inputs: [],
86717
+ name: "asset",
86718
+ outputs: [{ internalType: "address", name: "", type: "address" }],
86719
+ stateMutability: "view",
86720
+ type: "function"
86721
+ },
86722
+ {
86723
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
86724
+ name: "balanceOf",
86725
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
86726
+ stateMutability: "view",
86727
+ type: "function"
86728
+ },
86729
+ {
86730
+ inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
86731
+ name: "convertToAssets",
86732
+ outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
86733
+ stateMutability: "view",
86734
+ type: "function"
86735
+ }
86736
+ ];
86737
+
86738
+ // src/integrations/gearbox/gearbox.vault.ts
86739
+ var gearboxVaultInterface = new exports_ethers.utils.Interface(gearbox_vault_abi_default);
86740
+ var DepositGearboxVaultCalldata = ({ assets, receiver }) => {
86741
+ return gearboxVaultInterface.encodeFunctionData("deposit", [assets, receiver]);
86742
+ };
86743
+ var depositGearboxVaultTrx = ({
86744
+ args,
86745
+ vaultAddress
86746
+ }) => {
86747
+ return createCall({
86748
+ operation: 0,
86749
+ to: vaultAddress,
86750
+ value: 0n,
86751
+ data: DepositGearboxVaultCalldata(args)
86752
+ });
86753
+ };
86754
+ var WithdrawGearboxVaultCalldata = ({ assets, receiver, owner }) => {
86755
+ return gearboxVaultInterface.encodeFunctionData("withdraw", [assets, receiver, owner]);
86756
+ };
86757
+ var withdrawGearboxVaultTrx = ({
86758
+ args,
86759
+ vaultAddress
86760
+ }) => {
86761
+ return createCall({
86762
+ operation: 0,
86763
+ to: vaultAddress,
86764
+ value: 0n,
86765
+ data: WithdrawGearboxVaultCalldata(args)
86766
+ });
86767
+ };
86768
+ var RedeemGearboxVaultCalldata = ({ shares, receiver, owner }) => {
86769
+ return gearboxVaultInterface.encodeFunctionData("redeem", [shares, receiver, owner]);
86770
+ };
86771
+ var redeemGearboxVaultTrx = ({
86772
+ args,
86773
+ vaultAddress
86774
+ }) => {
86775
+ return createCall({
86776
+ operation: 0,
86777
+ to: vaultAddress,
86778
+ value: 0n,
86779
+ data: RedeemGearboxVaultCalldata(args)
86780
+ });
86781
+ };
86627
86782
  // src/lib/utils.ts
86628
86783
  var executeTrx = ({
86629
86784
  client,
@@ -86722,6 +86877,7 @@ export {
86722
86877
  withdrawMorphoVaultAssetTrx,
86723
86878
  withdrawMorphoBlueTrx,
86724
86879
  withdrawIporFusionTrx,
86880
+ withdrawGearboxVaultTrx,
86725
86881
  withdrawFromLendleTrx,
86726
86882
  withdrawFromAaveV3Trx,
86727
86883
  withdrawCollateralMorphoBlueTrx,
@@ -86775,12 +86931,14 @@ export {
86775
86931
  safeTransferFromWithDataErc721Trx,
86776
86932
  safeTransferFromErc721Trx,
86777
86933
  revokeFromVaultWhitelistTrx,
86934
+ requestRedeemSyrupVaultTrx,
86778
86935
  requestRedeemOriginArmTrx,
86779
86936
  repayToLendleTrx,
86780
86937
  repayToAaveV3Trx,
86781
86938
  repayMorphoBlueTrx,
86782
86939
  redeemMorphoVaultTrx,
86783
86940
  redeemIporFusionTrx,
86941
+ redeemGearboxVaultTrx,
86784
86942
  receiveMessageFromCctpTrx,
86785
86943
  pauseVaultTrx,
86786
86944
  merklClaimTrx,
@@ -86803,11 +86961,13 @@ export {
86803
86961
  execTransactionWithDelay,
86804
86962
  execTransactionFromModuleTrx,
86805
86963
  depositToLendleTrx,
86964
+ depositSyrupVaultTrx,
86806
86965
  depositOriginArmWethTrx,
86807
86966
  depositOriginArmEthViaZapperTrx,
86808
86967
  depositOriginArmEthViaUniversalZapperTrx,
86809
86968
  depositMorphoVaultTrx,
86810
86969
  depositIporFusionTrx,
86970
+ depositGearboxVaultTrx,
86811
86971
  depositForBurnToCctpTrx,
86812
86972
  createVaultProxyTrx,
86813
86973
  createOrderTrx,
@@ -86832,6 +86992,7 @@ export {
86832
86992
  WithdrawMorphoVaultAssetCalldata,
86833
86993
  WithdrawMorphoBlueCalldata,
86834
86994
  WithdrawIporFusionCalldata,
86995
+ WithdrawGearboxVaultCalldata,
86835
86996
  WithdrawFromLendleCalldata,
86836
86997
  WithdrawFromAaveV3L2Calldata,
86837
86998
  WithdrawFromAaveV3L1Calldata,
@@ -86895,12 +87056,14 @@ export {
86895
87056
  RouterSwapExactOutputSingleCalldata,
86896
87057
  RouterSwapExactInputSingleCalldata,
86897
87058
  RevokeFromVaultWhitelistCalldata,
87059
+ RequestRedeemSyrupVaultCalldata,
86898
87060
  RequestRedeemOriginArmCalldata,
86899
87061
  RepayToLendleCalldata,
86900
87062
  RepayToAaveV3L1Calldata,
86901
87063
  RepayMorphoBlueCalldata,
86902
87064
  RedeemMorphoVaultCalldata,
86903
87065
  RedeemIporFusionCalldata,
87066
+ RedeemGearboxVaultCalldata,
86904
87067
  ReceiveMessageCalldata,
86905
87068
  QuoteSendTrx,
86906
87069
  QuoteSendCalldata,
@@ -86921,11 +87084,13 @@ export {
86921
87084
  erc20_abi_default as Erc20Abi,
86922
87085
  erc721_abi_default as ERC721,
86923
87086
  DepositToLendleCalldata,
87087
+ DepositSyrupVaultCalldata,
86924
87088
  DepositOriginArmWethCalldata,
86925
87089
  DepositOriginArmEthViaZapperCalldata,
86926
87090
  DepositOriginArmEthViaUniversalZapperCalldata,
86927
87091
  DepositMorphoVaultCalldata,
86928
87092
  DepositIporFusionCalldata,
87093
+ DepositGearboxVaultCalldata,
86929
87094
  DepositForBurnCalldata,
86930
87095
  DelayedTransactionCalldata,
86931
87096
  DecreasePositionSwapType,
@@ -86952,4 +87117,4 @@ export {
86952
87117
  aave_pool_abi_default as AaveL1PoolAbi
86953
87118
  };
86954
87119
 
86955
- //# debugId=89767A017A9F5B1B64756E2164756E21
87120
+ //# debugId=D871FED2414C8CBC64756E2164756E21