damm-sdk 1.2.32 → 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 +120 -2
- package/dist/index.cjs.map +5 -3
- package/dist/index.js +120 -2
- 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/dist/index.cjs
CHANGED
|
@@ -37232,7 +37232,7 @@ var require_lib21 = __commonJS((exports2) => {
|
|
|
37232
37232
|
} });
|
|
37233
37233
|
});
|
|
37234
37234
|
|
|
37235
|
-
// node_modules
|
|
37235
|
+
// node_modules/aes-js/index.js
|
|
37236
37236
|
var require_aes_js = __commonJS((exports2, module2) => {
|
|
37237
37237
|
(function(root) {
|
|
37238
37238
|
function checkInt2(value) {
|
|
@@ -44350,6 +44350,8 @@ __export(exports_src, {
|
|
|
44350
44350
|
safeTransferFromWithDataErc721Trx: () => safeTransferFromWithDataErc721Trx,
|
|
44351
44351
|
safeTransferFromErc721Trx: () => safeTransferFromErc721Trx,
|
|
44352
44352
|
revokeFromVaultWhitelistTrx: () => revokeFromVaultWhitelistTrx,
|
|
44353
|
+
requestWithdrawSyrupVaultTrx: () => requestWithdrawSyrupVaultTrx,
|
|
44354
|
+
requestRedeemSyrupVaultTrx: () => requestRedeemSyrupVaultTrx,
|
|
44353
44355
|
repayToLendleTrx: () => repayToLendleTrx,
|
|
44354
44356
|
repayToAaveV3Trx: () => repayToAaveV3Trx,
|
|
44355
44357
|
repayMorphoBlueTrx: () => repayMorphoBlueTrx,
|
|
@@ -44376,6 +44378,7 @@ __export(exports_src, {
|
|
|
44376
44378
|
execTransactionWithDelay: () => execTransactionWithDelay,
|
|
44377
44379
|
execTransactionFromModuleTrx: () => execTransactionFromModuleTrx,
|
|
44378
44380
|
depositToLendleTrx: () => depositToLendleTrx,
|
|
44381
|
+
depositSyrupVaultTrx: () => depositSyrupVaultTrx,
|
|
44379
44382
|
depositMorphoVaultTrx: () => depositMorphoVaultTrx,
|
|
44380
44383
|
depositForBurnToCctpTrx: () => depositForBurnToCctpTrx,
|
|
44381
44384
|
createVaultProxyTrx: () => createVaultProxyTrx,
|
|
@@ -44435,6 +44438,7 @@ __export(exports_src, {
|
|
|
44435
44438
|
TransactionWithRoleReturnDataCalldata: () => TransactionWithRoleReturnDataCalldata,
|
|
44436
44439
|
TransactionWithRoleCalldata: () => TransactionWithRoleCalldata,
|
|
44437
44440
|
TransactionFromModuleCalldata: () => TransactionFromModuleCalldata,
|
|
44441
|
+
SyrupVaultAbi: () => syrup_vault_abi_default,
|
|
44438
44442
|
SwapExactInputSingleCalldataV4: () => SwapExactInputSingleCalldataV4,
|
|
44439
44443
|
SupplyToAaveV3L2Calldata: () => SupplyToAaveV3L2Calldata,
|
|
44440
44444
|
SupplyToAaveV3L1Calldata: () => SupplyToAaveV3L1Calldata,
|
|
@@ -44462,6 +44466,8 @@ __export(exports_src, {
|
|
|
44462
44466
|
RouterSwapExactOutputSingleCalldata: () => RouterSwapExactOutputSingleCalldata,
|
|
44463
44467
|
RouterSwapExactInputSingleCalldata: () => RouterSwapExactInputSingleCalldata,
|
|
44464
44468
|
RevokeFromVaultWhitelistCalldata: () => RevokeFromVaultWhitelistCalldata,
|
|
44469
|
+
RequestWithdrawSyrupVaultCalldata: () => RequestWithdrawSyrupVaultCalldata,
|
|
44470
|
+
RequestRedeemSyrupVaultCalldata: () => RequestRedeemSyrupVaultCalldata,
|
|
44465
44471
|
RepayToLendleCalldata: () => RepayToLendleCalldata,
|
|
44466
44472
|
RepayToAaveV3L1Calldata: () => RepayToAaveV3L1Calldata,
|
|
44467
44473
|
RepayMorphoBlueCalldata: () => RepayMorphoBlueCalldata,
|
|
@@ -44486,6 +44492,7 @@ __export(exports_src, {
|
|
|
44486
44492
|
Erc20Abi: () => erc20_abi_default,
|
|
44487
44493
|
ERC721: () => erc721_abi_default,
|
|
44488
44494
|
DepositToLendleCalldata: () => DepositToLendleCalldata,
|
|
44495
|
+
DepositSyrupVaultCalldata: () => DepositSyrupVaultCalldata,
|
|
44489
44496
|
DepositMorphoVaultCalldata: () => DepositMorphoVaultCalldata,
|
|
44490
44497
|
DepositForBurnCalldata: () => DepositForBurnCalldata,
|
|
44491
44498
|
DelayedTransactionCalldata: () => DelayedTransactionCalldata,
|
|
@@ -83604,6 +83611,117 @@ var withdrawMorphoVaultAssetTrx = ({
|
|
|
83604
83611
|
};
|
|
83605
83612
|
var WithdrawMorphoVaultCalldata = RedeemMorphoVaultCalldata;
|
|
83606
83613
|
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
|
+
};
|
|
83607
83725
|
// src/integrations/merkl/merkl.distributor.abi.ts
|
|
83608
83726
|
var merkl_distributor_abi_default = [
|
|
83609
83727
|
{ inputs: [], stateMutability: "nonpayable", type: "constructor" },
|
|
@@ -86690,4 +86808,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
86690
86808
|
};
|
|
86691
86809
|
};
|
|
86692
86810
|
|
|
86693
|
-
//# debugId=
|
|
86811
|
+
//# debugId=9B8F637C540A59CA64756E2164756E21
|