@uniswap/client-data-api 0.0.66 → 0.0.67

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,28 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { GetTokenRequest, GetTokenResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
3
+ /**
4
+ * @generated from rpc data.v2.DataApiService.GetToken
5
+ */
6
+ export declare const getToken: {
7
+ readonly localName: "getToken";
8
+ readonly name: "GetToken";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof GetTokenRequest;
11
+ readonly O: typeof GetTokenResponse;
12
+ readonly service: {
13
+ readonly typeName: "data.v2.DataApiService";
14
+ };
15
+ };
16
+ /**
17
+ * @generated from rpc data.v2.DataApiService.GetTokens
18
+ */
19
+ export declare const getTokens: {
20
+ readonly localName: "getTokens";
21
+ readonly name: "GetTokens";
22
+ readonly kind: MethodKind.Unary;
23
+ readonly I: typeof GetTokensRequest;
24
+ readonly O: typeof GetTokensResponse;
25
+ readonly service: {
26
+ readonly typeName: "data.v2.DataApiService";
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
+ // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodKind } from "@bufbuild/protobuf";
6
+ import { GetTokenRequest, GetTokenResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
7
+ /**
8
+ * @generated from rpc data.v2.DataApiService.GetToken
9
+ */
10
+ export const getToken = {
11
+ localName: "getToken",
12
+ name: "GetToken",
13
+ kind: MethodKind.Unary,
14
+ I: GetTokenRequest,
15
+ O: GetTokenResponse,
16
+ service: {
17
+ typeName: "data.v2.DataApiService"
18
+ }
19
+ };
20
+ /**
21
+ * @generated from rpc data.v2.DataApiService.GetTokens
22
+ */
23
+ export const getTokens = {
24
+ localName: "getTokens",
25
+ name: "GetTokens",
26
+ kind: MethodKind.Unary,
27
+ I: GetTokensRequest,
28
+ O: GetTokensResponse,
29
+ service: {
30
+ typeName: "data.v2.DataApiService"
31
+ }
32
+ };
@@ -0,0 +1,28 @@
1
+ import { GetTokenRequest, GetTokenResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service data.v2.DataApiService
5
+ */
6
+ export declare const DataApiService: {
7
+ readonly typeName: "data.v2.DataApiService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc data.v2.DataApiService.GetToken
11
+ */
12
+ readonly getToken: {
13
+ readonly name: "GetToken";
14
+ readonly I: typeof GetTokenRequest;
15
+ readonly O: typeof GetTokenResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ /**
19
+ * @generated from rpc data.v2.DataApiService.GetTokens
20
+ */
21
+ readonly getTokens: {
22
+ readonly name: "GetTokens";
23
+ readonly I: typeof GetTokensRequest;
24
+ readonly O: typeof GetTokensResponse;
25
+ readonly kind: MethodKind.Unary;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
+ // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { GetTokenRequest, GetTokenResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service data.v2.DataApiService
9
+ */
10
+ export const DataApiService = {
11
+ typeName: "data.v2.DataApiService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc data.v2.DataApiService.GetToken
15
+ */
16
+ getToken: {
17
+ name: "GetToken",
18
+ I: GetTokenRequest,
19
+ O: GetTokenResponse,
20
+ kind: MethodKind.Unary,
21
+ },
22
+ /**
23
+ * @generated from rpc data.v2.DataApiService.GetTokens
24
+ */
25
+ getTokens: {
26
+ name: "GetTokens",
27
+ I: GetTokensRequest,
28
+ O: GetTokensResponse,
29
+ kind: MethodKind.Unary,
30
+ },
31
+ }
32
+ };
@@ -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 { Token } from "./types_pb.js";
4
+ /**
5
+ * @generated from message data.v2.GetTokenRequest
6
+ */
7
+ export declare class GetTokenRequest extends Message<GetTokenRequest> {
8
+ /**
9
+ * @generated from field: uint32 chain_id = 1;
10
+ */
11
+ chainId: number;
12
+ /**
13
+ * @generated from field: string address = 2;
14
+ */
15
+ address: string;
16
+ constructor(data?: PartialMessage<GetTokenRequest>);
17
+ static readonly runtime: typeof proto3;
18
+ static readonly typeName = "data.v2.GetTokenRequest";
19
+ static readonly fields: FieldList;
20
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenRequest;
21
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenRequest;
22
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenRequest;
23
+ static equals(a: GetTokenRequest | PlainMessage<GetTokenRequest> | undefined, b: GetTokenRequest | PlainMessage<GetTokenRequest> | undefined): boolean;
24
+ }
25
+ /**
26
+ * @generated from message data.v2.GetTokenResponse
27
+ */
28
+ export declare class GetTokenResponse extends Message<GetTokenResponse> {
29
+ /**
30
+ * @generated from field: data.v2.Token token = 1;
31
+ */
32
+ token?: Token;
33
+ constructor(data?: PartialMessage<GetTokenResponse>);
34
+ static readonly runtime: typeof proto3;
35
+ static readonly typeName = "data.v2.GetTokenResponse";
36
+ static readonly fields: FieldList;
37
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenResponse;
38
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenResponse;
39
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenResponse;
40
+ static equals(a: GetTokenResponse | PlainMessage<GetTokenResponse> | undefined, b: GetTokenResponse | PlainMessage<GetTokenResponse> | undefined): boolean;
41
+ }
42
+ /**
43
+ * @generated from message data.v2.TokenIdentifier
44
+ */
45
+ export declare class TokenIdentifier extends Message<TokenIdentifier> {
46
+ /**
47
+ * @generated from field: uint32 chain_id = 1;
48
+ */
49
+ chainId: number;
50
+ /**
51
+ * @generated from field: string address = 2;
52
+ */
53
+ address: string;
54
+ constructor(data?: PartialMessage<TokenIdentifier>);
55
+ static readonly runtime: typeof proto3;
56
+ static readonly typeName = "data.v2.TokenIdentifier";
57
+ static readonly fields: FieldList;
58
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenIdentifier;
59
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenIdentifier;
60
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenIdentifier;
61
+ static equals(a: TokenIdentifier | PlainMessage<TokenIdentifier> | undefined, b: TokenIdentifier | PlainMessage<TokenIdentifier> | undefined): boolean;
62
+ }
63
+ /**
64
+ * @generated from message data.v2.GetTokensRequest
65
+ */
66
+ export declare class GetTokensRequest extends Message<GetTokensRequest> {
67
+ /**
68
+ * @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
69
+ */
70
+ tokens: TokenIdentifier[];
71
+ constructor(data?: PartialMessage<GetTokensRequest>);
72
+ static readonly runtime: typeof proto3;
73
+ static readonly typeName = "data.v2.GetTokensRequest";
74
+ static readonly fields: FieldList;
75
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensRequest;
76
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensRequest;
77
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensRequest;
78
+ static equals(a: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined, b: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined): boolean;
79
+ }
80
+ /**
81
+ * @generated from message data.v2.GetTokensResponse
82
+ */
83
+ export declare class GetTokensResponse extends Message<GetTokensResponse> {
84
+ /**
85
+ * @generated from field: repeated data.v2.Token tokens = 1;
86
+ */
87
+ tokens: Token[];
88
+ constructor(data?: PartialMessage<GetTokensResponse>);
89
+ static readonly runtime: typeof proto3;
90
+ static readonly typeName = "data.v2.GetTokensResponse";
91
+ static readonly fields: FieldList;
92
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensResponse;
93
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensResponse;
94
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensResponse;
95
+ static equals(a: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined, b: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined): boolean;
96
+ }
@@ -0,0 +1,162 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { Token } from "./types_pb.js";
7
+ /**
8
+ * @generated from message data.v2.GetTokenRequest
9
+ */
10
+ export class GetTokenRequest extends Message {
11
+ constructor(data) {
12
+ super();
13
+ /**
14
+ * @generated from field: uint32 chain_id = 1;
15
+ */
16
+ this.chainId = 0;
17
+ /**
18
+ * @generated from field: string address = 2;
19
+ */
20
+ this.address = "";
21
+ proto3.util.initPartial(data, this);
22
+ }
23
+ static fromBinary(bytes, options) {
24
+ return new GetTokenRequest().fromBinary(bytes, options);
25
+ }
26
+ static fromJson(jsonValue, options) {
27
+ return new GetTokenRequest().fromJson(jsonValue, options);
28
+ }
29
+ static fromJsonString(jsonString, options) {
30
+ return new GetTokenRequest().fromJsonString(jsonString, options);
31
+ }
32
+ static equals(a, b) {
33
+ return proto3.util.equals(GetTokenRequest, a, b);
34
+ }
35
+ }
36
+ GetTokenRequest.runtime = proto3;
37
+ GetTokenRequest.typeName = "data.v2.GetTokenRequest";
38
+ GetTokenRequest.fields = proto3.util.newFieldList(() => [
39
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
40
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
41
+ ]);
42
+ /**
43
+ * @generated from message data.v2.GetTokenResponse
44
+ */
45
+ export class GetTokenResponse extends Message {
46
+ constructor(data) {
47
+ super();
48
+ proto3.util.initPartial(data, this);
49
+ }
50
+ static fromBinary(bytes, options) {
51
+ return new GetTokenResponse().fromBinary(bytes, options);
52
+ }
53
+ static fromJson(jsonValue, options) {
54
+ return new GetTokenResponse().fromJson(jsonValue, options);
55
+ }
56
+ static fromJsonString(jsonString, options) {
57
+ return new GetTokenResponse().fromJsonString(jsonString, options);
58
+ }
59
+ static equals(a, b) {
60
+ return proto3.util.equals(GetTokenResponse, a, b);
61
+ }
62
+ }
63
+ GetTokenResponse.runtime = proto3;
64
+ GetTokenResponse.typeName = "data.v2.GetTokenResponse";
65
+ GetTokenResponse.fields = proto3.util.newFieldList(() => [
66
+ { no: 1, name: "token", kind: "message", T: Token },
67
+ ]);
68
+ /**
69
+ * @generated from message data.v2.TokenIdentifier
70
+ */
71
+ export class TokenIdentifier extends Message {
72
+ constructor(data) {
73
+ super();
74
+ /**
75
+ * @generated from field: uint32 chain_id = 1;
76
+ */
77
+ this.chainId = 0;
78
+ /**
79
+ * @generated from field: string address = 2;
80
+ */
81
+ this.address = "";
82
+ proto3.util.initPartial(data, this);
83
+ }
84
+ static fromBinary(bytes, options) {
85
+ return new TokenIdentifier().fromBinary(bytes, options);
86
+ }
87
+ static fromJson(jsonValue, options) {
88
+ return new TokenIdentifier().fromJson(jsonValue, options);
89
+ }
90
+ static fromJsonString(jsonString, options) {
91
+ return new TokenIdentifier().fromJsonString(jsonString, options);
92
+ }
93
+ static equals(a, b) {
94
+ return proto3.util.equals(TokenIdentifier, a, b);
95
+ }
96
+ }
97
+ TokenIdentifier.runtime = proto3;
98
+ TokenIdentifier.typeName = "data.v2.TokenIdentifier";
99
+ TokenIdentifier.fields = proto3.util.newFieldList(() => [
100
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
101
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
102
+ ]);
103
+ /**
104
+ * @generated from message data.v2.GetTokensRequest
105
+ */
106
+ export class GetTokensRequest extends Message {
107
+ constructor(data) {
108
+ super();
109
+ /**
110
+ * @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
111
+ */
112
+ this.tokens = [];
113
+ proto3.util.initPartial(data, this);
114
+ }
115
+ static fromBinary(bytes, options) {
116
+ return new GetTokensRequest().fromBinary(bytes, options);
117
+ }
118
+ static fromJson(jsonValue, options) {
119
+ return new GetTokensRequest().fromJson(jsonValue, options);
120
+ }
121
+ static fromJsonString(jsonString, options) {
122
+ return new GetTokensRequest().fromJsonString(jsonString, options);
123
+ }
124
+ static equals(a, b) {
125
+ return proto3.util.equals(GetTokensRequest, a, b);
126
+ }
127
+ }
128
+ GetTokensRequest.runtime = proto3;
129
+ GetTokensRequest.typeName = "data.v2.GetTokensRequest";
130
+ GetTokensRequest.fields = proto3.util.newFieldList(() => [
131
+ { no: 1, name: "tokens", kind: "message", T: TokenIdentifier, repeated: true },
132
+ ]);
133
+ /**
134
+ * @generated from message data.v2.GetTokensResponse
135
+ */
136
+ export class GetTokensResponse extends Message {
137
+ constructor(data) {
138
+ super();
139
+ /**
140
+ * @generated from field: repeated data.v2.Token tokens = 1;
141
+ */
142
+ this.tokens = [];
143
+ proto3.util.initPartial(data, this);
144
+ }
145
+ static fromBinary(bytes, options) {
146
+ return new GetTokensResponse().fromBinary(bytes, options);
147
+ }
148
+ static fromJson(jsonValue, options) {
149
+ return new GetTokensResponse().fromJson(jsonValue, options);
150
+ }
151
+ static fromJsonString(jsonString, options) {
152
+ return new GetTokensResponse().fromJsonString(jsonString, options);
153
+ }
154
+ static equals(a, b) {
155
+ return proto3.util.equals(GetTokensResponse, a, b);
156
+ }
157
+ }
158
+ GetTokensResponse.runtime = proto3;
159
+ GetTokensResponse.typeName = "data.v2.GetTokensResponse";
160
+ GetTokensResponse.fields = proto3.util.newFieldList(() => [
161
+ { no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
162
+ ]);
@@ -0,0 +1,97 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { FeeData, ProtectionInfo, SafetyLevel, SpamCode, TokenType } from "../v1/types_pb.js";
4
+ /**
5
+ * @generated from message data.v2.Token
6
+ */
7
+ export declare class Token extends Message<Token> {
8
+ /**
9
+ * @generated from field: uint32 chain_id = 1;
10
+ */
11
+ chainId: number;
12
+ /**
13
+ * @generated from field: string address = 2;
14
+ */
15
+ address: string;
16
+ /**
17
+ * @generated from field: string symbol = 3;
18
+ */
19
+ symbol: string;
20
+ /**
21
+ * @generated from field: uint32 decimals = 4;
22
+ */
23
+ decimals: number;
24
+ /**
25
+ * @generated from field: string name = 5;
26
+ */
27
+ name: string;
28
+ /**
29
+ * @generated from field: data.v1.TokenType type = 6;
30
+ */
31
+ type: TokenType;
32
+ /**
33
+ * @generated from field: data.v2.TokenMetadata metadata = 7;
34
+ */
35
+ metadata?: TokenMetadata;
36
+ constructor(data?: PartialMessage<Token>);
37
+ static readonly runtime: typeof proto3;
38
+ static readonly typeName = "data.v2.Token";
39
+ static readonly fields: FieldList;
40
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
41
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
42
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
43
+ static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
44
+ }
45
+ /**
46
+ * @generated from message data.v2.TokenMetadata
47
+ */
48
+ export declare class TokenMetadata extends Message<TokenMetadata> {
49
+ /**
50
+ * @generated from field: string project_name = 1;
51
+ */
52
+ projectName: string;
53
+ /**
54
+ * @generated from field: string logo_url = 2;
55
+ */
56
+ logoUrl: string;
57
+ /**
58
+ * @generated from field: data.v1.ProtectionInfo protection_info = 3;
59
+ */
60
+ protectionInfo?: ProtectionInfo;
61
+ /**
62
+ * @generated from field: data.v1.FeeData fee_data = 4;
63
+ */
64
+ feeData?: FeeData;
65
+ /**
66
+ * @generated from field: data.v1.SafetyLevel safety_level = 5;
67
+ */
68
+ safetyLevel: SafetyLevel;
69
+ /**
70
+ * @generated from field: data.v1.SpamCode spam_code = 6;
71
+ */
72
+ spamCode: SpamCode;
73
+ /**
74
+ * @generated from field: bool is_bridged = 7;
75
+ */
76
+ isBridged: boolean;
77
+ /**
78
+ * @generated from field: optional string description = 8;
79
+ */
80
+ description?: string;
81
+ /**
82
+ * @generated from field: optional string homepage_url = 9;
83
+ */
84
+ homepageUrl?: string;
85
+ /**
86
+ * @generated from field: optional string twitter_name = 10;
87
+ */
88
+ twitterName?: string;
89
+ constructor(data?: PartialMessage<TokenMetadata>);
90
+ static readonly runtime: typeof proto3;
91
+ static readonly typeName = "data.v2.TokenMetadata";
92
+ static readonly fields: FieldList;
93
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMetadata;
94
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMetadata;
95
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMetadata;
96
+ static equals(a: TokenMetadata | PlainMessage<TokenMetadata> | undefined, b: TokenMetadata | PlainMessage<TokenMetadata> | undefined): boolean;
97
+ }
@@ -0,0 +1,117 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file data/v2/types.proto (package data.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { FeeData, ProtectionInfo, SafetyLevel, SpamCode, TokenType } from "../v1/types_pb.js";
7
+ /**
8
+ * @generated from message data.v2.Token
9
+ */
10
+ export class Token extends Message {
11
+ constructor(data) {
12
+ super();
13
+ /**
14
+ * @generated from field: uint32 chain_id = 1;
15
+ */
16
+ this.chainId = 0;
17
+ /**
18
+ * @generated from field: string address = 2;
19
+ */
20
+ this.address = "";
21
+ /**
22
+ * @generated from field: string symbol = 3;
23
+ */
24
+ this.symbol = "";
25
+ /**
26
+ * @generated from field: uint32 decimals = 4;
27
+ */
28
+ this.decimals = 0;
29
+ /**
30
+ * @generated from field: string name = 5;
31
+ */
32
+ this.name = "";
33
+ /**
34
+ * @generated from field: data.v1.TokenType type = 6;
35
+ */
36
+ this.type = TokenType.UNKNOWN;
37
+ proto3.util.initPartial(data, this);
38
+ }
39
+ static fromBinary(bytes, options) {
40
+ return new Token().fromBinary(bytes, options);
41
+ }
42
+ static fromJson(jsonValue, options) {
43
+ return new Token().fromJson(jsonValue, options);
44
+ }
45
+ static fromJsonString(jsonString, options) {
46
+ return new Token().fromJsonString(jsonString, options);
47
+ }
48
+ static equals(a, b) {
49
+ return proto3.util.equals(Token, a, b);
50
+ }
51
+ }
52
+ Token.runtime = proto3;
53
+ Token.typeName = "data.v2.Token";
54
+ Token.fields = proto3.util.newFieldList(() => [
55
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
56
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
59
+ { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
+ { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
61
+ { no: 7, name: "metadata", kind: "message", T: TokenMetadata },
62
+ ]);
63
+ /**
64
+ * @generated from message data.v2.TokenMetadata
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 },
117
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },