@longdotxyz/shared 0.0.8 → 0.0.10
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.
|
@@ -36,8 +36,8 @@ declare const CreateDynamicAuctionResponse: z.ZodObject<{
|
|
|
36
36
|
liquidity_migrator_data: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
37
37
|
integrator: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
38
38
|
salt: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
39
|
-
initial_supply: z.
|
|
40
|
-
num_tokens_to_sell: z.
|
|
39
|
+
initial_supply: z.ZodString;
|
|
40
|
+
num_tokens_to_sell: z.ZodString;
|
|
41
41
|
numeraire: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
42
42
|
token_factory: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
43
43
|
token_factory_data: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
@@ -50,8 +50,8 @@ declare const CreateDynamicAuctionResponse: z.ZodObject<{
|
|
|
50
50
|
liquidity_migrator_data: `0x${string}`;
|
|
51
51
|
integrator: `0x${string}`;
|
|
52
52
|
salt: `0x${string}`;
|
|
53
|
-
initial_supply:
|
|
54
|
-
num_tokens_to_sell:
|
|
53
|
+
initial_supply: string;
|
|
54
|
+
num_tokens_to_sell: string;
|
|
55
55
|
numeraire: `0x${string}`;
|
|
56
56
|
token_factory: `0x${string}`;
|
|
57
57
|
token_factory_data: `0x${string}`;
|
|
@@ -139,7 +139,7 @@ declare const auctionContract: {
|
|
|
139
139
|
createDynamicAuction: {
|
|
140
140
|
method: "POST";
|
|
141
141
|
body: z.ZodObject<{
|
|
142
|
-
chain_id: z.
|
|
142
|
+
chain_id: z.ZodNumber;
|
|
143
143
|
template_id: z.ZodString;
|
|
144
144
|
metadata: z.ZodObject<{
|
|
145
145
|
token_name: z.ZodString;
|
|
@@ -156,6 +156,7 @@ declare const auctionContract: {
|
|
|
156
156
|
address: string;
|
|
157
157
|
percentage: number;
|
|
158
158
|
}>, "many">;
|
|
159
|
+
user_address: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
159
160
|
}, "strip", z.ZodTypeAny, {
|
|
160
161
|
token_name: string;
|
|
161
162
|
token_symbol: string;
|
|
@@ -165,6 +166,7 @@ declare const auctionContract: {
|
|
|
165
166
|
address: `0x${string}`;
|
|
166
167
|
percentage: number;
|
|
167
168
|
}[];
|
|
169
|
+
user_address: `0x${string}`;
|
|
168
170
|
}, {
|
|
169
171
|
token_name: string;
|
|
170
172
|
token_symbol: string;
|
|
@@ -174,6 +176,7 @@ declare const auctionContract: {
|
|
|
174
176
|
address: string;
|
|
175
177
|
percentage: number;
|
|
176
178
|
}[];
|
|
179
|
+
user_address: string;
|
|
177
180
|
}>;
|
|
178
181
|
}, "strip", z.ZodTypeAny, {
|
|
179
182
|
metadata: {
|
|
@@ -185,6 +188,7 @@ declare const auctionContract: {
|
|
|
185
188
|
address: `0x${string}`;
|
|
186
189
|
percentage: number;
|
|
187
190
|
}[];
|
|
191
|
+
user_address: `0x${string}`;
|
|
188
192
|
};
|
|
189
193
|
chain_id: number;
|
|
190
194
|
template_id: string;
|
|
@@ -198,8 +202,9 @@ declare const auctionContract: {
|
|
|
198
202
|
address: string;
|
|
199
203
|
percentage: number;
|
|
200
204
|
}[];
|
|
205
|
+
user_address: string;
|
|
201
206
|
};
|
|
202
|
-
chain_id:
|
|
207
|
+
chain_id: number;
|
|
203
208
|
template_id: string;
|
|
204
209
|
}>;
|
|
205
210
|
path: "/auctions/dynamic";
|
|
@@ -214,8 +219,8 @@ declare const auctionContract: {
|
|
|
214
219
|
liquidity_migrator_data: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
215
220
|
integrator: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
216
221
|
salt: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
217
|
-
initial_supply: z.
|
|
218
|
-
num_tokens_to_sell: z.
|
|
222
|
+
initial_supply: z.ZodString;
|
|
223
|
+
num_tokens_to_sell: z.ZodString;
|
|
219
224
|
numeraire: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
220
225
|
token_factory: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
221
226
|
token_factory_data: z.ZodPipeline<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
@@ -228,8 +233,8 @@ declare const auctionContract: {
|
|
|
228
233
|
liquidity_migrator_data: `0x${string}`;
|
|
229
234
|
integrator: `0x${string}`;
|
|
230
235
|
salt: `0x${string}`;
|
|
231
|
-
initial_supply:
|
|
232
|
-
num_tokens_to_sell:
|
|
236
|
+
initial_supply: string;
|
|
237
|
+
num_tokens_to_sell: string;
|
|
233
238
|
numeraire: `0x${string}`;
|
|
234
239
|
token_factory: `0x${string}`;
|
|
235
240
|
token_factory_data: `0x${string}`;
|
|
@@ -258,8 +263,8 @@ declare const auctionContract: {
|
|
|
258
263
|
liquidity_migrator_data: `0x${string}`;
|
|
259
264
|
integrator: `0x${string}`;
|
|
260
265
|
salt: `0x${string}`;
|
|
261
|
-
initial_supply:
|
|
262
|
-
num_tokens_to_sell:
|
|
266
|
+
initial_supply: string;
|
|
267
|
+
num_tokens_to_sell: string;
|
|
263
268
|
numeraire: `0x${string}`;
|
|
264
269
|
token_factory: `0x${string}`;
|
|
265
270
|
token_factory_data: `0x${string}`;
|
|
@@ -25,8 +25,8 @@ const CreateDynamicAuctionResponse = zod_1.default.object({
|
|
|
25
25
|
liquidity_migrator_data: zod_1.default.string().pipe(types_1.hex),
|
|
26
26
|
integrator: zod_1.default.string().pipe(types_1.hex),
|
|
27
27
|
salt: zod_1.default.string().pipe(types_1.hex),
|
|
28
|
-
initial_supply: zod_1.default.string()
|
|
29
|
-
num_tokens_to_sell: zod_1.default.string()
|
|
28
|
+
initial_supply: zod_1.default.string(),
|
|
29
|
+
num_tokens_to_sell: zod_1.default.string(),
|
|
30
30
|
numeraire: zod_1.default.string().pipe(types_1.hex),
|
|
31
31
|
token_factory: zod_1.default.string().pipe(types_1.hex),
|
|
32
32
|
token_factory_data: zod_1.default.string().pipe(types_1.hex),
|
|
@@ -49,7 +49,7 @@ const auctionContract = contract.router({
|
|
|
49
49
|
method: "POST",
|
|
50
50
|
path: "/dynamic",
|
|
51
51
|
body: zod_1.default.object({
|
|
52
|
-
chain_id: zod_1.default.
|
|
52
|
+
chain_id: zod_1.default.number(),
|
|
53
53
|
template_id: zod_1.default.string(),
|
|
54
54
|
metadata: zod_1.default.object({
|
|
55
55
|
token_name: zod_1.default.string(),
|
|
@@ -57,6 +57,7 @@ const auctionContract = contract.router({
|
|
|
57
57
|
token_uri: zod_1.default.string(),
|
|
58
58
|
migration_duration: zod_1.default.number(),
|
|
59
59
|
migration_beneficiaries: zod_1.default.array(zod_1.default.object({ address: zod_1.default.string().pipe(types_1.hex), percentage: zod_1.default.number() })),
|
|
60
|
+
user_address: zod_1.default.string().pipe(types_1.hex),
|
|
60
61
|
}),
|
|
61
62
|
}),
|
|
62
63
|
responses: {
|
|
@@ -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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M;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAC,CAAC,MAAM,CAAC;YACX,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;YACvB,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;KACJ;CACJ,EACD;IACI,UAAU,EAAE,WAAW;CAC1B,CACJ,CAAC;AAEO,0CAAe"}
|
|
@@ -68,7 +68,7 @@ export declare const rootContract: {
|
|
|
68
68
|
createDynamicAuction: {
|
|
69
69
|
method: "POST";
|
|
70
70
|
body: import("zod").ZodObject<{
|
|
71
|
-
chain_id: import("zod").
|
|
71
|
+
chain_id: import("zod").ZodNumber;
|
|
72
72
|
template_id: import("zod").ZodString;
|
|
73
73
|
metadata: import("zod").ZodObject<{
|
|
74
74
|
token_name: import("zod").ZodString;
|
|
@@ -85,6 +85,7 @@ export declare const rootContract: {
|
|
|
85
85
|
address: string;
|
|
86
86
|
percentage: number;
|
|
87
87
|
}>, "many">;
|
|
88
|
+
user_address: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
88
89
|
}, "strip", import("zod").ZodTypeAny, {
|
|
89
90
|
token_name: string;
|
|
90
91
|
token_symbol: string;
|
|
@@ -94,6 +95,7 @@ export declare const rootContract: {
|
|
|
94
95
|
address: `0x${string}`;
|
|
95
96
|
percentage: number;
|
|
96
97
|
}[];
|
|
98
|
+
user_address: `0x${string}`;
|
|
97
99
|
}, {
|
|
98
100
|
token_name: string;
|
|
99
101
|
token_symbol: string;
|
|
@@ -103,6 +105,7 @@ export declare const rootContract: {
|
|
|
103
105
|
address: string;
|
|
104
106
|
percentage: number;
|
|
105
107
|
}[];
|
|
108
|
+
user_address: string;
|
|
106
109
|
}>;
|
|
107
110
|
}, "strip", import("zod").ZodTypeAny, {
|
|
108
111
|
metadata: {
|
|
@@ -114,6 +117,7 @@ export declare const rootContract: {
|
|
|
114
117
|
address: `0x${string}`;
|
|
115
118
|
percentage: number;
|
|
116
119
|
}[];
|
|
120
|
+
user_address: `0x${string}`;
|
|
117
121
|
};
|
|
118
122
|
chain_id: number;
|
|
119
123
|
template_id: string;
|
|
@@ -127,8 +131,9 @@ export declare const rootContract: {
|
|
|
127
131
|
address: string;
|
|
128
132
|
percentage: number;
|
|
129
133
|
}[];
|
|
134
|
+
user_address: string;
|
|
130
135
|
};
|
|
131
|
-
chain_id:
|
|
136
|
+
chain_id: number;
|
|
132
137
|
template_id: string;
|
|
133
138
|
}>;
|
|
134
139
|
path: "/auctions/dynamic";
|
|
@@ -143,8 +148,8 @@ export declare const rootContract: {
|
|
|
143
148
|
liquidity_migrator_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
144
149
|
integrator: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
145
150
|
salt: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
146
|
-
initial_supply: import("zod").
|
|
147
|
-
num_tokens_to_sell: import("zod").
|
|
151
|
+
initial_supply: import("zod").ZodString;
|
|
152
|
+
num_tokens_to_sell: import("zod").ZodString;
|
|
148
153
|
numeraire: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
149
154
|
token_factory: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
150
155
|
token_factory_data: import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>>;
|
|
@@ -157,8 +162,8 @@ export declare const rootContract: {
|
|
|
157
162
|
liquidity_migrator_data: `0x${string}`;
|
|
158
163
|
integrator: `0x${string}`;
|
|
159
164
|
salt: `0x${string}`;
|
|
160
|
-
initial_supply:
|
|
161
|
-
num_tokens_to_sell:
|
|
165
|
+
initial_supply: string;
|
|
166
|
+
num_tokens_to_sell: string;
|
|
162
167
|
numeraire: `0x${string}`;
|
|
163
168
|
token_factory: `0x${string}`;
|
|
164
169
|
token_factory_data: `0x${string}`;
|
|
@@ -187,8 +192,8 @@ export declare const rootContract: {
|
|
|
187
192
|
liquidity_migrator_data: `0x${string}`;
|
|
188
193
|
integrator: `0x${string}`;
|
|
189
194
|
salt: `0x${string}`;
|
|
190
|
-
initial_supply:
|
|
191
|
-
num_tokens_to_sell:
|
|
195
|
+
initial_supply: string;
|
|
196
|
+
num_tokens_to_sell: string;
|
|
192
197
|
numeraire: `0x${string}`;
|
|
193
198
|
token_factory: `0x${string}`;
|
|
194
199
|
token_factory_data: `0x${string}`;
|