damm-sdk 1.2.31 → 1.3.0
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 +23694 -31255
- package/dist/index.cjs.map +57 -119
- package/dist/index.js +122 -3
- package/dist/index.js.map +5 -3
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/syrup/index.d.ts +3 -0
- package/dist/integrations/syrup/index.d.ts.map +1 -0
- package/dist/integrations/syrup/syrup.vault.abi.d.ts +95 -0
- package/dist/integrations/syrup/syrup.vault.abi.d.ts.map +1 -0
- package/dist/integrations/syrup/syrup.vault.d.ts +30 -0
- package/dist/integrations/syrup/syrup.vault.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/integrations/index.ts +1 -0
- package/src/integrations/syrup/index.ts +2 -0
- package/src/integrations/syrup/syrup.vault.abi.ts +65 -0
- package/src/integrations/syrup/syrup.vault.ts +91 -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) {
|
|
@@ -53536,7 +53536,8 @@ var contractsRegistry_default = {
|
|
|
53536
53536
|
ausd: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"
|
|
53537
53537
|
},
|
|
53538
53538
|
morpho: {
|
|
53539
|
-
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
53539
|
+
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
|
|
53540
|
+
vaultV1_0: "0xBEEFFF7e4EedD83A4a4aB53A68D03eC77C9a57a8"
|
|
53540
53541
|
},
|
|
53541
53542
|
lido: {
|
|
53542
53543
|
steth: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
|
|
@@ -83388,6 +83389,117 @@ var withdrawMorphoVaultAssetTrx = ({
|
|
|
83388
83389
|
};
|
|
83389
83390
|
var WithdrawMorphoVaultCalldata = RedeemMorphoVaultCalldata;
|
|
83390
83391
|
var withdrawMorphoVaultTrx = redeemMorphoVaultTrx;
|
|
83392
|
+
// src/integrations/syrup/syrup.vault.abi.ts
|
|
83393
|
+
var syrup_vault_abi_default = [
|
|
83394
|
+
{
|
|
83395
|
+
inputs: [
|
|
83396
|
+
{ internalType: "uint256", name: "assets_", type: "uint256" },
|
|
83397
|
+
{ internalType: "address", name: "receiver_", type: "address" }
|
|
83398
|
+
],
|
|
83399
|
+
name: "deposit",
|
|
83400
|
+
outputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
|
|
83401
|
+
stateMutability: "nonpayable",
|
|
83402
|
+
type: "function"
|
|
83403
|
+
},
|
|
83404
|
+
{
|
|
83405
|
+
inputs: [
|
|
83406
|
+
{ internalType: "uint256", name: "assets_", type: "uint256" },
|
|
83407
|
+
{ internalType: "address", name: "owner_", type: "address" }
|
|
83408
|
+
],
|
|
83409
|
+
name: "requestWithdraw",
|
|
83410
|
+
outputs: [
|
|
83411
|
+
{
|
|
83412
|
+
internalType: "uint256",
|
|
83413
|
+
name: "escrowedShares_",
|
|
83414
|
+
type: "uint256"
|
|
83415
|
+
}
|
|
83416
|
+
],
|
|
83417
|
+
stateMutability: "nonpayable",
|
|
83418
|
+
type: "function"
|
|
83419
|
+
},
|
|
83420
|
+
{
|
|
83421
|
+
inputs: [
|
|
83422
|
+
{ internalType: "uint256", name: "shares_", type: "uint256" },
|
|
83423
|
+
{ internalType: "address", name: "owner_", type: "address" }
|
|
83424
|
+
],
|
|
83425
|
+
name: "requestRedeem",
|
|
83426
|
+
outputs: [
|
|
83427
|
+
{
|
|
83428
|
+
internalType: "uint256",
|
|
83429
|
+
name: "escrowedShares_",
|
|
83430
|
+
type: "uint256"
|
|
83431
|
+
}
|
|
83432
|
+
],
|
|
83433
|
+
stateMutability: "nonpayable",
|
|
83434
|
+
type: "function"
|
|
83435
|
+
},
|
|
83436
|
+
{
|
|
83437
|
+
inputs: [],
|
|
83438
|
+
name: "asset",
|
|
83439
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83440
|
+
stateMutability: "view",
|
|
83441
|
+
type: "function"
|
|
83442
|
+
},
|
|
83443
|
+
{
|
|
83444
|
+
inputs: [{ internalType: "address", name: "", type: "address" }],
|
|
83445
|
+
name: "balanceOf",
|
|
83446
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
83447
|
+
stateMutability: "view",
|
|
83448
|
+
type: "function"
|
|
83449
|
+
},
|
|
83450
|
+
{
|
|
83451
|
+
inputs: [{ internalType: "uint256", name: "shares_", type: "uint256" }],
|
|
83452
|
+
name: "convertToAssets",
|
|
83453
|
+
outputs: [{ internalType: "uint256", name: "assets_", type: "uint256" }],
|
|
83454
|
+
stateMutability: "view",
|
|
83455
|
+
type: "function"
|
|
83456
|
+
}
|
|
83457
|
+
];
|
|
83458
|
+
|
|
83459
|
+
// src/integrations/syrup/syrup.vault.ts
|
|
83460
|
+
var syrupVaultInterface = new exports_ethers.utils.Interface(syrup_vault_abi_default);
|
|
83461
|
+
var DepositSyrupVaultCalldata = ({ assets, receiver }) => {
|
|
83462
|
+
return syrupVaultInterface.encodeFunctionData("deposit", [assets, receiver]);
|
|
83463
|
+
};
|
|
83464
|
+
var depositSyrupVaultTrx = ({
|
|
83465
|
+
args,
|
|
83466
|
+
syrupVaultAddress
|
|
83467
|
+
}) => {
|
|
83468
|
+
return createCall({
|
|
83469
|
+
operation: 0,
|
|
83470
|
+
to: syrupVaultAddress,
|
|
83471
|
+
value: 0n,
|
|
83472
|
+
data: DepositSyrupVaultCalldata(args)
|
|
83473
|
+
});
|
|
83474
|
+
};
|
|
83475
|
+
var RequestWithdrawSyrupVaultCalldata = ({ assets, owner }) => {
|
|
83476
|
+
return syrupVaultInterface.encodeFunctionData("requestWithdraw", [assets, owner]);
|
|
83477
|
+
};
|
|
83478
|
+
var requestWithdrawSyrupVaultTrx = ({
|
|
83479
|
+
args,
|
|
83480
|
+
syrupVaultAddress
|
|
83481
|
+
}) => {
|
|
83482
|
+
return createCall({
|
|
83483
|
+
operation: 0,
|
|
83484
|
+
to: syrupVaultAddress,
|
|
83485
|
+
value: 0n,
|
|
83486
|
+
data: RequestWithdrawSyrupVaultCalldata(args)
|
|
83487
|
+
});
|
|
83488
|
+
};
|
|
83489
|
+
var RequestRedeemSyrupVaultCalldata = ({ shares, owner }) => {
|
|
83490
|
+
return syrupVaultInterface.encodeFunctionData("requestRedeem", [shares, owner]);
|
|
83491
|
+
};
|
|
83492
|
+
var requestRedeemSyrupVaultTrx = ({
|
|
83493
|
+
args,
|
|
83494
|
+
syrupVaultAddress
|
|
83495
|
+
}) => {
|
|
83496
|
+
return createCall({
|
|
83497
|
+
operation: 0,
|
|
83498
|
+
to: syrupVaultAddress,
|
|
83499
|
+
value: 0n,
|
|
83500
|
+
data: RequestRedeemSyrupVaultCalldata(args)
|
|
83501
|
+
});
|
|
83502
|
+
};
|
|
83391
83503
|
// src/integrations/merkl/merkl.distributor.abi.ts
|
|
83392
83504
|
var merkl_distributor_abi_default = [
|
|
83393
83505
|
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
@@ -86530,6 +86642,8 @@ export {
|
|
|
86530
86642
|
safeTransferFromWithDataErc721Trx,
|
|
86531
86643
|
safeTransferFromErc721Trx,
|
|
86532
86644
|
revokeFromVaultWhitelistTrx,
|
|
86645
|
+
requestWithdrawSyrupVaultTrx,
|
|
86646
|
+
requestRedeemSyrupVaultTrx,
|
|
86533
86647
|
repayToLendleTrx,
|
|
86534
86648
|
repayToAaveV3Trx,
|
|
86535
86649
|
repayMorphoBlueTrx,
|
|
@@ -86556,6 +86670,7 @@ export {
|
|
|
86556
86670
|
execTransactionWithDelay,
|
|
86557
86671
|
execTransactionFromModuleTrx,
|
|
86558
86672
|
depositToLendleTrx,
|
|
86673
|
+
depositSyrupVaultTrx,
|
|
86559
86674
|
depositMorphoVaultTrx,
|
|
86560
86675
|
depositForBurnToCctpTrx,
|
|
86561
86676
|
createVaultProxyTrx,
|
|
@@ -86615,6 +86730,7 @@ export {
|
|
|
86615
86730
|
TransactionWithRoleReturnDataCalldata,
|
|
86616
86731
|
TransactionWithRoleCalldata,
|
|
86617
86732
|
TransactionFromModuleCalldata,
|
|
86733
|
+
syrup_vault_abi_default as SyrupVaultAbi,
|
|
86618
86734
|
SwapExactInputSingleCalldataV4,
|
|
86619
86735
|
SupplyToAaveV3L2Calldata,
|
|
86620
86736
|
SupplyToAaveV3L1Calldata,
|
|
@@ -86642,6 +86758,8 @@ export {
|
|
|
86642
86758
|
RouterSwapExactOutputSingleCalldata,
|
|
86643
86759
|
RouterSwapExactInputSingleCalldata,
|
|
86644
86760
|
RevokeFromVaultWhitelistCalldata,
|
|
86761
|
+
RequestWithdrawSyrupVaultCalldata,
|
|
86762
|
+
RequestRedeemSyrupVaultCalldata,
|
|
86645
86763
|
RepayToLendleCalldata,
|
|
86646
86764
|
RepayToAaveV3L1Calldata,
|
|
86647
86765
|
RepayMorphoBlueCalldata,
|
|
@@ -86666,6 +86784,7 @@ export {
|
|
|
86666
86784
|
erc20_abi_default as Erc20Abi,
|
|
86667
86785
|
erc721_abi_default as ERC721,
|
|
86668
86786
|
DepositToLendleCalldata,
|
|
86787
|
+
DepositSyrupVaultCalldata,
|
|
86669
86788
|
DepositMorphoVaultCalldata,
|
|
86670
86789
|
DepositForBurnCalldata,
|
|
86671
86790
|
DelayedTransactionCalldata,
|
|
@@ -86692,4 +86811,4 @@ export {
|
|
|
86692
86811
|
aave_pool_abi_default as AaveL1PoolAbi
|
|
86693
86812
|
};
|
|
86694
86813
|
|
|
86695
|
-
//# debugId=
|
|
86814
|
+
//# debugId=57555E316C5ADE8064756E2164756E21
|