@uniswap/client-data-api 0.0.1
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/v1/api-DataApiService_connectquery.d.ts +28 -0
- package/dist/data/v1/api-DataApiService_connectquery.js +32 -0
- package/dist/data/v1/api_connect.d.ts +28 -0
- package/dist/data/v1/api_connect.js +32 -0
- package/dist/data/v1/api_pb.d.ts +83 -0
- package/dist/data/v1/api_pb.js +129 -0
- package/dist/data/v1/types_pb.d.ts +396 -0
- package/dist/data/v1/types_pb.js +573 -0
- package/package.json +10 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
5
|
+
*/
|
|
6
|
+
export declare const getPortfolio: {
|
|
7
|
+
readonly localName: "getPortfolio";
|
|
8
|
+
readonly name: "GetPortfolio";
|
|
9
|
+
readonly kind: MethodKind.Unary;
|
|
10
|
+
readonly I: typeof GetPortfolioRequest;
|
|
11
|
+
readonly O: typeof GetPortfolioResponse;
|
|
12
|
+
readonly service: {
|
|
13
|
+
readonly typeName: "data.v1.DataApiService";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
18
|
+
*/
|
|
19
|
+
export declare const getToken: {
|
|
20
|
+
readonly localName: "getToken";
|
|
21
|
+
readonly name: "GetToken";
|
|
22
|
+
readonly kind: MethodKind.Unary;
|
|
23
|
+
readonly I: typeof GetTokenRequest;
|
|
24
|
+
readonly O: typeof GetTokenResponse;
|
|
25
|
+
readonly service: {
|
|
26
|
+
readonly typeName: "data.v1.DataApiService";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
9
|
+
*/
|
|
10
|
+
export const getPortfolio = {
|
|
11
|
+
localName: "getPortfolio",
|
|
12
|
+
name: "GetPortfolio",
|
|
13
|
+
kind: MethodKind.Unary,
|
|
14
|
+
I: GetPortfolioRequest,
|
|
15
|
+
O: GetPortfolioResponse,
|
|
16
|
+
service: {
|
|
17
|
+
typeName: "data.v1.DataApiService"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
22
|
+
*/
|
|
23
|
+
export const getToken = {
|
|
24
|
+
localName: "getToken",
|
|
25
|
+
name: "GetToken",
|
|
26
|
+
kind: MethodKind.Unary,
|
|
27
|
+
I: GetTokenRequest,
|
|
28
|
+
O: GetTokenResponse,
|
|
29
|
+
service: {
|
|
30
|
+
typeName: "data.v1.DataApiService"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service data.v1.DataApiService
|
|
5
|
+
*/
|
|
6
|
+
export declare const DataApiService: {
|
|
7
|
+
readonly typeName: "data.v1.DataApiService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
11
|
+
*/
|
|
12
|
+
readonly getPortfolio: {
|
|
13
|
+
readonly name: "GetPortfolio";
|
|
14
|
+
readonly I: typeof GetPortfolioRequest;
|
|
15
|
+
readonly O: typeof GetPortfolioResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
20
|
+
*/
|
|
21
|
+
readonly getToken: {
|
|
22
|
+
readonly name: "GetToken";
|
|
23
|
+
readonly I: typeof GetTokenRequest;
|
|
24
|
+
readonly O: typeof GetTokenResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse } from "./api_pb.js";
|
|
6
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from service data.v1.DataApiService
|
|
9
|
+
*/
|
|
10
|
+
export const DataApiService = {
|
|
11
|
+
typeName: "data.v1.DataApiService",
|
|
12
|
+
methods: {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from rpc data.v1.DataApiService.GetPortfolio
|
|
15
|
+
*/
|
|
16
|
+
getPortfolio: {
|
|
17
|
+
name: "GetPortfolio",
|
|
18
|
+
I: GetPortfolioRequest,
|
|
19
|
+
O: GetPortfolioResponse,
|
|
20
|
+
kind: MethodKind.Unary,
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* @generated from rpc data.v1.DataApiService.GetToken
|
|
24
|
+
*/
|
|
25
|
+
getToken: {
|
|
26
|
+
name: "GetToken",
|
|
27
|
+
I: GetTokenRequest,
|
|
28
|
+
O: GetTokenResponse,
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { Portfolio, PortfolioValueModifier, Token } from "./types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from message data.v1.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.v1.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.v1.GetTokenResponse
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetTokenResponse extends Message<GetTokenResponse> {
|
|
29
|
+
/**
|
|
30
|
+
* @generated from field: data.v1.Token token = 1;
|
|
31
|
+
*/
|
|
32
|
+
token?: Token;
|
|
33
|
+
constructor(data?: PartialMessage<GetTokenResponse>);
|
|
34
|
+
static readonly runtime: typeof proto3;
|
|
35
|
+
static readonly typeName = "data.v1.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.v1.GetPortfolioRequest
|
|
44
|
+
*/
|
|
45
|
+
export declare class GetPortfolioRequest extends Message<GetPortfolioRequest> {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: string address = 1;
|
|
48
|
+
*/
|
|
49
|
+
address: string;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
52
|
+
*/
|
|
53
|
+
chainIds: number[];
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: optional data.v1.PortfolioValueModifier modifier = 3;
|
|
56
|
+
*/
|
|
57
|
+
modifier?: PortfolioValueModifier;
|
|
58
|
+
constructor(data?: PartialMessage<GetPortfolioRequest>);
|
|
59
|
+
static readonly runtime: typeof proto3;
|
|
60
|
+
static readonly typeName = "data.v1.GetPortfolioRequest";
|
|
61
|
+
static readonly fields: FieldList;
|
|
62
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPortfolioRequest;
|
|
63
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPortfolioRequest;
|
|
64
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPortfolioRequest;
|
|
65
|
+
static equals(a: GetPortfolioRequest | PlainMessage<GetPortfolioRequest> | undefined, b: GetPortfolioRequest | PlainMessage<GetPortfolioRequest> | undefined): boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message data.v1.GetPortfolioResponse
|
|
69
|
+
*/
|
|
70
|
+
export declare class GetPortfolioResponse extends Message<GetPortfolioResponse> {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: data.v1.Portfolio portfolio = 1;
|
|
73
|
+
*/
|
|
74
|
+
portfolio?: Portfolio;
|
|
75
|
+
constructor(data?: PartialMessage<GetPortfolioResponse>);
|
|
76
|
+
static readonly runtime: typeof proto3;
|
|
77
|
+
static readonly typeName = "data.v1.GetPortfolioResponse";
|
|
78
|
+
static readonly fields: FieldList;
|
|
79
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPortfolioResponse;
|
|
80
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPortfolioResponse;
|
|
81
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPortfolioResponse;
|
|
82
|
+
static equals(a: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined, b: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined): boolean;
|
|
83
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/api.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Portfolio, PortfolioValueModifier, Token } from "./types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message data.v1.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.v1.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.v1.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.v1.GetTokenResponse";
|
|
65
|
+
GetTokenResponse.fields = proto3.util.newFieldList(() => [
|
|
66
|
+
{ no: 1, name: "token", kind: "message", T: Token },
|
|
67
|
+
]);
|
|
68
|
+
/**
|
|
69
|
+
* @generated from message data.v1.GetPortfolioRequest
|
|
70
|
+
*/
|
|
71
|
+
export class GetPortfolioRequest extends Message {
|
|
72
|
+
constructor(data) {
|
|
73
|
+
super();
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string address = 1;
|
|
76
|
+
*/
|
|
77
|
+
this.address = "";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
80
|
+
*/
|
|
81
|
+
this.chainIds = [];
|
|
82
|
+
proto3.util.initPartial(data, this);
|
|
83
|
+
}
|
|
84
|
+
static fromBinary(bytes, options) {
|
|
85
|
+
return new GetPortfolioRequest().fromBinary(bytes, options);
|
|
86
|
+
}
|
|
87
|
+
static fromJson(jsonValue, options) {
|
|
88
|
+
return new GetPortfolioRequest().fromJson(jsonValue, options);
|
|
89
|
+
}
|
|
90
|
+
static fromJsonString(jsonString, options) {
|
|
91
|
+
return new GetPortfolioRequest().fromJsonString(jsonString, options);
|
|
92
|
+
}
|
|
93
|
+
static equals(a, b) {
|
|
94
|
+
return proto3.util.equals(GetPortfolioRequest, a, b);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
GetPortfolioRequest.runtime = proto3;
|
|
98
|
+
GetPortfolioRequest.typeName = "data.v1.GetPortfolioRequest";
|
|
99
|
+
GetPortfolioRequest.fields = proto3.util.newFieldList(() => [
|
|
100
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
102
|
+
{ no: 3, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
|
|
103
|
+
]);
|
|
104
|
+
/**
|
|
105
|
+
* @generated from message data.v1.GetPortfolioResponse
|
|
106
|
+
*/
|
|
107
|
+
export class GetPortfolioResponse extends Message {
|
|
108
|
+
constructor(data) {
|
|
109
|
+
super();
|
|
110
|
+
proto3.util.initPartial(data, this);
|
|
111
|
+
}
|
|
112
|
+
static fromBinary(bytes, options) {
|
|
113
|
+
return new GetPortfolioResponse().fromBinary(bytes, options);
|
|
114
|
+
}
|
|
115
|
+
static fromJson(jsonValue, options) {
|
|
116
|
+
return new GetPortfolioResponse().fromJson(jsonValue, options);
|
|
117
|
+
}
|
|
118
|
+
static fromJsonString(jsonString, options) {
|
|
119
|
+
return new GetPortfolioResponse().fromJsonString(jsonString, options);
|
|
120
|
+
}
|
|
121
|
+
static equals(a, b) {
|
|
122
|
+
return proto3.util.equals(GetPortfolioResponse, a, b);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
GetPortfolioResponse.runtime = proto3;
|
|
126
|
+
GetPortfolioResponse.typeName = "data.v1.GetPortfolioResponse";
|
|
127
|
+
GetPortfolioResponse.fields = proto3.util.newFieldList(() => [
|
|
128
|
+
{ no: 1, name: "portfolio", kind: "message", T: Portfolio },
|
|
129
|
+
]);
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum data.v1.TokenType
|
|
5
|
+
*/
|
|
6
|
+
export declare enum TokenType {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
9
|
+
*/
|
|
10
|
+
UNKNOWN = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: NATIVE = 1;
|
|
13
|
+
*/
|
|
14
|
+
NATIVE = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ERC20 = 2;
|
|
17
|
+
*/
|
|
18
|
+
ERC20 = 2,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ERC721 = 3;
|
|
21
|
+
*/
|
|
22
|
+
ERC721 = 3,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ERC1155 = 4;
|
|
25
|
+
*/
|
|
26
|
+
ERC1155 = 4
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum data.v1.SpamCode
|
|
30
|
+
*/
|
|
31
|
+
export declare enum SpamCode {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: SPAM_CODE_UNKNOWN = 0;
|
|
34
|
+
*/
|
|
35
|
+
UNKNOWN = 0,
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: SPAM_CODE_NOT_SPAM = 1;
|
|
38
|
+
*/
|
|
39
|
+
NOT_SPAM = 1,
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: SPAM_CODE_SPAM = 2;
|
|
42
|
+
*/
|
|
43
|
+
SPAM = 2,
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: SPAM_CODE_SPAM_URL = 3;
|
|
46
|
+
*/
|
|
47
|
+
SPAM_URL = 3
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum data.v1.SafetyLevel
|
|
51
|
+
*/
|
|
52
|
+
export declare enum SafetyLevel {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: SAFETY_LEVEL_UNKNOWN = 0;
|
|
55
|
+
*/
|
|
56
|
+
UNKNOWN = 0,
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: SAFETY_LEVEL_VERIFIED = 1;
|
|
59
|
+
*/
|
|
60
|
+
VERIFIED = 1,
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: SAFETY_LEVEL_MEDIUM_WARNING = 2;
|
|
63
|
+
*/
|
|
64
|
+
MEDIUM_WARNING = 2,
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: SAFETY_LEVEL_STRONG_WARNING = 3;
|
|
67
|
+
*/
|
|
68
|
+
STRONG_WARNING = 3,
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: SAFETY_LEVEL_BLOCKED = 4;
|
|
71
|
+
*/
|
|
72
|
+
BLOCKED = 4
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @generated from message data.v1.Token
|
|
76
|
+
*/
|
|
77
|
+
export declare class Token extends Message<Token> {
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: uint32 chain_id = 1;
|
|
80
|
+
*/
|
|
81
|
+
chainId: number;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: string address = 2;
|
|
84
|
+
*/
|
|
85
|
+
address: string;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string symbol = 3;
|
|
88
|
+
*/
|
|
89
|
+
symbol: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: uint32 decimals = 4;
|
|
92
|
+
*/
|
|
93
|
+
decimals: number;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: string name = 5;
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: data.v1.TokenType type = 6;
|
|
100
|
+
*/
|
|
101
|
+
type: TokenType;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: data.v1.TokenMetadata metadata = 7;
|
|
104
|
+
*/
|
|
105
|
+
metadata?: TokenMetadata;
|
|
106
|
+
constructor(data?: PartialMessage<Token>);
|
|
107
|
+
static readonly runtime: typeof proto3;
|
|
108
|
+
static readonly typeName = "data.v1.Token";
|
|
109
|
+
static readonly fields: FieldList;
|
|
110
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
|
|
111
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
|
|
112
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
|
|
113
|
+
static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @generated from message data.v1.TokenMetadata
|
|
117
|
+
*/
|
|
118
|
+
export declare class TokenMetadata extends Message<TokenMetadata> {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string project_name = 1;
|
|
121
|
+
*/
|
|
122
|
+
projectName: string;
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: string logo_url = 2;
|
|
125
|
+
*/
|
|
126
|
+
logoUrl: string;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: data.v1.ProtectionInfo protection_info = 3;
|
|
129
|
+
*/
|
|
130
|
+
protectionInfo?: ProtectionInfo;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: data.v1.FeeData fee_data = 4;
|
|
133
|
+
*/
|
|
134
|
+
feeData?: FeeData;
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 5;
|
|
137
|
+
*/
|
|
138
|
+
safetyLevel: SafetyLevel;
|
|
139
|
+
/**
|
|
140
|
+
* TODO: we can potentially remove this
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: data.v1.SpamCode spam_code = 6;
|
|
143
|
+
*/
|
|
144
|
+
spamCode: SpamCode;
|
|
145
|
+
constructor(data?: PartialMessage<TokenMetadata>);
|
|
146
|
+
static readonly runtime: typeof proto3;
|
|
147
|
+
static readonly typeName = "data.v1.TokenMetadata";
|
|
148
|
+
static readonly fields: FieldList;
|
|
149
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMetadata;
|
|
150
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMetadata;
|
|
151
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMetadata;
|
|
152
|
+
static equals(a: TokenMetadata | PlainMessage<TokenMetadata> | undefined, b: TokenMetadata | PlainMessage<TokenMetadata> | undefined): boolean;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated from message data.v1.ProtectionInfo
|
|
156
|
+
*/
|
|
157
|
+
export declare class ProtectionInfo extends Message<ProtectionInfo> {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string result = 1;
|
|
160
|
+
*/
|
|
161
|
+
result: string;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: repeated string attack_types = 2;
|
|
164
|
+
*/
|
|
165
|
+
attackTypes: string[];
|
|
166
|
+
constructor(data?: PartialMessage<ProtectionInfo>);
|
|
167
|
+
static readonly runtime: typeof proto3;
|
|
168
|
+
static readonly typeName = "data.v1.ProtectionInfo";
|
|
169
|
+
static readonly fields: FieldList;
|
|
170
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProtectionInfo;
|
|
171
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProtectionInfo;
|
|
172
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProtectionInfo;
|
|
173
|
+
static equals(a: ProtectionInfo | PlainMessage<ProtectionInfo> | undefined, b: ProtectionInfo | PlainMessage<ProtectionInfo> | undefined): boolean;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* TODO(DAT-1081): dedupe these for the frontend potentially
|
|
177
|
+
*
|
|
178
|
+
* @generated from message data.v1.FeeData
|
|
179
|
+
*/
|
|
180
|
+
export declare class FeeData extends Message<FeeData> {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: data.v1.Blockaid blockaid = 1;
|
|
183
|
+
*/
|
|
184
|
+
blockaid?: Blockaid;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: data.v1.FeeDetector fee_detector = 2;
|
|
187
|
+
*/
|
|
188
|
+
feeDetector?: FeeDetector;
|
|
189
|
+
constructor(data?: PartialMessage<FeeData>);
|
|
190
|
+
static readonly runtime: typeof proto3;
|
|
191
|
+
static readonly typeName = "data.v1.FeeData";
|
|
192
|
+
static readonly fields: FieldList;
|
|
193
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeData;
|
|
194
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeData;
|
|
195
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeData;
|
|
196
|
+
static equals(a: FeeData | PlainMessage<FeeData> | undefined, b: FeeData | PlainMessage<FeeData> | undefined): boolean;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message data.v1.Blockaid
|
|
200
|
+
*/
|
|
201
|
+
export declare class Blockaid extends Message<Blockaid> {
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: double buy = 1;
|
|
204
|
+
*/
|
|
205
|
+
buy: number;
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: double sell = 2;
|
|
208
|
+
*/
|
|
209
|
+
sell: number;
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: double transfer = 3;
|
|
212
|
+
*/
|
|
213
|
+
transfer: number;
|
|
214
|
+
constructor(data?: PartialMessage<Blockaid>);
|
|
215
|
+
static readonly runtime: typeof proto3;
|
|
216
|
+
static readonly typeName = "data.v1.Blockaid";
|
|
217
|
+
static readonly fields: FieldList;
|
|
218
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Blockaid;
|
|
219
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Blockaid;
|
|
220
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Blockaid;
|
|
221
|
+
static equals(a: Blockaid | PlainMessage<Blockaid> | undefined, b: Blockaid | PlainMessage<Blockaid> | undefined): boolean;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @generated from message data.v1.FeeDetector
|
|
225
|
+
*/
|
|
226
|
+
export declare class FeeDetector extends Message<FeeDetector> {
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string buy_fee_bps = 1;
|
|
229
|
+
*/
|
|
230
|
+
buyFeeBps: string;
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string sell_fee_bps = 2;
|
|
233
|
+
*/
|
|
234
|
+
sellFeeBps: string;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: bool fee_taken_on_transfer = 3;
|
|
237
|
+
*/
|
|
238
|
+
feeTakenOnTransfer: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* @generated from field: bool external_transfer_failed = 4;
|
|
241
|
+
*/
|
|
242
|
+
externalTransferFailed: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: bool sell_reverted = 5;
|
|
245
|
+
*/
|
|
246
|
+
sellReverted: boolean;
|
|
247
|
+
constructor(data?: PartialMessage<FeeDetector>);
|
|
248
|
+
static readonly runtime: typeof proto3;
|
|
249
|
+
static readonly typeName = "data.v1.FeeDetector";
|
|
250
|
+
static readonly fields: FieldList;
|
|
251
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeDetector;
|
|
252
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeDetector;
|
|
253
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeDetector;
|
|
254
|
+
static equals(a: FeeDetector | PlainMessage<FeeDetector> | undefined, b: FeeDetector | PlainMessage<FeeDetector> | undefined): boolean;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message data.v1.PortfolioValueModifier
|
|
258
|
+
*/
|
|
259
|
+
export declare class PortfolioValueModifier extends Message<PortfolioValueModifier> {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: string address = 1;
|
|
262
|
+
*/
|
|
263
|
+
address: string;
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: repeated data.v1.Contract include_overrides = 2;
|
|
266
|
+
*/
|
|
267
|
+
includeOverrides: Contract[];
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: repeated data.v1.Contract exclude_overrides = 3;
|
|
270
|
+
*/
|
|
271
|
+
excludeOverrides: Contract[];
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: bool include_small_balances = 4;
|
|
274
|
+
*/
|
|
275
|
+
includeSmallBalances: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from field: bool include_spam_tokens = 5;
|
|
278
|
+
*/
|
|
279
|
+
includeSpamTokens: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: uint32 balance_limit = 6;
|
|
282
|
+
*/
|
|
283
|
+
balanceLimit: number;
|
|
284
|
+
constructor(data?: PartialMessage<PortfolioValueModifier>);
|
|
285
|
+
static readonly runtime: typeof proto3;
|
|
286
|
+
static readonly typeName = "data.v1.PortfolioValueModifier";
|
|
287
|
+
static readonly fields: FieldList;
|
|
288
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PortfolioValueModifier;
|
|
289
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PortfolioValueModifier;
|
|
290
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PortfolioValueModifier;
|
|
291
|
+
static equals(a: PortfolioValueModifier | PlainMessage<PortfolioValueModifier> | undefined, b: PortfolioValueModifier | PlainMessage<PortfolioValueModifier> | undefined): boolean;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @generated from message data.v1.Portfolio
|
|
295
|
+
*/
|
|
296
|
+
export declare class Portfolio extends Message<Portfolio> {
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: repeated data.v1.Balance balances = 1;
|
|
299
|
+
*/
|
|
300
|
+
balances: Balance[];
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: double total_value_usd = 2;
|
|
303
|
+
*/
|
|
304
|
+
totalValueUsd: number;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: double total_value_absolute_change_1d = 3;
|
|
307
|
+
*/
|
|
308
|
+
totalValueAbsoluteChange1d: number;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: double total_value_percent_change_1d = 4;
|
|
311
|
+
*/
|
|
312
|
+
totalValuePercentChange1d: number;
|
|
313
|
+
constructor(data?: PartialMessage<Portfolio>);
|
|
314
|
+
static readonly runtime: typeof proto3;
|
|
315
|
+
static readonly typeName = "data.v1.Portfolio";
|
|
316
|
+
static readonly fields: FieldList;
|
|
317
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Portfolio;
|
|
318
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Portfolio;
|
|
319
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Portfolio;
|
|
320
|
+
static equals(a: Portfolio | PlainMessage<Portfolio> | undefined, b: Portfolio | PlainMessage<Portfolio> | undefined): boolean;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* @generated from message data.v1.Balance
|
|
324
|
+
*/
|
|
325
|
+
export declare class Balance extends Message<Balance> {
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: data.v1.Token token = 1;
|
|
328
|
+
*/
|
|
329
|
+
token?: Token;
|
|
330
|
+
/**
|
|
331
|
+
* @generated from field: data.v1.Amount amount = 2;
|
|
332
|
+
*/
|
|
333
|
+
amount?: Amount;
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: double price_usd = 3;
|
|
336
|
+
*/
|
|
337
|
+
priceUsd: number;
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: double price_percent_change_1d = 4;
|
|
340
|
+
*/
|
|
341
|
+
pricePercentChange1d: number;
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: double value_usd = 5;
|
|
344
|
+
*/
|
|
345
|
+
valueUsd: number;
|
|
346
|
+
constructor(data?: PartialMessage<Balance>);
|
|
347
|
+
static readonly runtime: typeof proto3;
|
|
348
|
+
static readonly typeName = "data.v1.Balance";
|
|
349
|
+
static readonly fields: FieldList;
|
|
350
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Balance;
|
|
351
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Balance;
|
|
352
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Balance;
|
|
353
|
+
static equals(a: Balance | PlainMessage<Balance> | undefined, b: Balance | PlainMessage<Balance> | undefined): boolean;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @generated from message data.v1.Amount
|
|
357
|
+
*/
|
|
358
|
+
export declare class Amount extends Message<Amount> {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: string raw = 1;
|
|
361
|
+
*/
|
|
362
|
+
raw: string;
|
|
363
|
+
/**
|
|
364
|
+
* @generated from field: double amount = 2;
|
|
365
|
+
*/
|
|
366
|
+
amount: number;
|
|
367
|
+
constructor(data?: PartialMessage<Amount>);
|
|
368
|
+
static readonly runtime: typeof proto3;
|
|
369
|
+
static readonly typeName = "data.v1.Amount";
|
|
370
|
+
static readonly fields: FieldList;
|
|
371
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Amount;
|
|
372
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Amount;
|
|
373
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Amount;
|
|
374
|
+
static equals(a: Amount | PlainMessage<Amount> | undefined, b: Amount | PlainMessage<Amount> | undefined): boolean;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @generated from message data.v1.Contract
|
|
378
|
+
*/
|
|
379
|
+
export declare class Contract extends Message<Contract> {
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: uint32 chain_id = 1;
|
|
382
|
+
*/
|
|
383
|
+
chainId: number;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: string address = 2;
|
|
386
|
+
*/
|
|
387
|
+
address: string;
|
|
388
|
+
constructor(data?: PartialMessage<Contract>);
|
|
389
|
+
static readonly runtime: typeof proto3;
|
|
390
|
+
static readonly typeName = "data.v1.Contract";
|
|
391
|
+
static readonly fields: FieldList;
|
|
392
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Contract;
|
|
393
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Contract;
|
|
394
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contract;
|
|
395
|
+
static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean;
|
|
396
|
+
}
|
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v1/types.proto (package data.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum data.v1.TokenType
|
|
8
|
+
*/
|
|
9
|
+
export var TokenType;
|
|
10
|
+
(function (TokenType) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: UNKNOWN = 0;
|
|
13
|
+
*/
|
|
14
|
+
TokenType[TokenType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: NATIVE = 1;
|
|
17
|
+
*/
|
|
18
|
+
TokenType[TokenType["NATIVE"] = 1] = "NATIVE";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ERC20 = 2;
|
|
21
|
+
*/
|
|
22
|
+
TokenType[TokenType["ERC20"] = 2] = "ERC20";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: ERC721 = 3;
|
|
25
|
+
*/
|
|
26
|
+
TokenType[TokenType["ERC721"] = 3] = "ERC721";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: ERC1155 = 4;
|
|
29
|
+
*/
|
|
30
|
+
TokenType[TokenType["ERC1155"] = 4] = "ERC1155";
|
|
31
|
+
})(TokenType || (TokenType = {}));
|
|
32
|
+
// Retrieve enum metadata with: proto3.getEnumType(TokenType)
|
|
33
|
+
proto3.util.setEnumType(TokenType, "data.v1.TokenType", [
|
|
34
|
+
{ no: 0, name: "UNKNOWN" },
|
|
35
|
+
{ no: 1, name: "NATIVE" },
|
|
36
|
+
{ no: 2, name: "ERC20" },
|
|
37
|
+
{ no: 3, name: "ERC721" },
|
|
38
|
+
{ no: 4, name: "ERC1155" },
|
|
39
|
+
]);
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum data.v1.SpamCode
|
|
42
|
+
*/
|
|
43
|
+
export var SpamCode;
|
|
44
|
+
(function (SpamCode) {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: SPAM_CODE_UNKNOWN = 0;
|
|
47
|
+
*/
|
|
48
|
+
SpamCode[SpamCode["UNKNOWN"] = 0] = "UNKNOWN";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: SPAM_CODE_NOT_SPAM = 1;
|
|
51
|
+
*/
|
|
52
|
+
SpamCode[SpamCode["NOT_SPAM"] = 1] = "NOT_SPAM";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: SPAM_CODE_SPAM = 2;
|
|
55
|
+
*/
|
|
56
|
+
SpamCode[SpamCode["SPAM"] = 2] = "SPAM";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: SPAM_CODE_SPAM_URL = 3;
|
|
59
|
+
*/
|
|
60
|
+
SpamCode[SpamCode["SPAM_URL"] = 3] = "SPAM_URL";
|
|
61
|
+
})(SpamCode || (SpamCode = {}));
|
|
62
|
+
// Retrieve enum metadata with: proto3.getEnumType(SpamCode)
|
|
63
|
+
proto3.util.setEnumType(SpamCode, "data.v1.SpamCode", [
|
|
64
|
+
{ no: 0, name: "SPAM_CODE_UNKNOWN" },
|
|
65
|
+
{ no: 1, name: "SPAM_CODE_NOT_SPAM" },
|
|
66
|
+
{ no: 2, name: "SPAM_CODE_SPAM" },
|
|
67
|
+
{ no: 3, name: "SPAM_CODE_SPAM_URL" },
|
|
68
|
+
]);
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum data.v1.SafetyLevel
|
|
71
|
+
*/
|
|
72
|
+
export var SafetyLevel;
|
|
73
|
+
(function (SafetyLevel) {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: SAFETY_LEVEL_UNKNOWN = 0;
|
|
76
|
+
*/
|
|
77
|
+
SafetyLevel[SafetyLevel["UNKNOWN"] = 0] = "UNKNOWN";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: SAFETY_LEVEL_VERIFIED = 1;
|
|
80
|
+
*/
|
|
81
|
+
SafetyLevel[SafetyLevel["VERIFIED"] = 1] = "VERIFIED";
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: SAFETY_LEVEL_MEDIUM_WARNING = 2;
|
|
84
|
+
*/
|
|
85
|
+
SafetyLevel[SafetyLevel["MEDIUM_WARNING"] = 2] = "MEDIUM_WARNING";
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: SAFETY_LEVEL_STRONG_WARNING = 3;
|
|
88
|
+
*/
|
|
89
|
+
SafetyLevel[SafetyLevel["STRONG_WARNING"] = 3] = "STRONG_WARNING";
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: SAFETY_LEVEL_BLOCKED = 4;
|
|
92
|
+
*/
|
|
93
|
+
SafetyLevel[SafetyLevel["BLOCKED"] = 4] = "BLOCKED";
|
|
94
|
+
})(SafetyLevel || (SafetyLevel = {}));
|
|
95
|
+
// Retrieve enum metadata with: proto3.getEnumType(SafetyLevel)
|
|
96
|
+
proto3.util.setEnumType(SafetyLevel, "data.v1.SafetyLevel", [
|
|
97
|
+
{ no: 0, name: "SAFETY_LEVEL_UNKNOWN" },
|
|
98
|
+
{ no: 1, name: "SAFETY_LEVEL_VERIFIED" },
|
|
99
|
+
{ no: 2, name: "SAFETY_LEVEL_MEDIUM_WARNING" },
|
|
100
|
+
{ no: 3, name: "SAFETY_LEVEL_STRONG_WARNING" },
|
|
101
|
+
{ no: 4, name: "SAFETY_LEVEL_BLOCKED" },
|
|
102
|
+
]);
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message data.v1.Token
|
|
105
|
+
*/
|
|
106
|
+
export class Token extends Message {
|
|
107
|
+
constructor(data) {
|
|
108
|
+
super();
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: uint32 chain_id = 1;
|
|
111
|
+
*/
|
|
112
|
+
this.chainId = 0;
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: string address = 2;
|
|
115
|
+
*/
|
|
116
|
+
this.address = "";
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: string symbol = 3;
|
|
119
|
+
*/
|
|
120
|
+
this.symbol = "";
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: uint32 decimals = 4;
|
|
123
|
+
*/
|
|
124
|
+
this.decimals = 0;
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string name = 5;
|
|
127
|
+
*/
|
|
128
|
+
this.name = "";
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: data.v1.TokenType type = 6;
|
|
131
|
+
*/
|
|
132
|
+
this.type = TokenType.UNKNOWN;
|
|
133
|
+
proto3.util.initPartial(data, this);
|
|
134
|
+
}
|
|
135
|
+
static fromBinary(bytes, options) {
|
|
136
|
+
return new Token().fromBinary(bytes, options);
|
|
137
|
+
}
|
|
138
|
+
static fromJson(jsonValue, options) {
|
|
139
|
+
return new Token().fromJson(jsonValue, options);
|
|
140
|
+
}
|
|
141
|
+
static fromJsonString(jsonString, options) {
|
|
142
|
+
return new Token().fromJsonString(jsonString, options);
|
|
143
|
+
}
|
|
144
|
+
static equals(a, b) {
|
|
145
|
+
return proto3.util.equals(Token, a, b);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
Token.runtime = proto3;
|
|
149
|
+
Token.typeName = "data.v1.Token";
|
|
150
|
+
Token.fields = proto3.util.newFieldList(() => [
|
|
151
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
152
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
153
|
+
{ no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
154
|
+
{ no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
155
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
156
|
+
{ no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
|
|
157
|
+
{ no: 7, name: "metadata", kind: "message", T: TokenMetadata },
|
|
158
|
+
]);
|
|
159
|
+
/**
|
|
160
|
+
* @generated from message data.v1.TokenMetadata
|
|
161
|
+
*/
|
|
162
|
+
export class TokenMetadata extends Message {
|
|
163
|
+
constructor(data) {
|
|
164
|
+
super();
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string project_name = 1;
|
|
167
|
+
*/
|
|
168
|
+
this.projectName = "";
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string logo_url = 2;
|
|
171
|
+
*/
|
|
172
|
+
this.logoUrl = "";
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 5;
|
|
175
|
+
*/
|
|
176
|
+
this.safetyLevel = SafetyLevel.UNKNOWN;
|
|
177
|
+
/**
|
|
178
|
+
* TODO: we can potentially remove this
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: data.v1.SpamCode spam_code = 6;
|
|
181
|
+
*/
|
|
182
|
+
this.spamCode = SpamCode.UNKNOWN;
|
|
183
|
+
proto3.util.initPartial(data, this);
|
|
184
|
+
}
|
|
185
|
+
static fromBinary(bytes, options) {
|
|
186
|
+
return new TokenMetadata().fromBinary(bytes, options);
|
|
187
|
+
}
|
|
188
|
+
static fromJson(jsonValue, options) {
|
|
189
|
+
return new TokenMetadata().fromJson(jsonValue, options);
|
|
190
|
+
}
|
|
191
|
+
static fromJsonString(jsonString, options) {
|
|
192
|
+
return new TokenMetadata().fromJsonString(jsonString, options);
|
|
193
|
+
}
|
|
194
|
+
static equals(a, b) {
|
|
195
|
+
return proto3.util.equals(TokenMetadata, a, b);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
TokenMetadata.runtime = proto3;
|
|
199
|
+
TokenMetadata.typeName = "data.v1.TokenMetadata";
|
|
200
|
+
TokenMetadata.fields = proto3.util.newFieldList(() => [
|
|
201
|
+
{ no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
203
|
+
{ no: 3, name: "protection_info", kind: "message", T: ProtectionInfo },
|
|
204
|
+
{ no: 4, name: "fee_data", kind: "message", T: FeeData },
|
|
205
|
+
{ no: 5, name: "safety_level", kind: "enum", T: proto3.getEnumType(SafetyLevel) },
|
|
206
|
+
{ no: 6, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
207
|
+
]);
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message data.v1.ProtectionInfo
|
|
210
|
+
*/
|
|
211
|
+
export class ProtectionInfo extends Message {
|
|
212
|
+
constructor(data) {
|
|
213
|
+
super();
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: string result = 1;
|
|
216
|
+
*/
|
|
217
|
+
this.result = "";
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: repeated string attack_types = 2;
|
|
220
|
+
*/
|
|
221
|
+
this.attackTypes = [];
|
|
222
|
+
proto3.util.initPartial(data, this);
|
|
223
|
+
}
|
|
224
|
+
static fromBinary(bytes, options) {
|
|
225
|
+
return new ProtectionInfo().fromBinary(bytes, options);
|
|
226
|
+
}
|
|
227
|
+
static fromJson(jsonValue, options) {
|
|
228
|
+
return new ProtectionInfo().fromJson(jsonValue, options);
|
|
229
|
+
}
|
|
230
|
+
static fromJsonString(jsonString, options) {
|
|
231
|
+
return new ProtectionInfo().fromJsonString(jsonString, options);
|
|
232
|
+
}
|
|
233
|
+
static equals(a, b) {
|
|
234
|
+
return proto3.util.equals(ProtectionInfo, a, b);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
ProtectionInfo.runtime = proto3;
|
|
238
|
+
ProtectionInfo.typeName = "data.v1.ProtectionInfo";
|
|
239
|
+
ProtectionInfo.fields = proto3.util.newFieldList(() => [
|
|
240
|
+
{ no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
241
|
+
{ no: 2, name: "attack_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
242
|
+
]);
|
|
243
|
+
/**
|
|
244
|
+
* TODO(DAT-1081): dedupe these for the frontend potentially
|
|
245
|
+
*
|
|
246
|
+
* @generated from message data.v1.FeeData
|
|
247
|
+
*/
|
|
248
|
+
export class FeeData extends Message {
|
|
249
|
+
constructor(data) {
|
|
250
|
+
super();
|
|
251
|
+
proto3.util.initPartial(data, this);
|
|
252
|
+
}
|
|
253
|
+
static fromBinary(bytes, options) {
|
|
254
|
+
return new FeeData().fromBinary(bytes, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJson(jsonValue, options) {
|
|
257
|
+
return new FeeData().fromJson(jsonValue, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJsonString(jsonString, options) {
|
|
260
|
+
return new FeeData().fromJsonString(jsonString, options);
|
|
261
|
+
}
|
|
262
|
+
static equals(a, b) {
|
|
263
|
+
return proto3.util.equals(FeeData, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
FeeData.runtime = proto3;
|
|
267
|
+
FeeData.typeName = "data.v1.FeeData";
|
|
268
|
+
FeeData.fields = proto3.util.newFieldList(() => [
|
|
269
|
+
{ no: 1, name: "blockaid", kind: "message", T: Blockaid },
|
|
270
|
+
{ no: 2, name: "fee_detector", kind: "message", T: FeeDetector },
|
|
271
|
+
]);
|
|
272
|
+
/**
|
|
273
|
+
* @generated from message data.v1.Blockaid
|
|
274
|
+
*/
|
|
275
|
+
export class Blockaid extends Message {
|
|
276
|
+
constructor(data) {
|
|
277
|
+
super();
|
|
278
|
+
/**
|
|
279
|
+
* @generated from field: double buy = 1;
|
|
280
|
+
*/
|
|
281
|
+
this.buy = 0;
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: double sell = 2;
|
|
284
|
+
*/
|
|
285
|
+
this.sell = 0;
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: double transfer = 3;
|
|
288
|
+
*/
|
|
289
|
+
this.transfer = 0;
|
|
290
|
+
proto3.util.initPartial(data, this);
|
|
291
|
+
}
|
|
292
|
+
static fromBinary(bytes, options) {
|
|
293
|
+
return new Blockaid().fromBinary(bytes, options);
|
|
294
|
+
}
|
|
295
|
+
static fromJson(jsonValue, options) {
|
|
296
|
+
return new Blockaid().fromJson(jsonValue, options);
|
|
297
|
+
}
|
|
298
|
+
static fromJsonString(jsonString, options) {
|
|
299
|
+
return new Blockaid().fromJsonString(jsonString, options);
|
|
300
|
+
}
|
|
301
|
+
static equals(a, b) {
|
|
302
|
+
return proto3.util.equals(Blockaid, a, b);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
Blockaid.runtime = proto3;
|
|
306
|
+
Blockaid.typeName = "data.v1.Blockaid";
|
|
307
|
+
Blockaid.fields = proto3.util.newFieldList(() => [
|
|
308
|
+
{ no: 1, name: "buy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
309
|
+
{ no: 2, name: "sell", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
310
|
+
{ no: 3, name: "transfer", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
311
|
+
]);
|
|
312
|
+
/**
|
|
313
|
+
* @generated from message data.v1.FeeDetector
|
|
314
|
+
*/
|
|
315
|
+
export class FeeDetector extends Message {
|
|
316
|
+
constructor(data) {
|
|
317
|
+
super();
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: string buy_fee_bps = 1;
|
|
320
|
+
*/
|
|
321
|
+
this.buyFeeBps = "";
|
|
322
|
+
/**
|
|
323
|
+
* @generated from field: string sell_fee_bps = 2;
|
|
324
|
+
*/
|
|
325
|
+
this.sellFeeBps = "";
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: bool fee_taken_on_transfer = 3;
|
|
328
|
+
*/
|
|
329
|
+
this.feeTakenOnTransfer = false;
|
|
330
|
+
/**
|
|
331
|
+
* @generated from field: bool external_transfer_failed = 4;
|
|
332
|
+
*/
|
|
333
|
+
this.externalTransferFailed = false;
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: bool sell_reverted = 5;
|
|
336
|
+
*/
|
|
337
|
+
this.sellReverted = false;
|
|
338
|
+
proto3.util.initPartial(data, this);
|
|
339
|
+
}
|
|
340
|
+
static fromBinary(bytes, options) {
|
|
341
|
+
return new FeeDetector().fromBinary(bytes, options);
|
|
342
|
+
}
|
|
343
|
+
static fromJson(jsonValue, options) {
|
|
344
|
+
return new FeeDetector().fromJson(jsonValue, options);
|
|
345
|
+
}
|
|
346
|
+
static fromJsonString(jsonString, options) {
|
|
347
|
+
return new FeeDetector().fromJsonString(jsonString, options);
|
|
348
|
+
}
|
|
349
|
+
static equals(a, b) {
|
|
350
|
+
return proto3.util.equals(FeeDetector, a, b);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
FeeDetector.runtime = proto3;
|
|
354
|
+
FeeDetector.typeName = "data.v1.FeeDetector";
|
|
355
|
+
FeeDetector.fields = proto3.util.newFieldList(() => [
|
|
356
|
+
{ no: 1, name: "buy_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
357
|
+
{ no: 2, name: "sell_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
358
|
+
{ no: 3, name: "fee_taken_on_transfer", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
359
|
+
{ no: 4, name: "external_transfer_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
360
|
+
{ no: 5, name: "sell_reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
361
|
+
]);
|
|
362
|
+
/**
|
|
363
|
+
* @generated from message data.v1.PortfolioValueModifier
|
|
364
|
+
*/
|
|
365
|
+
export class PortfolioValueModifier extends Message {
|
|
366
|
+
constructor(data) {
|
|
367
|
+
super();
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: string address = 1;
|
|
370
|
+
*/
|
|
371
|
+
this.address = "";
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: repeated data.v1.Contract include_overrides = 2;
|
|
374
|
+
*/
|
|
375
|
+
this.includeOverrides = [];
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: repeated data.v1.Contract exclude_overrides = 3;
|
|
378
|
+
*/
|
|
379
|
+
this.excludeOverrides = [];
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: bool include_small_balances = 4;
|
|
382
|
+
*/
|
|
383
|
+
this.includeSmallBalances = false;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: bool include_spam_tokens = 5;
|
|
386
|
+
*/
|
|
387
|
+
this.includeSpamTokens = false;
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: uint32 balance_limit = 6;
|
|
390
|
+
*/
|
|
391
|
+
this.balanceLimit = 0;
|
|
392
|
+
proto3.util.initPartial(data, this);
|
|
393
|
+
}
|
|
394
|
+
static fromBinary(bytes, options) {
|
|
395
|
+
return new PortfolioValueModifier().fromBinary(bytes, options);
|
|
396
|
+
}
|
|
397
|
+
static fromJson(jsonValue, options) {
|
|
398
|
+
return new PortfolioValueModifier().fromJson(jsonValue, options);
|
|
399
|
+
}
|
|
400
|
+
static fromJsonString(jsonString, options) {
|
|
401
|
+
return new PortfolioValueModifier().fromJsonString(jsonString, options);
|
|
402
|
+
}
|
|
403
|
+
static equals(a, b) {
|
|
404
|
+
return proto3.util.equals(PortfolioValueModifier, a, b);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
PortfolioValueModifier.runtime = proto3;
|
|
408
|
+
PortfolioValueModifier.typeName = "data.v1.PortfolioValueModifier";
|
|
409
|
+
PortfolioValueModifier.fields = proto3.util.newFieldList(() => [
|
|
410
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
411
|
+
{ no: 2, name: "include_overrides", kind: "message", T: Contract, repeated: true },
|
|
412
|
+
{ no: 3, name: "exclude_overrides", kind: "message", T: Contract, repeated: true },
|
|
413
|
+
{ no: 4, name: "include_small_balances", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
414
|
+
{ no: 5, name: "include_spam_tokens", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
415
|
+
{ no: 6, name: "balance_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
416
|
+
]);
|
|
417
|
+
/**
|
|
418
|
+
* @generated from message data.v1.Portfolio
|
|
419
|
+
*/
|
|
420
|
+
export class Portfolio extends Message {
|
|
421
|
+
constructor(data) {
|
|
422
|
+
super();
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: repeated data.v1.Balance balances = 1;
|
|
425
|
+
*/
|
|
426
|
+
this.balances = [];
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: double total_value_usd = 2;
|
|
429
|
+
*/
|
|
430
|
+
this.totalValueUsd = 0;
|
|
431
|
+
/**
|
|
432
|
+
* @generated from field: double total_value_absolute_change_1d = 3;
|
|
433
|
+
*/
|
|
434
|
+
this.totalValueAbsoluteChange1d = 0;
|
|
435
|
+
/**
|
|
436
|
+
* @generated from field: double total_value_percent_change_1d = 4;
|
|
437
|
+
*/
|
|
438
|
+
this.totalValuePercentChange1d = 0;
|
|
439
|
+
proto3.util.initPartial(data, this);
|
|
440
|
+
}
|
|
441
|
+
static fromBinary(bytes, options) {
|
|
442
|
+
return new Portfolio().fromBinary(bytes, options);
|
|
443
|
+
}
|
|
444
|
+
static fromJson(jsonValue, options) {
|
|
445
|
+
return new Portfolio().fromJson(jsonValue, options);
|
|
446
|
+
}
|
|
447
|
+
static fromJsonString(jsonString, options) {
|
|
448
|
+
return new Portfolio().fromJsonString(jsonString, options);
|
|
449
|
+
}
|
|
450
|
+
static equals(a, b) {
|
|
451
|
+
return proto3.util.equals(Portfolio, a, b);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
Portfolio.runtime = proto3;
|
|
455
|
+
Portfolio.typeName = "data.v1.Portfolio";
|
|
456
|
+
Portfolio.fields = proto3.util.newFieldList(() => [
|
|
457
|
+
{ no: 1, name: "balances", kind: "message", T: Balance, repeated: true },
|
|
458
|
+
{ no: 2, name: "total_value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
459
|
+
{ no: 3, name: "total_value_absolute_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
460
|
+
{ no: 4, name: "total_value_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
461
|
+
]);
|
|
462
|
+
/**
|
|
463
|
+
* @generated from message data.v1.Balance
|
|
464
|
+
*/
|
|
465
|
+
export class Balance extends Message {
|
|
466
|
+
constructor(data) {
|
|
467
|
+
super();
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: double price_usd = 3;
|
|
470
|
+
*/
|
|
471
|
+
this.priceUsd = 0;
|
|
472
|
+
/**
|
|
473
|
+
* @generated from field: double price_percent_change_1d = 4;
|
|
474
|
+
*/
|
|
475
|
+
this.pricePercentChange1d = 0;
|
|
476
|
+
/**
|
|
477
|
+
* @generated from field: double value_usd = 5;
|
|
478
|
+
*/
|
|
479
|
+
this.valueUsd = 0;
|
|
480
|
+
proto3.util.initPartial(data, this);
|
|
481
|
+
}
|
|
482
|
+
static fromBinary(bytes, options) {
|
|
483
|
+
return new Balance().fromBinary(bytes, options);
|
|
484
|
+
}
|
|
485
|
+
static fromJson(jsonValue, options) {
|
|
486
|
+
return new Balance().fromJson(jsonValue, options);
|
|
487
|
+
}
|
|
488
|
+
static fromJsonString(jsonString, options) {
|
|
489
|
+
return new Balance().fromJsonString(jsonString, options);
|
|
490
|
+
}
|
|
491
|
+
static equals(a, b) {
|
|
492
|
+
return proto3.util.equals(Balance, a, b);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
Balance.runtime = proto3;
|
|
496
|
+
Balance.typeName = "data.v1.Balance";
|
|
497
|
+
Balance.fields = proto3.util.newFieldList(() => [
|
|
498
|
+
{ no: 1, name: "token", kind: "message", T: Token },
|
|
499
|
+
{ no: 2, name: "amount", kind: "message", T: Amount },
|
|
500
|
+
{ no: 3, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
501
|
+
{ no: 4, name: "price_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
502
|
+
{ no: 5, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
503
|
+
]);
|
|
504
|
+
/**
|
|
505
|
+
* @generated from message data.v1.Amount
|
|
506
|
+
*/
|
|
507
|
+
export class Amount extends Message {
|
|
508
|
+
constructor(data) {
|
|
509
|
+
super();
|
|
510
|
+
/**
|
|
511
|
+
* @generated from field: string raw = 1;
|
|
512
|
+
*/
|
|
513
|
+
this.raw = "";
|
|
514
|
+
/**
|
|
515
|
+
* @generated from field: double amount = 2;
|
|
516
|
+
*/
|
|
517
|
+
this.amount = 0;
|
|
518
|
+
proto3.util.initPartial(data, this);
|
|
519
|
+
}
|
|
520
|
+
static fromBinary(bytes, options) {
|
|
521
|
+
return new Amount().fromBinary(bytes, options);
|
|
522
|
+
}
|
|
523
|
+
static fromJson(jsonValue, options) {
|
|
524
|
+
return new Amount().fromJson(jsonValue, options);
|
|
525
|
+
}
|
|
526
|
+
static fromJsonString(jsonString, options) {
|
|
527
|
+
return new Amount().fromJsonString(jsonString, options);
|
|
528
|
+
}
|
|
529
|
+
static equals(a, b) {
|
|
530
|
+
return proto3.util.equals(Amount, a, b);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
Amount.runtime = proto3;
|
|
534
|
+
Amount.typeName = "data.v1.Amount";
|
|
535
|
+
Amount.fields = proto3.util.newFieldList(() => [
|
|
536
|
+
{ no: 1, name: "raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
537
|
+
{ no: 2, name: "amount", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
538
|
+
]);
|
|
539
|
+
/**
|
|
540
|
+
* @generated from message data.v1.Contract
|
|
541
|
+
*/
|
|
542
|
+
export class Contract extends Message {
|
|
543
|
+
constructor(data) {
|
|
544
|
+
super();
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: uint32 chain_id = 1;
|
|
547
|
+
*/
|
|
548
|
+
this.chainId = 0;
|
|
549
|
+
/**
|
|
550
|
+
* @generated from field: string address = 2;
|
|
551
|
+
*/
|
|
552
|
+
this.address = "";
|
|
553
|
+
proto3.util.initPartial(data, this);
|
|
554
|
+
}
|
|
555
|
+
static fromBinary(bytes, options) {
|
|
556
|
+
return new Contract().fromBinary(bytes, options);
|
|
557
|
+
}
|
|
558
|
+
static fromJson(jsonValue, options) {
|
|
559
|
+
return new Contract().fromJson(jsonValue, options);
|
|
560
|
+
}
|
|
561
|
+
static fromJsonString(jsonString, options) {
|
|
562
|
+
return new Contract().fromJsonString(jsonString, options);
|
|
563
|
+
}
|
|
564
|
+
static equals(a, b) {
|
|
565
|
+
return proto3.util.equals(Contract, a, b);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
Contract.runtime = proto3;
|
|
569
|
+
Contract.typeName = "data.v1.Contract";
|
|
570
|
+
Contract.fields = proto3.util.newFieldList(() => [
|
|
571
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
572
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
573
|
+
]);
|