@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.d3f0d0e.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 +940 -443
- package/dist/index.js +431 -190
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +17 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +10 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +10 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +0 -42
- package/esm/generated/services/EvmBalancesService.d.ts +27 -23
- package/esm/generated/services/EvmBalancesService.js +10 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
- package/esm/generated/services/PrimaryNetworkService.js +20 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +62 -0
- package/esm/generated/services/TeleporterService.js +41 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +125 -0
- package/esm/index.d.ts +31 -2
- package/esm/index.js +14 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
|
@@ -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 };
|
|
@@ -0,0 +1,37 @@
|
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
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,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
3
|
+
*/
|
|
1
4
|
declare enum TransactionMethodType {
|
|
2
5
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
3
6
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
2
|
+
|
|
3
|
+
type UpdateWebhookRequest = {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
status?: WebhookStatusType;
|
|
8
|
+
includeInternalTxs?: boolean;
|
|
9
|
+
includeLogs?: boolean;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { UpdateWebhookRequest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
3
|
|
|
4
4
|
type Utxo = {
|
|
@@ -6,7 +6,7 @@ type Utxo = {
|
|
|
6
6
|
* Addresses that are eligible to sign the consumption of this output.
|
|
7
7
|
*/
|
|
8
8
|
addresses: Array<string>;
|
|
9
|
-
asset:
|
|
9
|
+
asset: AssetAmount;
|
|
10
10
|
/**
|
|
11
11
|
* Blockchain ID on which this output is consumed on.
|
|
12
12
|
*/
|
|
@@ -2,6 +2,7 @@ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
|
2
2
|
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
3
|
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
4
|
ValidationStatusType2["PENDING"] = "pending";
|
|
5
|
+
ValidationStatusType2["REMOVED"] = "removed";
|
|
5
6
|
return ValidationStatusType2;
|
|
6
7
|
})(ValidationStatusType || {});
|
|
7
8
|
|
|
@@ -6,10 +6,20 @@ type WebhookResponse = {
|
|
|
6
6
|
id: string;
|
|
7
7
|
eventType: EventType;
|
|
8
8
|
metadata: AddressActivityMetadata;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to include traces in the webhook payload.
|
|
11
|
+
*/
|
|
12
|
+
includeInternalTxs?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to include logs in the webhook payload.
|
|
15
|
+
*/
|
|
16
|
+
includeLogs?: boolean;
|
|
9
17
|
url: string;
|
|
10
18
|
chainId: string;
|
|
11
19
|
status: WebhookStatusType;
|
|
12
20
|
createdAt: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
13
23
|
};
|
|
14
24
|
|
|
15
25
|
export { WebhookResponse };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
|
|
2
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
3
|
+
|
|
1
4
|
type XChainAssetDetails = {
|
|
2
5
|
/**
|
|
3
6
|
* Unique ID for an asset.
|
|
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
|
|
|
15
18
|
* Denomination of this asset to represent fungibility.
|
|
16
19
|
*/
|
|
17
20
|
denomination: number;
|
|
18
|
-
|
|
19
|
-
* Type of asset like SECP256K1 or NFT.
|
|
20
|
-
*/
|
|
21
|
-
type: string;
|
|
21
|
+
type: PrimaryNetworkAssetType;
|
|
22
22
|
/**
|
|
23
23
|
* Timestamp in seconds this asset was created on.
|
|
24
24
|
*/
|
|
25
25
|
createdAtTimestamp: number;
|
|
26
|
-
|
|
27
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
28
|
-
*/
|
|
29
|
-
cap: string;
|
|
26
|
+
cap: PrimaryNetworkAssetCap;
|
|
30
27
|
};
|
|
31
28
|
|
|
32
29
|
export { XChainAssetDetails };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
|
|
2
2
|
import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
|
|
3
3
|
|
|
4
4
|
type XChainBalances = {
|
|
5
5
|
/**
|
|
6
6
|
* A list of objects containing X-chain Asset balance information.
|
|
7
7
|
*/
|
|
8
|
-
locked: Array<
|
|
8
|
+
locked: Array<AggregatedAssetAmount>;
|
|
9
9
|
/**
|
|
10
10
|
* A list of objects containing X-chain Asset balance information.
|
|
11
11
|
*/
|
|
12
|
-
unlocked: Array<
|
|
12
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
13
13
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
14
14
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { Utxo } from './Utxo.js';
|
|
3
3
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
4
4
|
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
|
|
|
16
16
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
17
17
|
*/
|
|
18
18
|
timestamp: number;
|
|
19
|
-
/**
|
|
20
|
-
* Type of transaction.
|
|
21
|
-
*/
|
|
22
19
|
txType: XChainTransactionType;
|
|
23
20
|
/**
|
|
24
21
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
|
|
|
29
26
|
/**
|
|
30
27
|
* Assets unlocked by inputs of this transaction.
|
|
31
28
|
*/
|
|
32
|
-
amountUnlocked: Array<
|
|
29
|
+
amountUnlocked: Array<AssetAmount>;
|
|
33
30
|
/**
|
|
34
31
|
* Assets created by outputs of this transaction.
|
|
35
32
|
*/
|
|
36
|
-
amountCreated: Array<
|
|
33
|
+
amountCreated: Array<AssetAmount>;
|
|
37
34
|
/**
|
|
38
35
|
* Source chain for an atomic transaction.
|
|
39
36
|
*/
|
|
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
|
|
|
43
40
|
*/
|
|
44
41
|
destinationChain?: string;
|
|
45
42
|
/**
|
|
46
|
-
*
|
|
43
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
47
44
|
*/
|
|
48
45
|
assetCreated?: XChainAssetDetails;
|
|
49
46
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { TransactionVertexDetail } from './TransactionVertexDetail.js';
|
|
3
3
|
import { Utxo } from './Utxo.js';
|
|
4
4
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
@@ -17,9 +17,6 @@ type XChainNonLinearTransaction = {
|
|
|
17
17
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
18
18
|
*/
|
|
19
19
|
timestamp: number;
|
|
20
|
-
/**
|
|
21
|
-
* Type of transaction.
|
|
22
|
-
*/
|
|
23
20
|
txType: XChainTransactionType;
|
|
24
21
|
/**
|
|
25
22
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -30,11 +27,11 @@ type XChainNonLinearTransaction = {
|
|
|
30
27
|
/**
|
|
31
28
|
* Assets unlocked by inputs of this transaction.
|
|
32
29
|
*/
|
|
33
|
-
amountUnlocked: Array<
|
|
30
|
+
amountUnlocked: Array<AssetAmount>;
|
|
34
31
|
/**
|
|
35
32
|
* Assets created by outputs of this transaction.
|
|
36
33
|
*/
|
|
37
|
-
amountCreated: Array<
|
|
34
|
+
amountCreated: Array<AssetAmount>;
|
|
38
35
|
/**
|
|
39
36
|
* Source chain for an atomic transaction.
|
|
40
37
|
*/
|
|
@@ -44,7 +41,7 @@ type XChainNonLinearTransaction = {
|
|
|
44
41
|
*/
|
|
45
42
|
destinationChain?: string;
|
|
46
43
|
/**
|
|
47
|
-
*
|
|
44
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
48
45
|
*/
|
|
49
46
|
assetCreated?: XChainAssetDetails;
|
|
50
47
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
|
+
|
|
1
3
|
type XChainSharedAssetBalance = {
|
|
2
4
|
/**
|
|
3
5
|
* Unique ID for an asset.
|
|
@@ -15,10 +17,7 @@ type XChainSharedAssetBalance = {
|
|
|
15
17
|
* Denomination of this asset to represent fungibility.
|
|
16
18
|
*/
|
|
17
19
|
denomination: number;
|
|
18
|
-
|
|
19
|
-
* Type of asset like SECP256K1 or NFT.
|
|
20
|
-
*/
|
|
21
|
-
type: string;
|
|
20
|
+
type: PrimaryNetworkAssetType;
|
|
22
21
|
/**
|
|
23
22
|
* Amount of the asset.
|
|
24
23
|
*/
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
|
-
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
|
-
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
4
|
-
import { WebhookResponse } from '../models/WebhookResponse.js';
|
|
5
|
-
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
6
1
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
2
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
3
|
|
|
@@ -14,54 +9,6 @@ declare class DefaultService {
|
|
|
14
9
|
* @throws ApiError
|
|
15
10
|
*/
|
|
16
11
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
17
|
-
/**
|
|
18
|
-
* Register a webhook
|
|
19
|
-
* Registers a new webhook.
|
|
20
|
-
* @returns WebhookResponse
|
|
21
|
-
* @throws ApiError
|
|
22
|
-
*/
|
|
23
|
-
registerWebhook({ requestBody, }: {
|
|
24
|
-
requestBody: RegisterWebhookRequest;
|
|
25
|
-
}): CancelablePromise<WebhookResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* List webhooks
|
|
28
|
-
* Lists webhooks for the user.
|
|
29
|
-
* @returns ListWebhooksResponse
|
|
30
|
-
* @throws ApiError
|
|
31
|
-
*/
|
|
32
|
-
listWebhooks({ pageSize, pageToken, status, }: {
|
|
33
|
-
/**
|
|
34
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
35
|
-
*/
|
|
36
|
-
pageSize?: number;
|
|
37
|
-
/**
|
|
38
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
39
|
-
*/
|
|
40
|
-
pageToken?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
43
|
-
*/
|
|
44
|
-
status?: WebhookStatus;
|
|
45
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* Deactivate a webhook
|
|
48
|
-
* Deactivates a webhook by ID.
|
|
49
|
-
* @returns WebhookResponse
|
|
50
|
-
* @throws ApiError
|
|
51
|
-
*/
|
|
52
|
-
deactivateWebhook({ id, }: {
|
|
53
|
-
/**
|
|
54
|
-
* The webhook identifier.
|
|
55
|
-
*/
|
|
56
|
-
id: string;
|
|
57
|
-
}): CancelablePromise<WebhookResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* Generate a shared secret
|
|
60
|
-
* Generates a new shared secret.
|
|
61
|
-
* @returns SharedSecretsResponse
|
|
62
|
-
* @throws ApiError
|
|
63
|
-
*/
|
|
64
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
65
12
|
}
|
|
66
13
|
|
|
67
14
|
export { DefaultService };
|
|
@@ -8,48 +8,6 @@ class DefaultService {
|
|
|
8
8
|
url: "/v1/media/uploadImage"
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
registerWebhook({
|
|
12
|
-
requestBody
|
|
13
|
-
}) {
|
|
14
|
-
return this.httpRequest.request({
|
|
15
|
-
method: "POST",
|
|
16
|
-
url: "/v1/webhooks",
|
|
17
|
-
body: requestBody,
|
|
18
|
-
mediaType: "application/json"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
listWebhooks({
|
|
22
|
-
pageSize = 10,
|
|
23
|
-
pageToken,
|
|
24
|
-
status
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/webhooks",
|
|
29
|
-
query: {
|
|
30
|
-
"pageSize": pageSize,
|
|
31
|
-
"pageToken": pageToken,
|
|
32
|
-
"status": status
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
deactivateWebhook({
|
|
37
|
-
id
|
|
38
|
-
}) {
|
|
39
|
-
return this.httpRequest.request({
|
|
40
|
-
method: "DELETE",
|
|
41
|
-
url: "/v1/webhooks/{id}",
|
|
42
|
-
path: {
|
|
43
|
-
"id": id
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
generateSharedSecret() {
|
|
48
|
-
return this.httpRequest.request({
|
|
49
|
-
method: "POST",
|
|
50
|
-
url: "/v1/webhooks:generateSharedSecret"
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
11
|
}
|
|
54
12
|
|
|
55
13
|
export { DefaultService };
|
|
@@ -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
|
/**
|
|
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
|
|
|
46
46
|
* @returns ListErc20BalancesResponse
|
|
47
47
|
* @throws ApiError
|
|
48
48
|
*/
|
|
49
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize,
|
|
49
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, 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
|
/**
|
|
@@ -59,14 +59,18 @@ declare class EvmBalancesService {
|
|
|
59
59
|
* The block number, if not defined the block number will be the latest block.
|
|
60
60
|
*/
|
|
61
61
|
blockNumber?: string;
|
|
62
|
+
/**
|
|
63
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
64
|
+
*/
|
|
65
|
+
pageToken?: string;
|
|
62
66
|
/**
|
|
63
67
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
64
68
|
*/
|
|
65
69
|
pageSize?: number;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
filterSpamTokens?: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* A comma separated list of contract addresses to filter by.
|
|
72
76
|
*/
|
|
@@ -84,23 +88,23 @@ declare class EvmBalancesService {
|
|
|
84
88
|
* @returns ListErc721BalancesResponse
|
|
85
89
|
* @throws ApiError
|
|
86
90
|
*/
|
|
87
|
-
listErc721Balances({ chainId, address,
|
|
91
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
92
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
93
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
94
|
*/
|
|
91
95
|
chainId: string;
|
|
92
96
|
/**
|
|
93
97
|
* A wallet address.
|
|
94
98
|
*/
|
|
95
99
|
address: string;
|
|
96
|
-
/**
|
|
97
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
98
|
-
*/
|
|
99
|
-
pageSize?: number;
|
|
100
100
|
/**
|
|
101
101
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
102
102
|
*/
|
|
103
103
|
pageToken?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
106
|
+
*/
|
|
107
|
+
pageSize?: number;
|
|
104
108
|
/**
|
|
105
109
|
* A contract addresses to filter by.
|
|
106
110
|
*/
|
|
@@ -116,9 +120,9 @@ declare class EvmBalancesService {
|
|
|
116
120
|
* @returns ListErc1155BalancesResponse
|
|
117
121
|
* @throws ApiError
|
|
118
122
|
*/
|
|
119
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
123
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
124
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
125
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
126
|
*/
|
|
123
127
|
chainId: string;
|
|
124
128
|
/**
|
|
@@ -129,14 +133,14 @@ declare class EvmBalancesService {
|
|
|
129
133
|
* The block number, if not defined the block number will be the latest block.
|
|
130
134
|
*/
|
|
131
135
|
blockNumber?: string;
|
|
132
|
-
/**
|
|
133
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
134
|
-
*/
|
|
135
|
-
pageSize?: number;
|
|
136
136
|
/**
|
|
137
137
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
138
138
|
*/
|
|
139
139
|
pageToken?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
142
|
+
*/
|
|
143
|
+
pageSize?: number;
|
|
140
144
|
/**
|
|
141
145
|
* A contract addresses to filter by.
|
|
142
146
|
*/
|
|
@@ -150,23 +154,23 @@ declare class EvmBalancesService {
|
|
|
150
154
|
* @returns ListCollectibleBalancesResponse
|
|
151
155
|
* @throws ApiError
|
|
152
156
|
*/
|
|
153
|
-
listCollectibleBalances({ chainId, address,
|
|
157
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
158
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
160
|
*/
|
|
157
161
|
chainId: string;
|
|
158
162
|
/**
|
|
159
163
|
* A wallet address.
|
|
160
164
|
*/
|
|
161
165
|
address: string;
|
|
162
|
-
/**
|
|
163
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
164
|
-
*/
|
|
165
|
-
pageSize?: number;
|
|
166
166
|
/**
|
|
167
167
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
168
168
|
*/
|
|
169
169
|
pageToken?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
172
|
+
*/
|
|
173
|
+
pageSize?: number;
|
|
170
174
|
/**
|
|
171
175
|
* A contract addresses to filter by.
|
|
172
176
|
*/
|
|
@@ -25,8 +25,9 @@ class EvmBalancesService {
|
|
|
25
25
|
chainId,
|
|
26
26
|
address,
|
|
27
27
|
blockNumber,
|
|
28
|
-
pageSize = 10,
|
|
29
28
|
pageToken,
|
|
29
|
+
pageSize = 10,
|
|
30
|
+
filterSpamTokens = true,
|
|
30
31
|
contractAddresses,
|
|
31
32
|
currency
|
|
32
33
|
}) {
|
|
@@ -39,8 +40,9 @@ class EvmBalancesService {
|
|
|
39
40
|
},
|
|
40
41
|
query: {
|
|
41
42
|
"blockNumber": blockNumber,
|
|
42
|
-
"pageSize": pageSize,
|
|
43
43
|
"pageToken": pageToken,
|
|
44
|
+
"pageSize": pageSize,
|
|
45
|
+
"filterSpamTokens": filterSpamTokens,
|
|
44
46
|
"contractAddresses": contractAddresses,
|
|
45
47
|
"currency": currency
|
|
46
48
|
}
|
|
@@ -49,8 +51,8 @@ class EvmBalancesService {
|
|
|
49
51
|
listErc721Balances({
|
|
50
52
|
chainId,
|
|
51
53
|
address,
|
|
52
|
-
pageSize = 10,
|
|
53
54
|
pageToken,
|
|
55
|
+
pageSize = 10,
|
|
54
56
|
contractAddress
|
|
55
57
|
}) {
|
|
56
58
|
return this.httpRequest.request({
|
|
@@ -61,8 +63,8 @@ class EvmBalancesService {
|
|
|
61
63
|
"address": address
|
|
62
64
|
},
|
|
63
65
|
query: {
|
|
64
|
-
"pageSize": pageSize,
|
|
65
66
|
"pageToken": pageToken,
|
|
67
|
+
"pageSize": pageSize,
|
|
66
68
|
"contractAddress": contractAddress
|
|
67
69
|
}
|
|
68
70
|
});
|
|
@@ -71,8 +73,8 @@ class EvmBalancesService {
|
|
|
71
73
|
chainId,
|
|
72
74
|
address,
|
|
73
75
|
blockNumber,
|
|
74
|
-
pageSize = 10,
|
|
75
76
|
pageToken,
|
|
77
|
+
pageSize = 10,
|
|
76
78
|
contractAddress
|
|
77
79
|
}) {
|
|
78
80
|
return this.httpRequest.request({
|
|
@@ -84,8 +86,8 @@ class EvmBalancesService {
|
|
|
84
86
|
},
|
|
85
87
|
query: {
|
|
86
88
|
"blockNumber": blockNumber,
|
|
87
|
-
"pageSize": pageSize,
|
|
88
89
|
"pageToken": pageToken,
|
|
90
|
+
"pageSize": pageSize,
|
|
89
91
|
"contractAddress": contractAddress
|
|
90
92
|
}
|
|
91
93
|
});
|
|
@@ -93,8 +95,8 @@ class EvmBalancesService {
|
|
|
93
95
|
listCollectibleBalances({
|
|
94
96
|
chainId,
|
|
95
97
|
address,
|
|
96
|
-
pageSize = 10,
|
|
97
98
|
pageToken,
|
|
99
|
+
pageSize = 10,
|
|
98
100
|
contractAddress
|
|
99
101
|
}) {
|
|
100
102
|
return this.httpRequest.request({
|
|
@@ -105,8 +107,8 @@ class EvmBalancesService {
|
|
|
105
107
|
"address": address
|
|
106
108
|
},
|
|
107
109
|
query: {
|
|
108
|
-
"pageSize": pageSize,
|
|
109
110
|
"pageToken": pageToken,
|
|
111
|
+
"pageSize": pageSize,
|
|
110
112
|
"contractAddress": contractAddress
|
|
111
113
|
}
|
|
112
114
|
});
|