damm-sdk 1.2.32 → 1.3.1
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 +262 -3
- package/dist/index.cjs.map +7 -3
- package/dist/index.js +262 -3
- package/dist/index.js.map +7 -3
- package/dist/integrations/index.d.ts +2 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/iporFusion/index.d.ts +2 -0
- package/dist/integrations/iporFusion/index.d.ts.map +1 -0
- package/dist/integrations/iporFusion/ipor.fusion.abi.d.ts +103 -0
- package/dist/integrations/iporFusion/ipor.fusion.abi.d.ts.map +1 -0
- package/dist/integrations/iporFusion/ipor.fusion.d.ts +32 -0
- package/dist/integrations/iporFusion/ipor.fusion.d.ts.map +1 -0
- package/dist/integrations/originArm/index.d.ts +2 -0
- package/dist/integrations/originArm/index.d.ts.map +1 -0
- package/dist/integrations/originArm/origin.arm.abi.d.ts +108 -0
- package/dist/integrations/originArm/origin.arm.abi.d.ts.map +1 -0
- package/dist/integrations/originArm/origin.arm.d.ts +41 -0
- package/dist/integrations/originArm/origin.arm.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/integrations/index.ts +2 -0
- package/src/integrations/iporFusion/index.ts +1 -0
- package/src/integrations/iporFusion/ipor.fusion.abi.ts +55 -0
- package/src/integrations/iporFusion/ipor.fusion.ts +93 -0
- package/src/integrations/originArm/index.ts +1 -0
- package/src/integrations/originArm/origin.arm.abi.ts +64 -0
- package/src/integrations/originArm/origin.arm.ts +144 -0
- package/src/lib/contractsRegistry.json +2 -1
package/dist/index.js
CHANGED
|
@@ -37239,7 +37239,7 @@ var require_lib21 = __commonJS((exports) => {
|
|
|
37239
37239
|
} });
|
|
37240
37240
|
});
|
|
37241
37241
|
|
|
37242
|
-
// node_modules
|
|
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) {
|
|
@@ -53533,7 +53533,8 @@ var contractsRegistry_default = {
|
|
|
53533
53533
|
bal: "0xba100000625a3754423978a60c9317c58a424e3D",
|
|
53534
53534
|
cvx: "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B",
|
|
53535
53535
|
crv: "0xD533a949740bb3306d119CC777fa900bA034cd52",
|
|
53536
|
-
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"
|
|
53536
|
+
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
|
|
53537
|
+
pendle: "0x808507121B80c02388FAd14726482e061B8da827"
|
|
53537
53538
|
},
|
|
53538
53539
|
morpho: {
|
|
53539
53540
|
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
|
|
@@ -86381,6 +86382,248 @@ var setApprovalForAllErc721Trx = ({
|
|
|
86381
86382
|
operation: 0
|
|
86382
86383
|
});
|
|
86383
86384
|
};
|
|
86385
|
+
// src/integrations/iporFusion/ipor.fusion.abi.ts
|
|
86386
|
+
var ipor_fusion_abi_default = [
|
|
86387
|
+
{
|
|
86388
|
+
inputs: [
|
|
86389
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
86390
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
86391
|
+
],
|
|
86392
|
+
name: "deposit",
|
|
86393
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86394
|
+
stateMutability: "nonpayable",
|
|
86395
|
+
type: "function"
|
|
86396
|
+
},
|
|
86397
|
+
{
|
|
86398
|
+
inputs: [
|
|
86399
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
86400
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
86401
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
86402
|
+
],
|
|
86403
|
+
name: "withdraw",
|
|
86404
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86405
|
+
stateMutability: "nonpayable",
|
|
86406
|
+
type: "function"
|
|
86407
|
+
},
|
|
86408
|
+
{
|
|
86409
|
+
inputs: [
|
|
86410
|
+
{ internalType: "uint256", name: "shares", type: "uint256" },
|
|
86411
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
86412
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
86413
|
+
],
|
|
86414
|
+
name: "redeem",
|
|
86415
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86416
|
+
stateMutability: "nonpayable",
|
|
86417
|
+
type: "function"
|
|
86418
|
+
},
|
|
86419
|
+
{
|
|
86420
|
+
inputs: [],
|
|
86421
|
+
name: "asset",
|
|
86422
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
86423
|
+
stateMutability: "view",
|
|
86424
|
+
type: "function"
|
|
86425
|
+
},
|
|
86426
|
+
{
|
|
86427
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
86428
|
+
name: "balanceOf",
|
|
86429
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
86430
|
+
stateMutability: "view",
|
|
86431
|
+
type: "function"
|
|
86432
|
+
},
|
|
86433
|
+
{
|
|
86434
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86435
|
+
name: "convertToAssets",
|
|
86436
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86437
|
+
stateMutability: "view",
|
|
86438
|
+
type: "function"
|
|
86439
|
+
}
|
|
86440
|
+
];
|
|
86441
|
+
|
|
86442
|
+
// src/integrations/iporFusion/ipor.fusion.ts
|
|
86443
|
+
var iporFusionInterface = new exports_ethers.utils.Interface(ipor_fusion_abi_default);
|
|
86444
|
+
var DepositIporFusionCalldata = ({ assets, receiver }) => {
|
|
86445
|
+
return iporFusionInterface.encodeFunctionData("deposit", [assets, receiver]);
|
|
86446
|
+
};
|
|
86447
|
+
var depositIporFusionTrx = ({
|
|
86448
|
+
args,
|
|
86449
|
+
vaultAddress
|
|
86450
|
+
}) => {
|
|
86451
|
+
return createCall({
|
|
86452
|
+
operation: 0,
|
|
86453
|
+
to: vaultAddress,
|
|
86454
|
+
value: 0n,
|
|
86455
|
+
data: DepositIporFusionCalldata(args)
|
|
86456
|
+
});
|
|
86457
|
+
};
|
|
86458
|
+
var WithdrawIporFusionCalldata = ({ assets, receiver, owner }) => {
|
|
86459
|
+
return iporFusionInterface.encodeFunctionData("withdraw", [assets, receiver, owner]);
|
|
86460
|
+
};
|
|
86461
|
+
var withdrawIporFusionTrx = ({
|
|
86462
|
+
args,
|
|
86463
|
+
vaultAddress
|
|
86464
|
+
}) => {
|
|
86465
|
+
return createCall({
|
|
86466
|
+
operation: 0,
|
|
86467
|
+
to: vaultAddress,
|
|
86468
|
+
value: 0n,
|
|
86469
|
+
data: WithdrawIporFusionCalldata(args)
|
|
86470
|
+
});
|
|
86471
|
+
};
|
|
86472
|
+
var RedeemIporFusionCalldata = ({ shares, receiver, owner }) => {
|
|
86473
|
+
return iporFusionInterface.encodeFunctionData("redeem", [shares, receiver, owner]);
|
|
86474
|
+
};
|
|
86475
|
+
var redeemIporFusionTrx = ({
|
|
86476
|
+
args,
|
|
86477
|
+
vaultAddress
|
|
86478
|
+
}) => {
|
|
86479
|
+
return createCall({
|
|
86480
|
+
operation: 0,
|
|
86481
|
+
to: vaultAddress,
|
|
86482
|
+
value: 0n,
|
|
86483
|
+
data: RedeemIporFusionCalldata(args)
|
|
86484
|
+
});
|
|
86485
|
+
};
|
|
86486
|
+
// src/integrations/originArm/origin.arm.abi.ts
|
|
86487
|
+
var OriginArmVaultAbi = [
|
|
86488
|
+
{
|
|
86489
|
+
inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86490
|
+
name: "deposit",
|
|
86491
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86492
|
+
stateMutability: "nonpayable",
|
|
86493
|
+
type: "function"
|
|
86494
|
+
},
|
|
86495
|
+
{
|
|
86496
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86497
|
+
name: "requestRedeem",
|
|
86498
|
+
outputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
86499
|
+
stateMutability: "nonpayable",
|
|
86500
|
+
type: "function"
|
|
86501
|
+
},
|
|
86502
|
+
{
|
|
86503
|
+
inputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
86504
|
+
name: "claimRedeem",
|
|
86505
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86506
|
+
stateMutability: "nonpayable",
|
|
86507
|
+
type: "function"
|
|
86508
|
+
},
|
|
86509
|
+
{
|
|
86510
|
+
inputs: [],
|
|
86511
|
+
name: "asset",
|
|
86512
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
86513
|
+
stateMutability: "view",
|
|
86514
|
+
type: "function"
|
|
86515
|
+
},
|
|
86516
|
+
{
|
|
86517
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
86518
|
+
name: "balanceOf",
|
|
86519
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
86520
|
+
stateMutability: "view",
|
|
86521
|
+
type: "function"
|
|
86522
|
+
},
|
|
86523
|
+
{
|
|
86524
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86525
|
+
name: "convertToAssets",
|
|
86526
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86527
|
+
stateMutability: "view",
|
|
86528
|
+
type: "function"
|
|
86529
|
+
}
|
|
86530
|
+
];
|
|
86531
|
+
var OriginArmStethZapperAbi = [
|
|
86532
|
+
{
|
|
86533
|
+
inputs: [],
|
|
86534
|
+
name: "deposit",
|
|
86535
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86536
|
+
stateMutability: "payable",
|
|
86537
|
+
type: "function"
|
|
86538
|
+
}
|
|
86539
|
+
];
|
|
86540
|
+
var OriginArmUniversalZapperAbi = [
|
|
86541
|
+
{
|
|
86542
|
+
inputs: [{ internalType: "address", name: "arm", type: "address" }],
|
|
86543
|
+
name: "deposit",
|
|
86544
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86545
|
+
stateMutability: "payable",
|
|
86546
|
+
type: "function"
|
|
86547
|
+
}
|
|
86548
|
+
];
|
|
86549
|
+
|
|
86550
|
+
// src/integrations/originArm/origin.arm.ts
|
|
86551
|
+
var vaultInterface2 = new exports_ethers.utils.Interface(OriginArmVaultAbi);
|
|
86552
|
+
var stethZapperInterface = new exports_ethers.utils.Interface(OriginArmStethZapperAbi);
|
|
86553
|
+
var universalZapperInterface = new exports_ethers.utils.Interface(OriginArmUniversalZapperAbi);
|
|
86554
|
+
var DepositOriginArmWethCalldata = ({ assets }) => {
|
|
86555
|
+
return vaultInterface2.encodeFunctionData("deposit", [assets]);
|
|
86556
|
+
};
|
|
86557
|
+
var depositOriginArmWethTrx = ({
|
|
86558
|
+
args,
|
|
86559
|
+
vaultAddress
|
|
86560
|
+
}) => {
|
|
86561
|
+
return createCall({
|
|
86562
|
+
operation: 0,
|
|
86563
|
+
to: vaultAddress,
|
|
86564
|
+
value: 0n,
|
|
86565
|
+
data: DepositOriginArmWethCalldata(args)
|
|
86566
|
+
});
|
|
86567
|
+
};
|
|
86568
|
+
var DepositOriginArmEthViaZapperCalldata = () => {
|
|
86569
|
+
return stethZapperInterface.encodeFunctionData("deposit");
|
|
86570
|
+
};
|
|
86571
|
+
var depositOriginArmEthViaZapperTrx = ({
|
|
86572
|
+
zapperAddress,
|
|
86573
|
+
value
|
|
86574
|
+
}) => {
|
|
86575
|
+
return createCall({
|
|
86576
|
+
operation: 0,
|
|
86577
|
+
to: zapperAddress,
|
|
86578
|
+
value,
|
|
86579
|
+
data: DepositOriginArmEthViaZapperCalldata()
|
|
86580
|
+
});
|
|
86581
|
+
};
|
|
86582
|
+
var DepositOriginArmEthViaUniversalZapperCalldata = ({
|
|
86583
|
+
arm
|
|
86584
|
+
}) => {
|
|
86585
|
+
return universalZapperInterface.encodeFunctionData("deposit", [arm]);
|
|
86586
|
+
};
|
|
86587
|
+
var depositOriginArmEthViaUniversalZapperTrx = ({
|
|
86588
|
+
args,
|
|
86589
|
+
zapperAddress,
|
|
86590
|
+
value
|
|
86591
|
+
}) => {
|
|
86592
|
+
return createCall({
|
|
86593
|
+
operation: 0,
|
|
86594
|
+
to: zapperAddress,
|
|
86595
|
+
value,
|
|
86596
|
+
data: DepositOriginArmEthViaUniversalZapperCalldata(args)
|
|
86597
|
+
});
|
|
86598
|
+
};
|
|
86599
|
+
var RequestRedeemOriginArmCalldata = ({ shares }) => {
|
|
86600
|
+
return vaultInterface2.encodeFunctionData("requestRedeem", [shares]);
|
|
86601
|
+
};
|
|
86602
|
+
var requestRedeemOriginArmTrx = ({
|
|
86603
|
+
args,
|
|
86604
|
+
vaultAddress
|
|
86605
|
+
}) => {
|
|
86606
|
+
return createCall({
|
|
86607
|
+
operation: 0,
|
|
86608
|
+
to: vaultAddress,
|
|
86609
|
+
value: 0n,
|
|
86610
|
+
data: RequestRedeemOriginArmCalldata(args)
|
|
86611
|
+
});
|
|
86612
|
+
};
|
|
86613
|
+
var ClaimRedeemOriginArmCalldata = ({ requestId }) => {
|
|
86614
|
+
return vaultInterface2.encodeFunctionData("claimRedeem", [requestId]);
|
|
86615
|
+
};
|
|
86616
|
+
var claimRedeemOriginArmTrx = ({
|
|
86617
|
+
args,
|
|
86618
|
+
vaultAddress
|
|
86619
|
+
}) => {
|
|
86620
|
+
return createCall({
|
|
86621
|
+
operation: 0,
|
|
86622
|
+
to: vaultAddress,
|
|
86623
|
+
value: 0n,
|
|
86624
|
+
data: ClaimRedeemOriginArmCalldata(args)
|
|
86625
|
+
});
|
|
86626
|
+
};
|
|
86384
86627
|
// src/lib/utils.ts
|
|
86385
86628
|
var executeTrx = ({
|
|
86386
86629
|
client,
|
|
@@ -86478,6 +86721,7 @@ export {
|
|
|
86478
86721
|
withdrawMorphoVaultTrx,
|
|
86479
86722
|
withdrawMorphoVaultAssetTrx,
|
|
86480
86723
|
withdrawMorphoBlueTrx,
|
|
86724
|
+
withdrawIporFusionTrx,
|
|
86481
86725
|
withdrawFromLendleTrx,
|
|
86482
86726
|
withdrawFromAaveV3Trx,
|
|
86483
86727
|
withdrawCollateralMorphoBlueTrx,
|
|
@@ -86531,10 +86775,12 @@ export {
|
|
|
86531
86775
|
safeTransferFromWithDataErc721Trx,
|
|
86532
86776
|
safeTransferFromErc721Trx,
|
|
86533
86777
|
revokeFromVaultWhitelistTrx,
|
|
86778
|
+
requestRedeemOriginArmTrx,
|
|
86534
86779
|
repayToLendleTrx,
|
|
86535
86780
|
repayToAaveV3Trx,
|
|
86536
86781
|
repayMorphoBlueTrx,
|
|
86537
86782
|
redeemMorphoVaultTrx,
|
|
86783
|
+
redeemIporFusionTrx,
|
|
86538
86784
|
receiveMessageFromCctpTrx,
|
|
86539
86785
|
pauseVaultTrx,
|
|
86540
86786
|
merklClaimTrx,
|
|
@@ -86557,12 +86803,17 @@ export {
|
|
|
86557
86803
|
execTransactionWithDelay,
|
|
86558
86804
|
execTransactionFromModuleTrx,
|
|
86559
86805
|
depositToLendleTrx,
|
|
86806
|
+
depositOriginArmWethTrx,
|
|
86807
|
+
depositOriginArmEthViaZapperTrx,
|
|
86808
|
+
depositOriginArmEthViaUniversalZapperTrx,
|
|
86560
86809
|
depositMorphoVaultTrx,
|
|
86810
|
+
depositIporFusionTrx,
|
|
86561
86811
|
depositForBurnToCctpTrx,
|
|
86562
86812
|
createVaultProxyTrx,
|
|
86563
86813
|
createOrderTrx,
|
|
86564
86814
|
createCall,
|
|
86565
86815
|
closeVaultTrx,
|
|
86816
|
+
claimRedeemOriginArmTrx,
|
|
86566
86817
|
claimFundingFeesTrx,
|
|
86567
86818
|
cancelOrderTrx,
|
|
86568
86819
|
calculateDeterministicVaultAddress,
|
|
@@ -86580,6 +86831,7 @@ export {
|
|
|
86580
86831
|
WithdrawMorphoVaultCalldata,
|
|
86581
86832
|
WithdrawMorphoVaultAssetCalldata,
|
|
86582
86833
|
WithdrawMorphoBlueCalldata,
|
|
86834
|
+
WithdrawIporFusionCalldata,
|
|
86583
86835
|
WithdrawFromLendleCalldata,
|
|
86584
86836
|
WithdrawFromAaveV3L2Calldata,
|
|
86585
86837
|
WithdrawFromAaveV3L1Calldata,
|
|
@@ -86643,10 +86895,12 @@ export {
|
|
|
86643
86895
|
RouterSwapExactOutputSingleCalldata,
|
|
86644
86896
|
RouterSwapExactInputSingleCalldata,
|
|
86645
86897
|
RevokeFromVaultWhitelistCalldata,
|
|
86898
|
+
RequestRedeemOriginArmCalldata,
|
|
86646
86899
|
RepayToLendleCalldata,
|
|
86647
86900
|
RepayToAaveV3L1Calldata,
|
|
86648
86901
|
RepayMorphoBlueCalldata,
|
|
86649
86902
|
RedeemMorphoVaultCalldata,
|
|
86903
|
+
RedeemIporFusionCalldata,
|
|
86650
86904
|
ReceiveMessageCalldata,
|
|
86651
86905
|
QuoteSendTrx,
|
|
86652
86906
|
QuoteSendCalldata,
|
|
@@ -86667,7 +86921,11 @@ export {
|
|
|
86667
86921
|
erc20_abi_default as Erc20Abi,
|
|
86668
86922
|
erc721_abi_default as ERC721,
|
|
86669
86923
|
DepositToLendleCalldata,
|
|
86924
|
+
DepositOriginArmWethCalldata,
|
|
86925
|
+
DepositOriginArmEthViaZapperCalldata,
|
|
86926
|
+
DepositOriginArmEthViaUniversalZapperCalldata,
|
|
86670
86927
|
DepositMorphoVaultCalldata,
|
|
86928
|
+
DepositIporFusionCalldata,
|
|
86671
86929
|
DepositForBurnCalldata,
|
|
86672
86930
|
DelayedTransactionCalldata,
|
|
86673
86931
|
DecreasePositionSwapType,
|
|
@@ -86677,6 +86935,7 @@ export {
|
|
|
86677
86935
|
CreateOrderCalldata,
|
|
86678
86936
|
Commands,
|
|
86679
86937
|
CloseVaultCalldata,
|
|
86938
|
+
ClaimRedeemOriginArmCalldata,
|
|
86680
86939
|
ClaimFundingFeesCalldata,
|
|
86681
86940
|
token_messenger_v2_abi_default as CctpTokenMessengerV2Abi,
|
|
86682
86941
|
message_transmitter_v2_abi_default as CctpMessageTransmitterV2Abi,
|
|
@@ -86693,4 +86952,4 @@ export {
|
|
|
86693
86952
|
aave_pool_abi_default as AaveL1PoolAbi
|
|
86694
86953
|
};
|
|
86695
86954
|
|
|
86696
|
-
//# debugId=
|
|
86955
|
+
//# debugId=89767A017A9F5B1B64756E2164756E21
|