@gearbox-protocol/sdk 18.2.0-next.14 → 18.2.0-next.15

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.
Files changed (51) hide show
  1. package/dist/cjs/onchain/index.js +18 -0
  2. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +113 -0
  3. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +258 -0
  4. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +161 -0
  5. package/dist/cjs/onchain/market/adapters/abi/adapters/index.js +6 -0
  6. package/dist/cjs/onchain/market/adapters/abi/index.js +13 -0
  7. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +39 -0
  8. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +230 -0
  9. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +29 -0
  10. package/dist/cjs/onchain/market/adapters/abi/treehouse/index.js +7 -0
  11. package/dist/cjs/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +72 -0
  12. package/dist/cjs/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +117 -0
  13. package/dist/cjs/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +61 -0
  14. package/dist/cjs/onchain/market/adapters/contracts/index.js +6 -0
  15. package/dist/cjs/onchain/market/adapters/createAdapter.js +6 -0
  16. package/dist/cjs/onchain/market/adapters/index.js +18 -0
  17. package/dist/cjs/onchain/market/index.js +18 -0
  18. package/dist/esm/onchain/index.js +10 -1
  19. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +112 -0
  20. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +257 -0
  21. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +160 -0
  22. package/dist/esm/onchain/market/adapters/abi/adapters/index.js +4 -1
  23. package/dist/esm/onchain/market/adapters/abi/index.js +8 -1
  24. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +38 -0
  25. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +229 -0
  26. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +28 -0
  27. package/dist/esm/onchain/market/adapters/abi/treehouse/index.js +4 -0
  28. package/dist/esm/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +71 -0
  29. package/dist/esm/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +116 -0
  30. package/dist/esm/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +60 -0
  31. package/dist/esm/onchain/market/adapters/contracts/index.js +4 -1
  32. package/dist/esm/onchain/market/adapters/createAdapter.js +6 -0
  33. package/dist/esm/onchain/market/adapters/index.js +10 -1
  34. package/dist/esm/onchain/market/index.js +10 -1
  35. package/dist/types/onchain/index.d.ts +10 -1
  36. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.d.ts +101 -0
  37. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.d.ts +237 -0
  38. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.d.ts +146 -0
  39. package/dist/types/onchain/market/adapters/abi/adapters/index.d.ts +4 -1
  40. package/dist/types/onchain/market/adapters/abi/index.d.ts +8 -1
  41. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.d.ts +33 -0
  42. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.d.ts +207 -0
  43. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRouter.d.ts +27 -0
  44. package/dist/types/onchain/market/adapters/abi/treehouse/index.d.ts +4 -0
  45. package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts +156 -0
  46. package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.ts +481 -0
  47. package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.ts +193 -0
  48. package/dist/types/onchain/market/adapters/contracts/index.d.ts +4 -1
  49. package/dist/types/onchain/market/adapters/index.d.ts +10 -1
  50. package/dist/types/onchain/market/index.d.ts +10 -1
  51. package/package.json +1 -1
