@avalabs/glacier-sdk 2.8.0-canary.2300adb.0 → 2.8.0-canary.238a9f2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +47 -2
- package/dist/index.js +11 -2
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/services/DefaultService.d.ts +7 -0
- package/esm/generated/services/DefaultService.js +7 -1
- package/esm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -175,6 +175,13 @@ declare class DefaultService {
|
|
|
175
175
|
* @throws ApiError
|
|
176
176
|
*/
|
|
177
177
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Get a shared secret
|
|
180
|
+
* Get a previously generated shared secret.
|
|
181
|
+
* @returns SharedSecretsResponse
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
185
|
}
|
|
179
186
|
|
|
180
187
|
declare enum CurrencyCode {
|
|
@@ -2364,13 +2371,44 @@ type BlockchainInfo = {
|
|
|
2364
2371
|
blockchainId: string;
|
|
2365
2372
|
};
|
|
2366
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
|
+
|
|
2367
2389
|
type Subnet = {
|
|
2368
2390
|
createBlockTimestamp: number;
|
|
2369
2391
|
createBlockIndex: string;
|
|
2370
2392
|
subnetId: string;
|
|
2393
|
+
/**
|
|
2394
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2395
|
+
* @deprecated
|
|
2396
|
+
*/
|
|
2371
2397
|
ownerAddresses: Array<string>;
|
|
2398
|
+
/**
|
|
2399
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2400
|
+
* @deprecated
|
|
2401
|
+
*/
|
|
2372
2402
|
threshold: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2405
|
+
* @deprecated
|
|
2406
|
+
*/
|
|
2373
2407
|
locktime: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Latest subnet owner details for this Subnet.
|
|
2410
|
+
*/
|
|
2411
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2374
2412
|
blockchains: Array<BlockchainInfo>;
|
|
2375
2413
|
};
|
|
2376
2414
|
|
|
@@ -3562,6 +3600,8 @@ declare enum PChainTransactionType {
|
|
|
3562
3600
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3563
3601
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
3602
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3603
|
+
BASE_TX = "BaseTx",
|
|
3604
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3565
3605
|
UNKNOWN = "UNKNOWN"
|
|
3566
3606
|
}
|
|
3567
3607
|
|
|
@@ -3681,6 +3721,10 @@ type PChainTransaction = {
|
|
|
3681
3721
|
* Present for RewardValidatorTx
|
|
3682
3722
|
*/
|
|
3683
3723
|
stakingTxHash?: string;
|
|
3724
|
+
/**
|
|
3725
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3726
|
+
*/
|
|
3727
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3684
3728
|
};
|
|
3685
3729
|
|
|
3686
3730
|
type ListPChainTransactionsResponse = {
|
|
@@ -3864,8 +3908,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3864
3908
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3865
3909
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3866
3910
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3867
|
-
UNKNOWN = "UNKNOWN",
|
|
3868
3911
|
BASE_TX = "BaseTx",
|
|
3912
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3913
|
+
UNKNOWN = "UNKNOWN",
|
|
3869
3914
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3870
3915
|
OPERATION_TX = "OperationTx"
|
|
3871
3916
|
}
|
|
@@ -4230,4 +4275,4 @@ declare class ApiError extends Error {
|
|
|
4230
4275
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4231
4276
|
}
|
|
4232
4277
|
|
|
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 };
|
|
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
|
@@ -394,7 +394,13 @@ class DefaultService {
|
|
|
394
394
|
generateSharedSecret() {
|
|
395
395
|
return this.httpRequest.request({
|
|
396
396
|
method: "POST",
|
|
397
|
-
url: "/v1/webhooks:
|
|
397
|
+
url: "/v1/webhooks:generateOrRotateSharedSecret"
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
getSharedSecret() {
|
|
401
|
+
return this.httpRequest.request({
|
|
402
|
+
method: "GET",
|
|
403
|
+
url: "/v1/webhooks:getSharedSecret"
|
|
398
404
|
});
|
|
399
405
|
}
|
|
400
406
|
}
|
|
@@ -1816,6 +1822,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1816
1822
|
PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1817
1823
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1818
1824
|
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1825
|
+
PChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
1826
|
+
PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
1819
1827
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
1820
1828
|
return PChainTransactionType2;
|
|
1821
1829
|
})(PChainTransactionType || {});
|
|
@@ -1873,8 +1881,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1873
1881
|
PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1874
1882
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1875
1883
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1876
|
-
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1877
1884
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
1885
|
+
PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
1886
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1878
1887
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
1879
1888
|
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
1880
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 };
|
|
@@ -62,6 +62,13 @@ declare class DefaultService {
|
|
|
62
62
|
* @throws ApiError
|
|
63
63
|
*/
|
|
64
64
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get a shared secret
|
|
67
|
+
* Get a previously generated shared secret.
|
|
68
|
+
* @returns SharedSecretsResponse
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
export { DefaultService };
|
|
@@ -47,7 +47,13 @@ class DefaultService {
|
|
|
47
47
|
generateSharedSecret() {
|
|
48
48
|
return this.httpRequest.request({
|
|
49
49
|
method: "POST",
|
|
50
|
-
url: "/v1/webhooks:
|
|
50
|
+
url: "/v1/webhooks:generateOrRotateSharedSecret"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
getSharedSecret() {
|
|
54
|
+
return this.httpRequest.request({
|
|
55
|
+
method: "GET",
|
|
56
|
+
url: "/v1/webhooks:getSharedSecret"
|
|
51
57
|
});
|
|
52
58
|
}
|
|
53
59
|
}
|
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-canary.
|
|
3
|
+
"version": "2.8.0-canary.238a9f2.0+238a9f2",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "238a9f26e589f5dc45cf85f1a4effba5c54c5cd2"
|
|
33
33
|
}
|