@avalabs/glacier-sdk 2.8.0-alpha.165 → 2.8.0-alpha.166

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.
Files changed (28) hide show
  1. package/dist/index.d.ts +30 -202
  2. package/dist/index.js +0 -73
  3. package/esm/generated/Glacier.d.ts +0 -2
  4. package/esm/generated/Glacier.js +0 -3
  5. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  6. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  7. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  8. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  9. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  10. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  11. package/esm/generated/services/NfTsService.d.ts +3 -3
  12. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  13. package/esm/index.d.ts +0 -8
  14. package/esm/index.js +0 -5
  15. package/package.json +2 -2
  16. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +0 -24
  17. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +0 -8
  18. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +0 -26
  19. package/esm/generated/models/DeliveredTeleporterMessage.js +0 -8
  20. package/esm/generated/models/NextPageToken.d.ts +0 -8
  21. package/esm/generated/models/PendingTeleporterMessage.d.ts +0 -24
  22. package/esm/generated/models/PendingTeleporterMessage.js +0 -8
  23. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +0 -9
  24. package/esm/generated/models/TeleporterRewardDetails.d.ts +0 -37
  25. package/esm/generated/models/TeleporterRewardDetails.js +0 -8
  26. package/esm/generated/models/TeleporterSourceTransaction.d.ts +0 -7
  27. package/esm/generated/services/TeleporterService.d.ts +0 -65
  28. package/esm/generated/services/TeleporterService.js +0 -43
package/dist/index.d.ts CHANGED
@@ -88,6 +88,8 @@ type WebhookResponse = {
88
88
  chainId: string;
89
89
  status: WebhookStatusType;
90
90
  createdAt: number;
91
+ name: string;
92
+ description: string;
91
93
  };
92
94
 