@@ -0,0 +1,146 @@
1
+ //#region src/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.d.ts
2
+ export declare const iTreehouseRouterAdapterAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "allowedAssets";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "address[]";
9
+ readonly internalType: "address[]";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "contractType";
15
+ readonly inputs: readonly [];
16
+ readonly outputs: readonly [{
17
+ readonly name: "";
18
+ readonly type: "bytes32";
19
+ readonly internalType: "bytes32";
20
+ }];
21
+ readonly stateMutability: "view";
22
+ }, {
23
+ readonly type: "function";
24
+ readonly name: "creditManager";
25
+ readonly inputs: readonly [];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "address";
29
+ readonly internalType: "address";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ }, {
33
+ readonly type: "function";
34
+ readonly name: "deposit";
35
+ readonly inputs: readonly [{
36
+ readonly name: "token";
37
+ readonly type: "address";
38
+ readonly internalType: "address";
39
+ }, {
40
+ readonly name: "amount";
41
+ readonly type: "uint256";
42
+ readonly internalType: "uint256";
43
+ }];
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "bool";
47
+ readonly internalType: "bool";
48
+ }];
49
+ readonly stateMutability: "nonpayable";
50
+ }, {
51
+ readonly type: "function";
52
+ readonly name: "depositDiff";
53
+ readonly inputs: readonly [{
54
+ readonly name: "token";
55
+ readonly type: "address";
56
+ readonly internalType: "address";
57
+ }, {
58
+ readonly name: "leftoverAmount";
59
+ readonly type: "uint256";
60
+ readonly internalType: "uint256";
61
+ }];
62
+ readonly outputs: readonly [{
63
+ readonly name: "";
64
+ readonly type: "bool";
65
+ readonly internalType: "bool";
66
+ }];
67
+ readonly stateMutability: "nonpayable";
68
+ }, {
69
+ readonly type: "function";
70
+ readonly name: "isAssetAllowed";
71
+ readonly inputs: readonly [{
72
+ readonly name: "asset";
73
+ readonly type: "address";
74
+ readonly internalType: "address";
75
+ }];
76
+ readonly outputs: readonly [{
77
+ readonly name: "";
78
+ readonly type: "bool";
79
+ readonly internalType: "bool";
80
+ }];
81
+ readonly stateMutability: "view";
82
+ }, {
83
+ readonly type: "function";
84
+ readonly name: "serialize";
85
+ readonly inputs: readonly [];
86
+ readonly outputs: readonly [{
87
+ readonly name: "serializedData";
88
+ readonly type: "bytes";
89
+ readonly internalType: "bytes";
90
+ }];
91
+ readonly stateMutability: "view";
92
+ }, {
93
+ readonly type: "function";
94
+ readonly name: "setAssetStatusBatch";
95
+ readonly inputs: readonly [{
96
+ readonly name: "assets";
97
+ readonly type: "address[]";
98
+ readonly internalType: "address[]";
99
+ }, {
100
+ readonly name: "allowed";
101
+ readonly type: "bool[]";
102
+ readonly internalType: "bool[]";
103
+ }];
104
+ readonly outputs: readonly [];
105
+ readonly stateMutability: "nonpayable";
106
+ }, {
107
+ readonly type: "function";
108
+ readonly name: "targetContract";
109
+ readonly inputs: readonly [];
110
+ readonly outputs: readonly [{
111
+ readonly name: "";
112
+ readonly type: "address";
113
+ readonly internalType: "address";
114
+ }];
115
+ readonly stateMutability: "view";
116
+ }, {
117
+ readonly type: "function";
118
+ readonly name: "version";
119
+ readonly inputs: readonly [];
120
+ readonly outputs: readonly [{
121
+ readonly name: "";
122
+ readonly type: "uint256";
123
+ readonly internalType: "uint256";
124
+ }];
125
+ readonly stateMutability: "view";
126
+ }, {
127
+ readonly type: "event";
128
+ readonly name: "SetAssetStatus";
129
+ readonly inputs: readonly [{
130
+ readonly name: "asset";
131
+ readonly type: "address";
132
+ readonly indexed: true;
133
+ readonly internalType: "address";
134
+ }, {
135
+ readonly name: "allowed";
136
+ readonly type: "bool";
137
+ readonly indexed: false;
138
+ readonly internalType: "bool";
139
+ }];
140
+ readonly anonymous: false;
141
+ }, {
142
+ readonly type: "error";
143
+ readonly name: "InvalidAssetException";
144
+ readonly inputs: readonly [];
145
+ }];
146
+ //#endregion
@@ -26,6 +26,9 @@ import { iSecuritizeOnRampAdapterV310Abi } from "./iSecuritizeOnRampAdapterV310.
26
26
  import { iSecuritizeRedemptionGatewayAdapterV311Abi } from "./iSecuritizeRedemptionGatewayAdapterV311.js";
27
27
  import { iStakingRewardsAdapterAbi } from "./iStakingRewardsAdapter.js";
28
28
  import { iTraderJoeRouterAdapterAbi } from "./iTraderJoeRouterAdapter.js";
29
+ import { iTreehouseFastlaneAdapterAbi } from "./iTreehouseFastlaneAdapter.js";
30
+ import { iTreehouseRedemptionGatewayAdapterAbi } from "./iTreehouseRedemptionGatewayAdapter.js";
31
+ import { iTreehouseRouterAdapterAbi } from "./iTreehouseRouterAdapter.js";
29
32
  import { iUniswapV2AdapterAbi } from "./iUniswapV2Adapter.js";
30
33
  import { iUniswapV3AdapterAbi } from "./iUniswapV3Adapter.js";
31
34
  import { iUniswapV4AdapterAbi, iUniswapV4GatewayAbi } from "./iUniswapV4Adapter.js";
@@ -33,4 +36,4 @@ import { iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi } from "./iUpshiftVaul
33
36
  import { iVelodromeV2RouterAdapterAbi } from "./iVelodromeV2RouterAdapter.js";
