@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.e5344d2.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 +710 -227
- package/dist/index.js +278 -11
- 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 +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -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 +9 -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/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- 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 +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -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/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +59 -0
- package/esm/generated/services/DefaultService.js +49 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +20 -0
- package/esm/index.js +17 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -345,6 +345,54 @@ 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
|
+
registerWebhook({
|
|
359
|
+
requestBody
|
|
360
|
+
}) {
|
|
361
|
+
return this.httpRequest.request({
|
|
362
|
+
method: "POST",
|
|
363
|
+
url: "/v1/webhooks",
|
|
364
|
+
body: requestBody,
|
|
365
|
+
mediaType: "application/json"
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
listWebhooks({
|
|
369
|
+
pageSize = 10,
|
|
370
|
+
pageToken,
|
|
371
|
+
status
|
|
372
|
+
}) {
|
|
373
|
+
return this.httpRequest.request({
|
|
374
|
+
method: "GET",
|
|
375
|
+
url: "/v1/webhooks",
|
|
376
|
+
query: {
|
|
377
|
+
"pageSize": pageSize,
|
|
378
|
+
"pageToken": pageToken,
|
|
379
|
+
"status": status
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
deactivateWebhook({
|
|
384
|
+
id
|
|
385
|
+
}) {
|
|
386
|
+
return this.httpRequest.request({
|
|
387
|
+
method: "DELETE",
|
|
388
|
+
url: "/v1/webhooks/{id}",
|
|
389
|
+
path: {
|
|
390
|
+
"id": id
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
348
396
|
class EvmBalancesService {
|
|
349
397
|
constructor(httpRequest) {
|
|
350
398
|
this.httpRequest = httpRequest;
|
|
@@ -524,6 +572,41 @@ class EvmChainsService {
|
|
|
524
572
|
}
|
|
525
573
|
}
|
|
526
574
|
|
|
575
|
+
class EvmContractsService {
|
|
576
|
+
constructor(httpRequest) {
|
|
577
|
+
this.httpRequest = httpRequest;
|
|
578
|
+
}
|
|
579
|
+
getContractMetadata({
|
|
580
|
+
chainId,
|
|
581
|
+
address
|
|
582
|
+
}) {
|
|
583
|
+
return this.httpRequest.request({
|
|
584
|
+
method: "GET",
|
|
585
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
586
|
+
path: {
|
|
587
|
+
"chainId": chainId,
|
|
588
|
+
"address": address
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
updateContractInfo({
|
|
593
|
+
chainId,
|
|
594
|
+
address,
|
|
595
|
+
requestBody
|
|
596
|
+
}) {
|
|
597
|
+
return this.httpRequest.request({
|
|
598
|
+
method: "PATCH",
|
|
599
|
+
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
600
|
+
path: {
|
|
601
|
+
"chainId": chainId,
|
|
602
|
+
"address": address
|
|
603
|
+
},
|
|
604
|
+
body: requestBody,
|
|
605
|
+
mediaType: "application/json"
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
527
610
|
class EvmTransactionsService {
|
|
528
611
|
constructor(httpRequest) {
|
|
529
612
|
this.httpRequest = httpRequest;
|
|
@@ -553,7 +636,7 @@ class EvmTransactionsService {
|
|
|
553
636
|
}) {
|
|
554
637
|
return this.httpRequest.request({
|
|
555
638
|
method: "GET",
|
|
556
|
-
url: "/v1/chains/{chainId}/
|
|
639
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
557
640
|
path: {
|
|
558
641
|
"chainId": chainId,
|
|
559
642
|
"address": address
|
|
@@ -789,20 +872,65 @@ class HealthCheckService {
|
|
|
789
872
|
}
|
|
790
873
|
}
|
|
791
874
|
|
|
792
|
-
class
|
|
875
|
+
class NfTsService {
|
|
793
876
|
constructor(httpRequest) {
|
|
794
877
|
this.httpRequest = httpRequest;
|
|
795
878
|
}
|
|
796
|
-
|
|
797
|
-
|
|
879
|
+
reindexNft({
|
|
880
|
+
chainId,
|
|
881
|
+
address,
|
|
882
|
+
tokenId
|
|
798
883
|
}) {
|
|
799
884
|
return this.httpRequest.request({
|
|
800
885
|
method: "POST",
|
|
801
|
-
url: "/v1/
|
|
802
|
-
|
|
803
|
-
|
|
886
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
887
|
+
path: {
|
|
888
|
+
"chainId": chainId,
|
|
889
|
+
"address": address,
|
|
890
|
+
"tokenId": tokenId
|
|
891
|
+
}
|
|
804
892
|
});
|
|
805
893
|
}
|
|
894
|
+
listTokens({
|
|
895
|
+
chainId,
|
|
896
|
+
address,
|
|
897
|
+
pageSize = 10,
|
|
898
|
+
pageToken
|
|
899
|
+
}) {
|
|
900
|
+
return this.httpRequest.request({
|
|
901
|
+
method: "GET",
|
|
902
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
903
|
+
path: {
|
|
904
|
+
"chainId": chainId,
|
|
905
|
+
"address": address
|
|
906
|
+
},
|
|
907
|
+
query: {
|
|
908
|
+
"pageSize": pageSize,
|
|
909
|
+
"pageToken": pageToken
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
getTokenDetails({
|
|
914
|
+
chainId,
|
|
915
|
+
address,
|
|
916
|
+
tokenId
|
|
917
|
+
}) {
|
|
918
|
+
return this.httpRequest.request({
|
|
919
|
+
method: "GET",
|
|
920
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
921
|
+
path: {
|
|
922
|
+
"chainId": chainId,
|
|
923
|
+
"address": address,
|
|
924
|
+
"tokenId": tokenId
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
class OperationsService {
|
|
931
|
+
constructor(httpRequest) {
|
|
932
|
+
this.httpRequest = httpRequest;
|
|
933
|
+
}
|
|
806
934
|
getOperationResult({
|
|
807
935
|
operationId
|
|
808
936
|
}) {
|
|
@@ -814,6 +942,16 @@ class OperationsService {
|
|
|
814
942
|
}
|
|
815
943
|
});
|
|
816
944
|
}
|
|
945
|
+
postTransactionExportJob({
|
|
946
|
+
requestBody
|
|
947
|
+
}) {
|
|
948
|
+
return this.httpRequest.request({
|
|
949
|
+
method: "POST",
|
|
950
|
+
url: "/v1/operations/transactions:export",
|
|
951
|
+
body: requestBody,
|
|
952
|
+
mediaType: "application/json"
|
|
953
|
+
});
|
|
954
|
+
}
|
|
817
955
|
}
|
|
818
956
|
|
|
819
957
|
class PrimaryNetworkService {
|
|
@@ -903,10 +1041,16 @@ class PrimaryNetworkService {
|
|
|
903
1041
|
network,
|
|
904
1042
|
pageSize = 10,
|
|
905
1043
|
pageToken,
|
|
1044
|
+
minTimeRemaining,
|
|
1045
|
+
maxTimeRemaining,
|
|
1046
|
+
minDelegationCapacity,
|
|
1047
|
+
maxDelegationCapacity,
|
|
1048
|
+
minFeePercentage,
|
|
1049
|
+
maxFeePercentage,
|
|
906
1050
|
nodeIds,
|
|
907
1051
|
sortOrder,
|
|
908
1052
|
validationStatus,
|
|
909
|
-
|
|
1053
|
+
subnetId
|
|
910
1054
|
}) {
|
|
911
1055
|
return this.httpRequest.request({
|
|
912
1056
|
method: "GET",
|
|
@@ -917,10 +1061,16 @@ class PrimaryNetworkService {
|
|
|
917
1061
|
query: {
|
|
918
1062
|
"pageSize": pageSize,
|
|
919
1063
|
"pageToken": pageToken,
|
|
1064
|
+
"minTimeRemaining": minTimeRemaining,
|
|
1065
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
1066
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
1067
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
1068
|
+
"minFeePercentage": minFeePercentage,
|
|
1069
|
+
"maxFeePercentage": maxFeePercentage,
|
|
920
1070
|
"nodeIds": nodeIds,
|
|
921
1071
|
"sortOrder": sortOrder,
|
|
922
1072
|
"validationStatus": validationStatus,
|
|
923
|
-
"
|
|
1073
|
+
"subnetId": subnetId
|
|
924
1074
|
}
|
|
925
1075
|
});
|
|
926
1076
|
}
|
|
@@ -951,9 +1101,9 @@ class PrimaryNetworkService {
|
|
|
951
1101
|
network,
|
|
952
1102
|
pageSize = 10,
|
|
953
1103
|
pageToken,
|
|
1104
|
+
rewardAddresses,
|
|
954
1105
|
sortOrder,
|
|
955
1106
|
delegationStatus,
|
|
956
|
-
rewardAddresses,
|
|
957
1107
|
nodeIds
|
|
958
1108
|
}) {
|
|
959
1109
|
return this.httpRequest.request({
|
|
@@ -965,9 +1115,9 @@ class PrimaryNetworkService {
|
|
|
965
1115
|
query: {
|
|
966
1116
|
"pageSize": pageSize,
|
|
967
1117
|
"pageToken": pageToken,
|
|
1118
|
+
"rewardAddresses": rewardAddresses,
|
|
968
1119
|
"sortOrder": sortOrder,
|
|
969
1120
|
"delegationStatus": delegationStatus,
|
|
970
|
-
"rewardAddresses": rewardAddresses,
|
|
971
1121
|
"nodeIds": nodeIds
|
|
972
1122
|
}
|
|
973
1123
|
});
|
|
@@ -1069,6 +1219,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1069
1219
|
addresses,
|
|
1070
1220
|
pageSize = 10,
|
|
1071
1221
|
pageToken,
|
|
1222
|
+
nodeIds,
|
|
1072
1223
|
sortOrder
|
|
1073
1224
|
}) {
|
|
1074
1225
|
return this.httpRequest.request({
|
|
@@ -1081,6 +1232,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1081
1232
|
"addresses": addresses,
|
|
1082
1233
|
"pageSize": pageSize,
|
|
1083
1234
|
"pageToken": pageToken,
|
|
1235
|
+
"nodeIds": nodeIds,
|
|
1084
1236
|
"sortOrder": sortOrder
|
|
1085
1237
|
}
|
|
1086
1238
|
});
|
|
@@ -1090,6 +1242,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1090
1242
|
addresses,
|
|
1091
1243
|
pageSize = 10,
|
|
1092
1244
|
pageToken,
|
|
1245
|
+
nodeIds,
|
|
1093
1246
|
sortOrder
|
|
1094
1247
|
}) {
|
|
1095
1248
|
return this.httpRequest.request({
|
|
@@ -1102,6 +1255,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1102
1255
|
"addresses": addresses,
|
|
1103
1256
|
"pageSize": pageSize,
|
|
1104
1257
|
"pageToken": pageToken,
|
|
1258
|
+
"nodeIds": nodeIds,
|
|
1105
1259
|
"sortOrder": sortOrder
|
|
1106
1260
|
}
|
|
1107
1261
|
});
|
|
@@ -1311,11 +1465,14 @@ class PrimaryNetworkVerticesService {
|
|
|
1311
1465
|
}
|
|
1312
1466
|
|
|
1313
1467
|
class Glacier {
|
|
1468
|
+
default;
|
|
1314
1469
|
evmBalances;
|
|
1315
1470
|
evmBlocks;
|
|
1316
1471
|
evmChains;
|
|
1472
|
+
evmContracts;
|
|
1317
1473
|
evmTransactions;
|
|
1318
1474
|
healthCheck;
|
|
1475
|
+
nfTs;
|
|
1319
1476
|
operations;
|
|
1320
1477
|
primaryNetwork;
|
|
1321
1478
|
primaryNetworkBalances;
|
|
@@ -1337,11 +1494,14 @@ class Glacier {
|
|
|
1337
1494
|
HEADERS: config?.HEADERS,
|
|
1338
1495
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
1339
1496
|
});
|
|
1497
|
+
this.default = new DefaultService(this.request);
|
|
1340
1498
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1341
1499
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1342
1500
|
this.evmChains = new EvmChainsService(this.request);
|
|
1501
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
1343
1502
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
1344
1503
|
this.healthCheck = new HealthCheckService(this.request);
|
|
1504
|
+
this.nfTs = new NfTsService(this.request);
|
|
1345
1505
|
this.operations = new OperationsService(this.request);
|
|
1346
1506
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
1347
1507
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1365,6 +1525,20 @@ const OpenAPI = {
|
|
|
1365
1525
|
ENCODE_PATH: void 0
|
|
1366
1526
|
};
|
|
1367
1527
|
|
|
1528
|
+
exports.ActiveDelegatorDetails = void 0;
|
|
1529
|
+
((ActiveDelegatorDetails2) => {
|
|
1530
|
+
((delegationStatus2) => {
|
|
1531
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
1532
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
1533
|
+
})(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
|
|
1534
|
+
|
|
1535
|
+
exports.ActiveValidatorDetails = void 0;
|
|
1536
|
+
((ActiveValidatorDetails2) => {
|
|
1537
|
+
((validationStatus2) => {
|
|
1538
|
+
validationStatus2["ACTIVE"] = "active";
|
|
1539
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
1540
|
+
})(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
|
|
1541
|
+
|
|
1368
1542
|
var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
|
|
1369
1543
|
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
1370
1544
|
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
@@ -1406,6 +1580,48 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
|
|
|
1406
1580
|
return ChainStatus2;
|
|
1407
1581
|
})(ChainStatus || {});
|
|
1408
1582
|
|
|
1583
|
+
exports.CompletedDelegatorDetails = void 0;
|
|
1584
|
+
((CompletedDelegatorDetails2) => {
|
|
1585
|
+
((delegationStatus2) => {
|
|
1586
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
1587
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
1588
|
+
})(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
|
|
1589
|
+
|
|
1590
|
+
exports.CompletedValidatorDetails = void 0;
|
|
1591
|
+
((CompletedValidatorDetails2) => {
|
|
1592
|
+
((validationStatus2) => {
|
|
1593
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
1594
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
1595
|
+
})(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
|
|
1596
|
+
|
|
1597
|
+
exports.ContractSubmissionErc1155 = void 0;
|
|
1598
|
+
((ContractSubmissionErc11552) => {
|
|
1599
|
+
((ercType2) => {
|
|
1600
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
1601
|
+
})(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
|
|
1602
|
+
})(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
|
|
1603
|
+
|
|
1604
|
+
exports.ContractSubmissionErc20 = void 0;
|
|
1605
|
+
((ContractSubmissionErc202) => {
|
|
1606
|
+
((ercType2) => {
|
|
1607
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
1608
|
+
})(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
|
|
1609
|
+
})(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
|
|
1610
|
+
|
|
1611
|
+
exports.ContractSubmissionErc721 = void 0;
|
|
1612
|
+
((ContractSubmissionErc7212) => {
|
|
1613
|
+
((ercType2) => {
|
|
1614
|
+
ercType2["ERC_721"] = "ERC-721";
|
|
1615
|
+
})(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
|
|
1616
|
+
})(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
|
|
1617
|
+
|
|
1618
|
+
exports.ContractSubmissionUnknown = void 0;
|
|
1619
|
+
((ContractSubmissionUnknown2) => {
|
|
1620
|
+
((ercType2) => {
|
|
1621
|
+
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
1622
|
+
})(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
|
|
1623
|
+
})(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
|
|
1624
|
+
|
|
1409
1625
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1410
1626
|
((CreateEvmTransactionExportRequest2) => {
|
|
1411
1627
|
((type2) => {
|
|
@@ -1508,6 +1724,11 @@ exports.Erc721TokenBalance = void 0;
|
|
|
1508
1724
|
})(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
|
|
1509
1725
|
})(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
|
|
1510
1726
|
|
|
1727
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
1728
|
+
EventType2["ADDRESS_ACTIVITY"] = "address_activity";
|
|
1729
|
+
return EventType2;
|
|
1730
|
+
})(EventType || {});
|
|
1731
|
+
|
|
1511
1732
|
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
1512
1733
|
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
1513
1734
|
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
@@ -1577,6 +1798,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1577
1798
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1578
1799
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1579
1800
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1801
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1580
1802
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1581
1803
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1582
1804
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1589,6 +1811,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1589
1811
|
return PChainTransactionType2;
|
|
1590
1812
|
})(PChainTransactionType || {});
|
|
1591
1813
|
|
|
1814
|
+
exports.PendingDelegatorDetails = void 0;
|
|
1815
|
+
((PendingDelegatorDetails2) => {
|
|
1816
|
+
((delegationStatus2) => {
|
|
1817
|
+
delegationStatus2["PENDING"] = "pending";
|
|
1818
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
1819
|
+
})(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
|
|
1820
|
+
|
|
1821
|
+
exports.PendingValidatorDetails = void 0;
|
|
1822
|
+
((PendingValidatorDetails2) => {
|
|
1823
|
+
((validationStatus2) => {
|
|
1824
|
+
validationStatus2["PENDING"] = "pending";
|
|
1825
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
1826
|
+
})(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
|
|
1827
|
+
|
|
1592
1828
|
var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
|
|
1593
1829
|
PrimaryNetwork2["MAINNET"] = "mainnet";
|
|
1594
1830
|
PrimaryNetwork2["FUJI"] = "fuji";
|
|
@@ -1606,6 +1842,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1606
1842
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1607
1843
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1608
1844
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1845
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1609
1846
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1610
1847
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1611
1848
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1646,6 +1883,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
|
1646
1883
|
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
1647
1884
|
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
1648
1885
|
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
1886
|
+
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
1649
1887
|
return RewardType2;
|
|
1650
1888
|
})(RewardType || {});
|
|
1651
1889
|
|
|
@@ -1695,6 +1933,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
|
|
|
1695
1933
|
return VmName2;
|
|
1696
1934
|
})(VmName || {});
|
|
1697
1935
|
|
|
1936
|
+
var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
|
|
1937
|
+
WebhookStatus2["ACTIVE"] = "active";
|
|
1938
|
+
WebhookStatus2["INACTIVE"] = "inactive";
|
|
1939
|
+
return WebhookStatus2;
|
|
1940
|
+
})(WebhookStatus || {});
|
|
1941
|
+
|
|
1942
|
+
var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
|
|
1943
|
+
WebhookStatusType2["ACTIVE"] = "active";
|
|
1944
|
+
WebhookStatusType2["INACTIVE"] = "inactive";
|
|
1945
|
+
return WebhookStatusType2;
|
|
1946
|
+
})(WebhookStatusType || {});
|
|
1947
|
+
|
|
1698
1948
|
var XChainId = /* @__PURE__ */ ((XChainId2) => {
|
|
1699
1949
|
XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
1700
1950
|
XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
|
|
@@ -1718,6 +1968,16 @@ exports.XChainNonLinearTransaction = void 0;
|
|
|
1718
1968
|
})(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
|
|
1719
1969
|
})(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
|
|
1720
1970
|
|
|
1971
|
+
var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
|
|
1972
|
+
XChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
1973
|
+
XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
1974
|
+
XChainTransactionType2["OPERATION_TX"] = "OperationTx";
|
|
1975
|
+
XChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
1976
|
+
XChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
1977
|
+
XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
1978
|
+
return XChainTransactionType2;
|
|
1979
|
+
})(XChainTransactionType || {});
|
|
1980
|
+
|
|
1721
1981
|
exports.ApiError = ApiError;
|
|
1722
1982
|
exports.BaseHttpRequest = BaseHttpRequest;
|
|
1723
1983
|
exports.BlockchainId = BlockchainId;
|
|
@@ -1726,16 +1986,20 @@ exports.CancelError = CancelError;
|
|
|
1726
1986
|
exports.CancelablePromise = CancelablePromise;
|
|
1727
1987
|
exports.ChainStatus = ChainStatus;
|
|
1728
1988
|
exports.CurrencyCode = CurrencyCode;
|
|
1989
|
+
exports.DefaultService = DefaultService;
|
|
1729
1990
|
exports.DelegationStatusType = DelegationStatusType;
|
|
1991
|
+
exports.EventType = EventType;
|
|
1730
1992
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1731
1993
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1732
1994
|
exports.EvmChainsService = EvmChainsService;
|
|
1995
|
+
exports.EvmContractsService = EvmContractsService;
|
|
1733
1996
|
exports.EvmTransactionsService = EvmTransactionsService;
|
|
1734
1997
|
exports.Glacier = Glacier;
|
|
1735
1998
|
exports.HealthCheckService = HealthCheckService;
|
|
1736
1999
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1737
2000
|
exports.Network = Network;
|
|
1738
2001
|
exports.NetworkType = NetworkType;
|
|
2002
|
+
exports.NfTsService = NfTsService;
|
|
1739
2003
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1740
2004
|
exports.OpenAPI = OpenAPI;
|
|
1741
2005
|
exports.OperationStatus = OperationStatus;
|
|
@@ -1762,4 +2026,7 @@ exports.TransactionStatus = TransactionStatus;
|
|
|
1762
2026
|
exports.UtxoType = UtxoType;
|
|
1763
2027
|
exports.ValidationStatusType = ValidationStatusType;
|
|
1764
2028
|
exports.VmName = VmName;
|
|
2029
|
+
exports.WebhookStatus = WebhookStatus;
|
|
2030
|
+
exports.WebhookStatusType = WebhookStatusType;
|
|
1765
2031
|
exports.XChainId = XChainId;
|
|
2032
|
+
exports.XChainTransactionType = XChainTransactionType;
|
|
@@ -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,28 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
|
|
3
3
|
|
|
4
4
|
type ActiveValidatorDetails = {
|
|
5
|
+
txHash: string;
|
|
5
6
|
nodeId: string;
|
|
7
|
+
subnetId: string;
|
|
6
8
|
amountStaked: string;
|
|
7
|
-
delegationFee
|
|
9
|
+
delegationFee?: string;
|
|
8
10
|
startTimestamp: number;
|
|
9
11
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
12
|
stakePercentage: number;
|
|
12
13
|
delegatorCount: number;
|
|
13
|
-
amountDelegated
|
|
14
|
+
amountDelegated?: string;
|
|
14
15
|
uptimePerformance: number;
|
|
15
|
-
avalancheGoVersion
|
|
16
|
-
delegationCapacity
|
|
16
|
+
avalancheGoVersion?: string;
|
|
17
|
+
delegationCapacity?: string;
|
|
17
18
|
potentialRewards: Rewards;
|
|
19
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
20
|
+
validatorHealth: ValidatorHealthDetails;
|
|
18
21
|
};
|
|
22
|
+
declare namespace ActiveValidatorDetails {
|
|
23
|
+
enum validationStatus {
|
|
24
|
+
ACTIVE = "active"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
19
27
|
|
|
20
28
|
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 };
|