damm-sdk 1.4.34 → 1.4.35
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 +164 -1
- package/dist/index.cjs.map +5 -3
- package/dist/index.js +23702 -31736
- package/dist/index.js.map +61 -129
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/lido/index.d.ts +2 -0
- package/dist/integrations/lido/index.d.ts.map +1 -0
- package/dist/integrations/lido/lido.abi.d.ts +96 -0
- package/dist/integrations/lido/lido.abi.d.ts.map +1 -0
- package/dist/integrations/lido/lido.d.ts +55 -0
- package/dist/integrations/lido/lido.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/integrations/index.ts +1 -0
- package/src/integrations/lido/index.ts +1 -0
- package/src/integrations/lido/lido.abi.ts +64 -0
- package/src/integrations/lido/lido.ts +186 -0
package/dist/index.cjs
CHANGED
|
@@ -46807,6 +46807,7 @@ var require_utils6 = __commonJS((exports2) => {
|
|
|
46807
46807
|
// src/index.ts
|
|
46808
46808
|
var exports_src = {};
|
|
46809
46809
|
__export(exports_src, {
|
|
46810
|
+
wrapStEthLidoTrx: () => wrapStEthLidoTrx,
|
|
46810
46811
|
wrapEthTrx: () => wrapEthTrx,
|
|
46811
46812
|
wrapEEthEtherFiTrx: () => wrapEEthEtherFiTrx,
|
|
46812
46813
|
wormholeTransferTrx: () => wormholeTransferTrx,
|
|
@@ -46822,6 +46823,7 @@ __export(exports_src, {
|
|
|
46822
46823
|
withdrawCollateralMorphoBlueTrx: () => withdrawCollateralMorphoBlueTrx,
|
|
46823
46824
|
updateTotalAssetsLifespanTrx: () => updateTotalAssetsLifespanTrx,
|
|
46824
46825
|
updateOrderTrx: () => updateOrderTrx,
|
|
46826
|
+
unwrapWstEthLidoTrx: () => unwrapWstEthLidoTrx,
|
|
46825
46827
|
unwrapWethTrx: () => unwrapWethTrx,
|
|
46826
46828
|
unwrapWeEthEtherFiTrx: () => unwrapWeEthEtherFiTrx,
|
|
46827
46829
|
unpauseVaultTrx: () => unpauseVaultTrx,
|
|
@@ -46850,6 +46852,7 @@ __export(exports_src, {
|
|
|
46850
46852
|
supplyToAaveV3Trx: () => supplyToAaveV3Trx,
|
|
46851
46853
|
supplyMorphoBlueTrx: () => supplyMorphoBlueTrx,
|
|
46852
46854
|
supplyCollateralMorphoBlueTrx: () => supplyCollateralMorphoBlueTrx,
|
|
46855
|
+
submitLidoTrx: () => submitLidoTrx,
|
|
46853
46856
|
stakeEthEtherFiTrx: () => stakeEthEtherFiTrx,
|
|
46854
46857
|
slipstreamSwapExactOutputSingleTrx: () => slipstreamSwapExactOutputSingleTrx,
|
|
46855
46858
|
slipstreamSwapExactInputSingleTrx: () => slipstreamSwapExactInputSingleTrx,
|
|
@@ -46876,6 +46879,8 @@ __export(exports_src, {
|
|
|
46876
46879
|
safeTransferFromErc721Trx: () => safeTransferFromErc721Trx,
|
|
46877
46880
|
rewrapRouteSingleAsSafeRouteSingle: () => rewrapRouteSingleAsSafeRouteSingle,
|
|
46878
46881
|
revokeFromVaultWhitelistTrx: () => revokeFromVaultWhitelistTrx,
|
|
46882
|
+
requestWithdrawalsWstEthLidoTrx: () => requestWithdrawalsWstEthLidoTrx,
|
|
46883
|
+
requestWithdrawalsLidoTrx: () => requestWithdrawalsLidoTrx,
|
|
46879
46884
|
requestWithdrawEtherFiTrx: () => requestWithdrawEtherFiTrx,
|
|
46880
46885
|
requestSharesIporFusionTrx: () => requestSharesIporFusionTrx,
|
|
46881
46886
|
requestRedeemSyrupVaultTrx: () => requestRedeemSyrupVaultTrx,
|
|
@@ -46956,6 +46961,7 @@ __export(exports_src, {
|
|
|
46956
46961
|
createOrderTrx: () => createOrderTrx,
|
|
46957
46962
|
createCall: () => createCall,
|
|
46958
46963
|
closeVaultTrx: () => closeVaultTrx,
|
|
46964
|
+
claimWithdrawalsLidoTrx: () => claimWithdrawalsLidoTrx,
|
|
46959
46965
|
claimWithdrawEtherFiTrx: () => claimWithdrawEtherFiTrx,
|
|
46960
46966
|
claimRedeemOriginArmTrx: () => claimRedeemOriginArmTrx,
|
|
46961
46967
|
claimFundingFeesTrx: () => claimFundingFeesTrx,
|
|
@@ -46979,6 +46985,7 @@ __export(exports_src, {
|
|
|
46979
46985
|
ZodiacRolesAbi: () => zodiac_roles_abi_default,
|
|
46980
46986
|
ZodiacDelayAbi: () => zodiac_delay_abi_default,
|
|
46981
46987
|
ZERO_ADDRESS: () => ZERO_ADDRESS,
|
|
46988
|
+
WrapStEthLidoCalldata: () => WrapStEthLidoCalldata,
|
|
46982
46989
|
WrapEthCalldata: () => WrapEthCalldata,
|
|
46983
46990
|
WrapEEthEtherFiCalldata: () => WrapEEthEtherFiCalldata,
|
|
46984
46991
|
WormholeTransferCalldata: () => WormholeTransferCalldata,
|
|
@@ -47005,6 +47012,7 @@ __export(exports_src, {
|
|
|
47005
47012
|
WORMHOLESCAN_API_MAINNET: () => WORMHOLESCAN_API_MAINNET,
|
|
47006
47013
|
UpdateTotalAssetsLifespanCalldata: () => UpdateTotalAssetsLifespanCalldata,
|
|
47007
47014
|
UpdateOrderCalldata: () => UpdateOrderCalldata,
|
|
47015
|
+
UnwrapWstEthLidoCalldata: () => UnwrapWstEthLidoCalldata,
|
|
47008
47016
|
UnwrapWethCalldata: () => UnwrapWethCalldata,
|
|
47009
47017
|
UnwrapWeEthEtherFiCalldata: () => UnwrapWeEthEtherFiCalldata,
|
|
47010
47018
|
UnpauseVaultCalldata: () => UnpauseVaultCalldata,
|
|
@@ -47043,6 +47051,7 @@ __export(exports_src, {
|
|
|
47043
47051
|
SupplyToAaveV3L1Calldata: () => SupplyToAaveV3L1Calldata,
|
|
47044
47052
|
SupplyMorphoBlueCalldata: () => SupplyMorphoBlueCalldata,
|
|
47045
47053
|
SupplyCollateralMorphoBlueCalldata: () => SupplyCollateralMorphoBlueCalldata,
|
|
47054
|
+
SubmitLidoCalldata: () => SubmitLidoCalldata,
|
|
47046
47055
|
StakeEthEtherFiCalldata: () => StakeEthEtherFiCalldata,
|
|
47047
47056
|
SlipstreamRouterAbi: () => swap_router_abi_default2,
|
|
47048
47057
|
SlipstreamPositionManagerAbi: () => position_manager_abi_default3,
|
|
@@ -47068,6 +47077,8 @@ __export(exports_src, {
|
|
|
47068
47077
|
RouterSwapExactOutputSingleCalldata: () => RouterSwapExactOutputSingleCalldata,
|
|
47069
47078
|
RouterSwapExactInputSingleCalldata: () => RouterSwapExactInputSingleCalldata,
|
|
47070
47079
|
RevokeFromVaultWhitelistCalldata: () => RevokeFromVaultWhitelistCalldata,
|
|
47080
|
+
RequestWithdrawalsWstEthLidoCalldata: () => RequestWithdrawalsWstEthLidoCalldata,
|
|
47081
|
+
RequestWithdrawalsLidoCalldata: () => RequestWithdrawalsLidoCalldata,
|
|
47071
47082
|
RequestWithdrawEtherFiCalldata: () => RequestWithdrawEtherFiCalldata,
|
|
47072
47083
|
RequestSharesIporFusionCalldata: () => RequestSharesIporFusionCalldata,
|
|
47073
47084
|
RequestRedeemSyrupVaultCalldata: () => RequestRedeemSyrupVaultCalldata,
|
|
@@ -47130,6 +47141,7 @@ __export(exports_src, {
|
|
|
47130
47141
|
CreateOrderCalldata: () => CreateOrderCalldata,
|
|
47131
47142
|
Commands: () => Commands,
|
|
47132
47143
|
CloseVaultCalldata: () => CloseVaultCalldata,
|
|
47144
|
+
ClaimWithdrawalsLidoCalldata: () => ClaimWithdrawalsLidoCalldata,
|
|
47133
47145
|
ClaimWithdrawEtherFiCalldata: () => ClaimWithdrawEtherFiCalldata,
|
|
47134
47146
|
ClaimRedeemOriginArmCalldata: () => ClaimRedeemOriginArmCalldata,
|
|
47135
47147
|
ClaimFundingFeesCalldata: () => ClaimFundingFeesCalldata,
|
|
@@ -103750,6 +103762,157 @@ var claimWithdrawEtherFiTrx = ({
|
|
|
103750
103762
|
data: ClaimWithdrawEtherFiCalldata(args)
|
|
103751
103763
|
});
|
|
103752
103764
|
};
|
|
103765
|
+
// src/integrations/lido/lido.abi.ts
|
|
103766
|
+
var LidoStEthAbi = [
|
|
103767
|
+
{
|
|
103768
|
+
inputs: [{ internalType: "address", name: "_referral", type: "address" }],
|
|
103769
|
+
name: "submit",
|
|
103770
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
103771
|
+
stateMutability: "payable",
|
|
103772
|
+
type: "function"
|
|
103773
|
+
}
|
|
103774
|
+
];
|
|
103775
|
+
var LidoWstEthAbi = [
|
|
103776
|
+
{
|
|
103777
|
+
inputs: [{ internalType: "uint256", name: "_stETHAmount", type: "uint256" }],
|
|
103778
|
+
name: "wrap",
|
|
103779
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
103780
|
+
stateMutability: "nonpayable",
|
|
103781
|
+
type: "function"
|
|
103782
|
+
},
|
|
103783
|
+
{
|
|
103784
|
+
inputs: [{ internalType: "uint256", name: "_wstETHAmount", type: "uint256" }],
|
|
103785
|
+
name: "unwrap",
|
|
103786
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
103787
|
+
stateMutability: "nonpayable",
|
|
103788
|
+
type: "function"
|
|
103789
|
+
}
|
|
103790
|
+
];
|
|
103791
|
+
var LidoWithdrawalQueueAbi = [
|
|
103792
|
+
{
|
|
103793
|
+
inputs: [
|
|
103794
|
+
{ internalType: "uint256[]", name: "_amounts", type: "uint256[]" },
|
|
103795
|
+
{ internalType: "address", name: "_owner", type: "address" }
|
|
103796
|
+
],
|
|
103797
|
+
name: "requestWithdrawals",
|
|
103798
|
+
outputs: [{ internalType: "uint256[]", name: "requestIds", type: "uint256[]" }],
|
|
103799
|
+
stateMutability: "nonpayable",
|
|
103800
|
+
type: "function"
|
|
103801
|
+
},
|
|
103802
|
+
{
|
|
103803
|
+
inputs: [
|
|
103804
|
+
{ internalType: "uint256[]", name: "_amounts", type: "uint256[]" },
|
|
103805
|
+
{ internalType: "address", name: "_owner", type: "address" }
|
|
103806
|
+
],
|
|
103807
|
+
name: "requestWithdrawalsWstETH",
|
|
103808
|
+
outputs: [{ internalType: "uint256[]", name: "requestIds", type: "uint256[]" }],
|
|
103809
|
+
stateMutability: "nonpayable",
|
|
103810
|
+
type: "function"
|
|
103811
|
+
},
|
|
103812
|
+
{
|
|
103813
|
+
inputs: [
|
|
103814
|
+
{ internalType: "uint256[]", name: "_requestIds", type: "uint256[]" },
|
|
103815
|
+
{ internalType: "uint256[]", name: "_hints", type: "uint256[]" }
|
|
103816
|
+
],
|
|
103817
|
+
name: "claimWithdrawals",
|
|
103818
|
+
outputs: [],
|
|
103819
|
+
stateMutability: "nonpayable",
|
|
103820
|
+
type: "function"
|
|
103821
|
+
}
|
|
103822
|
+
];
|
|
103823
|
+
|
|
103824
|
+
// src/integrations/lido/lido.ts
|
|
103825
|
+
var stEthInterface = new exports_ethers.utils.Interface(LidoStEthAbi);
|
|
103826
|
+
var wstEthInterface = new exports_ethers.utils.Interface(LidoWstEthAbi);
|
|
103827
|
+
var withdrawalQueueInterface = new exports_ethers.utils.Interface(LidoWithdrawalQueueAbi);
|
|
103828
|
+
var SubmitLidoCalldata = ({ referral }) => {
|
|
103829
|
+
return stEthInterface.encodeFunctionData("submit", [referral]);
|
|
103830
|
+
};
|
|
103831
|
+
var submitLidoTrx = ({
|
|
103832
|
+
args,
|
|
103833
|
+
stEthAddress,
|
|
103834
|
+
value
|
|
103835
|
+
}) => {
|
|
103836
|
+
return createCall({
|
|
103837
|
+
operation: 0,
|
|
103838
|
+
to: stEthAddress,
|
|
103839
|
+
value,
|
|
103840
|
+
data: SubmitLidoCalldata(args)
|
|
103841
|
+
});
|
|
103842
|
+
};
|
|
103843
|
+
var WrapStEthLidoCalldata = ({ stEthAmount }) => {
|
|
103844
|
+
return wstEthInterface.encodeFunctionData("wrap", [stEthAmount]);
|
|
103845
|
+
};
|
|
103846
|
+
var wrapStEthLidoTrx = ({
|
|
103847
|
+
args,
|
|
103848
|
+
wstEthAddress
|
|
103849
|
+
}) => {
|
|
103850
|
+
return createCall({
|
|
103851
|
+
operation: 0,
|
|
103852
|
+
to: wstEthAddress,
|
|
103853
|
+
value: 0n,
|
|
103854
|
+
data: WrapStEthLidoCalldata(args)
|
|
103855
|
+
});
|
|
103856
|
+
};
|
|
103857
|
+
var UnwrapWstEthLidoCalldata = ({ wstEthAmount }) => {
|
|
103858
|
+
return wstEthInterface.encodeFunctionData("unwrap", [wstEthAmount]);
|
|
103859
|
+
};
|
|
103860
|
+
var unwrapWstEthLidoTrx = ({
|
|
103861
|
+
args,
|
|
103862
|
+
wstEthAddress
|
|
103863
|
+
}) => {
|
|
103864
|
+
return createCall({
|
|
103865
|
+
operation: 0,
|
|
103866
|
+
to: wstEthAddress,
|
|
103867
|
+
value: 0n,
|
|
103868
|
+
data: UnwrapWstEthLidoCalldata(args)
|
|
103869
|
+
});
|
|
103870
|
+
};
|
|
103871
|
+
var RequestWithdrawalsLidoCalldata = ({ amounts, owner }) => {
|
|
103872
|
+
return withdrawalQueueInterface.encodeFunctionData("requestWithdrawals", [amounts, owner]);
|
|
103873
|
+
};
|
|
103874
|
+
var requestWithdrawalsLidoTrx = ({
|
|
103875
|
+
args,
|
|
103876
|
+
withdrawalQueueAddress
|
|
103877
|
+
}) => {
|
|
103878
|
+
return createCall({
|
|
103879
|
+
operation: 0,
|
|
103880
|
+
to: withdrawalQueueAddress,
|
|
103881
|
+
value: 0n,
|
|
103882
|
+
data: RequestWithdrawalsLidoCalldata(args)
|
|
103883
|
+
});
|
|
103884
|
+
};
|
|
103885
|
+
var RequestWithdrawalsWstEthLidoCalldata = ({
|
|
103886
|
+
amounts,
|
|
103887
|
+
owner
|
|
103888
|
+
}) => {
|
|
103889
|
+
return withdrawalQueueInterface.encodeFunctionData("requestWithdrawalsWstETH", [amounts, owner]);
|
|
103890
|
+
};
|
|
103891
|
+
var requestWithdrawalsWstEthLidoTrx = ({
|
|
103892
|
+
args,
|
|
103893
|
+
withdrawalQueueAddress
|
|
103894
|
+
}) => {
|
|
103895
|
+
return createCall({
|
|
103896
|
+
operation: 0,
|
|
103897
|
+
to: withdrawalQueueAddress,
|
|
103898
|
+
value: 0n,
|
|
103899
|
+
data: RequestWithdrawalsWstEthLidoCalldata(args)
|
|
103900
|
+
});
|
|
103901
|
+
};
|
|
103902
|
+
var ClaimWithdrawalsLidoCalldata = ({ requestIds, hints }) => {
|
|
103903
|
+
return withdrawalQueueInterface.encodeFunctionData("claimWithdrawals", [requestIds, hints]);
|
|
103904
|
+
};
|
|
103905
|
+
var claimWithdrawalsLidoTrx = ({
|
|
103906
|
+
args,
|
|
103907
|
+
withdrawalQueueAddress
|
|
103908
|
+
}) => {
|
|
103909
|
+
return createCall({
|
|
103910
|
+
operation: 0,
|
|
103911
|
+
to: withdrawalQueueAddress,
|
|
103912
|
+
value: 0n,
|
|
103913
|
+
data: ClaimWithdrawalsLidoCalldata(args)
|
|
103914
|
+
});
|
|
103915
|
+
};
|
|
103753
103916
|
// src/integrations/syrup/syrup.vault.abi.ts
|
|
103754
103917
|
var syrup_vault_abi_default = [
|
|
103755
103918
|
{
|
|
@@ -104758,4 +104921,4 @@ var simulateOrThrow = async (env2) => {
|
|
|
104758
104921
|
};
|
|
104759
104922
|
};
|
|
104760
104923
|
|
|
104761
|
-
//# debugId=
|
|
104924
|
+
//# debugId=06931E1BB2C2228C64756E2164756E21
|