@avalabs/glacier-sdk 2.8.0-alpha.170 → 2.8.0-alpha.171

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 CHANGED
@@ -2371,13 +2371,44 @@ type BlockchainInfo = {
2371
2371
  blockchainId: string;
2372
2372
  };
2373
2373
 
2374
+ type SubnetOwnershipInfo = {
2375
+ /**
2376
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2377
+ */
2378
+ locktime: number;
2379
+ /**
2380
+ * Minimum number of signatures required to sign the Subnet update transactions.
2381
+ */
2382
+ threshold: number;
2383
+ /**
2384
+ * Addresses that are eligible to sign the Subnet update transactions.
2385
+ */
2386
+ addresses: Array<string>;
2387
+ };
2388
+
2374
2389
  type Subnet = {
2375
2390
  createBlockTimestamp: number;
2376
2391
  createBlockIndex: string;
2377
2392
  subnetId: string;
2393
+ /**
2394
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2395
+ * @deprecated
2396
+ */
2378
2397
  ownerAddresses: Array<string>;
2398
+ /**
2399
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2400
+ * @deprecated
2401
+ */
2379
2402
  threshold: number;
2403
+ /**
2404
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2405
+ * @deprecated
2406
+ */
2380
2407
  locktime: number;
2408
+ /**
2409
+ * Latest subnet owner details for this Subnet.
2410
+ */
2411
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2381
2412
  blockchains: Array<BlockchainInfo>;
2382
2413
  };
2383
2414
 
@@ -3569,6 +3600,8 @@ declare enum PChainTransactionType {
3569
3600
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3570
3601
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3571
3602
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3603
+ BASE_TX = "BaseTx",
3604
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3572
3605
  UNKNOWN = "UNKNOWN"
3573
3606
  }
3574
3607
 
@@ -3688,6 +3721,10 @@ type PChainTransaction = {
3688
3721
  * Present for RewardValidatorTx
3689
3722
  */
3690
3723
  stakingTxHash?: string;
3724
+ /**
3725
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3726
+ */
3727
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3691
3728
  };
3692
3729
 
3693
3730
  type ListPChainTransactionsResponse = {
@@ -3871,8 +3908,9 @@ declare enum PrimaryNetworkTxType {
3871
3908
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3872
3909
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3873
3910
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3874
- UNKNOWN = "UNKNOWN",
3875
3911
  BASE_TX = "BaseTx",
3912
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3913
+ UNKNOWN = "UNKNOWN",
3876
3914
  CREATE_ASSET_TX = "CreateAssetTx",
3877
3915
  OPERATION_TX = "OperationTx"
3878
3916
  }
@@ -4237,4 +4275,4 @@ declare class ApiError extends Error {
4237
4275
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4238
4276
  }
4239
4277
 
4240
- 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 };
4278
+ 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, SubnetOwnershipInfo, 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
@@ -1822,6 +1822,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1822
1822
  PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1823
1823
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1824
1824
  PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1825
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
1826
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
1825
1827
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1826
1828
  return PChainTransactionType2;
1827
1829
  })(PChainTransactionType || {});
@@ -1879,8 +1881,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1879
1881
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1880
1882
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1881
1883
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1882
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1883
1884
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1885
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
1886
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1884
1887
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1885
1888
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
1886
1889
  return PrimaryNetworkTxType2;
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
5
 
5
6
  type PChainTransaction = {
6
7
  /**
@@ -67,6 +68,10 @@ type PChainTransaction = {
67
68
  * Present for RewardValidatorTx
68
69
  */
69
70
  stakingTxHash?: string;
71
+ /**
72
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
73
+ */
74
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
70
75
  };
71
76
 
72
77
  export { PChainTransaction };
@@ -12,6 +12,8 @@ declare enum PChainTransactionType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
+ BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
15
17
  UNKNOWN = "UNKNOWN"
16
18
  }
17
19
 
@@ -12,6 +12,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
12
12
  PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
16
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
15
17
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
16
18
  return PChainTransactionType2;
17
19
  })(PChainTransactionType || {});
@@ -12,8 +12,9 @@ declare enum PrimaryNetworkTxType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
- UNKNOWN = "UNKNOWN",
16
15
  BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ UNKNOWN = "UNKNOWN",
17
18
  CREATE_ASSET_TX = "CreateAssetTx",
18
19
  OPERATION_TX = "OperationTx"
19
20
  }
@@ -12,8 +12,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
12
12
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
16
15
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
17
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
17
18
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
18
19
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
19
20
  return PrimaryNetworkTxType2;
@@ -1,12 +1,29 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
2
3
 
3
4
  type Subnet = {
4
5
  createBlockTimestamp: number;
5
6
  createBlockIndex: string;
6
7
  subnetId: string;
8
+ /**
9
+ * This field is deprecated. Use subnetOwnershipInfo instead.
10
+ * @deprecated
11
+ */
7
12
  ownerAddresses: Array<string>;
13
+ /**
14
+ * This field is deprecated. Use subnetOwnershipInfo instead.
15
+ * @deprecated
16
+ */
8
17
  threshold: number;
18
+ /**
19
+ * This field is deprecated. Use subnetOwnershipInfo instead.
20
+ * @deprecated
21
+ */
9
22
  locktime: number;
23
+ /**
24
+ * Latest subnet owner details for this Subnet.
25
+ */
26
+ subnetOwnershipInfo: SubnetOwnershipInfo;
10
27
  blockchains: Array<BlockchainInfo>;
11
28
  };
12
29
 
@@ -0,0 +1,16 @@
1
+ type SubnetOwnershipInfo = {
2
+ /**
3
+ * Locktime in seconds after which Subnet owners can control this Subnet.
4
+ */
5
+ locktime: number;
6
+ /**
7
+ * Minimum number of signatures required to sign the Subnet update transactions.
8
+ */
9
+ threshold: number;
10
+ /**
11
+ * Addresses that are eligible to sign the Subnet update transactions.
12
+ */
13
+ addresses: Array<string>;
14
+ };
15
+
16
+ export { SubnetOwnershipInfo };
package/esm/index.d.ts CHANGED
@@ -142,6 +142,7 @@ export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.
142
142
  export { SortOrder } from './generated/models/SortOrder.js';
143
143
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
144
144
  export { Subnet } from './generated/models/Subnet.js';
145
+ export { SubnetOwnershipInfo } from './generated/models/SubnetOwnershipInfo.js';
145
146
  export { TransactionDetails } from './generated/models/TransactionDetails.js';
146
147
  export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
147
148
  export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.170",
3
+ "version": "2.8.0-alpha.171",
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": "1c532a233f3ce1a42ef8bcdcedb35865e55373e8"
32
+ "gitHead": "055ec1f680bbe5195e2f19781f0c906d69b96877"
33
33
  }