@longdotxyz/shared 0.0.31 → 0.0.33
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/contracts/asset.contract.d.ts +13 -0
- package/dist/contracts/asset.contract.js +17 -6
- package/dist/contracts/asset.contract.js.map +1 -1
- package/dist/contracts/auction-template.contract.d.ts +7 -0
- package/dist/contracts/auction-template.contract.js +6 -0
- package/dist/contracts/auction-template.contract.js.map +1 -1
- package/dist/contracts/auction.contract.d.ts +17 -3
- package/dist/contracts/auction.contract.js +13 -1
- package/dist/contracts/auction.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +65 -15
- package/dist/contracts/quote.contract.d.ts +28 -12
- package/dist/contracts/quote.contract.js +20 -4
- package/dist/contracts/quote.contract.js.map +1 -1
- package/dist/graphql/generated.d.ts +8 -0
- package/dist/graphql/generated.js +18 -16
- package/dist/graphql/generated.js.map +1 -1
- package/dist/types/constants.d.ts +4 -0
- package/dist/types/constants.js +6 -1
- package/dist/types/constants.js.map +1 -1
- package/package.json +1 -1
|
@@ -530,15 +530,18 @@ declare const assetContract: {
|
|
|
530
530
|
listAssets: {
|
|
531
531
|
description: "List all assets for an integrator, with optional status filtering, pagination and default ordering by creation timestamp";
|
|
532
532
|
query: z.ZodObject<{
|
|
533
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
533
534
|
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AssetStatus>>>;
|
|
534
535
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
535
536
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
536
537
|
}, "strip", z.ZodTypeAny, {
|
|
537
538
|
status: AssetStatus;
|
|
539
|
+
chainId: number;
|
|
538
540
|
limit: number;
|
|
539
541
|
offset: number;
|
|
540
542
|
}, {
|
|
541
543
|
status?: AssetStatus | undefined;
|
|
544
|
+
chainId?: number | undefined;
|
|
542
545
|
limit?: number | undefined;
|
|
543
546
|
offset?: number | undefined;
|
|
544
547
|
}>;
|
|
@@ -1244,13 +1247,16 @@ declare const assetContract: {
|
|
|
1244
1247
|
searchAssets: {
|
|
1245
1248
|
description: "Search through all assets for an integrator by providing a term to match against an address, symbol or name";
|
|
1246
1249
|
query: z.ZodObject<{
|
|
1250
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1247
1251
|
term: z.ZodString;
|
|
1248
1252
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1249
1253
|
}, "strip", z.ZodTypeAny, {
|
|
1254
|
+
chainId: number;
|
|
1250
1255
|
limit: number;
|
|
1251
1256
|
term: string;
|
|
1252
1257
|
}, {
|
|
1253
1258
|
term: string;
|
|
1259
|
+
chainId?: number | undefined;
|
|
1254
1260
|
limit?: number | undefined;
|
|
1255
1261
|
}>;
|
|
1256
1262
|
method: "GET";
|
|
@@ -1961,6 +1967,13 @@ declare const assetContract: {
|
|
|
1961
1967
|
}, {
|
|
1962
1968
|
assetAddress: string;
|
|
1963
1969
|
}>;
|
|
1970
|
+
query: z.ZodObject<{
|
|
1971
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
1972
|
+
}, "strip", z.ZodTypeAny, {
|
|
1973
|
+
chainId: number;
|
|
1974
|
+
}, {
|
|
1975
|
+
chainId?: number | undefined;
|
|
1976
|
+
}>;
|
|
1964
1977
|
method: "GET";
|
|
1965
1978
|
path: "/assets/:assetAddress";
|
|
1966
1979
|
responses: {
|
|
@@ -115,9 +115,12 @@ const assetContract = contract.router({
|
|
|
115
115
|
method: "GET",
|
|
116
116
|
path: "/",
|
|
117
117
|
query: zod_1.default.object({
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
119
|
+
message: "Invalid chain ID"
|
|
120
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the assets to list"),
|
|
121
|
+
status: zod_1.default.nativeEnum(types_1.AssetStatus).optional().default(types_1.AssetStatus.ALL).describe("The status of the assets to list"),
|
|
122
|
+
limit: zod_1.default.coerce.number().int().min(0).max(50).optional().default(10).describe("The limit of the assets to list"),
|
|
123
|
+
offset: zod_1.default.coerce.number().int().min(0).optional().default(0).describe("The offset of the assets to list"),
|
|
121
124
|
}),
|
|
122
125
|
responses: {
|
|
123
126
|
200: zod_1.default.object({
|
|
@@ -130,8 +133,11 @@ const assetContract = contract.router({
|
|
|
130
133
|
method: "GET",
|
|
131
134
|
path: "/search",
|
|
132
135
|
query: zod_1.default.object({
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
137
|
+
message: "Invalid chain ID"
|
|
138
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the assets to search"),
|
|
139
|
+
term: zod_1.default.string().describe("The term to search for in the assets"),
|
|
140
|
+
limit: zod_1.default.coerce.number().int().min(0).max(50).optional().default(50).describe("The limit of the assets to search"),
|
|
135
141
|
}),
|
|
136
142
|
responses: {
|
|
137
143
|
200: zod_1.default.object({
|
|
@@ -143,8 +149,13 @@ const assetContract = contract.router({
|
|
|
143
149
|
getAsset: {
|
|
144
150
|
method: "GET",
|
|
145
151
|
path: "/:assetAddress",
|
|
152
|
+
query: zod_1.default.object({
|
|
153
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
154
|
+
message: "Invalid chain ID"
|
|
155
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the asset to get"),
|
|
156
|
+
}),
|
|
146
157
|
pathParams: zod_1.default.object({
|
|
147
|
-
assetAddress: zod_1.default.string().pipe(types_1.hex),
|
|
158
|
+
assetAddress: zod_1.default.string().pipe(types_1.hex).describe("The address of the asset to get"),
|
|
148
159
|
}),
|
|
149
160
|
responses: {
|
|
150
161
|
200: zod_1.default.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.contract.js","sourceRoot":"","sources":["../../src/contracts/asset.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,
|
|
1
|
+
{"version":3,"file":"asset.contract.js","sourceRoot":"","sources":["../../src/contracts/asset.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAqD;AAErD,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,aAAa,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3B,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,oOAAoO,CAAC;IAClR,uBAAuB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,qJAAqJ,CAAC;IAC7M,wBAAwB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wLAAwL,CAAC;IACvO,yBAAyB,EAAE,aAAC;SACvB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4OAA4O,CAAC;IAC3P,YAAY,EAAE,aAAC;SACV,MAAM,CAAC;QACJ,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6LAA6L,CAAC;QACtO,uBAAuB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kJAAkJ,CAAC;QAChM,gBAAgB,EAAE,aAAC;aACd,MAAM,EAAE;aACR,QAAQ,CACL,iSAAiS,CACpS;QACL,sBAAsB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kMAAkM,CAAC;QAC/O,iBAAiB,EAAE,aAAC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,CAAC,aAAa,CAAC;aACjC,CAAC;SACL;QACD,WAAW,EAAE,6GAA6G;KAC7H;IACD,QAAQ,EAAE;QACN,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,aAAC,CAAC,MAAM,CAAC;YACZ,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC5E,OAAO,EAAE,kBAAkB;aAC9B,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;SAC3F,CAAC;QACF,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC;YACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;SACjF,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAa;aACxB,CAAC;SACL;QACD,WAAW,EAAE,6BAA6B;KAC7C;CACJ,EACD;IACI,UAAU,EAAE,SAAS;CACxB,CACJ,CAAC;AAEO,sCAAa"}
|
|
@@ -15,6 +15,13 @@ declare const AuctionTemplateResponse: z.ZodObject<{
|
|
|
15
15
|
declare const auctionTemplateContract: {
|
|
16
16
|
listAuctionTemplates: {
|
|
17
17
|
description: "List all auction templates for an integrator";
|
|
18
|
+
query: z.ZodObject<{
|
|
19
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
chainId: number;
|
|
22
|
+
}, {
|
|
23
|
+
chainId?: number | undefined;
|
|
24
|
+
}>;
|
|
18
25
|
method: "GET";
|
|
19
26
|
path: "/auction-templates/";
|
|
20
27
|
responses: {
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuctionTemplateResponse = exports.auctionTemplateContract = void 0;
|
|
4
4
|
const core_1 = require("@ts-rest/core");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
+
const types_1 = require("../types");
|
|
6
7
|
const contract = (0, core_1.initContract)();
|
|
7
8
|
const AuctionTemplateResponse = zod_1.default.object({
|
|
8
9
|
id: zod_1.default.string(),
|
|
@@ -14,6 +15,11 @@ const auctionTemplateContract = contract.router({
|
|
|
14
15
|
listAuctionTemplates: {
|
|
15
16
|
method: "GET",
|
|
16
17
|
path: "/",
|
|
18
|
+
query: zod_1.default.object({
|
|
19
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
20
|
+
message: "Invalid chain ID"
|
|
21
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the auction templates to list"),
|
|
22
|
+
}),
|
|
17
23
|
responses: {
|
|
18
24
|
200: zod_1.default.object({
|
|
19
25
|
result: zod_1.default.array(AuctionTemplateResponse),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction-template.contract.js","sourceRoot":"","sources":["../../src/contracts/auction-template.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"auction-template.contract.js","sourceRoot":"","sources":["../../src/contracts/auction-template.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAyB+B,0DAAuB;AAvBzD,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAC3C;IACI,oBAAoB,EAAE;QAClB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,aAAC,CAAC,MAAM,CAAC;YACZ,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC5E,OAAO,EAAE,kBAAkB;aAC9B,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC;SACxG,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;aAC3C,CAAC;SACL;QACD,WAAW,EAAE,8CAA8C;KAC9D;CACJ,EACD;IACI,UAAU,EAAE,oBAAoB;CACnC,CACJ,CAAC;AAEO,0DAAuB"}
|
|
@@ -116,6 +116,13 @@ declare const CreateDynamicAuctionResponse: z.ZodObject<{
|
|
|
116
116
|
declare const auctionContract: {
|
|
117
117
|
listAuctions: {
|
|
118
118
|
description: "List all auctions for an integrator";
|
|
119
|
+
query: z.ZodObject<{
|
|
120
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
chainId: number;
|
|
123
|
+
}, {
|
|
124
|
+
chainId?: number | undefined;
|
|
125
|
+
}>;
|
|
119
126
|
method: "GET";
|
|
120
127
|
path: "/auctions/";
|
|
121
128
|
responses: {
|
|
@@ -176,11 +183,14 @@ declare const auctionContract: {
|
|
|
176
183
|
getAuctionByPoolAddress: {
|
|
177
184
|
description: "Get an auction by its pool address";
|
|
178
185
|
pathParams: z.ZodObject<{
|
|
186
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
179
187
|
poolAddress: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
180
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
chainId: number;
|
|
181
190
|
poolAddress: `0x${string}`;
|
|
182
191
|
}, {
|
|
183
192
|
poolAddress: string;
|
|
193
|
+
chainId?: number | undefined;
|
|
184
194
|
}>;
|
|
185
195
|
method: "GET";
|
|
186
196
|
path: "/auctions/:poolAddress";
|
|
@@ -241,9 +251,15 @@ declare const auctionContract: {
|
|
|
241
251
|
};
|
|
242
252
|
createDynamicAuction: {
|
|
243
253
|
description: "Create a dynamic auction based on an auction template";
|
|
254
|
+
query: z.ZodObject<{
|
|
255
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
chainId: number;
|
|
258
|
+
}, {
|
|
259
|
+
chainId?: number | undefined;
|
|
260
|
+
}>;
|
|
244
261
|
method: "POST";
|
|
245
262
|
body: z.ZodObject<{
|
|
246
|
-
chain_id: z.ZodNumber;
|
|
247
263
|
template_id: z.ZodString;
|
|
248
264
|
debug: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
249
265
|
metadata: z.ZodObject<{
|
|
@@ -269,7 +285,6 @@ declare const auctionContract: {
|
|
|
269
285
|
token_uri: string;
|
|
270
286
|
user_address: `0x${string}`;
|
|
271
287
|
};
|
|
272
|
-
chain_id: number;
|
|
273
288
|
template_id: string;
|
|
274
289
|
debug: boolean;
|
|
275
290
|
}, {
|
|
@@ -279,7 +294,6 @@ declare const auctionContract: {
|
|
|
279
294
|
token_uri: string;
|
|
280
295
|
user_address: string;
|
|
281
296
|
};
|
|
282
|
-
chain_id: number;
|
|
283
297
|
template_id: string;
|
|
284
298
|
debug?: boolean | undefined;
|
|
285
299
|
}>;
|
|
@@ -43,6 +43,11 @@ const auctionContract = contract.router({
|
|
|
43
43
|
listAuctions: {
|
|
44
44
|
method: "GET",
|
|
45
45
|
path: "/",
|
|
46
|
+
query: zod_1.default.object({
|
|
47
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
48
|
+
message: "Invalid chain ID"
|
|
49
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the auctions to list"),
|
|
50
|
+
}),
|
|
46
51
|
responses: {
|
|
47
52
|
200: zod_1.default.object({
|
|
48
53
|
result: zod_1.default.array(AuctionResponse),
|
|
@@ -54,6 +59,9 @@ const auctionContract = contract.router({
|
|
|
54
59
|
method: "GET",
|
|
55
60
|
path: "/:poolAddress",
|
|
56
61
|
pathParams: zod_1.default.object({
|
|
62
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
63
|
+
message: "Invalid chain ID"
|
|
64
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the auction to get"),
|
|
57
65
|
poolAddress: zod_1.default.string().pipe(types_1.hex),
|
|
58
66
|
}),
|
|
59
67
|
responses: {
|
|
@@ -66,8 +74,12 @@ const auctionContract = contract.router({
|
|
|
66
74
|
createDynamicAuction: {
|
|
67
75
|
method: "POST",
|
|
68
76
|
path: "/dynamic",
|
|
77
|
+
query: zod_1.default.object({
|
|
78
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
79
|
+
message: "Invalid chain ID"
|
|
80
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the auction to create"),
|
|
81
|
+
}),
|
|
69
82
|
body: zod_1.default.object({
|
|
70
|
-
chain_id: zod_1.default.number().describe("The chain ID (e.g. 8453 for Base)"),
|
|
71
83
|
template_id: zod_1.default.string().describe("The auction template ID (from the Long Team)"),
|
|
72
84
|
debug: zod_1.default.boolean().optional().default(false).describe("Whether to include debug information in the response"),
|
|
73
85
|
metadata: zod_1.default.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,
|
|
1
|
+
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAwC;AAExC,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,eAAe,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7B,oBAAoB,EAAE,aAAC,CAAC,MAAM,EAAE;IAChC,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE;IAC3B,uBAAuB,EAAE,aAAC,CAAC,MAAM,EAAE;IACnC,yBAAyB,EAAE,aAAC,CAAC,MAAM,EAAE;IACrC,0BAA0B,EAAE,aAAC,CAAC,MAAM,EAAE;IACtC,wBAAwB,EAAE,aAAC,CAAC,MAAM,EAAE;IACpC,0BAA0B,EAAE,aAAC,CAAC,MAAM,EAAE;IACtC,2BAA2B,EAAE,aAAC,CAAC,MAAM,EAAE;CAC1C,CAAC,CAAC;AAyFqD,0CAAe;AAvFvE,MAAM,4BAA4B,GA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AAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,yDAAyD,CAAC;aACzG,CAAC;SACL,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,4BAA4B;aACvC,CAAC;SACL;QACD,WAAW,EAAE,uDAAuD;KACvE;CACJ,EACD;IACI,UAAU,EAAE,WAAW;CAC1B,CACJ,CAAC;AAEO,0CAAe"}
|
|
@@ -3,15 +3,18 @@ export declare const rootContract: {
|
|
|
3
3
|
listAssets: {
|
|
4
4
|
description: "List all assets for an integrator, with optional status filtering, pagination and default ordering by creation timestamp";
|
|
5
5
|
query: import("zod").ZodObject<{
|
|
6
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
6
7
|
status: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("..").AssetStatus>>>;
|
|
7
8
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
8
9
|
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
9
10
|
}, "strip", import("zod").ZodTypeAny, {
|
|
10
11
|
status: import("..").AssetStatus;
|
|
12
|
+
chainId: number;
|
|
11
13
|
limit: number;
|
|
12
14
|
offset: number;
|
|
13
15
|
}, {
|
|
14
16
|
status?: import("..").AssetStatus | undefined;
|
|
17
|
+
chainId?: number | undefined;
|
|
15
18
|
limit?: number | undefined;
|
|
16
19
|
offset?: number | undefined;
|
|
17
20
|
}>;
|
|
@@ -717,13 +720,16 @@ export declare const rootContract: {
|
|
|
717
720
|
searchAssets: {
|
|
718
721
|
description: "Search through all assets for an integrator by providing a term to match against an address, symbol or name";
|
|
719
722
|
query: import("zod").ZodObject<{
|
|
723
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
720
724
|
term: import("zod").ZodString;
|
|
721
725
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
722
726
|
}, "strip", import("zod").ZodTypeAny, {
|
|
727
|
+
chainId: number;
|
|
723
728
|
limit: number;
|
|
724
729
|
term: string;
|
|
725
730
|
}, {
|
|
726
731
|
term: string;
|
|
732
|
+
chainId?: number | undefined;
|
|
727
733
|
limit?: number | undefined;
|
|
728
734
|
}>;
|
|
729
735
|
method: "GET";
|
|
@@ -1434,6 +1440,13 @@ export declare const rootContract: {
|
|
|
1434
1440
|
}, {
|
|
1435
1441
|
assetAddress: string;
|
|
1436
1442
|
}>;
|
|
1443
|
+
query: import("zod").ZodObject<{
|
|
1444
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
1445
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1446
|
+
chainId: number;
|
|
1447
|
+
}, {
|
|
1448
|
+
chainId?: number | undefined;
|
|
1449
|
+
}>;
|
|
1437
1450
|
method: "GET";
|
|
1438
1451
|
path: "/assets/:assetAddress";
|
|
1439
1452
|
responses: {
|
|
@@ -2137,6 +2150,13 @@ export declare const rootContract: {
|
|
|
2137
2150
|
auctions: {
|
|
2138
2151
|
listAuctions: {
|
|
2139
2152
|
description: "List all auctions for an integrator";
|
|
2153
|
+
query: import("zod").ZodObject<{
|
|
2154
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2155
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2156
|
+
chainId: number;
|
|
2157
|
+
}, {
|
|
2158
|
+
chainId?: number | undefined;
|
|
2159
|
+
}>;
|
|
2140
2160
|
method: "GET";
|
|
2141
2161
|
path: "/auctions/";
|
|
2142
2162
|
responses: {
|
|
@@ -2197,11 +2217,14 @@ export declare const rootContract: {
|
|
|
2197
2217
|
getAuctionByPoolAddress: {
|
|
2198
2218
|
description: "Get an auction by its pool address";
|
|
2199
2219
|
pathParams: import("zod").ZodObject<{
|
|
2220
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2200
2221
|
poolAddress: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2201
2222
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2223
|
+
chainId: number;
|
|
2202
2224
|
poolAddress: `0x${string}`;
|
|
2203
2225
|
}, {
|
|
2204
2226
|
poolAddress: string;
|
|
2227
|
+
chainId?: number | undefined;
|
|
2205
2228
|
}>;
|
|
2206
2229
|
method: "GET";
|
|
2207
2230
|
path: "/auctions/:poolAddress";
|
|
@@ -2262,9 +2285,15 @@ export declare const rootContract: {
|
|
|
2262
2285
|
};
|
|
2263
2286
|
createDynamicAuction: {
|
|
2264
2287
|
description: "Create a dynamic auction based on an auction template";
|
|
2288
|
+
query: import("zod").ZodObject<{
|
|
2289
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2290
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2291
|
+
chainId: number;
|
|
2292
|
+
}, {
|
|
2293
|
+
chainId?: number | undefined;
|
|
2294
|
+
}>;
|
|
2265
2295
|
method: "POST";
|
|
2266
2296
|
body: import("zod").ZodObject<{
|
|
2267
|
-
chain_id: import("zod").ZodNumber;
|
|
2268
2297
|
template_id: import("zod").ZodString;
|
|
2269
2298
|
debug: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
2270
2299
|
metadata: import("zod").ZodObject<{
|
|
@@ -2290,7 +2319,6 @@ export declare const rootContract: {
|
|
|
2290
2319
|
token_uri: string;
|
|
2291
2320
|
user_address: `0x${string}`;
|
|
2292
2321
|
};
|
|
2293
|
-
chain_id: number;
|
|
2294
2322
|
template_id: string;
|
|
2295
2323
|
debug: boolean;
|
|
2296
2324
|
}, {
|
|
@@ -2300,7 +2328,6 @@ export declare const rootContract: {
|
|
|
2300
2328
|
token_uri: string;
|
|
2301
2329
|
user_address: string;
|
|
2302
2330
|
};
|
|
2303
|
-
chain_id: number;
|
|
2304
2331
|
template_id: string;
|
|
2305
2332
|
debug?: boolean | undefined;
|
|
2306
2333
|
}>;
|
|
@@ -2442,6 +2469,13 @@ export declare const rootContract: {
|
|
|
2442
2469
|
auctionTemplates: {
|
|
2443
2470
|
listAuctionTemplates: {
|
|
2444
2471
|
description: "List all auction templates for an integrator";
|
|
2472
|
+
query: import("zod").ZodObject<{
|
|
2473
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2474
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2475
|
+
chainId: number;
|
|
2476
|
+
}, {
|
|
2477
|
+
chainId?: number | undefined;
|
|
2478
|
+
}>;
|
|
2445
2479
|
method: "GET";
|
|
2446
2480
|
path: "/auction-templates/";
|
|
2447
2481
|
responses: {
|
|
@@ -2659,9 +2693,15 @@ export declare const rootContract: {
|
|
|
2659
2693
|
quotes: {
|
|
2660
2694
|
v4ExactOutputSingle: {
|
|
2661
2695
|
description: "Get a quote for an exact output single V4 swap";
|
|
2696
|
+
query: import("zod").ZodObject<{
|
|
2697
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2698
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2699
|
+
chainId: number;
|
|
2700
|
+
}, {
|
|
2701
|
+
chainId?: number | undefined;
|
|
2702
|
+
}>;
|
|
2662
2703
|
method: "POST";
|
|
2663
2704
|
body: import("zod").ZodObject<{
|
|
2664
|
-
chain_id: import("zod").ZodNumber;
|
|
2665
2705
|
pool_key: import("zod").ZodObject<{
|
|
2666
2706
|
currency0: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2667
2707
|
currency1: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
@@ -2685,7 +2725,6 @@ export declare const rootContract: {
|
|
|
2685
2725
|
exact_amount: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
|
|
2686
2726
|
hook_data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2687
2727
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2688
|
-
chain_id: number;
|
|
2689
2728
|
pool_key: {
|
|
2690
2729
|
currency0: `0x${string}`;
|
|
2691
2730
|
currency1: `0x${string}`;
|
|
@@ -2697,7 +2736,6 @@ export declare const rootContract: {
|
|
|
2697
2736
|
exact_amount: bigint;
|
|
2698
2737
|
hook_data?: string | undefined;
|
|
2699
2738
|
}, {
|
|
2700
|
-
chain_id: number;
|
|
2701
2739
|
pool_key: {
|
|
2702
2740
|
currency0: string;
|
|
2703
2741
|
currency1: string;
|
|
@@ -2737,9 +2775,15 @@ export declare const rootContract: {
|
|
|
2737
2775
|
};
|
|
2738
2776
|
v4ExactInputSingle: {
|
|
2739
2777
|
description: "Get a quote for an exact input single V4 swap";
|
|
2778
|
+
query: import("zod").ZodObject<{
|
|
2779
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2780
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2781
|
+
chainId: number;
|
|
2782
|
+
}, {
|
|
2783
|
+
chainId?: number | undefined;
|
|
2784
|
+
}>;
|
|
2740
2785
|
method: "POST";
|
|
2741
2786
|
body: import("zod").ZodObject<{
|
|
2742
|
-
chain_id: import("zod").ZodNumber;
|
|
2743
2787
|
pool_key: import("zod").ZodObject<{
|
|
2744
2788
|
currency0: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2745
2789
|
currency1: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
@@ -2763,7 +2807,6 @@ export declare const rootContract: {
|
|
|
2763
2807
|
exact_amount: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
|
|
2764
2808
|
hook_data: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2765
2809
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2766
|
-
chain_id: number;
|
|
2767
2810
|
pool_key: {
|
|
2768
2811
|
currency0: `0x${string}`;
|
|
2769
2812
|
currency1: `0x${string}`;
|
|
@@ -2775,7 +2818,6 @@ export declare const rootContract: {
|
|
|
2775
2818
|
exact_amount: bigint;
|
|
2776
2819
|
hook_data?: string | undefined;
|
|
2777
2820
|
}, {
|
|
2778
|
-
chain_id: number;
|
|
2779
2821
|
pool_key: {
|
|
2780
2822
|
currency0: string;
|
|
2781
2823
|
currency1: string;
|
|
@@ -2815,22 +2857,26 @@ export declare const rootContract: {
|
|
|
2815
2857
|
};
|
|
2816
2858
|
v3ExactOutputSingle: {
|
|
2817
2859
|
description: "Get a quote for an exact output single V3 swap";
|
|
2860
|
+
query: import("zod").ZodObject<{
|
|
2861
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2862
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2863
|
+
chainId: number;
|
|
2864
|
+
}, {
|
|
2865
|
+
chainId?: number | undefined;
|
|
2866
|
+
}>;
|
|
2818
2867
|
method: "POST";
|
|
2819
2868
|
body: import("zod").ZodObject<{
|
|
2820
|
-
chain_id: import("zod").ZodNumber;
|
|
2821
2869
|
token_in: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2822
2870
|
token_out: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2823
2871
|
amount_out: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
|
|
2824
2872
|
fee: import("zod").ZodNumber;
|
|
2825
2873
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2826
2874
|
fee: number;
|
|
2827
|
-
chain_id: number;
|
|
2828
2875
|
amount_out: bigint;
|
|
2829
2876
|
token_in: `0x${string}`;
|
|
2830
2877
|
token_out: `0x${string}`;
|
|
2831
2878
|
}, {
|
|
2832
2879
|
fee: number;
|
|
2833
|
-
chain_id: number;
|
|
2834
2880
|
token_in: string;
|
|
2835
2881
|
token_out: string;
|
|
2836
2882
|
amount_out?: any;
|
|
@@ -2873,9 +2919,15 @@ export declare const rootContract: {
|
|
|
2873
2919
|
};
|
|
2874
2920
|
v3ExactInputSingle: {
|
|
2875
2921
|
description: "Get a quote for an exact input single V3 swap";
|
|
2922
|
+
query: import("zod").ZodObject<{
|
|
2923
|
+
chainId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodNumber, number, number>>>;
|
|
2924
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2925
|
+
chainId: number;
|
|
2926
|
+
}, {
|
|
2927
|
+
chainId?: number | undefined;
|
|
2928
|
+
}>;
|
|
2876
2929
|
method: "POST";
|
|
2877
2930
|
body: import("zod").ZodObject<{
|
|
2878
|
-
chain_id: import("zod").ZodNumber;
|
|
2879
2931
|
token_in: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2880
2932
|
token_out: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
2881
2933
|
amount_in: import("zod").ZodEffects<import("zod").ZodAny, bigint, any>;
|
|
@@ -2883,14 +2935,12 @@ export declare const rootContract: {
|
|
|
2883
2935
|
sqrt_price_limit_x96: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodAny, bigint, any>>;
|
|
2884
2936
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2885
2937
|
fee: number;
|
|
2886
|
-
chain_id: number;
|
|
2887
2938
|
amount_in: bigint;
|
|
2888
2939
|
token_in: `0x${string}`;
|
|
2889
2940
|
token_out: `0x${string}`;
|
|
2890
2941
|
sqrt_price_limit_x96?: bigint | undefined;
|
|
2891
2942
|
}, {
|
|
2892
2943
|
fee: number;
|
|
2893
|
-
chain_id: number;
|
|
2894
2944
|
token_in: string;
|
|
2895
2945
|
token_out: string;
|
|
2896
2946
|
amount_in?: any;
|
|
@@ -2,9 +2,15 @@ import z from "zod";
|
|
|
2
2
|
declare const quoteContract: {
|
|
3
3
|
v4ExactOutputSingle: {
|
|
4
4
|
description: "Get a quote for an exact output single V4 swap";
|
|
5
|
+
query: z.ZodObject<{
|
|
6
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
chainId: number;
|
|
9
|
+
}, {
|
|
10
|
+
chainId?: number | undefined;
|
|
11
|
+
}>;
|
|
5
12
|
method: "POST";
|
|
6
13
|
body: z.ZodObject<{
|
|
7
|
-
chain_id: z.ZodNumber;
|
|
8
14
|
pool_key: z.ZodObject<{
|
|
9
15
|
currency0: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
10
16
|
currency1: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
@@ -28,7 +34,6 @@ declare const quoteContract: {
|
|
|
28
34
|
exact_amount: z.ZodEffects<z.ZodAny, bigint, any>;
|
|
29
35
|
hook_data: z.ZodOptional<z.ZodString>;
|
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
chain_id: number;
|
|
32
37
|
pool_key: {
|
|
33
38
|
currency0: `0x${string}`;
|
|
34
39
|
currency1: `0x${string}`;
|
|
@@ -40,7 +45,6 @@ declare const quoteContract: {
|
|
|
40
45
|
exact_amount: bigint;
|
|
41
46
|
hook_data?: string | undefined;
|
|
42
47
|
}, {
|
|
43
|
-
chain_id: number;
|
|
44
48
|
pool_key: {
|
|
45
49
|
currency0: string;
|
|
46
50
|
currency1: string;
|
|
@@ -80,9 +84,15 @@ declare const quoteContract: {
|
|
|
80
84
|
};
|
|
81
85
|
v4ExactInputSingle: {
|
|
82
86
|
description: "Get a quote for an exact input single V4 swap";
|
|
87
|
+
query: z.ZodObject<{
|
|
88
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
chainId: number;
|
|
91
|
+
}, {
|
|
92
|
+
chainId?: number | undefined;
|
|
93
|
+
}>;
|
|
83
94
|
method: "POST";
|
|
84
95
|
body: z.ZodObject<{
|
|
85
|
-
chain_id: z.ZodNumber;
|
|
86
96
|
pool_key: z.ZodObject<{
|
|
87
97
|
currency0: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
88
98
|
currency1: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
@@ -106,7 +116,6 @@ declare const quoteContract: {
|
|
|
106
116
|
exact_amount: z.ZodEffects<z.ZodAny, bigint, any>;
|
|
107
117
|
hook_data: z.ZodOptional<z.ZodString>;
|
|
108
118
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
chain_id: number;
|
|
110
119
|
pool_key: {
|
|
111
120
|
currency0: `0x${string}`;
|
|
112
121
|
currency1: `0x${string}`;
|
|
@@ -118,7 +127,6 @@ declare const quoteContract: {
|
|
|
118
127
|
exact_amount: bigint;
|
|
119
128
|
hook_data?: string | undefined;
|
|
120
129
|
}, {
|
|
121
|
-
chain_id: number;
|
|
122
130
|
pool_key: {
|
|
123
131
|
currency0: string;
|
|
124
132
|
currency1: string;
|
|
@@ -158,22 +166,26 @@ declare const quoteContract: {
|
|
|
158
166
|
};
|
|
159
167
|
v3ExactOutputSingle: {
|
|
160
168
|
description: "Get a quote for an exact output single V3 swap";
|
|
169
|
+
query: z.ZodObject<{
|
|
170
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
chainId: number;
|
|
173
|
+
}, {
|
|
174
|
+
chainId?: number | undefined;
|
|
175
|
+
}>;
|
|
161
176
|
method: "POST";
|
|
162
177
|
body: z.ZodObject<{
|
|
163
|
-
chain_id: z.ZodNumber;
|
|
164
178
|
token_in: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
165
179
|
token_out: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
166
180
|
amount_out: z.ZodEffects<z.ZodAny, bigint, any>;
|
|
167
181
|
fee: z.ZodNumber;
|
|
168
182
|
}, "strip", z.ZodTypeAny, {
|
|
169
183
|
fee: number;
|
|
170
|
-
chain_id: number;
|
|
171
184
|
amount_out: bigint;
|
|
172
185
|
token_in: `0x${string}`;
|
|
173
186
|
token_out: `0x${string}`;
|
|
174
187
|
}, {
|
|
175
188
|
fee: number;
|
|
176
|
-
chain_id: number;
|
|
177
189
|
token_in: string;
|
|
178
190
|
token_out: string;
|
|
179
191
|
amount_out?: any;
|
|
@@ -216,9 +228,15 @@ declare const quoteContract: {
|
|
|
216
228
|
};
|
|
217
229
|
v3ExactInputSingle: {
|
|
218
230
|
description: "Get a quote for an exact input single V3 swap";
|
|
231
|
+
query: z.ZodObject<{
|
|
232
|
+
chainId: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
chainId: number;
|
|
235
|
+
}, {
|
|
236
|
+
chainId?: number | undefined;
|
|
237
|
+
}>;
|
|
219
238
|
method: "POST";
|
|
220
239
|
body: z.ZodObject<{
|
|
221
|
-
chain_id: z.ZodNumber;
|
|
222
240
|
token_in: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
223
241
|
token_out: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
224
242
|
amount_in: z.ZodEffects<z.ZodAny, bigint, any>;
|
|
@@ -226,14 +244,12 @@ declare const quoteContract: {
|
|
|
226
244
|
sqrt_price_limit_x96: z.ZodOptional<z.ZodEffects<z.ZodAny, bigint, any>>;
|
|
227
245
|
}, "strip", z.ZodTypeAny, {
|
|
228
246
|
fee: number;
|
|
229
|
-
chain_id: number;
|
|
230
247
|
amount_in: bigint;
|
|
231
248
|
token_in: `0x${string}`;
|
|
232
249
|
token_out: `0x${string}`;
|
|
233
250
|
sqrt_price_limit_x96?: bigint | undefined;
|
|
234
251
|
}, {
|
|
235
252
|
fee: number;
|
|
236
|
-
chain_id: number;
|
|
237
253
|
token_in: string;
|
|
238
254
|
token_out: string;
|
|
239
255
|
amount_in?: any;
|
|
@@ -9,8 +9,12 @@ const quoteContract = contract.router({
|
|
|
9
9
|
v4ExactOutputSingle: {
|
|
10
10
|
method: "POST",
|
|
11
11
|
path: "/v4/exact-output-single",
|
|
12
|
+
query: zod_1.default.object({
|
|
13
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
14
|
+
message: "Invalid chain ID"
|
|
15
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
|
|
16
|
+
}),
|
|
12
17
|
body: zod_1.default.object({
|
|
13
|
-
chain_id: zod_1.default.number(),
|
|
14
18
|
pool_key: types_1.poolKeySchema,
|
|
15
19
|
zero_for_one: zod_1.default.boolean(),
|
|
16
20
|
exact_amount: types_1.coerceBigInt,
|
|
@@ -29,8 +33,12 @@ const quoteContract = contract.router({
|
|
|
29
33
|
v4ExactInputSingle: {
|
|
30
34
|
method: "POST",
|
|
31
35
|
path: "/v4/exact-input-single",
|
|
36
|
+
query: zod_1.default.object({
|
|
37
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
38
|
+
message: "Invalid chain ID"
|
|
39
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
|
|
40
|
+
}),
|
|
32
41
|
body: zod_1.default.object({
|
|
33
|
-
chain_id: zod_1.default.number(),
|
|
34
42
|
pool_key: types_1.poolKeySchema,
|
|
35
43
|
zero_for_one: zod_1.default.boolean(),
|
|
36
44
|
exact_amount: types_1.coerceBigInt,
|
|
@@ -49,8 +57,12 @@ const quoteContract = contract.router({
|
|
|
49
57
|
v3ExactOutputSingle: {
|
|
50
58
|
method: "POST",
|
|
51
59
|
path: "/v3/exact-output-single",
|
|
60
|
+
query: zod_1.default.object({
|
|
61
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
62
|
+
message: "Invalid chain ID"
|
|
63
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
|
|
64
|
+
}),
|
|
52
65
|
body: zod_1.default.object({
|
|
53
|
-
chain_id: zod_1.default.number(),
|
|
54
66
|
token_in: zod_1.default.string().pipe(types_1.hex),
|
|
55
67
|
token_out: zod_1.default.string().pipe(types_1.hex),
|
|
56
68
|
amount_out: types_1.coerceBigInt,
|
|
@@ -71,8 +83,12 @@ const quoteContract = contract.router({
|
|
|
71
83
|
v3ExactInputSingle: {
|
|
72
84
|
method: "POST",
|
|
73
85
|
path: "/v3/exact-input-single",
|
|
86
|
+
query: zod_1.default.object({
|
|
87
|
+
chainId: zod_1.default.number().int().refine((val) => Object.values(types_1.ChainID).includes(val), {
|
|
88
|
+
message: "Invalid chain ID"
|
|
89
|
+
}).optional().default(types_1.ChainID.BASE_MAINNET).describe("The chain ID of the quote to get"),
|
|
90
|
+
}),
|
|
74
91
|
body: zod_1.default.object({
|
|
75
|
-
chain_id: zod_1.default.number(),
|
|
76
92
|
token_in: zod_1.default.string().pipe(types_1.hex),
|
|
77
93
|
token_out: zod_1.default.string().pipe(types_1.hex),
|
|
78
94
|
amount_in: types_1.coerceBigInt,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quote.contract.js","sourceRoot":"","sources":["../../src/contracts/quote.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,
|
|
1
|
+
{"version":3,"file":"quote.contract.js","sourceRoot":"","sources":["../../src/contracts/quote.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAqE;AAErE,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CACjC;IACI,mBAAmB,EAAE;QACjB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,aAAC,CAAC,MAAM,CAAC;YACZ,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC5E,OAAO,EAAE,kBAAkB;aAC9B,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;SAC3F,CAAC;QACF,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,qBAAa;YACvB,YAAY,EAAE,aAAC,CAAC,OAAO,EA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,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,eAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC5E,OAAO,EAAE,kBAAkB;aAC9B,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,eAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;SAC3F,CAAC;QACF,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC;YAC9B,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC;YAC/B,SAAS,EAAE,oBAAY;YACvB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;YACf,oBAAoB,EAAE,aAAC,CAAC,QAAQ,CAAC,oBAAY,CAAC;SACjD,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;oBACtB,oBAAoB,EAAE,aAAC,CAAC,MAAM,EAAE;oBAChC,yBAAyB,EAAE,aAAC,CAAC,MAAM,EAAE;oBACrC,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;iBAC3B,CAAC;aACL,CAAC;SACL;QACD,WAAW,EAAE,+CAA+C;KAC/D;CACJ,EACD;IACI,UAAU,EAAE,SAAS;CACxB,CACJ,CAAC;AAEO,sCAAa"}
|
|
@@ -2502,6 +2502,7 @@ export type AssetFieldsFragment = {
|
|
|
2502
2502
|
} | null;
|
|
2503
2503
|
};
|
|
2504
2504
|
export type ListLiveAssetsForIntegratorQueryVariables = Exact<{
|
|
2505
|
+
chainId: Scalars['Int']['input'];
|
|
2505
2506
|
integratorAddress: Scalars['String']['input'];
|
|
2506
2507
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2507
2508
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2580,6 +2581,7 @@ export type ListLiveAssetsForIntegratorQuery = {
|
|
|
2580
2581
|
}>;
|
|
2581
2582
|
};
|
|
2582
2583
|
export type ListIncomingAssetsForIntegratorQueryVariables = Exact<{
|
|
2584
|
+
chainId: Scalars['Int']['input'];
|
|
2583
2585
|
integratorAddress: Scalars['String']['input'];
|
|
2584
2586
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2585
2587
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2657,6 +2659,7 @@ export type ListIncomingAssetsForIntegratorQuery = {
|
|
|
2657
2659
|
}>;
|
|
2658
2660
|
};
|
|
2659
2661
|
export type ListGraduatedAssetsForIntegratorQueryVariables = Exact<{
|
|
2662
|
+
chainId: Scalars['Int']['input'];
|
|
2660
2663
|
integratorAddress: Scalars['String']['input'];
|
|
2661
2664
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2662
2665
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2733,6 +2736,7 @@ export type ListGraduatedAssetsForIntegratorQuery = {
|
|
|
2733
2736
|
}>;
|
|
2734
2737
|
};
|
|
2735
2738
|
export type ListAllAssetsForIntegratorQueryVariables = Exact<{
|
|
2739
|
+
chainId: Scalars['Int']['input'];
|
|
2736
2740
|
integratorAddress: Scalars['String']['input'];
|
|
2737
2741
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2738
2742
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2809,6 +2813,7 @@ export type ListAllAssetsForIntegratorQuery = {
|
|
|
2809
2813
|
}>;
|
|
2810
2814
|
};
|
|
2811
2815
|
export type SearchAssetsForIntegratorQueryVariables = Exact<{
|
|
2816
|
+
chainId: Scalars['Int']['input'];
|
|
2812
2817
|
integratorAddress: Scalars['String']['input'];
|
|
2813
2818
|
term: Scalars['String']['input'];
|
|
2814
2819
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2885,6 +2890,7 @@ export type SearchAssetsForIntegratorQuery = {
|
|
|
2885
2890
|
}>;
|
|
2886
2891
|
};
|
|
2887
2892
|
export type GetAssetByAddressForIntegratorQueryVariables = Exact<{
|
|
2893
|
+
chainId: Scalars['Int']['input'];
|
|
2888
2894
|
assetAddress: Scalars['String']['input'];
|
|
2889
2895
|
integratorAddress: Scalars['String']['input'];
|
|
2890
2896
|
}>;
|
|
@@ -2960,6 +2966,7 @@ export type GetAssetByAddressForIntegratorQuery = {
|
|
|
2960
2966
|
}>;
|
|
2961
2967
|
};
|
|
2962
2968
|
export type ListAuctionPoolsForIntegratorQueryVariables = Exact<{
|
|
2969
|
+
chainId: Scalars['Int']['input'];
|
|
2963
2970
|
integratorAddress: Scalars['String']['input'];
|
|
2964
2971
|
}>;
|
|
2965
2972
|
export type ListAuctionPoolsForIntegratorQuery = {
|
|
@@ -2988,6 +2995,7 @@ export type ListAuctionPoolsForIntegratorQuery = {
|
|
|
2988
2995
|
}>;
|
|
2989
2996
|
};
|
|
2990
2997
|
export type GetAuctionPoolsByAddressAndIntegratorQueryVariables = Exact<{
|
|
2998
|
+
chainId: Scalars['Int']['input'];
|
|
2991
2999
|
poolAddress: Scalars['String']['input'];
|
|
2992
3000
|
integratorAddress: Scalars['String']['input'];
|
|
2993
3001
|
}>;
|
|
@@ -290,9 +290,9 @@ exports.AssetFieldsFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
290
290
|
${exports.AuctionPoolFieldsFragmentDoc}
|
|
291
291
|
${exports.GraduationPoolFieldsFragmentDoc}`;
|
|
292
292
|
exports.ListLiveAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
293
|
-
query ListLiveAssetsForIntegrator($integratorAddress: String!, $limit: Int, $offset: Int, $endingTime: numeric, $startingTime: numeric) {
|
|
293
|
+
query ListLiveAssetsForIntegrator($chainId: Int!, $integratorAddress: String!, $limit: Int, $offset: Int, $endingTime: numeric, $startingTime: numeric) {
|
|
294
294
|
assets: Asset(
|
|
295
|
-
where: {integrator_address: {_ilike: $integratorAddress}, asset_migration_timestamp: {_is_null: true}, auction_pool: {pool_config_starting_time: {_lte: $startingTime}, pool_config_ending_time: {_gt: $endingTime}}}
|
|
295
|
+
where: {integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}, asset_migration_timestamp: {_is_null: true}, auction_pool: {pool_config_starting_time: {_lte: $startingTime}, pool_config_ending_time: {_gt: $endingTime}}}
|
|
296
296
|
order_by: {asset_creation_block: desc}
|
|
297
297
|
limit: $limit
|
|
298
298
|
offset: $offset
|
|
@@ -302,9 +302,9 @@ exports.ListLiveAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
302
302
|
}
|
|
303
303
|
${exports.AssetFieldsFragmentDoc}`;
|
|
304
304
|
exports.ListIncomingAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
305
|
-
query ListIncomingAssetsForIntegrator($integratorAddress: String!, $limit: Int, $offset: Int, $startingTime: numeric) {
|
|
305
|
+
query ListIncomingAssetsForIntegrator($chainId: Int!, $integratorAddress: String!, $limit: Int, $offset: Int, $startingTime: numeric) {
|
|
306
306
|
assets: Asset(
|
|
307
|
-
where: {integrator_address: {_ilike: $integratorAddress}, asset_migration_timestamp: {_is_null: true}, auction_pool: {pool_config_starting_time: {_gt: $startingTime}}}
|
|
307
|
+
where: {integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}, asset_migration_timestamp: {_is_null: true}, auction_pool: {pool_config_starting_time: {_gt: $startingTime}}}
|
|
308
308
|
order_by: {asset_creation_block: desc}
|
|
309
309
|
limit: $limit
|
|
310
310
|
offset: $offset
|
|
@@ -314,9 +314,9 @@ exports.ListIncomingAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
314
314
|
}
|
|
315
315
|
${exports.AssetFieldsFragmentDoc}`;
|
|
316
316
|
exports.ListGraduatedAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
317
|
-
query ListGraduatedAssetsForIntegrator($integratorAddress: String!, $limit: Int, $offset: Int) {
|
|
317
|
+
query ListGraduatedAssetsForIntegrator($chainId: Int!, $integratorAddress: String!, $limit: Int, $offset: Int) {
|
|
318
318
|
assets: Asset(
|
|
319
|
-
where: {integrator_address: {_ilike: $integratorAddress}, asset_migration_timestamp: {_is_null: false}}
|
|
319
|
+
where: {integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}, asset_migration_timestamp: {_is_null: false}}
|
|
320
320
|
order_by: {asset_creation_block: desc}
|
|
321
321
|
limit: $limit
|
|
322
322
|
offset: $offset
|
|
@@ -326,9 +326,9 @@ exports.ListGraduatedAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
326
326
|
}
|
|
327
327
|
${exports.AssetFieldsFragmentDoc}`;
|
|
328
328
|
exports.ListAllAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
329
|
-
query ListAllAssetsForIntegrator($integratorAddress: String!, $limit: Int, $offset: Int) {
|
|
329
|
+
query ListAllAssetsForIntegrator($chainId: Int!, $integratorAddress: String!, $limit: Int, $offset: Int) {
|
|
330
330
|
assets: Asset(
|
|
331
|
-
where: {integrator_address: {_ilike: $integratorAddress}}
|
|
331
|
+
where: {integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}}
|
|
332
332
|
order_by: {asset_creation_block: desc}
|
|
333
333
|
limit: $limit
|
|
334
334
|
offset: $offset
|
|
@@ -338,9 +338,9 @@ exports.ListAllAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
338
338
|
}
|
|
339
339
|
${exports.AssetFieldsFragmentDoc}`;
|
|
340
340
|
exports.SearchAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
341
|
-
query SearchAssetsForIntegrator($integratorAddress: String!, $term: String!, $limit: Int) {
|
|
341
|
+
query SearchAssetsForIntegrator($chainId: Int!, $integratorAddress: String!, $term: String!, $limit: Int) {
|
|
342
342
|
assets: Asset(
|
|
343
|
-
where: {auction_pool: {integrator_address: {_ilike: $integratorAddress}, _or: [{base_token: {token_address: {_ilike: $term}}}, {base_token: {token_symbol: {_ilike: $term}}}, {base_token: {token_name: {_ilike: $term}}}, {quote_token: {token_address: {_ilike: $term}}}, {quote_token: {token_symbol: {_ilike: $term}}}, {quote_token: {token_name: {_ilike: $term}}}, {pool_address: {_ilike: $term}}]}}
|
|
343
|
+
where: {auction_pool: {chain_id: {_eq: $chainId}, integrator_address: {_ilike: $integratorAddress}, _or: [{base_token: {token_address: {_ilike: $term}}}, {base_token: {token_symbol: {_ilike: $term}}}, {base_token: {token_name: {_ilike: $term}}}, {quote_token: {token_address: {_ilike: $term}}}, {quote_token: {token_symbol: {_ilike: $term}}}, {quote_token: {token_name: {_ilike: $term}}}, {pool_address: {_ilike: $term}}]}}
|
|
344
344
|
order_by: {asset_creation_block: desc}
|
|
345
345
|
limit: $limit
|
|
346
346
|
) {
|
|
@@ -349,17 +349,19 @@ exports.SearchAssetsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
349
349
|
}
|
|
350
350
|
${exports.AssetFieldsFragmentDoc}`;
|
|
351
351
|
exports.GetAssetByAddressForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
352
|
-
query GetAssetByAddressForIntegrator($assetAddress: String!, $integratorAddress: String!) {
|
|
352
|
+
query GetAssetByAddressForIntegrator($chainId: Int!, $assetAddress: String!, $integratorAddress: String!) {
|
|
353
353
|
asset: Asset(
|
|
354
|
-
where: {asset_address: {_ilike: $assetAddress}, integrator_address: {_ilike: $integratorAddress}}
|
|
354
|
+
where: {asset_address: {_ilike: $assetAddress}, integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}}
|
|
355
355
|
) {
|
|
356
356
|
...AssetFields
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
${exports.AssetFieldsFragmentDoc}`;
|
|
360
360
|
exports.ListAuctionPoolsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
361
|
-
query ListAuctionPoolsForIntegrator($integratorAddress: String!) {
|
|
362
|
-
pools: AuctionPool(
|
|
361
|
+
query ListAuctionPoolsForIntegrator($chainId: Int!, $integratorAddress: String!) {
|
|
362
|
+
pools: AuctionPool(
|
|
363
|
+
where: {integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}}
|
|
364
|
+
) {
|
|
363
365
|
pool_address
|
|
364
366
|
pool_id
|
|
365
367
|
base_token {
|
|
@@ -381,9 +383,9 @@ exports.ListAuctionPoolsForIntegratorDocument = (0, graphql_tag_1.default) `
|
|
|
381
383
|
}
|
|
382
384
|
`;
|
|
383
385
|
exports.GetAuctionPoolsByAddressAndIntegratorDocument = (0, graphql_tag_1.default) `
|
|
384
|
-
query GetAuctionPoolsByAddressAndIntegrator($poolAddress: String!, $integratorAddress: String!) {
|
|
386
|
+
query GetAuctionPoolsByAddressAndIntegrator($chainId: Int!, $poolAddress: String!, $integratorAddress: String!) {
|
|
385
387
|
pools: AuctionPool(
|
|
386
|
-
where: {pool_address: {_ilike: $poolAddress}, integrator_address: {_ilike: $integratorAddress}}
|
|
388
|
+
where: {pool_address: {_ilike: $poolAddress}, integrator_address: {_ilike: $integratorAddress}, chain_id: {_eq: $chainId}}
|
|
387
389
|
) {
|
|
388
390
|
pool_address
|
|
389
391
|
pool_id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/graphql/generated.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/graphql/generated.ts"],"names":[],"mappings":";;;AAqqGA,wBA2BC;AA/rGD,6CAA8B;AAkG9B,IAAY,mBAmCX;AAnCD,WAAY,mBAAmB;IAE7B,qDAA8B,CAAA;IAE9B,qFAA8D,CAAA;IAE9D,kEAA2C,CAAA;IAE3C,0EAAmD,CAAA;IAEnD,0EAAm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/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssetStatus = void 0;
|
|
3
|
+
exports.ChainID = exports.AssetStatus = void 0;
|
|
4
4
|
var AssetStatus;
|
|
5
5
|
(function (AssetStatus) {
|
|
6
6
|
AssetStatus["LIVE"] = "live";
|
|
@@ -8,4 +8,9 @@ var AssetStatus;
|
|
|
8
8
|
AssetStatus["INCOMING"] = "incoming";
|
|
9
9
|
AssetStatus["ALL"] = "all";
|
|
10
10
|
})(AssetStatus || (exports.AssetStatus = AssetStatus = {}));
|
|
11
|
+
var ChainID;
|
|
12
|
+
(function (ChainID) {
|
|
13
|
+
ChainID[ChainID["BASE_MAINNET"] = 8453] = "BASE_MAINNET";
|
|
14
|
+
ChainID[ChainID["BASE_TESTNET"] = 84532] = "BASE_TESTNET";
|
|
15
|
+
})(ChainID || (exports.ChainID = ChainID = {}));
|
|
11
16
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,0BAAW,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/types/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,sCAAuB,CAAA;IACvB,oCAAqB,CAAA;IACrB,0BAAW,CAAA;AACf,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,wDAAmB,CAAA;IACnB,yDAAoB,CAAA;AACxB,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB"}
|