@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c938eae.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.
Files changed (54) hide show
  1. package/dist/index.d.ts +551 -312
  2. package/dist/index.js +147 -18
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/ChainInfo.d.ts +1 -0
  10. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  11. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  12. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  13. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  14. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  15. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  16. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  17. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  18. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  19. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  20. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  21. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  22. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  23. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  24. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  25. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  26. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  27. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  28. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  29. package/esm/generated/models/PChainTransactionType.js +1 -0
  30. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  31. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  32. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  33. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  34. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  35. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  36. package/esm/generated/models/RewardType.d.ts +2 -1
  37. package/esm/generated/models/RewardType.js +1 -0
  38. package/esm/generated/models/Rewards.d.ts +2 -0
  39. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  40. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  41. package/esm/generated/services/DefaultService.d.ts +14 -0
  42. package/esm/generated/services/DefaultService.js +13 -0
  43. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  44. package/esm/generated/services/EvmContractsService.js +36 -0
  45. package/esm/generated/services/EvmTransactionsService.js +1 -1
  46. package/esm/generated/services/NfTsService.d.ts +0 -18
  47. package/esm/generated/services/NfTsService.js +0 -13
  48. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  49. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  50. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
  51. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  52. package/esm/index.d.ts +9 -0
  53. package/esm/index.js +12 -0
  54. 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}/addresses/{address}/deployments",
603
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
557
604
  path: {
558
605
  "chainId": chainId,
559
606
  "address": address
@@ -823,19 +870,6 @@ class NfTsService {
823
870
  }
824
871
  });
825
872
  }
826
- getCollection({
827
- chainId,
828
- address
829
- }) {
830
- return this.httpRequest.request({
831
- method: "GET",
832
- url: "/v1/chains/{chainId}/nfts/collections/{address}",
833
- path: {
834
- "chainId": chainId,
835
- "address": address
836
- }
837
- });
838
- }
839
873
  }
840
874
 
