@uniswap/client-unirpc-v2 0.0.1 → 0.0.2
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/uniswap/unirpc/v2/chain_config_pb.d.ts +96 -0
- package/dist/uniswap/unirpc/v2/chain_config_pb.js +145 -0
- package/dist/uniswap/unirpc/v2/provider_pb.d.ts +81 -0
- package/dist/uniswap/unirpc/v2/provider_pb.js +124 -0
- package/dist/uniswap/unirpc/v2/service-UniRpcService_connectquery.d.ts +29 -0
- package/dist/uniswap/unirpc/v2/service-UniRpcService_connectquery.js +33 -0
- package/dist/uniswap/unirpc/v2/service_connect.d.ts +29 -0
- package/dist/uniswap/unirpc/v2/service_connect.js +33 -0
- package/dist/uniswap/unirpc/v2/service_pb.d.ts +535 -0
- package/dist/uniswap/unirpc/v2/service_pb.js +567 -0
- package/package.json +9 -9
- package/README.md +0 -45
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { Chain } from "./service_pb.js";
|
|
4
|
+
import { Provider } from "./provider_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* @generated from message uniswap.unirpc.v2.ChainConfig
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChainConfig extends Message<ChainConfig> {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from field: uniswap.unirpc.v2.Chain chain = 1;
|
|
11
|
+
*/
|
|
12
|
+
chain: Chain;
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: repeated uniswap.unirpc.v2.ChainProviderConfig providers = 2;
|
|
15
|
+
*/
|
|
16
|
+
providers: ChainProviderConfig[];
|
|
17
|
+
constructor(data?: PartialMessage<ChainConfig>);
|
|
18
|
+
static readonly runtime: typeof proto3;
|
|
19
|
+
static readonly typeName = "uniswap.unirpc.v2.ChainConfig";
|
|
20
|
+
static readonly fields: FieldList;
|
|
21
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainConfig;
|
|
22
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainConfig;
|
|
23
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainConfig;
|
|
24
|
+
static equals(a: ChainConfig | PlainMessage<ChainConfig> | undefined, b: ChainConfig | PlainMessage<ChainConfig> | undefined): boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @generated from message uniswap.unirpc.v2.ChainProviderConfig
|
|
28
|
+
*/
|
|
29
|
+
export declare class ChainProviderConfig extends Message<ChainProviderConfig> {
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: uniswap.unirpc.v2.Provider provider = 1;
|
|
32
|
+
*/
|
|
33
|
+
provider: Provider;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: double weight = 2;
|
|
36
|
+
*/
|
|
37
|
+
weight: number;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: uniswap.unirpc.v2.Alert alert = 3;
|
|
40
|
+
*/
|
|
41
|
+
alert?: Alert;
|
|
42
|
+
constructor(data?: PartialMessage<ChainProviderConfig>);
|
|
43
|
+
static readonly runtime: typeof proto3;
|
|
44
|
+
static readonly typeName = "uniswap.unirpc.v2.ChainProviderConfig";
|
|
45
|
+
static readonly fields: FieldList;
|
|
46
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainProviderConfig;
|
|
47
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainProviderConfig;
|
|
48
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainProviderConfig;
|
|
49
|
+
static equals(a: ChainProviderConfig | PlainMessage<ChainProviderConfig> | undefined, b: ChainProviderConfig | PlainMessage<ChainProviderConfig> | undefined): boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message uniswap.unirpc.v2.Alert
|
|
53
|
+
*/
|
|
54
|
+
export declare class Alert extends Message<Alert> {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: uint32 id = 1;
|
|
57
|
+
*/
|
|
58
|
+
id: number;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: uniswap.unirpc.v2.HealthChangeRate sinkRate = 2;
|
|
61
|
+
*/
|
|
62
|
+
sinkRate?: HealthChangeRate;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: uniswap.unirpc.v2.HealthChangeRate recoverRate = 3;
|
|
65
|
+
*/
|
|
66
|
+
recoverRate?: HealthChangeRate;
|
|
67
|
+
constructor(data?: PartialMessage<Alert>);
|
|
68
|
+
static readonly runtime: typeof proto3;
|
|
69
|
+
static readonly typeName = "uniswap.unirpc.v2.Alert";
|
|
70
|
+
static readonly fields: FieldList;
|
|
71
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Alert;
|
|
72
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Alert;
|
|
73
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Alert;
|
|
74
|
+
static equals(a: Alert | PlainMessage<Alert> | undefined, b: Alert | PlainMessage<Alert> | undefined): boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @generated from message uniswap.unirpc.v2.HealthChangeRate
|
|
78
|
+
*/
|
|
79
|
+
export declare class HealthChangeRate extends Message<HealthChangeRate> {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: double rate = 1;
|
|
82
|
+
*/
|
|
83
|
+
rate: number;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: uint32 periodSeconds = 2;
|
|
86
|
+
*/
|
|
87
|
+
periodSeconds: number;
|
|
88
|
+
constructor(data?: PartialMessage<HealthChangeRate>);
|
|
89
|
+
static readonly runtime: typeof proto3;
|
|
90
|
+
static readonly typeName = "uniswap.unirpc.v2.HealthChangeRate";
|
|
91
|
+
static readonly fields: FieldList;
|
|
92
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthChangeRate;
|
|
93
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthChangeRate;
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthChangeRate;
|
|
95
|
+
static equals(a: HealthChangeRate | PlainMessage<HealthChangeRate> | undefined, b: HealthChangeRate | PlainMessage<HealthChangeRate> | undefined): boolean;
|
|
96
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/unirpc/v2/chain_config.proto (package uniswap.unirpc.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Chain } from "./service_pb.js";
|
|
7
|
+
import { Provider } from "./provider_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message uniswap.unirpc.v2.ChainConfig
|
|
10
|
+
*/
|
|
11
|
+
export class ChainConfig extends Message {
|
|
12
|
+
constructor(data) {
|
|
13
|
+
super();
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: uniswap.unirpc.v2.Chain chain = 1;
|
|
16
|
+
*/
|
|
17
|
+
this.chain = Chain.UNSPECIFIED;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: repeated uniswap.unirpc.v2.ChainProviderConfig providers = 2;
|
|
20
|
+
*/
|
|
21
|
+
this.providers = [];
|
|
22
|
+
proto3.util.initPartial(data, this);
|
|
23
|
+
}
|
|
24
|
+
static fromBinary(bytes, options) {
|
|
25
|
+
return new ChainConfig().fromBinary(bytes, options);
|
|
26
|
+
}
|
|
27
|
+
static fromJson(jsonValue, options) {
|
|
28
|
+
return new ChainConfig().fromJson(jsonValue, options);
|
|
29
|
+
}
|
|
30
|
+
static fromJsonString(jsonString, options) {
|
|
31
|
+
return new ChainConfig().fromJsonString(jsonString, options);
|
|
32
|
+
}
|
|
33
|
+
static equals(a, b) {
|
|
34
|
+
return proto3.util.equals(ChainConfig, a, b);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
ChainConfig.runtime = proto3;
|
|
38
|
+
ChainConfig.typeName = "uniswap.unirpc.v2.ChainConfig";
|
|
39
|
+
ChainConfig.fields = proto3.util.newFieldList(() => [
|
|
40
|
+
{ no: 1, name: "chain", kind: "enum", T: proto3.getEnumType(Chain) },
|
|
41
|
+
{ no: 2, name: "providers", kind: "message", T: ChainProviderConfig, repeated: true },
|
|
42
|
+
]);
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message uniswap.unirpc.v2.ChainProviderConfig
|
|
45
|
+
*/
|
|
46
|
+
export class ChainProviderConfig extends Message {
|
|
47
|
+
constructor(data) {
|
|
48
|
+
super();
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: uniswap.unirpc.v2.Provider provider = 1;
|
|
51
|
+
*/
|
|
52
|
+
this.provider = Provider.UNSPECIFIED;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: double weight = 2;
|
|
55
|
+
*/
|
|
56
|
+
this.weight = 0;
|
|
57
|
+
proto3.util.initPartial(data, this);
|
|
58
|
+
}
|
|
59
|
+
static fromBinary(bytes, options) {
|
|
60
|
+
return new ChainProviderConfig().fromBinary(bytes, options);
|
|
61
|
+
}
|
|
62
|
+
static fromJson(jsonValue, options) {
|
|
63
|
+
return new ChainProviderConfig().fromJson(jsonValue, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJsonString(jsonString, options) {
|
|
66
|
+
return new ChainProviderConfig().fromJsonString(jsonString, options);
|
|
67
|
+
}
|
|
68
|
+
static equals(a, b) {
|
|
69
|
+
return proto3.util.equals(ChainProviderConfig, a, b);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
ChainProviderConfig.runtime = proto3;
|
|
73
|
+
ChainProviderConfig.typeName = "uniswap.unirpc.v2.ChainProviderConfig";
|
|
74
|
+
ChainProviderConfig.fields = proto3.util.newFieldList(() => [
|
|
75
|
+
{ no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) },
|
|
76
|
+
{ no: 2, name: "weight", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
77
|
+
{ no: 3, name: "alert", kind: "message", T: Alert },
|
|
78
|
+
]);
|
|
79
|
+
/**
|
|
80
|
+
* @generated from message uniswap.unirpc.v2.Alert
|
|
81
|
+
*/
|
|
82
|
+
export class Alert extends Message {
|
|
83
|
+
constructor(data) {
|
|
84
|
+
super();
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: uint32 id = 1;
|
|
87
|
+
*/
|
|
88
|
+
this.id = 0;
|
|
89
|
+
proto3.util.initPartial(data, this);
|
|
90
|
+
}
|
|
91
|
+
static fromBinary(bytes, options) {
|
|
92
|
+
return new Alert().fromBinary(bytes, options);
|
|
93
|
+
}
|
|
94
|
+
static fromJson(jsonValue, options) {
|
|
95
|
+
return new Alert().fromJson(jsonValue, options);
|
|
96
|
+
}
|
|
97
|
+
static fromJsonString(jsonString, options) {
|
|
98
|
+
return new Alert().fromJsonString(jsonString, options);
|
|
99
|
+
}
|
|
100
|
+
static equals(a, b) {
|
|
101
|
+
return proto3.util.equals(Alert, a, b);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
Alert.runtime = proto3;
|
|
105
|
+
Alert.typeName = "uniswap.unirpc.v2.Alert";
|
|
106
|
+
Alert.fields = proto3.util.newFieldList(() => [
|
|
107
|
+
{ no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
108
|
+
{ no: 2, name: "sinkRate", kind: "message", T: HealthChangeRate },
|
|
109
|
+
{ no: 3, name: "recoverRate", kind: "message", T: HealthChangeRate },
|
|
110
|
+
]);
|
|
111
|
+
/**
|
|
112
|
+
* @generated from message uniswap.unirpc.v2.HealthChangeRate
|
|
113
|
+
*/
|
|
114
|
+
export class HealthChangeRate extends Message {
|
|
115
|
+
constructor(data) {
|
|
116
|
+
super();
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: double rate = 1;
|
|
119
|
+
*/
|
|
120
|
+
this.rate = 0;
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: uint32 periodSeconds = 2;
|
|
123
|
+
*/
|
|
124
|
+
this.periodSeconds = 0;
|
|
125
|
+
proto3.util.initPartial(data, this);
|
|
126
|
+
}
|
|
127
|
+
static fromBinary(bytes, options) {
|
|
128
|
+
return new HealthChangeRate().fromBinary(bytes, options);
|
|
129
|
+
}
|
|
130
|
+
static fromJson(jsonValue, options) {
|
|
131
|
+
return new HealthChangeRate().fromJson(jsonValue, options);
|
|
132
|
+
}
|
|
133
|
+
static fromJsonString(jsonString, options) {
|
|
134
|
+
return new HealthChangeRate().fromJsonString(jsonString, options);
|
|
135
|
+
}
|
|
136
|
+
static equals(a, b) {
|
|
137
|
+
return proto3.util.equals(HealthChangeRate, a, b);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
HealthChangeRate.runtime = proto3;
|
|
141
|
+
HealthChangeRate.typeName = "uniswap.unirpc.v2.HealthChangeRate";
|
|
142
|
+
HealthChangeRate.fields = proto3.util.newFieldList(() => [
|
|
143
|
+
{ no: 1, name: "rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
144
|
+
{ no: 2, name: "periodSeconds", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
145
|
+
]);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum uniswap.unirpc.v2.Provider
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Provider {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: PROVIDER_UNSPECIFIED = 0;
|
|
9
|
+
*/
|
|
10
|
+
UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: PROVIDER_INFURA = 1;
|
|
13
|
+
*/
|
|
14
|
+
INFURA = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: PROVIDER_QUICKNODE = 2;
|
|
17
|
+
*/
|
|
18
|
+
QUICKNODE = 2,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: PROVIDER_ALCHEMY = 3;
|
|
21
|
+
*/
|
|
22
|
+
ALCHEMY = 3,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: PROVIDER_NIRVANA = 4;
|
|
25
|
+
*/
|
|
26
|
+
NIRVANA = 4,
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: PROVIDER_UNICHAINBETASERVICE = 5;
|
|
29
|
+
*/
|
|
30
|
+
UNICHAINBETASERVICE = 5,
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: PROVIDER_MONADINFRA = 6;
|
|
33
|
+
*/
|
|
34
|
+
MONADINFRA = 6,
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: PROVIDER_SELFHOST = 7;
|
|
37
|
+
*/
|
|
38
|
+
SELFHOST = 7
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message uniswap.unirpc.v2.ProviderConfig
|
|
42
|
+
*/
|
|
43
|
+
export declare class ProviderConfig extends Message<ProviderConfig> {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: uniswap.unirpc.v2.Provider provider = 1;
|
|
46
|
+
*/
|
|
47
|
+
provider: Provider;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: string url = 2;
|
|
50
|
+
*/
|
|
51
|
+
url: string;
|
|
52
|
+
constructor(data?: PartialMessage<ProviderConfig>);
|
|
53
|
+
static readonly runtime: typeof proto3;
|
|
54
|
+
static readonly typeName = "uniswap.unirpc.v2.ProviderConfig";
|
|
55
|
+
static readonly fields: FieldList;
|
|
56
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProviderConfig;
|
|
57
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProviderConfig;
|
|
58
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProviderConfig;
|
|
59
|
+
static equals(a: ProviderConfig | PlainMessage<ProviderConfig> | undefined, b: ProviderConfig | PlainMessage<ProviderConfig> | undefined): boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message uniswap.unirpc.v2.ProviderHealth
|
|
63
|
+
*/
|
|
64
|
+
export declare class ProviderHealth extends Message<ProviderHealth> {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: int32 healthScore = 1;
|
|
67
|
+
*/
|
|
68
|
+
healthScore: number;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: int32 lastUpdated = 2;
|
|
71
|
+
*/
|
|
72
|
+
lastUpdated: number;
|
|
73
|
+
constructor(data?: PartialMessage<ProviderHealth>);
|
|
74
|
+
static readonly runtime: typeof proto3;
|
|
75
|
+
static readonly typeName = "uniswap.unirpc.v2.ProviderHealth";
|
|
76
|
+
static readonly fields: FieldList;
|
|
77
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProviderHealth;
|
|
78
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProviderHealth;
|
|
79
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProviderHealth;
|
|
80
|
+
static equals(a: ProviderHealth | PlainMessage<ProviderHealth> | undefined, b: ProviderHealth | PlainMessage<ProviderHealth> | undefined): boolean;
|
|
81
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/unirpc/v2/provider.proto (package uniswap.unirpc.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum uniswap.unirpc.v2.Provider
|
|
8
|
+
*/
|
|
9
|
+
export var Provider;
|
|
10
|
+
(function (Provider) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: PROVIDER_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
Provider[Provider["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: PROVIDER_INFURA = 1;
|
|
17
|
+
*/
|
|
18
|
+
Provider[Provider["INFURA"] = 1] = "INFURA";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: PROVIDER_QUICKNODE = 2;
|
|
21
|
+
*/
|
|
22
|
+
Provider[Provider["QUICKNODE"] = 2] = "QUICKNODE";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: PROVIDER_ALCHEMY = 3;
|
|
25
|
+
*/
|
|
26
|
+
Provider[Provider["ALCHEMY"] = 3] = "ALCHEMY";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: PROVIDER_NIRVANA = 4;
|
|
29
|
+
*/
|
|
30
|
+
Provider[Provider["NIRVANA"] = 4] = "NIRVANA";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: PROVIDER_UNICHAINBETASERVICE = 5;
|
|
33
|
+
*/
|
|
34
|
+
Provider[Provider["UNICHAINBETASERVICE"] = 5] = "UNICHAINBETASERVICE";
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: PROVIDER_MONADINFRA = 6;
|
|
37
|
+
*/
|
|
38
|
+
Provider[Provider["MONADINFRA"] = 6] = "MONADINFRA";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: PROVIDER_SELFHOST = 7;
|
|
41
|
+
*/
|
|
42
|
+
Provider[Provider["SELFHOST"] = 7] = "SELFHOST";
|
|
43
|
+
})(Provider || (Provider = {}));
|
|
44
|
+
// Retrieve enum metadata with: proto3.getEnumType(Provider)
|
|
45
|
+
proto3.util.setEnumType(Provider, "uniswap.unirpc.v2.Provider", [
|
|
46
|
+
{ no: 0, name: "PROVIDER_UNSPECIFIED" },
|
|
47
|
+
{ no: 1, name: "PROVIDER_INFURA" },
|
|
48
|
+
{ no: 2, name: "PROVIDER_QUICKNODE" },
|
|
49
|
+
{ no: 3, name: "PROVIDER_ALCHEMY" },
|
|
50
|
+
{ no: 4, name: "PROVIDER_NIRVANA" },
|
|
51
|
+
{ no: 5, name: "PROVIDER_UNICHAINBETASERVICE" },
|
|
52
|
+
{ no: 6, name: "PROVIDER_MONADINFRA" },
|
|
53
|
+
{ no: 7, name: "PROVIDER_SELFHOST" },
|
|
54
|
+
]);
|
|
55
|
+
/**
|
|
56
|
+
* @generated from message uniswap.unirpc.v2.ProviderConfig
|
|
57
|
+
*/
|
|
58
|
+
export class ProviderConfig extends Message {
|
|
59
|
+
constructor(data) {
|
|
60
|
+
super();
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: uniswap.unirpc.v2.Provider provider = 1;
|
|
63
|
+
*/
|
|
64
|
+
this.provider = Provider.UNSPECIFIED;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: string url = 2;
|
|
67
|
+
*/
|
|
68
|
+
this.url = "";
|
|
69
|
+
proto3.util.initPartial(data, this);
|
|
70
|
+
}
|
|
71
|
+
static fromBinary(bytes, options) {
|
|
72
|
+
return new ProviderConfig().fromBinary(bytes, options);
|
|
73
|
+
}
|
|
74
|
+
static fromJson(jsonValue, options) {
|
|
75
|
+
return new ProviderConfig().fromJson(jsonValue, options);
|
|
76
|
+
}
|
|
77
|
+
static fromJsonString(jsonString, options) {
|
|
78
|
+
return new ProviderConfig().fromJsonString(jsonString, options);
|
|
79
|
+
}
|
|
80
|
+
static equals(a, b) {
|
|
81
|
+
return proto3.util.equals(ProviderConfig, a, b);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
ProviderConfig.runtime = proto3;
|
|
85
|
+
ProviderConfig.typeName = "uniswap.unirpc.v2.ProviderConfig";
|
|
86
|
+
ProviderConfig.fields = proto3.util.newFieldList(() => [
|
|
87
|
+
{ no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(Provider) },
|
|
88
|
+
{ no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
]);
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message uniswap.unirpc.v2.ProviderHealth
|
|
92
|
+
*/
|
|
93
|
+
export class ProviderHealth extends Message {
|
|
94
|
+
constructor(data) {
|
|
95
|
+
super();
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: int32 healthScore = 1;
|
|
98
|
+
*/
|
|
99
|
+
this.healthScore = 0;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: int32 lastUpdated = 2;
|
|
102
|
+
*/
|
|
103
|
+
this.lastUpdated = 0;
|
|
104
|
+
proto3.util.initPartial(data, this);
|
|
105
|
+
}
|
|
106
|
+
static fromBinary(bytes, options) {
|
|
107
|
+
return new ProviderHealth().fromBinary(bytes, options);
|
|
108
|
+
}
|
|
109
|
+
static fromJson(jsonValue, options) {
|
|
110
|
+
return new ProviderHealth().fromJson(jsonValue, options);
|
|
111
|
+
}
|
|
112
|
+
static fromJsonString(jsonString, options) {
|
|
113
|
+
return new ProviderHealth().fromJsonString(jsonString, options);
|
|
114
|
+
}
|
|
115
|
+
static equals(a, b) {
|
|
116
|
+
return proto3.util.equals(ProviderHealth, a, b);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
ProviderHealth.runtime = proto3;
|
|
120
|
+
ProviderHealth.typeName = "uniswap.unirpc.v2.ProviderHealth";
|
|
121
|
+
ProviderHealth.fields = proto3.util.newFieldList(() => [
|
|
122
|
+
{ no: 1, name: "healthScore", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
123
|
+
{ no: 2, name: "lastUpdated", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
124
|
+
]);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { EstimateGasFeeRequest, EstimateGasFeeResponse, UniRpcRequest, UniRpcResponse } from "./service_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.EstimateGasFee
|
|
5
|
+
*/
|
|
6
|
+
export declare const estimateGasFee: {
|
|
7
|
+
readonly localName: "estimateGasFee";
|
|
8
|
+
readonly name: "EstimateGasFee";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof EstimateGasFeeRequest;
|
|
11
|
+
readonly O: typeof EstimateGasFeeResponse;
|
|
12
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
13
|
+
readonly service: {
|
|
14
|
+
readonly typeName: "uniswap.unirpc.v2.UniRpcService";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.UniRpcCall
|
|
19
|
+
*/
|
|
20
|
+
export declare const uniRpcCall: {
|
|
21
|
+
readonly localName: "uniRpcCall";
|
|
22
|
+
readonly name: "UniRpcCall";
|
|
23
|
+
readonly kind: MethodKind.Unary;
|
|
24
|
+
readonly I: typeof UniRpcRequest;
|
|
25
|
+
readonly O: typeof UniRpcResponse;
|
|
26
|
+
readonly service: {
|
|
27
|
+
readonly typeName: "uniswap.unirpc.v2.UniRpcService";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 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 { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { EstimateGasFeeRequest, EstimateGasFeeResponse, UniRpcRequest, UniRpcResponse } from "./service_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.EstimateGasFee
|
|
9
|
+
*/
|
|
10
|
+
export const estimateGasFee = {
|
|
11
|
+
localName: "estimateGasFee",
|
|
12
|
+
name: "EstimateGasFee",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: EstimateGasFeeRequest,
|
|
15
|
+
O: EstimateGasFeeResponse,
|
|
16
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
17
|
+
service: {
|
|
18
|
+
typeName: "uniswap.unirpc.v2.UniRpcService"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.UniRpcCall
|
|
23
|
+
*/
|
|
24
|
+
export const uniRpcCall = {
|
|
25
|
+
localName: "uniRpcCall",
|
|
26
|
+
name: "UniRpcCall",
|
|
27
|
+
kind: MethodKind.Unary,
|
|
28
|
+
I: UniRpcRequest,
|
|
29
|
+
O: UniRpcResponse,
|
|
30
|
+
service: {
|
|
31
|
+
typeName: "uniswap.unirpc.v2.UniRpcService"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EstimateGasFeeRequest, EstimateGasFeeResponse, UniRpcRequest, UniRpcResponse } from "./service_pb.js";
|
|
2
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service uniswap.unirpc.v2.UniRpcService
|
|
5
|
+
*/
|
|
6
|
+
export declare const UniRpcService: {
|
|
7
|
+
readonly typeName: "uniswap.unirpc.v2.UniRpcService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.EstimateGasFee
|
|
11
|
+
*/
|
|
12
|
+
readonly estimateGasFee: {
|
|
13
|
+
readonly name: "EstimateGasFee";
|
|
14
|
+
readonly I: typeof EstimateGasFeeRequest;
|
|
15
|
+
readonly O: typeof EstimateGasFeeResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.UniRpcCall
|
|
21
|
+
*/
|
|
22
|
+
readonly uniRpcCall: {
|
|
23
|
+
readonly name: "UniRpcCall";
|
|
24
|
+
readonly I: typeof UniRpcRequest;
|
|
25
|
+
readonly O: typeof UniRpcResponse;
|
|
26
|
+
readonly kind: MethodKind.Unary;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 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 { EstimateGasFeeRequest, EstimateGasFeeResponse, UniRpcRequest, UniRpcResponse } from "./service_pb.js";
|
|
6
|
+
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service uniswap.unirpc.v2.UniRpcService
|
|
9
|
+
*/
|
|
10
|
+
export const UniRpcService = {
|
|
11
|
+
typeName: "uniswap.unirpc.v2.UniRpcService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.EstimateGasFee
|
|
15
|
+
*/
|
|
16
|
+
estimateGasFee: {
|
|
17
|
+
name: "EstimateGasFee",
|
|
18
|
+
I: EstimateGasFeeRequest,
|
|
19
|
+
O: EstimateGasFeeResponse,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* @generated from rpc uniswap.unirpc.v2.UniRpcService.UniRpcCall
|
|
25
|
+
*/
|
|
26
|
+
uniRpcCall: {
|
|
27
|
+
name: "UniRpcCall",
|
|
28
|
+
I: UniRpcRequest,
|
|
29
|
+
O: UniRpcResponse,
|
|
30
|
+
kind: MethodKind.Unary,
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
};
|