@0xsequence/indexer 2.3.8 → 2.3.10
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/0xsequence-indexer.cjs.dev.js +31 -4
- package/dist/0xsequence-indexer.cjs.prod.js +31 -4
- package/dist/0xsequence-indexer.esm.js +31 -5
- package/dist/declarations/src/indexer.gen.d.ts +15 -6
- package/dist/declarations/src/indexergw.gen.d.ts +29 -12
- package/package.json +1 -1
- package/src/indexer.gen.ts +18 -7
- package/src/indexergw.gen.ts +47 -13
|
@@ -13,7 +13,7 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// sequence-indexer v0.4.0
|
|
16
|
+
// sequence-indexer v0.4.0 f9220b18008af826218980db21a68ec39989fb80
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion$1 = 'v1';
|
|
|
29
29
|
const WebRPCSchemaVersion$1 = 'v0.4.0';
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash$1 = '
|
|
32
|
+
const WebRPCSchemaHash$1 = 'f9220b18008af826218980db21a68ec39989fb80';
|
|
33
33
|
function VersionFromHeader$1(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader$1);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -136,6 +136,12 @@ let ContractVerificationStatus$1 = /*#__PURE__*/function (ContractVerificationSt
|
|
|
136
136
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
137
137
|
return ContractVerificationStatus;
|
|
138
138
|
}({});
|
|
139
|
+
let NetworkType$1 = /*#__PURE__*/function (NetworkType) {
|
|
140
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
141
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
142
|
+
NetworkType["ALL"] = "ALL";
|
|
143
|
+
return NetworkType;
|
|
144
|
+
}({});
|
|
139
145
|
//
|
|
140
146
|
// Client
|
|
141
147
|
//
|
|
@@ -1053,7 +1059,7 @@ const webrpcErrorByCode$1 = {
|
|
|
1053
1059
|
};
|
|
1054
1060
|
|
|
1055
1061
|
/* eslint-disable */
|
|
1056
|
-
// sequence-indexer v0.4.0
|
|
1062
|
+
// sequence-indexer v0.4.0 399517e791d272fddd35b036260f7bbbe6cea0e5
|
|
1057
1063
|
// --
|
|
1058
1064
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
1059
1065
|
//
|
|
@@ -1069,7 +1075,7 @@ const WebRPCVersion = 'v1';
|
|
|
1069
1075
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
1070
1076
|
|
|
1071
1077
|
// Schema hash generated from your RIDL schema
|
|
1072
|
-
const WebRPCSchemaHash = '
|
|
1078
|
+
const WebRPCSchemaHash = '399517e791d272fddd35b036260f7bbbe6cea0e5';
|
|
1073
1079
|
function VersionFromHeader(headers) {
|
|
1074
1080
|
const headerValue = headers.get(WebrpcHeader);
|
|
1075
1081
|
if (!headerValue) {
|
|
@@ -1176,6 +1182,12 @@ let ContractVerificationStatus = /*#__PURE__*/function (ContractVerificationStat
|
|
|
1176
1182
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
1177
1183
|
return ContractVerificationStatus;
|
|
1178
1184
|
}({});
|
|
1185
|
+
let NetworkType = /*#__PURE__*/function (NetworkType) {
|
|
1186
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
1187
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
1188
|
+
NetworkType["ALL"] = "ALL";
|
|
1189
|
+
return NetworkType;
|
|
1190
|
+
}({});
|
|
1179
1191
|
//
|
|
1180
1192
|
// Client
|
|
1181
1193
|
//
|
|
@@ -1269,6 +1281,19 @@ class IndexerGateway {
|
|
|
1269
1281
|
});
|
|
1270
1282
|
});
|
|
1271
1283
|
};
|
|
1284
|
+
this.getChains = (args, headers, signal) => {
|
|
1285
|
+
return this.fetch(this.url('GetChains'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1286
|
+
return buildResponse(res).then(_data => {
|
|
1287
|
+
return {
|
|
1288
|
+
chains: _data.chains
|
|
1289
|
+
};
|
|
1290
|
+
});
|
|
1291
|
+
}, error => {
|
|
1292
|
+
throw WebrpcRequestFailedError.new({
|
|
1293
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1294
|
+
});
|
|
1295
|
+
});
|
|
1296
|
+
};
|
|
1272
1297
|
this.ping = (headers, signal) => {
|
|
1273
1298
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1274
1299
|
return buildResponse(res).then(_data => {
|
|
@@ -1702,6 +1727,7 @@ var indexergw_gen = /*#__PURE__*/Object.freeze({
|
|
|
1702
1727
|
TransactionType: TransactionType,
|
|
1703
1728
|
SortOrder: SortOrder,
|
|
1704
1729
|
ContractVerificationStatus: ContractVerificationStatus,
|
|
1730
|
+
NetworkType: NetworkType,
|
|
1705
1731
|
IndexerGateway: IndexerGateway,
|
|
1706
1732
|
WebrpcError: WebrpcError,
|
|
1707
1733
|
WebrpcEndpointError: WebrpcEndpointError,
|
|
@@ -1812,6 +1838,7 @@ exports.InvalidServiceError = InvalidServiceError$1;
|
|
|
1812
1838
|
exports.MaxAccessKeysError = MaxAccessKeysError$1;
|
|
1813
1839
|
exports.MetadataCallFailedError = MetadataCallFailedError$1;
|
|
1814
1840
|
exports.MethodNotFoundError = MethodNotFoundError$1;
|
|
1841
|
+
exports.NetworkType = NetworkType$1;
|
|
1815
1842
|
exports.NoDefaultKeyError = NoDefaultKeyError$1;
|
|
1816
1843
|
exports.NotFoundError = NotFoundError$1;
|
|
1817
1844
|
exports.OrderStatus = OrderStatus$1;
|
|
@@ -13,7 +13,7 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// sequence-indexer v0.4.0
|
|
16
|
+
// sequence-indexer v0.4.0 f9220b18008af826218980db21a68ec39989fb80
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion$1 = 'v1';
|
|
|
29
29
|
const WebRPCSchemaVersion$1 = 'v0.4.0';
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash$1 = '
|
|
32
|
+
const WebRPCSchemaHash$1 = 'f9220b18008af826218980db21a68ec39989fb80';
|
|
33
33
|
function VersionFromHeader$1(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader$1);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -136,6 +136,12 @@ let ContractVerificationStatus$1 = /*#__PURE__*/function (ContractVerificationSt
|
|
|
136
136
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
137
137
|
return ContractVerificationStatus;
|
|
138
138
|
}({});
|
|
139
|
+
let NetworkType$1 = /*#__PURE__*/function (NetworkType) {
|
|
140
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
141
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
142
|
+
NetworkType["ALL"] = "ALL";
|
|
143
|
+
return NetworkType;
|
|
144
|
+
}({});
|
|
139
145
|
//
|
|
140
146
|
// Client
|
|
141
147
|
//
|
|
@@ -1053,7 +1059,7 @@ const webrpcErrorByCode$1 = {
|
|
|
1053
1059
|
};
|
|
1054
1060
|
|
|
1055
1061
|
/* eslint-disable */
|
|
1056
|
-
// sequence-indexer v0.4.0
|
|
1062
|
+
// sequence-indexer v0.4.0 399517e791d272fddd35b036260f7bbbe6cea0e5
|
|
1057
1063
|
// --
|
|
1058
1064
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
1059
1065
|
//
|
|
@@ -1069,7 +1075,7 @@ const WebRPCVersion = 'v1';
|
|
|
1069
1075
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
1070
1076
|
|
|
1071
1077
|
// Schema hash generated from your RIDL schema
|
|
1072
|
-
const WebRPCSchemaHash = '
|
|
1078
|
+
const WebRPCSchemaHash = '399517e791d272fddd35b036260f7bbbe6cea0e5';
|
|
1073
1079
|
function VersionFromHeader(headers) {
|
|
1074
1080
|
const headerValue = headers.get(WebrpcHeader);
|
|
1075
1081
|
if (!headerValue) {
|
|
@@ -1176,6 +1182,12 @@ let ContractVerificationStatus = /*#__PURE__*/function (ContractVerificationStat
|
|
|
1176
1182
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
1177
1183
|
return ContractVerificationStatus;
|
|
1178
1184
|
}({});
|
|
1185
|
+
let NetworkType = /*#__PURE__*/function (NetworkType) {
|
|
1186
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
1187
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
1188
|
+
NetworkType["ALL"] = "ALL";
|
|
1189
|
+
return NetworkType;
|
|
1190
|
+
}({});
|
|
1179
1191
|
//
|
|
1180
1192
|
// Client
|
|
1181
1193
|
//
|
|
@@ -1269,6 +1281,19 @@ class IndexerGateway {
|
|
|
1269
1281
|
});
|
|
1270
1282
|
});
|
|
1271
1283
|
};
|
|
1284
|
+
this.getChains = (args, headers, signal) => {
|
|
1285
|
+
return this.fetch(this.url('GetChains'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1286
|
+
return buildResponse(res).then(_data => {
|
|
1287
|
+
return {
|
|
1288
|
+
chains: _data.chains
|
|
1289
|
+
};
|
|
1290
|
+
});
|
|
1291
|
+
}, error => {
|
|
1292
|
+
throw WebrpcRequestFailedError.new({
|
|
1293
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1294
|
+
});
|
|
1295
|
+
});
|
|
1296
|
+
};
|
|
1272
1297
|
this.ping = (headers, signal) => {
|
|
1273
1298
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1274
1299
|
return buildResponse(res).then(_data => {
|
|
@@ -1702,6 +1727,7 @@ var indexergw_gen = /*#__PURE__*/Object.freeze({
|
|
|
1702
1727
|
TransactionType: TransactionType,
|
|
1703
1728
|
SortOrder: SortOrder,
|
|
1704
1729
|
ContractVerificationStatus: ContractVerificationStatus,
|
|
1730
|
+
NetworkType: NetworkType,
|
|
1705
1731
|
IndexerGateway: IndexerGateway,
|
|
1706
1732
|
WebrpcError: WebrpcError,
|
|
1707
1733
|
WebrpcEndpointError: WebrpcEndpointError,
|
|
@@ -1812,6 +1838,7 @@ exports.InvalidServiceError = InvalidServiceError$1;
|
|
|
1812
1838
|
exports.MaxAccessKeysError = MaxAccessKeysError$1;
|
|
1813
1839
|
exports.MetadataCallFailedError = MetadataCallFailedError$1;
|
|
1814
1840
|
exports.MethodNotFoundError = MethodNotFoundError$1;
|
|
1841
|
+
exports.NetworkType = NetworkType$1;
|
|
1815
1842
|
exports.NoDefaultKeyError = NoDefaultKeyError$1;
|
|
1816
1843
|
exports.NotFoundError = NotFoundError$1;
|
|
1817
1844
|
exports.OrderStatus = OrderStatus$1;
|
|
@@ -9,7 +9,7 @@ function _extends() {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* eslint-disable */
|
|
12
|
-
// sequence-indexer v0.4.0
|
|
12
|
+
// sequence-indexer v0.4.0 f9220b18008af826218980db21a68ec39989fb80
|
|
13
13
|
// --
|
|
14
14
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
15
15
|
//
|
|
@@ -25,7 +25,7 @@ const WebRPCVersion$1 = 'v1';
|
|
|
25
25
|
const WebRPCSchemaVersion$1 = 'v0.4.0';
|
|
26
26
|
|
|
27
27
|
// Schema hash generated from your RIDL schema
|
|
28
|
-
const WebRPCSchemaHash$1 = '
|
|
28
|
+
const WebRPCSchemaHash$1 = 'f9220b18008af826218980db21a68ec39989fb80';
|
|
29
29
|
function VersionFromHeader$1(headers) {
|
|
30
30
|
const headerValue = headers.get(WebrpcHeader$1);
|
|
31
31
|
if (!headerValue) {
|
|
@@ -132,6 +132,12 @@ let ContractVerificationStatus$1 = /*#__PURE__*/function (ContractVerificationSt
|
|
|
132
132
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
133
133
|
return ContractVerificationStatus;
|
|
134
134
|
}({});
|
|
135
|
+
let NetworkType$1 = /*#__PURE__*/function (NetworkType) {
|
|
136
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
137
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
138
|
+
NetworkType["ALL"] = "ALL";
|
|
139
|
+
return NetworkType;
|
|
140
|
+
}({});
|
|
135
141
|
//
|
|
136
142
|
// Client
|
|
137
143
|
//
|
|
@@ -1049,7 +1055,7 @@ const webrpcErrorByCode$1 = {
|
|
|
1049
1055
|
};
|
|
1050
1056
|
|
|
1051
1057
|
/* eslint-disable */
|
|
1052
|
-
// sequence-indexer v0.4.0
|
|
1058
|
+
// sequence-indexer v0.4.0 399517e791d272fddd35b036260f7bbbe6cea0e5
|
|
1053
1059
|
// --
|
|
1054
1060
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
1055
1061
|
//
|
|
@@ -1065,7 +1071,7 @@ const WebRPCVersion = 'v1';
|
|
|
1065
1071
|
const WebRPCSchemaVersion = 'v0.4.0';
|
|
1066
1072
|
|
|
1067
1073
|
// Schema hash generated from your RIDL schema
|
|
1068
|
-
const WebRPCSchemaHash = '
|
|
1074
|
+
const WebRPCSchemaHash = '399517e791d272fddd35b036260f7bbbe6cea0e5';
|
|
1069
1075
|
function VersionFromHeader(headers) {
|
|
1070
1076
|
const headerValue = headers.get(WebrpcHeader);
|
|
1071
1077
|
if (!headerValue) {
|
|
@@ -1172,6 +1178,12 @@ let ContractVerificationStatus = /*#__PURE__*/function (ContractVerificationStat
|
|
|
1172
1178
|
ContractVerificationStatus["ALL"] = "ALL";
|
|
1173
1179
|
return ContractVerificationStatus;
|
|
1174
1180
|
}({});
|
|
1181
|
+
let NetworkType = /*#__PURE__*/function (NetworkType) {
|
|
1182
|
+
NetworkType["MAINNETS"] = "MAINNETS";
|
|
1183
|
+
NetworkType["TESTNETS"] = "TESTNETS";
|
|
1184
|
+
NetworkType["ALL"] = "ALL";
|
|
1185
|
+
return NetworkType;
|
|
1186
|
+
}({});
|
|
1175
1187
|
//
|
|
1176
1188
|
// Client
|
|
1177
1189
|
//
|
|
@@ -1265,6 +1277,19 @@ class IndexerGateway {
|
|
|
1265
1277
|
});
|
|
1266
1278
|
});
|
|
1267
1279
|
};
|
|
1280
|
+
this.getChains = (args, headers, signal) => {
|
|
1281
|
+
return this.fetch(this.url('GetChains'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1282
|
+
return buildResponse(res).then(_data => {
|
|
1283
|
+
return {
|
|
1284
|
+
chains: _data.chains
|
|
1285
|
+
};
|
|
1286
|
+
});
|
|
1287
|
+
}, error => {
|
|
1288
|
+
throw WebrpcRequestFailedError.new({
|
|
1289
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1290
|
+
});
|
|
1291
|
+
});
|
|
1292
|
+
};
|
|
1268
1293
|
this.ping = (headers, signal) => {
|
|
1269
1294
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1270
1295
|
return buildResponse(res).then(_data => {
|
|
@@ -1698,6 +1723,7 @@ var indexergw_gen = /*#__PURE__*/Object.freeze({
|
|
|
1698
1723
|
TransactionType: TransactionType,
|
|
1699
1724
|
SortOrder: SortOrder,
|
|
1700
1725
|
ContractVerificationStatus: ContractVerificationStatus,
|
|
1726
|
+
NetworkType: NetworkType,
|
|
1701
1727
|
IndexerGateway: IndexerGateway,
|
|
1702
1728
|
WebrpcError: WebrpcError,
|
|
1703
1729
|
WebrpcEndpointError: WebrpcEndpointError,
|
|
@@ -1791,4 +1817,4 @@ class SequenceIndexerGateway extends IndexerGateway {
|
|
|
1791
1817
|
}
|
|
1792
1818
|
}
|
|
1793
1819
|
|
|
1794
|
-
export { AbortedError$1 as AbortedError, AccessKeyMismatchError$1 as AccessKeyMismatchError, AccessKeyNotFoundError$1 as AccessKeyNotFoundError, AtLeastOneKeyError$1 as AtLeastOneKeyError, ContractType$1 as ContractType, ContractVerificationStatus$1 as ContractVerificationStatus, EventLogDataType$1 as EventLogDataType, EventLogType$1 as EventLogType, GeoblockedError$1 as GeoblockedError, Indexer, indexergw_gen as IndexerGateway, InvalidArgumentError$1 as InvalidArgumentError, InvalidOriginError$1 as InvalidOriginError, InvalidServiceError$1 as InvalidServiceError, MaxAccessKeysError$1 as MaxAccessKeysError, MetadataCallFailedError$1 as MetadataCallFailedError, MethodNotFoundError$1 as MethodNotFoundError, NoDefaultKeyError$1 as NoDefaultKeyError, NotFoundError$1 as NotFoundError, OrderStatus$1 as OrderStatus, PermissionDeniedError$1 as PermissionDeniedError, ProjectNotFoundError$1 as ProjectNotFoundError, QueryFailedError$1 as QueryFailedError, QuotaExceededError$1 as QuotaExceededError, RateLimitError$1 as RateLimitError, RateLimitedError$1 as RateLimitedError, RequestConflictError$1 as RequestConflictError, ResourceExhaustedError$1 as ResourceExhaustedError, ResourceStatus$1 as ResourceStatus, SequenceIndexer, SequenceIndexerGateway, SessionExpiredError$1 as SessionExpiredError, SortOrder$1 as SortOrder, TimeoutError$1 as TimeoutError, TransactionStatus$1 as TransactionStatus, TransactionType$1 as TransactionType, TxnTransferType$1 as TxnTransferType, UnauthorizedError$1 as UnauthorizedError, UnauthorizedUserError$1 as UnauthorizedUserError, UnavailableError$1 as UnavailableError, VersionFromHeader$1 as VersionFromHeader, WebRPCSchemaHash$1 as WebRPCSchemaHash, WebRPCSchemaVersion$1 as WebRPCSchemaVersion, WebRPCVersion$1 as WebRPCVersion, WebrpcBadMethodError$1 as WebrpcBadMethodError, WebrpcBadRequestError$1 as WebrpcBadRequestError, WebrpcBadResponseError$1 as WebrpcBadResponseError, WebrpcBadRouteError$1 as WebrpcBadRouteError, WebrpcClientDisconnectedError$1 as WebrpcClientDisconnectedError, WebrpcEndpointError$1 as WebrpcEndpointError, WebrpcError$1 as WebrpcError, WebrpcHeader$1 as WebrpcHeader, WebrpcHeaderValue$1 as WebrpcHeaderValue, WebrpcInternalErrorError$1 as WebrpcInternalErrorError, WebrpcRequestFailedError$1 as WebrpcRequestFailedError, WebrpcServerPanicError$1 as WebrpcServerPanicError, WebrpcStreamFinishedError$1 as WebrpcStreamFinishedError, WebrpcStreamLostError$1 as WebrpcStreamLostError, errors$1 as errors };
|
|
1820
|
+
export { AbortedError$1 as AbortedError, AccessKeyMismatchError$1 as AccessKeyMismatchError, AccessKeyNotFoundError$1 as AccessKeyNotFoundError, AtLeastOneKeyError$1 as AtLeastOneKeyError, ContractType$1 as ContractType, ContractVerificationStatus$1 as ContractVerificationStatus, EventLogDataType$1 as EventLogDataType, EventLogType$1 as EventLogType, GeoblockedError$1 as GeoblockedError, Indexer, indexergw_gen as IndexerGateway, InvalidArgumentError$1 as InvalidArgumentError, InvalidOriginError$1 as InvalidOriginError, InvalidServiceError$1 as InvalidServiceError, MaxAccessKeysError$1 as MaxAccessKeysError, MetadataCallFailedError$1 as MetadataCallFailedError, MethodNotFoundError$1 as MethodNotFoundError, NetworkType$1 as NetworkType, NoDefaultKeyError$1 as NoDefaultKeyError, NotFoundError$1 as NotFoundError, OrderStatus$1 as OrderStatus, PermissionDeniedError$1 as PermissionDeniedError, ProjectNotFoundError$1 as ProjectNotFoundError, QueryFailedError$1 as QueryFailedError, QuotaExceededError$1 as QuotaExceededError, RateLimitError$1 as RateLimitError, RateLimitedError$1 as RateLimitedError, RequestConflictError$1 as RequestConflictError, ResourceExhaustedError$1 as ResourceExhaustedError, ResourceStatus$1 as ResourceStatus, SequenceIndexer, SequenceIndexerGateway, SessionExpiredError$1 as SessionExpiredError, SortOrder$1 as SortOrder, TimeoutError$1 as TimeoutError, TransactionStatus$1 as TransactionStatus, TransactionType$1 as TransactionType, TxnTransferType$1 as TxnTransferType, UnauthorizedError$1 as UnauthorizedError, UnauthorizedUserError$1 as UnauthorizedUserError, UnavailableError$1 as UnavailableError, VersionFromHeader$1 as VersionFromHeader, WebRPCSchemaHash$1 as WebRPCSchemaHash, WebRPCSchemaVersion$1 as WebRPCSchemaVersion, WebRPCVersion$1 as WebRPCVersion, WebrpcBadMethodError$1 as WebrpcBadMethodError, WebrpcBadRequestError$1 as WebrpcBadRequestError, WebrpcBadResponseError$1 as WebrpcBadResponseError, WebrpcBadRouteError$1 as WebrpcBadRouteError, WebrpcClientDisconnectedError$1 as WebrpcClientDisconnectedError, WebrpcEndpointError$1 as WebrpcEndpointError, WebrpcError$1 as WebrpcError, WebrpcHeader$1 as WebrpcHeader, WebrpcHeaderValue$1 as WebrpcHeaderValue, WebrpcInternalErrorError$1 as WebrpcInternalErrorError, WebrpcRequestFailedError$1 as WebrpcRequestFailedError, WebrpcServerPanicError$1 as WebrpcServerPanicError, WebrpcStreamFinishedError$1 as WebrpcStreamFinishedError, WebrpcStreamLostError$1 as WebrpcStreamLostError, errors$1 as errors };
|
|
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
|
|
|
2
2
|
export declare const WebrpcHeaderValue = "webrpc@v0.21.1;gen-typescript@v0.15.1;sequence-indexer@v0.4.0";
|
|
3
3
|
export declare const WebRPCVersion = "v1";
|
|
4
4
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
5
|
-
export declare const WebRPCSchemaHash = "
|
|
5
|
+
export declare const WebRPCSchemaHash = "f9220b18008af826218980db21a68ec39989fb80";
|
|
6
6
|
type WebrpcGenVersions = {
|
|
7
7
|
webrpcGenVersion: string;
|
|
8
8
|
codeGenName: string;
|
|
@@ -136,6 +136,11 @@ export declare enum ContractVerificationStatus {
|
|
|
136
136
|
UNVERIFIED = "UNVERIFIED",
|
|
137
137
|
ALL = "ALL"
|
|
138
138
|
}
|
|
139
|
+
export declare enum NetworkType {
|
|
140
|
+
MAINNETS = "MAINNETS",
|
|
141
|
+
TESTNETS = "TESTNETS",
|
|
142
|
+
ALL = "ALL"
|
|
143
|
+
}
|
|
139
144
|
export interface Version {
|
|
140
145
|
webrpcVersion: string;
|
|
141
146
|
schemaVersion: string;
|
|
@@ -230,7 +235,7 @@ export interface NativeTokenBalance {
|
|
|
230
235
|
accountAddress: string;
|
|
231
236
|
chainId: number;
|
|
232
237
|
balance: string;
|
|
233
|
-
|
|
238
|
+
errorReason?: string;
|
|
234
239
|
}
|
|
235
240
|
export interface IndexState {
|
|
236
241
|
chainId: string;
|
|
@@ -455,24 +460,28 @@ export interface TokenBalancesByContractFilter {
|
|
|
455
460
|
}
|
|
456
461
|
export interface GatewayEtherBalance {
|
|
457
462
|
chainId: number;
|
|
458
|
-
|
|
463
|
+
errorReason?: string;
|
|
459
464
|
result: EtherBalance;
|
|
460
465
|
}
|
|
461
466
|
export interface GatewayNativeTokenBalance {
|
|
462
467
|
chainId: number;
|
|
463
|
-
|
|
468
|
+
errorReason?: string;
|
|
464
469
|
result: NativeTokenBalance;
|
|
465
470
|
}
|
|
466
471
|
export interface GatewayNativeTokenBalances {
|
|
467
472
|
chainId: number;
|
|
468
|
-
|
|
473
|
+
errorReason?: string;
|
|
469
474
|
results: Array<NativeTokenBalance>;
|
|
470
475
|
}
|
|
471
476
|
export interface GatewayTokenBalance {
|
|
472
477
|
chainId: number;
|
|
473
|
-
|
|
478
|
+
errorReason?: string;
|
|
474
479
|
results: Array<TokenBalance>;
|
|
475
480
|
}
|
|
481
|
+
export interface ChainInfo {
|
|
482
|
+
chainId: number;
|
|
483
|
+
chainName: string;
|
|
484
|
+
}
|
|
476
485
|
export interface Indexer {
|
|
477
486
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
|
|
478
487
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
|
|
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
|
|
|
2
2
|
export declare const WebrpcHeaderValue = "webrpc@v0.21.1;gen-typescript@v0.15.1;sequence-indexer@v0.4.0";
|
|
3
3
|
export declare const WebRPCVersion = "v1";
|
|
4
4
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
5
|
-
export declare const WebRPCSchemaHash = "
|
|
5
|
+
export declare const WebRPCSchemaHash = "399517e791d272fddd35b036260f7bbbe6cea0e5";
|
|
6
6
|
type WebrpcGenVersions = {
|
|
7
7
|
webrpcGenVersion: string;
|
|
8
8
|
codeGenName: string;
|
|
@@ -136,6 +136,11 @@ export declare enum ContractVerificationStatus {
|
|
|
136
136
|
UNVERIFIED = "UNVERIFIED",
|
|
137
137
|
ALL = "ALL"
|
|
138
138
|
}
|
|
139
|
+
export declare enum NetworkType {
|
|
140
|
+
MAINNETS = "MAINNETS",
|
|
141
|
+
TESTNETS = "TESTNETS",
|
|
142
|
+
ALL = "ALL"
|
|
143
|
+
}
|
|
139
144
|
export interface Version {
|
|
140
145
|
webrpcVersion: string;
|
|
141
146
|
schemaVersion: string;
|
|
@@ -230,7 +235,7 @@ export interface NativeTokenBalance {
|
|
|
230
235
|
accountAddress: string;
|
|
231
236
|
chainId: number;
|
|
232
237
|
balance: string;
|
|
233
|
-
|
|
238
|
+
errorReason?: string;
|
|
234
239
|
}
|
|
235
240
|
export interface IndexState {
|
|
236
241
|
chainId: string;
|
|
@@ -455,24 +460,28 @@ export interface TokenBalancesByContractFilter {
|
|
|
455
460
|
}
|
|
456
461
|
export interface GatewayEtherBalance {
|
|
457
462
|
chainId: number;
|
|
458
|
-
|
|
463
|
+
errorReason?: string;
|
|
459
464
|
result: EtherBalance;
|
|
460
465
|
}
|
|
461
466
|
export interface GatewayNativeTokenBalance {
|
|
462
467
|
chainId: number;
|
|
463
|
-
|
|
468
|
+
errorReason?: string;
|
|
464
469
|
result: NativeTokenBalance;
|
|
465
470
|
}
|
|
466
471
|
export interface GatewayNativeTokenBalances {
|
|
467
472
|
chainId: number;
|
|
468
|
-
|
|
473
|
+
errorReason?: string;
|
|
469
474
|
results: Array<NativeTokenBalance>;
|
|
470
475
|
}
|
|
471
476
|
export interface GatewayTokenBalance {
|
|
472
477
|
chainId: number;
|
|
473
|
-
|
|
478
|
+
errorReason?: string;
|
|
474
479
|
results: Array<TokenBalance>;
|
|
475
480
|
}
|
|
481
|
+
export interface ChainInfo {
|
|
482
|
+
chainId: number;
|
|
483
|
+
chainName: string;
|
|
484
|
+
}
|
|
476
485
|
export interface IndexerGateway {
|
|
477
486
|
getNativeTokenBalance(args: GetNativeTokenBalanceArgs, headers?: object, signal?: AbortSignal): Promise<GetNativeTokenBalanceReturn>;
|
|
478
487
|
getTokenBalances(args: GetTokenBalancesArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesReturn>;
|
|
@@ -480,6 +489,7 @@ export interface IndexerGateway {
|
|
|
480
489
|
getTokenBalancesDetails(args: GetTokenBalancesDetailsArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesDetailsReturn>;
|
|
481
490
|
getTokenBalancesByContract(args: GetTokenBalancesByContractArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesByContractReturn>;
|
|
482
491
|
getBalanceUpdates(args: GetBalanceUpdatesArgs, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesReturn>;
|
|
492
|
+
getChains(args: GetChainsArgs, headers?: object, signal?: AbortSignal): Promise<GetChainsReturn>;
|
|
483
493
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
|
|
484
494
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
|
|
485
495
|
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn>;
|
|
@@ -487,7 +497,7 @@ export interface IndexerGateway {
|
|
|
487
497
|
export interface GetNativeTokenBalanceArgs {
|
|
488
498
|
chainIds?: Array<number>;
|
|
489
499
|
networks?: Array<string>;
|
|
490
|
-
|
|
500
|
+
networkType?: NetworkType;
|
|
491
501
|
accountAddress?: string;
|
|
492
502
|
}
|
|
493
503
|
export interface GetNativeTokenBalanceReturn {
|
|
@@ -496,7 +506,7 @@ export interface GetNativeTokenBalanceReturn {
|
|
|
496
506
|
export interface GetTokenBalancesArgs {
|
|
497
507
|
chainIds?: Array<number>;
|
|
498
508
|
networks?: Array<string>;
|
|
499
|
-
|
|
509
|
+
networkType?: NetworkType;
|
|
500
510
|
accountAddress?: string;
|
|
501
511
|
contractAddress?: string;
|
|
502
512
|
tokenID?: string;
|
|
@@ -512,7 +522,7 @@ export interface GetTokenBalancesReturn {
|
|
|
512
522
|
export interface GetTokenBalancesSummaryArgs {
|
|
513
523
|
chainIds?: Array<number>;
|
|
514
524
|
networks?: Array<string>;
|
|
515
|
-
|
|
525
|
+
networkType?: NetworkType;
|
|
516
526
|
filter: TokenBalancesFilter;
|
|
517
527
|
omitMetadata?: boolean;
|
|
518
528
|
page?: Page;
|
|
@@ -525,7 +535,7 @@ export interface GetTokenBalancesSummaryReturn {
|
|
|
525
535
|
export interface GetTokenBalancesDetailsArgs {
|
|
526
536
|
chainIds?: Array<number>;
|
|
527
537
|
networks?: Array<string>;
|
|
528
|
-
|
|
538
|
+
networkType?: NetworkType;
|
|
529
539
|
filter: TokenBalancesFilter;
|
|
530
540
|
omitMetadata?: boolean;
|
|
531
541
|
page?: Page;
|
|
@@ -538,7 +548,7 @@ export interface GetTokenBalancesDetailsReturn {
|
|
|
538
548
|
export interface GetTokenBalancesByContractArgs {
|
|
539
549
|
chainIds?: Array<number>;
|
|
540
550
|
networks?: Array<string>;
|
|
541
|
-
|
|
551
|
+
networkType?: NetworkType;
|
|
542
552
|
filter: TokenBalancesByContractFilter;
|
|
543
553
|
omitMetadata?: boolean;
|
|
544
554
|
page?: Page;
|
|
@@ -550,7 +560,7 @@ export interface GetTokenBalancesByContractReturn {
|
|
|
550
560
|
export interface GetBalanceUpdatesArgs {
|
|
551
561
|
chainIds?: Array<number>;
|
|
552
562
|
networks?: Array<string>;
|
|
553
|
-
|
|
563
|
+
networkType?: NetworkType;
|
|
554
564
|
contractAddress: string;
|
|
555
565
|
lastBlockNumber: number;
|
|
556
566
|
lastBlockHash?: string;
|
|
@@ -560,6 +570,12 @@ export interface GetBalanceUpdatesReturn {
|
|
|
560
570
|
page: Page;
|
|
561
571
|
balances: Array<GatewayTokenBalance>;
|
|
562
572
|
}
|
|
573
|
+
export interface GetChainsArgs {
|
|
574
|
+
networkType?: NetworkType;
|
|
575
|
+
}
|
|
576
|
+
export interface GetChainsReturn {
|
|
577
|
+
chains: Array<ChainInfo>;
|
|
578
|
+
}
|
|
563
579
|
export interface PingArgs {
|
|
564
580
|
}
|
|
565
581
|
export interface PingReturn {
|
|
@@ -587,6 +603,7 @@ export declare class IndexerGateway implements IndexerGateway {
|
|
|
587
603
|
getTokenBalancesDetails: (args: GetTokenBalancesDetailsArgs, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesDetailsReturn>;
|
|
588
604
|
getTokenBalancesByContract: (args: GetTokenBalancesByContractArgs, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesByContractReturn>;
|
|
589
605
|
getBalanceUpdates: (args: GetBalanceUpdatesArgs, headers?: object, signal?: AbortSignal) => Promise<GetBalanceUpdatesReturn>;
|
|
606
|
+
getChains: (args: GetChainsArgs, headers?: object, signal?: AbortSignal) => Promise<GetChainsReturn>;
|
|
590
607
|
ping: (headers?: object, signal?: AbortSignal) => Promise<PingReturn>;
|
|
591
608
|
version: (headers?: object, signal?: AbortSignal) => Promise<VersionReturn>;
|
|
592
609
|
runtimeStatus: (headers?: object, signal?: AbortSignal) => Promise<RuntimeStatusReturn>;
|
package/package.json
CHANGED
package/src/indexer.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-indexer v0.4.0
|
|
2
|
+
// sequence-indexer v0.4.0 f9220b18008af826218980db21a68ec39989fb80
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
|
|
|
16
16
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
17
17
|
|
|
18
18
|
// Schema hash generated from your RIDL schema
|
|
19
|
-
export const WebRPCSchemaHash = '
|
|
19
|
+
export const WebRPCSchemaHash = 'f9220b18008af826218980db21a68ec39989fb80'
|
|
20
20
|
|
|
21
21
|
type WebrpcGenVersions = {
|
|
22
22
|
webrpcGenVersion: string
|
|
@@ -205,6 +205,12 @@ export enum ContractVerificationStatus {
|
|
|
205
205
|
ALL = 'ALL'
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
export enum NetworkType {
|
|
209
|
+
MAINNETS = 'MAINNETS',
|
|
210
|
+
TESTNETS = 'TESTNETS',
|
|
211
|
+
ALL = 'ALL'
|
|
212
|
+
}
|
|
213
|
+
|
|
208
214
|
export interface Version {
|
|
209
215
|
webrpcVersion: string
|
|
210
216
|
schemaVersion: string
|
|
@@ -307,7 +313,7 @@ export interface NativeTokenBalance {
|
|
|
307
313
|
accountAddress: string
|
|
308
314
|
chainId: number
|
|
309
315
|
balance: string
|
|
310
|
-
|
|
316
|
+
errorReason?: string
|
|
311
317
|
}
|
|
312
318
|
|
|
313
319
|
export interface IndexState {
|
|
@@ -554,28 +560,33 @@ export interface TokenBalancesByContractFilter {
|
|
|
554
560
|
|
|
555
561
|
export interface GatewayEtherBalance {
|
|
556
562
|
chainId: number
|
|
557
|
-
|
|
563
|
+
errorReason?: string
|
|
558
564
|
result: EtherBalance
|
|
559
565
|
}
|
|
560
566
|
|
|
561
567
|
export interface GatewayNativeTokenBalance {
|
|
562
568
|
chainId: number
|
|
563
|
-
|
|
569
|
+
errorReason?: string
|
|
564
570
|
result: NativeTokenBalance
|
|
565
571
|
}
|
|
566
572
|
|
|
567
573
|
export interface GatewayNativeTokenBalances {
|
|
568
574
|
chainId: number
|
|
569
|
-
|
|
575
|
+
errorReason?: string
|
|
570
576
|
results: Array<NativeTokenBalance>
|
|
571
577
|
}
|
|
572
578
|
|
|
573
579
|
export interface GatewayTokenBalance {
|
|
574
580
|
chainId: number
|
|
575
|
-
|
|
581
|
+
errorReason?: string
|
|
576
582
|
results: Array<TokenBalance>
|
|
577
583
|
}
|
|
578
584
|
|
|
585
|
+
export interface ChainInfo {
|
|
586
|
+
chainId: number
|
|
587
|
+
chainName: string
|
|
588
|
+
}
|
|
589
|
+
|
|
579
590
|
export interface Indexer {
|
|
580
591
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>
|
|
581
592
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>
|
package/src/indexergw.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-indexer v0.4.0
|
|
2
|
+
// sequence-indexer v0.4.0 399517e791d272fddd35b036260f7bbbe6cea0e5
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.21.1 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
|
|
|
16
16
|
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
17
17
|
|
|
18
18
|
// Schema hash generated from your RIDL schema
|
|
19
|
-
export const WebRPCSchemaHash = '
|
|
19
|
+
export const WebRPCSchemaHash = '399517e791d272fddd35b036260f7bbbe6cea0e5'
|
|
20
20
|
|
|
21
21
|
type WebrpcGenVersions = {
|
|
22
22
|
webrpcGenVersion: string
|
|
@@ -205,6 +205,12 @@ export enum ContractVerificationStatus {
|
|
|
205
205
|
ALL = 'ALL'
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
export enum NetworkType {
|
|
209
|
+
MAINNETS = 'MAINNETS',
|
|
210
|
+
TESTNETS = 'TESTNETS',
|
|
211
|
+
ALL = 'ALL'
|
|
212
|
+
}
|
|
213
|
+
|
|
208
214
|
export interface Version {
|
|
209
215
|
webrpcVersion: string
|
|
210
216
|
schemaVersion: string
|
|
@@ -307,7 +313,7 @@ export interface NativeTokenBalance {
|
|
|
307
313
|
accountAddress: string
|
|
308
314
|
chainId: number
|
|
309
315
|
balance: string
|
|
310
|
-
|
|
316
|
+
errorReason?: string
|
|
311
317
|
}
|
|
312
318
|
|
|
313
319
|
export interface IndexState {
|
|
@@ -554,28 +560,33 @@ export interface TokenBalancesByContractFilter {
|
|
|
554
560
|
|
|
555
561
|
export interface GatewayEtherBalance {
|
|
556
562
|
chainId: number
|
|
557
|
-
|
|
563
|
+
errorReason?: string
|
|
558
564
|
result: EtherBalance
|
|
559
565
|
}
|
|
560
566
|
|
|
561
567
|
export interface GatewayNativeTokenBalance {
|
|
562
568
|
chainId: number
|
|
563
|
-
|
|
569
|
+
errorReason?: string
|
|
564
570
|
result: NativeTokenBalance
|
|
565
571
|
}
|
|
566
572
|
|
|
567
573
|
export interface GatewayNativeTokenBalances {
|
|
568
574
|
chainId: number
|
|
569
|
-
|
|
575
|
+
errorReason?: string
|
|
570
576
|
results: Array<NativeTokenBalance>
|
|
571
577
|
}
|
|
572
578
|
|
|
573
579
|
export interface GatewayTokenBalance {
|
|
574
580
|
chainId: number
|
|
575
|
-
|
|
581
|
+
errorReason?: string
|
|
576
582
|
results: Array<TokenBalance>
|
|
577
583
|
}
|
|
578
584
|
|
|
585
|
+
export interface ChainInfo {
|
|
586
|
+
chainId: number
|
|
587
|
+
chainName: string
|
|
588
|
+
}
|
|
589
|
+
|
|
579
590
|
export interface IndexerGateway {
|
|
580
591
|
getNativeTokenBalance(
|
|
581
592
|
args: GetNativeTokenBalanceArgs,
|
|
@@ -599,6 +610,7 @@ export interface IndexerGateway {
|
|
|
599
610
|
signal?: AbortSignal
|
|
600
611
|
): Promise<GetTokenBalancesByContractReturn>
|
|
601
612
|
getBalanceUpdates(args: GetBalanceUpdatesArgs, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesReturn>
|
|
613
|
+
getChains(args: GetChainsArgs, headers?: object, signal?: AbortSignal): Promise<GetChainsReturn>
|
|
602
614
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>
|
|
603
615
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>
|
|
604
616
|
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn>
|
|
@@ -607,7 +619,7 @@ export interface IndexerGateway {
|
|
|
607
619
|
export interface GetNativeTokenBalanceArgs {
|
|
608
620
|
chainIds?: Array<number>
|
|
609
621
|
networks?: Array<string>
|
|
610
|
-
|
|
622
|
+
networkType?: NetworkType
|
|
611
623
|
accountAddress?: string
|
|
612
624
|
}
|
|
613
625
|
|
|
@@ -617,7 +629,7 @@ export interface GetNativeTokenBalanceReturn {
|
|
|
617
629
|
export interface GetTokenBalancesArgs {
|
|
618
630
|
chainIds?: Array<number>
|
|
619
631
|
networks?: Array<string>
|
|
620
|
-
|
|
632
|
+
networkType?: NetworkType
|
|
621
633
|
accountAddress?: string
|
|
622
634
|
contractAddress?: string
|
|
623
635
|
tokenID?: string
|
|
@@ -634,7 +646,7 @@ export interface GetTokenBalancesReturn {
|
|
|
634
646
|
export interface GetTokenBalancesSummaryArgs {
|
|
635
647
|
chainIds?: Array<number>
|
|
636
648
|
networks?: Array<string>
|
|
637
|
-
|
|
649
|
+
networkType?: NetworkType
|
|
638
650
|
filter: TokenBalancesFilter
|
|
639
651
|
omitMetadata?: boolean
|
|
640
652
|
page?: Page
|
|
@@ -648,7 +660,7 @@ export interface GetTokenBalancesSummaryReturn {
|
|
|
648
660
|
export interface GetTokenBalancesDetailsArgs {
|
|
649
661
|
chainIds?: Array<number>
|
|
650
662
|
networks?: Array<string>
|
|
651
|
-
|
|
663
|
+
networkType?: NetworkType
|
|
652
664
|
filter: TokenBalancesFilter
|
|
653
665
|
omitMetadata?: boolean
|
|
654
666
|
page?: Page
|
|
@@ -662,7 +674,7 @@ export interface GetTokenBalancesDetailsReturn {
|
|
|
662
674
|
export interface GetTokenBalancesByContractArgs {
|
|
663
675
|
chainIds?: Array<number>
|
|
664
676
|
networks?: Array<string>
|
|
665
|
-
|
|
677
|
+
networkType?: NetworkType
|
|
666
678
|
filter: TokenBalancesByContractFilter
|
|
667
679
|
omitMetadata?: boolean
|
|
668
680
|
page?: Page
|
|
@@ -675,7 +687,7 @@ export interface GetTokenBalancesByContractReturn {
|
|
|
675
687
|
export interface GetBalanceUpdatesArgs {
|
|
676
688
|
chainIds?: Array<number>
|
|
677
689
|
networks?: Array<string>
|
|
678
|
-
|
|
690
|
+
networkType?: NetworkType
|
|
679
691
|
contractAddress: string
|
|
680
692
|
lastBlockNumber: number
|
|
681
693
|
lastBlockHash?: string
|
|
@@ -686,6 +698,13 @@ export interface GetBalanceUpdatesReturn {
|
|
|
686
698
|
page: Page
|
|
687
699
|
balances: Array<GatewayTokenBalance>
|
|
688
700
|
}
|
|
701
|
+
export interface GetChainsArgs {
|
|
702
|
+
networkType?: NetworkType
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export interface GetChainsReturn {
|
|
706
|
+
chains: Array<ChainInfo>
|
|
707
|
+
}
|
|
689
708
|
export interface PingArgs {}
|
|
690
709
|
|
|
691
710
|
export interface PingReturn {
|
|
@@ -832,6 +851,21 @@ export class IndexerGateway implements IndexerGateway {
|
|
|
832
851
|
)
|
|
833
852
|
}
|
|
834
853
|
|
|
854
|
+
getChains = (args: GetChainsArgs, headers?: object, signal?: AbortSignal): Promise<GetChainsReturn> => {
|
|
855
|
+
return this.fetch(this.url('GetChains'), createHTTPRequest(args, headers, signal)).then(
|
|
856
|
+
res => {
|
|
857
|
+
return buildResponse(res).then(_data => {
|
|
858
|
+
return {
|
|
859
|
+
chains: <Array<ChainInfo>>_data.chains
|
|
860
|
+
}
|
|
861
|
+
})
|
|
862
|
+
},
|
|
863
|
+
error => {
|
|
864
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
865
|
+
}
|
|
866
|
+
)
|
|
867
|
+
}
|
|
868
|
+
|
|
835
869
|
ping = (headers?: object, signal?: AbortSignal): Promise<PingReturn> => {
|
|
836
870
|
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers, signal)).then(
|
|
837
871
|
res => {
|