@avalabs/glacier-sdk 2.8.0-canary.f195b3d.0 → 2.8.0-canary.f5f193e.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 +37 -202
- package/dist/index.js +7 -74
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +0 -3
- package/esm/generated/models/WebhookResponse.d.ts +2 -0
- package/esm/generated/services/DefaultService.d.ts +7 -0
- package/esm/generated/services/DefaultService.js +7 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/index.d.ts +0 -8
- package/esm/index.js +0 -5
- package/package.json +2 -2
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +0 -24
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +0 -8
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +0 -26
- package/esm/generated/models/DeliveredTeleporterMessage.js +0 -8
- package/esm/generated/models/NextPageToken.d.ts +0 -8
- package/esm/generated/models/PendingTeleporterMessage.d.ts +0 -24
- package/esm/generated/models/PendingTeleporterMessage.js +0 -8
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +0 -9
- package/esm/generated/models/TeleporterRewardDetails.d.ts +0 -37
- package/esm/generated/models/TeleporterRewardDetails.js +0 -8
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +0 -7
- package/esm/generated/services/TeleporterService.d.ts +0 -65
- package/esm/generated/services/TeleporterService.js +0 -43
|
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
|
|
|
20
20
|
*/
|
|
21
21
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
22
22
|
/**
|
|
23
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
23
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
24
24
|
*/
|
|
25
25
|
chainId: string;
|
|
26
26
|
/**
|
|
@@ -48,7 +48,7 @@ declare class EvmBalancesService {
|
|
|
48
48
|
*/
|
|
49
49
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
51
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
53
53
|
chainId: string;
|
|
54
54
|
/**
|
|
@@ -86,7 +86,7 @@ declare class EvmBalancesService {
|
|
|
86
86
|
*/
|
|
87
87
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
88
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
89
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
90
|
*/
|
|
91
91
|
chainId: string;
|
|
92
92
|
/**
|
|
@@ -118,7 +118,7 @@ declare class EvmBalancesService {
|
|
|
118
118
|
*/
|
|
119
119
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
120
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
121
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
122
|
*/
|
|
123
123
|
chainId: string;
|
|
124
124
|
/**
|
|
@@ -152,7 +152,7 @@ declare class EvmBalancesService {
|
|
|
152
152
|
*/
|
|
153
153
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
154
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
155
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
156
|
*/
|
|
157
157
|
chainId: string;
|
|
158
158
|
/**
|
|
@@ -14,7 +14,7 @@ declare class EvmBlocksService {
|
|
|
14
14
|
*/
|
|
15
15
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
17
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
20
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -27,7 +27,7 @@ declare class EvmChainsService {
|
|
|
27
27
|
*/
|
|
28
28
|
getChainInfo({ chainId, }: {
|
|
29
29
|
/**
|
|
30
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
30
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
31
|
*/
|
|
32
32
|
chainId: string;
|
|
33
33
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -18,7 +18,7 @@ declare class EvmContractsService {
|
|
|
18
18
|
*/
|
|
19
19
|
getContractMetadata({ chainId, address, }: {
|
|
20
20
|
/**
|
|
21
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
21
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
22
|
*/
|
|
23
23
|
chainId: string;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmContractsService {
|
|
|
34
34
|
*/
|
|
35
35
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
27
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -44,7 +44,7 @@ declare class EvmTransactionsService {
|
|
|
44
44
|
*/
|
|
45
45
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
47
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
@@ -68,7 +68,7 @@ declare class EvmTransactionsService {
|
|
|
68
68
|
*/
|
|
69
69
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
71
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
@@ -102,7 +102,7 @@ declare class EvmTransactionsService {
|
|
|
102
102
|
*/
|
|
103
103
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
104
104
|
/**
|
|
105
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
105
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
106
106
|
*/
|
|
107
107
|
chainId: string;
|
|
108
108
|
/**
|
|
@@ -138,7 +138,7 @@ declare class EvmTransactionsService {
|
|
|
138
138
|
*/
|
|
139
139
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
140
140
|
/**
|
|
141
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
142
142
|
*/
|
|
143
143
|
chainId: string;
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ declare class EvmTransactionsService {
|
|
|
170
170
|
*/
|
|
171
171
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
172
172
|
/**
|
|
173
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
173
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
174
174
|
*/
|
|
175
175
|
chainId: string;
|
|
176
176
|
/**
|
|
@@ -202,7 +202,7 @@ declare class EvmTransactionsService {
|
|
|
202
202
|
*/
|
|
203
203
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
204
204
|
/**
|
|
205
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
206
206
|
*/
|
|
207
207
|
chainId: string;
|
|
208
208
|
/**
|
|
@@ -234,7 +234,7 @@ declare class EvmTransactionsService {
|
|
|
234
234
|
*/
|
|
235
235
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
236
236
|
/**
|
|
237
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
237
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
238
238
|
*/
|
|
239
239
|
chainId: string;
|
|
240
240
|
/**
|
|
@@ -268,7 +268,7 @@ declare class EvmTransactionsService {
|
|
|
268
268
|
*/
|
|
269
269
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
270
270
|
/**
|
|
271
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
271
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
272
272
|
*/
|
|
273
273
|
chainId: string;
|
|
274
274
|
/**
|
|
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
300
300
|
*/
|
|
301
301
|
getTransaction({ chainId, txHash, }: {
|
|
302
302
|
/**
|
|
303
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
303
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
304
304
|
*/
|
|
305
305
|
chainId: string;
|
|
306
306
|
/**
|
|
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
316
316
|
*/
|
|
317
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
318
318
|
/**
|
|
319
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
319
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
320
320
|
*/
|
|
321
321
|
chainId: string;
|
|
322
322
|
/**
|
|
@@ -332,7 +332,7 @@ declare class EvmTransactionsService {
|
|
|
332
332
|
*/
|
|
333
333
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
334
334
|
/**
|
|
335
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
335
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
336
336
|
*/
|
|
337
337
|
chainId: string;
|
|
338
338
|
/**
|
|
@@ -15,7 +15,7 @@ declare class NfTsService {
|
|
|
15
15
|
*/
|
|
16
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
17
17
|
/**
|
|
18
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
19
|
*/
|
|
20
20
|
chainId: string;
|
|
21
21
|
/**
|
|
@@ -35,7 +35,7 @@ declare class NfTsService {
|
|
|
35
35
|
*/
|
|
36
36
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
37
|
/**
|
|
38
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
40
40
|
chainId: string;
|
|
41
41
|
/**
|
|
@@ -59,7 +59,7 @@ declare class NfTsService {
|
|
|
59
59
|
*/
|
|
60
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
61
|
/**
|
|
62
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
62
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
63
|
*/
|
|
64
64
|
chainId: string;
|
|
65
65
|
/**
|
|
@@ -21,7 +21,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
21
21
|
*/
|
|
22
22
|
network: Network;
|
|
23
23
|
/**
|
|
24
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
24
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
25
25
|
*/
|
|
26
26
|
addresses?: string;
|
|
27
27
|
/**
|
|
@@ -33,7 +33,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
33
33
|
*/
|
|
34
34
|
pageSize?: number;
|
|
35
35
|
/**
|
|
36
|
-
* A comma separated list of node ids to filter by.
|
|
36
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
37
37
|
*/
|
|
38
38
|
nodeIds?: string;
|
|
39
39
|
/**
|
package/esm/index.d.ts
CHANGED
|
@@ -33,8 +33,6 @@ export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models
|
|
|
33
33
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
34
34
|
export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
|
|
35
35
|
export { DelegatorsDetails } from './generated/models/DelegatorsDetails.js';
|
|
36
|
-
export { DeliveredSourceNotIndexedTeleporterMessage } from './generated/models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
37
|
-
export { DeliveredTeleporterMessage } from './generated/models/DeliveredTeleporterMessage.js';
|
|
38
36
|
export { Erc1155Contract } from './generated/models/Erc1155Contract.js';
|
|
39
37
|
export { Erc1155Token } from './generated/models/Erc1155Token.js';
|
|
40
38
|
export { Erc1155TokenBalance } from './generated/models/Erc1155TokenBalance.js';
|
|
@@ -109,7 +107,6 @@ export { Network } from './generated/models/Network.js';
|
|
|
109
107
|
export { NetworkToken } from './generated/models/NetworkToken.js';
|
|
110
108
|
export { NetworkTokenDetails } from './generated/models/NetworkTokenDetails.js';
|
|
111
109
|
export { NetworkType } from './generated/models/NetworkType.js';
|
|
112
|
-
export { NextPageToken } from './generated/models/NextPageToken.js';
|
|
113
110
|
export { NftTokenMetadataStatus } from './generated/models/NftTokenMetadataStatus.js';
|
|
114
111
|
export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
115
112
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
@@ -123,7 +120,6 @@ export { PChainTransactionType } from './generated/models/PChainTransactionType.
|
|
|
123
120
|
export { PChainUtxo } from './generated/models/PChainUtxo.js';
|
|
124
121
|
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
125
122
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
126
|
-
export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
|
|
127
123
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
128
124
|
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
129
125
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
@@ -146,9 +142,6 @@ export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.
|
|
|
146
142
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
147
143
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
148
144
|
export { Subnet } from './generated/models/Subnet.js';
|
|
149
|
-
export { TeleporterDestinationTransaction } from './generated/models/TeleporterDestinationTransaction.js';
|
|
150
|
-
export { TeleporterRewardDetails } from './generated/models/TeleporterRewardDetails.js';
|
|
151
|
-
export { TeleporterSourceTransaction } from './generated/models/TeleporterSourceTransaction.js';
|
|
152
145
|
export { TransactionDetails } from './generated/models/TransactionDetails.js';
|
|
153
146
|
export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
|
|
154
147
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
@@ -192,4 +185,3 @@ export { PrimaryNetworkRewardsService } from './generated/services/PrimaryNetwor
|
|
|
192
185
|
export { PrimaryNetworkTransactionsService } from './generated/services/PrimaryNetworkTransactionsService.js';
|
|
193
186
|
export { PrimaryNetworkUtxOsService } from './generated/services/PrimaryNetworkUtxOsService.js';
|
|
194
187
|
export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetworkVerticesService.js';
|
|
195
|
-
export { TeleporterService } from './generated/services/TeleporterService.js';
|
package/esm/index.js
CHANGED
|
@@ -20,8 +20,6 @@ export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmT
|
|
|
20
20
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
21
21
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
22
22
|
export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
|
|
23
|
-
export { DeliveredSourceNotIndexedTeleporterMessage } from './generated/models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
24
|
-
export { DeliveredTeleporterMessage } from './generated/models/DeliveredTeleporterMessage.js';
|
|
25
23
|
export { Erc1155Contract } from './generated/models/Erc1155Contract.js';
|
|
26
24
|
export { Erc1155Token } from './generated/models/Erc1155Token.js';
|
|
27
25
|
export { Erc1155TokenBalance } from './generated/models/Erc1155TokenBalance.js';
|
|
@@ -42,7 +40,6 @@ export { OperationType } from './generated/models/OperationType.js';
|
|
|
42
40
|
export { PChainId } from './generated/models/PChainId.js';
|
|
43
41
|
export { PChainTransactionType } from './generated/models/PChainTransactionType.js';
|
|
44
42
|
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
45
|
-
export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
|
|
46
43
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
47
44
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
48
45
|
export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
|
|
@@ -53,7 +50,6 @@ export { RemovedValidatorDetails } from './generated/models/RemovedValidatorDeta
|
|
|
53
50
|
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
54
51
|
export { RewardType } from './generated/models/RewardType.js';
|
|
55
52
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
56
|
-
export { TeleporterRewardDetails } from './generated/models/TeleporterRewardDetails.js';
|
|
57
53
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
|
58
54
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
59
55
|
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
@@ -82,4 +78,3 @@ export { PrimaryNetworkRewardsService } from './generated/services/PrimaryNetwor
|
|
|
82
78
|
export { PrimaryNetworkTransactionsService } from './generated/services/PrimaryNetworkTransactionsService.js';
|
|
83
79
|
export { PrimaryNetworkUtxOsService } from './generated/services/PrimaryNetworkUtxOsService.js';
|
|
84
80
|
export { PrimaryNetworkVerticesService } from './generated/services/PrimaryNetworkVerticesService.js';
|
|
85
|
-
export { TeleporterService } from './generated/services/TeleporterService.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-canary.
|
|
3
|
+
"version": "2.8.0-canary.f5f193e.0+f5f193e",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f5f193e98dfdb5c3ea9bd0e472b9756144f9b6a4"
|
|
33
33
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
|
|
2
|
-
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
3
|
-
|
|
4
|
-
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
5
|
-
sourceBlockchainId: string;
|
|
6
|
-
destinationBlockchainId: string;
|
|
7
|
-
messageId: string;
|
|
8
|
-
from: string;
|
|
9
|
-
to: string;
|
|
10
|
-
data?: string;
|
|
11
|
-
messageExecuted: boolean;
|
|
12
|
-
receipts: Array<string>;
|
|
13
|
-
receiptDelivered: boolean;
|
|
14
|
-
rewardDetails: TeleporterRewardDetails;
|
|
15
|
-
destinationTransaction: TeleporterDestinationTransaction;
|
|
16
|
-
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
17
|
-
};
|
|
18
|
-
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
19
|
-
enum status {
|
|
20
|
-
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { DeliveredSourceNotIndexedTeleporterMessage };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var DeliveredSourceNotIndexedTeleporterMessage;
|
|
2
|
-
((DeliveredSourceNotIndexedTeleporterMessage2) => {
|
|
3
|
-
((status2) => {
|
|
4
|
-
status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
|
|
5
|
-
})(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
|
|
6
|
-
})(DeliveredSourceNotIndexedTeleporterMessage || (DeliveredSourceNotIndexedTeleporterMessage = {}));
|
|
7
|
-
|
|
8
|
-
export { DeliveredSourceNotIndexedTeleporterMessage };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
|
|
2
|
-
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
3
|
-
import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
|
|
4
|
-
|
|
5
|
-
type DeliveredTeleporterMessage = {
|
|
6
|
-
sourceBlockchainId: string;
|
|
7
|
-
destinationBlockchainId: string;
|
|
8
|
-
messageId: string;
|
|
9
|
-
from: string;
|
|
10
|
-
to: string;
|
|
11
|
-
data?: string;
|
|
12
|
-
messageExecuted: boolean;
|
|
13
|
-
receipts: Array<string>;
|
|
14
|
-
receiptDelivered: boolean;
|
|
15
|
-
rewardDetails: TeleporterRewardDetails;
|
|
16
|
-
sourceTransaction: TeleporterSourceTransaction;
|
|
17
|
-
destinationTransaction: TeleporterDestinationTransaction;
|
|
18
|
-
status: DeliveredTeleporterMessage.status;
|
|
19
|
-
};
|
|
20
|
-
declare namespace DeliveredTeleporterMessage {
|
|
21
|
-
enum status {
|
|
22
|
-
DELIVERED = "delivered"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { DeliveredTeleporterMessage };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var DeliveredTeleporterMessage;
|
|
2
|
-
((DeliveredTeleporterMessage2) => {
|
|
3
|
-
((status2) => {
|
|
4
|
-
status2["DELIVERED"] = "delivered";
|
|
5
|
-
})(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
|
|
6
|
-
})(DeliveredTeleporterMessage || (DeliveredTeleporterMessage = {}));
|
|
7
|
-
|
|
8
|
-
export { DeliveredTeleporterMessage };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
2
|
-
import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
|
|
3
|
-
|
|
4
|
-
type PendingTeleporterMessage = {
|
|
5
|
-
sourceBlockchainId: string;
|
|
6
|
-
destinationBlockchainId: string;
|
|
7
|
-
messageId: string;
|
|
8
|
-
from: string;
|
|
9
|
-
to: string;
|
|
10
|
-
data?: string;
|
|
11
|
-
messageExecuted: boolean;
|
|
12
|
-
receipts: Array<string>;
|
|
13
|
-
receiptDelivered: boolean;
|
|
14
|
-
rewardDetails: TeleporterRewardDetails;
|
|
15
|
-
sourceTransaction: TeleporterSourceTransaction;
|
|
16
|
-
status: PendingTeleporterMessage.status;
|
|
17
|
-
};
|
|
18
|
-
declare namespace PendingTeleporterMessage {
|
|
19
|
-
enum status {
|
|
20
|
-
PENDING = "pending"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { PendingTeleporterMessage };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var PendingTeleporterMessage;
|
|
2
|
-
((PendingTeleporterMessage2) => {
|
|
3
|
-
((status2) => {
|
|
4
|
-
status2["PENDING"] = "pending";
|
|
5
|
-
})(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
|
|
6
|
-
})(PendingTeleporterMessage || (PendingTeleporterMessage = {}));
|
|
7
|
-
|
|
8
|
-
export { PendingTeleporterMessage };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Money } from './Money.js';
|
|
2
|
-
|
|
3
|
-
type TeleporterRewardDetails = {
|
|
4
|
-
/**
|
|
5
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
6
|
-
*/
|
|
7
|
-
address: string;
|
|
8
|
-
/**
|
|
9
|
-
* The contract name.
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* The contract symbol.
|
|
14
|
-
*/
|
|
15
|
-
symbol: string;
|
|
16
|
-
/**
|
|
17
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
18
|
-
*/
|
|
19
|
-
decimals: number;
|
|
20
|
-
/**
|
|
21
|
-
* The logo uri for the address.
|
|
22
|
-
*/
|
|
23
|
-
logoUri?: string;
|
|
24
|
-
ercType: TeleporterRewardDetails.ercType;
|
|
25
|
-
/**
|
|
26
|
-
* The token price, if available.
|
|
27
|
-
*/
|
|
28
|
-
price?: Money;
|
|
29
|
-
value: string;
|
|
30
|
-
};
|
|
31
|
-
declare namespace TeleporterRewardDetails {
|
|
32
|
-
enum ercType {
|
|
33
|
-
ERC_20 = "ERC-20"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { TeleporterRewardDetails };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var TeleporterRewardDetails;
|
|
2
|
-
((TeleporterRewardDetails2) => {
|
|
3
|
-
((ercType2) => {
|
|
4
|
-
ercType2["ERC_20"] = "ERC-20";
|
|
5
|
-
})(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
|
|
6
|
-
})(TeleporterRewardDetails || (TeleporterRewardDetails = {}));
|
|
7
|
-
|
|
8
|
-
export { TeleporterRewardDetails };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
|
-
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
|
-
import { NextPageToken } from '../models/NextPageToken.js';
|
|
4
|
-
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
5
|
-
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
-
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
-
|
|
8
|
-
declare class TeleporterService {
|
|
9
|
-
readonly httpRequest: BaseHttpRequest;
|
|
10
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
-
/**
|
|
12
|
-
* Get a teleporter message
|
|
13
|
-
* Gets a teleporter message by source chain, destination chain, and message ID.
|
|
14
|
-
* @returns any
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
|
|
18
|
-
/**
|
|
19
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
20
|
-
*/
|
|
21
|
-
sourceBlockchainId: any;
|
|
22
|
-
/**
|
|
23
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
24
|
-
*/
|
|
25
|
-
destinationBlockchainId: any;
|
|
26
|
-
/**
|
|
27
|
-
* The message ID of the teleporter message.
|
|
28
|
-
*/
|
|
29
|
-
messageId: any;
|
|
30
|
-
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
31
|
-
/**
|
|
32
|
-
* List teleporter messages
|
|
33
|
-
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
34
|
-
* @returns any
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
*/
|
|
37
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
38
|
-
/**
|
|
39
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
40
|
-
*/
|
|
41
|
-
pageToken?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
44
|
-
*/
|
|
45
|
-
pageSize?: number;
|
|
46
|
-
/**
|
|
47
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
48
|
-
*/
|
|
49
|
-
sourceBlockchainId?: any;
|
|
50
|
-
/**
|
|
51
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
52
|
-
*/
|
|
53
|
-
destinationBlockchainId?: any;
|
|
54
|
-
/**
|
|
55
|
-
* The address of the recipient of the teleporter message.
|
|
56
|
-
*/
|
|
57
|
-
to?: any;
|
|
58
|
-
/**
|
|
59
|
-
* The address of the sender of the teleporter message.
|
|
60
|
-
*/
|
|
61
|
-
from?: any;
|
|
62
|
-
}): CancelablePromise<NextPageToken>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { TeleporterService };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
class TeleporterService {
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getTeleporterMessage({
|
|
6
|
-
sourceBlockchainId,
|
|
7
|
-
destinationBlockchainId,
|
|
8
|
-
messageId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/teleporter/messages:getMessage",
|
|
13
|
-
query: {
|
|
14
|
-
"sourceBlockchainId": sourceBlockchainId,
|
|
15
|
-
"destinationBlockchainId": destinationBlockchainId,
|
|
16
|
-
"messageId": messageId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listTeleporterMessages({
|
|
21
|
-
pageToken,
|
|
22
|
-
pageSize = 10,
|
|
23
|
-
sourceBlockchainId,
|
|
24
|
-
destinationBlockchainId,
|
|
25
|
-
to,
|
|
26
|
-
from
|
|
27
|
-
}) {
|
|
28
|
-
return this.httpRequest.request({
|
|
29
|
-
method: "GET",
|
|
30
|
-
url: "/v1/teleporter/messages",
|
|
31
|
-
query: {
|
|
32
|
-
"pageToken": pageToken,
|
|
33
|
-
"pageSize": pageSize,
|
|
34
|
-
"sourceBlockchainId": sourceBlockchainId,
|
|
35
|
-
"destinationBlockchainId": destinationBlockchainId,
|
|
36
|
-
"to": to,
|
|
37
|
-
"from": from
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { TeleporterService };
|