@avalabs/glacier-sdk 2.8.0-alpha.120 → 2.8.0-alpha.122
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 +547 -589
- package/dist/index.js +137 -145
- package/esm/generated/models/ChainInfo.d.ts +1 -4
- package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/GetChainResponse.d.ts +1 -4
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +2 -2
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListPendingRewardsResponse.d.ts} +4 -4
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/PChainBalance.d.ts +13 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -5
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/Rewards.d.ts +6 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +1 -1
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -4
- package/esm/generated/models/ValidationStatusType.d.ts +5 -0
- package/esm/generated/models/ValidationStatusType.js +6 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/services/EvmService.d.ts +105 -259
- package/esm/generated/services/EvmService.js +1 -92
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/OperationsService.d.ts +5 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +222 -62
- package/esm/generated/services/PrimaryNetworkService.js +111 -3
- package/esm/index.d.ts +10 -18
- package/esm/index.js +2 -7
- package/package.json +2 -2
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +0 -8
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
package/dist/index.js
CHANGED
|
@@ -566,83 +566,6 @@ class EvmService {
|
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
|
-
listListingsByCollectionTokenId({
|
|
570
|
-
chainId,
|
|
571
|
-
address,
|
|
572
|
-
tokenId,
|
|
573
|
-
pageSize = 10,
|
|
574
|
-
pageToken,
|
|
575
|
-
sortBy,
|
|
576
|
-
sortOrder,
|
|
577
|
-
currency,
|
|
578
|
-
includeHistory = false
|
|
579
|
-
}) {
|
|
580
|
-
return this.httpRequest.request({
|
|
581
|
-
method: "GET",
|
|
582
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}/listings",
|
|
583
|
-
path: {
|
|
584
|
-
"chainId": chainId,
|
|
585
|
-
"address": address,
|
|
586
|
-
"tokenId": tokenId
|
|
587
|
-
},
|
|
588
|
-
query: {
|
|
589
|
-
"pageSize": pageSize,
|
|
590
|
-
"pageToken": pageToken,
|
|
591
|
-
"sortBy": sortBy,
|
|
592
|
-
"sortOrder": sortOrder,
|
|
593
|
-
"currency": currency,
|
|
594
|
-
"includeHistory": includeHistory
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
listListingsByCollection({
|
|
599
|
-
chainId,
|
|
600
|
-
address,
|
|
601
|
-
pageSize = 10,
|
|
602
|
-
pageToken,
|
|
603
|
-
sortBy,
|
|
604
|
-
sortOrder,
|
|
605
|
-
currency,
|
|
606
|
-
includeHistory = false
|
|
607
|
-
}) {
|
|
608
|
-
return this.httpRequest.request({
|
|
609
|
-
method: "GET",
|
|
610
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/listings",
|
|
611
|
-
path: {
|
|
612
|
-
"chainId": chainId,
|
|
613
|
-
"address": address
|
|
614
|
-
},
|
|
615
|
-
query: {
|
|
616
|
-
"pageSize": pageSize,
|
|
617
|
-
"pageToken": pageToken,
|
|
618
|
-
"sortBy": sortBy,
|
|
619
|
-
"sortOrder": sortOrder,
|
|
620
|
-
"currency": currency,
|
|
621
|
-
"includeHistory": includeHistory
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
listRecentListings({
|
|
626
|
-
chainId,
|
|
627
|
-
pageSize = 10,
|
|
628
|
-
pageToken,
|
|
629
|
-
eventType,
|
|
630
|
-
currency
|
|
631
|
-
}) {
|
|
632
|
-
return this.httpRequest.request({
|
|
633
|
-
method: "GET",
|
|
634
|
-
url: "/v1/chains/{chainId}/nfts/listings",
|
|
635
|
-
path: {
|
|
636
|
-
"chainId": chainId
|
|
637
|
-
},
|
|
638
|
-
query: {
|
|
639
|
-
"pageSize": pageSize,
|
|
640
|
-
"pageToken": pageToken,
|
|
641
|
-
"eventType": eventType,
|
|
642
|
-
"currency": currency
|
|
643
|
-
}
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
569
|
listCollections({
|
|
647
570
|
chainId,
|
|
648
571
|
pageSize = 10,
|
|
@@ -666,21 +589,7 @@ class EvmService {
|
|
|
666
589
|
}
|
|
667
590
|
});
|
|
668
591
|
}
|
|
669
|
-
|
|
670
|
-
chainId,
|
|
671
|
-
requestBody
|
|
672
|
-
}) {
|
|
673
|
-
return this.httpRequest.request({
|
|
674
|
-
method: "POST",
|
|
675
|
-
url: "/v1/chains/{chainId}/nfts/search",
|
|
676
|
-
path: {
|
|
677
|
-
"chainId": chainId
|
|
678
|
-
},
|
|
679
|
-
body: requestBody,
|
|
680
|
-
mediaType: "application/json"
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
getTokenMetadata({
|
|
592
|
+
getTokenDetails({
|
|
684
593
|
chainId,
|
|
685
594
|
address,
|
|
686
595
|
tokenId
|
|
@@ -970,6 +879,9 @@ class PrimaryNetworkService {
|
|
|
970
879
|
blockchainId,
|
|
971
880
|
network,
|
|
972
881
|
addresses,
|
|
882
|
+
txTypes,
|
|
883
|
+
startTimestamp,
|
|
884
|
+
endTimestamp,
|
|
973
885
|
pageSize = 10,
|
|
974
886
|
pageToken,
|
|
975
887
|
sortOrder
|
|
@@ -983,6 +895,9 @@ class PrimaryNetworkService {
|
|
|
983
895
|
},
|
|
984
896
|
query: {
|
|
985
897
|
"addresses": addresses,
|
|
898
|
+
"txTypes": txTypes,
|
|
899
|
+
"startTimestamp": startTimestamp,
|
|
900
|
+
"endTimestamp": endTimestamp,
|
|
986
901
|
"pageSize": pageSize,
|
|
987
902
|
"pageToken": pageToken,
|
|
988
903
|
"sortOrder": sortOrder
|
|
@@ -993,6 +908,9 @@ class PrimaryNetworkService {
|
|
|
993
908
|
blockchainId,
|
|
994
909
|
network,
|
|
995
910
|
addresses,
|
|
911
|
+
txTypes,
|
|
912
|
+
startTimestamp,
|
|
913
|
+
endTimestamp,
|
|
996
914
|
pageSize = 10,
|
|
997
915
|
pageToken,
|
|
998
916
|
sortOrder
|
|
@@ -1004,6 +922,51 @@ class PrimaryNetworkService {
|
|
|
1004
922
|
"blockchainId": blockchainId,
|
|
1005
923
|
"network": network
|
|
1006
924
|
},
|
|
925
|
+
query: {
|
|
926
|
+
"addresses": addresses,
|
|
927
|
+
"txTypes": txTypes,
|
|
928
|
+
"startTimestamp": startTimestamp,
|
|
929
|
+
"endTimestamp": endTimestamp,
|
|
930
|
+
"pageSize": pageSize,
|
|
931
|
+
"pageToken": pageToken,
|
|
932
|
+
"sortOrder": sortOrder
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
listPendingPrimaryNetworkRewards({
|
|
937
|
+
network,
|
|
938
|
+
addresses,
|
|
939
|
+
pageSize = 10,
|
|
940
|
+
pageToken,
|
|
941
|
+
sortOrder
|
|
942
|
+
}) {
|
|
943
|
+
return this.httpRequest.request({
|
|
944
|
+
method: "GET",
|
|
945
|
+
url: "/v1/networks/{network}/rewards:listPending",
|
|
946
|
+
path: {
|
|
947
|
+
"network": network
|
|
948
|
+
},
|
|
949
|
+
query: {
|
|
950
|
+
"addresses": addresses,
|
|
951
|
+
"pageSize": pageSize,
|
|
952
|
+
"pageToken": pageToken,
|
|
953
|
+
"sortOrder": sortOrder
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
listHistoricalPrimaryNetworkRewards({
|
|
958
|
+
network,
|
|
959
|
+
addresses,
|
|
960
|
+
pageSize = 10,
|
|
961
|
+
pageToken,
|
|
962
|
+
sortOrder
|
|
963
|
+
}) {
|
|
964
|
+
return this.httpRequest.request({
|
|
965
|
+
method: "GET",
|
|
966
|
+
url: "/v1/networks/{network}/rewards",
|
|
967
|
+
path: {
|
|
968
|
+
"network": network
|
|
969
|
+
},
|
|
1007
970
|
query: {
|
|
1008
971
|
"addresses": addresses,
|
|
1009
972
|
"pageSize": pageSize,
|
|
@@ -1183,10 +1146,13 @@ class PrimaryNetworkService {
|
|
|
1183
1146
|
}
|
|
1184
1147
|
});
|
|
1185
1148
|
}
|
|
1186
|
-
|
|
1149
|
+
listAssetTransactions({
|
|
1187
1150
|
blockchainId,
|
|
1188
1151
|
network,
|
|
1189
1152
|
assetId,
|
|
1153
|
+
txTypes,
|
|
1154
|
+
startTimestamp,
|
|
1155
|
+
endTimestamp,
|
|
1190
1156
|
pageSize = 10,
|
|
1191
1157
|
pageToken
|
|
1192
1158
|
}) {
|
|
@@ -1199,12 +1165,15 @@ class PrimaryNetworkService {
|
|
|
1199
1165
|
"assetId": assetId
|
|
1200
1166
|
},
|
|
1201
1167
|
query: {
|
|
1168
|
+
"txTypes": txTypes,
|
|
1169
|
+
"startTimestamp": startTimestamp,
|
|
1170
|
+
"endTimestamp": endTimestamp,
|
|
1202
1171
|
"pageSize": pageSize,
|
|
1203
1172
|
"pageToken": pageToken
|
|
1204
1173
|
}
|
|
1205
1174
|
});
|
|
1206
1175
|
}
|
|
1207
|
-
|
|
1176
|
+
getChainIdsForAddresses({
|
|
1208
1177
|
addresses,
|
|
1209
1178
|
network
|
|
1210
1179
|
}) {
|
|
@@ -1219,7 +1188,7 @@ class PrimaryNetworkService {
|
|
|
1219
1188
|
}
|
|
1220
1189
|
});
|
|
1221
1190
|
}
|
|
1222
|
-
|
|
1191
|
+
getNetworkDetails({
|
|
1223
1192
|
network
|
|
1224
1193
|
}) {
|
|
1225
1194
|
return this.httpRequest.request({
|
|
@@ -1268,6 +1237,54 @@ class PrimaryNetworkService {
|
|
|
1268
1237
|
}
|
|
1269
1238
|
});
|
|
1270
1239
|
}
|
|
1240
|
+
listValidators({
|
|
1241
|
+
network,
|
|
1242
|
+
validationStatus,
|
|
1243
|
+
pageSize = 10,
|
|
1244
|
+
pageToken,
|
|
1245
|
+
nodeIds,
|
|
1246
|
+
sortOrder,
|
|
1247
|
+
minDelegationCapacity
|
|
1248
|
+
}) {
|
|
1249
|
+
return this.httpRequest.request({
|
|
1250
|
+
method: "GET",
|
|
1251
|
+
url: "/v1/networks/{network}/validators",
|
|
1252
|
+
path: {
|
|
1253
|
+
"network": network,
|
|
1254
|
+
"validationStatus": validationStatus
|
|
1255
|
+
},
|
|
1256
|
+
query: {
|
|
1257
|
+
"pageSize": pageSize,
|
|
1258
|
+
"pageToken": pageToken,
|
|
1259
|
+
"nodeIds": nodeIds,
|
|
1260
|
+
"sortOrder": sortOrder,
|
|
1261
|
+
"minDelegationCapacity": minDelegationCapacity
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
getSingleValidatorDetails({
|
|
1266
|
+
network,
|
|
1267
|
+
nodeId,
|
|
1268
|
+
validationStatus,
|
|
1269
|
+
pageSize = 10,
|
|
1270
|
+
pageToken,
|
|
1271
|
+
sortOrder
|
|
1272
|
+
}) {
|
|
1273
|
+
return this.httpRequest.request({
|
|
1274
|
+
method: "GET",
|
|
1275
|
+
url: "/v1/networks/{network}/validators/{nodeId}",
|
|
1276
|
+
path: {
|
|
1277
|
+
"network": network,
|
|
1278
|
+
"nodeId": nodeId,
|
|
1279
|
+
"validationStatus": validationStatus
|
|
1280
|
+
},
|
|
1281
|
+
query: {
|
|
1282
|
+
"pageSize": pageSize,
|
|
1283
|
+
"pageToken": pageToken,
|
|
1284
|
+
"sortOrder": sortOrder
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1271
1288
|
}
|
|
1272
1289
|
|
|
1273
1290
|
class Glacier {
|
|
@@ -1446,31 +1463,6 @@ var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) =>
|
|
|
1446
1463
|
return InternalTransactionOpCall2;
|
|
1447
1464
|
})(InternalTransactionOpCall || {});
|
|
1448
1465
|
|
|
1449
|
-
var ListingCurrencyType = /* @__PURE__ */ ((ListingCurrencyType2) => {
|
|
1450
|
-
ListingCurrencyType2["NATIVE"] = "NATIVE";
|
|
1451
|
-
ListingCurrencyType2["ERC20"] = "ERC20";
|
|
1452
|
-
return ListingCurrencyType2;
|
|
1453
|
-
})(ListingCurrencyType || {});
|
|
1454
|
-
|
|
1455
|
-
var ListingEventType = /* @__PURE__ */ ((ListingEventType2) => {
|
|
1456
|
-
ListingEventType2["OPEN_LISTING"] = "OPEN_LISTING";
|
|
1457
|
-
ListingEventType2["CANCEL_LISTING"] = "CANCEL_LISTING";
|
|
1458
|
-
ListingEventType2["PURCHASE_LISTING"] = "PURCHASE_LISTING";
|
|
1459
|
-
ListingEventType2["CLOSE_AUCTION"] = "CLOSE_AUCTION";
|
|
1460
|
-
return ListingEventType2;
|
|
1461
|
-
})(ListingEventType || {});
|
|
1462
|
-
|
|
1463
|
-
var ListingsSortByOption = /* @__PURE__ */ ((ListingsSortByOption2) => {
|
|
1464
|
-
ListingsSortByOption2["LAST_EVENT_TIMESTAMP"] = "lastEventTimestamp";
|
|
1465
|
-
return ListingsSortByOption2;
|
|
1466
|
-
})(ListingsSortByOption || {});
|
|
1467
|
-
|
|
1468
|
-
var ListingType = /* @__PURE__ */ ((ListingType2) => {
|
|
1469
|
-
ListingType2["SALE"] = "SALE";
|
|
1470
|
-
ListingType2["AUCTION"] = "AUCTION";
|
|
1471
|
-
return ListingType2;
|
|
1472
|
-
})(ListingType || {});
|
|
1473
|
-
|
|
1474
1466
|
var Network = /* @__PURE__ */ ((Network2) => {
|
|
1475
1467
|
Network2["MAINNET"] = "mainnet";
|
|
1476
1468
|
Network2["FUJI"] = "fuji";
|
|
@@ -1483,12 +1475,6 @@ var NetworkType = /* @__PURE__ */ ((NetworkType2) => {
|
|
|
1483
1475
|
return NetworkType2;
|
|
1484
1476
|
})(NetworkType || {});
|
|
1485
1477
|
|
|
1486
|
-
var NftSearchResultTypeOption = /* @__PURE__ */ ((NftSearchResultTypeOption2) => {
|
|
1487
|
-
NftSearchResultTypeOption2["TOKEN"] = "token";
|
|
1488
|
-
NftSearchResultTypeOption2["COLLECTION"] = "collection";
|
|
1489
|
-
return NftSearchResultTypeOption2;
|
|
1490
|
-
})(NftSearchResultTypeOption || {});
|
|
1491
|
-
|
|
1492
1478
|
var NftTokenMetadataStatus = /* @__PURE__ */ ((NftTokenMetadataStatus2) => {
|
|
1493
1479
|
NftTokenMetadataStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1494
1480
|
NftTokenMetadataStatus2["MISSING_TOKEN"] = "MISSING_TOKEN";
|
|
@@ -1547,18 +1533,24 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1547
1533
|
return PChainTransactionType2;
|
|
1548
1534
|
})(PChainTransactionType || {});
|
|
1549
1535
|
|
|
1550
|
-
var
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1536
|
+
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
1537
|
+
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1538
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1539
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1540
|
+
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1541
|
+
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1542
|
+
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
1543
|
+
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
1544
|
+
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
1545
|
+
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
1546
|
+
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
1547
|
+
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
1548
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1549
|
+
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
1550
|
+
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
1551
|
+
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
1552
|
+
return PrimaryNetworkTxType2;
|
|
1553
|
+
})(PrimaryNetworkTxType || {});
|
|
1562
1554
|
|
|
1563
1555
|
var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
1564
1556
|
ResourceLinkType2["BLOG"] = "Blog";
|
|
@@ -1620,6 +1612,11 @@ var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
|
|
|
1620
1612
|
return UtxoType2;
|
|
1621
1613
|
})(UtxoType || {});
|
|
1622
1614
|
|
|
1615
|
+
var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
1616
|
+
ValidationStatusType2["COMPLETED"] = "completed";
|
|
1617
|
+
return ValidationStatusType2;
|
|
1618
|
+
})(ValidationStatusType || {});
|
|
1619
|
+
|
|
1623
1620
|
var VmName = /* @__PURE__ */ ((VmName2) => {
|
|
1624
1621
|
VmName2["EVM"] = "EVM";
|
|
1625
1622
|
VmName2["BITCOIN"] = "BITCOIN";
|
|
@@ -1664,13 +1661,8 @@ exports.EvmService = EvmService;
|
|
|
1664
1661
|
exports.Glacier = Glacier;
|
|
1665
1662
|
exports.HealthCheckService = HealthCheckService;
|
|
1666
1663
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1667
|
-
exports.ListingCurrencyType = ListingCurrencyType;
|
|
1668
|
-
exports.ListingEventType = ListingEventType;
|
|
1669
|
-
exports.ListingType = ListingType;
|
|
1670
|
-
exports.ListingsSortByOption = ListingsSortByOption;
|
|
1671
1664
|
exports.Network = Network;
|
|
1672
1665
|
exports.NetworkType = NetworkType;
|
|
1673
|
-
exports.NftSearchResultTypeOption = NftSearchResultTypeOption;
|
|
1674
1666
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1675
1667
|
exports.OpenAPI = OpenAPI;
|
|
1676
1668
|
exports.OperationStatus = OperationStatus;
|
|
@@ -1679,9 +1671,8 @@ exports.OperationType = OperationType;
|
|
|
1679
1671
|
exports.OperationsService = OperationsService;
|
|
1680
1672
|
exports.PChainId = PChainId;
|
|
1681
1673
|
exports.PChainTransactionType = PChainTransactionType;
|
|
1682
|
-
exports.PrimaryNetwork = PrimaryNetwork;
|
|
1683
|
-
exports.PrimaryNetworkChainName = PrimaryNetworkChainName;
|
|
1684
1674
|
exports.PrimaryNetworkService = PrimaryNetworkService;
|
|
1675
|
+
exports.PrimaryNetworkTxType = PrimaryNetworkTxType;
|
|
1685
1676
|
exports.ResourceLinkType = ResourceLinkType;
|
|
1686
1677
|
exports.RewardType = RewardType;
|
|
1687
1678
|
exports.SortOrder = SortOrder;
|
|
@@ -1689,5 +1680,6 @@ exports.TransactionMethodType = TransactionMethodType;
|
|
|
1689
1680
|
exports.TransactionStatus = TransactionStatus;
|
|
1690
1681
|
exports.TrendingTimeframe = TrendingTimeframe;
|
|
1691
1682
|
exports.UtxoType = UtxoType;
|
|
1683
|
+
exports.ValidationStatusType = ValidationStatusType;
|
|
1692
1684
|
exports.VmName = VmName;
|
|
1693
1685
|
exports.XChainId = XChainId;
|
|
@@ -6,10 +6,7 @@ import { VmName } from './VmName.js';
|
|
|
6
6
|
type ChainInfo = {
|
|
7
7
|
chainId: string;
|
|
8
8
|
/**
|
|
9
|
-
* Status of chain nodes. Chain nodes can become temporarily
|
|
10
|
-
* `UNAVAILABLE` for several reasons, such as validator stake falling
|
|
11
|
-
* below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
|
|
12
|
-
* on data from the chain nodes may return 503 errors.
|
|
9
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
13
10
|
*/
|
|
14
11
|
status: ChainStatus;
|
|
15
12
|
chainName: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Rewards } from './Rewards.js';
|
|
2
|
+
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
|
+
|
|
4
|
+
type CompletedValidatorDetails = {
|
|
5
|
+
nodeId: string;
|
|
6
|
+
amountStaked: string;
|
|
7
|
+
delegationFee: string;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
endTimestamp: number;
|
|
10
|
+
validationStatus: ValidationStatusType;
|
|
11
|
+
delegatorCount: number;
|
|
12
|
+
rewards: Rewards;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { CompletedValidatorDetails };
|
|
@@ -2,7 +2,15 @@ import { EvmNetworkOptions } from './EvmNetworkOptions.js';
|
|
|
2
2
|
|
|
3
3
|
type CreateEvmTransactionExportRequest = {
|
|
4
4
|
type: CreateEvmTransactionExportRequest.type;
|
|
5
|
+
firstDate: string;
|
|
6
|
+
lastDate: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
5
10
|
startDate: string;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
6
14
|
endDate: string;
|
|
7
15
|
options: EvmNetworkOptions;
|
|
8
16
|
};
|
|
@@ -2,7 +2,15 @@ import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
|
|
|
2
2
|
|
|
3
3
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
4
4
|
type: CreatePrimaryNetworkTransactionExportRequest.type;
|
|
5
|
+
firstDate: string;
|
|
6
|
+
lastDate: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
5
10
|
startDate: string;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
6
14
|
endDate: string;
|
|
7
15
|
options: PrimaryNetworkOptions;
|
|
8
16
|
};
|
|
@@ -14,8 +14,7 @@ type Erc1155TokenBalance = {
|
|
|
14
14
|
*/
|
|
15
15
|
chainId: string;
|
|
16
16
|
/**
|
|
17
|
-
* The address balance for the token, in units specified by the
|
|
18
|
-
* `decimals` value for the contract.
|
|
17
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
19
18
|
*/
|
|
20
19
|
balance: string;
|
|
21
20
|
};
|
|
@@ -14,9 +14,7 @@ type Erc20Token = {
|
|
|
14
14
|
*/
|
|
15
15
|
symbol: string;
|
|
16
16
|
/**
|
|
17
|
-
* The number of decimals the token uses. For example `6`,
|
|
18
|
-
* means to divide the token amount by `1000000` to get its user
|
|
19
|
-
* representation.
|
|
17
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
20
18
|
*/
|
|
21
19
|
decimals: number;
|
|
22
20
|
/**
|
|
@@ -14,9 +14,7 @@ type Erc20TokenBalance = {
|
|
|
14
14
|
*/
|
|
15
15
|
symbol: string;
|
|
16
16
|
/**
|
|
17
|
-
* The number of decimals the token uses. For example `6`,
|
|
18
|
-
* means to divide the token amount by `1000000` to get its user
|
|
19
|
-
* representation.
|
|
17
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
20
18
|
*/
|
|
21
19
|
decimals: number;
|
|
22
20
|
/**
|
|
@@ -33,8 +31,7 @@ type Erc20TokenBalance = {
|
|
|
33
31
|
*/
|
|
34
32
|
chainId: string;
|
|
35
33
|
/**
|
|
36
|
-
* The address balance for the token, in units specified by the
|
|
37
|
-
* `decimals` value for the contract.
|
|
34
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
38
35
|
*/
|
|
39
36
|
balance: string;
|
|
40
37
|
/**
|
|
@@ -6,10 +6,7 @@ import { VmName } from './VmName.js';
|
|
|
6
6
|
type GetChainResponse = {
|
|
7
7
|
chainId: string;
|
|
8
8
|
/**
|
|
9
|
-
* Status of chain nodes. Chain nodes can become temporarily
|
|
10
|
-
* `UNAVAILABLE` for several reasons, such as validator stake falling
|
|
11
|
-
* below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
|
|
12
|
-
* on data from the chain nodes may return 503 errors.
|
|
9
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
13
10
|
*/
|
|
14
11
|
status: ChainStatus;
|
|
15
12
|
chainName: string;
|
|
@@ -2,8 +2,8 @@ import { DelegatorsDetails } from './DelegatorsDetails.js';
|
|
|
2
2
|
import { ValidatorsDetails } from './ValidatorsDetails.js';
|
|
3
3
|
|
|
4
4
|
type GetNetworkDetailsResponse = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
validatorDetails: ValidatorsDetails;
|
|
6
|
+
delegatorDetails: DelegatorsDetails;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { GetNetworkDetailsResponse };
|
|
@@ -19,13 +19,7 @@ type GetTransactionResponse = {
|
|
|
19
19
|
*/
|
|
20
20
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
21
21
|
/**
|
|
22
|
-
* The list of internal transactions. Note that this list only
|
|
23
|
-
* includes CALL and
|
|
24
|
-
* CALLCODE internal transactions that had a
|
|
25
|
-
* non-zero value and
|
|
26
|
-
* CREATE/CREATE2
|
|
27
|
-
* calls. Use a client provider to recieve a full debug trace of the
|
|
28
|
-
* transaction.
|
|
22
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
29
23
|
*/
|
|
30
24
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
31
25
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { RewardType } from './RewardType.js';
|
|
3
|
+
|
|
4
|
+
type HistoricalReward = {
|
|
5
|
+
/**
|
|
6
|
+
* An array of P-Chain wallet addresses.
|
|
7
|
+
*/
|
|
8
|
+
addresses: Array<string>;
|
|
9
|
+
txHash: string;
|
|
10
|
+
amountStaked: string;
|
|
11
|
+
nodeId: string;
|
|
12
|
+
startTimestamp: number;
|
|
13
|
+
endTimestamp: number;
|
|
14
|
+
rewardType: RewardType;
|
|
15
|
+
utxoId: string;
|
|
16
|
+
outputIndex: number;
|
|
17
|
+
/**
|
|
18
|
+
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
19
|
+
*/
|
|
20
|
+
reward: PChainAsset;
|
|
21
|
+
rewardTxHash: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { HistoricalReward };
|
|
@@ -7,8 +7,7 @@ type ListCollectibleBalancesResponse = {
|
|
|
7
7
|
*/
|
|
8
8
|
nextPageToken?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The list of ERC-721 and ERC-1155 token balances for the
|
|
11
|
-
* address.
|
|
10
|
+
* The list of ERC-721 and ERC-1155 token balances for the address.
|
|
12
11
|
*/
|
|
13
12
|
collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
|
|
14
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HistoricalReward } from './HistoricalReward.js';
|
|
2
|
+
|
|
3
|
+
type ListHistoricalRewardsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
historicalRewards: Array<HistoricalReward>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListHistoricalRewardsResponse };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PendingReward } from './PendingReward.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type ListPendingRewardsResponse = {
|
|
4
4
|
/**
|
|
5
5
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
6
|
*/
|
|
7
7
|
nextPageToken?: string;
|
|
8
|
-
|
|
8
|
+
pendingRewards: Array<PendingReward>;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { ListPendingRewardsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
|
|
2
|
+
|
|
3
|
+
type ListValidatorDetailsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
validators: Array<CompletedValidatorDetails>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListValidatorDetailsResponse };
|
|
@@ -2,13 +2,7 @@ import { TransactionMethodType } from './TransactionMethodType.js';
|
|
|
2
2
|
|
|
3
3
|
type Method = {
|
|
4
4
|
/**
|
|
5
|
-
* The contract call type.
|
|
6
|
-
* NATIVE_TRANSFER indicates a transfer of the
|
|
7
|
-
* native token without any smart-contract interaction.
|
|
8
|
-
* CONTRACT_CALL indicates a smart-contract
|
|
9
|
-
* interaction.
|
|
10
|
-
* CONTRACT_CREATION indicates a smart-contract
|
|
11
|
-
* creation.
|
|
5
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
12
6
|
*/
|
|
13
7
|
callType: TransactionMethodType;
|
|
14
8
|
/**
|
|
@@ -10,9 +10,7 @@ type NativeTokenBalance = {
|
|
|
10
10
|
*/
|
|
11
11
|
symbol: string;
|
|
12
12
|
/**
|
|
13
|
-
* The number of decimals the token uses. For example `6`,
|
|
14
|
-
* means to divide the token amount by `1000000` to get its user
|
|
15
|
-
* representation.
|
|
13
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
16
14
|
*/
|
|
17
15
|
decimals: number;
|
|
18
16
|
/**
|
|
@@ -28,8 +26,7 @@ type NativeTokenBalance = {
|
|
|
28
26
|
*/
|
|
29
27
|
price?: Money;
|
|
30
28
|
/**
|
|
31
|
-
* The address balance for the token, in units specified by the
|
|
32
|
-
* `decimals` value for the contract.
|
|
29
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
33
30
|
*/
|
|
34
31
|
balance: string;
|
|
35
32
|
/**
|
|
@@ -8,9 +8,7 @@ type NetworkToken = {
|
|
|
8
8
|
*/
|
|
9
9
|
symbol: string;
|
|
10
10
|
/**
|
|
11
|
-
* The number of decimals the token uses. For example `6`,
|
|
12
|
-
* means to divide the token amount by `1000000` to get its user
|
|
13
|
-
* representation.
|
|
11
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
14
12
|
*/
|
|
15
13
|
decimals: number;
|
|
16
14
|
/**
|