@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.45b841e.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 +231 -47
- package/dist/index.js +83 -18
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +7 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +2 -1
- 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/GetChainResponse.d.ts +1 -0
- 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 +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +2 -1
- 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/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 +19 -0
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +0 -20
- package/esm/generated/services/EvmTransactionsService.js +1 -14
- 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/index.d.ts +8 -0
- package/esm/index.js +5 -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;
|
|
@@ -541,6 +553,22 @@ class EvmContractsService {
|
|
|
541
553
|
}
|
|
542
554
|
});
|
|
543
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
|
+
}
|
|
544
572
|
}
|
|
545
573
|
|
|
546
574
|
class EvmTransactionsService {
|
|
@@ -572,7 +600,7 @@ class EvmTransactionsService {
|
|
|
572
600
|
}) {
|
|
573
601
|
return this.httpRequest.request({
|
|
574
602
|
method: "GET",
|
|
575
|
-
url: "/v1/chains/{chainId}/
|
|
603
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
576
604
|
path: {
|
|
577
605
|
"chainId": chainId,
|
|
578
606
|
"address": address
|
|
@@ -583,19 +611,6 @@ class EvmTransactionsService {
|
|
|
583
611
|
}
|
|
584
612
|
});
|
|
585
613
|
}
|
|
586
|
-
getContractMetadata({
|
|
587
|
-
chainId,
|
|
588
|
-
address
|
|
589
|
-
}) {
|
|
590
|
-
return this.httpRequest.request({
|
|
591
|
-
method: "GET",
|
|
592
|
-
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
593
|
-
path: {
|
|
594
|
-
"chainId": chainId,
|
|
595
|
-
"address": address
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
614
|
listTransfers({
|
|
600
615
|
chainId,
|
|
601
616
|
address,
|
|
@@ -971,10 +986,16 @@ class PrimaryNetworkService {
|
|
|
971
986
|
network,
|
|
972
987
|
pageSize = 10,
|
|
973
988
|
pageToken,
|
|
989
|
+
minTimeRemaining,
|
|
990
|
+
maxTimeRemaining,
|
|
991
|
+
minDelegationCapacity,
|
|
992
|
+
maxDelegationCapacity,
|
|
993
|
+
minFeePercentage,
|
|
994
|
+
maxFeePercentage,
|
|
974
995
|
nodeIds,
|
|
975
996
|
sortOrder,
|
|
976
997
|
validationStatus,
|
|
977
|
-
|
|
998
|
+
subnetId
|
|
978
999
|
}) {
|
|
979
1000
|
return this.httpRequest.request({
|
|
980
1001
|
method: "GET",
|
|
@@ -985,10 +1006,16 @@ class PrimaryNetworkService {
|
|
|
985
1006
|
query: {
|
|
986
1007
|
"pageSize": pageSize,
|
|
987
1008
|
"pageToken": pageToken,
|
|
1009
|
+
"minTimeRemaining": minTimeRemaining,
|
|
1010
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
1011
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
1012
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
1013
|
+
"minFeePercentage": minFeePercentage,
|
|
1014
|
+
"maxFeePercentage": maxFeePercentage,
|
|
988
1015
|
"nodeIds": nodeIds,
|
|
989
1016
|
"sortOrder": sortOrder,
|
|
990
1017
|
"validationStatus": validationStatus,
|
|
991
|
-
"
|
|
1018
|
+
"subnetId": subnetId
|
|
992
1019
|
}
|
|
993
1020
|
});
|
|
994
1021
|
}
|
|
@@ -1019,9 +1046,9 @@ class PrimaryNetworkService {
|
|
|
1019
1046
|
network,
|
|
1020
1047
|
pageSize = 10,
|
|
1021
1048
|
pageToken,
|
|
1049
|
+
rewardAddresses,
|
|
1022
1050
|
sortOrder,
|
|
1023
1051
|
delegationStatus,
|
|
1024
|
-
rewardAddresses,
|
|
1025
1052
|
nodeIds
|
|
1026
1053
|
}) {
|
|
1027
1054
|
return this.httpRequest.request({
|
|
@@ -1033,9 +1060,9 @@ class PrimaryNetworkService {
|
|
|
1033
1060
|
query: {
|
|
1034
1061
|
"pageSize": pageSize,
|
|
1035
1062
|
"pageToken": pageToken,
|
|
1063
|
+
"rewardAddresses": rewardAddresses,
|
|
1036
1064
|
"sortOrder": sortOrder,
|
|
1037
1065
|
"delegationStatus": delegationStatus,
|
|
1038
|
-
"rewardAddresses": rewardAddresses,
|
|
1039
1066
|
"nodeIds": nodeIds
|
|
1040
1067
|
}
|
|
1041
1068
|
});
|
|
@@ -1137,6 +1164,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1137
1164
|
addresses,
|
|
1138
1165
|
pageSize = 10,
|
|
1139
1166
|
pageToken,
|
|
1167
|
+
nodeIds,
|
|
1140
1168
|
sortOrder
|
|
1141
1169
|
}) {
|
|
1142
1170
|
return this.httpRequest.request({
|
|
@@ -1149,6 +1177,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1149
1177
|
"addresses": addresses,
|
|
1150
1178
|
"pageSize": pageSize,
|
|
1151
1179
|
"pageToken": pageToken,
|
|
1180
|
+
"nodeIds": nodeIds,
|
|
1152
1181
|
"sortOrder": sortOrder
|
|
1153
1182
|
}
|
|
1154
1183
|
});
|
|
@@ -1158,6 +1187,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1158
1187
|
addresses,
|
|
1159
1188
|
pageSize = 10,
|
|
1160
1189
|
pageToken,
|
|
1190
|
+
nodeIds,
|
|
1161
1191
|
sortOrder
|
|
1162
1192
|
}) {
|
|
1163
1193
|
return this.httpRequest.request({
|
|
@@ -1170,6 +1200,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1170
1200
|
"addresses": addresses,
|
|
1171
1201
|
"pageSize": pageSize,
|
|
1172
1202
|
"pageToken": pageToken,
|
|
1203
|
+
"nodeIds": nodeIds,
|
|
1173
1204
|
"sortOrder": sortOrder
|
|
1174
1205
|
}
|
|
1175
1206
|
});
|
|
@@ -1379,6 +1410,7 @@ class PrimaryNetworkVerticesService {
|
|
|
1379
1410
|
}
|
|
1380
1411
|
|
|
1381
1412
|
class Glacier {
|
|
1413
|
+
default;
|
|
1382
1414
|
evmBalances;
|
|
1383
1415
|
evmBlocks;
|
|
1384
1416
|
evmChains;
|
|
@@ -1407,6 +1439,7 @@ class Glacier {
|
|
|
1407
1439
|
HEADERS: config?.HEADERS,
|
|
1408
1440
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
1409
1441
|
});
|
|
1442
|
+
this.default = new DefaultService(this.request);
|
|
1410
1443
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1411
1444
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1412
1445
|
this.evmChains = new EvmChainsService(this.request);
|
|
@@ -1506,6 +1539,34 @@ exports.CompletedValidatorDetails = void 0;
|
|
|
1506
1539
|
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
1507
1540
|
})(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
|
|
1508
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
|
+
|
|
1509
1570
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1510
1571
|
((CreateEvmTransactionExportRequest2) => {
|
|
1511
1572
|
((type2) => {
|
|
@@ -1677,6 +1738,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1677
1738
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1678
1739
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1679
1740
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1741
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1680
1742
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1681
1743
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1682
1744
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1720,6 +1782,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1720
1782
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1721
1783
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1722
1784
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1785
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1723
1786
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1724
1787
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1725
1788
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1760,6 +1823,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
|
1760
1823
|
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
1761
1824
|
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
1762
1825
|
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
1826
|
+
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
1763
1827
|
return RewardType2;
|
|
1764
1828
|
})(RewardType || {});
|
|
1765
1829
|
|
|
@@ -1840,6 +1904,7 @@ exports.CancelError = CancelError;
|
|
|
1840
1904
|
exports.CancelablePromise = CancelablePromise;
|
|
1841
1905
|
exports.ChainStatus = ChainStatus;
|
|
1842
1906
|
exports.CurrencyCode = CurrencyCode;
|
|
1907
|
+
exports.DefaultService = DefaultService;
|
|
1843
1908
|
exports.DelegationStatusType = DelegationStatusType;
|
|
1844
1909
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1845
1910
|
exports.EvmBlocksService = EvmBlocksService;
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
@@ -18,6 +19,7 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
|
|
|
18
19
|
|
|
19
20
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
20
21
|
declare class Glacier {
|
|
22
|
+
readonly default: DefaultService;
|
|
21
23
|
readonly evmBalances: EvmBalancesService;
|
|
22
24
|
readonly evmBlocks: EvmBlocksService;
|
|
23
25
|
readonly evmChains: EvmChainsService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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';
|
|
@@ -16,6 +17,7 @@ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsServic
|
|
|
16
17
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
17
18
|
|
|
18
19
|
class Glacier {
|
|
20
|
+
default;
|
|
19
21
|
evmBalances;
|
|
20
22
|
evmBlocks;
|
|
21
23
|
evmChains;
|
|
@@ -44,6 +46,7 @@ class Glacier {
|
|
|
44
46
|
HEADERS: config?.HEADERS,
|
|
45
47
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
46
48
|
});
|
|
49
|
+
this.default = new DefaultService(this.request);
|
|
47
50
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
48
51
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
49
52
|
this.evmChains = new EvmChainsService(this.request);
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
+
import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
|
|
2
3
|
|
|
3
4
|
type ActiveValidatorDetails = {
|
|
4
5
|
nodeId: string;
|
|
6
|
+
subnetId: string;
|
|
5
7
|
amountStaked: string;
|
|
6
|
-
delegationFee
|
|
8
|
+
delegationFee?: string;
|
|
7
9
|
startTimestamp: number;
|
|
8
10
|
endTimestamp: number;
|
|
9
11
|
stakePercentage: number;
|
|
10
12
|
delegatorCount: number;
|
|
11
|
-
amountDelegated
|
|
13
|
+
amountDelegated?: string;
|
|
12
14
|
uptimePerformance: number;
|
|
13
|
-
avalancheGoVersion
|
|
14
|
-
delegationCapacity
|
|
15
|
+
avalancheGoVersion?: string;
|
|
16
|
+
delegationCapacity?: string;
|
|
15
17
|
potentialRewards: Rewards;
|
|
16
18
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
19
|
+
validatorHealth: ValidatorHealthDetails;
|
|
17
20
|
};
|
|
18
21
|
declare namespace ActiveValidatorDetails {
|
|
19
22
|
enum validationStatus {
|
|
@@ -2,8 +2,9 @@ import { Rewards } from './Rewards.js';
|
|
|
2
2
|
|
|
3
3
|
type CompletedValidatorDetails = {
|
|
4
4
|
nodeId: string;
|
|
5
|
+
subnetId: string;
|
|
5
6
|
amountStaked: string;
|
|
6
|
-
delegationFee
|
|
7
|
+
delegationFee?: string;
|
|
7
8
|
startTimestamp: number;
|
|
8
9
|
endTimestamp: number;
|
|
9
10
|
delegatorCount: number;
|
|
@@ -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 };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
3
|
+
|
|
4
|
+
type ContractSubmissionUnknown = {
|
|
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: ContractSubmissionUnknown.ercType;
|
|
18
|
+
};
|
|
19
|
+
declare namespace ContractSubmissionUnknown {
|
|
20
|
+
enum ercType {
|
|
21
|
+
UNKNOWN = "UNKNOWN"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { ContractSubmissionUnknown };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionUnknown;
|
|
2
|
+
((ContractSubmissionUnknown2) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
5
|
+
})(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
|
|
6
|
+
})(ContractSubmissionUnknown || (ContractSubmissionUnknown = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionUnknown };
|
|
@@ -2,6 +2,7 @@ declare enum PChainTransactionType {
|
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
3
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
4
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
5
6
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
7
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
8
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -2,6 +2,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
2
2
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
3
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
4
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
5
6
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
7
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
8
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -2,6 +2,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
3
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
4
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
5
6
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
7
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
8
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -2,6 +2,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
2
2
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
3
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
4
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
5
6
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
7
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
8
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Erc1155Contract } from './Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from './Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from './Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from './UnknownContract.js';
|
|
5
|
+
|
|
6
|
+
type UpdateContractResponse = {
|
|
7
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { UpdateContractResponse };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type ValidatorHealthDetails = {
|
|
2
|
+
/**
|
|
3
|
+
* Percent of requests responded to in last polling.
|
|
4
|
+
*/
|
|
5
|
+
reachabilityPercent: number;
|
|
6
|
+
/**
|
|
7
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
8
|
+
*/
|
|
9
|
+
benchedPChainRequestsPercent: number;
|
|
10
|
+
/**
|
|
11
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
12
|
+
*/
|
|
13
|
+
benchedXChainRequestsPercent: number;
|
|
14
|
+
/**
|
|
15
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
16
|
+
*/
|
|
17
|
+
benchedCChainRequestsPercent: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ValidatorHealthDetails };
|