@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.f0b0684.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 +305 -185
- package/dist/index.js +116 -0
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +6 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +6 -2
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +6 -2
- package/esm/generated/models/CompletedValidatorDetails.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/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -3
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/services/EvmContractsService.d.ts +29 -0
- package/esm/generated/services/EvmContractsService.js +20 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +20 -0
- package/esm/generated/services/EvmTransactionsService.js +13 -0
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +8 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -524,6 +524,25 @@ class EvmChainsService {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
+
class EvmContractsService {
|
|
528
|
+
constructor(httpRequest) {
|
|
529
|
+
this.httpRequest = httpRequest;
|
|
530
|
+
}
|
|
531
|
+
getContractMetadata({
|
|
532
|
+
chainId,
|
|
533
|
+
address
|
|
534
|
+
}) {
|
|
535
|
+
return this.httpRequest.request({
|
|
536
|
+
method: "GET",
|
|
537
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
538
|
+
path: {
|
|
539
|
+
"chainId": chainId,
|
|
540
|
+
"address": address
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
527
546
|
class EvmTransactionsService {
|
|
528
547
|
constructor(httpRequest) {
|
|
529
548
|
this.httpRequest = httpRequest;
|
|
@@ -564,6 +583,19 @@ class EvmTransactionsService {
|
|
|
564
583
|
}
|
|
565
584
|
});
|
|
566
585
|
}
|
|
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
|
+
}
|
|
567
599
|
listTransfers({
|
|
568
600
|
chainId,
|
|
569
601
|
address,
|
|
@@ -789,6 +821,42 @@ class HealthCheckService {
|
|
|
789
821
|
}
|
|
790
822
|
}
|
|
791
823
|
|
|
824
|
+
class NfTsService {
|
|
825
|
+
constructor(httpRequest) {
|
|
826
|
+
this.httpRequest = httpRequest;
|
|
827
|
+
}
|
|
828
|
+
reindexNft({
|
|
829
|
+
chainId,
|
|
830
|
+
address,
|
|
831
|
+
tokenId
|
|
832
|
+
}) {
|
|
833
|
+
return this.httpRequest.request({
|
|
834
|
+
method: "POST",
|
|
835
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
836
|
+
path: {
|
|
837
|
+
"chainId": chainId,
|
|
838
|
+
"address": address,
|
|
839
|
+
"tokenId": tokenId
|
|
840
|
+
}
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
getTokenDetails({
|
|
844
|
+
chainId,
|
|
845
|
+
address,
|
|
846
|
+
tokenId
|
|
847
|
+
}) {
|
|
848
|
+
return this.httpRequest.request({
|
|
849
|
+
method: "GET",
|
|
850
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
851
|
+
path: {
|
|
852
|
+
"chainId": chainId,
|
|
853
|
+
"address": address,
|
|
854
|
+
"tokenId": tokenId
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
792
860
|
class OperationsService {
|
|
793
861
|
constructor(httpRequest) {
|
|
794
862
|
this.httpRequest = httpRequest;
|
|
@@ -1314,8 +1382,10 @@ class Glacier {
|
|
|
1314
1382
|
evmBalances;
|
|
1315
1383
|
evmBlocks;
|
|
1316
1384
|
evmChains;
|
|
1385
|
+
evmContracts;
|
|
1317
1386
|
evmTransactions;
|
|
1318
1387
|
healthCheck;
|
|
1388
|
+
nfTs;
|
|
1319
1389
|
operations;
|
|
1320
1390
|
primaryNetwork;
|
|
1321
1391
|
primaryNetworkBalances;
|
|
@@ -1340,8 +1410,10 @@ class Glacier {
|
|
|
1340
1410
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
1341
1411
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
1342
1412
|
this.evmChains = new EvmChainsService(this.request);
|
|
1413
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
1343
1414
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
1344
1415
|
this.healthCheck = new HealthCheckService(this.request);
|
|
1416
|
+
this.nfTs = new NfTsService(this.request);
|
|
1345
1417
|
this.operations = new OperationsService(this.request);
|
|
1346
1418
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
1347
1419
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1365,6 +1437,20 @@ const OpenAPI = {
|
|
|
1365
1437
|
ENCODE_PATH: void 0
|
|
1366
1438
|
};
|
|
1367
1439
|
|
|
1440
|
+
exports.ActiveDelegatorDetails = void 0;
|
|
1441
|
+
((ActiveDelegatorDetails2) => {
|
|
1442
|
+
((delegationStatus2) => {
|
|
1443
|
+
delegationStatus2["ACTIVE"] = "active";
|
|
1444
|
+
})(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
|
|
1445
|
+
})(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
|
|
1446
|
+
|
|
1447
|
+
exports.ActiveValidatorDetails = void 0;
|
|
1448
|
+
((ActiveValidatorDetails2) => {
|
|
1449
|
+
((validationStatus2) => {
|
|
1450
|
+
validationStatus2["ACTIVE"] = "active";
|
|
1451
|
+
})(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
|
|
1452
|
+
})(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
|
|
1453
|
+
|
|
1368
1454
|
var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
|
|
1369
1455
|
BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
|
|
1370
1456
|
BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
@@ -1406,6 +1492,20 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
|
|
|
1406
1492
|
return ChainStatus2;
|
|
1407
1493
|
})(ChainStatus || {});
|
|
1408
1494
|
|
|
1495
|
+
exports.CompletedDelegatorDetails = void 0;
|
|
1496
|
+
((CompletedDelegatorDetails2) => {
|
|
1497
|
+
((delegationStatus2) => {
|
|
1498
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
1499
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
1500
|
+
})(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
|
|
1501
|
+
|
|
1502
|
+
exports.CompletedValidatorDetails = void 0;
|
|
1503
|
+
((CompletedValidatorDetails2) => {
|
|
1504
|
+
((validationStatus2) => {
|
|
1505
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
1506
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
1507
|
+
})(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
|
|
1508
|
+
|
|
1409
1509
|
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1410
1510
|
((CreateEvmTransactionExportRequest2) => {
|
|
1411
1511
|
((type2) => {
|
|
@@ -1589,6 +1689,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1589
1689
|
return PChainTransactionType2;
|
|
1590
1690
|
})(PChainTransactionType || {});
|
|
1591
1691
|
|
|
1692
|
+
exports.PendingDelegatorDetails = void 0;
|
|
1693
|
+
((PendingDelegatorDetails2) => {
|
|
1694
|
+
((delegationStatus2) => {
|
|
1695
|
+
delegationStatus2["PENDING"] = "pending";
|
|
1696
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
1697
|
+
})(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
|
|
1698
|
+
|
|
1699
|
+
exports.PendingValidatorDetails = void 0;
|
|
1700
|
+
((PendingValidatorDetails2) => {
|
|
1701
|
+
((validationStatus2) => {
|
|
1702
|
+
validationStatus2["PENDING"] = "pending";
|
|
1703
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
1704
|
+
})(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
|
|
1705
|
+
|
|
1592
1706
|
var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
|
|
1593
1707
|
PrimaryNetwork2["MAINNET"] = "mainnet";
|
|
1594
1708
|
PrimaryNetwork2["FUJI"] = "fuji";
|
|
@@ -1730,12 +1844,14 @@ exports.DelegationStatusType = DelegationStatusType;
|
|
|
1730
1844
|
exports.EvmBalancesService = EvmBalancesService;
|
|
1731
1845
|
exports.EvmBlocksService = EvmBlocksService;
|
|
1732
1846
|
exports.EvmChainsService = EvmChainsService;
|
|
1847
|
+
exports.EvmContractsService = EvmContractsService;
|
|
1733
1848
|
exports.EvmTransactionsService = EvmTransactionsService;
|
|
1734
1849
|
exports.Glacier = Glacier;
|
|
1735
1850
|
exports.HealthCheckService = HealthCheckService;
|
|
1736
1851
|
exports.InternalTransactionOpCall = InternalTransactionOpCall;
|
|
1737
1852
|
exports.Network = Network;
|
|
1738
1853
|
exports.NetworkType = NetworkType;
|
|
1854
|
+
exports.NfTsService = NfTsService;
|
|
1739
1855
|
exports.NftTokenMetadataStatus = NftTokenMetadataStatus;
|
|
1740
1856
|
exports.OpenAPI = OpenAPI;
|
|
1741
1857
|
exports.OperationStatus = OperationStatus;
|
|
@@ -3,8 +3,10 @@ import { OpenAPIConfig } from './core/OpenAPI.js';
|
|
|
3
3
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
4
4
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
5
5
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
6
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
6
7
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
7
8
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
9
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
8
10
|
import { OperationsService } from './services/OperationsService.js';
|
|
9
11
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
10
12
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -19,8 +21,10 @@ declare class Glacier {
|
|
|
19
21
|
readonly evmBalances: EvmBalancesService;
|
|
20
22
|
readonly evmBlocks: EvmBlocksService;
|
|
21
23
|
readonly evmChains: EvmChainsService;
|
|
24
|
+
readonly evmContracts: EvmContractsService;
|
|
22
25
|
readonly evmTransactions: EvmTransactionsService;
|
|
23
26
|
readonly healthCheck: HealthCheckService;
|
|
27
|
+
readonly nfTs: NfTsService;
|
|
24
28
|
readonly operations: OperationsService;
|
|
25
29
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
26
30
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -2,8 +2,10 @@ import { FetchHttpRequest } from './core/FetchHttpRequest.js';
|
|
|
2
2
|
import { EvmBalancesService } from './services/EvmBalancesService.js';
|
|
3
3
|
import { EvmBlocksService } from './services/EvmBlocksService.js';
|
|
4
4
|
import { EvmChainsService } from './services/EvmChainsService.js';
|
|
5
|
+
import { EvmContractsService } from './services/EvmContractsService.js';
|
|
5
6
|
import { EvmTransactionsService } from './services/EvmTransactionsService.js';
|
|
6
7
|
import { HealthCheckService } from './services/HealthCheckService.js';
|
|
8
|
+
import { NfTsService } from './services/NfTsService.js';
|
|
7
9
|
import { OperationsService } from './services/OperationsService.js';
|
|
8
10
|
import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
|
|
9
11
|
import { PrimaryNetworkBalancesService } from './services/PrimaryNetworkBalancesService.js';
|
|
@@ -17,8 +19,10 @@ class Glacier {
|
|
|
17
19
|
evmBalances;
|
|
18
20
|
evmBlocks;
|
|
19
21
|
evmChains;
|
|
22
|
+
evmContracts;
|
|
20
23
|
evmTransactions;
|
|
21
24
|
healthCheck;
|
|
25
|
+
nfTs;
|
|
22
26
|
operations;
|
|
23
27
|
primaryNetwork;
|
|
24
28
|
primaryNetworkBalances;
|
|
@@ -43,8 +47,10 @@ class Glacier {
|
|
|
43
47
|
this.evmBalances = new EvmBalancesService(this.request);
|
|
44
48
|
this.evmBlocks = new EvmBlocksService(this.request);
|
|
45
49
|
this.evmChains = new EvmChainsService(this.request);
|
|
50
|
+
this.evmContracts = new EvmContractsService(this.request);
|
|
46
51
|
this.evmTransactions = new EvmTransactionsService(this.request);
|
|
47
52
|
this.healthCheck = new HealthCheckService(this.request);
|
|
53
|
+
this.nfTs = new NfTsService(this.request);
|
|
48
54
|
this.operations = new OperationsService(this.request);
|
|
49
55
|
this.primaryNetwork = new PrimaryNetworkService(this.request);
|
|
50
56
|
this.primaryNetworkBalances = new PrimaryNetworkBalancesService(this.request);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type ActiveDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
5
3
|
rewardAddresses: Array<string>;
|
|
@@ -7,9 +5,14 @@ type ActiveDelegatorDetails = {
|
|
|
7
5
|
delegationFee: string;
|
|
8
6
|
startTimestamp: number;
|
|
9
7
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
8
|
estimatedGrossReward: string;
|
|
12
9
|
estimatedNetReward: string;
|
|
10
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
13
11
|
};
|
|
12
|
+
declare namespace ActiveDelegatorDetails {
|
|
13
|
+
enum delegationStatus {
|
|
14
|
+
ACTIVE = "active"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
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,5 +1,4 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
2
|
|
|
4
3
|
type ActiveValidatorDetails = {
|
|
5
4
|
nodeId: string;
|
|
@@ -7,7 +6,6 @@ type ActiveValidatorDetails = {
|
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
9
|
stakePercentage: number;
|
|
12
10
|
delegatorCount: number;
|
|
13
11
|
amountDelegated: string;
|
|
@@ -15,6 +13,12 @@ type ActiveValidatorDetails = {
|
|
|
15
13
|
avalancheGoVersion: string;
|
|
16
14
|
delegationCapacity: string;
|
|
17
15
|
potentialRewards: Rewards;
|
|
16
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
18
17
|
};
|
|
18
|
+
declare namespace ActiveValidatorDetails {
|
|
19
|
+
enum validationStatus {
|
|
20
|
+
ACTIVE = "active"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
19
23
|
|
|
20
24
|
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,5 +1,3 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type CompletedDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
5
3
|
rewardAddresses: Array<string>;
|
|
@@ -7,9 +5,14 @@ type CompletedDelegatorDetails = {
|
|
|
7
5
|
delegationFee: string;
|
|
8
6
|
startTimestamp: number;
|
|
9
7
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
8
|
grossReward: string;
|
|
12
9
|
netReward: string;
|
|
10
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
13
11
|
};
|
|
12
|
+
declare namespace CompletedDelegatorDetails {
|
|
13
|
+
enum delegationStatus {
|
|
14
|
+
COMPLETED = "completed"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
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,5 +1,4 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
2
|
|
|
4
3
|
type CompletedValidatorDetails = {
|
|
5
4
|
nodeId: string;
|
|
@@ -7,9 +6,14 @@ type CompletedValidatorDetails = {
|
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
9
|
delegatorCount: number;
|
|
12
10
|
rewards: Rewards;
|
|
11
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace CompletedValidatorDetails {
|
|
14
|
+
enum validationStatus {
|
|
15
|
+
COMPLETED = "completed"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc1155Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc1155Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -26,6 +26,7 @@ type Erc1155Contract = {
|
|
|
26
26
|
* The contract symbol.
|
|
27
27
|
*/
|
|
28
28
|
symbol?: string;
|
|
29
|
+
pricingProviders?: PricingProviders;
|
|
29
30
|
};
|
|
30
31
|
declare namespace Erc1155Contract {
|
|
31
32
|
enum ercType {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc20Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc20Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -30,6 +30,7 @@ type Erc20Contract = {
|
|
|
30
30
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
31
31
|
*/
|
|
32
32
|
decimals: number;
|
|
33
|
+
pricingProviders?: PricingProviders;
|
|
33
34
|
};
|
|
34
35
|
declare namespace Erc20Contract {
|
|
35
36
|
enum ercType {
|
|
@@ -8,7 +8,7 @@ type ListContractsResponse = {
|
|
|
8
8
|
* 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.
|
|
9
9
|
*/
|
|
10
10
|
nextPageToken?: string;
|
|
11
|
-
contracts: Array<(
|
|
11
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { ListContractsResponse };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
5
3
|
rewardAddresses: Array<string>;
|
|
@@ -7,9 +5,14 @@ type PendingDelegatorDetails = {
|
|
|
7
5
|
delegationFee: string;
|
|
8
6
|
startTimestamp: number;
|
|
9
7
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
8
|
estimatedGrossReward: string;
|
|
12
9
|
estimatedNetReward: string;
|
|
10
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
13
11
|
};
|
|
12
|
+
declare namespace PendingDelegatorDetails {
|
|
13
|
+
enum delegationStatus {
|
|
14
|
+
PENDING = "pending"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingDelegatorDetails;
|
|
2
|
+
((PendingDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingDelegatorDetails };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingValidatorDetails = {
|
|
4
2
|
nodeId: string;
|
|
5
3
|
amountStaked: string;
|
|
6
4
|
delegationFee: string;
|
|
7
5
|
startTimestamp: number;
|
|
8
6
|
endTimestamp: number;
|
|
9
|
-
validationStatus:
|
|
7
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
10
8
|
};
|
|
9
|
+
declare namespace PendingValidatorDetails {
|
|
10
|
+
enum validationStatus {
|
|
11
|
+
PENDING = "pending"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
11
14
|
|
|
12
15
|
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingValidatorDetails;
|
|
2
|
+
((PendingValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(PendingValidatorDetails || (PendingValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from '../models/UnknownContract.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class EvmContractsService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* Get contract metadata
|
|
13
|
+
* Gets metadata about the contract at the given address.
|
|
14
|
+
* @returns any
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getContractMetadata({ chainId, address, }: {
|
|
18
|
+
/**
|
|
19
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
20
|
+
*/
|
|
21
|
+
chainId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Contract address on the relevant chain.
|
|
24
|
+
*/
|
|
25
|
+
address: string;
|
|
26
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { EvmContractsService };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class EvmContractsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getContractMetadata({
|
|
6
|
+
chainId,
|
|
7
|
+
address
|
|
8
|
+
}) {
|
|
9
|
+
return this.httpRequest.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
12
|
+
path: {
|
|
13
|
+
"chainId": chainId,
|
|
14
|
+
"address": address
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { EvmContractsService };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
2
|
+
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
3
|
+
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
4
|
+
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
2
5
|
import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
|
|
3
6
|
import { ListContractsResponse } from '../models/ListContractsResponse.js';
|
|
4
7
|
import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
|
|
@@ -10,6 +13,7 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
|
|
|
10
13
|
import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
|
|
11
14
|
import { SortOrder } from '../models/SortOrder.js';
|
|
12
15
|
import { TransactionStatus } from '../models/TransactionStatus.js';
|
|
16
|
+
import { UnknownContract } from '../models/UnknownContract.js';
|
|
13
17
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
14
18
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
15
19
|
|
|
@@ -60,6 +64,22 @@ declare class EvmTransactionsService {
|
|
|
60
64
|
*/
|
|
61
65
|
pageToken?: string;
|
|
62
66
|
}): CancelablePromise<ListContractsResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Get contract metadata
|
|
69
|
+
* Gets metadata about the contract at the given address.
|
|
70
|
+
* @returns any
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
getContractMetadata({ chainId, address, }: {
|
|
74
|
+
/**
|
|
75
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
76
|
+
*/
|
|
77
|
+
chainId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Contract address on the relevant chain.
|
|
80
|
+
*/
|
|
81
|
+
address: string;
|
|
82
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
63
83
|
/**
|
|
64
84
|
* List ERC transfers
|
|
65
85
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -38,6 +38,19 @@ class EvmTransactionsService {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
getContractMetadata({
|
|
42
|
+
chainId,
|
|
43
|
+
address
|
|
44
|
+
}) {
|
|
45
|
+
return this.httpRequest.request({
|
|
46
|
+
method: "GET",
|
|
47
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
48
|
+
path: {
|
|
49
|
+
"chainId": chainId,
|
|
50
|
+
"address": address
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
41
54
|
listTransfers({
|
|
42
55
|
chainId,
|
|
43
56
|
address,
|