@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.ec0cd0f.0
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 +370 -204
- package/dist/index.js +127 -7
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +13 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +8 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.js +1 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +8 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/services/EvmContractsService.d.ts +29 -0
- package/esm/generated/services/EvmContractsService.js +20 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +30 -10
- package/esm/generated/services/PrimaryNetworkService.js +16 -6
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +4 -0
- package/esm/index.js +8 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -524,6 +524,25 @@ class EvmChainsService {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
+
class EvmContractsService {
|
|
528
|
+
constructor(httpRequest) {
|
|
529
|
+
this.httpRequest = httpRequest;
|
|
530
|
+
}
|
|
531
|
+
getContractMetadata({
|
|
532
|
+
chainId,
|
|
533
|
+
address
|
|
534
|
+
}) {
|
|
535
|
+
return this.httpRequest.request({
|
|
536
|
+
method: "GET",
|
|
537
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
538
|
+
path: {
|
|
539
|
+
"chainId": chainId,
|
|
540
|
+
"address": address
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
527
546
|
class EvmTransactionsService {
|
|
528
547
|
constructor(httpRequest) {
|
|
529
548
|
this.httpRequest = httpRequest;
|
|
@@ -553,7 +572,7 @@ class EvmTransactionsService {
|
|
|
553
572
|
}) {
|
|
554
573
|
return this.httpRequest.request({
|
|
555
574
|
method: "GET",
|
|
556
|
-
url: "/v1/chains/{chainId}/
|
|
575
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
557
576
|
path: {
|
|
558
577
|
"chainId": chainId,
|
|
559
578
|
"address": address
|
|
@@ -789,6 +808,42 @@ class HealthCheckService {
|
|
|
789
808
|
}
|
|
790
809
|
}
|
|
791
810
|
|
|
811
|
+
class NfTsService {
|
|
812
|
+
constructor(httpRequest) {
|
|
813
|
+
this.httpRequest = httpRequest;
|
|
814
|
+
}
|
|
815
|
+
reindexNft({
|
|
816
|
+
chainId,
|
|
817
|
+
address,
|
|
818
|
+
tokenId
|
|
819
|
+
}) {
|
|
820
|
+
return this.httpRequest.request({
|
|
821
|
+
method: "POST",
|
|
822
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
823
|
+
path: {
|
|
824
|
+
"chainId": chainId,
|
|
825
|
+
"address": address,
|
|
826
|
+
"tokenId": tokenId
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
getTokenDetails({
|
|
831
|
+
chainId,
|
|
832
|
+
address,
|
|
833
|
+
tokenId
|
|
834
|
+
}) {
|
|
835
|
+
return this.httpRequest.request({
|
|
836
|
+
method: "GET",
|
|
837
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
838
|
+
path: {
|
|
839
|
+
"chainId": chainId,
|
|
840
|
+
"address": address,
|
|
841
|
+
"tokenId": tokenId
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
792
847
|
class OperationsService {
|
|
793
848
|
constructor(httpRequest) {
|
|
794
849
|
this.httpRequest = httpRequest;
|
|
@@ -903,10 +958,15 @@ class PrimaryNetworkService {
|
|
|
903
958
|
network,
|
|
904
959
|
pageSize = 10,
|
|
905
960
|
pageToken,
|
|
961
|
+
minTimeRemaining,
|
|
962
|
+
maxTimeRemaining,
|
|
963
|
+
minDelegationCapacity,
|
|
964
|
+
maxDelegationCapacity,
|
|
965
|
+
minFeePercentage,
|
|
966
|
+
maxFeePercentage,
|
|
906
967
|
nodeIds,
|
|
907
968
|
sortOrder,
|
|
908
|
-
validationStatus
|
|
909
|
-
minDelegationCapacity
|
|
969
|
+
validationStatus
|
|
910
970
|
}) {
|
|
911
971
|
return this.httpRequest.request({
|
|
912
972
|
method: "GET",
|
|
@@ -917,10 +977,15 @@ class PrimaryNetworkService {
|
|
|
917
977
|
query: {
|
|
918
978
|
"pageSize": pageSize,
|
|
919
979
|
"pageToken": pageToken,
|
|
980
|
+
"minTimeRemaining": minTimeRemaining,
|
|
981
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
982
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
983
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
984
|
+
"minFeePercentage": minFeePercentage,
|
|
985
|
+
"maxFeePercentage": maxFeePercentage,
|
|
920
986
|
"nodeIds": nodeIds,
|
|
921
987
|
"sortOrder": sortOrder,
|
|
922
|
-
"validationStatus": validationStatus
|
|
923
|
-
"minDelegationCapacity": minDelegationCapacity
|
|
988
|
+
"validationStatus": validationStatus
|
|
924
989
|
}
|
|
925
990
|
});
|
|
926
991
|
}
|
|
@@ -951,9 +1016,9 @@ class PrimaryNetworkService {
|
|
|
951
1016
|
network,
|
|
952
1017
|
pageSize = 10,
|
|
953
1018
|
pageToken,
|
|
1019
|
+
rewardAddresses,
|
|
954
1020
|
sortOrder,
|
|
955
1021
|
delegationStatus,
|
|
956
|
-
rewardAddresses,
|
|
957
1022
|
nodeIds
|
|
958
1023
|
}) {
|
|
959
1024
|
return this.httpRequest.request({
|
|
@@ -965,9 +1030,9 @@ class PrimaryNetworkService {
|
|
|
965
1030
|
query: {
|
|
966
1031
|
"pageSize": pageSize,
|
|
967
1032
|
"pageToken": pageToken,
|
|
1033
|
+
"rewardAddresses": rewardAddresses,
|
|
968
1034
|
"sortOrder": sortOrder,
|
|
969
1035
|
"delegationStatus": delegationStatus,
|
|
970
|
-
"rewardAddresses": rewardAddresses,
|
|
971
1036
|
"nodeIds": nodeIds
|
|
972
1037
|
}
|
|
973
1038
|
});
|
|
@@ -1069,6 +1134,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1069
1134
|
addresses,
|
|
1070
1135
|
pageSize = 10,
|
|
1071
1136
|
pageToken,
|
|
1137
|
+
nodeIds,
|
|
1072
1138
|
sortOrder
|
|
1073
1139
|
}) {
|
|
1074
1140
|
return this.httpRequest.request({
|
|
@@ -1081,6 +1147,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1081
1147
|
"addresses": addresses,
|
|
1082
1148
|
"pageSize": pageSize,
|
|
1083
1149
|
"pageToken": pageToken,
|
|
1150
|
+
"nodeIds": nodeIds,
|
|
1084
1151
|
"sortOrder": sortOrder
|
|
1085
1152
|
}
|
|
1086
1153
|
});
|
|
@@ -1090,6 +1157,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1090
1157
|
addresses,
|
|
1091
1158
|
pageSize = 10,
|
|
1092
1159
|
pageToken,
|
|
1160
|
+
nodeIds,
|
|
1093
1161
|
sortOrder
|
|
1094
1162
|
}) {
|
|
1095
1163
|
return this.httpRequest.request({
|
|
@@ -1102,6 +1170,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1102
1170
|
"addresses": addresses,
|
|
1103
1171
|
"pageSize": pageSize,
|
|
1104
1172
|
"pageToken": pageToken,
|
|
1173
|
+
"nodeIds": nodeIds,
|
|
1105
1174
|
"sortOrder": sortOrder
|
|
1106
1175
|
}
|
|
1107
1176
|
});
|
|
@@ -1314,8 +1383,10 @@ class Glacier {
|
|
|
1314
1383
|
evmBalances;
|
|
1315
1384
|
evmBlocks;
|
|
1316
1385
|
evmChains;
|
|
1386
|
+
evmContracts;
|
|
1317
1387
|
evmTransactions;
|
|
1318
1388
|
healthCheck;
|
|
1389
|
+
nfTs;
|
|
1319
1390
|
operations;
|
|
1320
1391
|
primaryNetwork;
|
|
1321
1392
|
primaryNetworkBalances;
|
|
@@ -1340,8 +1411,10 @@ class Glacier {
|
|
|
1340
1411
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1341
1412
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1342
1413
|
this.evmChains = new EvmChainsService(this.request);
|
|
1414
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
1343
1415
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
1344
1416
|
this.healthCheck = new HealthCheckService(this.request);
|
|
1417
|
+
this.nfTs = new NfTsService(this.request);
|
|
1345
1418
|
this.operations = new OperationsService(this.request);
|
|
1346
1419
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
1347
1420
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1365,6 +1438,20 @@ const OpenAPI = {
|
|
|
1365
1438
|
ENCODE_PATH: void 0
|
|
1366
1439
|
};
|
|
1367
1440
|
|
|
1441
|
+
exports.ActiveDelegatorDetails = void 0;
|
|
1442
|
+
((ActiveDelegatorDetails2) => {
|
|
1443
|
+
((delegationStatus2) => {
|
|
1444
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
1445
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
1446
|
+
})(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
|
|
1447
|
+
|
|
1448
|
+
exports.ActiveValidatorDetails = void 0;
|
|
1449
|
+
((ActiveValidatorDetails2) => {
|
|
1450
|
+
((validationStatus2) => {
|
|
1451
|
+
validationStatus2["ACTIVE"] = "active";
|
|
1452
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
1453
|
+
})(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
|
|
1454
|
+
|
|
1368
1455
|
var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
|
|
1369
1456
|
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
1370
1457
|
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
@@ -1406,6 +1493,20 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
|
|
|
1406
1493
|
return ChainStatus2;
|
|
1407
1494
|
})(ChainStatus || {});
|
|
1408
1495
|
|
|
1496
|
+
exports.CompletedDelegatorDetails = void 0;
|
|
1497
|
+
((CompletedDelegatorDetails2) => {
|
|
1498
|
+
((delegationStatus2) => {
|
|
1499
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
1500
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
1501
|
+
})(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
|
|
1502
|
+
|
|
1503
|
+
exports.CompletedValidatorDetails = void 0;
|
|
1504
|
+
((CompletedValidatorDetails2) => {
|
|
1505
|
+
((validationStatus2) => {
|
|
1506
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
1507
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
1508
|
+
})(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
|
|
1509
|
+
|
|
1409
1510
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1410
1511
|
((CreateEvmTransactionExportRequest2) => {
|
|
1411
1512
|
((type2) => {
|
|
@@ -1577,6 +1678,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1577
1678
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1578
1679
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1579
1680
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1681
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1580
1682
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1581
1683
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1582
1684
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1589,6 +1691,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1589
1691
|
return PChainTransactionType2;
|
|
1590
1692
|
})(PChainTransactionType || {});
|
|
1591
1693
|
|
|
1694
|
+
exports.PendingDelegatorDetails = void 0;
|
|
1695
|
+
((PendingDelegatorDetails2) => {
|
|
1696
|
+
((delegationStatus2) => {
|
|
1697
|
+
delegationStatus2["PENDING"] = "pending";
|
|
1698
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
1699
|
+
})(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
|
|
1700
|
+
|
|
1701
|
+
exports.PendingValidatorDetails = void 0;
|
|
1702
|
+
((PendingValidatorDetails2) => {
|
|
1703
|
+
((validationStatus2) => {
|
|
1704
|
+
validationStatus2["PENDING"] = "pending";
|
|
1705
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
1706
|
+
})(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
|
|
1707
|
+
|
|
1592
1708
|
var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
|
|
1593
1709
|
PrimaryNetwork2["MAINNET"] = "mainnet";
|
|
1594
1710
|
PrimaryNetwork2["FUJI"] = "fuji";
|
|
@@ -1606,6 +1722,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1606
1722
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1607
1723
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1608
1724
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1725
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1609
1726
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1610
1727
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1611
1728
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1646,6 +1763,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
|
1646
1763
|
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
1647
1764
|
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
1648
1765
|
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
1766
|
+
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
1649
1767
|
return RewardType2;
|
|
1650
1768
|
})(RewardType || {});
|
|
1651
1769
|
|
|
@@ -1730,12 +1848,14 @@ exports.DelegationStatusType = DelegationStatusType;
|
|
|
1730
1848
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1731
1849
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1732
1850
|
exports.EvmChainsService = EvmChainsService;
|
|
1851
|
+
exports.EvmContractsService = EvmContractsService;
|
|
1733
1852
|
exports.EvmTransactionsService = EvmTransactionsService;
|
|
1734
1853
|
exports.Glacier = Glacier;
|
|
1735
1854
|
exports.HealthCheckService = HealthCheckService;
|
|
1736
1855
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1737
1856
|
exports.Network = Network;
|
|
1738
1857
|
exports.NetworkType = NetworkType;
|
|
1858
|
+
exports.NfTsService = NfTsService;
|
|
1739
1859
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1740
1860
|
exports.OpenAPI = OpenAPI;
|
|
1741
1861
|
exports.OperationStatus = OperationStatus;
|
|
@@ -3,8 +3,10 @@ import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
|
3
3
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
4
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
5
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
6
7
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
7
8
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
9
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
8
10
|
import { OperationsService } from './services/OperationsService.js';
|
|
9
11
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
10
12
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -19,8 +21,10 @@ declare class Glacier {
|
|
|
19
21
|
readonly evmBalances: EvmBalancesService;
|
|
20
22
|
readonly evmBlocks: EvmBlocksService;
|
|
21
23
|
readonly evmChains: EvmChainsService;
|
|
24
|
+
readonly evmContracts: EvmContractsService;
|
|
22
25
|
readonly evmTransactions: EvmTransactionsService;
|
|
23
26
|
readonly healthCheck: HealthCheckService;
|
|
27
|
+
readonly nfTs: NfTsService;
|
|
24
28
|
readonly operations: OperationsService;
|
|
25
29
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
26
30
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -2,8 +2,10 @@ import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
|
2
2
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
3
3
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
4
4
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
5
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
5
6
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
6
7
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
8
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
7
9
|
import { OperationsService } from './services/OperationsService.js';
|
|
8
10
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
9
11
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -17,8 +19,10 @@ class Glacier {
|
|
|
17
19
|
evmBalances;
|
|
18
20
|
evmBlocks;
|
|
19
21
|
evmChains;
|
|
22
|
+
evmContracts;
|
|
20
23
|
evmTransactions;
|
|
21
24
|
healthCheck;
|
|
25
|
+
nfTs;
|
|
22
26
|
operations;
|
|
23
27
|
primaryNetwork;
|
|
24
28
|
primaryNetworkBalances;
|
|
@@ -43,8 +47,10 @@ class Glacier {
|
|
|
43
47
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
44
48
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
45
49
|
this.evmChains = new EvmChainsService(this.request);
|
|
50
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
46
51
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
47
52
|
this.healthCheck = new HealthCheckService(this.request);
|
|
53
|
+
this.nfTs = new NfTsService(this.request);
|
|
48
54
|
this.operations = new OperationsService(this.request);
|
|
49
55
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
50
56
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type ActiveDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
5
4
|
rewardAddresses: Array<string>;
|
|
6
5
|
amountDelegated: string;
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
9
|
estimatedGrossReward: string;
|
|
12
10
|
estimatedNetReward: string;
|
|
11
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace ActiveDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
ACTIVE = "active"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export { ActiveDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ActiveDelegatorDetails;
|
|
2
|
+
((ActiveDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
5
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { ActiveDelegatorDetails };
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
|
|
3
3
|
|
|
4
4
|
type ActiveValidatorDetails = {
|
|
5
5
|
nodeId: string;
|
|
6
|
+
subnetId: string;
|
|
6
7
|
amountStaked: string;
|
|
7
|
-
delegationFee
|
|
8
|
+
delegationFee?: string;
|
|
8
9
|
startTimestamp: number;
|
|
9
10
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
11
|
stakePercentage: number;
|
|
12
12
|
delegatorCount: number;
|
|
13
|
-
amountDelegated
|
|
13
|
+
amountDelegated?: string;
|
|
14
14
|
uptimePerformance: number;
|
|
15
|
-
avalancheGoVersion
|
|
16
|
-
delegationCapacity
|
|
15
|
+
avalancheGoVersion?: string;
|
|
16
|
+
delegationCapacity?: string;
|
|
17
17
|
potentialRewards: Rewards;
|
|
18
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
19
|
+
validatorHealth: ValidatorHealthDetails;
|
|
18
20
|
};
|
|
21
|
+
declare namespace ActiveValidatorDetails {
|
|
22
|
+
enum validationStatus {
|
|
23
|
+
ACTIVE = "active"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
19
26
|
|
|
20
27
|
export { ActiveValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ActiveValidatorDetails;
|
|
2
|
+
((ActiveValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["ACTIVE"] = "active";
|
|
5
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { ActiveValidatorDetails };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type CompletedDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
5
4
|
rewardAddresses: Array<string>;
|
|
6
5
|
amountDelegated: string;
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
9
|
grossReward: string;
|
|
12
10
|
netReward: string;
|
|
11
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace CompletedDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
COMPLETED = "completed"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export { CompletedDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedDelegatorDetails;
|
|
2
|
+
((CompletedDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedDelegatorDetails };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
2
|
|
|
4
3
|
type CompletedValidatorDetails = {
|
|
5
4
|
nodeId: string;
|
|
5
|
+
subnetId: string;
|
|
6
6
|
amountStaked: string;
|
|
7
|
-
delegationFee
|
|
7
|
+
delegationFee?: string;
|
|
8
8
|
startTimestamp: number;
|
|
9
9
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
10
|
delegatorCount: number;
|
|
12
11
|
rewards: Rewards;
|
|
12
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
13
13
|
};
|
|
14
|
+
declare namespace CompletedValidatorDetails {
|
|
15
|
+
enum validationStatus {
|
|
16
|
+
COMPLETED = "completed"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
|
|
15
20
|
export { CompletedValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedValidatorDetails;
|
|
2
|
+
((CompletedValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedValidatorDetails };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc1155Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc1155Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -26,6 +26,7 @@ type Erc1155Contract = {
|
|
|
26
26
|
* The contract symbol.
|
|
27
27
|
*/
|
|
28
28
|
symbol?: string;
|
|
29
|
+
pricingProviders?: PricingProviders;
|
|
29
30
|
};
|
|
30
31
|
declare namespace Erc1155Contract {
|
|
31
32
|
enum ercType {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc20Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc20Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -30,6 +30,7 @@ type Erc20Contract = {
|
|
|
30
30
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
31
31
|
*/
|
|
32
32
|
decimals: number;
|
|
33
|
+
pricingProviders?: PricingProviders;
|
|
33
34
|
};
|
|
34
35
|
declare namespace Erc20Contract {
|
|
35
36
|
enum ercType {
|
|
@@ -8,7 +8,7 @@ type ListContractsResponse = {
|
|
|
8
8
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
9
9
|
*/
|
|
10
10
|
nextPageToken?: string;
|
|
11
|
-
contracts: Array<(
|
|
11
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { ListContractsResponse };
|
|
@@ -2,6 +2,7 @@ declare enum PChainTransactionType {
|
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
3
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
4
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
5
6
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
7
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
8
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -2,6 +2,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
2
2
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
3
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
4
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
5
6
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
7
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
8
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
5
4
|
rewardAddresses: Array<string>;
|
|
6
5
|
amountDelegated: string;
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
9
|
estimatedGrossReward: string;
|
|
12
10
|
estimatedNetReward: string;
|
|
11
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace PendingDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
PENDING = "pending"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingDelegatorDetails;
|
|
2
|
+
((PendingDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingDelegatorDetails };
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingValidatorDetails = {
|
|
4
2
|
nodeId: string;
|
|
3
|
+
subnetId: string;
|
|
5
4
|
amountStaked: string;
|
|
6
|
-
delegationFee
|
|
5
|
+
delegationFee?: string;
|
|
7
6
|
startTimestamp: number;
|
|
8
7
|
endTimestamp: number;
|
|
9
|
-
validationStatus:
|
|
8
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
10
9
|
};
|
|
10
|
+
declare namespace PendingValidatorDetails {
|
|
11
|
+
enum validationStatus {
|
|
12
|
+
PENDING = "pending"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
|
|
12
16
|
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingValidatorDetails;
|
|
2
|
+
((PendingValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(PendingValidatorDetails || (PendingValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingValidatorDetails };
|