@emberai/onchain-actions-registry 3.1.0-next.1 → 3.1.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.d.cts +79 -79
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +79 -79
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -56,8 +56,6 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
|
|
|
56
56
|
amount: z.ZodBigInt;
|
|
57
57
|
walletAddress: z.ZodString;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
walletAddress: string;
|
|
60
|
-
amount: bigint;
|
|
61
59
|
borrowToken: {
|
|
62
60
|
symbol: string;
|
|
63
61
|
tokenUid: {
|
|
@@ -70,9 +68,9 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
|
|
|
70
68
|
isVetted: boolean;
|
|
71
69
|
iconUri?: string | null | undefined;
|
|
72
70
|
};
|
|
73
|
-
}, {
|
|
74
|
-
walletAddress: string;
|
|
75
71
|
amount: bigint;
|
|
72
|
+
walletAddress: string;
|
|
73
|
+
}, {
|
|
76
74
|
borrowToken: {
|
|
77
75
|
symbol: string;
|
|
78
76
|
tokenUid: {
|
|
@@ -85,6 +83,8 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
|
|
|
85
83
|
isVetted: boolean;
|
|
86
84
|
iconUri?: string | null | undefined;
|
|
87
85
|
};
|
|
86
|
+
amount: bigint;
|
|
87
|
+
walletAddress: string;
|
|
88
88
|
}>;
|
|
89
89
|
type BorrowTokensRequest = z.infer<typeof BorrowTokensRequestSchema>;
|
|
90
90
|
declare const BorrowTokensResponseSchema: z.ZodObject<{
|
|
@@ -126,6 +126,8 @@ declare const BorrowTokensResponseSchema: z.ZodObject<{
|
|
|
126
126
|
data: string;
|
|
127
127
|
}>, "many">;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
currentBorrowApy: string;
|
|
130
|
+
liquidationThreshold: string;
|
|
129
131
|
transactions: {
|
|
130
132
|
chainId: string;
|
|
131
133
|
value: string;
|
|
@@ -133,8 +135,6 @@ declare const BorrowTokensResponseSchema: z.ZodObject<{
|
|
|
133
135
|
to: string;
|
|
134
136
|
data: string;
|
|
135
137
|
}[];
|
|
136
|
-
currentBorrowApy: string;
|
|
137
|
-
liquidationThreshold: string;
|
|
138
138
|
feeBreakdown?: {
|
|
139
139
|
serviceFee: string;
|
|
140
140
|
slippageCost: string;
|
|
@@ -142,6 +142,8 @@ declare const BorrowTokensResponseSchema: z.ZodObject<{
|
|
|
142
142
|
feeDenomination: string;
|
|
143
143
|
} | undefined;
|
|
144
144
|
}, {
|
|
145
|
+
currentBorrowApy: string;
|
|
146
|
+
liquidationThreshold: string;
|
|
145
147
|
transactions: {
|
|
146
148
|
chainId: string;
|
|
147
149
|
value: string;
|
|
@@ -149,8 +151,6 @@ declare const BorrowTokensResponseSchema: z.ZodObject<{
|
|
|
149
151
|
to: string;
|
|
150
152
|
data: string;
|
|
151
153
|
}[];
|
|
152
|
-
currentBorrowApy: string;
|
|
153
|
-
liquidationThreshold: string;
|
|
154
154
|
feeBreakdown?: {
|
|
155
155
|
serviceFee: string;
|
|
156
156
|
slippageCost: string;
|
|
@@ -203,8 +203,8 @@ declare const RepayTokensRequestSchema: z.ZodObject<{
|
|
|
203
203
|
amount: z.ZodBigInt;
|
|
204
204
|
walletAddress: z.ZodString;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
walletAddress: string;
|
|
207
206
|
amount: bigint;
|
|
207
|
+
walletAddress: string;
|
|
208
208
|
repayToken: {
|
|
209
209
|
symbol: string;
|
|
210
210
|
tokenUid: {
|
|
@@ -218,8 +218,8 @@ declare const RepayTokensRequestSchema: z.ZodObject<{
|
|
|
218
218
|
iconUri?: string | null | undefined;
|
|
219
219
|
};
|
|
220
220
|
}, {
|
|
221
|
-
walletAddress: string;
|
|
222
221
|
amount: bigint;
|
|
222
|
+
walletAddress: string;
|
|
223
223
|
repayToken: {
|
|
224
224
|
symbol: string;
|
|
225
225
|
tokenUid: {
|
|
@@ -344,8 +344,8 @@ declare const SupplyTokensRequestSchema: z.ZodObject<{
|
|
|
344
344
|
amount: z.ZodBigInt;
|
|
345
345
|
walletAddress: z.ZodString;
|
|
346
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
walletAddress: string;
|
|
348
347
|
amount: bigint;
|
|
348
|
+
walletAddress: string;
|
|
349
349
|
supplyToken: {
|
|
350
350
|
symbol: string;
|
|
351
351
|
tokenUid: {
|
|
@@ -359,8 +359,8 @@ declare const SupplyTokensRequestSchema: z.ZodObject<{
|
|
|
359
359
|
iconUri?: string | null | undefined;
|
|
360
360
|
};
|
|
361
361
|
}, {
|
|
362
|
-
walletAddress: string;
|
|
363
362
|
amount: bigint;
|
|
363
|
+
walletAddress: string;
|
|
364
364
|
supplyToken: {
|
|
365
365
|
symbol: string;
|
|
366
366
|
tokenUid: {
|
|
@@ -485,8 +485,8 @@ declare const WithdrawTokensRequestSchema: z.ZodObject<{
|
|
|
485
485
|
amount: z.ZodBigInt;
|
|
486
486
|
walletAddress: z.ZodString;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
walletAddress: string;
|
|
489
488
|
amount: bigint;
|
|
489
|
+
walletAddress: string;
|
|
490
490
|
tokenToWithdraw: {
|
|
491
491
|
symbol: string;
|
|
492
492
|
tokenUid: {
|
|
@@ -500,8 +500,8 @@ declare const WithdrawTokensRequestSchema: z.ZodObject<{
|
|
|
500
500
|
iconUri?: string | null | undefined;
|
|
501
501
|
};
|
|
502
502
|
}, {
|
|
503
|
-
walletAddress: string;
|
|
504
503
|
amount: bigint;
|
|
504
|
+
walletAddress: string;
|
|
505
505
|
tokenToWithdraw: {
|
|
506
506
|
symbol: string;
|
|
507
507
|
tokenUid: {
|
|
@@ -1736,10 +1736,10 @@ declare const PositionSchema: z.ZodObject<{
|
|
|
1736
1736
|
data: z.ZodOptional<z.ZodString>;
|
|
1737
1737
|
}, "strip", z.ZodTypeAny, {
|
|
1738
1738
|
chainId: string;
|
|
1739
|
-
marketAddress: string;
|
|
1740
1739
|
key: string;
|
|
1741
1740
|
contractKey: string;
|
|
1742
1741
|
account: string;
|
|
1742
|
+
marketAddress: string;
|
|
1743
1743
|
collateralTokenAddress: string;
|
|
1744
1744
|
sizeInUsd: string;
|
|
1745
1745
|
sizeInTokens: string;
|
|
@@ -1760,10 +1760,10 @@ declare const PositionSchema: z.ZodObject<{
|
|
|
1760
1760
|
isOpening?: boolean | undefined;
|
|
1761
1761
|
}, {
|
|
1762
1762
|
chainId: string;
|
|
1763
|
-
marketAddress: string;
|
|
1764
1763
|
key: string;
|
|
1765
1764
|
contractKey: string;
|
|
1766
1765
|
account: string;
|
|
1766
|
+
marketAddress: string;
|
|
1767
1767
|
collateralTokenAddress: string;
|
|
1768
1768
|
sizeInUsd: string;
|
|
1769
1769
|
sizeInTokens: string;
|
|
@@ -1810,10 +1810,10 @@ declare const PositionsDataSchema: z.ZodArray<z.ZodObject<{
|
|
|
1810
1810
|
data: z.ZodOptional<z.ZodString>;
|
|
1811
1811
|
}, "strip", z.ZodTypeAny, {
|
|
1812
1812
|
chainId: string;
|
|
1813
|
-
marketAddress: string;
|
|
1814
1813
|
key: string;
|
|
1815
1814
|
contractKey: string;
|
|
1816
1815
|
account: string;
|
|
1816
|
+
marketAddress: string;
|
|
1817
1817
|
collateralTokenAddress: string;
|
|
1818
1818
|
sizeInUsd: string;
|
|
1819
1819
|
sizeInTokens: string;
|
|
@@ -1834,10 +1834,10 @@ declare const PositionsDataSchema: z.ZodArray<z.ZodObject<{
|
|
|
1834
1834
|
isOpening?: boolean | undefined;
|
|
1835
1835
|
}, {
|
|
1836
1836
|
chainId: string;
|
|
1837
|
-
marketAddress: string;
|
|
1838
1837
|
key: string;
|
|
1839
1838
|
contractKey: string;
|
|
1840
1839
|
account: string;
|
|
1840
|
+
marketAddress: string;
|
|
1841
1841
|
collateralTokenAddress: string;
|
|
1842
1842
|
sizeInUsd: string;
|
|
1843
1843
|
sizeInTokens: string;
|
|
@@ -1888,9 +1888,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
1888
1888
|
title: z.ZodOptional<z.ZodString>;
|
|
1889
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1890
1890
|
chainId: string;
|
|
1891
|
-
marketAddress: string;
|
|
1892
1891
|
key: string;
|
|
1893
1892
|
account: string;
|
|
1893
|
+
marketAddress: string;
|
|
1894
1894
|
positionSide: "long" | "short";
|
|
1895
1895
|
callbackContract: string;
|
|
1896
1896
|
initialCollateralTokenAddress: string;
|
|
@@ -1915,9 +1915,9 @@ declare const OrderSchema: z.ZodObject<{
|
|
|
1915
1915
|
title?: string | undefined;
|
|
1916
1916
|
}, {
|
|
1917
1917
|
chainId: string;
|
|
1918
|
-
marketAddress: string;
|
|
1919
1918
|
key: string;
|
|
1920
1919
|
account: string;
|
|
1920
|
+
marketAddress: string;
|
|
1921
1921
|
positionSide: "long" | "short";
|
|
1922
1922
|
callbackContract: string;
|
|
1923
1923
|
initialCollateralTokenAddress: string;
|
|
@@ -1971,9 +1971,9 @@ declare const OrdersDataSchema: z.ZodArray<z.ZodObject<{
|
|
|
1971
1971
|
title: z.ZodOptional<z.ZodString>;
|
|
1972
1972
|
}, "strip", z.ZodTypeAny, {
|
|
1973
1973
|
chainId: string;
|
|
1974
|
-
marketAddress: string;
|
|
1975
1974
|
key: string;
|
|
1976
1975
|
account: string;
|
|
1976
|
+
marketAddress: string;
|
|
1977
1977
|
positionSide: "long" | "short";
|
|
1978
1978
|
callbackContract: string;
|
|
1979
1979
|
initialCollateralTokenAddress: string;
|
|
@@ -1998,9 +1998,9 @@ declare const OrdersDataSchema: z.ZodArray<z.ZodObject<{
|
|
|
1998
1998
|
title?: string | undefined;
|
|
1999
1999
|
}, {
|
|
2000
2000
|
chainId: string;
|
|
2001
|
-
marketAddress: string;
|
|
2002
2001
|
key: string;
|
|
2003
2002
|
account: string;
|
|
2003
|
+
marketAddress: string;
|
|
2004
2004
|
positionSide: "long" | "short";
|
|
2005
2005
|
callbackContract: string;
|
|
2006
2006
|
initialCollateralTokenAddress: string;
|
|
@@ -2035,9 +2035,9 @@ declare const CreatePerpetualsPositionRequestSchema: z.ZodObject<{
|
|
|
2035
2035
|
limitPrice: z.ZodOptional<z.ZodString>;
|
|
2036
2036
|
leverage: z.ZodString;
|
|
2037
2037
|
}, "strip", z.ZodTypeAny, {
|
|
2038
|
-
walletAddress: string;
|
|
2039
2038
|
chainId: string;
|
|
2040
2039
|
amount: bigint;
|
|
2040
|
+
walletAddress: string;
|
|
2041
2041
|
marketAddress: string;
|
|
2042
2042
|
collateralTokenAddress: string;
|
|
2043
2043
|
payTokenAddress: string;
|
|
@@ -2045,9 +2045,9 @@ declare const CreatePerpetualsPositionRequestSchema: z.ZodObject<{
|
|
|
2045
2045
|
referralCode?: string | undefined;
|
|
2046
2046
|
limitPrice?: string | undefined;
|
|
2047
2047
|
}, {
|
|
2048
|
-
walletAddress: string;
|
|
2049
2048
|
chainId: string;
|
|
2050
2049
|
amount: bigint;
|
|
2050
|
+
walletAddress: string;
|
|
2051
2051
|
marketAddress: string;
|
|
2052
2052
|
collateralTokenAddress: string;
|
|
2053
2053
|
payTokenAddress: string;
|
|
@@ -2129,10 +2129,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
|
|
|
2129
2129
|
data: z.ZodOptional<z.ZodString>;
|
|
2130
2130
|
}, "strip", z.ZodTypeAny, {
|
|
2131
2131
|
chainId: string;
|
|
2132
|
-
marketAddress: string;
|
|
2133
2132
|
key: string;
|
|
2134
2133
|
contractKey: string;
|
|
2135
2134
|
account: string;
|
|
2135
|
+
marketAddress: string;
|
|
2136
2136
|
collateralTokenAddress: string;
|
|
2137
2137
|
sizeInUsd: string;
|
|
2138
2138
|
sizeInTokens: string;
|
|
@@ -2153,10 +2153,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
|
|
|
2153
2153
|
isOpening?: boolean | undefined;
|
|
2154
2154
|
}, {
|
|
2155
2155
|
chainId: string;
|
|
2156
|
-
marketAddress: string;
|
|
2157
2156
|
key: string;
|
|
2158
2157
|
contractKey: string;
|
|
2159
2158
|
account: string;
|
|
2159
|
+
marketAddress: string;
|
|
2160
2160
|
collateralTokenAddress: string;
|
|
2161
2161
|
sizeInUsd: string;
|
|
2162
2162
|
sizeInTokens: string;
|
|
@@ -2179,10 +2179,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
|
|
|
2179
2179
|
}, "strip", z.ZodTypeAny, {
|
|
2180
2180
|
positions: {
|
|
2181
2181
|
chainId: string;
|
|
2182
|
-
marketAddress: string;
|
|
2183
2182
|
key: string;
|
|
2184
2183
|
contractKey: string;
|
|
2185
2184
|
account: string;
|
|
2185
|
+
marketAddress: string;
|
|
2186
2186
|
collateralTokenAddress: string;
|
|
2187
2187
|
sizeInUsd: string;
|
|
2188
2188
|
sizeInTokens: string;
|
|
@@ -2205,10 +2205,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
|
|
|
2205
2205
|
}, {
|
|
2206
2206
|
positions: {
|
|
2207
2207
|
chainId: string;
|
|
2208
|
-
marketAddress: string;
|
|
2209
2208
|
key: string;
|
|
2210
2209
|
contractKey: string;
|
|
2211
2210
|
account: string;
|
|
2211
|
+
marketAddress: string;
|
|
2212
2212
|
collateralTokenAddress: string;
|
|
2213
2213
|
sizeInUsd: string;
|
|
2214
2214
|
sizeInTokens: string;
|
|
@@ -2268,9 +2268,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
|
|
|
2268
2268
|
title: z.ZodOptional<z.ZodString>;
|
|
2269
2269
|
}, "strip", z.ZodTypeAny, {
|
|
2270
2270
|
chainId: string;
|
|
2271
|
-
marketAddress: string;
|
|
2272
2271
|
key: string;
|
|
2273
2272
|
account: string;
|
|
2273
|
+
marketAddress: string;
|
|
2274
2274
|
positionSide: "long" | "short";
|
|
2275
2275
|
callbackContract: string;
|
|
2276
2276
|
initialCollateralTokenAddress: string;
|
|
@@ -2295,9 +2295,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
|
|
|
2295
2295
|
title?: string | undefined;
|
|
2296
2296
|
}, {
|
|
2297
2297
|
chainId: string;
|
|
2298
|
-
marketAddress: string;
|
|
2299
2298
|
key: string;
|
|
2300
2299
|
account: string;
|
|
2300
|
+
marketAddress: string;
|
|
2301
2301
|
positionSide: "long" | "short";
|
|
2302
2302
|
callbackContract: string;
|
|
2303
2303
|
initialCollateralTokenAddress: string;
|
|
@@ -2324,9 +2324,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
|
|
|
2324
2324
|
}, "strip", z.ZodTypeAny, {
|
|
2325
2325
|
orders: {
|
|
2326
2326
|
chainId: string;
|
|
2327
|
-
marketAddress: string;
|
|
2328
2327
|
key: string;
|
|
2329
2328
|
account: string;
|
|
2329
|
+
marketAddress: string;
|
|
2330
2330
|
positionSide: "long" | "short";
|
|
2331
2331
|
callbackContract: string;
|
|
2332
2332
|
initialCollateralTokenAddress: string;
|
|
@@ -2353,9 +2353,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
|
|
|
2353
2353
|
}, {
|
|
2354
2354
|
orders: {
|
|
2355
2355
|
chainId: string;
|
|
2356
|
-
marketAddress: string;
|
|
2357
2356
|
key: string;
|
|
2358
2357
|
account: string;
|
|
2358
|
+
marketAddress: string;
|
|
2359
2359
|
positionSide: "long" | "short";
|
|
2360
2360
|
callbackContract: string;
|
|
2361
2361
|
initialCollateralTokenAddress: string;
|
|
@@ -3146,7 +3146,9 @@ declare const MintPtAndYtRequestSchema: z.ZodObject<{
|
|
|
3146
3146
|
amount: z.ZodBigInt;
|
|
3147
3147
|
marketAddress: z.ZodString;
|
|
3148
3148
|
}, "strip", z.ZodTypeAny, {
|
|
3149
|
+
amount: bigint;
|
|
3149
3150
|
walletAddress: string;
|
|
3151
|
+
marketAddress: string;
|
|
3150
3152
|
slippage: string;
|
|
3151
3153
|
inputToken: {
|
|
3152
3154
|
symbol: string;
|
|
@@ -3160,10 +3162,10 @@ declare const MintPtAndYtRequestSchema: z.ZodObject<{
|
|
|
3160
3162
|
isVetted: boolean;
|
|
3161
3163
|
iconUri?: string | null | undefined;
|
|
3162
3164
|
};
|
|
3163
|
-
amount: bigint;
|
|
3164
|
-
marketAddress: string;
|
|
3165
3165
|
}, {
|
|
3166
|
+
amount: bigint;
|
|
3166
3167
|
walletAddress: string;
|
|
3168
|
+
marketAddress: string;
|
|
3167
3169
|
inputToken: {
|
|
3168
3170
|
symbol: string;
|
|
3169
3171
|
tokenUid: {
|
|
@@ -3176,8 +3178,6 @@ declare const MintPtAndYtRequestSchema: z.ZodObject<{
|
|
|
3176
3178
|
isVetted: boolean;
|
|
3177
3179
|
iconUri?: string | null | undefined;
|
|
3178
3180
|
};
|
|
3179
|
-
amount: bigint;
|
|
3180
|
-
marketAddress: string;
|
|
3181
3181
|
slippage?: string | undefined;
|
|
3182
3182
|
}>;
|
|
3183
3183
|
type MintPtAndYtRequest = z.infer<typeof MintPtAndYtRequestSchema>;
|
|
@@ -3224,6 +3224,13 @@ declare const MintPtAndYtResponseSchema: z.ZodObject<{
|
|
|
3224
3224
|
data: string;
|
|
3225
3225
|
}>, "many">;
|
|
3226
3226
|
}, "strip", z.ZodTypeAny, {
|
|
3227
|
+
transactions: {
|
|
3228
|
+
chainId: string;
|
|
3229
|
+
value: string;
|
|
3230
|
+
type: string;
|
|
3231
|
+
to: string;
|
|
3232
|
+
data: string;
|
|
3233
|
+
}[];
|
|
3227
3234
|
exactPtAmount: string;
|
|
3228
3235
|
ptTokenIdentifier: {
|
|
3229
3236
|
chainId: string;
|
|
@@ -3234,6 +3241,7 @@ declare const MintPtAndYtResponseSchema: z.ZodObject<{
|
|
|
3234
3241
|
chainId: string;
|
|
3235
3242
|
address: string;
|
|
3236
3243
|
};
|
|
3244
|
+
}, {
|
|
3237
3245
|
transactions: {
|
|
3238
3246
|
chainId: string;
|
|
3239
3247
|
value: string;
|
|
@@ -3241,7 +3249,6 @@ declare const MintPtAndYtResponseSchema: z.ZodObject<{
|
|
|
3241
3249
|
to: string;
|
|
3242
3250
|
data: string;
|
|
3243
3251
|
}[];
|
|
3244
|
-
}, {
|
|
3245
3252
|
exactPtAmount: string;
|
|
3246
3253
|
ptTokenIdentifier: {
|
|
3247
3254
|
chainId: string;
|
|
@@ -3252,13 +3259,6 @@ declare const MintPtAndYtResponseSchema: z.ZodObject<{
|
|
|
3252
3259
|
chainId: string;
|
|
3253
3260
|
address: string;
|
|
3254
3261
|
};
|
|
3255
|
-
transactions: {
|
|
3256
|
-
chainId: string;
|
|
3257
|
-
value: string;
|
|
3258
|
-
type: string;
|
|
3259
|
-
to: string;
|
|
3260
|
-
data: string;
|
|
3261
|
-
}[];
|
|
3262
3262
|
}>;
|
|
3263
3263
|
type MintPtAndYtResponse = z.infer<typeof MintPtAndYtResponseSchema>;
|
|
3264
3264
|
declare const BuyPtRequestSchema: z.ZodObject<{
|
|
@@ -3307,7 +3307,9 @@ declare const BuyPtRequestSchema: z.ZodObject<{
|
|
|
3307
3307
|
amount: z.ZodBigInt;
|
|
3308
3308
|
marketAddress: z.ZodString;
|
|
3309
3309
|
}, "strip", z.ZodTypeAny, {
|
|
3310
|
+
amount: bigint;
|
|
3310
3311
|
walletAddress: string;
|
|
3312
|
+
marketAddress: string;
|
|
3311
3313
|
slippage: string;
|
|
3312
3314
|
inputToken: {
|
|
3313
3315
|
symbol: string;
|
|
@@ -3321,10 +3323,10 @@ declare const BuyPtRequestSchema: z.ZodObject<{
|
|
|
3321
3323
|
isVetted: boolean;
|
|
3322
3324
|
iconUri?: string | null | undefined;
|
|
3323
3325
|
};
|
|
3324
|
-
amount: bigint;
|
|
3325
|
-
marketAddress: string;
|
|
3326
3326
|
}, {
|
|
3327
|
+
amount: bigint;
|
|
3327
3328
|
walletAddress: string;
|
|
3329
|
+
marketAddress: string;
|
|
3328
3330
|
inputToken: {
|
|
3329
3331
|
symbol: string;
|
|
3330
3332
|
tokenUid: {
|
|
@@ -3337,8 +3339,6 @@ declare const BuyPtRequestSchema: z.ZodObject<{
|
|
|
3337
3339
|
isVetted: boolean;
|
|
3338
3340
|
iconUri?: string | null | undefined;
|
|
3339
3341
|
};
|
|
3340
|
-
amount: bigint;
|
|
3341
|
-
marketAddress: string;
|
|
3342
3342
|
slippage?: string | undefined;
|
|
3343
3343
|
}>;
|
|
3344
3344
|
type BuyPtRequest = z.infer<typeof BuyPtRequestSchema>;
|
|
@@ -3374,11 +3374,6 @@ declare const BuyPtResponseSchema: z.ZodObject<{
|
|
|
3374
3374
|
data: string;
|
|
3375
3375
|
}>, "many">;
|
|
3376
3376
|
}, "strip", z.ZodTypeAny, {
|
|
3377
|
-
exactPtAmount: string;
|
|
3378
|
-
ptTokenIdentifier: {
|
|
3379
|
-
chainId: string;
|
|
3380
|
-
address: string;
|
|
3381
|
-
};
|
|
3382
3377
|
transactions: {
|
|
3383
3378
|
chainId: string;
|
|
3384
3379
|
value: string;
|
|
@@ -3386,12 +3381,12 @@ declare const BuyPtResponseSchema: z.ZodObject<{
|
|
|
3386
3381
|
to: string;
|
|
3387
3382
|
data: string;
|
|
3388
3383
|
}[];
|
|
3389
|
-
}, {
|
|
3390
3384
|
exactPtAmount: string;
|
|
3391
3385
|
ptTokenIdentifier: {
|
|
3392
3386
|
chainId: string;
|
|
3393
3387
|
address: string;
|
|
3394
3388
|
};
|
|
3389
|
+
}, {
|
|
3395
3390
|
transactions: {
|
|
3396
3391
|
chainId: string;
|
|
3397
3392
|
value: string;
|
|
@@ -3399,6 +3394,11 @@ declare const BuyPtResponseSchema: z.ZodObject<{
|
|
|
3399
3394
|
to: string;
|
|
3400
3395
|
data: string;
|
|
3401
3396
|
}[];
|
|
3397
|
+
exactPtAmount: string;
|
|
3398
|
+
ptTokenIdentifier: {
|
|
3399
|
+
chainId: string;
|
|
3400
|
+
address: string;
|
|
3401
|
+
};
|
|
3402
3402
|
}>;
|
|
3403
3403
|
type BuyPtResponse = z.infer<typeof BuyPtResponseSchema>;
|
|
3404
3404
|
declare const BuyYtRequestSchema: z.ZodObject<{
|
|
@@ -3447,7 +3447,9 @@ declare const BuyYtRequestSchema: z.ZodObject<{
|
|
|
3447
3447
|
amount: z.ZodBigInt;
|
|
3448
3448
|
marketAddress: z.ZodString;
|
|
3449
3449
|
}, "strip", z.ZodTypeAny, {
|
|
3450
|
+
amount: bigint;
|
|
3450
3451
|
walletAddress: string;
|
|
3452
|
+
marketAddress: string;
|
|
3451
3453
|
slippage: string;
|
|
3452
3454
|
inputToken: {
|
|
3453
3455
|
symbol: string;
|
|
@@ -3461,10 +3463,10 @@ declare const BuyYtRequestSchema: z.ZodObject<{
|
|
|
3461
3463
|
isVetted: boolean;
|
|
3462
3464
|
iconUri?: string | null | undefined;
|
|
3463
3465
|
};
|
|
3464
|
-
amount: bigint;
|
|
3465
|
-
marketAddress: string;
|
|
3466
3466
|
}, {
|
|
3467
|
+
amount: bigint;
|
|
3467
3468
|
walletAddress: string;
|
|
3469
|
+
marketAddress: string;
|
|
3468
3470
|
inputToken: {
|
|
3469
3471
|
symbol: string;
|
|
3470
3472
|
tokenUid: {
|
|
@@ -3477,8 +3479,6 @@ declare const BuyYtRequestSchema: z.ZodObject<{
|
|
|
3477
3479
|
isVetted: boolean;
|
|
3478
3480
|
iconUri?: string | null | undefined;
|
|
3479
3481
|
};
|
|
3480
|
-
amount: bigint;
|
|
3481
|
-
marketAddress: string;
|
|
3482
3482
|
slippage?: string | undefined;
|
|
3483
3483
|
}>;
|
|
3484
3484
|
type BuyYtRequest = z.infer<typeof BuyYtRequestSchema>;
|
|
@@ -3514,11 +3514,6 @@ declare const BuyYtResponseSchema: z.ZodObject<{
|
|
|
3514
3514
|
data: string;
|
|
3515
3515
|
}>, "many">;
|
|
3516
3516
|
}, "strip", z.ZodTypeAny, {
|
|
3517
|
-
exactYtAmount: string;
|
|
3518
|
-
ytTokenIdentifier: {
|
|
3519
|
-
chainId: string;
|
|
3520
|
-
address: string;
|
|
3521
|
-
};
|
|
3522
3517
|
transactions: {
|
|
3523
3518
|
chainId: string;
|
|
3524
3519
|
value: string;
|
|
@@ -3526,12 +3521,12 @@ declare const BuyYtResponseSchema: z.ZodObject<{
|
|
|
3526
3521
|
to: string;
|
|
3527
3522
|
data: string;
|
|
3528
3523
|
}[];
|
|
3529
|
-
}, {
|
|
3530
3524
|
exactYtAmount: string;
|
|
3531
3525
|
ytTokenIdentifier: {
|
|
3532
3526
|
chainId: string;
|
|
3533
3527
|
address: string;
|
|
3534
3528
|
};
|
|
3529
|
+
}, {
|
|
3535
3530
|
transactions: {
|
|
3536
3531
|
chainId: string;
|
|
3537
3532
|
value: string;
|
|
@@ -3539,6 +3534,11 @@ declare const BuyYtResponseSchema: z.ZodObject<{
|
|
|
3539
3534
|
to: string;
|
|
3540
3535
|
data: string;
|
|
3541
3536
|
}[];
|
|
3537
|
+
exactYtAmount: string;
|
|
3538
|
+
ytTokenIdentifier: {
|
|
3539
|
+
chainId: string;
|
|
3540
|
+
address: string;
|
|
3541
|
+
};
|
|
3542
3542
|
}>;
|
|
3543
3543
|
type BuyYtResponse = z.infer<typeof BuyYtResponseSchema>;
|
|
3544
3544
|
declare const SellPtRequestSchema: z.ZodObject<{
|
|
@@ -3586,9 +3586,9 @@ declare const SellPtRequestSchema: z.ZodObject<{
|
|
|
3586
3586
|
}>;
|
|
3587
3587
|
amount: z.ZodBigInt;
|
|
3588
3588
|
}, "strip", z.ZodTypeAny, {
|
|
3589
|
+
amount: bigint;
|
|
3589
3590
|
walletAddress: string;
|
|
3590
3591
|
slippage: string;
|
|
3591
|
-
amount: bigint;
|
|
3592
3592
|
ptToken: {
|
|
3593
3593
|
symbol: string;
|
|
3594
3594
|
tokenUid: {
|
|
@@ -3602,8 +3602,8 @@ declare const SellPtRequestSchema: z.ZodObject<{
|
|
|
3602
3602
|
iconUri?: string | null | undefined;
|
|
3603
3603
|
};
|
|
3604
3604
|
}, {
|
|
3605
|
-
walletAddress: string;
|
|
3606
3605
|
amount: bigint;
|
|
3606
|
+
walletAddress: string;
|
|
3607
3607
|
ptToken: {
|
|
3608
3608
|
symbol: string;
|
|
3609
3609
|
tokenUid: {
|
|
@@ -3723,9 +3723,9 @@ declare const SellYtRequestSchema: z.ZodObject<{
|
|
|
3723
3723
|
}>;
|
|
3724
3724
|
amount: z.ZodBigInt;
|
|
3725
3725
|
}, "strip", z.ZodTypeAny, {
|
|
3726
|
+
amount: bigint;
|
|
3726
3727
|
walletAddress: string;
|
|
3727
3728
|
slippage: string;
|
|
3728
|
-
amount: bigint;
|
|
3729
3729
|
ytToken: {
|
|
3730
3730
|
symbol: string;
|
|
3731
3731
|
tokenUid: {
|
|
@@ -3739,8 +3739,8 @@ declare const SellYtRequestSchema: z.ZodObject<{
|
|
|
3739
3739
|
iconUri?: string | null | undefined;
|
|
3740
3740
|
};
|
|
3741
3741
|
}, {
|
|
3742
|
-
walletAddress: string;
|
|
3743
3742
|
amount: bigint;
|
|
3743
|
+
walletAddress: string;
|
|
3744
3744
|
ytToken: {
|
|
3745
3745
|
symbol: string;
|
|
3746
3746
|
tokenUid: {
|
|
@@ -3859,8 +3859,8 @@ declare const RedeemPtRequestSchema: z.ZodObject<{
|
|
|
3859
3859
|
}>;
|
|
3860
3860
|
amount: z.ZodBigInt;
|
|
3861
3861
|
}, "strip", z.ZodTypeAny, {
|
|
3862
|
-
walletAddress: string;
|
|
3863
3862
|
amount: bigint;
|
|
3863
|
+
walletAddress: string;
|
|
3864
3864
|
ptToken: {
|
|
3865
3865
|
symbol: string;
|
|
3866
3866
|
tokenUid: {
|
|
@@ -3874,8 +3874,8 @@ declare const RedeemPtRequestSchema: z.ZodObject<{
|
|
|
3874
3874
|
iconUri?: string | null | undefined;
|
|
3875
3875
|
};
|
|
3876
3876
|
}, {
|
|
3877
|
-
walletAddress: string;
|
|
3878
3877
|
amount: bigint;
|
|
3878
|
+
walletAddress: string;
|
|
3879
3879
|
ptToken: {
|
|
3880
3880
|
symbol: string;
|
|
3881
3881
|
tokenUid: {
|
|
@@ -4111,6 +4111,7 @@ declare const TokenizedYieldMarketSchema: z.ZodObject<{
|
|
|
4111
4111
|
expiry: z.ZodString;
|
|
4112
4112
|
details: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4113
4113
|
}, "strip", z.ZodTypeAny, {
|
|
4114
|
+
details: {};
|
|
4114
4115
|
ptTokenIdentifier: {
|
|
4115
4116
|
chainId: string;
|
|
4116
4117
|
address: string;
|
|
@@ -4128,8 +4129,8 @@ declare const TokenizedYieldMarketSchema: z.ZodObject<{
|
|
|
4128
4129
|
address: string;
|
|
4129
4130
|
};
|
|
4130
4131
|
expiry: string;
|
|
4131
|
-
details: {};
|
|
4132
4132
|
}, {
|
|
4133
|
+
details: {};
|
|
4133
4134
|
ptTokenIdentifier: {
|
|
4134
4135
|
chainId: string;
|
|
4135
4136
|
address: string;
|
|
@@ -4147,7 +4148,6 @@ declare const TokenizedYieldMarketSchema: z.ZodObject<{
|
|
|
4147
4148
|
address: string;
|
|
4148
4149
|
};
|
|
4149
4150
|
expiry: string;
|
|
4150
|
-
details: {};
|
|
4151
4151
|
}>;
|
|
4152
4152
|
type TokenizedYieldMarket = z.infer<typeof TokenizedYieldMarketSchema>;
|
|
4153
4153
|
declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
@@ -4195,6 +4195,7 @@ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
|
4195
4195
|
expiry: z.ZodString;
|
|
4196
4196
|
details: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4197
4197
|
}, "strip", z.ZodTypeAny, {
|
|
4198
|
+
details: {};
|
|
4198
4199
|
ptTokenIdentifier: {
|
|
4199
4200
|
chainId: string;
|
|
4200
4201
|
address: string;
|
|
@@ -4212,8 +4213,8 @@ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
|
4212
4213
|
address: string;
|
|
4213
4214
|
};
|
|
4214
4215
|
expiry: string;
|
|
4215
|
-
details: {};
|
|
4216
4216
|
}, {
|
|
4217
|
+
details: {};
|
|
4217
4218
|
ptTokenIdentifier: {
|
|
4218
4219
|
chainId: string;
|
|
4219
4220
|
address: string;
|
|
@@ -4231,10 +4232,10 @@ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
|
4231
4232
|
address: string;
|
|
4232
4233
|
};
|
|
4233
4234
|
expiry: string;
|
|
4234
|
-
details: {};
|
|
4235
4235
|
}>, "many">;
|
|
4236
4236
|
}, "strip", z.ZodTypeAny, {
|
|
4237
4237
|
markets: {
|
|
4238
|
+
details: {};
|
|
4238
4239
|
ptTokenIdentifier: {
|
|
4239
4240
|
chainId: string;
|
|
4240
4241
|
address: string;
|
|
@@ -4252,10 +4253,10 @@ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
|
4252
4253
|
address: string;
|
|
4253
4254
|
};
|
|
4254
4255
|
expiry: string;
|
|
4255
|
-
details: {};
|
|
4256
4256
|
}[];
|
|
4257
4257
|
}, {
|
|
4258
4258
|
markets: {
|
|
4259
|
+
details: {};
|
|
4259
4260
|
ptTokenIdentifier: {
|
|
4260
4261
|
chainId: string;
|
|
4261
4262
|
address: string;
|
|
@@ -4273,7 +4274,6 @@ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
|
|
|
4273
4274
|
address: string;
|
|
4274
4275
|
};
|
|
4275
4276
|
expiry: string;
|
|
4276
|
-
details: {};
|
|
4277
4277
|
}[];
|
|
4278
4278
|
}>;
|
|
4279
4279
|
type MarketTokenizedYieldResponse = z.infer<typeof MarketTokenizedYieldResponseSchema>;
|
|
@@ -4760,14 +4760,14 @@ type LiquidityGetPoolsOptions = {
|
|
|
4760
4760
|
poolAddresses?: string[];
|
|
4761
4761
|
};
|
|
4762
4762
|
/**
|
|
4763
|
-
*
|
|
4764
|
-
* and an empty or undefined positionIds array means no filtering.
|
|
4763
|
+
* Request params for fetching wallet liquidity positions. walletAddress is required, includePrices defaults
|
|
4764
|
+
* to true when omitted, and an empty or undefined positionIds array means no filtering.
|
|
4765
4765
|
*/
|
|
4766
4766
|
type LiquidityGetWalletPositionsOptions = GetWalletLiquidityPositionsRequest;
|
|
4767
4767
|
/**
|
|
4768
4768
|
* Get liquidity positions for a wallet.
|
|
4769
4769
|
*/
|
|
4770
|
-
type LiquidityGetWalletPositions = (options
|
|
4770
|
+
type LiquidityGetWalletPositions = (options: LiquidityGetWalletPositionsOptions) => Promise<GetWalletLiquidityPositionsResponse>;
|
|
4771
4771
|
/**
|
|
4772
4772
|
* Get all liquidity pools.
|
|
4773
4773
|
*/
|