93
95
  type ListWebhooksResponse = {
@@ -450,7 +452,7 @@ declare class EvmBalancesService {
450
452
  */
451
453
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
454
  /**
453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
455
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
454
456
  */
455
457
  chainId: string;
456
458
  /**
@@ -478,7 +480,7 @@ declare class EvmBalancesService {
478
480
  */
479
481
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
480
482
  /**
481
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
483
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
482
484
  */
483
485
  chainId: string;
484
486
  /**
@@ -516,7 +518,7 @@ declare class EvmBalancesService {
516
518
  */
517
519
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
520
  /**
519
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
521
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
520
522
  */
521
523
  chainId: string;
522
524
  /**
@@ -548,7 +550,7 @@ declare class EvmBalancesService {
548
550
  */
549
551
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
552
  /**
551
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
553
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
552
554
  */
553
555
  chainId: string;
554
556
  /**
@@ -582,7 +584,7 @@ declare class EvmBalancesService {
582
584
  */
583
585
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
586
  /**
585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
587
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
586
588
  */
587
589
  chainId: string;
588
590
  /**
@@ -711,7 +713,7 @@ declare class EvmBlocksService {
711
713
  */
712
714
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
715
  /**
714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
716
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
715
717
  */
716
718
  chainId: string;
717
719
  /**
@@ -731,7 +733,7 @@ declare class EvmBlocksService {
731
733
  */
732
734
  getBlock({ chainId, blockId, }: {
733
735
  /**
734
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
736
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
735
737
  */
736
738
  chainId: string;
737
739
  /**
@@ -852,7 +854,7 @@ declare class EvmChainsService {
852
854
  */
853
855
  getChainInfo({ chainId, }: {
854
856
  /**
855
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
857
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
856
858
  */
857
859
  chainId: string;
858
860
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1149,7 @@ declare class EvmContractsService {
1147
1149
  */
1148
1150
  getContractMetadata({ chainId, address, }: {
1149
1151
  /**
1150
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1152
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
1153
  */
1152
1154
  chainId: string;
1153
1155
  /**
@@ -1163,7 +1165,7 @@ declare class EvmContractsService {
1163
1165
  */
1164
1166
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1167
  /**
1166
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1168
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
1169
  */
1168
1170
  chainId: string;
1169
1171
  /**
@@ -1691,7 +1693,7 @@ declare class EvmTransactionsService {
1691
1693
  */
1692
1694
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1695
  /**
1694
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1696
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1695
1697
  */
1696
1698
  chainId: string;
1697
1699
  /**
@@ -1711,7 +1713,7 @@ declare class EvmTransactionsService {
1711
1713
  */
1712
1714
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1715
  /**
1714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1716
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1715
1717
  */
1716
1718
  chainId: string;
1717
1719
  /**
@@ -1735,7 +1737,7 @@ declare class EvmTransactionsService {
1735
1737
  */
1736
1738
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1739
  /**
1738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1740
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
1741
  */
1740
1742
  chainId: string;
1741
1743
  /**
@@ -1769,7 +1771,7 @@ declare class EvmTransactionsService {
1769
1771
  */
1770
1772
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1773
  /**
1772
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1774
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1773
1775
  */
1774
1776
  chainId: string;
1775
1777
  /**
@@ -1805,7 +1807,7 @@ declare class EvmTransactionsService {
1805
1807
  */
1806
1808
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1809
  /**
1808
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1810
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1809
1811
  */
1810
1812
  chainId: string;
1811
1813
  /**
@@ -1837,7 +1839,7 @@ declare class EvmTransactionsService {
1837
1839
  */
1838
1840
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1841
  /**
1840
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1842
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1841
1843
  */
1842
1844
  chainId: string;
1843
1845
  /**
@@ -1869,7 +1871,7 @@ declare class EvmTransactionsService {
1869
1871
  */
1870
1872
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1873
  /**
1872
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1874
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1873
1875
  */
1874
1876
  chainId: string;
1875
1877
  /**
@@ -1901,7 +1903,7 @@ declare class EvmTransactionsService {
1901
1903
  */
1902
1904
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1905
  /**
1904
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1906
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
1907
  */
1906
1908
  chainId: string;
1907
1909
  /**
@@ -1935,7 +1937,7 @@ declare class EvmTransactionsService {
1935
1937
  */
1936
1938
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1939
  /**
1938
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1940
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1939
1941
  */
1940
1942
  chainId: string;
1941
1943
  /**
@@ -1967,7 +1969,7 @@ declare class EvmTransactionsService {
1967
1969
  */
1968
1970
  getTransaction({ chainId, txHash, }: {
1969
1971
  /**
1970
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1972
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1971
1973
  */
1972
1974
  chainId: string;
1973
1975
  /**
@@ -1983,7 +1985,7 @@ declare class EvmTransactionsService {
1983
1985
  */
1984
1986
  getTransactionsForBlock({ chainId, blockId, }: {
1985
1987
  /**
1986
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1988
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
1989
  */
1988
1990
  chainId: string;
1989
1991
  /**
@@ -1999,7 +2001,7 @@ declare class EvmTransactionsService {
1999
2001
  */
2000
2002
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
2003
  /**
2002
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2004
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2003
2005
  */
2004
2006
  chainId: string;
2005
2007
  /**
@@ -2052,7 +2054,7 @@ declare class NfTsService {
2052
2054
  */
2053
2055
  reindexNft({ chainId, address, tokenId, }: {
2054
2056
  /**
2055
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2057
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2056
2058
  */
2057
2059
  chainId: string;
2058
2060
  /**
@@ -2072,7 +2074,7 @@ declare class NfTsService {
2072
2074
  */
2073
2075
  listTokens({ chainId, address, pageToken, pageSize, }: {
2074
2076
  /**
2075
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2077
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
2078
  */
2077
2079
  chainId: string;
2078
2080
  /**
@@ -2096,7 +2098,7 @@ declare class NfTsService {
2096
2098
  */
2097
2099
  getTokenDetails({ chainId, address, tokenId, }: {
2098
2100
  /**
2099
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2101
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
2102
  */
2101
2103
  chainId: string;
2102
2104
  /**
@@ -3272,7 +3274,7 @@ declare class PrimaryNetworkRewardsService {
3272
3274
  */
3273
3275
  network: Network;
3274
3276
  /**
3275
- * 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". Optional, but at least one of addresses or nodeIds is required.
3277
+ * 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.
3276
3278
  */
3277
3279
  addresses?: string;
3278
3280
  /**
@@ -3284,7 +3286,7 @@ declare class PrimaryNetworkRewardsService {
3284
3286
  */
3285
3287
  pageSize?: number;
3286
3288
  /**
3287
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3289
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3288
3290
  */
3289
3291
  nodeIds?: string;
3290
3292
  /**
@@ -4189,179 +4191,6 @@ declare class PrimaryNetworkVerticesService {
4189
4191
  }): CancelablePromise<ListXChainVerticesResponse>;
4190
4192
  }
4191
4193
 
4192
- type TeleporterDestinationTransaction = {
4193
- txHash: string;
4194
- timestamp: number;
4195
- gasSpent: string;
4196
- rewardRedeemer: string;
4197
- delivererAddress: string;
4198
- };
4199
-
4200
- type TeleporterRewardDetails = {
4201
- /**
4202
- * A wallet or contract address in mixed-case checksum encoding.
4203
- */
4204
- address: string;
4205
- /**
4206
- * The contract name.
4207
- */
4208
- name: string;
4209
- /**
4210
- * The contract symbol.
4211
- */
4212
- symbol: string;
4213
- /**
4214
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4215
- */
4216
- decimals: number;
4217
- /**
4218
- * The logo uri for the address.
4219
- */
4220
- logoUri?: string;
4221
- ercType: TeleporterRewardDetails.ercType;
4222
- /**
4223
- * The token price, if available.
4224
- */
4225
- price?: Money;
4226
- value: string;
4227
- };
4228
- declare namespace TeleporterRewardDetails {
4229
- enum ercType {
4230
- ERC_20 = "ERC-20"
4231
- }
4232
- }
4233
-
4234
- type DeliveredSourceNotIndexedTeleporterMessage = {
4235
- sourceBlockchainId: string;
4236
- destinationBlockchainId: string;
4237
- messageId: string;
4238
- from: string;
4239
- to: string;
4240
- data?: string;
4241
- messageExecuted: boolean;
4242
- receipts: Array<string>;
4243
- receiptDelivered: boolean;
4244
- rewardDetails: TeleporterRewardDetails;
4245
- destinationTransaction: TeleporterDestinationTransaction;
4246
- status: DeliveredSourceNotIndexedTeleporterMessage.status;
4247
- };
4248
- declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4249
- enum status {
4250
- DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4251
- }
4252
- }
4253
-
4254
- type TeleporterSourceTransaction = {
4255
- txHash: string;
4256
- timestamp: number;
4257
- gasSpent: string;
4258
- };
4259
-
4260
- type DeliveredTeleporterMessage = {
4261
- sourceBlockchainId: string;
4262
- destinationBlockchainId: string;
4263
- messageId: string;
4264
- from: string;
4265
- to: string;
4266
- data?: string;
4267
- messageExecuted: boolean;
4268
- receipts: Array<string>;
4269
- receiptDelivered: boolean;
4270
- rewardDetails: TeleporterRewardDetails;
4271
- sourceTransaction: TeleporterSourceTransaction;
4272
- destinationTransaction: TeleporterDestinationTransaction;
4273
- status: DeliveredTeleporterMessage.status;
4274
- };
4275
- declare namespace DeliveredTeleporterMessage {
4276
- enum status {
4277
- DELIVERED = "delivered"
4278
- }
4279
- }
4280
-
4281
- type NextPageToken = {
4282
- /**
4283
- * 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.
4284
- */
4285
- nextPageToken?: string;
4286
- };
4287
-
4288
- type PendingTeleporterMessage = {
4289
- sourceBlockchainId: string;
4290
- destinationBlockchainId: string;
4291
- messageId: string;
4292
- from: string;
4293
- to: string;
4294
- data?: string;
4295
- messageExecuted: boolean;
4296
- receipts: Array<string>;
4297
- receiptDelivered: boolean;
4298
- rewardDetails: TeleporterRewardDetails;
4299
- sourceTransaction: TeleporterSourceTransaction;
4300
- status: PendingTeleporterMessage.status;
4301
- };
4302
- declare namespace PendingTeleporterMessage {
4303
- enum status {
4304
- PENDING = "pending"
4305
- }
4306
- }
4307
-
4308
- declare class TeleporterService {
4309
- readonly httpRequest: BaseHttpRequest;
4310
- constructor(httpRequest: BaseHttpRequest);
4311
- /**
4312
- * Get a teleporter message
4313
- * Gets a teleporter message by source chain, destination chain, and message ID.
4314
- * @returns any
4315
- * @throws ApiError
4316
- */
4317
- getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4318
- /**
4319
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4320
- */
4321
- sourceBlockchainId: any;
4322
- /**
4323
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4324
- */
4325
- destinationBlockchainId: any;
4326
- /**
4327
- * The message ID of the teleporter message.
4328
- */
4329
- messageId: any;
4330
- }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4331
- /**
4332
- * List teleporter messages
4333
- * Lists teleporter messages. Ordered by timestamp in descending order.
4334
- * @returns any
4335
- * @throws ApiError
4336
- */
4337
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4338
- /**
4339
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4340
- */
4341
- pageToken?: string;
4342
- /**
4343
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4344
- */
4345
- pageSize?: number;
4346
- /**
4347
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4348
- */
4349
- sourceBlockchainId?: any;
4350
- /**
4351
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4352
- */
4353
- destinationBlockchainId?: any;
4354
- /**
4355
- * The address of the recipient of the teleporter message.
4356
- */
4357
- to?: any;
4358
- /**
4359
- * The address of the sender of the teleporter message.
4360
- */
4361
- from?: any;
4362
- }): CancelablePromise<NextPageToken>;
4363
- }
4364
-
4365
4194
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4366
4195
  declare class Glacier {
4367
4196
  readonly default: DefaultService;
@@ -4380,7 +4209,6 @@ declare class Glacier {
4380
4209
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4381
4210
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4382
4211
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4383
- readonly teleporter: TeleporterService;
4384
4212
  readonly request: BaseHttpRequest;
4385
4213
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4386
4214
  }
@@ -4402,4 +4230,4 @@ declare class ApiError extends Error {
4402
4230
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4403
4231
  }
4404
4232
 
4405
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4233
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
package/dist/index.js CHANGED
@@ -1472,48 +1472,6 @@ class PrimaryNetworkVerticesService {
1472
1472
  }
1473
1473
  }
1474
1474
 
1475
- class TeleporterService {
1476
- constructor(httpRequest) {
1477
- this.httpRequest = httpRequest;
1478
- }
1479
- getTeleporterMessage({
1480
- sourceBlockchainId,
1481
- destinationBlockchainId,
1482
- messageId
1483
- }) {
1484
- return this.httpRequest.request({
1485
- method: "GET",
1486
- url: "/v1/teleporter/messages:getMessage",
1487
- query: {
1488
- "sourceBlockchainId": sourceBlockchainId,
1489
- "destinationBlockchainId": destinationBlockchainId,
1490
- "messageId": messageId
1491
- }
1492
- });
1493
- }
1494
- listTeleporterMessages({
1495
- pageToken,
1496
- pageSize = 10,
1497
- sourceBlockchainId,
1498
- destinationBlockchainId,
1499
- to,
1500
- from
1501
- }) {
1502
- return this.httpRequest.request({
1503
- method: "GET",
1504
- url: "/v1/teleporter/messages",
1505
- query: {
1506
- "pageToken": pageToken,
1507
- "pageSize": pageSize,
1508
- "sourceBlockchainId": sourceBlockchainId,
1509
- "destinationBlockchainId": destinationBlockchainId,
1510
- "to": to,
1511
- "from": from
1512
- }
1513
- });
1514
- }
1515
- }
1516
-
1517
1475
  class Glacier {
1518
1476
  default;
1519
1477
  evmBalances;
@@ -1531,7 +1489,6 @@ class Glacier {
1531
1489
  primaryNetworkTransactions;
1532
1490
  primaryNetworkUtxOs;
1533
1491
  primaryNetworkVertices;
1534
- teleporter;
1535
1492
  request;
1536
1493
  constructor(config, HttpRequest = FetchHttpRequest) {
1537
1494
  this.request = new HttpRequest({
@@ -1561,7 +1518,6 @@ class Glacier {
1561
1518
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
1562
1519
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
1563
1520
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
1564
- this.teleporter = new TeleporterService(this.request);
1565
1521
  }
1566
1522
  }
1567
1523
 
@@ -1713,20 +1669,6 @@ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
1713
1669
  return DelegationStatusType2;
1714
1670
  })(DelegationStatusType || {});
1715
1671
 
1716
- exports.DeliveredSourceNotIndexedTeleporterMessage = void 0;
1717
- ((DeliveredSourceNotIndexedTeleporterMessage2) => {
1718
- ((status2) => {
1719
- status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
1720
- })(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
1721
- })(exports.DeliveredSourceNotIndexedTeleporterMessage || (exports.DeliveredSourceNotIndexedTeleporterMessage = {}));
1722
-
1723
- exports.DeliveredTeleporterMessage = void 0;
1724
- ((DeliveredTeleporterMessage2) => {
1725
- ((status2) => {
1726
- status2["DELIVERED"] = "delivered";
1727
- })(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
1728
- })(exports.DeliveredTeleporterMessage || (exports.DeliveredTeleporterMessage = {}));
1729
-
1730
1672
  exports.Erc1155Contract = void 0;
1731
1673
  ((Erc1155Contract2) => {
1732
1674
  ((ercType2) => {
@@ -1885,13 +1827,6 @@ exports.PendingDelegatorDetails = void 0;
1885
1827
  })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1886
1828
  })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1887
1829
 
1888
- exports.PendingTeleporterMessage = void 0;
1889
- ((PendingTeleporterMessage2) => {
1890
- ((status2) => {
1891
- status2["PENDING"] = "pending";
1892
- })(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
1893
- })(exports.PendingTeleporterMessage || (exports.PendingTeleporterMessage = {}));
1894
-
1895
1830
  exports.PendingValidatorDetails = void 0;
1896
1831
  ((PendingValidatorDetails2) => {
1897
1832
  ((validationStatus2) => {
@@ -1987,13 +1922,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1987
1922
  return SortOrder2;
1988
1923
  })(SortOrder || {});
1989
1924
 
1990
- exports.TeleporterRewardDetails = void 0;
1991
- ((TeleporterRewardDetails2) => {
1992
- ((ercType2) => {
1993
- ercType2["ERC_20"] = "ERC-20";
1994
- })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
1995
- })(exports.TeleporterRewardDetails || (exports.TeleporterRewardDetails = {}));
1996
-
1997
1925
  var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
1998
1926
  TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
1999
1927
  TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
@@ -2125,7 +2053,6 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
2125
2053
  exports.ResourceLinkType = ResourceLinkType;
2126
2054
  exports.RewardType = RewardType;
2127
2055
  exports.SortOrder = SortOrder;
2128
- exports.TeleporterService = TeleporterService;
2129
2056
  exports.TransactionMethodType = TransactionMethodType;
2130
2057
  exports.TransactionStatus = TransactionStatus;
2131
2058
  exports.UtxoType = UtxoType;
@@ -16,7 +16,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
16
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
17
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
18
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
- import { TeleporterService } from './services/TeleporterService.js';
20
19
 
21
20
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
22
21
  declare class Glacier {
@@ -36,7 +35,6 @@ declare class Glacier {
36
35
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
37
36
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
38
37
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
39
- readonly teleporter: TeleporterService;
40
38
  readonly request: BaseHttpRequest;
41
39
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
42
40
  }
@@ -15,7 +15,6 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
15
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
16
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
17
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
- import { TeleporterService } from './services/TeleporterService.js';
19
18
 
20
19
  class Glacier {
21
20
  default;
@@ -34,7 +33,6 @@ class Glacier {
34
33
  primaryNetworkTransactions;
35
34
  primaryNetworkUtxOs;
36
35
  primaryNetworkVertices;
37
- teleporter;
38
36
  request;
39
37
  constructor(config, HttpRequest = FetchHttpRequest) {
40
38
  this.request = new HttpRequest({
@@ -64,7 +62,6 @@ class Glacier {
64
62
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
65
63
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
66
64
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
67
- this.teleporter = new TeleporterService(this.request);
68
65
  }
69
66
  }
70
67
 
@@ -10,6 +10,8 @@ type WebhookResponse = {
10
10
  chainId: string;
11
11
  status: WebhookStatusType;
12
12
  createdAt: number;
13
+ name: string;
14
+ description: string;
13
15
  };
14
16
 
15
17
  export { WebhookResponse };
@@ -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". Optional, but at least one of addresses or nodeIds is required.
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. Optional, but at least one of addresses or nodeIds is required.
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-alpha.165",
3
+ "version": "2.8.0-alpha.166",
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": "480b9f8651cd61d597cdf275b392af895d8d12bc"
32
+ "gitHead": "1c249d27595421886ca41a6d0f100ca07a3a275c"
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,8 +0,0 @@
1
- type NextPageToken = {
2
- /**
3
- * 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.
4
- */
5
- nextPageToken?: string;
6
- };
7
-
8
- export { NextPageToken };
@@ -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,9 +0,0 @@
1
- type TeleporterDestinationTransaction = {
2
- txHash: string;
3
- timestamp: number;
4
- gasSpent: string;
5
- rewardRedeemer: string;
6
- delivererAddress: string;
7
- };
8
-
9
- export { TeleporterDestinationTransaction };
@@ -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,7 +0,0 @@
1
- type TeleporterSourceTransaction = {
2
- txHash: string;
3
- timestamp: number;
4
- gasSpent: string;
5
- };
6
-
7
- export { TeleporterSourceTransaction };
@@ -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 };