34
37
  import { iwstEthv1AdapterAbi } from "./iwstEthv1Adapter.js";
35
38
  import { mellowDvvAdapterAbi } from "./mellowDvvAdapter.js";
36
- export { erc4626ReferralAdapterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAdapterAbi, iCamelotV3AdapterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAdapterAbi, iFluidDexAdapterAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAdapterAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAdapterAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iStakingRewardsAdapterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAdapterAbi, iwstEthv1AdapterAbi, mellowDvvAdapterAbi };
39
+ export { erc4626ReferralAdapterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAdapterAbi, iCamelotV3AdapterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAdapterAbi, iFluidDexAdapterAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAdapterAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAdapterAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iStakingRewardsAdapterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAdapterAbi, iwstEthv1AdapterAbi, mellowDvvAdapterAbi };
@@ -27,6 +27,9 @@ import { iSecuritizeOnRampAdapterV310Abi } from "./adapters/iSecuritizeOnRampAda
27
27
  import { iSecuritizeRedemptionGatewayAdapterV311Abi } from "./adapters/iSecuritizeRedemptionGatewayAdapterV311.js";
28
28
  import { iStakingRewardsAdapterAbi } from "./adapters/iStakingRewardsAdapter.js";
29
29
  import { iTraderJoeRouterAdapterAbi } from "./adapters/iTraderJoeRouterAdapter.js";
30
+ import { iTreehouseFastlaneAdapterAbi } from "./adapters/iTreehouseFastlaneAdapter.js";
31
+ import { iTreehouseRedemptionGatewayAdapterAbi } from "./adapters/iTreehouseRedemptionGatewayAdapter.js";
32
+ import { iTreehouseRouterAdapterAbi } from "./adapters/iTreehouseRouterAdapter.js";
30
33
  import { iUniswapV2AdapterAbi } from "./adapters/iUniswapV2Adapter.js";
31
34
  import { iUniswapV3AdapterAbi } from "./adapters/iUniswapV3Adapter.js";
32
35
  import { iUniswapV4AdapterAbi, iUniswapV4GatewayAbi } from "./adapters/iUniswapV4Adapter.js";
@@ -43,5 +46,9 @@ import { iSecuritizeOnRampAbi } from "./securitize/iSecuritizeOnRamp.js";
43
46
  import { iSecuritizeRedemptionGatewayV311Abi } from "./securitize/iSecuritizeRedemptionGatewayV311.js";
44
47
  import "./securitize/index.js";
45
48
  import { iBalancerV3RouterAbi, iBalancerV3WrapperAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3RouterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iDaiUsdsAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iInfinifiGatewayAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iMellowClaimerAbi, iMellowWrapperAbi, iMidasIssuanceVaultV310Abi, iPendleRouterAbi, iStakingRewardsAbi, iTraderJoeRouterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iVelodromeV2RouterAbi, iwstETHAbi, lidoV1_WETHGatewayAbi } from "./targetContractAbi.js";
49
+ import { iTreehouseFastlaneAbi } from "./treehouse/iTreehouseFastlane.js";
50
+ import { iTreehouseRedemptionGatewayAbi } from "./treehouse/iTreehouseRedemptionGateway.js";
51
+ import { iTreehouseRouterAbi } from "./treehouse/iTreehouseRouter.js";
52
+ import "./treehouse/index.js";
46
53
  import { getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, parseAdapterAction, parseAdapterDeployParams } from "./utils.js";
