@avalabs/glacier-sdk 2.8.0-alpha.120 → 2.8.0-alpha.121
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 +547 -589
- package/dist/index.js +137 -145
- package/esm/generated/models/ChainInfo.d.ts +1 -4
- package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/GetChainResponse.d.ts +1 -4
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +2 -2
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListPendingRewardsResponse.d.ts} +4 -4
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/PChainBalance.d.ts +13 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -5
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/Rewards.d.ts +6 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +1 -1
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -4
- package/esm/generated/models/ValidationStatusType.d.ts +5 -0
- package/esm/generated/models/ValidationStatusType.js +6 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/services/EvmService.d.ts +105 -259
- package/esm/generated/services/EvmService.js +1 -92
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/OperationsService.d.ts +5 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +222 -62
- package/esm/generated/services/PrimaryNetworkService.js +111 -3
- package/esm/index.d.ts +10 -18
- package/esm/index.js +2 -7
- package/package.json +2 -2
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +0 -8
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
|
@@ -8,9 +8,7 @@ type NetworkTokenDetails = {
|
|
|
8
8
|
*/
|
|
9
9
|
currentPrice?: Money;
|
|
10
10
|
/**
|
|
11
|
-
* The historical token price at the time the transaction
|
|
12
|
-
* occured, if available. Note, this is only provided if the transaction
|
|
13
|
-
* occured more than 24 hours ago.
|
|
11
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
14
12
|
*/
|
|
15
13
|
historicalPrice?: Money;
|
|
16
14
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { PChainSharedAsset } from './PChainSharedAsset.js';
|
|
2
3
|
|
|
3
4
|
type PChainBalance = {
|
|
4
5
|
/**
|
|
@@ -21,6 +22,18 @@ type PChainBalance = {
|
|
|
21
22
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
22
23
|
*/
|
|
23
24
|
lockedStaked: Array<PChainAsset>;
|
|
25
|
+
/**
|
|
26
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
27
|
+
*/
|
|
28
|
+
pendingStaked: Array<PChainAsset>;
|
|
29
|
+
/**
|
|
30
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
31
|
+
*/
|
|
32
|
+
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
33
|
+
/**
|
|
34
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
35
|
+
*/
|
|
36
|
+
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
24
37
|
};
|
|
25
38
|
|
|
26
39
|
export { PChainBalance };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { RewardType } from './RewardType.js';
|
|
3
|
+
|
|
4
|
+
type PendingReward = {
|
|
5
|
+
/**
|
|
6
|
+
* An array of P-Chain wallet addresses.
|
|
7
|
+
*/
|
|
8
|
+
addresses: Array<string>;
|
|
9
|
+
txHash: string;
|
|
10
|
+
amountStaked: string;
|
|
11
|
+
nodeId: string;
|
|
12
|
+
startTimestamp: number;
|
|
13
|
+
endTimestamp: number;
|
|
14
|
+
rewardType: RewardType;
|
|
15
|
+
progress: number;
|
|
16
|
+
/**
|
|
17
|
+
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
18
|
+
*/
|
|
19
|
+
estimatedReward: PChainAsset;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { PendingReward };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { PrimaryNetwork } from './PrimaryNetwork.js';
|
|
2
|
-
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
|
-
|
|
4
1
|
type PrimaryNetworkChainInfo = {
|
|
5
|
-
chainName:
|
|
6
|
-
network:
|
|
2
|
+
chainName: any;
|
|
3
|
+
network: any;
|
|
7
4
|
};
|
|
8
5
|
|
|
9
6
|
export { PrimaryNetworkChainInfo };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type PrimaryNetworkOptions = {
|
|
2
2
|
addresses: Array<string>;
|
|
3
|
+
cChainEvmAddresses?: Array<string>;
|
|
3
4
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
4
5
|
};
|
|
5
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare enum PrimaryNetworkTxType {
|
|
2
|
+
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
8
|
+
CREATE_CHAIN_TX = "CreateChainTx",
|
|
9
|
+
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
10
|
+
IMPORT_TX = "ImportTx",
|
|
11
|
+
EXPORT_TX = "ExportTx",
|
|
12
|
+
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
13
|
+
UNKNOWN = "UNKNOWN",
|
|
14
|
+
BASE_TX = "BaseTx",
|
|
15
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
16
|
+
OPERATION_TX = "OperationTx"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { PrimaryNetworkTxType };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
2
|
+
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
|
+
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
|
+
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
8
|
+
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
9
|
+
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
10
|
+
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
11
|
+
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
12
|
+
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
13
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
15
|
+
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
16
|
+
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
17
|
+
return PrimaryNetworkTxType2;
|
|
18
|
+
})(PrimaryNetworkTxType || {});
|
|
19
|
+
|
|
20
|
+
export { PrimaryNetworkTxType };
|
|
@@ -8,9 +8,7 @@ type RichAddress = {
|
|
|
8
8
|
*/
|
|
9
9
|
symbol?: string;
|
|
10
10
|
/**
|
|
11
|
-
* The number of decimals the token uses. For example `6`,
|
|
12
|
-
* means to divide the token amount by `1000000` to get its user
|
|
13
|
-
* representation.
|
|
11
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
14
12
|
*/
|
|
15
13
|
decimals?: number;
|
|
16
14
|
/**
|
|
@@ -22,13 +22,7 @@ type TransactionDetails = {
|
|
|
22
22
|
*/
|
|
23
23
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
24
24
|
/**
|
|
25
|
-
* The list of internal transactions. Note that this list only
|
|
26
|
-
* includes CALL and
|
|
27
|
-
* CALLCODE internal transactions that had a
|
|
28
|
-
* non-zero value and
|
|
29
|
-
* CREATE/CREATE2
|
|
30
|
-
* calls. Use a client provider to recieve a full debug trace of the
|
|
31
|
-
* transaction.
|
|
25
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
32
26
|
*/
|
|
33
27
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
34
28
|
};
|
|
@@ -7,10 +7,7 @@ type TransactionExportMetadata = {
|
|
|
7
7
|
*/
|
|
8
8
|
downloadUrl?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The next date (YYYY-MM-DD) to use as the
|
|
11
|
-
* up requests if a request results in a transaction history exceeding the
|
|
12
|
-
* max size and has been reported as COMPLETED_WITH_WARNING with the warning
|
|
13
|
-
* WarnTruncatedExport.
|
|
10
|
+
* The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
|
|
14
11
|
*/
|
|
15
12
|
nextDate?: string;
|
|
16
13
|
};
|
|
@@ -3,11 +3,11 @@ import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
|
|
|
3
3
|
|
|
4
4
|
type XChainBalances = {
|
|
5
5
|
/**
|
|
6
|
-
* A list of objects containing X-chain Asset balance
|
|
6
|
+
* A list of objects containing X-chain Asset balance information.
|
|
7
7
|
*/
|
|
8
8
|
locked: Array<XChainAssetBalance>;
|
|
9
9
|
/**
|
|
10
|
-
* A list of objects containing X-chain Asset balance
|
|
10
|
+
* A list of objects containing X-chain Asset balance information.
|
|
11
11
|
*/
|
|
12
12
|
unlocked: Array<XChainAssetBalance>;
|
|
13
13
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|