@emberai/onchain-actions-registry 1.0.0-alpha.3

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 (129) hide show
  1. package/dist/aave-lending-plugin/adapter.d.ts +56 -0
  2. package/dist/aave-lending-plugin/adapter.d.ts.map +1 -0
  3. package/dist/aave-lending-plugin/adapter.js +326 -0
  4. package/dist/aave-lending-plugin/adapter.js.map +1 -0
  5. package/dist/aave-lending-plugin/chain.d.ts +30 -0
  6. package/dist/aave-lending-plugin/chain.d.ts.map +1 -0
  7. package/dist/aave-lending-plugin/chain.js +36 -0
  8. package/dist/aave-lending-plugin/chain.js.map +1 -0
  9. package/dist/aave-lending-plugin/dataProvider.d.ts +19 -0
  10. package/dist/aave-lending-plugin/dataProvider.d.ts.map +1 -0
  11. package/dist/aave-lending-plugin/dataProvider.js +18 -0
  12. package/dist/aave-lending-plugin/dataProvider.js.map +1 -0
  13. package/dist/aave-lending-plugin/errors.d.ts +13 -0
  14. package/dist/aave-lending-plugin/errors.d.ts.map +1 -0
  15. package/dist/aave-lending-plugin/errors.js +366 -0
  16. package/dist/aave-lending-plugin/errors.js.map +1 -0
  17. package/dist/aave-lending-plugin/index.d.ts +24 -0
  18. package/dist/aave-lending-plugin/index.d.ts.map +1 -0
  19. package/dist/aave-lending-plugin/index.js +136 -0
  20. package/dist/aave-lending-plugin/index.js.map +1 -0
  21. package/dist/aave-lending-plugin/market.d.ts +11 -0
  22. package/dist/aave-lending-plugin/market.d.ts.map +1 -0
  23. package/dist/aave-lending-plugin/market.js +22 -0
  24. package/dist/aave-lending-plugin/market.js.map +1 -0
  25. package/dist/aave-lending-plugin/populateTransaction.d.ts +4 -0
  26. package/dist/aave-lending-plugin/populateTransaction.d.ts.map +1 -0
  27. package/dist/aave-lending-plugin/populateTransaction.js +31 -0
  28. package/dist/aave-lending-plugin/populateTransaction.js.map +1 -0
  29. package/dist/aave-lending-plugin/userSummary.d.ts +15 -0
  30. package/dist/aave-lending-plugin/userSummary.d.ts.map +1 -0
  31. package/dist/aave-lending-plugin/userSummary.js +62 -0
  32. package/dist/aave-lending-plugin/userSummary.js.map +1 -0
  33. package/dist/chainConfig.d.ts +10 -0
  34. package/dist/chainConfig.d.ts.map +1 -0
  35. package/dist/chainConfig.js +2 -0
  36. package/dist/chainConfig.js.map +1 -0
  37. package/dist/core/actions/index.d.ts +6 -0
  38. package/dist/core/actions/index.d.ts.map +1 -0
  39. package/dist/core/actions/index.js +2 -0
  40. package/dist/core/actions/index.js.map +1 -0
  41. package/dist/core/actions/lending.d.ts +22 -0
  42. package/dist/core/actions/lending.d.ts.map +1 -0
  43. package/dist/core/actions/lending.js +2 -0
  44. package/dist/core/actions/lending.js.map +1 -0
  45. package/dist/core/actions/liquidity.d.ts +14 -0
  46. package/dist/core/actions/liquidity.d.ts.map +1 -0
  47. package/dist/core/actions/liquidity.js +2 -0
  48. package/dist/core/actions/liquidity.js.map +1 -0
  49. package/dist/core/actions/perpetuals.d.ts +6 -0
  50. package/dist/core/actions/perpetuals.d.ts.map +1 -0
  51. package/dist/core/actions/perpetuals.js +2 -0
  52. package/dist/core/actions/perpetuals.js.map +1 -0
  53. package/dist/core/actions/swap.d.ts +10 -0
  54. package/dist/core/actions/swap.d.ts.map +1 -0
  55. package/dist/core/actions/swap.js +2 -0
  56. package/dist/core/actions/swap.js.map +1 -0
  57. package/dist/core/actions/types.d.ts +70 -0
  58. package/dist/core/actions/types.d.ts.map +1 -0
  59. package/dist/core/actions/types.js +2 -0
  60. package/dist/core/actions/types.js.map +1 -0
  61. package/dist/core/index.d.ts +41 -0
  62. package/dist/core/index.d.ts.map +1 -0
  63. package/dist/core/index.js +5 -0
  64. package/dist/core/index.js.map +1 -0
  65. package/dist/core/pluginType.d.ts +25 -0
  66. package/dist/core/pluginType.d.ts.map +1 -0
  67. package/dist/core/pluginType.js +2 -0
  68. package/dist/core/pluginType.js.map +1 -0
  69. package/dist/core/queries/index.d.ts +4 -0
  70. package/dist/core/queries/index.d.ts.map +1 -0
  71. package/dist/core/queries/index.js +4 -0
  72. package/dist/core/queries/index.js.map +1 -0
  73. package/dist/core/queries/lending.d.ts +12 -0
  74. package/dist/core/queries/lending.d.ts.map +1 -0
  75. package/dist/core/queries/lending.js +2 -0
  76. package/dist/core/queries/lending.js.map +1 -0
  77. package/dist/core/queries/liquidity.d.ts +17 -0
  78. package/dist/core/queries/liquidity.d.ts.map +1 -0
  79. package/dist/core/queries/liquidity.js +2 -0
  80. package/dist/core/queries/liquidity.js.map +1 -0
  81. package/dist/core/queries/perpetuals.d.ts +10 -0
  82. package/dist/core/queries/perpetuals.d.ts.map +1 -0
  83. package/dist/core/queries/perpetuals.js +2 -0
  84. package/dist/core/queries/perpetuals.js.map +1 -0
  85. package/dist/core/schemas/core.d.ts +315 -0
  86. package/dist/core/schemas/core.d.ts.map +1 -0
  87. package/dist/core/schemas/core.js +76 -0
  88. package/dist/core/schemas/core.js.map +1 -0
  89. package/dist/core/schemas/enums.d.ts +37 -0
  90. package/dist/core/schemas/enums.d.ts.map +1 -0
  91. package/dist/core/schemas/enums.js +36 -0
  92. package/dist/core/schemas/enums.js.map +1 -0
  93. package/dist/core/schemas/index.d.ts +9 -0
  94. package/dist/core/schemas/index.d.ts.map +1 -0
  95. package/dist/core/schemas/index.js +9 -0
  96. package/dist/core/schemas/index.js.map +1 -0
  97. package/dist/core/schemas/lending.d.ts +903 -0
  98. package/dist/core/schemas/lending.d.ts.map +1 -0
  99. package/dist/core/schemas/lending.js +71 -0
  100. package/dist/core/schemas/lending.js.map +1 -0
  101. package/dist/core/schemas/liquidity.d.ts +604 -0
  102. package/dist/core/schemas/liquidity.d.ts.map +1 -0
  103. package/dist/core/schemas/liquidity.js +74 -0
  104. package/dist/core/schemas/liquidity.js.map +1 -0
  105. package/dist/core/schemas/perpetuals.d.ts +974 -0
  106. package/dist/core/schemas/perpetuals.d.ts.map +1 -0
  107. package/dist/core/schemas/perpetuals.js +116 -0
  108. package/dist/core/schemas/perpetuals.js.map +1 -0
  109. package/dist/core/schemas/requests.d.ts +218 -0
  110. package/dist/core/schemas/requests.d.ts.map +1 -0
  111. package/dist/core/schemas/requests.js +15 -0
  112. package/dist/core/schemas/requests.js.map +1 -0
  113. package/dist/core/schemas/swap.d.ts +451 -0
  114. package/dist/core/schemas/swap.d.ts.map +1 -0
  115. package/dist/core/schemas/swap.js +37 -0
  116. package/dist/core/schemas/swap.js.map +1 -0
  117. package/dist/core/schemas/wallet.d.ts +69 -0
  118. package/dist/core/schemas/wallet.d.ts.map +1 -0
  119. package/dist/core/schemas/wallet.js +9 -0
  120. package/dist/core/schemas/wallet.js.map +1 -0
  121. package/dist/index.d.ts +8 -0
  122. package/dist/index.d.ts.map +1 -0
  123. package/dist/index.js +16 -0
  124. package/dist/index.js.map +1 -0
  125. package/dist/registry.d.ts +24 -0
  126. package/dist/registry.d.ts.map +1 -0
  127. package/dist/registry.js +38 -0
  128. package/dist/registry.js.map +1 -0
  129. package/package.json +78 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lending.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/lending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,sCAAsC;;;;;;EAEjD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ import { FeeBreakdownSchema, TransactionPlanSchema, TokenSchema } from './core.js';
