@avalabs/glacier-sdk 2.8.0-canary.d3f0d0e.0 → 2.8.0-canary.d6173b4.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/LICENSE.md +9 -0
- package/dist/index.d.ts +30 -28
- package/dist/index.js +1 -2281
- package/esm/generated/Glacier.js +1 -77
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.js +1 -93
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -228
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/{RegisterWebhookRequest.d.ts → CreateWebhookRequest.d.ts} +4 -2
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -8
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -8
- package/esm/generated/models/EVMOperationType.js +1 -6
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/EventType.js +1 -6
- package/esm/generated/models/GlacierApiFeature.js +1 -7
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.js +1 -9
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainTransactionType.js +1 -21
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingTeleporterMessage.js +1 -8
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -8
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -23
- package/esm/generated/models/RemovedValidatorDetails.js +1 -8
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/SortByOption.js +1 -10
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/TeleporterRewardDetails.js +1 -8
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.js +1 -9
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookStatus.js +1 -7
- package/esm/generated/models/WebhookStatusType.js +1 -7
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainTransactionType.js +1 -11
- package/esm/generated/services/DefaultService.js +1 -13
- package/esm/generated/services/EvmBalancesService.js +1 -118
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.js +1 -31
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.js +1 -56
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
- package/esm/generated/services/PrimaryNetworkService.js +1 -177
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.js +1 -24
- package/esm/generated/services/TeleporterService.js +1 -41
- package/esm/generated/services/WebhooksService.d.ts +3 -3
- package/esm/generated/services/WebhooksService.js +1 -125
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -89
- package/package.json +2 -2
|
@@ -1,9 +1 @@
|
|
|
1
|
-
var XChainLinearTransaction;
|
|
2
|
-
((XChainLinearTransaction2) => {
|
|
3
|
-
((chainFormat2) => {
|
|
4
|
-
chainFormat2["NON_LINEAR"] = "non-linear";
|
|
5
|
-
chainFormat2["LINEAR"] = "linear";
|
|
6
|
-
})(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
|
|
7
|
-
})(XChainLinearTransaction || (XChainLinearTransaction = {}));
|
|
8
|
-
|
|
9
|
-
export { XChainLinearTransaction };
|
|
1
|
+
var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainLinearTransaction};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
var XChainNonLinearTransaction;
|
|
2
|
-
((XChainNonLinearTransaction2) => {
|
|
3
|
-
((chainFormat2) => {
|
|
4
|
-
chainFormat2["NON_LINEAR"] = "non-linear";
|
|
5
|
-
chainFormat2["LINEAR"] = "linear";
|
|
6
|
-
})(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
|
|
7
|
-
})(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
|
|
8
|
-
|
|
9
|
-
export { XChainNonLinearTransaction };
|
|
1
|
+
var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainNonLinearTransaction};
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
XChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
3
|
-
XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
4
|
-
XChainTransactionType2["OPERATION_TX"] = "OperationTx";
|
|
5
|
-
XChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
6
|
-
XChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
7
|
-
XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
8
|
-
return XChainTransactionType2;
|
|
9
|
-
})(XChainTransactionType || {});
|
|
10
|
-
|
|
11
|
-
export { XChainTransactionType };
|
|
1
|
+
var T=(T=>(T.BASE_TX="BaseTx",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as XChainTransactionType};
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
mediaControllerUploadImage() {
|
|
6
|
-
return this.httpRequest.request({
|
|
7
|
-
method: "POST",
|
|
8
|
-
url: "/v1/media/uploadImage"
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { DefaultService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}export{t as DefaultService};
|
|
@@ -1,118 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getNativeBalance({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
blockNumber,
|
|
9
|
-
currency
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:getNative",
|
|
14
|
-
path: {
|
|
15
|
-
"chainId": chainId,
|
|
16
|
-
"address": address
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"blockNumber": blockNumber,
|
|
20
|
-
"currency": currency
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
listErc20Balances({
|
|
25
|
-
chainId,
|
|
26
|
-
address,
|
|
27
|
-
blockNumber,
|
|
28
|
-
pageToken,
|
|
29
|
-
pageSize = 10,
|
|
30
|
-
filterSpamTokens = true,
|
|
31
|
-
contractAddresses,
|
|
32
|
-
currency
|
|
33
|
-
}) {
|
|
34
|
-
return this.httpRequest.request({
|
|
35
|
-
method: "GET",
|
|
36
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc20",
|
|
37
|
-
path: {
|
|
38
|
-
"chainId": chainId,
|
|
39
|
-
"address": address
|
|
40
|
-
},
|
|
41
|
-
query: {
|
|
42
|
-
"blockNumber": blockNumber,
|
|
43
|
-
"pageToken": pageToken,
|
|
44
|
-
"pageSize": pageSize,
|
|
45
|
-
"filterSpamTokens": filterSpamTokens,
|
|
46
|
-
"contractAddresses": contractAddresses,
|
|
47
|
-
"currency": currency
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
listErc721Balances({
|
|
52
|
-
chainId,
|
|
53
|
-
address,
|
|
54
|
-
pageToken,
|
|
55
|
-
pageSize = 10,
|
|
56
|
-
contractAddress
|
|
57
|
-
}) {
|
|
58
|
-
return this.httpRequest.request({
|
|
59
|
-
method: "GET",
|
|
60
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc721",
|
|
61
|
-
path: {
|
|
62
|
-
"chainId": chainId,
|
|
63
|
-
"address": address
|
|
64
|
-
},
|
|
65
|
-
query: {
|
|
66
|
-
"pageToken": pageToken,
|
|
67
|
-
"pageSize": pageSize,
|
|
68
|
-
"contractAddress": contractAddress
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
listErc1155Balances({
|
|
73
|
-
chainId,
|
|
74
|
-
address,
|
|
75
|
-
blockNumber,
|
|
76
|
-
pageToken,
|
|
77
|
-
pageSize = 10,
|
|
78
|
-
contractAddress
|
|
79
|
-
}) {
|
|
80
|
-
return this.httpRequest.request({
|
|
81
|
-
method: "GET",
|
|
82
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",
|
|
83
|
-
path: {
|
|
84
|
-
"chainId": chainId,
|
|
85
|
-
"address": address
|
|
86
|
-
},
|
|
87
|
-
query: {
|
|
88
|
-
"blockNumber": blockNumber,
|
|
89
|
-
"pageToken": pageToken,
|
|
90
|
-
"pageSize": pageSize,
|
|
91
|
-
"contractAddress": contractAddress
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
listCollectibleBalances({
|
|
96
|
-
chainId,
|
|
97
|
-
address,
|
|
98
|
-
pageToken,
|
|
99
|
-
pageSize = 10,
|
|
100
|
-
contractAddress
|
|
101
|
-
}) {
|
|
102
|
-
return this.httpRequest.request({
|
|
103
|
-
method: "GET",
|
|
104
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",
|
|
105
|
-
path: {
|
|
106
|
-
"chainId": chainId,
|
|
107
|
-
"address": address
|
|
108
|
-
},
|
|
109
|
-
query: {
|
|
110
|
-
"pageToken": pageToken,
|
|
111
|
-
"pageSize": pageSize,
|
|
112
|
-
"contractAddress": contractAddress
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export { EvmBalancesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:s,blockNumber:a,currency:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:s},query:{blockNumber:a,currency:r}})}listErc20Balances({chainId:e,address:s,blockNumber:a,pageToken:r,pageSize:t=10,filterSpamTokens:d=!0,contractAddresses:c,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:s},query:{blockNumber:a,pageToken:r,pageSize:t,filterSpamTokens:d,contractAddresses:c,currency:n}})}listErc721Balances({chainId:e,address:s,pageToken:a,pageSize:r=10,contractAddress:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:s},query:{pageToken:a,pageSize:r,contractAddress:t}})}listErc1155Balances({chainId:e,address:s,blockNumber:a,pageToken:r,pageSize:t=10,contractAddress:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:s},query:{blockNumber:a,pageToken:r,pageSize:t,contractAddress:d}})}listCollectibleBalances({chainId:e,address:s,pageToken:a,pageSize:r=10,contractAddress:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:s},query:{pageToken:a,pageSize:r,contractAddress:t}})}}export{e as EvmBalancesService};
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getLatestBlocks({
|
|
6
|
-
chainId,
|
|
7
|
-
pageToken,
|
|
8
|
-
pageSize = 10
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/chains/{chainId}/blocks",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId
|
|
15
|
-
},
|
|
16
|
-
query: {
|
|
17
|
-
"pageToken": pageToken,
|
|
18
|
-
"pageSize": pageSize
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
getBlock({
|
|
23
|
-
chainId,
|
|
24
|
-
blockId
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/chains/{chainId}/blocks/{blockId}",
|
|
29
|
-
path: {
|
|
30
|
-
"chainId": chainId,
|
|
31
|
-
"blockId": blockId
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { EvmBlocksService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:t,pageSize:c=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:t,pageSize:c}})}getBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:t}})}}export{e as EvmBlocksService};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
supportedChains({
|
|
6
|
-
network,
|
|
7
|
-
feature
|
|
8
|
-
}) {
|
|
9
|
-
return this.httpRequest.request({
|
|
10
|
-
method: "GET",
|
|
11
|
-
url: "/v1/chains",
|
|
12
|
-
query: {
|
|
13
|
-
"network": network,
|
|
14
|
-
"feature": feature
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
getChainInfo({
|
|
19
|
-
chainId
|
|
20
|
-
}) {
|
|
21
|
-
return this.httpRequest.request({
|
|
22
|
-
method: "GET",
|
|
23
|
-
url: "/v1/chains/{chainId}",
|
|
24
|
-
path: {
|
|
25
|
-
"chainId": chainId
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { EvmChainsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}supportedChains({network:t,feature:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:t,feature:e}})}getChainInfo({chainId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:t}})}}export{t as EvmChainsService};
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
class
|
|
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
|
-
updateContractInfo({
|
|
19
|
-
chainId,
|
|
20
|
-
address,
|
|
21
|
-
requestBody
|
|
22
|
-
}) {
|
|
23
|
-
return this.httpRequest.request({
|
|
24
|
-
method: "PATCH",
|
|
25
|
-
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
26
|
-
path: {
|
|
27
|
-
"chainId": chainId,
|
|
28
|
-
"address": address
|
|
29
|
-
},
|
|
30
|
-
body: requestBody,
|
|
31
|
-
mediaType: "application/json"
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { EvmContractsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getContractMetadata({chainId:t,address:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:t,address:s}})}updateContractInfo({chainId:t,address:s,requestBody:e}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:t,address:s},body:e,mediaType:"application/json"})}}export{t as EvmContractsService};
|
|
@@ -1,251 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getDeploymentTransaction({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
currency
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address
|
|
16
|
-
},
|
|
17
|
-
query: {
|
|
18
|
-
"currency": currency
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
listContractDeployments({
|
|
23
|
-
chainId,
|
|
24
|
-
address,
|
|
25
|
-
pageToken,
|
|
26
|
-
pageSize = 10
|
|
27
|
-
}) {
|
|
28
|
-
return this.httpRequest.request({
|
|
29
|
-
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
|
-
path: {
|
|
32
|
-
"chainId": chainId,
|
|
33
|
-
"address": address
|
|
34
|
-
},
|
|
35
|
-
query: {
|
|
36
|
-
"pageToken": pageToken,
|
|
37
|
-
"pageSize": pageSize
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
listTransfers({
|
|
42
|
-
chainId,
|
|
43
|
-
address,
|
|
44
|
-
startBlock,
|
|
45
|
-
endBlock,
|
|
46
|
-
pageToken,
|
|
47
|
-
pageSize = 10
|
|
48
|
-
}) {
|
|
49
|
-
return this.httpRequest.request({
|
|
50
|
-
method: "GET",
|
|
51
|
-
url: "/v1/chains/{chainId}/tokens/{address}/transfers",
|
|
52
|
-
path: {
|
|
53
|
-
"chainId": chainId,
|
|
54
|
-
"address": address
|
|
55
|
-
},
|
|
56
|
-
query: {
|
|
57
|
-
"startBlock": startBlock,
|
|
58
|
-
"endBlock": endBlock,
|
|
59
|
-
"pageToken": pageToken,
|
|
60
|
-
"pageSize": pageSize
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
listTransactions({
|
|
65
|
-
chainId,
|
|
66
|
-
address,
|
|
67
|
-
pageToken,
|
|
68
|
-
pageSize = 10,
|
|
69
|
-
startBlock,
|
|
70
|
-
endBlock,
|
|
71
|
-
sortOrder
|
|
72
|
-
}) {
|
|
73
|
-
return this.httpRequest.request({
|
|
74
|
-
method: "GET",
|
|
75
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions",
|
|
76
|
-
path: {
|
|
77
|
-
"chainId": chainId,
|
|
78
|
-
"address": address
|
|
79
|
-
},
|
|
80
|
-
query: {
|
|
81
|
-
"pageToken": pageToken,
|
|
82
|
-
"pageSize": pageSize,
|
|
83
|
-
"startBlock": startBlock,
|
|
84
|
-
"endBlock": endBlock,
|
|
85
|
-
"sortOrder": sortOrder
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
listNativeTransactions({
|
|
90
|
-
chainId,
|
|
91
|
-
address,
|
|
92
|
-
startBlock,
|
|
93
|
-
endBlock,
|
|
94
|
-
pageToken,
|
|
95
|
-
pageSize = 10
|
|
96
|
-
}) {
|
|
97
|
-
return this.httpRequest.request({
|
|
98
|
-
method: "GET",
|
|
99
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
|
|
100
|
-
path: {
|
|
101
|
-
"chainId": chainId,
|
|
102
|
-
"address": address
|
|
103
|
-
},
|
|
104
|
-
query: {
|
|
105
|
-
"startBlock": startBlock,
|
|
106
|
-
"endBlock": endBlock,
|
|
107
|
-
"pageToken": pageToken,
|
|
108
|
-
"pageSize": pageSize
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
listErc20Transactions({
|
|
113
|
-
chainId,
|
|
114
|
-
address,
|
|
115
|
-
startBlock,
|
|
116
|
-
endBlock,
|
|
117
|
-
pageToken,
|
|
118
|
-
pageSize = 10
|
|
119
|
-
}) {
|
|
120
|
-
return this.httpRequest.request({
|
|
121
|
-
method: "GET",
|
|
122
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
|
|
123
|
-
path: {
|
|
124
|
-
"chainId": chainId,
|
|
125
|
-
"address": address
|
|
126
|
-
},
|
|
127
|
-
query: {
|
|
128
|
-
"startBlock": startBlock,
|
|
129
|
-
"endBlock": endBlock,
|
|
130
|
-
"pageToken": pageToken,
|
|
131
|
-
"pageSize": pageSize
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
listErc721Transactions({
|
|
136
|
-
chainId,
|
|
137
|
-
address,
|
|
138
|
-
startBlock,
|
|
139
|
-
endBlock,
|
|
140
|
-
pageToken,
|
|
141
|
-
pageSize = 10
|
|
142
|
-
}) {
|
|
143
|
-
return this.httpRequest.request({
|
|
144
|
-
method: "GET",
|
|
145
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
|
|
146
|
-
path: {
|
|
147
|
-
"chainId": chainId,
|
|
148
|
-
"address": address
|
|
149
|
-
},
|
|
150
|
-
query: {
|
|
151
|
-
"startBlock": startBlock,
|
|
152
|
-
"endBlock": endBlock,
|
|
153
|
-
"pageToken": pageToken,
|
|
154
|
-
"pageSize": pageSize
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
listErc1155Transactions({
|
|
159
|
-
chainId,
|
|
160
|
-
address,
|
|
161
|
-
startBlock,
|
|
162
|
-
endBlock,
|
|
163
|
-
pageToken,
|
|
164
|
-
pageSize = 10
|
|
165
|
-
}) {
|
|
166
|
-
return this.httpRequest.request({
|
|
167
|
-
method: "GET",
|
|
168
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
|
|
169
|
-
path: {
|
|
170
|
-
"chainId": chainId,
|
|
171
|
-
"address": address
|
|
172
|
-
},
|
|
173
|
-
query: {
|
|
174
|
-
"startBlock": startBlock,
|
|
175
|
-
"endBlock": endBlock,
|
|
176
|
-
"pageToken": pageToken,
|
|
177
|
-
"pageSize": pageSize
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
listInternalTransactions({
|
|
182
|
-
chainId,
|
|
183
|
-
address,
|
|
184
|
-
startBlock,
|
|
185
|
-
endBlock,
|
|
186
|
-
pageToken,
|
|
187
|
-
pageSize = 10
|
|
188
|
-
}) {
|
|
189
|
-
return this.httpRequest.request({
|
|
190
|
-
method: "GET",
|
|
191
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
|
|
192
|
-
path: {
|
|
193
|
-
"chainId": chainId,
|
|
194
|
-
"address": address
|
|
195
|
-
},
|
|
196
|
-
query: {
|
|
197
|
-
"startBlock": startBlock,
|
|
198
|
-
"endBlock": endBlock,
|
|
199
|
-
"pageToken": pageToken,
|
|
200
|
-
"pageSize": pageSize
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
getTransaction({
|
|
205
|
-
chainId,
|
|
206
|
-
txHash
|
|
207
|
-
}) {
|
|
208
|
-
return this.httpRequest.request({
|
|
209
|
-
method: "GET",
|
|
210
|
-
url: "/v1/chains/{chainId}/transactions/{txHash}",
|
|
211
|
-
path: {
|
|
212
|
-
"chainId": chainId,
|
|
213
|
-
"txHash": txHash
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
getTransactionsForBlock({
|
|
218
|
-
chainId,
|
|
219
|
-
blockId
|
|
220
|
-
}) {
|
|
221
|
-
return this.httpRequest.request({
|
|
222
|
-
method: "GET",
|
|
223
|
-
url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
|
|
224
|
-
path: {
|
|
225
|
-
"chainId": chainId,
|
|
226
|
-
"blockId": blockId
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
listLatestTransactions({
|
|
231
|
-
chainId,
|
|
232
|
-
pageToken,
|
|
233
|
-
pageSize = 10,
|
|
234
|
-
status
|
|
235
|
-
}) {
|
|
236
|
-
return this.httpRequest.request({
|
|
237
|
-
method: "GET",
|
|
238
|
-
url: "/v1/chains/{chainId}/transactions",
|
|
239
|
-
path: {
|
|
240
|
-
"chainId": chainId
|
|
241
|
-
},
|
|
242
|
-
query: {
|
|
243
|
-
"pageToken": pageToken,
|
|
244
|
-
"pageSize": pageSize,
|
|
245
|
-
"status": status
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { EvmTransactionsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:s,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:s},query:{currency:t}})}listContractDeployments({chainId:e,address:s,pageToken:t,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a}})}listTransfers({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listTransactions({chainId:e,address:s,pageToken:t,pageSize:a=10,startBlock:r,endBlock:n,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a,startBlock:r,endBlock:n,sortOrder:d}})}listNativeTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc20Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc721Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc1155Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listInternalTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}getTransaction({chainId:e,txHash:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:s}})}getTransactionsForBlock({chainId:e,blockId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:s}})}listLatestTransactions({chainId:e,pageToken:s,pageSize:t=10,status:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:s,pageSize:t,status:a}})}}export{e as EvmTransactionsService};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
healthCheck() {
|
|
6
|
-
return this.httpRequest.request({
|
|
7
|
-
method: "GET",
|
|
8
|
-
url: "/v1/health-check",
|
|
9
|
-
errors: {
|
|
10
|
-
503: `The Health Check is not successful`
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { HealthCheckService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{e as HealthCheckService};
|
|
@@ -1,56 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
reindexNft({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
tokenId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "POST",
|
|
12
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address,
|
|
16
|
-
"tokenId": tokenId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listTokens({
|
|
21
|
-
chainId,
|
|
22
|
-
address,
|
|
23
|
-
pageToken,
|
|
24
|
-
pageSize = 10
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
-
path: {
|
|
30
|
-
"chainId": chainId,
|
|
31
|
-
"address": address
|
|
32
|
-
},
|
|
33
|
-
query: {
|
|
34
|
-
"pageToken": pageToken,
|
|
35
|
-
"pageSize": pageSize
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
getTokenDetails({
|
|
40
|
-
chainId,
|
|
41
|
-
address,
|
|
42
|
-
tokenId
|
|
43
|
-
}) {
|
|
44
|
-
return this.httpRequest.request({
|
|
45
|
-
method: "GET",
|
|
46
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
47
|
-
path: {
|
|
48
|
-
"chainId": chainId,
|
|
49
|
-
"address": address,
|
|
50
|
-
"tokenId": tokenId
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { NfTsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:s}})}listTokens({chainId:e,address:t,pageToken:s,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:s,pageSize:d}})}getTokenDetails({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:s}})}}export{e as NfTsService};
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getOperationResult({
|
|
6
|
-
operationId
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/v1/operations/{operationId}",
|
|
11
|
-
path: {
|
|
12
|
-
"operationId": operationId
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
postTransactionExportJob({
|
|
17
|
-
requestBody
|
|
18
|
-
}) {
|
|
19
|
-
return this.httpRequest.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
url: "/v1/operations/transactions:export",
|
|
22
|
-
body: requestBody,
|
|
23
|
-
mediaType: "application/json"
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { OperationsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getOperationResult({operationId:t}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:t}})}postTransactionExportJob({requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:t,mediaType:"application/json"})}}export{t as OperationsService};
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getBalancesByAddresses({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
blockTimestamp,
|
|
9
|
-
addresses
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
|
|
14
|
-
path: {
|
|
15
|
-
"blockchainId": blockchainId,
|
|
16
|
-
"network": network
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"blockTimestamp": blockTimestamp,
|
|
20
|
-
"addresses": addresses
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { PrimaryNetworkBalancesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:s,blockTimestamp:t,addresses:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:s},query:{blockTimestamp:t,addresses:c}})}}export{e as PrimaryNetworkBalancesService};
|