47
- export { adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, erc4626ReferralAdapterAbi, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, parseAdapterAction, parseAdapterDeployParams };
54
+ export { adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, erc4626ReferralAdapterAbi, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, parseAdapterAction, parseAdapterDeployParams };
@@ -0,0 +1,33 @@
1
+ //#region src/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.d.ts
2
+ export declare const iTreehouseFastlaneAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "TASSET";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "address";
9
+ readonly internalType: "address";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "UNDERLYING";
15
+ readonly inputs: readonly [];
16
+ readonly outputs: readonly [{
17
+ readonly name: "";
18
+ readonly type: "address";
19
+ readonly internalType: "address";
20
+ }];
21
+ readonly stateMutability: "view";
22
+ }, {
23
+ readonly type: "function";
24
+ readonly name: "redeemAndFinalize";
25
+ readonly inputs: readonly [{
26
+ readonly name: "_shares";
27
+ readonly type: "uint96";
28
+ readonly internalType: "uint96";
29
+ }];
30
+ readonly outputs: readonly [];
31
+ readonly stateMutability: "nonpayable";
32
+ }];
33
+ //#endregion
@@ -0,0 +1,207 @@
1
+ //#region src/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.d.ts
2
+ export declare const iTreehouseRedemptionGatewayAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "contractType";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "bytes32";
9
+ readonly internalType: "bytes32";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "finalizeRedeem";
15
+ readonly inputs: readonly [{
16
+ readonly name: "redeemer";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }];
20
+ readonly outputs: readonly [];
21
+ readonly stateMutability: "nonpayable";
22
+ }, {
23
+ readonly type: "function";
24
+ readonly name: "masterRedeemer";
25
+ readonly inputs: readonly [];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "address";
29
+ readonly internalType: "address";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ }, {
33
+ readonly type: "function";
34
+ readonly name: "pendingAndClaimableAmounts";
35
+ readonly inputs: readonly [{
36
+ readonly name: "account";
37
+ readonly type: "address";
38
+ readonly internalType: "address";
39
+ }];
40
+ readonly outputs: readonly [{
41
+ readonly name: "pendingAmount";
42
+ readonly type: "uint256";
43
+ readonly internalType: "uint256";
44
+ }, {
45
+ readonly name: "claimableAmount";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ }, {
51
+ readonly type: "function";
52
+ readonly name: "pendingRedeemers";
53
+ readonly inputs: readonly [{
54
+ readonly name: "account";
55
+ readonly type: "address";
56
+ readonly internalType: "address";
57
+ }];
58
+ readonly outputs: readonly [{
59
+ readonly name: "redeemers";
60
+ readonly type: "address[]";
61
+ readonly internalType: "address[]";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ }, {
65
+ readonly type: "function";
66
+ readonly name: "phantomToken";
67
+ readonly inputs: readonly [];
68
+ readonly outputs: readonly [{
69
+ readonly name: "";
70
+ readonly type: "address";
71
+ readonly internalType: "address";
72
+ }];
73
+ readonly stateMutability: "view";
74
+ }, {
75
+ readonly type: "function";
76
+ readonly name: "redeem";
77
+ readonly inputs: readonly [{
78
+ readonly name: "shares";
79
+ readonly type: "uint256";
80
+ readonly internalType: "uint256";
81
+ }, {
82
+ readonly name: "extraData";
83
+ readonly type: "bytes";
84
+ readonly internalType: "bytes";
85
+ }];
86
+ readonly outputs: readonly [];
87
+ readonly stateMutability: "nonpayable";
88
+ }, {
89
+ readonly type: "function";
90
+ readonly name: "redeemers";
91
+ readonly inputs: readonly [{
92
+ readonly name: "account";
93
+ readonly type: "address";
94
+ readonly internalType: "address";
95
+ }];
96
+ readonly outputs: readonly [{
97
+ readonly name: "redeemers";
98
+ readonly type: "address[]";
99
+ readonly internalType: "address[]";
100
+ }];
101
+ readonly stateMutability: "view";
102
+ }, {
103
+ readonly type: "function";
104
+ readonly name: "redemptionLogger";
105
+ readonly inputs: readonly [];
106
+ readonly outputs: readonly [{
107
+ readonly name: "";
108
+ readonly type: "address";
109
+ readonly internalType: "address";
110
+ }];
111
+ readonly stateMutability: "view";
112
+ }, {
113
+ readonly type: "function";
114
+ readonly name: "redemptionV3";
115
+ readonly inputs: readonly [];
116
+ readonly outputs: readonly [{
117
+ readonly name: "";
118
+ readonly type: "address";
119
+ readonly internalType: "address";
120
+ }];
121
+ readonly stateMutability: "view";
122
+ }, {
123
+ readonly type: "function";
124
+ readonly name: "rescueToken";
125
+ readonly inputs: readonly [{
126
+ readonly name: "redeemer";
127
+ readonly type: "address";
128
+ readonly internalType: "address";
129
+ }, {
130
+ readonly name: "token";
131
+ readonly type: "address";
132
+ readonly internalType: "address";
133
+ }];
134
+ readonly outputs: readonly [];
135
+ readonly stateMutability: "nonpayable";
136
+ }, {
137
+ readonly type: "function";
138
+ readonly name: "tAsset";
139
+ readonly inputs: readonly [];
140
+ readonly outputs: readonly [{
141
+ readonly name: "";
142
+ readonly type: "address";
143
+ readonly internalType: "address";
144
+ }];
145
+ readonly stateMutability: "view";
146
+ }, {
147
+ readonly type: "function";
148
+ readonly name: "transferMaster";
149
+ readonly inputs: readonly [];
150
+ readonly outputs: readonly [{
151
+ readonly name: "";
152
+ readonly type: "address";
153
+ readonly internalType: "address";
154
+ }];
155
+ readonly stateMutability: "view";
156
+ }, {
157
+ readonly type: "function";
158
+ readonly name: "transferRedeemer";
159
+ readonly inputs: readonly [{
160
+ readonly name: "redeemer";
161
+ readonly type: "address";
162
+ readonly internalType: "address";
163
+ }, {
164
+ readonly name: "newAccount";
165
+ readonly type: "address";
166
+ readonly internalType: "address";
167
+ }];
168
+ readonly outputs: readonly [];
169
+ readonly stateMutability: "nonpayable";
170
+ }, {
171
+ readonly type: "function";
172
+ readonly name: "vaultUnderlying";
173
+ readonly inputs: readonly [];
174
+ readonly outputs: readonly [{
175
+ readonly name: "";
176
+ readonly type: "address";
177
+ readonly internalType: "address";
178
+ }];
179
+ readonly stateMutability: "view";
180
+ }, {
181
+ readonly type: "function";
182
+ readonly name: "version";
183
+ readonly inputs: readonly [];
184
+ readonly outputs: readonly [{
185
+ readonly name: "";
186
+ readonly type: "uint256";
187
+ readonly internalType: "uint256";
188
+ }];
189
+ readonly stateMutability: "view";
190
+ }, {
191
+ readonly type: "error";
192
+ readonly name: "MaxPendingRedeemersPerAccountException";
193
+ readonly inputs: readonly [];
194
+ }, {
195
+ readonly type: "error";
196
+ readonly name: "RedeemerNotOwnedByAccountException";
197
+ readonly inputs: readonly [];
198
+ }, {
199
+ readonly type: "error";
200
+ readonly name: "RedeemerStillPendingException";
201
+ readonly inputs: readonly [];
202
+ }, {
203
+ readonly type: "error";
204
+ readonly name: "RedeemerTransferNotAllowedException";
205
+ readonly inputs: readonly [];
206
+ }];
207
+ //#endregion
@@ -0,0 +1,27 @@
1
+ //#region src/onchain/market/adapters/abi/treehouse/iTreehouseRouter.d.ts
2
+ export declare const iTreehouseRouterAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "TASSET";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "address";
9
+ readonly internalType: "address";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }, {
13
+ readonly type: "function";
14
+ readonly name: "deposit";
15
+ readonly inputs: readonly [{
16
+ readonly name: "token";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }, {
20
+ readonly name: "amount";
21
+ readonly type: "uint256";
22
+ readonly internalType: "uint256";
23
+ }];
24
+ readonly outputs: readonly [];
25
+ readonly stateMutability: "nonpayable";
26
+ }];
27
+ //#endregion
@@ -0,0 +1,4 @@
1
+ import { iTreehouseFastlaneAbi } from "./iTreehouseFastlane.js";
2
+ import { iTreehouseRedemptionGatewayAbi } from "./iTreehouseRedemptionGateway.js";
3
+ import { iTreehouseRouterAbi } from "./iTreehouseRouter.js";
4
+ export { iTreehouseFastlaneAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRouterAbi };
@@ -0,0 +1,156 @@
1
+ import { AssetsMap } from "../../../utils/AssetsMap.js";
2
+ import { AbstractAdapterContract, ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
3
+ import { OnchainSDK } from "../../../OnchainSDK.js";
4
+ import "../../../utils/index.js";
5
+ import { Address, DecodeFunctionDataReturnType } from "viem";
6
+ //#region src/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts
7
+ declare const abi: readonly [{
8
+ readonly type: "function";
9
+ readonly name: "contractType";
10
+ readonly inputs: readonly [];
11
+ readonly outputs: readonly [{
12
+ readonly name: "";
13
+ readonly type: "bytes32";
14
+ readonly internalType: "bytes32";
15
+ }];
16
+ readonly stateMutability: "view";
17
+ }, {
18
+ readonly type: "function";
19
+ readonly name: "creditManager";
20
+ readonly inputs: readonly [];
21
+ readonly outputs: readonly [{
22
+ readonly name: "";
23
+ readonly type: "address";
24
+ readonly internalType: "address";
25
+ }];
26
+ readonly stateMutability: "view";
27
+ }, {
28
+ readonly type: "function";
29
+ readonly name: "redeemAndFinalize";
30
+ readonly inputs: readonly [{
31
+ readonly name: "shares";
32
+ readonly type: "uint256";
33
+ readonly internalType: "uint256";
34
+ }];
35
+ readonly outputs: readonly [{
36
+ readonly name: "";
37
+ readonly type: "bool";
38
+ readonly internalType: "bool";
39
+ }];
40
+ readonly stateMutability: "nonpayable";
41
+ }, {
42
+ readonly type: "function";
43
+ readonly name: "redeemAndFinalizeDiff";
44
+ readonly inputs: readonly [{
45
+ readonly name: "leftoverShares";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }];
49
+ readonly outputs: readonly [{
50
+ readonly name: "";
51
+ readonly type: "bool";
52
+ readonly internalType: "bool";
53
+ }];
54
+ readonly stateMutability: "nonpayable";
55
+ }, {
56
+ readonly type: "function";
57
+ readonly name: "serialize";
58
+ readonly inputs: readonly [];
59
+ readonly outputs: readonly [{
60
+ readonly name: "serializedData";
61
+ readonly type: "bytes";
62
+ readonly internalType: "bytes";
63
+ }];
64
+ readonly stateMutability: "view";
65
+ }, {
66
+ readonly type: "function";
67
+ readonly name: "tAsset";
68
+ readonly inputs: readonly [];
69
+ readonly outputs: readonly [{
70
+ readonly name: "";
71
+ readonly type: "address";
72
+ readonly internalType: "address";
73
+ }];
74
+ readonly stateMutability: "view";
75
+ }, {
76
+ readonly type: "function";
77
+ readonly name: "targetContract";
78
+ readonly inputs: readonly [];
79
+ readonly outputs: readonly [{
80
+ readonly name: "";
81
+ readonly type: "address";
82
+ readonly internalType: "address";
83
+ }];
84
+ readonly stateMutability: "view";
85
+ }, {
86
+ readonly type: "function";
87
+ readonly name: "vaultUnderlying";
88
+ readonly inputs: readonly [];
89
+ readonly outputs: readonly [{
90
+ readonly name: "";
91
+ readonly type: "address";
92
+ readonly internalType: "address";
93
+ }];
94
+ readonly stateMutability: "view";
95
+ }, {
96
+ readonly type: "function";
97
+ readonly name: "version";
98
+ readonly inputs: readonly [];
99
+ readonly outputs: readonly [{
100
+ readonly name: "";
101
+ readonly type: "uint256";
102
+ readonly internalType: "uint256";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ }];
106
+ type abi = typeof abi;
107
+ declare const protocolAbi: readonly [{
108
+ readonly type: "function";
109
+ readonly name: "TASSET";
110
+ readonly inputs: readonly [];
111
+ readonly outputs: readonly [{
112
+ readonly name: "";
113
+ readonly type: "address";
114
+ readonly internalType: "address";
115
+ }];
116
+ readonly stateMutability: "view";
117
+ }, {
118
+ readonly type: "function";
119
+ readonly name: "UNDERLYING";
120
+ readonly inputs: readonly [];
121
+ readonly outputs: readonly [{
122
+ readonly name: "";
123
+ readonly type: "address";
124
+ readonly internalType: "address";
125
+ }];
126
+ readonly stateMutability: "view";
127
+ }, {
128
+ readonly type: "function";
129
+ readonly name: "redeemAndFinalize";
130
+ readonly inputs: readonly [{
131
+ readonly name: "_shares";
132
+ readonly type: "uint96";
133
+ readonly internalType: "uint96";
134
+ }];
135
+ readonly outputs: readonly [];
136
+ readonly stateMutability: "nonpayable";
137
+ }];
138
+ type protocolAbi = typeof protocolAbi;
139
+ export declare class TreehouseFastlaneAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
140
+ #private;
141
+ constructor(sdk: OnchainSDK, args: ConcreteAdapterContractOptions);
142
+ get tAsset(): Address;
143
+ get vaultUnderlying(): Address;
144
+ stateHuman(raw?: boolean): {
145
+ address: string;
146
+ version: number;
147
+ contractType?: string;
148
+ creditManager?: string;
149
+ targetContract?: string;
150
+ tAsset: string | undefined;
151
+ vaultUnderlying: string | undefined;
152
+ };
153
+ protected applyBalanceChanges(balances: AssetsMap, decoded: DecodeFunctionDataReturnType<abi>): void;
154
+ }
155
+ //#endregion
156
+ export {};