@avalabs/glacier-sdk 2.8.0-canary.906a6e3.0 → 2.8.0-canary.9469caf.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 +568 -275
- package/dist/index.js +187 -10
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -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/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.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/ImageAsset.d.ts +0 -3
- 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/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -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 -14
- package/esm/generated/services/PrimaryNetworkService.js +17 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +11 -0
- package/esm/index.js +13 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -345,6 +345,18 @@ class FetchHttpRequest extends BaseHttpRequest {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
+
class DefaultService {
|
|
349
|
+
constructor(httpRequest) {
|
|
350
|
+
this.httpRequest = httpRequest;
|
|
351
|
+
}
|
|
352
|
+
mediaControllerUploadImage() {
|
|
353
|
+
return this.httpRequest.request({
|
|
354
|
+
method: "POST",
|
|
355
|
+
url: "/v1/media/uploadImage"
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
348
360
|
class EvmBalancesService {
|
|
349
361
|
constructor(httpRequest) {
|
|
350
362
|
this.httpRequest = httpRequest;
|
|
@@ -524,6 +536,41 @@ class EvmChainsService {
|
|
|
524
536
|
}
|
|
525
537
|
}
|
|
526
538
|
|
|
539
|
+
class EvmContractsService {
|
|
540
|
+
constructor(httpRequest) {
|
|
541
|
+
this.httpRequest = httpRequest;
|
|
542
|
+
}
|
|
543
|
+
getContractMetadata({
|
|
544
|
+
chainId,
|
|
545
|
+
address
|
|
546
|
+
}) {
|
|
547
|
+
return this.httpRequest.request({
|
|
548
|
+
method: "GET",
|
|
549
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
550
|
+
path: {
|
|
551
|
+
"chainId": chainId,
|
|
552
|
+
"address": address
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
updateContractInfo({
|
|
557
|
+
chainId,
|
|
558
|
+
address,
|
|
559
|
+
requestBody
|
|
560
|
+
}) {
|
|
561
|
+
return this.httpRequest.request({
|
|
562
|
+
method: "PATCH",
|
|
563
|
+
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
564
|
+
path: {
|
|
565
|
+
"chainId": chainId,
|
|
566
|
+
"address": address
|
|
567
|
+
},
|
|
568
|
+
body: requestBody,
|
|
569
|
+
mediaType: "application/json"
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
527
574
|
class EvmTransactionsService {
|
|
528
575
|
constructor(httpRequest) {
|
|
529
576
|
this.httpRequest = httpRequest;
|
|
@@ -553,7 +600,7 @@ class EvmTransactionsService {
|
|
|
553
600
|
}) {
|
|
554
601
|
return this.httpRequest.request({
|
|
555
602
|
method: "GET",
|
|
556
|
-
url: "/v1/chains/{chainId}/
|
|
603
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
557
604
|
path: {
|
|
558
605
|
"chainId": chainId,
|
|
559
606
|
"address": address
|
|
@@ -789,6 +836,42 @@ class HealthCheckService {
|
|
|
789
836
|
}
|
|
790
837
|
}
|
|
791
838
|
|
|
839
|
+
class NfTsService {
|
|
840
|
+
constructor(httpRequest) {
|
|
841
|
+
this.httpRequest = httpRequest;
|
|
842
|
+
}
|
|
843
|
+
reindexNft({
|
|
844
|
+
chainId,
|
|
845
|
+
address,
|
|
846
|
+
tokenId
|
|
847
|
+
}) {
|
|
848
|
+
return this.httpRequest.request({
|
|
849
|
+
method: "POST",
|
|
850
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
851
|
+
path: {
|
|
852
|
+
"chainId": chainId,
|
|
853
|
+
"address": address,
|
|
854
|
+
"tokenId": tokenId
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
getTokenDetails({
|
|
859
|
+
chainId,
|
|
860
|
+
address,
|
|
861
|
+
tokenId
|
|
862
|
+
}) {
|
|
863
|
+
return this.httpRequest.request({
|
|
864
|
+
method: "GET",
|
|
865
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
866
|
+
path: {
|
|
867
|
+
"chainId": chainId,
|
|
868
|
+
"address": address,
|
|
869
|
+
"tokenId": tokenId
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
792
875
|
class OperationsService {
|
|
793
876
|
constructor(httpRequest) {
|
|
794
877
|
this.httpRequest = httpRequest;
|
|
@@ -903,10 +986,15 @@ class PrimaryNetworkService {
|
|
|
903
986
|
network,
|
|
904
987
|
pageSize = 10,
|
|
905
988
|
pageToken,
|
|
989
|
+
minTimeRemaining,
|
|
990
|
+
maxTimeRemaining,
|
|
991
|
+
minDelegationCapacity,
|
|
992
|
+
maxDelegationCapacity,
|
|
993
|
+
minFeePercentage,
|
|
994
|
+
maxFeePercentage,
|
|
906
995
|
nodeIds,
|
|
907
996
|
sortOrder,
|
|
908
|
-
validationStatus
|
|
909
|
-
minDelegationCapacity
|
|
997
|
+
validationStatus
|
|
910
998
|
}) {
|
|
911
999
|
return this.httpRequest.request({
|
|
912
1000
|
method: "GET",
|
|
@@ -917,10 +1005,15 @@ class PrimaryNetworkService {
|
|
|
917
1005
|
query: {
|
|
918
1006
|
"pageSize": pageSize,
|
|
919
1007
|
"pageToken": pageToken,
|
|
1008
|
+
"minTimeRemaining": minTimeRemaining,
|
|
1009
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
1010
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
1011
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
1012
|
+
"minFeePercentage": minFeePercentage,
|
|
1013
|
+
"maxFeePercentage": maxFeePercentage,
|
|
920
1014
|
"nodeIds": nodeIds,
|
|
921
1015
|
"sortOrder": sortOrder,
|
|
922
|
-
"validationStatus": validationStatus
|
|
923
|
-
"minDelegationCapacity": minDelegationCapacity
|
|
1016
|
+
"validationStatus": validationStatus
|
|
924
1017
|
}
|
|
925
1018
|
});
|
|
926
1019
|
}
|
|
@@ -949,27 +1042,25 @@ class PrimaryNetworkService {
|
|
|
949
1042
|
}
|
|
950
1043
|
listDelegators({
|
|
951
1044
|
network,
|
|
952
|
-
nodeId,
|
|
953
1045
|
pageSize = 10,
|
|
954
1046
|
pageToken,
|
|
1047
|
+
rewardAddresses,
|
|
955
1048
|
sortOrder,
|
|
956
1049
|
delegationStatus,
|
|
957
|
-
rewardAddresses,
|
|
958
1050
|
nodeIds
|
|
959
1051
|
}) {
|
|
960
1052
|
return this.httpRequest.request({
|
|
961
1053
|
method: "GET",
|
|
962
1054
|
url: "/v1/networks/{network}/delegators",
|
|
963
1055
|
path: {
|
|
964
|
-
"network": network
|
|
965
|
-
"nodeId": nodeId
|
|
1056
|
+
"network": network
|
|
966
1057
|
},
|
|
967
1058
|
query: {
|
|
968
1059
|
"pageSize": pageSize,
|
|
969
1060
|
"pageToken": pageToken,
|
|
1061
|
+
"rewardAddresses": rewardAddresses,
|
|
970
1062
|
"sortOrder": sortOrder,
|
|
971
1063
|
"delegationStatus": delegationStatus,
|
|
972
|
-
"rewardAddresses": rewardAddresses,
|
|
973
1064
|
"nodeIds": nodeIds
|
|
974
1065
|
}
|
|
975
1066
|
});
|
|
@@ -1071,6 +1162,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1071
1162
|
addresses,
|
|
1072
1163
|
pageSize = 10,
|
|
1073
1164
|
pageToken,
|
|
1165
|
+
nodeIds,
|
|
1074
1166
|
sortOrder
|
|
1075
1167
|
}) {
|
|
1076
1168
|
return this.httpRequest.request({
|
|
@@ -1083,6 +1175,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1083
1175
|
"addresses": addresses,
|
|
1084
1176
|
"pageSize": pageSize,
|
|
1085
1177
|
"pageToken": pageToken,
|
|
1178
|
+
"nodeIds": nodeIds,
|
|
1086
1179
|
"sortOrder": sortOrder
|
|
1087
1180
|
}
|
|
1088
1181
|
});
|
|
@@ -1092,6 +1185,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1092
1185
|
addresses,
|
|
1093
1186
|
pageSize = 10,
|
|
1094
1187
|
pageToken,
|
|
1188
|
+
nodeIds,
|
|
1095
1189
|
sortOrder
|
|
1096
1190
|
}) {
|
|
1097
1191
|
return this.httpRequest.request({
|
|
@@ -1104,6 +1198,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1104
1198
|
"addresses": addresses,
|
|
1105
1199
|
"pageSize": pageSize,
|
|
1106
1200
|
"pageToken": pageToken,
|
|
1201
|
+
"nodeIds": nodeIds,
|
|
1107
1202
|
"sortOrder": sortOrder
|
|
1108
1203
|
}
|
|
1109
1204
|
});
|
|
@@ -1313,11 +1408,14 @@ class PrimaryNetworkVerticesService {
|
|
|
1313
1408
|
}
|
|
1314
1409
|
|
|
1315
1410
|
class Glacier {
|
|
1411
|
+
default;
|
|
1316
1412
|
evmBalances;
|
|
1317
1413
|
evmBlocks;
|
|
1318
1414
|
evmChains;
|
|
1415
|
+
evmContracts;
|
|
1319
1416
|
evmTransactions;
|
|
1320
1417
|
healthCheck;
|
|
1418
|
+
nfTs;
|
|
1321
1419
|
operations;
|
|
1322
1420
|
primaryNetwork;
|
|
1323
1421
|
primaryNetworkBalances;
|
|
@@ -1339,11 +1437,14 @@ class Glacier {
|
|
|
1339
1437
|
HEADERS: config?.HEADERS,
|
|
1340
1438
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
1341
1439
|
});
|
|
1440
|
+
this.default = new DefaultService(this.request);
|
|
1342
1441
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1343
1442
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1344
1443
|
this.evmChains = new EvmChainsService(this.request);
|
|
1444
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
1345
1445
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
1346
1446
|
this.healthCheck = new HealthCheckService(this.request);
|
|
1447
|
+
this.nfTs = new NfTsService(this.request);
|
|
1347
1448
|
this.operations = new OperationsService(this.request);
|
|
1348
1449
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
1349
1450
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1367,6 +1468,20 @@ const OpenAPI = {
|
|
|
1367
1468
|
ENCODE_PATH: void 0
|
|
1368
1469
|
};
|
|
1369
1470
|
|
|
1471
|
+
exports.ActiveDelegatorDetails = void 0;
|
|
1472
|
+
((ActiveDelegatorDetails2) => {
|
|
1473
|
+
((delegationStatus2) => {
|
|
1474
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
1475
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
1476
|
+
})(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
|
|
1477
|
+
|
|
1478
|
+
exports.ActiveValidatorDetails = void 0;
|
|
1479
|
+
((ActiveValidatorDetails2) => {
|
|
1480
|
+
((validationStatus2) => {
|
|
1481
|
+
validationStatus2["ACTIVE"] = "active";
|
|
1482
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
1483
|
+
})(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
|
|
1484
|
+
|
|
1370
1485
|
var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
|
|
1371
1486
|
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
1372
1487
|
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
@@ -1408,6 +1523,48 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
|
|
|
1408
1523
|
return ChainStatus2;
|
|
1409
1524
|
})(ChainStatus || {});
|
|
1410
1525
|
|
|
1526
|
+
exports.CompletedDelegatorDetails = void 0;
|
|
1527
|
+
((CompletedDelegatorDetails2) => {
|
|
1528
|
+
((delegationStatus2) => {
|
|
1529
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
1530
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
1531
|
+
})(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
|
|
1532
|
+
|
|
1533
|
+
exports.CompletedValidatorDetails = void 0;
|
|
1534
|
+
((CompletedValidatorDetails2) => {
|
|
1535
|
+
((validationStatus2) => {
|
|
1536
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
1537
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
1538
|
+
})(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
|
|
1539
|
+
|
|
1540
|
+
exports.ContractSubmissionErc1155 = void 0;
|
|
1541
|
+
((ContractSubmissionErc11552) => {
|
|
1542
|
+
((ercType2) => {
|
|
1543
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
1544
|
+
})(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
|
|
1545
|
+
})(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
|
|
1546
|
+
|
|
1547
|
+
exports.ContractSubmissionErc20 = void 0;
|
|
1548
|
+
((ContractSubmissionErc202) => {
|
|
1549
|
+
((ercType2) => {
|
|
1550
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
1551
|
+
})(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
|
|
1552
|
+
})(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
|
|
1553
|
+
|
|
1554
|
+
exports.ContractSubmissionErc721 = void 0;
|
|
1555
|
+
((ContractSubmissionErc7212) => {
|
|
1556
|
+
((ercType2) => {
|
|
1557
|
+
ercType2["ERC_721"] = "ERC-721";
|
|
1558
|
+
})(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
|
|
1559
|
+
})(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
|
|
1560
|
+
|
|
1561
|
+
exports.ContractSubmissionUnknown = void 0;
|
|
1562
|
+
((ContractSubmissionUnknown2) => {
|
|
1563
|
+
((ercType2) => {
|
|
1564
|
+
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
1565
|
+
})(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
|
|
1566
|
+
})(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
|
|
1567
|
+
|
|
1411
1568
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1412
1569
|
((CreateEvmTransactionExportRequest2) => {
|
|
1413
1570
|
((type2) => {
|
|
@@ -1579,6 +1736,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1579
1736
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1580
1737
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1581
1738
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1739
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1582
1740
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1583
1741
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1584
1742
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1591,6 +1749,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1591
1749
|
return PChainTransactionType2;
|
|
1592
1750
|
})(PChainTransactionType || {});
|
|
1593
1751
|
|
|
1752
|
+
exports.PendingDelegatorDetails = void 0;
|
|
1753
|
+
((PendingDelegatorDetails2) => {
|
|
1754
|
+
((delegationStatus2) => {
|
|
1755
|
+
delegationStatus2["PENDING"] = "pending";
|
|
1756
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
1757
|
+
})(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
|
|
1758
|
+
|
|
1759
|
+
exports.PendingValidatorDetails = void 0;
|
|
1760
|
+
((PendingValidatorDetails2) => {
|
|
1761
|
+
((validationStatus2) => {
|
|
1762
|
+
validationStatus2["PENDING"] = "pending";
|
|
1763
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
1764
|
+
})(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
|
|
1765
|
+
|
|
1594
1766
|
var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
|
|
1595
1767
|
PrimaryNetwork2["MAINNET"] = "mainnet";
|
|
1596
1768
|
PrimaryNetwork2["FUJI"] = "fuji";
|
|
@@ -1608,6 +1780,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1608
1780
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1609
1781
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1610
1782
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1783
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1611
1784
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1612
1785
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1613
1786
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1648,6 +1821,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
|
1648
1821
|
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
1649
1822
|
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
1650
1823
|
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
1824
|
+
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
1651
1825
|
return RewardType2;
|
|
1652
1826
|
})(RewardType || {});
|
|
1653
1827
|
|
|
@@ -1728,16 +1902,19 @@ exports.CancelError = CancelError;
|
|
|
1728
1902
|
exports.CancelablePromise = CancelablePromise;
|
|
1729
1903
|
exports.ChainStatus = ChainStatus;
|
|
1730
1904
|
exports.CurrencyCode = CurrencyCode;
|
|
1905
|
+
exports.DefaultService = DefaultService;
|
|
1731
1906
|
exports.DelegationStatusType = DelegationStatusType;
|
|
1732
1907
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1733
1908
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1734
1909
|
exports.EvmChainsService = EvmChainsService;
|
|
1910
|
+
exports.EvmContractsService = EvmContractsService;
|
|
1735
1911
|
exports.EvmTransactionsService = EvmTransactionsService;
|
|
1736
1912
|
exports.Glacier = Glacier;
|
|
1737
1913
|
exports.HealthCheckService = HealthCheckService;
|
|
1738
1914
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1739
1915
|
exports.Network = Network;
|
|
1740
1916
|
exports.NetworkType = NetworkType;
|
|
1917
|
+
exports.NfTsService = NfTsService;
|
|
1741
1918
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1742
1919
|
exports.OpenAPI = OpenAPI;
|
|
1743
1920
|
exports.OperationStatus = OperationStatus;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
2
2
|
import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
3
|
+
import { DefaultService } from './services/DefaultService.js';
|
|
3
4
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
5
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
6
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
7
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
6
8
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
7
9
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
10
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
8
11
|
import { OperationsService } from './services/OperationsService.js';
|
|
9
12
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
10
13
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -16,11 +19,14 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
|
|
|
16
19
|
|
|
17
20
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
18
21
|
declare class Glacier {
|
|
22
|
+
readonly default: DefaultService;
|
|
19
23
|
readonly evmBalances: EvmBalancesService;
|
|
20
24
|
readonly evmBlocks: EvmBlocksService;
|
|
21
25
|
readonly evmChains: EvmChainsService;
|
|
26
|
+
readonly evmContracts: EvmContractsService;
|
|
22
27
|
readonly evmTransactions: EvmTransactionsService;
|
|
23
28
|
readonly healthCheck: HealthCheckService;
|
|
29
|
+
readonly nfTs: NfTsService;
|
|
24
30
|
readonly operations: OperationsService;
|
|
25
31
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
26
32
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
2
|
+
import { DefaultService } from './services/DefaultService.js';
|
|
2
3
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
3
4
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
4
5
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
5
7
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
6
8
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
9
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
7
10
|
import { OperationsService } from './services/OperationsService.js';
|
|
8
11
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
9
12
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -14,11 +17,14 @@ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsServic
|
|
|
14
17
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
15
18
|
|
|
16
19
|
class Glacier {
|
|
20
|
+
default;
|
|
17
21
|
evmBalances;
|
|
18
22
|
evmBlocks;
|
|
19
23
|
evmChains;
|
|
24
|
+
evmContracts;
|
|
20
25
|
evmTransactions;
|
|
21
26
|
healthCheck;
|
|
27
|
+
nfTs;
|
|
22
28
|
operations;
|
|
23
29
|
primaryNetwork;
|
|
24
30
|
primaryNetworkBalances;
|
|
@@ -40,11 +46,14 @@ class Glacier {
|
|
|
40
46
|
HEADERS: config?.HEADERS,
|
|
41
47
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
42
48
|
});
|
|
49
|
+
this.default = new DefaultService(this.request);
|
|
43
50
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
44
51
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
45
52
|
this.evmChains = new EvmChainsService(this.request);
|
|
53
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
46
54
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
47
55
|
this.healthCheck = new HealthCheckService(this.request);
|
|
56
|
+
this.nfTs = new NfTsService(this.request);
|
|
48
57
|
this.operations = new OperationsService(this.request);
|
|
49
58
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
50
59
|
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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
|
|
2
|
+
import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
|
|
3
|
+
import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
|
|
4
|
+
import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
|
|
5
|
+
|
|
6
|
+
type ContractSubmissionBody = {
|
|
7
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ContractSubmissionBody };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc1155 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc1155 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_1155 = "ERC-1155"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc1155;
|
|
2
|
+
((ContractSubmissionErc11552) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
5
|
+
})(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc20 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc20 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_20 = "ERC-20"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc20 };
|