damm-sdk 1.3.4 → 1.3.6
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 +93 -1
- package/dist/index.cjs.map +5 -3
- package/dist/index.js +38449 -41769
- package/dist/index.js.map +44 -75
- package/dist/integrations/fluidLite/fluid-lite.abi.d.ts +69 -0
- package/dist/integrations/fluidLite/fluid-lite.abi.d.ts.map +1 -0
- package/dist/integrations/fluidLite/fluid-lite.d.ts +42 -0
- package/dist/integrations/fluidLite/fluid-lite.d.ts.map +1 -0
- package/dist/integrations/fluidLite/index.d.ts +3 -0
- package/dist/integrations/fluidLite/index.d.ts.map +1 -0
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/integrations/fluidLite/fluid-lite.abi.ts +38 -0
- package/src/integrations/fluidLite/fluid-lite.ts +104 -0
- package/src/integrations/fluidLite/index.ts +2 -0
- package/src/integrations/index.ts +1 -0
- package/src/lib/contractsRegistry.json +6 -0
package/dist/index.cjs
CHANGED
|
@@ -44302,6 +44302,7 @@ __export(exports_src, {
|
|
|
44302
44302
|
withdrawGearboxVaultTrx: () => withdrawGearboxVaultTrx,
|
|
44303
44303
|
withdrawFromLendleTrx: () => withdrawFromLendleTrx,
|
|
44304
44304
|
withdrawFromAaveV3Trx: () => withdrawFromAaveV3Trx,
|
|
44305
|
+
withdrawFluidLiteTrx: () => withdrawFluidLiteTrx,
|
|
44305
44306
|
withdrawCollateralMorphoBlueTrx: () => withdrawCollateralMorphoBlueTrx,
|
|
44306
44307
|
updateTotalAssetsLifespanTrx: () => updateTotalAssetsLifespanTrx,
|
|
44307
44308
|
updateOrderTrx: () => updateOrderTrx,
|
|
@@ -44362,6 +44363,7 @@ __export(exports_src, {
|
|
|
44362
44363
|
redeemMorphoVaultTrx: () => redeemMorphoVaultTrx,
|
|
44363
44364
|
redeemIporFusionTrx: () => redeemIporFusionTrx,
|
|
44364
44365
|
redeemGearboxVaultTrx: () => redeemGearboxVaultTrx,
|
|
44366
|
+
redeemFluidLiteTrx: () => redeemFluidLiteTrx,
|
|
44365
44367
|
receiveMessageFromCctpTrx: () => receiveMessageFromCctpTrx,
|
|
44366
44368
|
pauseVaultTrx: () => pauseVaultTrx,
|
|
44367
44369
|
merklClaimTrx: () => merklClaimTrx,
|
|
@@ -44392,6 +44394,7 @@ __export(exports_src, {
|
|
|
44392
44394
|
depositIporFusionTrx: () => depositIporFusionTrx,
|
|
44393
44395
|
depositGearboxVaultTrx: () => depositGearboxVaultTrx,
|
|
44394
44396
|
depositForBurnToCctpTrx: () => depositForBurnToCctpTrx,
|
|
44397
|
+
depositFluidLiteTrx: () => depositFluidLiteTrx,
|
|
44395
44398
|
createVaultProxyTrx: () => createVaultProxyTrx,
|
|
44396
44399
|
createOrderTrx: () => createOrderTrx,
|
|
44397
44400
|
createCall: () => createCall,
|
|
@@ -44420,6 +44423,7 @@ __export(exports_src, {
|
|
|
44420
44423
|
WithdrawFromLendleCalldata: () => WithdrawFromLendleCalldata,
|
|
44421
44424
|
WithdrawFromAaveV3L2Calldata: () => WithdrawFromAaveV3L2Calldata,
|
|
44422
44425
|
WithdrawFromAaveV3L1Calldata: () => WithdrawFromAaveV3L1Calldata,
|
|
44426
|
+
WithdrawFluidLiteCalldata: () => WithdrawFluidLiteCalldata,
|
|
44423
44427
|
WithdrawCollateralMorphoBlueCalldata: () => WithdrawCollateralMorphoBlueCalldata,
|
|
44424
44428
|
WethAbi: () => weth_abi_default,
|
|
44425
44429
|
UpdateTotalAssetsLifespanCalldata: () => UpdateTotalAssetsLifespanCalldata,
|
|
@@ -44490,6 +44494,7 @@ __export(exports_src, {
|
|
|
44490
44494
|
RedeemMorphoVaultCalldata: () => RedeemMorphoVaultCalldata,
|
|
44491
44495
|
RedeemIporFusionCalldata: () => RedeemIporFusionCalldata,
|
|
44492
44496
|
RedeemGearboxVaultCalldata: () => RedeemGearboxVaultCalldata,
|
|
44497
|
+
RedeemFluidLiteCalldata: () => RedeemFluidLiteCalldata,
|
|
44493
44498
|
ReceiveMessageCalldata: () => ReceiveMessageCalldata,
|
|
44494
44499
|
QuoteSendTrx: () => QuoteSendTrx,
|
|
44495
44500
|
QuoteSendCalldata: () => QuoteSendCalldata,
|
|
@@ -44506,6 +44511,7 @@ __export(exports_src, {
|
|
|
44506
44511
|
InitiateClosingCalldata: () => InitiateClosingCalldata,
|
|
44507
44512
|
GMX_EXCHANGE_ROUTER_ARB: () => GMX_EXCHANGE_ROUTER_ARB,
|
|
44508
44513
|
GMXExchangeRouterAbi: () => exchange_router_abi_default,
|
|
44514
|
+
FluidLiteAbi: () => fluid_lite_abi_default,
|
|
44509
44515
|
Erc721Abi: () => erc721_abi_default2,
|
|
44510
44516
|
Erc20Abi: () => erc20_abi_default,
|
|
44511
44517
|
ERC721: () => erc721_abi_default,
|
|
@@ -44518,6 +44524,7 @@ __export(exports_src, {
|
|
|
44518
44524
|
DepositIporFusionCalldata: () => DepositIporFusionCalldata,
|
|
44519
44525
|
DepositGearboxVaultCalldata: () => DepositGearboxVaultCalldata,
|
|
44520
44526
|
DepositForBurnCalldata: () => DepositForBurnCalldata,
|
|
44527
|
+
DepositFluidLiteCalldata: () => DepositFluidLiteCalldata,
|
|
44521
44528
|
DelayedTransactionCalldata: () => DelayedTransactionCalldata,
|
|
44522
44529
|
DecreasePositionSwapType: () => DecreasePositionSwapType,
|
|
44523
44530
|
DELEGATE_CALL_OP_CODE: () => DELEGATE_CALL_OP_CODE,
|
|
@@ -61650,9 +61657,15 @@ var contractsRegistry_default = {
|
|
|
61650
61657
|
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
|
|
61651
61658
|
usdc: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
61652
61659
|
usdt: "0x201eba5cc46d216ce6dc03f6a759e8e766e956ae",
|
|
61660
|
+
usdt0: "0xcb768e263fb1c62214e7cab4aa8d036d76dc59cc",
|
|
61653
61661
|
usde: "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34",
|
|
61654
61662
|
cmeth: "0xe6829d9a7ee3040e1276fa75293bde931859e8fa"
|
|
61655
61663
|
},
|
|
61664
|
+
OFTAdapters: {
|
|
61665
|
+
"0xcb768e263fb1c62214e7cab4aa8d036d76dc59cc": "0xcb768e263fb1c62214e7cab4aa8d036d76dc59cc",
|
|
61666
|
+
"0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34": "0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34"
|
|
61667
|
+
},
|
|
61668
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
61656
61669
|
lagoonV0_4: {
|
|
61657
61670
|
factory: "0x57D969B556C6AebB3Ac8f54c98CF3a3f921d5659",
|
|
61658
61671
|
registry: "0x47A144e67834408716cB40Fa87fc886D63362ddC",
|
|
@@ -94705,6 +94718,85 @@ var redeemGearboxVaultTrx = ({
|
|
|
94705
94718
|
data: RedeemGearboxVaultCalldata(args)
|
|
94706
94719
|
});
|
|
94707
94720
|
};
|
|
94721
|
+
// src/integrations/fluidLite/fluid-lite.abi.ts
|
|
94722
|
+
var fluid_lite_abi_default = [
|
|
94723
|
+
{
|
|
94724
|
+
inputs: [
|
|
94725
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
94726
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
94727
|
+
],
|
|
94728
|
+
name: "deposit",
|
|
94729
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
94730
|
+
stateMutability: "nonpayable",
|
|
94731
|
+
type: "function"
|
|
94732
|
+
},
|
|
94733
|
+
{
|
|
94734
|
+
inputs: [
|
|
94735
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
94736
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
94737
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
94738
|
+
],
|
|
94739
|
+
name: "withdraw",
|
|
94740
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
94741
|
+
stateMutability: "nonpayable",
|
|
94742
|
+
type: "function"
|
|
94743
|
+
},
|
|
94744
|
+
{
|
|
94745
|
+
inputs: [
|
|
94746
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
94747
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
94748
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
94749
|
+
],
|
|
94750
|
+
name: "redeem",
|
|
94751
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
94752
|
+
stateMutability: "nonpayable",
|
|
94753
|
+
type: "function"
|
|
94754
|
+
}
|
|
94755
|
+
];
|
|
94756
|
+
// src/integrations/fluidLite/fluid-lite.ts
|
|
94757
|
+
var fluidLiteInterface = new exports_ethers.utils.Interface(fluid_lite_abi_default);
|
|
94758
|
+
var DepositFluidLiteCalldata = ({ assets, receiver }) => {
|
|
94759
|
+
return fluidLiteInterface.encodeFunctionData("deposit", [assets, receiver]);
|
|
94760
|
+
};
|
|
94761
|
+
var depositFluidLiteTrx = ({
|
|
94762
|
+
args,
|
|
94763
|
+
vault
|
|
94764
|
+
}) => {
|
|
94765
|
+
return createCall({
|
|
94766
|
+
operation: 0,
|
|
94767
|
+
to: vault,
|
|
94768
|
+
value: 0n,
|
|
94769
|
+
data: DepositFluidLiteCalldata(args)
|
|
94770
|
+
});
|
|
94771
|
+
};
|
|
94772
|
+
var RedeemFluidLiteCalldata = ({ shares, receiver, owner }) => {
|
|
94773
|
+
return fluidLiteInterface.encodeFunctionData("redeem", [shares, receiver, owner]);
|
|
94774
|
+
};
|
|
94775
|
+
var redeemFluidLiteTrx = ({
|
|
94776
|
+
args,
|
|
94777
|
+
vault
|
|
94778
|
+
}) => {
|
|
94779
|
+
return createCall({
|
|
94780
|
+
operation: 0,
|
|
94781
|
+
to: vault,
|
|
94782
|
+
value: 0n,
|
|
94783
|
+
data: RedeemFluidLiteCalldata(args)
|
|
94784
|
+
});
|
|
94785
|
+
};
|
|
94786
|
+
var WithdrawFluidLiteCalldata = ({ assets, receiver, owner }) => {
|
|
94787
|
+
return fluidLiteInterface.encodeFunctionData("withdraw", [assets, receiver, owner]);
|
|
94788
|
+
};
|
|
94789
|
+
var withdrawFluidLiteTrx = ({
|
|
94790
|
+
args,
|
|
94791
|
+
vault
|
|
94792
|
+
}) => {
|
|
94793
|
+
return createCall({
|
|
94794
|
+
operation: 0,
|
|
94795
|
+
to: vault,
|
|
94796
|
+
value: 0n,
|
|
94797
|
+
data: WithdrawFluidLiteCalldata(args)
|
|
94798
|
+
});
|
|
94799
|
+
};
|
|
94708
94800
|
// src/integrations/weth/weth.abi.ts
|
|
94709
94801
|
var weth_abi_default = [
|
|
94710
94802
|
{
|
|
@@ -94847,4 +94939,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
94847
94939
|
};
|
|
94848
94940
|
};
|
|
94849
94941
|
|
|
94850
|
-
//# debugId=
|
|
94942
|
+
//# debugId=6802B5A5FD245F6364756E2164756E21
|