@uniswap/client-unirpc-v2 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,559 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file uniswap/unirpc/v2/service.proto (package uniswap.unirpc.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3, StringValue, Value } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from enum uniswap.unirpc.v2.Chain
8
+ */
9
+ export var Chain;
10
+ (function (Chain) {
11
+ /**
12
+ * @generated from enum value: CHAIN_UNSPECIFIED = 0;
13
+ */
14
+ Chain[Chain["UNSPECIFIED"] = 0] = "UNSPECIFIED";
15
+ /**
16
+ * @generated from enum value: CHAIN_MAINNET = 1;
17
+ */
18
+ Chain[Chain["MAINNET"] = 1] = "MAINNET";
19
+ /**
20
+ * @generated from enum value: CHAIN_GOERLI = 5;
21
+ */
22
+ Chain[Chain["GOERLI"] = 5] = "GOERLI";
23
+ /**
24
+ * @generated from enum value: CHAIN_SEPOLIA = 11155111;
25
+ */
26
+ Chain[Chain["SEPOLIA"] = 11155111] = "SEPOLIA";
27
+ /**
28
+ * @generated from enum value: CHAIN_OPTIMISM = 10;
29
+ */
30
+ Chain[Chain["OPTIMISM"] = 10] = "OPTIMISM";
31
+ /**
32
+ * @generated from enum value: CHAIN_OPTIMISM_GOERLI = 420;
33
+ */
34
+ Chain[Chain["OPTIMISM_GOERLI"] = 420] = "OPTIMISM_GOERLI";
35
+ /**
36
+ * @generated from enum value: CHAIN_OPTIMISM_SEPOLIA = 11155420;
37
+ */
38
+ Chain[Chain["OPTIMISM_SEPOLIA"] = 11155420] = "OPTIMISM_SEPOLIA";
39
+ /**
40
+ * @generated from enum value: CHAIN_ARBITRUM_ONE = 42161;
41
+ */
42
+ Chain[Chain["ARBITRUM_ONE"] = 42161] = "ARBITRUM_ONE";
43
+ /**
44
+ * @generated from enum value: CHAIN_ARBITRUM_GOERLI = 421613;
45
+ */
46
+ Chain[Chain["ARBITRUM_GOERLI"] = 421613] = "ARBITRUM_GOERLI";
47
+ /**
48
+ * @generated from enum value: CHAIN_ARBITRUM_SEPOLIA = 421614;
49
+ */
50
+ Chain[Chain["ARBITRUM_SEPOLIA"] = 421614] = "ARBITRUM_SEPOLIA";
51
+ /**
52
+ * @generated from enum value: CHAIN_POLYGON = 137;
53
+ */
54
+ Chain[Chain["POLYGON"] = 137] = "POLYGON";
55
+ /**
56
+ * @generated from enum value: CHAIN_POLYGON_MUMBAI = 80001;
57
+ */
58
+ Chain[Chain["POLYGON_MUMBAI"] = 80001] = "POLYGON_MUMBAI";
59
+ /**
60
+ * @generated from enum value: CHAIN_CELO = 42220;
61
+ */
62
+ Chain[Chain["CELO"] = 42220] = "CELO";
63
+ /**
64
+ * @generated from enum value: CHAIN_CELO_ALFAJORES = 44787;
65
+ */
66
+ Chain[Chain["CELO_ALFAJORES"] = 44787] = "CELO_ALFAJORES";
67
+ /**
68
+ * @generated from enum value: CHAIN_GNOSIS = 100;
69
+ */
70
+ Chain[Chain["GNOSIS"] = 100] = "GNOSIS";
71
+ /**
72
+ * @generated from enum value: CHAIN_MOONBEAM = 1284;
73
+ */
74
+ Chain[Chain["MOONBEAM"] = 1284] = "MOONBEAM";
75
+ /**
76
+ * @generated from enum value: CHAIN_BNB = 56;
77
+ */
78
+ Chain[Chain["BNB"] = 56] = "BNB";
79
+ /**
80
+ * @generated from enum value: CHAIN_AVALANCHE = 43114;
81
+ */
82
+ Chain[Chain["AVALANCHE"] = 43114] = "AVALANCHE";
83
+ /**
84
+ * @generated from enum value: CHAIN_BASE_GOERLI = 84531;
85
+ */
86
+ Chain[Chain["BASE_GOERLI"] = 84531] = "BASE_GOERLI";
87
+ /**
88
+ * @generated from enum value: CHAIN_BASE = 8453;
89
+ */
90
+ Chain[Chain["BASE"] = 8453] = "BASE";
91
+ /**
92
+ * @generated from enum value: CHAIN_ZORA = 7777777;
93
+ */
94
+ Chain[Chain["ZORA"] = 7777777] = "ZORA";
95
+ /**
96
+ * @generated from enum value: CHAIN_ZORA_SEPOLIA = 999999999;
97
+ */
98
+ Chain[Chain["ZORA_SEPOLIA"] = 999999999] = "ZORA_SEPOLIA";
99
+ /**
100
+ * @generated from enum value: CHAIN_ROOTSTOCK = 30;
101
+ */
102
+ Chain[Chain["ROOTSTOCK"] = 30] = "ROOTSTOCK";
103
+ /**
104
+ * @generated from enum value: CHAIN_BLAST = 81457;
105
+ */
106
+ Chain[Chain["BLAST"] = 81457] = "BLAST";
107
+ /**
108
+ * @generated from enum value: CHAIN_ZKSYNC = 324;
109
+ */
110
+ Chain[Chain["ZKSYNC"] = 324] = "ZKSYNC";
111
+ /**
112
+ * @generated from enum value: CHAIN_UNICHAIN = 130;
113
+ */
114
+ Chain[Chain["UNICHAIN"] = 130] = "UNICHAIN";
115
+ /**
116
+ * @generated from enum value: CHAIN_UNICHAIN_TESTNET = 1301;
117
+ */
118
+ Chain[Chain["UNICHAIN_TESTNET"] = 1301] = "UNICHAIN_TESTNET";
119
+ /**
120
+ * @generated from enum value: CHAIN_WORLDCHAIN = 480;
121
+ */
122
+ Chain[Chain["WORLDCHAIN"] = 480] = "WORLDCHAIN";
123
+ /**
124
+ * Deprecated, Id changed to CHAIN_MONAD_TESTNET_V2
125
+ *
126
+ * @generated from enum value: CHAIN_MONAD_TESTNET = 41454 [deprecated = true];
127
+ * @deprecated
128
+ */
129
+ Chain[Chain["MONAD_TESTNET"] = 41454] = "MONAD_TESTNET";
130
+ /**
131
+ * @generated from enum value: CHAIN_MONAD_TESTNET_V2 = 10143;
132
+ */
133
+ Chain[Chain["MONAD_TESTNET_V2"] = 10143] = "MONAD_TESTNET_V2";
134
+ /**
135
+ * @generated from enum value: CHAIN_BASE_SEPOLIA = 84532;
136
+ */
137
+ Chain[Chain["BASE_SEPOLIA"] = 84532] = "BASE_SEPOLIA";
138
+ /**
139
+ * @generated from enum value: CHAIN_SONEIUM = 1868;
140
+ */
141
+ Chain[Chain["SONEIUM"] = 1868] = "SONEIUM";
142
+ /**
143
+ * @generated from enum value: CHAIN_MONAD = 143;
144
+ */
145
+ Chain[Chain["MONAD"] = 143] = "MONAD";
146
+ /**
147
+ * @generated from enum value: CHAIN_XLAYER = 196;
148
+ */
149
+ Chain[Chain["XLAYER"] = 196] = "XLAYER";
150
+ /**
151
+ * @generated from enum value: CHAIN_MEGAETH = 4326;
152
+ */
153
+ Chain[Chain["MEGAETH"] = 4326] = "MEGAETH";
154
+ /**
155
+ * @generated from enum value: CHAIN_TEMPO = 4217;
156
+ */
157
+ Chain[Chain["TEMPO"] = 4217] = "TEMPO";
158
+ /**
159
+ * @generated from enum value: CHAIN_LINEA = 59144;
160
+ */
161
+ Chain[Chain["LINEA"] = 59144] = "LINEA";
162
+ })(Chain || (Chain = {}));
163
+ // Retrieve enum metadata with: proto3.getEnumType(Chain)
164
+ proto3.util.setEnumType(Chain, "uniswap.unirpc.v2.Chain", [
165
+ { no: 0, name: "CHAIN_UNSPECIFIED" },
166
+ { no: 1, name: "CHAIN_MAINNET" },
167
+ { no: 5, name: "CHAIN_GOERLI" },
168
+ { no: 11155111, name: "CHAIN_SEPOLIA" },
169
+ { no: 10, name: "CHAIN_OPTIMISM" },
170
+ { no: 420, name: "CHAIN_OPTIMISM_GOERLI" },
171
+ { no: 11155420, name: "CHAIN_OPTIMISM_SEPOLIA" },
172
+ { no: 42161, name: "CHAIN_ARBITRUM_ONE" },
173
+ { no: 421613, name: "CHAIN_ARBITRUM_GOERLI" },
174
+ { no: 421614, name: "CHAIN_ARBITRUM_SEPOLIA" },
175
+ { no: 137, name: "CHAIN_POLYGON" },
176
+ { no: 80001, name: "CHAIN_POLYGON_MUMBAI" },
177
+ { no: 42220, name: "CHAIN_CELO" },
178
+ { no: 44787, name: "CHAIN_CELO_ALFAJORES" },
179
+ { no: 100, name: "CHAIN_GNOSIS" },
180
+ { no: 1284, name: "CHAIN_MOONBEAM" },
181
+ { no: 56, name: "CHAIN_BNB" },
182
+ { no: 43114, name: "CHAIN_AVALANCHE" },
183
+ { no: 84531, name: "CHAIN_BASE_GOERLI" },
184
+ { no: 8453, name: "CHAIN_BASE" },
185
+ { no: 7777777, name: "CHAIN_ZORA" },
186
+ { no: 999999999, name: "CHAIN_ZORA_SEPOLIA" },
187
+ { no: 30, name: "CHAIN_ROOTSTOCK" },
188
+ { no: 81457, name: "CHAIN_BLAST" },
189
+ { no: 324, name: "CHAIN_ZKSYNC" },
190
+ { no: 130, name: "CHAIN_UNICHAIN" },
191
+ { no: 1301, name: "CHAIN_UNICHAIN_TESTNET" },
192
+ { no: 480, name: "CHAIN_WORLDCHAIN" },
193
+ { no: 41454, name: "CHAIN_MONAD_TESTNET" },
194
+ { no: 10143, name: "CHAIN_MONAD_TESTNET_V2" },
195
+ { no: 84532, name: "CHAIN_BASE_SEPOLIA" },
196
+ { no: 1868, name: "CHAIN_SONEIUM" },
197
+ { no: 143, name: "CHAIN_MONAD" },
198
+ { no: 196, name: "CHAIN_XLAYER" },
199
+ { no: 4326, name: "CHAIN_MEGAETH" },
200
+ { no: 4217, name: "CHAIN_TEMPO" },
201
+ { no: 59144, name: "CHAIN_LINEA" },
202
+ ]);
203
+ /**
204
+ * @generated from message uniswap.unirpc.v2.GasStrategy
205
+ */
206
+ export class GasStrategy extends Message {
207
+ constructor(data) {
208
+ super();
209
+ proto3.util.initPartial(data, this);
210
+ }
211
+ static fromBinary(bytes, options) {
212
+ return new GasStrategy().fromBinary(bytes, options);
213
+ }
214
+ static fromJson(jsonValue, options) {
215
+ return new GasStrategy().fromJson(jsonValue, options);
216
+ }
217
+ static fromJsonString(jsonString, options) {
218
+ return new GasStrategy().fromJsonString(jsonString, options);
219
+ }
220
+ static equals(a, b) {
221
+ return proto3.util.equals(GasStrategy, a, b);
222
+ }
223
+ }
224
+ GasStrategy.runtime = proto3;
225
+ GasStrategy.typeName = "uniswap.unirpc.v2.GasStrategy";
226
+ GasStrategy.fields = proto3.util.newFieldList(() => [
227
+ { no: 1, name: "limit_inflation_factor", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
228
+ { no: 2, name: "price_inflation_factor", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
229
+ { no: 3, name: "percentile_threshold_for1559_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
230
+ { no: 4, name: "threshold_to_inflate_last_block_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
231
+ { no: 5, name: "base_fee_multiplier", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
232
+ { no: 6, name: "base_fee_history_window", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
233
+ { no: 7, name: "min_priority_fee_ratio_of_base_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
234
+ { no: 8, name: "min_priority_fee_gwei", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
235
+ { no: 9, name: "max_priority_fee_gwei", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
236
+ ]);
237
+ /**
238
+ * @generated from message uniswap.unirpc.v2.GasFeesBySpeed
239
+ */
240
+ export class GasFeesBySpeed extends Message {
241
+ constructor(data) {
242
+ super();
243
+ proto3.util.initPartial(data, this);
244
+ }
245
+ static fromBinary(bytes, options) {
246
+ return new GasFeesBySpeed().fromBinary(bytes, options);
247
+ }
248
+ static fromJson(jsonValue, options) {
249
+ return new GasFeesBySpeed().fromJson(jsonValue, options);
250
+ }
251
+ static fromJsonString(jsonString, options) {
252
+ return new GasFeesBySpeed().fromJsonString(jsonString, options);
253
+ }
254
+ static equals(a, b) {
255
+ return proto3.util.equals(GasFeesBySpeed, a, b);
256
+ }
257
+ }
258
+ GasFeesBySpeed.runtime = proto3;
259
+ GasFeesBySpeed.typeName = "uniswap.unirpc.v2.GasFeesBySpeed";
260
+ GasFeesBySpeed.fields = proto3.util.newFieldList(() => [
261
+ { no: 1, name: "normal", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
262
+ { no: 2, name: "fast", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
263
+ { no: 3, name: "urgent", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
264
+ ]);
265
+ /**
266
+ * @generated from message uniswap.unirpc.v2.GasEstimate
267
+ */
268
+ export class GasEstimate extends Message {
269
+ constructor(data) {
270
+ super();
271
+ proto3.util.initPartial(data, this);
272
+ }
273
+ static fromBinary(bytes, options) {
274
+ return new GasEstimate().fromBinary(bytes, options);
275
+ }
276
+ static fromJson(jsonValue, options) {
277
+ return new GasEstimate().fromJson(jsonValue, options);
278
+ }
279
+ static fromJsonString(jsonString, options) {
280
+ return new GasEstimate().fromJsonString(jsonString, options);
281
+ }
282
+ static equals(a, b) {
283
+ return proto3.util.equals(GasEstimate, a, b);
284
+ }
285
+ }
286
+ GasEstimate.runtime = proto3;
287
+ GasEstimate.typeName = "uniswap.unirpc.v2.GasEstimate";
288
+ GasEstimate.fields = proto3.util.newFieldList(() => [
289
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
290
+ { no: 2, name: "strategy", kind: "message", T: GasStrategy, opt: true },
291
+ { no: 3, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
292
+ { no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
293
+ { no: 5, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
294
+ { no: 6, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
295
+ { no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
296
+ ]);
297
+ /**
298
+ * StateOverrideItem is one account's state override for eth_simulateV1.
299
+ *
300
+ * @generated from message uniswap.unirpc.v2.StateOverrideItem
301
+ */
302
+ export class StateOverrideItem extends Message {
303
+ constructor(data) {
304
+ super();
305
+ /**
306
+ * @generated from field: map<string, string> state = 4;
307
+ */
308
+ this.state = {};
309
+ /**
310
+ * @generated from field: map<string, string> state_diff = 5;
311
+ */
312
+ this.stateDiff = {};
313
+ proto3.util.initPartial(data, this);
314
+ }
315
+ static fromBinary(bytes, options) {
316
+ return new StateOverrideItem().fromBinary(bytes, options);
317
+ }
318
+ static fromJson(jsonValue, options) {
319
+ return new StateOverrideItem().fromJson(jsonValue, options);
320
+ }
321
+ static fromJsonString(jsonString, options) {
322
+ return new StateOverrideItem().fromJsonString(jsonString, options);
323
+ }
324
+ static equals(a, b) {
325
+ return proto3.util.equals(StateOverrideItem, a, b);
326
+ }
327
+ }
328
+ StateOverrideItem.runtime = proto3;
329
+ StateOverrideItem.typeName = "uniswap.unirpc.v2.StateOverrideItem";
330
+ StateOverrideItem.fields = proto3.util.newFieldList(() => [
331
+ { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
332
+ { no: 2, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
333
+ { no: 3, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
334
+ { no: 4, name: "state", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
335
+ { no: 5, name: "state_diff", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
336
+ ]);
337
+ /**
338
+ * @generated from message uniswap.unirpc.v2.Call
339
+ */
340
+ export class Call extends Message {
341
+ constructor(data) {
342
+ super();
343
+ proto3.util.initPartial(data, this);
344
+ }
345
+ static fromBinary(bytes, options) {
346
+ return new Call().fromBinary(bytes, options);
347
+ }
348
+ static fromJson(jsonValue, options) {
349
+ return new Call().fromJson(jsonValue, options);
350
+ }
351
+ static fromJsonString(jsonString, options) {
352
+ return new Call().fromJsonString(jsonString, options);
353
+ }
354
+ static equals(a, b) {
355
+ return proto3.util.equals(Call, a, b);
356
+ }
357
+ }
358
+ Call.runtime = proto3;
359
+ Call.typeName = "uniswap.unirpc.v2.Call";
360
+ Call.fields = proto3.util.newFieldList(() => [
361
+ { no: 1, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
362
+ { no: 2, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
363
+ { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
364
+ { no: 4, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
365
+ ]);
366
+ /**
367
+ * @generated from message uniswap.unirpc.v2.EstimateGasFeeRequest
368
+ */
369
+ export class EstimateGasFeeRequest extends Message {
370
+ constructor(data) {
371
+ super();
372
+ /**
373
+ * @generated from field: repeated uniswap.unirpc.v2.GasStrategy gas_strategies = 7;
374
+ */
375
+ this.gasStrategies = [];
376
+ /**
377
+ * @generated from field: map<string, uniswap.unirpc.v2.StateOverrideItem> state_overrides = 9;
378
+ */
379
+ this.stateOverrides = {};
380
+ /**
381
+ * @generated from field: repeated uniswap.unirpc.v2.Call preflight_calls = 10;
382
+ */
383
+ this.preflightCalls = [];
384
+ proto3.util.initPartial(data, this);
385
+ }
386
+ static fromBinary(bytes, options) {
387
+ return new EstimateGasFeeRequest().fromBinary(bytes, options);
388
+ }
389
+ static fromJson(jsonValue, options) {
390
+ return new EstimateGasFeeRequest().fromJson(jsonValue, options);
391
+ }
392
+ static fromJsonString(jsonString, options) {
393
+ return new EstimateGasFeeRequest().fromJsonString(jsonString, options);
394
+ }
395
+ static equals(a, b) {
396
+ return proto3.util.equals(EstimateGasFeeRequest, a, b);
397
+ }
398
+ }
399
+ EstimateGasFeeRequest.runtime = proto3;
400
+ EstimateGasFeeRequest.typeName = "uniswap.unirpc.v2.EstimateGasFeeRequest";
401
+ EstimateGasFeeRequest.fields = proto3.util.newFieldList(() => [
402
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
403
+ { no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
404
+ { no: 3, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
405
+ { no: 4, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
406
+ { no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
407
+ { no: 6, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
408
+ { no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
409
+ { no: 8, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
410
+ { no: 9, name: "state_overrides", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: StateOverrideItem } },
411
+ { no: 10, name: "preflight_calls", kind: "message", T: Call, repeated: true },
412
+ ]);
413
+ /**
414
+ * @generated from message uniswap.unirpc.v2.EstimateGasFeeResponse
415
+ */
416
+ export class EstimateGasFeeResponse extends Message {
417
+ constructor(data) {
418
+ super();
419
+ /**
420
+ * @generated from field: repeated uniswap.unirpc.v2.GasEstimate gas_estimates = 7;
421
+ */
422
+ this.gasEstimates = [];
423
+ proto3.util.initPartial(data, this);
424
+ }
425
+ static fromBinary(bytes, options) {
426
+ return new EstimateGasFeeResponse().fromBinary(bytes, options);
427
+ }
428
+ static fromJson(jsonValue, options) {
429
+ return new EstimateGasFeeResponse().fromJson(jsonValue, options);
430
+ }
431
+ static fromJsonString(jsonString, options) {
432
+ return new EstimateGasFeeResponse().fromJsonString(jsonString, options);
433
+ }
434
+ static equals(a, b) {
435
+ return proto3.util.equals(EstimateGasFeeResponse, a, b);
436
+ }
437
+ }
438
+ EstimateGasFeeResponse.runtime = proto3;
439
+ EstimateGasFeeResponse.typeName = "uniswap.unirpc.v2.EstimateGasFeeResponse";
440
+ EstimateGasFeeResponse.fields = proto3.util.newFieldList(() => [
441
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
442
+ { no: 2, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
443
+ { no: 3, name: "gas_fee", kind: "message", T: GasFeesBySpeed, opt: true },
444
+ { no: 4, name: "gas_price", kind: "message", T: GasFeesBySpeed, opt: true },
445
+ { no: 5, name: "max_priority_fee_per_gas", kind: "message", T: GasFeesBySpeed, opt: true },
446
+ { no: 6, name: "max_fee_per_gas", kind: "message", T: GasFeesBySpeed, opt: true },
447
+ { no: 7, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
448
+ ]);
449
+ /**
450
+ * @generated from message uniswap.unirpc.v2.UniRpcRequest
451
+ */
452
+ export class UniRpcRequest extends Message {
453
+ constructor(data) {
454
+ super();
455
+ /**
456
+ * Standard JSON-RPC fields
457
+ *
458
+ * @generated from field: string jsonrpc = 1;
459
+ */
460
+ this.jsonrpc = "";
461
+ /**
462
+ * @generated from field: string method = 3;
463
+ */
464
+ this.method = "";
465
+ proto3.util.initPartial(data, this);
466
+ }
467
+ static fromBinary(bytes, options) {
468
+ return new UniRpcRequest().fromBinary(bytes, options);
469
+ }
470
+ static fromJson(jsonValue, options) {
471
+ return new UniRpcRequest().fromJson(jsonValue, options);
472
+ }
473
+ static fromJsonString(jsonString, options) {
474
+ return new UniRpcRequest().fromJsonString(jsonString, options);
475
+ }
476
+ static equals(a, b) {
477
+ return proto3.util.equals(UniRpcRequest, a, b);
478
+ }
479
+ }
480
+ UniRpcRequest.runtime = proto3;
481
+ UniRpcRequest.typeName = "uniswap.unirpc.v2.UniRpcRequest";
482
+ UniRpcRequest.fields = proto3.util.newFieldList(() => [
483
+ { no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
484
+ { no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
485
+ { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
486
+ { no: 4, name: "params", kind: "message", T: Value },
487
+ ]);
488
+ /**
489
+ * @generated from message uniswap.unirpc.v2.UniRpcResponse
490
+ */
491
+ export class UniRpcResponse extends Message {
492
+ constructor(data) {
493
+ super();
494
+ /**
495
+ * Standard JSON-RPC fields
496
+ *
497
+ * @generated from field: string jsonrpc = 1;
498
+ */
499
+ this.jsonrpc = "";
500
+ proto3.util.initPartial(data, this);
501
+ }
502
+ static fromBinary(bytes, options) {
503
+ return new UniRpcResponse().fromBinary(bytes, options);
504
+ }
505
+ static fromJson(jsonValue, options) {
506
+ return new UniRpcResponse().fromJson(jsonValue, options);
507
+ }
508
+ static fromJsonString(jsonString, options) {
509
+ return new UniRpcResponse().fromJsonString(jsonString, options);
510
+ }
511
+ static equals(a, b) {
512
+ return proto3.util.equals(UniRpcResponse, a, b);
513
+ }
514
+ }
515
+ UniRpcResponse.runtime = proto3;
516
+ UniRpcResponse.typeName = "uniswap.unirpc.v2.UniRpcResponse";
517
+ UniRpcResponse.fields = proto3.util.newFieldList(() => [
518
+ { no: 1, name: "jsonrpc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
519
+ { no: 2, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
520
+ { no: 3, name: "result", kind: "message", T: Value },
521
+ { no: 4, name: "error", kind: "message", T: UniRpcError },
522
+ { no: 5, name: "stickyId", kind: "message", T: StringValue },
523
+ ]);
524
+ /**
525
+ * @generated from message uniswap.unirpc.v2.UniRpcError
526
+ */
527
+ export class UniRpcError extends Message {
528
+ constructor(data) {
529
+ super();
530
+ /**
531
+ * @generated from field: int32 code = 1;
532
+ */
533
+ this.code = 0;
534
+ /**
535
+ * @generated from field: string message = 2;
536
+ */
537
+ this.message = "";
538
+ proto3.util.initPartial(data, this);
539
+ }
540
+ static fromBinary(bytes, options) {
541
+ return new UniRpcError().fromBinary(bytes, options);
542
+ }
543
+ static fromJson(jsonValue, options) {
544
+ return new UniRpcError().fromJson(jsonValue, options);
545
+ }
546
+ static fromJsonString(jsonString, options) {
547
+ return new UniRpcError().fromJsonString(jsonString, options);
548
+ }
549
+ static equals(a, b) {
550
+ return proto3.util.equals(UniRpcError, a, b);
551
+ }
552
+ }
553
+ UniRpcError.runtime = proto3;
554
+ UniRpcError.typeName = "uniswap.unirpc.v2.UniRpcError";
555
+ UniRpcError.fields = proto3.util.newFieldList(() => [
556
+ { no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
557
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
558
+ { no: 3, name: "data", kind: "message", T: Value },
559
+ ]);
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
- "name": "@uniswap/client-unirpc-v2",
3
- "version": "0.0.1",
4
- "description": "OIDC trusted publishing setup package for @uniswap/client-unirpc-v2",
5
- "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
10
- }
2
+ "name": "@uniswap/client-unirpc-v2",
3
+ "version": "0.0.3",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "files": [
8
+ "dist"
9
+ ]
10
+ }
package/README.md DELETED
@@ -1,45 +0,0 @@
1
- # @uniswap/client-unirpc-v2
2
-
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@uniswap/client-unirpc-v2`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**