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