841
875
  class OperationsService {
@@ -952,10 +986,16 @@ class PrimaryNetworkService {
952
986
  network,
953
987
  pageSize = 10,
954
988
  pageToken,
989
+ minTimeRemaining,
990
+ maxTimeRemaining,
991
+ minDelegationCapacity,
992
+ maxDelegationCapacity,
993
+ minFeePercentage,
994
+ maxFeePercentage,
955
995
  nodeIds,
956
996
  sortOrder,
957
997
  validationStatus,
958
- minDelegationCapacity
998
+ subnetId
959
999
  }) {
960
1000
  return this.httpRequest.request({
961
1001
  method: "GET",
@@ -966,10 +1006,16 @@ class PrimaryNetworkService {
966
1006
  query: {
967
1007
  "pageSize": pageSize,
968
1008
  "pageToken": pageToken,
1009
+ "minTimeRemaining": minTimeRemaining,
1010
+ "maxTimeRemaining": maxTimeRemaining,
1011
+ "minDelegationCapacity": minDelegationCapacity,
1012
+ "maxDelegationCapacity": maxDelegationCapacity,
1013
+ "minFeePercentage": minFeePercentage,
1014
+ "maxFeePercentage": maxFeePercentage,
969
1015
  "nodeIds": nodeIds,
970
1016
  "sortOrder": sortOrder,
971
1017
  "validationStatus": validationStatus,
972
- "minDelegationCapacity": minDelegationCapacity
1018
+ "subnetId": subnetId
973
1019
  }
974
1020
  });
975
1021
  }
@@ -1000,9 +1046,9 @@ class PrimaryNetworkService {
1000
1046
  network,
1001
1047
  pageSize = 10,
1002
1048
  pageToken,
1049
+ rewardAddresses,
1003
1050
  sortOrder,
1004
1051
  delegationStatus,
1005
- rewardAddresses,
1006
1052
  nodeIds
1007
1053
  }) {
1008
1054
  return this.httpRequest.request({
@@ -1014,9 +1060,9 @@ class PrimaryNetworkService {
1014
1060
  query: {
1015
1061
  "pageSize": pageSize,
1016
1062
  "pageToken": pageToken,
1063
+ "rewardAddresses": rewardAddresses,
1017
1064
  "sortOrder": sortOrder,
1018
1065
  "delegationStatus": delegationStatus,
1019
- "rewardAddresses": rewardAddresses,
1020
1066
  "nodeIds": nodeIds
1021
1067
  }
1022
1068
  });
@@ -1118,6 +1164,7 @@ class PrimaryNetworkRewardsService {
1118
1164
  addresses,
1119
1165
  pageSize = 10,
1120
1166
  pageToken,
1167
+ nodeIds,
1121
1168
  sortOrder
1122
1169
  }) {
1123
1170
  return this.httpRequest.request({
@@ -1130,6 +1177,7 @@ class PrimaryNetworkRewardsService {
1130
1177
  "addresses": addresses,
1131
1178
  "pageSize": pageSize,
1132
1179
  "pageToken": pageToken,
1180
+ "nodeIds": nodeIds,
1133
1181
  "sortOrder": sortOrder
1134
1182
  }
1135
1183
  });
@@ -1139,6 +1187,7 @@ class PrimaryNetworkRewardsService {
1139
1187
  addresses,
1140
1188
  pageSize = 10,
1141
1189
  pageToken,
1190
+ nodeIds,
1142
1191
  sortOrder
1143
1192
  }) {
1144
1193
  return this.httpRequest.request({
@@ -1151,6 +1200,7 @@ class PrimaryNetworkRewardsService {
1151
1200
  "addresses": addresses,
1152
1201
  "pageSize": pageSize,
1153
1202
  "pageToken": pageToken,
1203
+ "nodeIds": nodeIds,
1154
1204
  "sortOrder": sortOrder
1155
1205
  }
1156
1206
  });
@@ -1360,9 +1410,11 @@ class PrimaryNetworkVerticesService {
1360
1410
  }
1361
1411
 
1362
1412
  class Glacier {
1413
+ default;
1363
1414
  evmBalances;
1364
1415
  evmBlocks;
1365
1416
  evmChains;
1417
+ evmContracts;
1366
1418
  evmTransactions;
1367
1419
  healthCheck;
1368
1420
  nfTs;
@@ -1387,9 +1439,11 @@ class Glacier {
1387
1439
  HEADERS: config?.HEADERS,
1388
1440
  ENCODE_PATH: config?.ENCODE_PATH
1389
1441
  });
1442
+ this.default = new DefaultService(this.request);
1390
1443
  this.evmBalances = new EvmBalancesService(this.request);
1391
1444
  this.evmBlocks = new EvmBlocksService(this.request);
1392
1445
  this.evmChains = new EvmChainsService(this.request);
1446
+ this.evmContracts = new EvmContractsService(this.request);
1393
1447
  this.evmTransactions = new EvmTransactionsService(this.request);
1394
1448
  this.healthCheck = new HealthCheckService(this.request);
1395
1449
  this.nfTs = new NfTsService(this.request);
@@ -1416,6 +1470,20 @@ const OpenAPI = {
1416
1470
  ENCODE_PATH: void 0
1417
1471
  };
1418
1472
 
1473
+ exports.ActiveDelegatorDetails = void 0;
1474
+ ((ActiveDelegatorDetails2) => {
1475
+ ((delegationStatus2) => {
1476
+ delegationStatus2["ACTIVE"] = "active";
1477
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
1478
+ })(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
1479
+
1480
+ exports.ActiveValidatorDetails = void 0;
1481
+ ((ActiveValidatorDetails2) => {
1482
+ ((validationStatus2) => {
1483
+ validationStatus2["ACTIVE"] = "active";
1484
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
1485
+ })(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
1486
+
1419
1487
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
1420
1488
  BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1421
1489
  BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
@@ -1457,6 +1525,48 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
1457
1525
  return ChainStatus2;
1458
1526
  })(ChainStatus || {});
1459
1527
 
1528
+ exports.CompletedDelegatorDetails = void 0;
1529
+ ((CompletedDelegatorDetails2) => {
1530
+ ((delegationStatus2) => {
1531
+ delegationStatus2["COMPLETED"] = "completed";
1532
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
1533
+ })(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
1534
+
1535
+ exports.CompletedValidatorDetails = void 0;
1536
+ ((CompletedValidatorDetails2) => {
1537
+ ((validationStatus2) => {
1538
+ validationStatus2["COMPLETED"] = "completed";
1539
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1540
+ })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1541
+
1542
+ exports.ContractSubmissionErc1155 = void 0;
1543
+ ((ContractSubmissionErc11552) => {
1544
+ ((ercType2) => {
1545
+ ercType2["ERC_1155"] = "ERC-1155";
1546
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
1547
+ })(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
1548
+
1549
+ exports.ContractSubmissionErc20 = void 0;
1550
+ ((ContractSubmissionErc202) => {
1551
+ ((ercType2) => {
1552
+ ercType2["ERC_20"] = "ERC-20";
1553
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
1554
+ })(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
1555
+
1556
+ exports.ContractSubmissionErc721 = void 0;
1557
+ ((ContractSubmissionErc7212) => {
1558
+ ((ercType2) => {
1559
+ ercType2["ERC_721"] = "ERC-721";
1560
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
1561
+ })(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
1562
+
1563
+ exports.ContractSubmissionUnknown = void 0;
1564
+ ((ContractSubmissionUnknown2) => {
1565
+ ((ercType2) => {
1566
+ ercType2["UNKNOWN"] = "UNKNOWN";
1567
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
1568
+ })(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
1569
+
1460
1570
  exports.CreateEvmTransactionExportRequest = void 0;
1461
1571
  ((CreateEvmTransactionExportRequest2) => {
1462
1572
  ((type2) => {
@@ -1628,6 +1738,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1628
1738
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1629
1739
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1630
1740
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1741
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1631
1742
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1632
1743
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1633
1744
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1640,6 +1751,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1640
1751
  return PChainTransactionType2;
1641
1752
  })(PChainTransactionType || {});
1642
1753
 
1754
+ exports.PendingDelegatorDetails = void 0;
1755
+ ((PendingDelegatorDetails2) => {
1756
+ ((delegationStatus2) => {
1757
+ delegationStatus2["PENDING"] = "pending";
1758
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1759
+ })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1760
+
1761
+ exports.PendingValidatorDetails = void 0;
1762
+ ((PendingValidatorDetails2) => {
1763
+ ((validationStatus2) => {
1764
+ validationStatus2["PENDING"] = "pending";
1765
+ })(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
1766
+ })(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
1767
+
1643
1768
  var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
1644
1769
  PrimaryNetwork2["MAINNET"] = "mainnet";
1645
1770
  PrimaryNetwork2["FUJI"] = "fuji";
@@ -1657,6 +1782,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1657
1782
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1658
1783
  PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1659
1784
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1785
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1660
1786
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1661
1787
  PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1662
1788
  PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1697,6 +1823,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1697
1823
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
1698
1824
  RewardType2["VALIDATOR"] = "VALIDATOR";
1699
1825
  RewardType2["DELEGATOR"] = "DELEGATOR";
1826
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
1700
1827
  return RewardType2;
1701
1828
  })(RewardType || {});
1702
1829
 
@@ -1777,10 +1904,12 @@ exports.CancelError = CancelError;
1777
1904
  exports.CancelablePromise = CancelablePromise;
1778
1905
  exports.ChainStatus = ChainStatus;
1779
1906
  exports.CurrencyCode = CurrencyCode;
1907
+ exports.DefaultService = DefaultService;
1780
1908
  exports.DelegationStatusType = DelegationStatusType;
1781
1909
  exports.EvmBalancesService = EvmBalancesService;
1782
1910
  exports.EvmBlocksService = EvmBlocksService;
1783
1911
  exports.EvmChainsService = EvmChainsService;
1912
+ exports.EvmContractsService = EvmContractsService;
1784
1913
  exports.EvmTransactionsService = EvmTransactionsService;
1785
1914
  exports.Glacier = Glacier;
1786
1915
  exports.HealthCheckService = HealthCheckService;
@@ -1,8 +1,10 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DefaultService } from './services/DefaultService.js';
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';
8
10
  import { NfTsService } from './services/NfTsService.js';
@@ -17,9 +19,11 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
17
19
 
18
20
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
19
21
  declare class Glacier {
22
+ readonly default: DefaultService;
20
23
  readonly evmBalances: EvmBalancesService;
21
24
  readonly evmBlocks: EvmBlocksService;
22
25
  readonly evmChains: EvmChainsService;
26
+ readonly evmContracts: EvmContractsService;
23
27
  readonly evmTransactions: EvmTransactionsService;
24
28
  readonly healthCheck: HealthCheckService;
25
29
  readonly nfTs: NfTsService;
@@ -1,7 +1,9 @@
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';
7
9
  import { NfTsService } from './services/NfTsService.js';
@@ -15,9 +17,11 @@ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsServic
15
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
16
18
 
17
19
  class Glacier {
20
+ default;
18
21
  evmBalances;
19
22
  evmBlocks;
20
23
  evmChains;
24
+ evmContracts;
21
25
  evmTransactions;
22
26
  healthCheck;
23
27
  nfTs;
@@ -42,9 +46,11 @@ class Glacier {
42
46
  HEADERS: config?.HEADERS,
43
47
  ENCODE_PATH: config?.ENCODE_PATH
44
48
  });
49
+ this.default = new DefaultService(this.request);
45
50
  this.evmBalances = new EvmBalancesService(this.request);
46
51
  this.evmBlocks = new EvmBlocksService(this.request);
47
52
  this.evmChains = new EvmChainsService(this.request);
53
+ this.evmContracts = new EvmContractsService(this.request);
48
54
  this.evmTransactions = new EvmTransactionsService(this.request);
49
55
  this.healthCheck = new HealthCheckService(this.request);
50
56
  this.nfTs = new NfTsService(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 { ValidationStatusType } from './ValidationStatusType.js';
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: string;
9
+ delegationFee?: string;
8
10
  startTimestamp: number;
9
11
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
12
  stakePercentage: number;
12
13
  delegatorCount: number;
13
- amountDelegated: string;
14
+ amountDelegated?: string;
14
15
  uptimePerformance: number;
15
- avalancheGoVersion: string;
16
- delegationCapacity: string;
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 };
@@ -22,6 +22,7 @@ type ChainInfo = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { ChainInfo };
@@ -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,21 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
5
5
  nodeId: string;
6
+ subnetId: string;
6
7
  amountStaked: string;
7
- delegationFee: string;
8
+ delegationFee?: string;
8
9
  startTimestamp: number;
9
10
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
11
  delegatorCount: number;
12
12
  rewards: Rewards;
13
+ validationStatus: CompletedValidatorDetails.validationStatus;
13
14
  };
15
+ declare namespace CompletedValidatorDetails {
16
+ enum validationStatus {
17
+ COMPLETED = "completed"
18
+ }
19
+ }
14
20
 
15
21
  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 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc20;
2
+ ((ContractSubmissionErc202) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
6
+ })(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
7
+
8
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,29 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionErc721 = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionErc721.ercType;
18
+ /**
19
+ * The contract symbol.
20
+ */
21
+ symbol: string;
22
+ };
23
+ declare namespace ContractSubmissionErc721 {
24
+ enum ercType {
25
+ ERC_721 = "ERC-721"
26
+ }
27
+ }
28
+
29
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc721;
2
+ ((ContractSubmissionErc7212) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
6
+ })(ContractSubmissionErc721 || (ContractSubmissionErc721 = {}));
7
+
8
+ export { ContractSubmissionErc721 };