damm-sdk 1.4.33 → 1.4.34

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
@@ -9371,7 +9371,7 @@ var require_hash = __commonJS((exports) => {
9371
9371
  hash2.ripemd160 = hash2.ripemd.ripemd160;
9372
9372
  });
9373
9373
 
9374
- // node_modules/@ethersproject/json-wallets/node_modules/aes-js/index.js
9374
+ // node_modules/aes-js/index.js
9375
9375
  var require_aes_js = __commonJS((exports, module) => {
9376
9376
  (function(root) {
9377
9377
  function checkInt2(value) {
@@ -110957,6 +110957,130 @@ var claimRedeemOriginArmTrx = ({
110957
110957
  data: ClaimRedeemOriginArmCalldata(args)
110958
110958
  });
110959
110959
  };
110960
+ // src/integrations/etherfi/etherfi.abi.ts
110961
+ var EtherFiLiquidityPoolAbi = [
110962
+ {
110963
+ inputs: [{ internalType: "address", name: "_referral", type: "address" }],
110964
+ name: "depositETHForWeETH",
110965
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
110966
+ stateMutability: "payable",
110967
+ type: "function"
110968
+ }
110969
+ ];
110970
+ var EtherFiWeEthAbi = [
110971
+ {
110972
+ inputs: [{ internalType: "uint256", name: "_eETHAmount", type: "uint256" }],
110973
+ name: "wrap",
110974
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
110975
+ stateMutability: "nonpayable",
110976
+ type: "function"
110977
+ },
110978
+ {
110979
+ inputs: [{ internalType: "uint256", name: "_weETHAmount", type: "uint256" }],
110980
+ name: "unwrap",
110981
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
110982
+ stateMutability: "nonpayable",
110983
+ type: "function"
110984
+ }
110985
+ ];
110986
+ var EtherFiWithdrawAdapterAbi = [
110987
+ {
110988
+ inputs: [
110989
+ { internalType: "uint256", name: "amount", type: "uint256" },
110990
+ { internalType: "address", name: "recipient", type: "address" }
110991
+ ],
110992
+ name: "requestWithdraw",
110993
+ outputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
110994
+ stateMutability: "nonpayable",
110995
+ type: "function"
110996
+ }
110997
+ ];
110998
+ var EtherFiWithdrawRequestNftAbi = [
110999
+ {
111000
+ inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
111001
+ name: "claimWithdraw",
111002
+ outputs: [],
111003
+ stateMutability: "nonpayable",
111004
+ type: "function"
111005
+ }
111006
+ ];
111007
+
111008
+ // src/integrations/etherfi/etherfi.ts
111009
+ var liquidityPoolInterface = new exports_ethers.utils.Interface(EtherFiLiquidityPoolAbi);
111010
+ var weEthInterface = new exports_ethers.utils.Interface(EtherFiWeEthAbi);
111011
+ var withdrawAdapterInterface = new exports_ethers.utils.Interface(EtherFiWithdrawAdapterAbi);
111012
+ var withdrawRequestNftInterface = new exports_ethers.utils.Interface(EtherFiWithdrawRequestNftAbi);
111013
+ var StakeEthEtherFiCalldata = ({ referral }) => {
111014
+ return liquidityPoolInterface.encodeFunctionData("depositETHForWeETH", [referral]);
111015
+ };
111016
+ var stakeEthEtherFiTrx = ({
111017
+ args,
111018
+ liquidityPoolAddress,
111019
+ value
111020
+ }) => {
111021
+ return createCall({
111022
+ operation: 0,
111023
+ to: liquidityPoolAddress,
111024
+ value,
111025
+ data: StakeEthEtherFiCalldata(args)
111026
+ });
111027
+ };
111028
+ var WrapEEthEtherFiCalldata = ({ eEthAmount }) => {
111029
+ return weEthInterface.encodeFunctionData("wrap", [eEthAmount]);
111030
+ };
111031
+ var wrapEEthEtherFiTrx = ({
111032
+ args,
111033
+ weEthAddress
111034
+ }) => {
111035
+ return createCall({
111036
+ operation: 0,
111037
+ to: weEthAddress,
111038
+ value: 0n,
111039
+ data: WrapEEthEtherFiCalldata(args)
111040
+ });
111041
+ };
111042
+ var UnwrapWeEthEtherFiCalldata = ({ weEthAmount }) => {
111043
+ return weEthInterface.encodeFunctionData("unwrap", [weEthAmount]);
111044
+ };
111045
+ var unwrapWeEthEtherFiTrx = ({
111046
+ args,
111047
+ weEthAddress
111048
+ }) => {
111049
+ return createCall({
111050
+ operation: 0,
111051
+ to: weEthAddress,
111052
+ value: 0n,
111053
+ data: UnwrapWeEthEtherFiCalldata(args)
111054
+ });
111055
+ };
111056
+ var RequestWithdrawEtherFiCalldata = ({ amount, recipient }) => {
111057
+ return withdrawAdapterInterface.encodeFunctionData("requestWithdraw", [amount, recipient]);
111058
+ };
111059
+ var requestWithdrawEtherFiTrx = ({
111060
+ args,
111061
+ withdrawAdapterAddress
111062
+ }) => {
111063
+ return createCall({
111064
+ operation: 0,
111065
+ to: withdrawAdapterAddress,
111066
+ value: 0n,
111067
+ data: RequestWithdrawEtherFiCalldata(args)
111068
+ });
111069
+ };
111070
+ var ClaimWithdrawEtherFiCalldata = ({ tokenId }) => {
111071
+ return withdrawRequestNftInterface.encodeFunctionData("claimWithdraw", [tokenId]);
111072
+ };
111073
+ var claimWithdrawEtherFiTrx = ({
111074
+ args,
111075
+ withdrawRequestNftAddress
111076
+ }) => {
111077
+ return createCall({
111078
+ operation: 0,
111079
+ to: withdrawRequestNftAddress,
111080
+ value: 0n,
111081
+ data: ClaimWithdrawEtherFiCalldata(args)
111082
+ });
111083
+ };
110960
111084
  // src/integrations/syrup/syrup.vault.abi.ts
110961
111085
  var syrup_vault_abi_default = [
110962
111086
  {
@@ -111966,6 +112090,7 @@ var simulateOrThrow = async (env2) => {
111966
112090
  };
111967
112091
  export {
111968
112092
  wrapEthTrx,
112093
+ wrapEEthEtherFiTrx,
111969
112094
  wormholeTransferTrx,
111970
112095
  wormholeReceiveMessageTrx,
111971
112096
  withdrawMorphoVaultTrx,
@@ -111980,6 +112105,7 @@ export {
111980
112105
  updateTotalAssetsLifespanTrx,
111981
112106
  updateOrderTrx,
111982
112107
  unwrapWethTrx,
112108
+ unwrapWeEthEtherFiTrx,
111983
112109
  unpauseVaultTrx,
111984
112110
  uniswapV4SwapTrx,
111985
112111
  uniswapV4FinalizeActions,
@@ -112006,6 +112132,7 @@ export {
112006
112132
  supplyToAaveV3Trx,
112007
112133
  supplyMorphoBlueTrx,
112008
112134
  supplyCollateralMorphoBlueTrx,
112135
+ stakeEthEtherFiTrx,
112009
112136
  slipstreamSwapExactOutputSingleTrx,
112010
112137
  slipstreamSwapExactInputSingleTrx,
112011
112138
  slipstreamMintPositionTrx,
@@ -112031,6 +112158,7 @@ export {
112031
112158
  safeTransferFromErc721Trx,
112032
112159
  rewrapRouteSingleAsSafeRouteSingle,
112033
112160
  revokeFromVaultWhitelistTrx,
112161
+ requestWithdrawEtherFiTrx,
112034
112162
  requestSharesIporFusionTrx,
112035
112163
  requestRedeemSyrupVaultTrx,
112036
112164
  requestRedeemOriginArmTrx,
@@ -112110,6 +112238,7 @@ export {
112110
112238
  createOrderTrx,
112111
112239
  createCall,
112112
112240
  closeVaultTrx,
112241
+ claimWithdrawEtherFiTrx,
112113
112242
  claimRedeemOriginArmTrx,
112114
112243
  claimFundingFeesTrx,
112115
112244
  ccipSendTrx,
@@ -112133,6 +112262,7 @@ export {
112133
112262
  zodiac_delay_abi_default as ZodiacDelayAbi,
112134
112263
  ZERO_ADDRESS,
112135
112264
  WrapEthCalldata,
112265
+ WrapEEthEtherFiCalldata,
112136
112266
  WormholeTransferCalldata,
112137
112267
  wormhole_transceiver_abi_default as WormholeTransceiverAbi,
112138
112268
  WormholeReceiveMessageCalldata,
@@ -112158,6 +112288,7 @@ export {
112158
112288
  UpdateTotalAssetsLifespanCalldata,
112159
112289
  UpdateOrderCalldata,
112160
112290
  UnwrapWethCalldata,
112291
+ UnwrapWeEthEtherFiCalldata,
112161
112292
  UnpauseVaultCalldata,
112162
112293
  UniswapV4Token,
112163
112294
  swap_router_abi_default as UniswapV4RouterAbi,
@@ -112194,6 +112325,7 @@ export {
112194
112325
  SupplyToAaveV3L1Calldata,
112195
112326
  SupplyMorphoBlueCalldata,
112196
112327
  SupplyCollateralMorphoBlueCalldata,
112328
+ StakeEthEtherFiCalldata,
112197
112329
  swap_router_abi_default2 as SlipstreamRouterAbi,
112198
112330
  position_manager_abi_default3 as SlipstreamPositionManagerAbi,
112199
112331
  SlipstreamMintPositionCalldata,
@@ -112218,6 +112350,7 @@ export {
112218
112350
  RouterSwapExactOutputSingleCalldata,
112219
112351
  RouterSwapExactInputSingleCalldata,
112220
112352
  RevokeFromVaultWhitelistCalldata,
112353
+ RequestWithdrawEtherFiCalldata,
112221
112354
  RequestSharesIporFusionCalldata,
112222
112355
  RequestRedeemSyrupVaultCalldata,
112223
112356
  RequestRedeemOriginArmCalldata,
@@ -112279,6 +112412,7 @@ export {
112279
112412
  CreateOrderCalldata,
112280
112413
  Commands,
112281
112414
  CloseVaultCalldata,
112415
+ ClaimWithdrawEtherFiCalldata,
112282
112416
  ClaimRedeemOriginArmCalldata,
112283
112417
  ClaimFundingFeesCalldata,
112284
112418
  token_messenger_v2_abi_default as CctpTokenMessengerV2Abi,
@@ -112307,4 +112441,4 @@ export {
112307
112441
  AXELAR_GMP_API_MAINNET
112308
112442
  };
112309
112443
 
112310
- //# debugId=61F7F960CD4F975A64756E2164756E21
112444
+ //# debugId=8C9F53544EEF1C2164756E2164756E21