@avalabs/glacier-sdk 3.1.0-alpha.55 → 3.1.0-alpha.57
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 +48 -19
- package/esm/generated/models/Blockchain.d.ts +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +16 -15
- package/esm/generated/models/Transaction.d.ts +2 -2
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2221,33 +2221,31 @@ type ListErc721TransactionsResponse = {
|
|
|
2221
2221
|
|
|
2222
2222
|
type InternalTransaction = {
|
|
2223
2223
|
/**
|
|
2224
|
-
*
|
|
2224
|
+
* The block number on the chain.
|
|
2225
2225
|
*/
|
|
2226
|
-
|
|
2226
|
+
blockNumber: string;
|
|
2227
2227
|
/**
|
|
2228
|
-
*
|
|
2228
|
+
* The block finality timestamp.
|
|
2229
2229
|
*/
|
|
2230
|
-
|
|
2230
|
+
blockTimestamp: number;
|
|
2231
2231
|
/**
|
|
2232
|
-
*
|
|
2232
|
+
* The block hash identifier.
|
|
2233
2233
|
*/
|
|
2234
|
-
|
|
2234
|
+
blockHash: string;
|
|
2235
2235
|
/**
|
|
2236
|
-
*
|
|
2236
|
+
* The transaction hash identifier.
|
|
2237
2237
|
*/
|
|
2238
|
+
txHash: string;
|
|
2239
|
+
from: RichAddress;
|
|
2240
|
+
to: RichAddress;
|
|
2241
|
+
internalTxType: InternalTransactionOpCall;
|
|
2238
2242
|
value: string;
|
|
2239
2243
|
/**
|
|
2240
|
-
*
|
|
2244
|
+
* True if the internal transaction was reverted.
|
|
2241
2245
|
*/
|
|
2246
|
+
isReverted: boolean;
|
|
2242
2247
|
gasUsed: string;
|
|
2243
|
-
/**
|
|
2244
|
-
* Gas limit
|
|
2245
|
-
*/
|
|
2246
2248
|
gasLimit: string;
|
|
2247
|
-
/**
|
|
2248
|
-
* Transaction hash
|
|
2249
|
-
*/
|
|
2250
|
-
transactionHash: string;
|
|
2251
2249
|
};
|
|
2252
2250
|
|
|
2253
2251
|
type ListInternalTransactionsResponse = {
|
|
@@ -3242,7 +3240,7 @@ type Blockchain = {
|
|
|
3242
3240
|
/**
|
|
3243
3241
|
* The genesis data of the blockchain.
|
|
3244
3242
|
*/
|
|
3245
|
-
genesisData
|
|
3243
|
+
genesisData?: Record<string, any>;
|
|
3246
3244
|
};
|
|
3247
3245
|
|
|
3248
3246
|
declare enum BlockchainIds {
|
|
@@ -4854,7 +4852,7 @@ type BlockchainInfo = {
|
|
|
4854
4852
|
/**
|
|
4855
4853
|
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
4856
4854
|
*/
|
|
4857
|
-
genesisData
|
|
4855
|
+
genesisData?: Record<string, any>;
|
|
4858
4856
|
};
|
|
4859
4857
|
|
|
4860
4858
|
type L1ValidatorDetailsTransaction = {
|
|
@@ -6538,6 +6536,37 @@ type TooManyRequests = {
|
|
|
6538
6536
|
error: string;
|
|
6539
6537
|
};
|
|
6540
6538
|
|
|
6539
|
+
type WebhookInternalTransaction = {
|
|
6540
|
+
/**
|
|
6541
|
+
* Sender address
|
|
6542
|
+
*/
|
|
6543
|
+
from: string;
|
|
6544
|
+
/**
|
|
6545
|
+
* Recipient address
|
|
6546
|
+
*/
|
|
6547
|
+
to: string;
|
|
6548
|
+
/**
|
|
6549
|
+
* Internal transaction type
|
|
6550
|
+
*/
|
|
6551
|
+
internalTxType: string;
|
|
6552
|
+
/**
|
|
6553
|
+
* Value transferred
|
|
6554
|
+
*/
|
|
6555
|
+
value: string;
|
|
6556
|
+
/**
|
|
6557
|
+
* Gas used
|
|
6558
|
+
*/
|
|
6559
|
+
gasUsed: string;
|
|
6560
|
+
/**
|
|
6561
|
+
* Gas limit
|
|
6562
|
+
*/
|
|
6563
|
+
gasLimit: string;
|
|
6564
|
+
/**
|
|
6565
|
+
* Transaction hash
|
|
6566
|
+
*/
|
|
6567
|
+
transactionHash: string;
|
|
6568
|
+
};
|
|
6569
|
+
|
|
6541
6570
|
type Transaction = {
|
|
6542
6571
|
/**
|
|
6543
6572
|
* Block hash of the transaction
|
|
@@ -6642,7 +6671,7 @@ type Transaction = {
|
|
|
6642
6671
|
/**
|
|
6643
6672
|
* Internal transactions (optional)
|
|
6644
6673
|
*/
|
|
6645
|
-
internalTransactions?: Array<
|
|
6674
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6646
6675
|
/**
|
|
6647
6676
|
* Access list (optional)
|
|
6648
6677
|
*/
|
|
@@ -6718,4 +6747,4 @@ declare class FetchHttpRequest extends BaseHttpRequest {
|
|
|
6718
6747
|
}
|
|
6719
6748
|
|
|
6720
6749
|
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6721
|
-
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|
|
6750
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|
|
@@ -4,7 +4,7 @@ type BlockchainInfo = {
|
|
|
4
4
|
/**
|
|
5
5
|
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
6
6
|
*/
|
|
7
|
-
genesisData
|
|
7
|
+
genesisData?: Record<string, any>;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export type { BlockchainInfo };
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
1
4
|
type InternalTransaction = {
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
6
|
+
* The block number on the chain.
|
|
4
7
|
*/
|
|
5
|
-
|
|
8
|
+
blockNumber: string;
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* The block finality timestamp.
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
blockTimestamp: number;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
14
|
+
* The block hash identifier.
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
blockHash: string;
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* The transaction hash identifier.
|
|
16
19
|
*/
|
|
20
|
+
txHash: string;
|
|
21
|
+
from: RichAddress;
|
|
22
|
+
to: RichAddress;
|
|
23
|
+
internalTxType: InternalTransactionOpCall;
|
|
17
24
|
value: string;
|
|
18
25
|
/**
|
|
19
|
-
*
|
|
26
|
+
* True if the internal transaction was reverted.
|
|
20
27
|
*/
|
|
28
|
+
isReverted: boolean;
|
|
21
29
|
gasUsed: string;
|
|
22
|
-
/**
|
|
23
|
-
* Gas limit
|
|
24
|
-
*/
|
|
25
30
|
gasLimit: string;
|
|
26
|
-
/**
|
|
27
|
-
* Transaction hash
|
|
28
|
-
*/
|
|
29
|
-
transactionHash: string;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export type { InternalTransaction };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessListData } from './AccessListData.js';
|
|
2
2
|
import { ERCTransfer } from './ERCTransfer.js';
|
|
3
|
-
import { InternalTransaction } from './InternalTransaction.js';
|
|
4
3
|
import { NetworkTokenInfo } from './NetworkTokenInfo.js';
|
|
4
|
+
import { WebhookInternalTransaction } from './WebhookInternalTransaction.js';
|
|
5
5
|
|
|
6
6
|
type Transaction = {
|
|
7
7
|
/**
|
|
@@ -107,7 +107,7 @@ type Transaction = {
|
|
|
107
107
|
/**
|
|
108
108
|
* Internal transactions (optional)
|
|
109
109
|
*/
|
|
110
|
-
internalTransactions?: Array<
|
|
110
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
111
111
|
/**
|
|
112
112
|
* Access list (optional)
|
|
113
113
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type WebhookInternalTransaction = {
|
|
2
|
+
/**
|
|
3
|
+
* Sender address
|
|
4
|
+
*/
|
|
5
|
+
from: string;
|
|
6
|
+
/**
|
|
7
|
+
* Recipient address
|
|
8
|
+
*/
|
|
9
|
+
to: string;
|
|
10
|
+
/**
|
|
11
|
+
* Internal transaction type
|
|
12
|
+
*/
|
|
13
|
+
internalTxType: string;
|
|
14
|
+
/**
|
|
15
|
+
* Value transferred
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
/**
|
|
19
|
+
* Gas used
|
|
20
|
+
*/
|
|
21
|
+
gasUsed: string;
|
|
22
|
+
/**
|
|
23
|
+
* Gas limit
|
|
24
|
+
*/
|
|
25
|
+
gasLimit: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction hash
|
|
28
|
+
*/
|
|
29
|
+
transactionHash: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type { WebhookInternalTransaction };
|
package/esm/index.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetail
|
|
|
245
245
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
246
246
|
export { VmName } from './generated/models/VmName.js';
|
|
247
247
|
export { WebhookAddressActivityResponse } from './generated/models/WebhookAddressActivityResponse.js';
|
|
248
|
+
export { WebhookInternalTransaction } from './generated/models/WebhookInternalTransaction.js';
|
|
248
249
|
export { WebhookStatus } from './generated/models/WebhookStatus.js';
|
|
249
250
|
export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
|
|
250
251
|
export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.57",
|
|
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",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5c22742e0c681625b6f0bcb1d0b3e99220b203b4"
|
|
42
42
|
}
|