3
+ export const BorrowTokensRequestSchema = z.object({
4
+ borrowToken: TokenSchema,
5
+ amount: z.bigint(),
6
+ walletAddress: z.string(),
7
+ });
8
+ export const BorrowTokensResponseSchema = z.object({
9
+ currentBorrowApy: z.string(),
10
+ liquidationThreshold: z.string(),
11
+ feeBreakdown: FeeBreakdownSchema.optional(),
12
+ transactions: z.array(TransactionPlanSchema),
13
+ });
14
+ export const RepayTokensRequestSchema = z.object({
15
+ repayToken: TokenSchema,
16
+ amount: z.bigint(),
17
+ walletAddress: z.string(),
18
+ });
19
+ export const RepayTokensResponseSchema = z.object({
20
+ feeBreakdown: FeeBreakdownSchema.optional(),
21
+ transactions: z.array(TransactionPlanSchema),
22
+ });
23
+ export const SupplyTokensRequestSchema = z.object({
24
+ supplyToken: TokenSchema,
25
+ amount: z.bigint(),
26
+ walletAddress: z.string(),
27
+ });
28
+ export const SupplyTokensResponseSchema = z.object({
29
+ feeBreakdown: FeeBreakdownSchema.optional(),
30
+ transactions: z.array(TransactionPlanSchema),
31
+ });
32
+ export const WithdrawTokensRequestSchema = z.object({
33
+ tokenToWithdraw: TokenSchema,
34
+ amount: z.bigint(),
35
+ walletAddress: z.string(),
36
+ });
37
+ export const WithdrawTokensResponseSchema = z.object({
38
+ feeBreakdown: FeeBreakdownSchema.optional(),
39
+ transactions: z.array(TransactionPlanSchema),
40
+ });
41
+ export const TokenPositionSchema = z.object({
42
+ underlyingToken: TokenSchema,
43
+ borrowRate: z.string(),
44
+ supplyBalance: z.string(),
45
+ borrowBalance: z.string(),
46
+ valueUsd: z.string(),
47
+ });
48
+ export const GetWalletLendingPositionsRequestSchema = z.object({
49
+ walletAddress: z.string(),
50
+ });
51
+ export const LendTokenDetailSchema = z.object({
52
+ token: TokenSchema,
53
+ underlyingBalance: z.string(),
54
+ underlyingBalanceUsd: z.string(),
55
+ variableBorrows: z.string(),
56
+ variableBorrowsUsd: z.string(),
57
+ totalBorrows: z.string(),
58
+ totalBorrowsUsd: z.string(),
59
+ });
60
+ export const GetWalletLendingPositionsResponseSchema = z.object({
61
+ userReserves: z.array(LendTokenDetailSchema),
62
+ totalLiquidityUsd: z.string(),
63
+ totalCollateralUsd: z.string(),
64
+ totalBorrowsUsd: z.string(),
65
+ netWorthUsd: z.string(),
66
+ availableBorrowsUsd: z.string(),
67
+ currentLoanToValue: z.string(),
68
+ currentLiquidationThreshold: z.string(),
69
+ healthFactor: z.string(),
70
+ });
71
+ //# sourceMappingURL=lending.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lending.js","sourceRoot":"","sources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AAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC"}
@@ -0,0 +1,604 @@
1
+ import { z } from 'zod';
2
+ export declare const LimitedLiquidityProvisionRangeSchema: z.ZodObject<{
3
+ minPrice: z.ZodString;
4
+ maxPrice: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ minPrice: string;
7
+ maxPrice: string;
8
+ }, {
9
+ minPrice: string;
10
+ maxPrice: string;
11
+ }>;
12
+ export type LimitedLiquidityProvisionRange = z.infer<typeof LimitedLiquidityProvisionRangeSchema>;
13
+ export declare const LiquidityProvisionRangeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
+ type: z.ZodLiteral<"full">;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: "full";
17
+ }, {
18
+ type: "full";
19
+ }>, z.ZodObject<{
20
+ type: z.ZodLiteral<"limited">;
21
+ minPrice: z.ZodString;
22
+ maxPrice: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "limited";
25
+ minPrice: string;
26
+ maxPrice: string;
27
+ }, {
28
+ type: "limited";
29
+ minPrice: string;
30
+ maxPrice: string;
31
+ }>]>;
32
+ export type LiquidityProvisionRange = z.infer<typeof LiquidityProvisionRangeSchema>;
33
+ export declare const LiquidityPositionRangeSchema: z.ZodObject<{
34
+ fromPrice: z.ZodString;
35
+ toPrice: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ fromPrice: string;
38
+ toPrice: string;
39
+ }, {
40
+ fromPrice: string;
41
+ toPrice: string;
42
+ }>;
43
+ export type LiquidityPositionRange = z.infer<typeof LiquidityPositionRangeSchema>;
44
+ export declare const LiquidityPositionSchema: z.ZodObject<{
45
+ tokenId: z.ZodString;
46
+ poolAddress: z.ZodString;
47
+ operator: z.ZodString;
48
+ token0: z.ZodObject<{
49
+ chainId: z.ZodString;
50
+ address: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ chainId: string;
53
+ address: string;
54
+ }, {
55
+ chainId: string;
56
+ address: string;
57
+ }>;
58
+ token1: z.ZodObject<{
59
+ chainId: z.ZodString;
60
+ address: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ chainId: string;
63
+ address: string;
64
+ }, {
65
+ chainId: string;
66
+ address: string;
67
+ }>;
68
+ tokensOwed0: z.ZodString;
69
+ tokensOwed1: z.ZodString;
70
+ amount0: z.ZodString;
71
+ amount1: z.ZodString;
72
+ symbol0: z.ZodString;
73
+ symbol1: z.ZodString;
74
+ price: z.ZodString;
75
+ providerId: z.ZodString;
76
+ positionRange: z.ZodOptional<z.ZodObject<{
77
+ fromPrice: z.ZodString;
78
+ toPrice: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ fromPrice: string;
81
+ toPrice: string;
82
+ }, {
83
+ fromPrice: string;
84
+ toPrice: string;
85
+ }>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ tokenId: string;
88
+ poolAddress: string;
89
+ operator: string;
90
+ token0: {
91
+ chainId: string;
92
+ address: string;
93
+ };
94
+ token1: {
95
+ chainId: string;
96
+ address: string;
97
+ };
98
+ tokensOwed0: string;
99
+ tokensOwed1: string;
100
+ amount0: string;
101
+ amount1: string;
102
+ symbol0: string;
103
+ symbol1: string;
104
+ price: string;
105
+ providerId: string;
106
+ positionRange?: {
107
+ fromPrice: string;
108
+ toPrice: string;
109
+ } | undefined;
110
+ }, {
111
+ tokenId: string;
112
+ poolAddress: string;
113
+ operator: string;
114
+ token0: {
115
+ chainId: string;
116
+ address: string;
117
+ };
118
+ token1: {
119
+ chainId: string;
120
+ address: string;
121
+ };
122
+ tokensOwed0: string;
123
+ tokensOwed1: string;
124
+ amount0: string;
125
+ amount1: string;
126
+ symbol0: string;
127
+ symbol1: string;
128
+ price: string;
129
+ providerId: string;
130
+ positionRange?: {
131
+ fromPrice: string;
132
+ toPrice: string;
133
+ } | undefined;
134
+ }>;
135
+ export type LiquidityPosition = z.infer<typeof LiquidityPositionSchema>;
136
+ export declare const LiquidityPoolSchema: z.ZodObject<{
137
+ token0: z.ZodObject<{
138
+ chainId: z.ZodString;
139
+ address: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ chainId: string;
142
+ address: string;
143
+ }, {
144
+ chainId: string;
145
+ address: string;
146
+ }>;
147
+ token1: z.ZodObject<{
148
+ chainId: z.ZodString;
149
+ address: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ chainId: string;
152
+ address: string;
153
+ }, {
154
+ chainId: string;
155
+ address: string;
156
+ }>;
157
+ symbol0: z.ZodString;
158
+ symbol1: z.ZodString;
159
+ price: z.ZodString;
160
+ providerId: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ token0: {
163
+ chainId: string;
164
+ address: string;
165
+ };
166
+ token1: {
167
+ chainId: string;
168
+ address: string;
169
+ };
170
+ symbol0: string;
171
+ symbol1: string;
172
+ price: string;
173
+ providerId: string;
174
+ }, {
175
+ token0: {
176
+ chainId: string;
177
+ address: string;
178
+ };
179
+ token1: {
180
+ chainId: string;
181
+ address: string;
182
+ };
183
+ symbol0: string;
184
+ symbol1: string;
185
+ price: string;
186
+ providerId: string;
187
+ }>;
188
+ export type LiquidityPool = z.infer<typeof LiquidityPoolSchema>;
189
+ export declare const SupplyLiquidityRequestSchema: z.ZodObject<{
190
+ token0: z.ZodObject<{
191
+ chainId: z.ZodString;
192
+ address: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ chainId: string;
195
+ address: string;
196
+ }, {
197
+ chainId: string;
198
+ address: string;
199
+ }>;
200
+ token1: z.ZodObject<{
201
+ chainId: z.ZodString;
202
+ address: z.ZodString;
203
+ }, "strip", z.ZodTypeAny, {
204
+ chainId: string;
205
+ address: string;
206
+ }, {
207
+ chainId: string;
208
+ address: string;
209
+ }>;
210
+ amount0: z.ZodBigInt;
211
+ amount1: z.ZodBigInt;
212
+ range: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
213
+ type: z.ZodLiteral<"full">;
214
+ }, "strip", z.ZodTypeAny, {
215
+ type: "full";
216
+ }, {
217
+ type: "full";
218
+ }>, z.ZodObject<{
219
+ type: z.ZodLiteral<"limited">;
220
+ minPrice: z.ZodString;
221
+ maxPrice: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: "limited";
224
+ minPrice: string;
225
+ maxPrice: string;
226
+ }, {
227
+ type: "limited";
228
+ minPrice: string;
229
+ maxPrice: string;
230
+ }>]>;
231
+ walletAddress: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ walletAddress: string;
234
+ token0: {
235
+ chainId: string;
236
+ address: string;
237
+ };
238
+ token1: {
239
+ chainId: string;
240
+ address: string;
241
+ };
242
+ amount0: bigint;
243
+ amount1: bigint;
244
+ range: {
245
+ type: "full";
246
+ } | {
247
+ type: "limited";
248
+ minPrice: string;
249
+ maxPrice: string;
250
+ };
251
+ }, {
252
+ walletAddress: string;
253
+ token0: {
254
+ chainId: string;
255
+ address: string;
256
+ };
257
+ token1: {
258
+ chainId: string;
259
+ address: string;
260
+ };
261
+ amount0: bigint;
262
+ amount1: bigint;
263
+ range: {
264
+ type: "full";
265
+ } | {
266
+ type: "limited";
267
+ minPrice: string;
268
+ maxPrice: string;
269
+ };
270
+ }>;
271
+ export type SupplyLiquidityRequest = z.infer<typeof SupplyLiquidityRequestSchema>;
272
+ export declare const SupplyLiquidityResponseSchema: z.ZodObject<{
273
+ transactions: z.ZodArray<z.ZodObject<{
274
+ type: z.ZodEnum<[string, ...string[]]>;
275
+ to: z.ZodString;
276
+ data: z.ZodString;
277
+ value: z.ZodString;
278
+ chainId: z.ZodString;
279
+ }, "strip", z.ZodTypeAny, {
280
+ value: string;
281
+ type: string;
282
+ chainId: string;
283
+ to: string;
284
+ data: string;
285
+ }, {
286
+ value: string;
287
+ type: string;
288
+ chainId: string;
289
+ to: string;
290
+ data: string;
291
+ }>, "many">;
292
+ chainId: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ chainId: string;
295
+ transactions: {
296
+ value: string;
297
+ type: string;
298
+ chainId: string;
299
+ to: string;
300
+ data: string;
301
+ }[];
302
+ }, {
303
+ chainId: string;
304
+ transactions: {
305
+ value: string;
306
+ type: string;
307
+ chainId: string;
308
+ to: string;
309
+ data: string;
310
+ }[];
311
+ }>;
312
+ export type SupplyLiquidityResponse = z.infer<typeof SupplyLiquidityResponseSchema>;
313
+ export declare const WithdrawLiquidityRequestSchema: z.ZodObject<{
314
+ tokenId: z.ZodString;
315
+ walletAddress: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ walletAddress: string;
318
+ tokenId: string;
319
+ }, {
320
+ walletAddress: string;
321
+ tokenId: string;
322
+ }>;
323
+ export type WithdrawLiquidityRequest = z.infer<typeof WithdrawLiquidityRequestSchema>;
324
+ export declare const WithdrawLiquidityResponseSchema: z.ZodObject<{
325
+ transactions: z.ZodArray<z.ZodObject<{
326
+ type: z.ZodEnum<[string, ...string[]]>;
327
+ to: z.ZodString;
328
+ data: z.ZodString;
329
+ value: z.ZodString;
330
+ chainId: z.ZodString;
331
+ }, "strip", z.ZodTypeAny, {
332
+ value: string;
333
+ type: string;
334
+ chainId: string;
335
+ to: string;
336
+ data: string;
337
+ }, {
338
+ value: string;
339
+ type: string;
340
+ chainId: string;
341
+ to: string;
342
+ data: string;
343
+ }>, "many">;
344
+ chainId: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ chainId: string;
347
+ transactions: {
348
+ value: string;
349
+ type: string;
350
+ chainId: string;
351
+ to: string;
352
+ data: string;
353
+ }[];
354
+ }, {
355
+ chainId: string;
356
+ transactions: {
357
+ value: string;
358
+ type: string;
359
+ chainId: string;
360
+ to: string;
361
+ data: string;
362
+ }[];
363
+ }>;
364
+ export type WithdrawLiquidityResponse = z.infer<typeof WithdrawLiquidityResponseSchema>;
365
+ export declare const GetWalletLiquidityPositionsRequestSchema: z.ZodObject<{
366
+ walletAddress: z.ZodString;
367
+ }, "strip", z.ZodTypeAny, {
368
+ walletAddress: string;
369
+ }, {
370
+ walletAddress: string;
371
+ }>;
372
+ export type GetWalletLiquidityPositionsRequest = z.infer<typeof GetWalletLiquidityPositionsRequestSchema>;
373
+ export declare const GetWalletLiquidityPositionsResponseSchema: z.ZodObject<{
374
+ positions: z.ZodArray<z.ZodObject<{
375
+ tokenId: z.ZodString;
376
+ poolAddress: z.ZodString;
377
+ operator: z.ZodString;
378
+ token0: z.ZodObject<{
379
+ chainId: z.ZodString;
380
+ address: z.ZodString;
381
+ }, "strip", z.ZodTypeAny, {
382
+ chainId: string;
383
+ address: string;
384
+ }, {
385
+ chainId: string;
386
+ address: string;
387
+ }>;
388
+ token1: z.ZodObject<{
389
+ chainId: z.ZodString;
390
+ address: z.ZodString;
391
+ }, "strip", z.ZodTypeAny, {
392
+ chainId: string;
393
+ address: string;
394
+ }, {
395
+ chainId: string;
396
+ address: string;
397
+ }>;
398
+ tokensOwed0: z.ZodString;
399
+ tokensOwed1: z.ZodString;
400
+ amount0: z.ZodString;
401
+ amount1: z.ZodString;
402
+ symbol0: z.ZodString;
403
+ symbol1: z.ZodString;
404
+ price: z.ZodString;
405
+ providerId: z.ZodString;
406
+ positionRange: z.ZodOptional<z.ZodObject<{
407
+ fromPrice: z.ZodString;
408
+ toPrice: z.ZodString;
409
+ }, "strip", z.ZodTypeAny, {
410
+ fromPrice: string;
411
+ toPrice: string;
412
+ }, {
413
+ fromPrice: string;
414
+ toPrice: string;
415
+ }>>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ tokenId: string;
418
+ poolAddress: string;
419
+ operator: string;
420
+ token0: {
421
+ chainId: string;
422
+ address: string;
423
+ };
424
+ token1: {
425
+ chainId: string;
426
+ address: string;
427
+ };
428
+ tokensOwed0: string;
429
+ tokensOwed1: string;
430
+ amount0: string;
431
+ amount1: string;
432
+ symbol0: string;
433
+ symbol1: string;
434
+ price: string;
435
+ providerId: string;
436
+ positionRange?: {
437
+ fromPrice: string;
438
+ toPrice: string;
439
+ } | undefined;
440
+ }, {
441
+ tokenId: string;
442
+ poolAddress: string;
443
+ operator: string;
444
+ token0: {
445
+ chainId: string;
446
+ address: string;
447
+ };
448
+ token1: {
449
+ chainId: string;
450
+ address: string;
451
+ };
452
+ tokensOwed0: string;
453
+ tokensOwed1: string;
454
+ amount0: string;
455
+ amount1: string;
456
+ symbol0: string;
457
+ symbol1: string;
458
+ price: string;
459
+ providerId: string;
460
+ positionRange?: {
461
+ fromPrice: string;
462
+ toPrice: string;
463
+ } | undefined;
464
+ }>, "many">;
465
+ }, "strip", z.ZodTypeAny, {
466
+ positions: {
467
+ tokenId: string;
468
+ poolAddress: string;
469
+ operator: string;
470
+ token0: {
471
+ chainId: string;
472
+ address: string;
473
+ };
474
+ token1: {
475
+ chainId: string;
476
+ address: string;
477
+ };
478
+ tokensOwed0: string;
479
+ tokensOwed1: string;
480
+ amount0: string;
481
+ amount1: string;
482
+ symbol0: string;
483
+ symbol1: string;
484
+ price: string;
485
+ providerId: string;
486
+ positionRange?: {
487
+ fromPrice: string;
488
+ toPrice: string;
489
+ } | undefined;
490
+ }[];
491
+ }, {
492
+ positions: {
493
+ tokenId: string;
494
+ poolAddress: string;
495
+ operator: string;
496
+ token0: {
497
+ chainId: string;
498
+ address: string;
499
+ };
500
+ token1: {
501
+ chainId: string;
502
+ address: string;
503
+ };
504
+ tokensOwed0: string;
505
+ tokensOwed1: string;
506
+ amount0: string;
507
+ amount1: string;
508
+ symbol0: string;
509
+ symbol1: string;
510
+ price: string;
511
+ providerId: string;
512
+ positionRange?: {
513
+ fromPrice: string;
514
+ toPrice: string;
515
+ } | undefined;
516
+ }[];
517
+ }>;
518
+ export type GetWalletLiquidityPositionsResponse = z.infer<typeof GetWalletLiquidityPositionsResponseSchema>;
519
+ export declare const GetLiquidityPoolsResponseSchema: z.ZodObject<{
520
+ liquidityPools: z.ZodArray<z.ZodObject<{
521
+ token0: z.ZodObject<{
522
+ chainId: z.ZodString;
523
+ address: z.ZodString;
524
+ }, "strip", z.ZodTypeAny, {
525
+ chainId: string;
526
+ address: string;
527
+ }, {
528
+ chainId: string;
529
+ address: string;
530
+ }>;
531
+ token1: z.ZodObject<{
532
+ chainId: z.ZodString;
533
+ address: z.ZodString;
534
+ }, "strip", z.ZodTypeAny, {
535
+ chainId: string;
536
+ address: string;
537
+ }, {
538
+ chainId: string;
539
+ address: string;
540
+ }>;
541
+ symbol0: z.ZodString;
542
+ symbol1: z.ZodString;
543
+ price: z.ZodString;
544
+ providerId: z.ZodString;
545
+ }, "strip", z.ZodTypeAny, {
546
+ token0: {
547
+ chainId: string;
548
+ address: string;
549
+ };
550
+ token1: {
551
+ chainId: string;
552
+ address: string;
553
+ };
554
+ symbol0: string;
555
+ symbol1: string;
556
+ price: string;
557
+ providerId: string;
558
+ }, {
559
+ token0: {
560
+ chainId: string;
561
+ address: string;
562
+ };
563
+ token1: {
564
+ chainId: string;
565
+ address: string;
566
+ };
567
+ symbol0: string;
568
+ symbol1: string;
569
+ price: string;
570
+ providerId: string;
571
+ }>, "many">;
572
+ }, "strip", z.ZodTypeAny, {
573
+ liquidityPools: {
574
+ token0: {
575
+ chainId: string;
576
+ address: string;
577
+ };
578
+ token1: {
579
+ chainId: string;
580
+ address: string;
581
+ };
582
+ symbol0: string;
583
+ symbol1: string;
584
+ price: string;
585
+ providerId: string;
586
+ }[];
587
+ }, {
588
+ liquidityPools: {
589
+ token0: {
590
+ chainId: string;
591
+ address: string;
592
+ };
593
+ token1: {
594
+ chainId: string;
595
+ address: string;
596
+ };
597
+ symbol0: string;
598
+ symbol1: string;
599
+ price: string;
600
+ providerId: string;
601
+ }[];
602
+ }>;
603
+ export type GetLiquidityPoolsResponse = z.infer<typeof GetLiquidityPoolsResponseSchema>;
604
+ //# sourceMappingURL=liquidity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liquidity.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/liquidity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oCAAoC;;;;;;;;;EAG/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;IASxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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