@longdotxyz/shared 0.0.25 → 0.0.26
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/auction-template.contract.d.ts +1 -0
- package/dist/contracts/auction-template.contract.js +1 -0
- package/dist/contracts/auction-template.contract.js.map +1 -1
- package/dist/contracts/auction.contract.d.ts +3 -0
- package/dist/contracts/auction.contract.js +3 -0
- package/dist/contracts/auction.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/ipfs.contract.d.ts +2 -0
- package/dist/contracts/ipfs.contract.js +2 -0
- package/dist/contracts/ipfs.contract.js.map +1 -1
- package/dist/contracts/quote.contract.d.ts +4 -0
- package/dist/contracts/quote.contract.js +4 -0
- package/dist/contracts/quote.contract.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,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;AAoB+B,0DAAuB;AAlBzD,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAC3C;IACI,oBAAoB,EAAE;QAClB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,GAAG;QACT,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"}
|
|
@@ -115,6 +115,7 @@ declare const CreateDynamicAuctionResponse: z.ZodObject<{
|
|
|
115
115
|
}>;
|
|
116
116
|
declare const auctionContract: {
|
|
117
117
|
listAuctions: {
|
|
118
|
+
description: "List all auctions for an integrator";
|
|
118
119
|
method: "GET";
|
|
119
120
|
path: "/auctions/";
|
|
120
121
|
responses: {
|
|
@@ -180,6 +181,7 @@ declare const auctionContract: {
|
|
|
180
181
|
}, {
|
|
181
182
|
poolAddress: string;
|
|
182
183
|
}>;
|
|
184
|
+
description: "Get an auction by its pool address";
|
|
183
185
|
method: "GET";
|
|
184
186
|
path: "/auctions/:poolAddress";
|
|
185
187
|
responses: {
|
|
@@ -238,6 +240,7 @@ declare const auctionContract: {
|
|
|
238
240
|
};
|
|
239
241
|
};
|
|
240
242
|
createDynamicAuction: {
|
|
243
|
+
description: "Create a dynamic auction based on an auction template";
|
|
241
244
|
method: "POST";
|
|
242
245
|
body: z.ZodObject<{
|
|
243
246
|
chain_id: z.ZodNumber;
|
|
@@ -48,6 +48,7 @@ const auctionContract = contract.router({
|
|
|
48
48
|
result: zod_1.default.array(AuctionResponse),
|
|
49
49
|
}),
|
|
50
50
|
},
|
|
51
|
+
description: "List all auctions for an integrator",
|
|
51
52
|
},
|
|
52
53
|
getAuctionByPoolAddress: {
|
|
53
54
|
method: "GET",
|
|
@@ -60,6 +61,7 @@ const auctionContract = contract.router({
|
|
|
60
61
|
result: AuctionResponse,
|
|
61
62
|
}),
|
|
62
63
|
},
|
|
64
|
+
description: "Get an auction by its pool address",
|
|
63
65
|
},
|
|
64
66
|
createDynamicAuction: {
|
|
65
67
|
method: "POST",
|
|
@@ -82,6 +84,7 @@ const auctionContract = contract.router({
|
|
|
82
84
|
result: CreateDynamicAuctionResponse,
|
|
83
85
|
}),
|
|
84
86
|
},
|
|
87
|
+
description: "Create a dynamic auction based on an auction template",
|
|
85
88
|
},
|
|
86
89
|
}, {
|
|
87
90
|
pathPrefix: "/auctions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAA+B;AAE/B,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;
|
|
1
|
+
{"version":3,"file":"auction.contract.js","sourceRoot":"","sources":["../../src/contracts/auction.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAA+B;AAE/B,MAAM,QAAQ,GAAG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AI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;YACvB,KAAK,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YAC5C,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC;gBACf,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;gBACtB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;gBACxB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;gBACrB,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE;gBAC9B,uBAAuB,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,EAAE,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACrG,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC;aACrC,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"}
|
|
@@ -1386,6 +1386,7 @@ export declare const rootContract: {
|
|
|
1386
1386
|
};
|
|
1387
1387
|
auctions: {
|
|
1388
1388
|
listAuctions: {
|
|
1389
|
+
description: "List all auctions for an integrator";
|
|
1389
1390
|
method: "GET";
|
|
1390
1391
|
path: "/auctions/";
|
|
1391
1392
|
responses: {
|
|
@@ -1451,6 +1452,7 @@ export declare const rootContract: {
|
|
|
1451
1452
|
}, {
|
|
1452
1453
|
poolAddress: string;
|
|
1453
1454
|
}>;
|
|
1455
|
+
description: "Get an auction by its pool address";
|
|
1454
1456
|
method: "GET";
|
|
1455
1457
|
path: "/auctions/:poolAddress";
|
|
1456
1458
|
responses: {
|
|
@@ -1509,6 +1511,7 @@ export declare const rootContract: {
|
|
|
1509
1511
|
};
|
|
1510
1512
|
};
|
|
1511
1513
|
createDynamicAuction: {
|
|
1514
|
+
description: "Create a dynamic auction based on an auction template";
|
|
1512
1515
|
method: "POST";
|
|
1513
1516
|
body: import("zod").ZodObject<{
|
|
1514
1517
|
chain_id: import("zod").ZodNumber;
|
|
@@ -1719,6 +1722,7 @@ export declare const rootContract: {
|
|
|
1719
1722
|
};
|
|
1720
1723
|
auctionTemplates: {
|
|
1721
1724
|
listAuctionTemplates: {
|
|
1725
|
+
description: "List all auction templates for an integrator";
|
|
1722
1726
|
method: "GET";
|
|
1723
1727
|
path: "/auction-templates/";
|
|
1724
1728
|
responses: {
|
|
@@ -1849,6 +1853,7 @@ export declare const rootContract: {
|
|
|
1849
1853
|
};
|
|
1850
1854
|
ipfs: {
|
|
1851
1855
|
uploadImage: {
|
|
1856
|
+
description: "Upload an image to IPFS";
|
|
1852
1857
|
method: "POST";
|
|
1853
1858
|
contentType: "multipart/form-data";
|
|
1854
1859
|
body: import("@ts-rest/core").ContractPlainType<{
|
|
@@ -1866,6 +1871,7 @@ export declare const rootContract: {
|
|
|
1866
1871
|
};
|
|
1867
1872
|
};
|
|
1868
1873
|
uploadMetadata: {
|
|
1874
|
+
description: "Upload metadata to IPFS";
|
|
1869
1875
|
method: "POST";
|
|
1870
1876
|
body: import("zod").ZodObject<{
|
|
1871
1877
|
name: import("zod").ZodString;
|
|
@@ -1933,6 +1939,7 @@ export declare const rootContract: {
|
|
|
1933
1939
|
};
|
|
1934
1940
|
quotes: {
|
|
1935
1941
|
v4ExactOutputSingle: {
|
|
1942
|
+
description: "Get a quote for an exact output single V4 swap";
|
|
1936
1943
|
method: "POST";
|
|
1937
1944
|
body: import("zod").ZodObject<{
|
|
1938
1945
|
chain_id: import("zod").ZodNumber;
|
|
@@ -2010,6 +2017,7 @@ export declare const rootContract: {
|
|
|
2010
2017
|
};
|
|
2011
2018
|
};
|
|
2012
2019
|
v4ExactInputSingle: {
|
|
2020
|
+
description: "Get a quote for an exact input single V4 swap";
|
|
2013
2021
|
method: "POST";
|
|
2014
2022
|
body: import("zod").ZodObject<{
|
|
2015
2023
|
chain_id: import("zod").ZodNumber;
|
|
@@ -2087,6 +2095,7 @@ export declare const rootContract: {
|
|
|
2087
2095
|
};
|
|
2088
2096
|
};
|
|
2089
2097
|
v3ExactOutputSingle: {
|
|
2098
|
+
description: "Get a quote for an exact output single V3 swap";
|
|
2090
2099
|
method: "POST";
|
|
2091
2100
|
body: import("zod").ZodObject<{
|
|
2092
2101
|
chain_id: import("zod").ZodNumber;
|
|
@@ -2144,6 +2153,7 @@ export declare const rootContract: {
|
|
|
2144
2153
|
};
|
|
2145
2154
|
};
|
|
2146
2155
|
v3ExactInputSingle: {
|
|
2156
|
+
description: "Get a quote for an exact input single V3 swap";
|
|
2147
2157
|
method: "POST";
|
|
2148
2158
|
body: import("zod").ZodObject<{
|
|
2149
2159
|
chain_id: import("zod").ZodNumber;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
declare const ipfsContract: {
|
|
3
3
|
uploadImage: {
|
|
4
|
+
description: "Upload an image to IPFS";
|
|
4
5
|
method: "POST";
|
|
5
6
|
contentType: "multipart/form-data";
|
|
6
7
|
body: import("@ts-rest/core").ContractPlainType<{
|
|
@@ -18,6 +19,7 @@ declare const ipfsContract: {
|
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
uploadMetadata: {
|
|
22
|
+
description: "Upload metadata to IPFS";
|
|
21
23
|
method: "POST";
|
|
22
24
|
body: z.ZodObject<{
|
|
23
25
|
name: z.ZodString;
|
|
@@ -15,6 +15,7 @@ const ipfsContract = contract.router({
|
|
|
15
15
|
result: zod_1.default.string(),
|
|
16
16
|
}),
|
|
17
17
|
},
|
|
18
|
+
description: "Upload an image to IPFS",
|
|
18
19
|
},
|
|
19
20
|
uploadMetadata: {
|
|
20
21
|
path: "/upload-metadata",
|
|
@@ -38,6 +39,7 @@ const ipfsContract = contract.router({
|
|
|
38
39
|
result: zod_1.default.string(),
|
|
39
40
|
}),
|
|
40
41
|
},
|
|
42
|
+
description: "Upload metadata to IPFS",
|
|
41
43
|
},
|
|
42
44
|
}, {
|
|
43
45
|
pathPrefix: "/ipfs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ipfs.contract.js","sourceRoot":"","sources":["../../src/contracts/ipfs.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAChC;IACI,WAAW,EAAE;QACT,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAmB;QACtC,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;
|
|
1
|
+
{"version":3,"file":"ipfs.contract.js","sourceRoot":"","sources":["../../src/contracts/ipfs.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAChC;IACI,WAAW,EAAE;QACT,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAmB;QACtC,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;YAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;YACvB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;YACtB,YAAY,EAAE,aAAC,CAAC,KAAK,CACjB,aAAC,CAAC,MAAM,CAAC;gBACL,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;gBACjB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;aAClB,CAAC,CACL;YACD,kBAAkB,EAAE,aAAC,CAAC,KAAK,CACvB,aAAC,CAAC,MAAM,CAAC;gBACL,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;gBACnB,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;aACzB,CAAC,CACL;YACD,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;SAC3B,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;aACrB,CAAC;SACL;QACD,WAAW,EAAE,yBAAyB;KACzC;CACJ,EACD;IACI,UAAU,EAAE,OAAO;CACtB,CACJ,CAAC;AAEO,oCAAY"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
declare const quoteContract: {
|
|
3
3
|
v4ExactOutputSingle: {
|
|
4
|
+
description: "Get a quote for an exact output single V4 swap";
|
|
4
5
|
method: "POST";
|
|
5
6
|
body: z.ZodObject<{
|
|
6
7
|
chain_id: z.ZodNumber;
|
|
@@ -78,6 +79,7 @@ declare const quoteContract: {
|
|
|
78
79
|
};
|
|
79
80
|
};
|
|
80
81
|
v4ExactInputSingle: {
|
|
82
|
+
description: "Get a quote for an exact input single V4 swap";
|
|
81
83
|
method: "POST";
|
|
82
84
|
body: z.ZodObject<{
|
|
83
85
|
chain_id: z.ZodNumber;
|
|
@@ -155,6 +157,7 @@ declare const quoteContract: {
|
|
|
155
157
|
};
|
|
156
158
|
};
|
|
157
159
|
v3ExactOutputSingle: {
|
|
160
|
+
description: "Get a quote for an exact output single V3 swap";
|
|
158
161
|
method: "POST";
|
|
159
162
|
body: z.ZodObject<{
|
|
160
163
|
chain_id: z.ZodNumber;
|
|
@@ -212,6 +215,7 @@ declare const quoteContract: {
|
|
|
212
215
|
};
|
|
213
216
|
};
|
|
214
217
|
v3ExactInputSingle: {
|
|
218
|
+
description: "Get a quote for an exact input single V3 swap";
|
|
215
219
|
method: "POST";
|
|
216
220
|
body: z.ZodObject<{
|
|
217
221
|
chain_id: z.ZodNumber;
|
|
@@ -24,6 +24,7 @@ const quoteContract = contract.router({
|
|
|
24
24
|
}),
|
|
25
25
|
}),
|
|
26
26
|
},
|
|
27
|
+
description: "Get a quote for an exact output single V4 swap",
|
|
27
28
|
},
|
|
28
29
|
v4ExactInputSingle: {
|
|
29
30
|
method: "POST",
|
|
@@ -43,6 +44,7 @@ const quoteContract = contract.router({
|
|
|
43
44
|
}),
|
|
44
45
|
}),
|
|
45
46
|
},
|
|
47
|
+
description: "Get a quote for an exact input single V4 swap",
|
|
46
48
|
},
|
|
47
49
|
v3ExactOutputSingle: {
|
|
48
50
|
method: "POST",
|
|
@@ -64,6 +66,7 @@ const quoteContract = contract.router({
|
|
|
64
66
|
}),
|
|
65
67
|
}),
|
|
66
68
|
},
|
|
69
|
+
description: "Get a quote for an exact output single V3 swap",
|
|
67
70
|
},
|
|
68
71
|
v3ExactInputSingle: {
|
|
69
72
|
method: "POST",
|
|
@@ -86,6 +89,7 @@ const quoteContract = contract.router({
|
|
|
86
89
|
}),
|
|
87
90
|
}),
|
|
88
91
|
},
|
|
92
|
+
description: "Get a quote for an exact input single V3 swap",
|
|
89
93
|
},
|
|
90
94
|
}, {
|
|
91
95
|
pathPrefix: "/quotes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quote.contract.js","sourceRoot":"","sources":["../../src/contracts/quote.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAA4D;AAE5D,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,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,QAAQ,EAAE,qBAAa;YACvB,YAAY,EAAE,aAAC,CAAC,OAAO,EAAE;YACzB,YAAY,EAAE,oBAAY;YAC1B,SAAS,EAAE,aAAC,CAAC,QAAQ,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC;SACpC,CAAC;QACF,SAAS,EAAE;YACP,GAAG,EAAE,aAAC,CAAC,MAAM,CAAC;gBACV,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;oBACb,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;oBACrB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;iBAC3B,CAAC;aACL,CAAC;SACL;
|
|
1
|
+
{"version":3,"file":"quote.contract.js","sourceRoot":"","sources":["../../src/contracts/quote.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAA4D;AAE5D,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,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aA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