@avalabs/glacier-sdk 2.8.0-alpha.123 → 2.8.0-alpha.124
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/index.d.ts +254 -311
- package/dist/index.js +67 -148
- package/esm/generated/Glacier.d.ts +0 -4
- package/esm/generated/Glacier.js +1 -5
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
- package/esm/generated/models/DelegationStatusType.d.ts +3 -1
- package/esm/generated/models/DelegationStatusType.js +2 -0
- package/esm/generated/models/Erc1155Contract.d.ts +36 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/{Contract.d.ts → Erc20Contract.d.ts} +24 -21
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc721Contract.d.ts +36 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/ImageAsset.d.ts +12 -0
- package/esm/generated/models/ListContractsResponse.d.ts +5 -2
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +6 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +6 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
- package/esm/generated/models/UnknownContract.d.ts +32 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/ValidationStatusType.d.ts +3 -1
- package/esm/generated/models/ValidationStatusType.js +2 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -8
- package/esm/generated/services/PrimaryNetworkService.js +34 -7
- package/esm/index.d.ts +9 -11
- package/esm/index.js +4 -5
- package/package.json +2 -2
- package/esm/generated/models/CollectionMetrics.d.ts +0 -41
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -9
- package/esm/generated/models/CollectionSortByOption.js +0 -10
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/FloorPrice.d.ts +0 -8
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/DefaultService.d.ts +0 -52
- package/esm/generated/services/DefaultService.js +0 -34
- package/esm/generated/services/NfTsService.d.ts +0 -108
- package/esm/generated/services/NfTsService.js +0 -77
package/dist/index.js
CHANGED
|
@@ -352,39 +352,6 @@ class FetchHttpRequest extends BaseHttpRequest {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
class DefaultService {
|
|
356
|
-
constructor(httpRequest) {
|
|
357
|
-
this.httpRequest = httpRequest;
|
|
358
|
-
}
|
|
359
|
-
listDelegators({
|
|
360
|
-
network,
|
|
361
|
-
nodeId,
|
|
362
|
-
delegationStatus,
|
|
363
|
-
pageSize = 10,
|
|
364
|
-
pageToken,
|
|
365
|
-
sortOrder,
|
|
366
|
-
rewardAddresses,
|
|
367
|
-
nodeIds
|
|
368
|
-
}) {
|
|
369
|
-
return this.httpRequest.request({
|
|
370
|
-
method: "GET",
|
|
371
|
-
url: "/v1/networks/{network}/delegators",
|
|
372
|
-
path: {
|
|
373
|
-
"network": network,
|
|
374
|
-
"nodeId": nodeId,
|
|
375
|
-
"delegationStatus": delegationStatus
|
|
376
|
-
},
|
|
377
|
-
query: {
|
|
378
|
-
"pageSize": pageSize,
|
|
379
|
-
"pageToken": pageToken,
|
|
380
|
-
"sortOrder": sortOrder,
|
|
381
|
-
"rewardAddresses": rewardAddresses,
|
|
382
|
-
"nodeIds": nodeIds
|
|
383
|
-
}
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
|
|
388
355
|
class EvmBalancesService {
|
|
389
356
|
constructor(httpRequest) {
|
|
390
357
|
this.httpRequest = httpRequest;
|
|
@@ -829,82 +796,6 @@ class HealthCheckService {
|
|
|
829
796
|
}
|
|
830
797
|
}
|
|
831
798
|
|
|
832
|
-
class NfTsService {
|
|
833
|
-
constructor(httpRequest) {
|
|
834
|
-
this.httpRequest = httpRequest;
|
|
835
|
-
}
|
|
836
|
-
reindexNft({
|
|
837
|
-
chainId,
|
|
838
|
-
address,
|
|
839
|
-
tokenId
|
|
840
|
-
}) {
|
|
841
|
-
return this.httpRequest.request({
|
|
842
|
-
method: "POST",
|
|
843
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
844
|
-
path: {
|
|
845
|
-
"chainId": chainId,
|
|
846
|
-
"address": address,
|
|
847
|
-
"tokenId": tokenId
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
}
|
|
851
|
-
getCollection({
|
|
852
|
-
chainId,
|
|
853
|
-
address,
|
|
854
|
-
timeframe
|
|
855
|
-
}) {
|
|
856
|
-
return this.httpRequest.request({
|
|
857
|
-
method: "GET",
|
|
858
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}",
|
|
859
|
-
path: {
|
|
860
|
-
"chainId": chainId,
|
|
861
|
-
"address": address
|
|
862
|
-
},
|
|
863
|
-
query: {
|
|
864
|
-
"timeframe": timeframe
|
|
865
|
-
}
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
listCollections({
|
|
869
|
-
chainId,
|
|
870
|
-
pageSize = 10,
|
|
871
|
-
pageToken,
|
|
872
|
-
timeframe,
|
|
873
|
-
sortBy,
|
|
874
|
-
sortOrder
|
|
875
|
-
}) {
|
|
876
|
-
return this.httpRequest.request({
|
|
877
|
-
method: "GET",
|
|
878
|
-
url: "/v1/chains/{chainId}/nfts/collections",
|
|
879
|
-
path: {
|
|
880
|
-
"chainId": chainId
|
|
881
|
-
},
|
|
882
|
-
query: {
|
|
883
|
-
"pageSize": pageSize,
|
|
884
|
-
"pageToken": pageToken,
|
|
885
|
-
"timeframe": timeframe,
|
|
886
|
-
"sortBy": sortBy,
|
|
887
|
-
"sortOrder": sortOrder
|
|
888
|
-
}
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
getTokenDetails({
|
|
892
|
-
chainId,
|
|
893
|
-
address,
|
|
894
|
-
tokenId
|
|
895
|
-
}) {
|
|
896
|
-
return this.httpRequest.request({
|
|
897
|
-
method: "GET",
|
|
898
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
899
|
-
path: {
|
|
900
|
-
"chainId": chainId,
|
|
901
|
-
"address": address,
|
|
902
|
-
"tokenId": tokenId
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
|
|
908
799
|
class OperationsService {
|
|
909
800
|
constructor(httpRequest) {
|
|
910
801
|
this.httpRequest = httpRequest;
|
|
@@ -1017,25 +908,25 @@ class PrimaryNetworkService {
|
|
|
1017
908
|
}
|
|
1018
909
|
listValidators({
|
|
1019
910
|
network,
|
|
1020
|
-
validationStatus,
|
|
1021
911
|
pageSize = 10,
|
|
1022
912
|
pageToken,
|
|
1023
913
|
nodeIds,
|
|
1024
914
|
sortOrder,
|
|
915
|
+
validationStatus,
|
|
1025
916
|
minDelegationCapacity
|
|
1026
917
|
}) {
|
|
1027
918
|
return this.httpRequest.request({
|
|
1028
919
|
method: "GET",
|
|
1029
920
|
url: "/v1/networks/{network}/validators",
|
|
1030
921
|
path: {
|
|
1031
|
-
"network": network
|
|
1032
|
-
"validationStatus": validationStatus
|
|
922
|
+
"network": network
|
|
1033
923
|
},
|
|
1034
924
|
query: {
|
|
1035
925
|
"pageSize": pageSize,
|
|
1036
926
|
"pageToken": pageToken,
|
|
1037
927
|
"nodeIds": nodeIds,
|
|
1038
928
|
"sortOrder": sortOrder,
|
|
929
|
+
"validationStatus": validationStatus,
|
|
1039
930
|
"minDelegationCapacity": minDelegationCapacity
|
|
1040
931
|
}
|
|
1041
932
|
});
|
|
@@ -1043,23 +934,50 @@ class PrimaryNetworkService {
|
|
|
1043
934
|
getSingleValidatorDetails({
|
|
1044
935
|
network,
|
|
1045
936
|
nodeId,
|
|
1046
|
-
validationStatus,
|
|
1047
937
|
pageSize = 10,
|
|
1048
938
|
pageToken,
|
|
1049
|
-
sortOrder
|
|
939
|
+
sortOrder,
|
|
940
|
+
validationStatus
|
|
1050
941
|
}) {
|
|
1051
942
|
return this.httpRequest.request({
|
|
1052
943
|
method: "GET",
|
|
1053
944
|
url: "/v1/networks/{network}/validators/{nodeId}",
|
|
1054
945
|
path: {
|
|
1055
946
|
"network": network,
|
|
1056
|
-
"nodeId": nodeId
|
|
947
|
+
"nodeId": nodeId
|
|
948
|
+
},
|
|
949
|
+
query: {
|
|
950
|
+
"pageSize": pageSize,
|
|
951
|
+
"pageToken": pageToken,
|
|
952
|
+
"sortOrder": sortOrder,
|
|
1057
953
|
"validationStatus": validationStatus
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
listDelegators({
|
|
958
|
+
network,
|
|
959
|
+
nodeId,
|
|
960
|
+
pageSize = 10,
|
|
961
|
+
pageToken,
|
|
962
|
+
sortOrder,
|
|
963
|
+
delegationStatus,
|
|
964
|
+
rewardAddresses,
|
|
965
|
+
nodeIds
|
|
966
|
+
}) {
|
|
967
|
+
return this.httpRequest.request({
|
|
968
|
+
method: "GET",
|
|
969
|
+
url: "/v1/networks/{network}/delegators",
|
|
970
|
+
path: {
|
|
971
|
+
"network": network,
|
|
972
|
+
"nodeId": nodeId
|
|
1058
973
|
},
|
|
1059
974
|
query: {
|
|
1060
975
|
"pageSize": pageSize,
|
|
1061
976
|
"pageToken": pageToken,
|
|
1062
|
-
"sortOrder": sortOrder
|
|
977
|
+
"sortOrder": sortOrder,
|
|
978
|
+
"delegationStatus": delegationStatus,
|
|
979
|
+
"rewardAddresses": rewardAddresses,
|
|
980
|
+
"nodeIds": nodeIds
|
|
1063
981
|
}
|
|
1064
982
|
});
|
|
1065
983
|
}
|
|
@@ -1405,7 +1323,7 @@ class Glacier {
|
|
|
1405
1323
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
1406
1324
|
var _a, _b, _c, _d;
|
|
1407
1325
|
this.request = new HttpRequest({
|
|
1408
|
-
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api.avax.network",
|
|
1326
|
+
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api-dev.avax.network",
|
|
1409
1327
|
VERSION: (_b = config == null ? void 0 : config.VERSION) != null ? _b : "Beta",
|
|
1410
1328
|
WITH_CREDENTIALS: (_c = config == null ? void 0 : config.WITH_CREDENTIALS) != null ? _c : false,
|
|
1411
1329
|
CREDENTIALS: (_d = config == null ? void 0 : config.CREDENTIALS) != null ? _d : "include",
|
|
@@ -1415,13 +1333,11 @@ class Glacier {
|
|
|
1415
1333
|
HEADERS: config == null ? void 0 : config.HEADERS,
|
|
1416
1334
|
ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
|
|
1417
1335
|
});
|
|
1418
|
-
this.default = new DefaultService(this.request);
|
|
1419
1336
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1420
1337
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1421
1338
|
this.evmChains = new EvmChainsService(this.request);
|
|
1422
1339
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
1423
1340
|
this.healthCheck = new HealthCheckService(this.request);
|
|
1424
|
-
this.nfTs = new NfTsService(this.request);
|
|
1425
1341
|
this.operations = new OperationsService(this.request);
|
|
1426
1342
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
1427
1343
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1434,7 +1350,7 @@ class Glacier {
|
|
|
1434
1350
|
}
|
|
1435
1351
|
|
|
1436
1352
|
const OpenAPI = {
|
|
1437
|
-
BASE: "https://glacier-api.avax.network",
|
|
1353
|
+
BASE: "https://glacier-api-dev.avax.network",
|
|
1438
1354
|
VERSION: "Beta",
|
|
1439
1355
|
WITH_CREDENTIALS: false,
|
|
1440
1356
|
CREDENTIALS: "include",
|
|
@@ -1486,15 +1402,6 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
|
|
|
1486
1402
|
return ChainStatus2;
|
|
1487
1403
|
})(ChainStatus || {});
|
|
1488
1404
|
|
|
1489
|
-
var CollectionSortByOption = /* @__PURE__ */ ((CollectionSortByOption2) => {
|
|
1490
|
-
CollectionSortByOption2["COLLECTION_ADDRESS"] = "collectionAddress";
|
|
1491
|
-
CollectionSortByOption2["SALE_TIMESTAMP"] = "saleTimestamp";
|
|
1492
|
-
CollectionSortByOption2["VOLUME"] = "volume";
|
|
1493
|
-
CollectionSortByOption2["VOLUME_CHANGE"] = "volumeChange";
|
|
1494
|
-
CollectionSortByOption2["FLOOR_PRICE"] = "floorPrice";
|
|
1495
|
-
return CollectionSortByOption2;
|
|
1496
|
-
})(CollectionSortByOption || {});
|
|
1497
|
-
|
|
1498
1405
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1499
1406
|
((CreateEvmTransactionExportRequest2) => {
|
|
1500
1407
|
((type2) => {
|
|
@@ -1529,9 +1436,18 @@ var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
|
|
|
1529
1436
|
|
|
1530
1437
|
var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
|
|
1531
1438
|
DelegationStatusType2["COMPLETED"] = "completed";
|
|
1439
|
+
DelegationStatusType2["ACTIVE"] = "active";
|
|
1440
|
+
DelegationStatusType2["PENDING"] = "pending";
|
|
1532
1441
|
return DelegationStatusType2;
|
|
1533
1442
|
})(DelegationStatusType || {});
|
|
1534
1443
|
|
|
1444
|
+
exports.Erc1155Contract = void 0;
|
|
1445
|
+
((Erc1155Contract2) => {
|
|
1446
|
+
((ercType2) => {
|
|
1447
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
1448
|
+
})(Erc1155Contract2.ercType || (Erc1155Contract2.ercType = {}));
|
|
1449
|
+
})(exports.Erc1155Contract || (exports.Erc1155Contract = {}));
|
|
1450
|
+
|
|
1535
1451
|
exports.Erc1155Token = void 0;
|
|
1536
1452
|
((Erc1155Token2) => {
|
|
1537
1453
|
((ercType2) => {
|
|
@@ -1546,6 +1462,13 @@ exports.Erc1155TokenBalance = void 0;
|
|
|
1546
1462
|
})(Erc1155TokenBalance2.ercType || (Erc1155TokenBalance2.ercType = {}));
|
|
1547
1463
|
})(exports.Erc1155TokenBalance || (exports.Erc1155TokenBalance = {}));
|
|
1548
1464
|
|
|
1465
|
+
exports.Erc20Contract = void 0;
|
|
1466
|
+
((Erc20Contract2) => {
|
|
1467
|
+
((ercType2) => {
|
|
1468
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
1469
|
+
})(Erc20Contract2.ercType || (Erc20Contract2.ercType = {}));
|
|
1470
|
+
})(exports.Erc20Contract || (exports.Erc20Contract = {}));
|
|
1471
|
+
|
|
1549
1472
|
exports.Erc20Token = void 0;
|
|
1550
1473
|
((Erc20Token2) => {
|
|
1551
1474
|
((ercType2) => {
|
|
@@ -1560,6 +1483,13 @@ exports.Erc20TokenBalance = void 0;
|
|
|
1560
1483
|
})(Erc20TokenBalance2.ercType || (Erc20TokenBalance2.ercType = {}));
|
|
1561
1484
|
})(exports.Erc20TokenBalance || (exports.Erc20TokenBalance = {}));
|
|
1562
1485
|
|
|
1486
|
+
exports.Erc721Contract = void 0;
|
|
1487
|
+
((Erc721Contract2) => {
|
|
1488
|
+
((ercType2) => {
|
|
1489
|
+
ercType2["ERC_721"] = "ERC-721";
|
|
1490
|
+
})(Erc721Contract2.ercType || (Erc721Contract2.ercType = {}));
|
|
1491
|
+
})(exports.Erc721Contract || (exports.Erc721Contract = {}));
|
|
1492
|
+
|
|
1563
1493
|
exports.Erc721Token = void 0;
|
|
1564
1494
|
((Erc721Token2) => {
|
|
1565
1495
|
((ercType2) => {
|
|
@@ -1574,14 +1504,6 @@ exports.Erc721TokenBalance = void 0;
|
|
|
1574
1504
|
})(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
|
|
1575
1505
|
})(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
|
|
1576
1506
|
|
|
1577
|
-
var ErcType = /* @__PURE__ */ ((ErcType2) => {
|
|
1578
|
-
ErcType2["ERC_20"] = "ERC-20";
|
|
1579
|
-
ErcType2["ERC_721"] = "ERC-721";
|
|
1580
|
-
ErcType2["ERC_1155"] = "ERC-1155";
|
|
1581
|
-
ErcType2["UNKNOWN"] = "UNKNOWN";
|
|
1582
|
-
return ErcType2;
|
|
1583
|
-
})(ErcType || {});
|
|
1584
|
-
|
|
1585
1507
|
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
1586
1508
|
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
1587
1509
|
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
@@ -1742,12 +1664,12 @@ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
|
1742
1664
|
return TransactionStatus2;
|
|
1743
1665
|
})(TransactionStatus || {});
|
|
1744
1666
|
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
})(
|
|
1667
|
+
exports.UnknownContract = void 0;
|
|
1668
|
+
((UnknownContract2) => {
|
|
1669
|
+
((ercType2) => {
|
|
1670
|
+
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
1671
|
+
})(UnknownContract2.ercType || (UnknownContract2.ercType = {}));
|
|
1672
|
+
})(exports.UnknownContract || (exports.UnknownContract = {}));
|
|
1751
1673
|
|
|
1752
1674
|
var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
|
|
1753
1675
|
UtxoType2["STAKE"] = "STAKE";
|
|
@@ -1757,6 +1679,8 @@ var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
|
|
|
1757
1679
|
|
|
1758
1680
|
var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
1759
1681
|
ValidationStatusType2["COMPLETED"] = "completed";
|
|
1682
|
+
ValidationStatusType2["ACTIVE"] = "active";
|
|
1683
|
+
ValidationStatusType2["PENDING"] = "pending";
|
|
1760
1684
|
return ValidationStatusType2;
|
|
1761
1685
|
})(ValidationStatusType || {});
|
|
1762
1686
|
|
|
@@ -1797,11 +1721,8 @@ exports.BlockchainIds = BlockchainIds;
|
|
|
1797
1721
|
exports.CancelError = CancelError;
|
|
1798
1722
|
exports.CancelablePromise = CancelablePromise;
|
|
1799
1723
|
exports.ChainStatus = ChainStatus;
|
|
1800
|
-
exports.CollectionSortByOption = CollectionSortByOption;
|
|
1801
1724
|
exports.CurrencyCode = CurrencyCode;
|
|
1802
|
-
exports.DefaultService = DefaultService;
|
|
1803
1725
|
exports.DelegationStatusType = DelegationStatusType;
|
|
1804
|
-
exports.ErcType = ErcType;
|
|
1805
1726
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1806
1727
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1807
1728
|
exports.EvmChainsService = EvmChainsService;
|
|
@@ -1811,7 +1732,6 @@ exports.HealthCheckService = HealthCheckService;
|
|
|
1811
1732
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1812
1733
|
exports.Network = Network;
|
|
1813
1734
|
exports.NetworkType = NetworkType;
|
|
1814
|
-
exports.NfTsService = NfTsService;
|
|
1815
1735
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1816
1736
|
exports.OpenAPI = OpenAPI;
|
|
1817
1737
|
exports.OperationStatus = OperationStatus;
|
|
@@ -1835,7 +1755,6 @@ exports.RewardType = RewardType;
|
|
|
1835
1755
|
exports.SortOrder = SortOrder;
|
|
1836
1756
|
exports.TransactionMethodType = TransactionMethodType;
|
|
1837
1757
|
exports.TransactionStatus = TransactionStatus;
|
|
1838
|
-
exports.TrendingTimeframe = TrendingTimeframe;
|
|
1839
1758
|
exports.UtxoType = UtxoType;
|
|
1840
1759
|
exports.ValidationStatusType = ValidationStatusType;
|
|
1841
1760
|
exports.VmName = VmName;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
2
2
|
import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
3
|
-
import { DefaultService } from './services/DefaultService.js';
|
|
4
3
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
5
4
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
6
5
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
7
6
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
8
7
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
9
|
-
import { NfTsService } from './services/NfTsService.js';
|
|
10
8
|
import { OperationsService } from './services/OperationsService.js';
|
|
11
9
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
12
10
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -18,13 +16,11 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
|
|
|
18
16
|
|
|
19
17
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
20
18
|
declare class Glacier {
|
|
21
|
-
readonly default: DefaultService;
|
|
22
19
|
readonly evmBalances: EvmBalancesService;
|
|
23
20
|
readonly evmBlocks: EvmBlocksService;
|
|
24
21
|
readonly evmChains: EvmChainsService;
|
|
25
22
|
readonly evmTransactions: EvmTransactionsService;
|
|
26
23
|
readonly healthCheck: HealthCheckService;
|
|
27
|
-
readonly nfTs: NfTsService;
|
|
28
24
|
readonly operations: OperationsService;
|
|
29
25
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
30
26
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
2
|
-
import { DefaultService } from './services/DefaultService.js';
|
|
3
2
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
3
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
4
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
5
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
7
6
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
8
|
-
import { NfTsService } from './services/NfTsService.js';
|
|
9
7
|
import { OperationsService } from './services/OperationsService.js';
|
|
10
8
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
11
9
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -19,7 +17,7 @@ class Glacier {
|
|
|
19
17
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
20
18
|
var _a, _b, _c, _d;
|
|
21
19
|
this.request = new HttpRequest({
|
|
22
|
-
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api.avax.network",
|
|
20
|
+
BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api-dev.avax.network",
|
|
23
21
|
VERSION: (_b = config == null ? void 0 : config.VERSION) != null ? _b : "Beta",
|
|
24
22
|
WITH_CREDENTIALS: (_c = config == null ? void 0 : config.WITH_CREDENTIALS) != null ? _c : false,
|
|
25
23
|
CREDENTIALS: (_d = config == null ? void 0 : config.CREDENTIALS) != null ? _d : "include",
|
|
@@ -29,13 +27,11 @@ class Glacier {
|
|
|
29
27
|
HEADERS: config == null ? void 0 : config.HEADERS,
|
|
30
28
|
ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
|
|
31
29
|
});
|
|
32
|
-
this.default = new DefaultService(this.request);
|
|
33
30
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
34
31
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
35
32
|
this.evmChains = new EvmChainsService(this.request);
|
|
36
33
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
37
34
|
this.healthCheck = new HealthCheckService(this.request);
|
|
38
|
-
this.nfTs = new NfTsService(this.request);
|
|
39
35
|
this.operations = new OperationsService(this.request);
|
|
40
36
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
41
37
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
+
|
|
3
|
+
type ActiveDelegatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
rewardAddresses: Array<string>;
|
|
6
|
+
amountDelegated: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
delegationStatus: DelegationStatusType;
|
|
11
|
+
estimatedGrossReward: string;
|
|
12
|
+
estimatedNetReward: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ActiveDelegatorDetails };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Rewards } from './Rewards.js';
|
|
2
|
+
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
|
+
|
|
4
|
+
type ActiveValidatorDetails = {
|
|
5
|
+
nodeId: string;
|
|
6
|
+
amountStaked: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
validationStatus: ValidationStatusType;
|
|
11
|
+
stakePercentage: number;
|
|
12
|
+
delegatorCount: number;
|
|
13
|
+
amountDelegated: string;
|
|
14
|
+
uptimePerformance: number;
|
|
15
|
+
avalancheGoVersion: string;
|
|
16
|
+
delegationCapacity: string;
|
|
17
|
+
potentialRewards: Rewards;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ActiveValidatorDetails };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
|
|
2
2
|
DelegationStatusType2["COMPLETED"] = "completed";
|
|
3
|
+
DelegationStatusType2["ACTIVE"] = "active";
|
|
4
|
+
DelegationStatusType2["PENDING"] = "pending";
|
|
3
5
|
return DelegationStatusType2;
|
|
4
6
|
})(DelegationStatusType || {});
|
|
5
7
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type Erc1155Contract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc1155Contract.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The contract symbol.
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
declare namespace Erc1155Contract {
|
|
31
|
+
enum ercType {
|
|
32
|
+
ERC_1155 = "ERC-1155"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Erc1155Contract };
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
3
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type Erc20Contract = {
|
|
6
6
|
/**
|
|
7
7
|
* The contract name.
|
|
8
8
|
*/
|
|
9
9
|
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc20Contract.ercType;
|
|
10
25
|
/**
|
|
11
26
|
* The contract symbol.
|
|
12
27
|
*/
|
|
@@ -14,24 +29,12 @@ type Contract = {
|
|
|
14
29
|
/**
|
|
15
30
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
16
31
|
*/
|
|
17
|
-
decimals
|
|
18
|
-
/**
|
|
19
|
-
* The logo uri for the address.
|
|
20
|
-
*/
|
|
21
|
-
logoUri?: string;
|
|
22
|
-
/**
|
|
23
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
24
|
-
*/
|
|
25
|
-
address: string;
|
|
26
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
27
|
-
description?: string;
|
|
28
|
-
ercType?: ErcType;
|
|
29
|
-
officialSite?: string;
|
|
30
|
-
tags?: Array<string>;
|
|
31
|
-
email?: string;
|
|
32
|
-
bannerUri?: string;
|
|
33
|
-
color?: string;
|
|
34
|
-
resourceLinks?: Array<ResourceLink>;
|
|
32
|
+
decimals: number;
|
|
35
33
|
};
|
|
34
|
+
declare namespace Erc20Contract {
|
|
35
|
+
enum ercType {
|
|
36
|
+
ERC_20 = "ERC-20"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
36
39
|
|
|
37
|
-
export {
|
|
40
|
+
export { Erc20Contract };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type Erc721Contract = {
|
|
6
|
+
/**
|
|
7
|
+
* The contract name.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
officialSite?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
logoAsset?: ImageAsset;
|
|
14
|
+
bannerAsset?: ImageAsset;
|
|
15
|
+
color?: string;
|
|
16
|
+
coingeckoCoinId?: string;
|
|
17
|
+
resourceLinks?: Array<ResourceLink>;
|
|
18
|
+
tags?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
24
|
+
ercType: Erc721Contract.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The contract symbol.
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
declare namespace Erc721Contract {
|
|
31
|
+
enum ercType {
|
|
32
|
+
ERC_721 = "ERC-721"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Erc721Contract };
|