damm-sdk 1.3.0 → 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 +261 -120
- package/dist/index.cjs.map +7 -5
- package/dist/index.js +261 -120
- package/dist/index.js.map +7 -5
- package/dist/integrations/index.d.ts +2 -1
- 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/{syrup/syrup.vault.abi.d.ts → iporFusion/ipor.fusion.abi.d.ts} +23 -15
- 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 -1
- 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/integrations/syrup/index.d.ts +0 -3
- package/dist/integrations/syrup/index.d.ts.map +0 -1
- package/dist/integrations/syrup/syrup.vault.abi.d.ts.map +0 -1
- package/dist/integrations/syrup/syrup.vault.d.ts +0 -30
- package/dist/integrations/syrup/syrup.vault.d.ts.map +0 -1
- package/src/integrations/syrup/index.ts +0 -2
- package/src/integrations/syrup/syrup.vault.abi.ts +0 -65
- package/src/integrations/syrup/syrup.vault.ts +0 -91
package/dist/index.cjs
CHANGED
|
@@ -44297,6 +44297,7 @@ __export(exports_src, {
|
|
|
44297
44297
|
withdrawMorphoVaultTrx: () => withdrawMorphoVaultTrx,
|
|
44298
44298
|
withdrawMorphoVaultAssetTrx: () => withdrawMorphoVaultAssetTrx,
|
|
44299
44299
|
withdrawMorphoBlueTrx: () => withdrawMorphoBlueTrx,
|
|
44300
|
+
withdrawIporFusionTrx: () => withdrawIporFusionTrx,
|
|
44300
44301
|
withdrawFromLendleTrx: () => withdrawFromLendleTrx,
|
|
44301
44302
|
withdrawFromAaveV3Trx: () => withdrawFromAaveV3Trx,
|
|
44302
44303
|
withdrawCollateralMorphoBlueTrx: () => withdrawCollateralMorphoBlueTrx,
|
|
@@ -44350,12 +44351,12 @@ __export(exports_src, {
|
|
|
44350
44351
|
safeTransferFromWithDataErc721Trx: () => safeTransferFromWithDataErc721Trx,
|
|
44351
44352
|
safeTransferFromErc721Trx: () => safeTransferFromErc721Trx,
|
|
44352
44353
|
revokeFromVaultWhitelistTrx: () => revokeFromVaultWhitelistTrx,
|
|
44353
|
-
|
|
44354
|
-
requestRedeemSyrupVaultTrx: () => requestRedeemSyrupVaultTrx,
|
|
44354
|
+
requestRedeemOriginArmTrx: () => requestRedeemOriginArmTrx,
|
|
44355
44355
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44356
44356
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44357
44357
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
44358
44358
|
redeemMorphoVaultTrx: () => redeemMorphoVaultTrx,
|
|
44359
|
+
redeemIporFusionTrx: () => redeemIporFusionTrx,
|
|
44359
44360
|
receiveMessageFromCctpTrx: () => receiveMessageFromCctpTrx,
|
|
44360
44361
|
pauseVaultTrx: () => pauseVaultTrx,
|
|
44361
44362
|
merklClaimTrx: () => merklClaimTrx,
|
|
@@ -44378,13 +44379,17 @@ __export(exports_src, {
|
|
|
44378
44379
|
execTransactionWithDelay: () => execTransactionWithDelay,
|
|
44379
44380
|
execTransactionFromModuleTrx: () => execTransactionFromModuleTrx,
|
|
44380
44381
|
depositToLendleTrx: () => depositToLendleTrx,
|
|
44381
|
-
|
|
44382
|
+
depositOriginArmWethTrx: () => depositOriginArmWethTrx,
|
|
44383
|
+
depositOriginArmEthViaZapperTrx: () => depositOriginArmEthViaZapperTrx,
|
|
44384
|
+
depositOriginArmEthViaUniversalZapperTrx: () => depositOriginArmEthViaUniversalZapperTrx,
|
|
44382
44385
|
depositMorphoVaultTrx: () => depositMorphoVaultTrx,
|
|
44386
|
+
depositIporFusionTrx: () => depositIporFusionTrx,
|
|
44383
44387
|
depositForBurnToCctpTrx: () => depositForBurnToCctpTrx,
|
|
44384
44388
|
createVaultProxyTrx: () => createVaultProxyTrx,
|
|
44385
44389
|
createOrderTrx: () => createOrderTrx,
|
|
44386
44390
|
createCall: () => createCall,
|
|
44387
44391
|
closeVaultTrx: () => closeVaultTrx,
|
|
44392
|
+
claimRedeemOriginArmTrx: () => claimRedeemOriginArmTrx,
|
|
44388
44393
|
claimFundingFeesTrx: () => claimFundingFeesTrx,
|
|
44389
44394
|
cancelOrderTrx: () => cancelOrderTrx,
|
|
44390
44395
|
calculateDeterministicVaultAddress: () => calculateDeterministicVaultAddress,
|
|
@@ -44402,6 +44407,7 @@ __export(exports_src, {
|
|
|
44402
44407
|
WithdrawMorphoVaultCalldata: () => WithdrawMorphoVaultCalldata,
|
|
44403
44408
|
WithdrawMorphoVaultAssetCalldata: () => WithdrawMorphoVaultAssetCalldata,
|
|
44404
44409
|
WithdrawMorphoBlueCalldata: () => WithdrawMorphoBlueCalldata,
|
|
44410
|
+
WithdrawIporFusionCalldata: () => WithdrawIporFusionCalldata,
|
|
44405
44411
|
WithdrawFromLendleCalldata: () => WithdrawFromLendleCalldata,
|
|
44406
44412
|
WithdrawFromAaveV3L2Calldata: () => WithdrawFromAaveV3L2Calldata,
|
|
44407
44413
|
WithdrawFromAaveV3L1Calldata: () => WithdrawFromAaveV3L1Calldata,
|
|
@@ -44438,7 +44444,6 @@ __export(exports_src, {
|
|
|
44438
44444
|
TransactionWithRoleReturnDataCalldata: () => TransactionWithRoleReturnDataCalldata,
|
|
44439
44445
|
TransactionWithRoleCalldata: () => TransactionWithRoleCalldata,
|
|
44440
44446
|
TransactionFromModuleCalldata: () => TransactionFromModuleCalldata,
|
|
44441
|
-
SyrupVaultAbi: () => syrup_vault_abi_default,
|
|
44442
44447
|
SwapExactInputSingleCalldataV4: () => SwapExactInputSingleCalldataV4,
|
|
44443
44448
|
SupplyToAaveV3L2Calldata: () => SupplyToAaveV3L2Calldata,
|
|
44444
44449
|
SupplyToAaveV3L1Calldata: () => SupplyToAaveV3L1Calldata,
|
|
@@ -44466,12 +44471,12 @@ __export(exports_src, {
|
|
|
44466
44471
|
RouterSwapExactOutputSingleCalldata: () => RouterSwapExactOutputSingleCalldata,
|
|
44467
44472
|
RouterSwapExactInputSingleCalldata: () => RouterSwapExactInputSingleCalldata,
|
|
44468
44473
|
RevokeFromVaultWhitelistCalldata: () => RevokeFromVaultWhitelistCalldata,
|
|
44469
|
-
|
|
44470
|
-
RequestRedeemSyrupVaultCalldata: () => RequestRedeemSyrupVaultCalldata,
|
|
44474
|
+
RequestRedeemOriginArmCalldata: () => RequestRedeemOriginArmCalldata,
|
|
44471
44475
|
RepayToLendleCalldata: () => RepayToLendleCalldata,
|
|
44472
44476
|
RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
|
|
44473
44477
|
RepayMorphoBlueCalldata: () => RepayMorphoBlueCalldata,
|
|
44474
44478
|
RedeemMorphoVaultCalldata: () => RedeemMorphoVaultCalldata,
|
|
44479
|
+
RedeemIporFusionCalldata: () => RedeemIporFusionCalldata,
|
|
44475
44480
|
ReceiveMessageCalldata: () => ReceiveMessageCalldata,
|
|
44476
44481
|
QuoteSendTrx: () => QuoteSendTrx,
|
|
44477
44482
|
QuoteSendCalldata: () => QuoteSendCalldata,
|
|
@@ -44492,8 +44497,11 @@ __export(exports_src, {
|
|
|
44492
44497
|
Erc20Abi: () => erc20_abi_default,
|
|
44493
44498
|
ERC721: () => erc721_abi_default,
|
|
44494
44499
|
DepositToLendleCalldata: () => DepositToLendleCalldata,
|
|
44495
|
-
|
|
44500
|
+
DepositOriginArmWethCalldata: () => DepositOriginArmWethCalldata,
|
|
44501
|
+
DepositOriginArmEthViaZapperCalldata: () => DepositOriginArmEthViaZapperCalldata,
|
|
44502
|
+
DepositOriginArmEthViaUniversalZapperCalldata: () => DepositOriginArmEthViaUniversalZapperCalldata,
|
|
44496
44503
|
DepositMorphoVaultCalldata: () => DepositMorphoVaultCalldata,
|
|
44504
|
+
DepositIporFusionCalldata: () => DepositIporFusionCalldata,
|
|
44497
44505
|
DepositForBurnCalldata: () => DepositForBurnCalldata,
|
|
44498
44506
|
DelayedTransactionCalldata: () => DelayedTransactionCalldata,
|
|
44499
44507
|
DecreasePositionSwapType: () => DecreasePositionSwapType,
|
|
@@ -44503,6 +44511,7 @@ __export(exports_src, {
|
|
|
44503
44511
|
CreateOrderCalldata: () => CreateOrderCalldata,
|
|
44504
44512
|
Commands: () => Commands,
|
|
44505
44513
|
CloseVaultCalldata: () => CloseVaultCalldata,
|
|
44514
|
+
ClaimRedeemOriginArmCalldata: () => ClaimRedeemOriginArmCalldata,
|
|
44506
44515
|
ClaimFundingFeesCalldata: () => ClaimFundingFeesCalldata,
|
|
44507
44516
|
CctpTokenMessengerV2Abi: () => token_messenger_v2_abi_default,
|
|
44508
44517
|
CctpMessageTransmitterV2Abi: () => message_transmitter_v2_abi_default,
|
|
@@ -53755,7 +53764,8 @@ var contractsRegistry_default = {
|
|
|
53755
53764
|
bal: "0xba100000625a3754423978a60c9317c58a424e3D",
|
|
53756
53765
|
cvx: "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B",
|
|
53757
53766
|
crv: "0xD533a949740bb3306d119CC777fa900bA034cd52",
|
|
53758
|
-
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"
|
|
53767
|
+
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
|
|
53768
|
+
pendle: "0x808507121B80c02388FAd14726482e061B8da827"
|
|
53759
53769
|
},
|
|
53760
53770
|
morpho: {
|
|
53761
53771
|
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
|
|
@@ -83611,117 +83621,6 @@ var withdrawMorphoVaultAssetTrx = ({
|
|
|
83611
83621
|
};
|
|
83612
83622
|
var WithdrawMorphoVaultCalldata = RedeemMorphoVaultCalldata;
|
|
83613
83623
|
var withdrawMorphoVaultTrx = redeemMorphoVaultTrx;
|
|
83614
|
-
// src/integrations/syrup/syrup.vault.abi.ts
|
|
83615
|
-
var syrup_vault_abi_default = [
|
|
83616
|
-
{
|
|
83617
|
-
inputs: [
|
|
83618
|
-
{ internalType: "uint256", name: "assets_", type: "uint256" },
|
|
83619
|
-
{ internalType: "address", name: "receiver_", type: "address" }
|
|
83620
|
-
],
|
|
83621
|
-
name: "deposit",
|
|
83622
|
-
outputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
|
|
83623
|
-
stateMutability: "nonpayable",
|
|
83624
|
-
type: "function"
|
|
83625
|
-
},
|
|
83626
|
-
{
|
|
83627
|
-
inputs: [
|
|
83628
|
-
{ internalType: "uint256", name: "assets_", type: "uint256" },
|
|
83629
|
-
{ internalType: "address", name: "owner_", type: "address" }
|
|
83630
|
-
],
|
|
83631
|
-
name: "requestWithdraw",
|
|
83632
|
-
outputs: [
|
|
83633
|
-
{
|
|
83634
|
-
internalType: "uint256",
|
|
83635
|
-
name: "escrowedShares_",
|
|
83636
|
-
type: "uint256"
|
|
83637
|
-
}
|
|
83638
|
-
],
|
|
83639
|
-
stateMutability: "nonpayable",
|
|
83640
|
-
type: "function"
|
|
83641
|
-
},
|
|
83642
|
-
{
|
|
83643
|
-
inputs: [
|
|
83644
|
-
{ internalType: "uint256", name: "shares_", type: "uint256" },
|
|
83645
|
-
{ internalType: "address", name: "owner_", type: "address" }
|
|
83646
|
-
],
|
|
83647
|
-
name: "requestRedeem",
|
|
83648
|
-
outputs: [
|
|
83649
|
-
{
|
|
83650
|
-
internalType: "uint256",
|
|
83651
|
-
name: "escrowedShares_",
|
|
83652
|
-
type: "uint256"
|
|
83653
|
-
}
|
|
83654
|
-
],
|
|
83655
|
-
stateMutability: "nonpayable",
|
|
83656
|
-
type: "function"
|
|
83657
|
-
},
|
|
83658
|
-
{
|
|
83659
|
-
inputs: [],
|
|
83660
|
-
name: "asset",
|
|
83661
|
-
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83662
|
-
stateMutability: "view",
|
|
83663
|
-
type: "function"
|
|
83664
|
-
},
|
|
83665
|
-
{
|
|
83666
|
-
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83667
|
-
name: "balanceOf",
|
|
83668
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
83669
|
-
stateMutability: "view",
|
|
83670
|
-
type: "function"
|
|
83671
|
-
},
|
|
83672
|
-
{
|
|
83673
|
-
inputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
|
|
83674
|
-
name: "convertToAssets",
|
|
83675
|
-
outputs: [{ internalType: "uint256", name: "assets_", type: "uint256" }],
|
|
83676
|
-
stateMutability: "view",
|
|
83677
|
-
type: "function"
|
|
83678
|
-
}
|
|
83679
|
-
];
|
|
83680
|
-
|
|
83681
|
-
// src/integrations/syrup/syrup.vault.ts
|
|
83682
|
-
var syrupVaultInterface = new exports_ethers.utils.Interface(syrup_vault_abi_default);
|
|
83683
|
-
var DepositSyrupVaultCalldata = ({ assets, receiver }) => {
|
|
83684
|
-
return syrupVaultInterface.encodeFunctionData("deposit", [assets, receiver]);
|
|
83685
|
-
};
|
|
83686
|
-
var depositSyrupVaultTrx = ({
|
|
83687
|
-
args,
|
|
83688
|
-
syrupVaultAddress
|
|
83689
|
-
}) => {
|
|
83690
|
-
return createCall({
|
|
83691
|
-
operation: 0,
|
|
83692
|
-
to: syrupVaultAddress,
|
|
83693
|
-
value: 0n,
|
|
83694
|
-
data: DepositSyrupVaultCalldata(args)
|
|
83695
|
-
});
|
|
83696
|
-
};
|
|
83697
|
-
var RequestWithdrawSyrupVaultCalldata = ({ assets, owner }) => {
|
|
83698
|
-
return syrupVaultInterface.encodeFunctionData("requestWithdraw", [assets, owner]);
|
|
83699
|
-
};
|
|
83700
|
-
var requestWithdrawSyrupVaultTrx = ({
|
|
83701
|
-
args,
|
|
83702
|
-
syrupVaultAddress
|
|
83703
|
-
}) => {
|
|
83704
|
-
return createCall({
|
|
83705
|
-
operation: 0,
|
|
83706
|
-
to: syrupVaultAddress,
|
|
83707
|
-
value: 0n,
|
|
83708
|
-
data: RequestWithdrawSyrupVaultCalldata(args)
|
|
83709
|
-
});
|
|
83710
|
-
};
|
|
83711
|
-
var RequestRedeemSyrupVaultCalldata = ({ shares, owner }) => {
|
|
83712
|
-
return syrupVaultInterface.encodeFunctionData("requestRedeem", [shares, owner]);
|
|
83713
|
-
};
|
|
83714
|
-
var requestRedeemSyrupVaultTrx = ({
|
|
83715
|
-
args,
|
|
83716
|
-
syrupVaultAddress
|
|
83717
|
-
}) => {
|
|
83718
|
-
return createCall({
|
|
83719
|
-
operation: 0,
|
|
83720
|
-
to: syrupVaultAddress,
|
|
83721
|
-
value: 0n,
|
|
83722
|
-
data: RequestRedeemSyrupVaultCalldata(args)
|
|
83723
|
-
});
|
|
83724
|
-
};
|
|
83725
83624
|
// src/integrations/merkl/merkl.distributor.abi.ts
|
|
83726
83625
|
var merkl_distributor_abi_default = [
|
|
83727
83626
|
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
@@ -86714,6 +86613,248 @@ var setApprovalForAllErc721Trx = ({
|
|
|
86714
86613
|
operation: 0
|
|
86715
86614
|
});
|
|
86716
86615
|
};
|
|
86616
|
+
// src/integrations/iporFusion/ipor.fusion.abi.ts
|
|
86617
|
+
var ipor_fusion_abi_default = [
|
|
86618
|
+
{
|
|
86619
|
+
inputs: [
|
|
86620
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
86621
|
+
{ internalType: "address", name: "receiver", type: "address" }
|
|
86622
|
+
],
|
|
86623
|
+
name: "deposit",
|
|
86624
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86625
|
+
stateMutability: "nonpayable",
|
|
86626
|
+
type: "function"
|
|
86627
|
+
},
|
|
86628
|
+
{
|
|
86629
|
+
inputs: [
|
|
86630
|
+
{ internalType: "uint256", name: "assets", type: "uint256" },
|
|
86631
|
+
{ internalType: "address", name: "receiver", type: "address" },
|
|
86632
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
86633
|
+
],
|
|
86634
|
+
name: "withdraw",
|
|
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: "receiver", type: "address" },
|
|
86643
|
+
{ internalType: "address", name: "owner", type: "address" }
|
|
86644
|
+
],
|
|
86645
|
+
name: "redeem",
|
|
86646
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86647
|
+
stateMutability: "nonpayable",
|
|
86648
|
+
type: "function"
|
|
86649
|
+
},
|
|
86650
|
+
{
|
|
86651
|
+
inputs: [],
|
|
86652
|
+
name: "asset",
|
|
86653
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
86654
|
+
stateMutability: "view",
|
|
86655
|
+
type: "function"
|
|
86656
|
+
},
|
|
86657
|
+
{
|
|
86658
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
86659
|
+
name: "balanceOf",
|
|
86660
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
86661
|
+
stateMutability: "view",
|
|
86662
|
+
type: "function"
|
|
86663
|
+
},
|
|
86664
|
+
{
|
|
86665
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86666
|
+
name: "convertToAssets",
|
|
86667
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86668
|
+
stateMutability: "view",
|
|
86669
|
+
type: "function"
|
|
86670
|
+
}
|
|
86671
|
+
];
|
|
86672
|
+
|
|
86673
|
+
// src/integrations/iporFusion/ipor.fusion.ts
|
|
86674
|
+
var iporFusionInterface = new exports_ethers.utils.Interface(ipor_fusion_abi_default);
|
|
86675
|
+
var DepositIporFusionCalldata = ({ assets, receiver }) => {
|
|
86676
|
+
return iporFusionInterface.encodeFunctionData("deposit", [assets, receiver]);
|
|
86677
|
+
};
|
|
86678
|
+
var depositIporFusionTrx = ({
|
|
86679
|
+
args,
|
|
86680
|
+
vaultAddress
|
|
86681
|
+
}) => {
|
|
86682
|
+
return createCall({
|
|
86683
|
+
operation: 0,
|
|
86684
|
+
to: vaultAddress,
|
|
86685
|
+
value: 0n,
|
|
86686
|
+
data: DepositIporFusionCalldata(args)
|
|
86687
|
+
});
|
|
86688
|
+
};
|
|
86689
|
+
var WithdrawIporFusionCalldata = ({ assets, receiver, owner }) => {
|
|
86690
|
+
return iporFusionInterface.encodeFunctionData("withdraw", [assets, receiver, owner]);
|
|
86691
|
+
};
|
|
86692
|
+
var withdrawIporFusionTrx = ({
|
|
86693
|
+
args,
|
|
86694
|
+
vaultAddress
|
|
86695
|
+
}) => {
|
|
86696
|
+
return createCall({
|
|
86697
|
+
operation: 0,
|
|
86698
|
+
to: vaultAddress,
|
|
86699
|
+
value: 0n,
|
|
86700
|
+
data: WithdrawIporFusionCalldata(args)
|
|
86701
|
+
});
|
|
86702
|
+
};
|
|
86703
|
+
var RedeemIporFusionCalldata = ({ shares, receiver, owner }) => {
|
|
86704
|
+
return iporFusionInterface.encodeFunctionData("redeem", [shares, receiver, owner]);
|
|
86705
|
+
};
|
|
86706
|
+
var redeemIporFusionTrx = ({
|
|
86707
|
+
args,
|
|
86708
|
+
vaultAddress
|
|
86709
|
+
}) => {
|
|
86710
|
+
return createCall({
|
|
86711
|
+
operation: 0,
|
|
86712
|
+
to: vaultAddress,
|
|
86713
|
+
value: 0n,
|
|
86714
|
+
data: RedeemIporFusionCalldata(args)
|
|
86715
|
+
});
|
|
86716
|
+
};
|
|
86717
|
+
// src/integrations/originArm/origin.arm.abi.ts
|
|
86718
|
+
var OriginArmVaultAbi = [
|
|
86719
|
+
{
|
|
86720
|
+
inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86721
|
+
name: "deposit",
|
|
86722
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86723
|
+
stateMutability: "nonpayable",
|
|
86724
|
+
type: "function"
|
|
86725
|
+
},
|
|
86726
|
+
{
|
|
86727
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86728
|
+
name: "requestRedeem",
|
|
86729
|
+
outputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
86730
|
+
stateMutability: "nonpayable",
|
|
86731
|
+
type: "function"
|
|
86732
|
+
},
|
|
86733
|
+
{
|
|
86734
|
+
inputs: [{ internalType: "uint256", name: "requestId", type: "uint256" }],
|
|
86735
|
+
name: "claimRedeem",
|
|
86736
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86737
|
+
stateMutability: "nonpayable",
|
|
86738
|
+
type: "function"
|
|
86739
|
+
},
|
|
86740
|
+
{
|
|
86741
|
+
inputs: [],
|
|
86742
|
+
name: "asset",
|
|
86743
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
86744
|
+
stateMutability: "view",
|
|
86745
|
+
type: "function"
|
|
86746
|
+
},
|
|
86747
|
+
{
|
|
86748
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
86749
|
+
name: "balanceOf",
|
|
86750
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
86751
|
+
stateMutability: "view",
|
|
86752
|
+
type: "function"
|
|
86753
|
+
},
|
|
86754
|
+
{
|
|
86755
|
+
inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86756
|
+
name: "convertToAssets",
|
|
86757
|
+
outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
|
|
86758
|
+
stateMutability: "view",
|
|
86759
|
+
type: "function"
|
|
86760
|
+
}
|
|
86761
|
+
];
|
|
86762
|
+
var OriginArmStethZapperAbi = [
|
|
86763
|
+
{
|
|
86764
|
+
inputs: [],
|
|
86765
|
+
name: "deposit",
|
|
86766
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86767
|
+
stateMutability: "payable",
|
|
86768
|
+
type: "function"
|
|
86769
|
+
}
|
|
86770
|
+
];
|
|
86771
|
+
var OriginArmUniversalZapperAbi = [
|
|
86772
|
+
{
|
|
86773
|
+
inputs: [{ internalType: "address", name: "arm", type: "address" }],
|
|
86774
|
+
name: "deposit",
|
|
86775
|
+
outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
|
|
86776
|
+
stateMutability: "payable",
|
|
86777
|
+
type: "function"
|
|
86778
|
+
}
|
|
86779
|
+
];
|
|
86780
|
+
|
|
86781
|
+
// src/integrations/originArm/origin.arm.ts
|
|
86782
|
+
var vaultInterface2 = new exports_ethers.utils.Interface(OriginArmVaultAbi);
|
|
86783
|
+
var stethZapperInterface = new exports_ethers.utils.Interface(OriginArmStethZapperAbi);
|
|
86784
|
+
var universalZapperInterface = new exports_ethers.utils.Interface(OriginArmUniversalZapperAbi);
|
|
86785
|
+
var DepositOriginArmWethCalldata = ({ assets }) => {
|
|
86786
|
+
return vaultInterface2.encodeFunctionData("deposit", [assets]);
|
|
86787
|
+
};
|
|
86788
|
+
var depositOriginArmWethTrx = ({
|
|
86789
|
+
args,
|
|
86790
|
+
vaultAddress
|
|
86791
|
+
}) => {
|
|
86792
|
+
return createCall({
|
|
86793
|
+
operation: 0,
|
|
86794
|
+
to: vaultAddress,
|
|
86795
|
+
value: 0n,
|
|
86796
|
+
data: DepositOriginArmWethCalldata(args)
|
|
86797
|
+
});
|
|
86798
|
+
};
|
|
86799
|
+
var DepositOriginArmEthViaZapperCalldata = () => {
|
|
86800
|
+
return stethZapperInterface.encodeFunctionData("deposit");
|
|
86801
|
+
};
|
|
86802
|
+
var depositOriginArmEthViaZapperTrx = ({
|
|
86803
|
+
zapperAddress,
|
|
86804
|
+
value
|
|
86805
|
+
}) => {
|
|
86806
|
+
return createCall({
|
|
86807
|
+
operation: 0,
|
|
86808
|
+
to: zapperAddress,
|
|
86809
|
+
value,
|
|
86810
|
+
data: DepositOriginArmEthViaZapperCalldata()
|
|
86811
|
+
});
|
|
86812
|
+
};
|
|
86813
|
+
var DepositOriginArmEthViaUniversalZapperCalldata = ({
|
|
86814
|
+
arm
|
|
86815
|
+
}) => {
|
|
86816
|
+
return universalZapperInterface.encodeFunctionData("deposit", [arm]);
|
|
86817
|
+
};
|
|
86818
|
+
var depositOriginArmEthViaUniversalZapperTrx = ({
|
|
86819
|
+
args,
|
|
86820
|
+
zapperAddress,
|
|
86821
|
+
value
|
|
86822
|
+
}) => {
|
|
86823
|
+
return createCall({
|
|
86824
|
+
operation: 0,
|
|
86825
|
+
to: zapperAddress,
|
|
86826
|
+
value,
|
|
86827
|
+
data: DepositOriginArmEthViaUniversalZapperCalldata(args)
|
|
86828
|
+
});
|
|
86829
|
+
};
|
|
86830
|
+
var RequestRedeemOriginArmCalldata = ({ shares }) => {
|
|
86831
|
+
return vaultInterface2.encodeFunctionData("requestRedeem", [shares]);
|
|
86832
|
+
};
|
|
86833
|
+
var requestRedeemOriginArmTrx = ({
|
|
86834
|
+
args,
|
|
86835
|
+
vaultAddress
|
|
86836
|
+
}) => {
|
|
86837
|
+
return createCall({
|
|
86838
|
+
operation: 0,
|
|
86839
|
+
to: vaultAddress,
|
|
86840
|
+
value: 0n,
|
|
86841
|
+
data: RequestRedeemOriginArmCalldata(args)
|
|
86842
|
+
});
|
|
86843
|
+
};
|
|
86844
|
+
var ClaimRedeemOriginArmCalldata = ({ requestId }) => {
|
|
86845
|
+
return vaultInterface2.encodeFunctionData("claimRedeem", [requestId]);
|
|
86846
|
+
};
|
|
86847
|
+
var claimRedeemOriginArmTrx = ({
|
|
86848
|
+
args,
|
|
86849
|
+
vaultAddress
|
|
86850
|
+
}) => {
|
|
86851
|
+
return createCall({
|
|
86852
|
+
operation: 0,
|
|
86853
|
+
to: vaultAddress,
|
|
86854
|
+
value: 0n,
|
|
86855
|
+
data: ClaimRedeemOriginArmCalldata(args)
|
|
86856
|
+
});
|
|
86857
|
+
};
|
|
86717
86858
|
// src/lib/utils.ts
|
|
86718
86859
|
var executeTrx = ({
|
|
86719
86860
|
client,
|
|
@@ -86808,4 +86949,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
86808
86949
|
};
|
|
86809
86950
|
};
|
|
86810
86951
|
|
|
86811
|
-
//# debugId=
|
|
86952
|
+
//# debugId=428787067F487B5964756E2164756E21
|