@uniswap/client-data-api 0.0.70 → 0.0.72
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/data/v2/types_pb.d.ts +151 -51
- package/dist/data/v2/types_pb.js +176 -57
- package/package.json +1 -1
|
@@ -1,97 +1,197 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import {
|
|
3
|
+
import { TokenType } from "../v1/types_pb.js";
|
|
4
4
|
/**
|
|
5
|
-
* @generated from message data.v2.
|
|
5
|
+
* @generated from message data.v2.TokenPriceData
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class TokenPriceData extends Message<TokenPriceData> {
|
|
8
8
|
/**
|
|
9
|
-
* @generated from field:
|
|
9
|
+
* @generated from field: optional double spot_usd = 1;
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
spotUsd?: number;
|
|
12
12
|
/**
|
|
13
|
-
* @generated from field:
|
|
13
|
+
* @generated from field: optional double percent_change_1d = 2;
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
percentChange1d?: number;
|
|
16
|
+
constructor(data?: PartialMessage<TokenPriceData>);
|
|
17
|
+
static readonly runtime: typeof proto3;
|
|
18
|
+
static readonly typeName = "data.v2.TokenPriceData";
|
|
19
|
+
static readonly fields: FieldList;
|
|
20
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenPriceData;
|
|
21
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenPriceData;
|
|
22
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPriceData;
|
|
23
|
+
static equals(a: TokenPriceData | PlainMessage<TokenPriceData> | undefined, b: TokenPriceData | PlainMessage<TokenPriceData> | undefined): boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @generated from message data.v2.TokenSafety
|
|
27
|
+
*/
|
|
28
|
+
export declare class TokenSafety extends Message<TokenSafety> {
|
|
16
29
|
/**
|
|
17
|
-
* @generated from field:
|
|
30
|
+
* @generated from field: bool is_spam = 1;
|
|
18
31
|
*/
|
|
19
|
-
|
|
32
|
+
isSpam: boolean;
|
|
20
33
|
/**
|
|
21
|
-
* @generated from field:
|
|
34
|
+
* @generated from field: bool is_verified = 2;
|
|
22
35
|
*/
|
|
23
|
-
|
|
36
|
+
isVerified: boolean;
|
|
24
37
|
/**
|
|
25
|
-
* @generated from field:
|
|
38
|
+
* @generated from field: bool is_blocked = 3;
|
|
26
39
|
*/
|
|
27
|
-
|
|
40
|
+
isBlocked: boolean;
|
|
28
41
|
/**
|
|
29
|
-
* @generated from field:
|
|
42
|
+
* @generated from field: optional string verdict = 4;
|
|
30
43
|
*/
|
|
31
|
-
|
|
44
|
+
verdict?: string;
|
|
32
45
|
/**
|
|
33
|
-
* @generated from field:
|
|
46
|
+
* @generated from field: repeated string features = 5;
|
|
34
47
|
*/
|
|
35
|
-
|
|
36
|
-
constructor(data?: PartialMessage<
|
|
48
|
+
features: string[];
|
|
49
|
+
constructor(data?: PartialMessage<TokenSafety>);
|
|
37
50
|
static readonly runtime: typeof proto3;
|
|
38
|
-
static readonly typeName = "data.v2.
|
|
51
|
+
static readonly typeName = "data.v2.TokenSafety";
|
|
39
52
|
static readonly fields: FieldList;
|
|
40
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
41
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
42
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
43
|
-
static equals(a:
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenSafety;
|
|
54
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenSafety;
|
|
55
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenSafety;
|
|
56
|
+
static equals(a: TokenSafety | PlainMessage<TokenSafety> | undefined, b: TokenSafety | PlainMessage<TokenSafety> | undefined): boolean;
|
|
44
57
|
}
|
|
45
58
|
/**
|
|
46
|
-
* @generated from message data.v2.
|
|
59
|
+
* @generated from message data.v2.TokenFees
|
|
47
60
|
*/
|
|
48
|
-
export declare class
|
|
61
|
+
export declare class TokenFees extends Message<TokenFees> {
|
|
49
62
|
/**
|
|
50
|
-
* @generated from field:
|
|
63
|
+
* @generated from field: optional double buy_fee = 1;
|
|
51
64
|
*/
|
|
52
|
-
|
|
65
|
+
buyFee?: number;
|
|
53
66
|
/**
|
|
54
|
-
* @generated from field:
|
|
67
|
+
* @generated from field: optional double sell_fee = 2;
|
|
55
68
|
*/
|
|
56
|
-
|
|
69
|
+
sellFee?: number;
|
|
57
70
|
/**
|
|
58
|
-
* @generated from field:
|
|
71
|
+
* @generated from field: optional double transfer_fee = 3;
|
|
59
72
|
*/
|
|
60
|
-
|
|
73
|
+
transferFee?: number;
|
|
74
|
+
constructor(data?: PartialMessage<TokenFees>);
|
|
75
|
+
static readonly runtime: typeof proto3;
|
|
76
|
+
static readonly typeName = "data.v2.TokenFees";
|
|
77
|
+
static readonly fields: FieldList;
|
|
78
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenFees;
|
|
79
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenFees;
|
|
80
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenFees;
|
|
81
|
+
static equals(a: TokenFees | PlainMessage<TokenFees> | undefined, b: TokenFees | PlainMessage<TokenFees> | undefined): boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message data.v2.TokenProject
|
|
85
|
+
*/
|
|
86
|
+
export declare class TokenProject extends Message<TokenProject> {
|
|
61
87
|
/**
|
|
62
|
-
* @generated from field:
|
|
88
|
+
* @generated from field: optional string description = 1;
|
|
63
89
|
*/
|
|
64
|
-
|
|
90
|
+
description?: string;
|
|
65
91
|
/**
|
|
66
|
-
* @generated from field:
|
|
92
|
+
* @generated from field: map<string, string> description_translations = 5;
|
|
67
93
|
*/
|
|
68
|
-
|
|
94
|
+
descriptionTranslations: {
|
|
95
|
+
[key: string]: string;
|
|
96
|
+
};
|
|
69
97
|
/**
|
|
70
|
-
* @generated from field:
|
|
98
|
+
* @generated from field: optional string homepage_url = 2;
|
|
71
99
|
*/
|
|
72
|
-
|
|
100
|
+
homepageUrl?: string;
|
|
73
101
|
/**
|
|
74
|
-
* @generated from field:
|
|
102
|
+
* @generated from field: optional string twitter_name = 3;
|
|
75
103
|
*/
|
|
76
|
-
|
|
104
|
+
twitterName?: string;
|
|
77
105
|
/**
|
|
78
|
-
* @generated from field: optional string
|
|
106
|
+
* @generated from field: optional string logo_url = 4;
|
|
79
107
|
*/
|
|
80
|
-
|
|
108
|
+
logoUrl?: string;
|
|
109
|
+
constructor(data?: PartialMessage<TokenProject>);
|
|
110
|
+
static readonly runtime: typeof proto3;
|
|
111
|
+
static readonly typeName = "data.v2.TokenProject";
|
|
112
|
+
static readonly fields: FieldList;
|
|
113
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenProject;
|
|
114
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenProject;
|
|
115
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenProject;
|
|
116
|
+
static equals(a: TokenProject | PlainMessage<TokenProject> | undefined, b: TokenProject | PlainMessage<TokenProject> | undefined): boolean;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @generated from message data.v2.TokenMultichain
|
|
120
|
+
*/
|
|
121
|
+
export declare class TokenMultichain extends Message<TokenMultichain> {
|
|
81
122
|
/**
|
|
82
|
-
* @generated from field:
|
|
123
|
+
* @generated from field: string id = 1;
|
|
83
124
|
*/
|
|
84
|
-
|
|
125
|
+
id: string;
|
|
85
126
|
/**
|
|
86
|
-
* @generated from field:
|
|
127
|
+
* @generated from field: map<string, string> addresses = 2;
|
|
87
128
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
129
|
+
addresses: {
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
};
|
|
132
|
+
constructor(data?: PartialMessage<TokenMultichain>);
|
|
133
|
+
static readonly runtime: typeof proto3;
|
|
134
|
+
static readonly typeName = "data.v2.TokenMultichain";
|
|
135
|
+
static readonly fields: FieldList;
|
|
136
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMultichain;
|
|
137
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMultichain;
|
|
138
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMultichain;
|
|
139
|
+
static equals(a: TokenMultichain | PlainMessage<TokenMultichain> | undefined, b: TokenMultichain | PlainMessage<TokenMultichain> | undefined): boolean;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @generated from message data.v2.Token
|
|
143
|
+
*/
|
|
144
|
+
export declare class Token extends Message<Token> {
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: uint32 chain_id = 1;
|
|
147
|
+
*/
|
|
148
|
+
chainId: number;
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: string address = 2;
|
|
151
|
+
*/
|
|
152
|
+
address: string;
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: string symbol = 3;
|
|
155
|
+
*/
|
|
156
|
+
symbol: string;
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: uint32 decimals = 4;
|
|
159
|
+
*/
|
|
160
|
+
decimals: number;
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: string name = 5;
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: data.v1.TokenType type = 6;
|
|
167
|
+
*/
|
|
168
|
+
type: TokenType;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: data.v2.TokenPriceData price = 8;
|
|
171
|
+
*/
|
|
172
|
+
price?: TokenPriceData;
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: data.v2.TokenSafety safety = 9;
|
|
175
|
+
*/
|
|
176
|
+
safety?: TokenSafety;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: data.v2.TokenFees fees = 10;
|
|
179
|
+
*/
|
|
180
|
+
fees?: TokenFees;
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: data.v2.TokenProject project = 11;
|
|
183
|
+
*/
|
|
184
|
+
project?: TokenProject;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: optional data.v2.TokenMultichain multichain = 12;
|
|
187
|
+
*/
|
|
188
|
+
multichain?: TokenMultichain;
|
|
189
|
+
constructor(data?: PartialMessage<Token>);
|
|
90
190
|
static readonly runtime: typeof proto3;
|
|
91
|
-
static readonly typeName = "data.v2.
|
|
191
|
+
static readonly typeName = "data.v2.Token";
|
|
92
192
|
static readonly fields: FieldList;
|
|
93
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
94
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
95
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
96
|
-
static equals(a:
|
|
193
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
|
|
194
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
|
|
195
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
|
|
196
|
+
static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
|
|
97
197
|
}
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -3,7 +3,177 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import {
|
|
6
|
+
import { TokenType } from "../v1/types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message data.v2.TokenPriceData
|
|
9
|
+
*/
|
|
10
|
+
export class TokenPriceData extends Message {
|
|
11
|
+
constructor(data) {
|
|
12
|
+
super();
|
|
13
|
+
proto3.util.initPartial(data, this);
|
|
14
|
+
}
|
|
15
|
+
static fromBinary(bytes, options) {
|
|
16
|
+
return new TokenPriceData().fromBinary(bytes, options);
|
|
17
|
+
}
|
|
18
|
+
static fromJson(jsonValue, options) {
|
|
19
|
+
return new TokenPriceData().fromJson(jsonValue, options);
|
|
20
|
+
}
|
|
21
|
+
static fromJsonString(jsonString, options) {
|
|
22
|
+
return new TokenPriceData().fromJsonString(jsonString, options);
|
|
23
|
+
}
|
|
24
|
+
static equals(a, b) {
|
|
25
|
+
return proto3.util.equals(TokenPriceData, a, b);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
TokenPriceData.runtime = proto3;
|
|
29
|
+
TokenPriceData.typeName = "data.v2.TokenPriceData";
|
|
30
|
+
TokenPriceData.fields = proto3.util.newFieldList(() => [
|
|
31
|
+
{ no: 1, name: "spot_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
32
|
+
{ no: 2, name: "percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
33
|
+
]);
|
|
34
|
+
/**
|
|
35
|
+
* @generated from message data.v2.TokenSafety
|
|
36
|
+
*/
|
|
37
|
+
export class TokenSafety extends Message {
|
|
38
|
+
constructor(data) {
|
|
39
|
+
super();
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: bool is_spam = 1;
|
|
42
|
+
*/
|
|
43
|
+
this.isSpam = false;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: bool is_verified = 2;
|
|
46
|
+
*/
|
|
47
|
+
this.isVerified = false;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: bool is_blocked = 3;
|
|
50
|
+
*/
|
|
51
|
+
this.isBlocked = false;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from field: repeated string features = 5;
|
|
54
|
+
*/
|
|
55
|
+
this.features = [];
|
|
56
|
+
proto3.util.initPartial(data, this);
|
|
57
|
+
}
|
|
58
|
+
static fromBinary(bytes, options) {
|
|
59
|
+
return new TokenSafety().fromBinary(bytes, options);
|
|
60
|
+
}
|
|
61
|
+
static fromJson(jsonValue, options) {
|
|
62
|
+
return new TokenSafety().fromJson(jsonValue, options);
|
|
63
|
+
}
|
|
64
|
+
static fromJsonString(jsonString, options) {
|
|
65
|
+
return new TokenSafety().fromJsonString(jsonString, options);
|
|
66
|
+
}
|
|
67
|
+
static equals(a, b) {
|
|
68
|
+
return proto3.util.equals(TokenSafety, a, b);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
TokenSafety.runtime = proto3;
|
|
72
|
+
TokenSafety.typeName = "data.v2.TokenSafety";
|
|
73
|
+
TokenSafety.fields = proto3.util.newFieldList(() => [
|
|
74
|
+
{ no: 1, name: "is_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
75
|
+
{ no: 2, name: "is_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
76
|
+
{ no: 3, name: "is_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
77
|
+
{ no: 4, name: "verdict", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
78
|
+
{ no: 5, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
79
|
+
]);
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message data.v2.TokenFees
|
|
82
|
+
*/
|
|
83
|
+
export class TokenFees extends Message {
|
|
84
|
+
constructor(data) {
|
|
85
|
+
super();
|
|
86
|
+
proto3.util.initPartial(data, this);
|
|
87
|
+
}
|
|
88
|
+
static fromBinary(bytes, options) {
|
|
89
|
+
return new TokenFees().fromBinary(bytes, options);
|
|
90
|
+
}
|
|
91
|
+
static fromJson(jsonValue, options) {
|
|
92
|
+
return new TokenFees().fromJson(jsonValue, options);
|
|
93
|
+
}
|
|
94
|
+
static fromJsonString(jsonString, options) {
|
|
95
|
+
return new TokenFees().fromJsonString(jsonString, options);
|
|
96
|
+
}
|
|
97
|
+
static equals(a, b) {
|
|
98
|
+
return proto3.util.equals(TokenFees, a, b);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
TokenFees.runtime = proto3;
|
|
102
|
+
TokenFees.typeName = "data.v2.TokenFees";
|
|
103
|
+
TokenFees.fields = proto3.util.newFieldList(() => [
|
|
104
|
+
{ no: 1, name: "buy_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
105
|
+
{ no: 2, name: "sell_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
106
|
+
{ no: 3, name: "transfer_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
107
|
+
]);
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message data.v2.TokenProject
|
|
110
|
+
*/
|
|
111
|
+
export class TokenProject extends Message {
|
|
112
|
+
constructor(data) {
|
|
113
|
+
super();
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: map<string, string> description_translations = 5;
|
|
116
|
+
*/
|
|
117
|
+
this.descriptionTranslations = {};
|
|
118
|
+
proto3.util.initPartial(data, this);
|
|
119
|
+
}
|
|
120
|
+
static fromBinary(bytes, options) {
|
|
121
|
+
return new TokenProject().fromBinary(bytes, options);
|
|
122
|
+
}
|
|
123
|
+
static fromJson(jsonValue, options) {
|
|
124
|
+
return new TokenProject().fromJson(jsonValue, options);
|
|
125
|
+
}
|
|
126
|
+
static fromJsonString(jsonString, options) {
|
|
127
|
+
return new TokenProject().fromJsonString(jsonString, options);
|
|
128
|
+
}
|
|
129
|
+
static equals(a, b) {
|
|
130
|
+
return proto3.util.equals(TokenProject, a, b);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
TokenProject.runtime = proto3;
|
|
134
|
+
TokenProject.typeName = "data.v2.TokenProject";
|
|
135
|
+
TokenProject.fields = proto3.util.newFieldList(() => [
|
|
136
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
137
|
+
{ no: 5, name: "description_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
138
|
+
{ no: 2, name: "homepage_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
139
|
+
{ no: 3, name: "twitter_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
140
|
+
{ no: 4, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
141
|
+
]);
|
|
142
|
+
/**
|
|
143
|
+
* @generated from message data.v2.TokenMultichain
|
|
144
|
+
*/
|
|
145
|
+
export class TokenMultichain extends Message {
|
|
146
|
+
constructor(data) {
|
|
147
|
+
super();
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string id = 1;
|
|
150
|
+
*/
|
|
151
|
+
this.id = "";
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: map<string, string> addresses = 2;
|
|
154
|
+
*/
|
|
155
|
+
this.addresses = {};
|
|
156
|
+
proto3.util.initPartial(data, this);
|
|
157
|
+
}
|
|
158
|
+
static fromBinary(bytes, options) {
|
|
159
|
+
return new TokenMultichain().fromBinary(bytes, options);
|
|
160
|
+
}
|
|
161
|
+
static fromJson(jsonValue, options) {
|
|
162
|
+
return new TokenMultichain().fromJson(jsonValue, options);
|
|
163
|
+
}
|
|
164
|
+
static fromJsonString(jsonString, options) {
|
|
165
|
+
return new TokenMultichain().fromJsonString(jsonString, options);
|
|
166
|
+
}
|
|
167
|
+
static equals(a, b) {
|
|
168
|
+
return proto3.util.equals(TokenMultichain, a, b);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
TokenMultichain.runtime = proto3;
|
|
172
|
+
TokenMultichain.typeName = "data.v2.TokenMultichain";
|
|
173
|
+
TokenMultichain.fields = proto3.util.newFieldList(() => [
|
|
174
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
175
|
+
{ no: 2, name: "addresses", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
176
|
+
]);
|
|
7
177
|
/**
|
|
8
178
|
* @generated from message data.v2.Token
|
|
9
179
|
*/
|
|
@@ -58,60 +228,9 @@ Token.fields = proto3.util.newFieldList(() => [
|
|
|
58
228
|
{ no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
59
229
|
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
230
|
{ no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
|
|
61
|
-
{ no:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export class TokenMetadata extends Message {
|
|
67
|
-
constructor(data) {
|
|
68
|
-
super();
|
|
69
|
-
/**
|
|
70
|
-
* @generated from field: string project_name = 1;
|
|
71
|
-
*/
|
|
72
|
-
this.projectName = "";
|
|
73
|
-
/**
|
|
74
|
-
* @generated from field: string logo_url = 2;
|
|
75
|
-
*/
|
|
76
|
-
this.logoUrl = "";
|
|
77
|
-
/**
|
|
78
|
-
* @generated from field: data.v1.SafetyLevel safety_level = 5;
|
|
79
|
-
*/
|
|
80
|
-
this.safetyLevel = SafetyLevel.UNKNOWN;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: data.v1.SpamCode spam_code = 6;
|
|
83
|
-
*/
|
|
84
|
-
this.spamCode = SpamCode.UNKNOWN;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from field: bool is_bridged = 7;
|
|
87
|
-
*/
|
|
88
|
-
this.isBridged = false;
|
|
89
|
-
proto3.util.initPartial(data, this);
|
|
90
|
-
}
|
|
91
|
-
static fromBinary(bytes, options) {
|
|
92
|
-
return new TokenMetadata().fromBinary(bytes, options);
|
|
93
|
-
}
|
|
94
|
-
static fromJson(jsonValue, options) {
|
|
95
|
-
return new TokenMetadata().fromJson(jsonValue, options);
|
|
96
|
-
}
|
|
97
|
-
static fromJsonString(jsonString, options) {
|
|
98
|
-
return new TokenMetadata().fromJsonString(jsonString, options);
|
|
99
|
-
}
|
|
100
|
-
static equals(a, b) {
|
|
101
|
-
return proto3.util.equals(TokenMetadata, a, b);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
TokenMetadata.runtime = proto3;
|
|
105
|
-
TokenMetadata.typeName = "data.v2.TokenMetadata";
|
|
106
|
-
TokenMetadata.fields = proto3.util.newFieldList(() => [
|
|
107
|
-
{ no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
108
|
-
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
|
-
{ no: 3, name: "protection_info", kind: "message", T: ProtectionInfo },
|
|
110
|
-
{ no: 4, name: "fee_data", kind: "message", T: FeeData },
|
|
111
|
-
{ no: 5, name: "safety_level", kind: "enum", T: proto3.getEnumType(SafetyLevel) },
|
|
112
|
-
{ no: 6, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
113
|
-
{ no: 7, name: "is_bridged", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
114
|
-
{ no: 8, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
115
|
-
{ no: 9, name: "homepage_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
116
|
-
{ no: 10, name: "twitter_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
231
|
+
{ no: 8, name: "price", kind: "message", T: TokenPriceData },
|
|
232
|
+
{ no: 9, name: "safety", kind: "message", T: TokenSafety },
|
|
233
|
+
{ no: 10, name: "fees", kind: "message", T: TokenFees },
|
|
234
|
+
{ no: 11, name: "project", kind: "message", T: TokenProject },
|
|
235
|
+
{ no: 12, name: "multichain", kind: "message", T: TokenMultichain, opt: true },
|
|
117
236
|
]);
|