@avalabs/glacier-sdk 3.1.0-canary.b86a6f6.0 → 3.1.0-canary.bb4196d.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.
Files changed (81) hide show
  1. package/dist/index.d.ts +900 -328
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  6. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  8. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  9. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  10. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  11. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  12. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  13. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  14. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  15. package/esm/generated/models/EvmBlock.d.ts +4 -0
  16. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  17. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  18. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
  19. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  20. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  21. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  22. package/esm/generated/models/IcmRewardDetails.js +1 -0
  23. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  24. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  25. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  26. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  27. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  28. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  29. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  30. package/esm/generated/models/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts} +4 -4
  31. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  32. package/esm/generated/models/PChainTransaction.d.ts +25 -13
  33. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  34. package/esm/generated/models/PChainTransactionType.js +1 -1
  35. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  36. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  37. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  38. package/esm/generated/models/PendingIcmMessage.js +1 -0
  39. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  40. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
  41. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  42. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  43. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  44. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  45. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  46. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  47. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  48. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  49. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  50. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  51. package/esm/generated/models/Subnet.d.ts +4 -0
  52. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  53. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  54. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  55. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  56. package/esm/generated/models/UtxoType.d.ts +3 -0
  57. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  58. package/esm/generated/services/DataApiUsageMetricsService.d.ts +72 -22
  59. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  60. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  61. package/esm/generated/services/EvmBlocksService.js +1 -1
  62. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  63. package/esm/generated/services/EvmChainsService.js +1 -1
  64. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  65. package/esm/generated/services/EvmTransactionsService.js +1 -1
  66. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  67. package/esm/generated/services/InterchainMessagingService.js +1 -0
  68. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  69. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  70. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
  71. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  72. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
  73. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  74. package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
  75. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  76. package/esm/generated/services/TeleporterService.d.ts +12 -6
  77. package/esm/index.d.ts +16 -4
  78. package/esm/index.js +1 -1
  79. package/package.json +2 -2
  80. package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
  81. package/esm/generated/models/SovDetailsFull.d.ts +0 -33
@@ -8,6 +8,7 @@ import { EvmChainsService } from './services/EvmChainsService.js';
8
8
  import { EvmContractsService } from './services/EvmContractsService.js';
9
9
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
10
10
  import { HealthCheckService } from './services/HealthCheckService.js';
11
+ import { InterchainMessagingService } from './services/InterchainMessagingService.js';
11
12
  import { NfTsService } from './services/NfTsService.js';
12
13
  import { OperationsService } from './services/OperationsService.js';
13
14
  import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
@@ -31,6 +32,7 @@ declare class Glacier {
31
32
  readonly evmContracts: EvmContractsService;
32
33
  readonly evmTransactions: EvmTransactionsService;
33
34
  readonly healthCheck: HealthCheckService;
35
+ readonly interchainMessaging: InterchainMessagingService;
34
36
  readonly nfTs: NfTsService;
35
37
  readonly operations: OperationsService;
36
38
  readonly primaryNetwork: PrimaryNetworkService;
@@ -1 +1 @@
1
- import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as c}from"./services/HealthCheckService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as n}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as p}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as w}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as S}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as k}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as N}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as u}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as E}from"./services/SignatureAggregatorService.js";import{TeleporterService as f}from"./services/TeleporterService.js";import{WebhooksService as l}from"./services/WebhooksService.js";class q{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(q,j=e){this.request=new j({BASE:q?.BASE??"https://glacier-api-dev.avax.network",VERSION:q?.VERSION??"Beta",WITH_CREDENTIALS:q?.WITH_CREDENTIALS??!1,CREDENTIALS:q?.CREDENTIALS??"include",TOKEN:q?.TOKEN,USERNAME:q?.USERNAME,PASSWORD:q?.PASSWORD,HEADERS:q?.HEADERS,ENCODE_PATH:q?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new c(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new n(this.request),this.primaryNetworkBalances=new p(this.request),this.primaryNetworkBlocks=new w(this.request),this.primaryNetworkRewards=new S(this.request),this.primaryNetworkTransactions=new k(this.request),this.primaryNetworkUtxOs=new N(this.request),this.primaryNetworkVertices=new u(this.request),this.signatureAggregator=new E(this.request),this.teleporter=new f(this.request),this.webhooks=new l(this.request)}}export{q as Glacier};
1
+ import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{DataApiUsageMetricsService as r}from"./services/DataApiUsageMetricsService.js";import{DefaultService as s}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as i}from"./services/EvmBlocksService.js";import{EvmChainsService as o}from"./services/EvmChainsService.js";import{EvmContractsService as a}from"./services/EvmContractsService.js";import{EvmTransactionsService as c}from"./services/EvmTransactionsService.js";import{HealthCheckService as m}from"./services/HealthCheckService.js";import{InterchainMessagingService as n}from"./services/InterchainMessagingService.js";import{NfTsService as h}from"./services/NfTsService.js";import{OperationsService as v}from"./services/OperationsService.js";import{PrimaryNetworkService as p}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as w}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as S}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as N}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as u}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as E}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as f}from"./services/SignatureAggregatorService.js";import{TeleporterService as l}from"./services/TeleporterService.js";import{WebhooksService as q}from"./services/WebhooksService.js";class g{dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,j=e){this.request=new j({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"Beta",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.dataApiUsageMetrics=new r(this.request),this.default=new s(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new i(this.request),this.evmChains=new o(this.request),this.evmContracts=new a(this.request),this.evmTransactions=new c(this.request),this.healthCheck=new m(this.request),this.interchainMessaging=new n(this.request),this.nfTs=new h(this.request),this.operations=new v(this.request),this.primaryNetwork=new p(this.request),this.primaryNetworkBalances=new w(this.request),this.primaryNetworkBlocks=new S(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new N(this.request),this.primaryNetworkUtxOs=new u(this.request),this.primaryNetworkVertices=new E(this.request),this.signatureAggregator=new f(this.request),this.teleporter=new l(this.request),this.webhooks=new q(this.request)}}export{g as Glacier};
@@ -7,6 +7,9 @@ type ActiveValidatorDetails = {
7
7
  nodeId: string;
8
8
  subnetId: string;
9
9
  amountStaked: string;
10
+ /**
11
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
12
+ */
10
13
  delegationFee?: string;
11
14
  startTimestamp: number;
12
15
  endTimestamp: number;
@@ -14,12 +17,30 @@ type ActiveValidatorDetails = {
14
17
  * Present for AddPermissionlessValidatorTx
15
18
  */
16
19
  blsCredentials?: BlsCredentials;
20
+ /**
21
+ * The percentage of this validator's stake amount to the total active stake.
22
+ */
17
23
  stakePercentage: number;
24
+ /**
25
+ * The number of delegators linked to the validator.
26
+ */
18
27
  delegatorCount: number;
28
+ /**
29
+ * The total amount in nAVAX delegated to the validator.
30
+ */
19
31
  amountDelegated?: string;
32
+ /**
33
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
34
+ */
20
35
  uptimePerformance: number;
21
36
  avalancheGoVersion?: string;
37
+ /**
38
+ * The amount of stake in nAVAX that can be delegated to this validator.
39
+ */
22
40
  delegationCapacity?: string;
41
+ /**
42
+ * Estimated rewards for the validator if the validation is successful.
43
+ */
23
44
  potentialRewards: Rewards;
24
45
  validationStatus: ActiveValidatorDetails.validationStatus;
25
46
  validatorHealth: ValidatorHealthDetails;
@@ -6,7 +6,13 @@ type CompletedDelegatorDetails = {
6
6
  delegationFee: string;
7
7
  startTimestamp: number;
8
8
  endTimestamp: number;
9
+ /**
10
+ * Total rewards distributed for the successful delegation.
11
+ */
9
12
  grossReward: string;
13
+ /**
14
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
15
+ */
10
16
  netReward: string;
11
17
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
12
18
  };
@@ -6,6 +6,9 @@ type CompletedValidatorDetails = {
6
6
  nodeId: string;
7
7
  subnetId: string;
8
8
  amountStaked: string;
9
+ /**
10
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
11
+ */
9
12
  delegationFee?: string;
10
13
  startTimestamp: number;
11
14
  endTimestamp: number;
@@ -9,7 +9,7 @@ type CreateWebhookRequest = {
9
9
  name?: string;
10
10
  description?: string;
11
11
  /**
12
- * Whether to include traces in the webhook payload.
12
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
13
13
  */
14
14
  includeInternalTxs?: boolean;
15
15
  /**
@@ -0,0 +1,31 @@
1
+ import { IcmDestinationTransaction } from './IcmDestinationTransaction.js';
2
+ import { IcmReceipt } from './IcmReceipt.js';
3
+ import { IcmRewardDetails } from './IcmRewardDetails.js';
4
+ import { IcmSourceTransaction } from './IcmSourceTransaction.js';
5
+
6
+ type DeliveredIcmMessage = {
7
+ messageId: string;
8
+ icmContractAddress: string;
9
+ sourceBlockchainId: string;
10
+ destinationBlockchainId: string;
11
+ sourceEvmChainId: string;
12
+ destinationEvmChainId: string;
13
+ messageNonce: string;
14
+ from: string;
15
+ to: string;
16
+ data?: string;
17
+ messageExecuted: boolean;
18
+ receipts: Array<IcmReceipt>;
19
+ receiptDelivered: boolean;
20
+ rewardDetails: IcmRewardDetails;
21
+ sourceTransaction: IcmSourceTransaction;
22
+ destinationTransaction: IcmDestinationTransaction;
23
+ status: DeliveredIcmMessage.status;
24
+ };
25
+ declare namespace DeliveredIcmMessage {
26
+ enum status {
27
+ DELIVERED = "delivered"
28
+ }
29
+ }
30
+
31
+ export { DeliveredIcmMessage };
@@ -0,0 +1 @@
1
+ var t,e;((e=t||(t={})).status||(e.status={})).DELIVERED="delivered";export{t as DeliveredIcmMessage};
@@ -0,0 +1,29 @@
1
+ import { IcmDestinationTransaction } from './IcmDestinationTransaction.js';
2
+ import { IcmReceipt } from './IcmReceipt.js';
3
+ import { IcmRewardDetails } from './IcmRewardDetails.js';
4
+
5
+ type DeliveredSourceNotIndexedIcmMessage = {
6
+ messageId: string;
7
+ icmContractAddress: string;
8
+ sourceBlockchainId: string;
9
+ destinationBlockchainId: string;
10
+ sourceEvmChainId: string;
11
+ destinationEvmChainId: string;
12
+ messageNonce: string;
13
+ from: string;
14
+ to: string;
15
+ data?: string;
16
+ messageExecuted: boolean;
17
+ receipts: Array<IcmReceipt>;
18
+ receiptDelivered: boolean;
19
+ rewardDetails: IcmRewardDetails;
20
+ destinationTransaction: IcmDestinationTransaction;
21
+ status: DeliveredSourceNotIndexedIcmMessage.status;
22
+ };
23
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
24
+ enum status {
25
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
26
+ }
27
+ }
28
+
29
+ export { DeliveredSourceNotIndexedIcmMessage };
@@ -0,0 +1 @@
1
+ var e,t;((t=e||(e={})).status||(t.status={})).DELIVERED_SOURCE_NOT_INDEXED="delivered_source_not_indexed";export{e as DeliveredSourceNotIndexedIcmMessage};
@@ -38,11 +38,22 @@ type Erc20TokenBalance = {
38
38
  * The monetary value of the balance, if a price is available for the token.
39
39
  */
40
40
  balanceValue?: Money;
41
+ /**
42
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
43
+ */
44
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
41
45
  };
42
46
  declare namespace Erc20TokenBalance {
43
47
  enum ercType {
44
48
  ERC_20 = "ERC-20"
45
49
  }
50
+ /**
51
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
52
+ */
53
+ enum tokenReputation {
54
+ MALICIOUS = "Malicious",
55
+ BENIGN = "Benign"
56
+ }
46
57
  }
47
58
 
48
59
  export { Erc20TokenBalance };
@@ -1 +1 @@
1
- var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as Erc20TokenBalance};
1
+ var e,t,n;((t=e||(e={})).ercType||(t.ercType={})).ERC_20="ERC-20",(n=t.tokenReputation||(t.tokenReputation={})).MALICIOUS="Malicious",n.BENIGN="Benign";export{e as Erc20TokenBalance};
@@ -1,4 +1,8 @@
1
1
  type EvmBlock = {
2
+ /**
3
+ * The EVM chain ID on which the block was created.
4
+ */
5
+ chainId: string;
2
6
  /**
3
7
  * The block number on the chain.
4
8
  */
@@ -14,6 +14,10 @@ type FullNativeTransactionDetails = {
14
14
  * The block hash identifier.
15
15
  */
16
16
  blockHash: string;
17
+ /**
18
+ * The EVM chain ID on which the transaction occured.
19
+ */
20
+ chainId: string;
17
21
  /**
18
22
  * The index at which the transaction occured in the block (0-indexed).
19
23
  */
@@ -1,4 +1,8 @@
1
1
  type GetEvmBlockResponse = {
2
+ /**
3
+ * The EVM chain ID on which the block was created.
4
+ */
5
+ chainId: string;
2
6
  /**
3
7
  * The block number on the chain.
4
8
  */
@@ -9,8 +9,8 @@ type GetPrimaryNetworkBlockResponse = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
- subnetOnlyValidatorsAccruedFees?: number;
13
- activeSubnetOnlyValidators?: number;
12
+ l1ValidatorsAccruedFees?: number;
13
+ activeL1Validators?: number;
14
14
  currentSupply?: string;
15
15
  proposerDetails?: ProposerDetails;
16
16
  };
@@ -0,0 +1,9 @@
1
+ type IcmDestinationTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ rewardRedeemer: string;
6
+ delivererAddress: string;
7
+ };
8
+
9
+ export { IcmDestinationTransaction };
@@ -0,0 +1,6 @@
1
+ type IcmReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { IcmReceipt };
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type IcmRewardDetails = {
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: IcmRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace IcmRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { IcmRewardDetails };
@@ -0,0 +1 @@
1
+ var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as IcmRewardDetails};
@@ -0,0 +1,7 @@
1
+ type IcmSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { IcmSourceTransaction };
@@ -0,0 +1,33 @@
1
+ import { BalanceOwner } from './BalanceOwner.js';
2
+
3
+ type L1ValidatorDetailsFull = {
4
+ /**
5
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
6
+ */
7
+ validationId: string;
8
+ nodeId: string;
9
+ subnetId: string;
10
+ /**
11
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
12
+ */
13
+ weight: number;
14
+ /**
15
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
16
+ */
17
+ remainingBalance: number;
18
+ /**
19
+ * The timestamp of the transaction which created this L1 validator
20
+ */
21
+ creationTimestamp: number;
22
+ blsCredentials: Record<string, any>;
23
+ /**
24
+ * The L1 validator owner's balance, returned after it's disabled or removed
25
+ */
26
+ remainingBalanceOwner: BalanceOwner;
27
+ /**
28
+ * Owner ddresses details which can disable or remove the L1 validator
29
+ */
30
+ deactivationOwner: BalanceOwner;
31
+ };
32
+
33
+ export { L1ValidatorDetailsFull };
@@ -0,0 +1,23 @@
1
+ type L1ValidatorDetailsTransaction = {
2
+ /**
3
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4
+ */
5
+ validationId: string;
6
+ nodeId: string;
7
+ subnetId: string;
8
+ /**
9
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
10
+ */
11
+ weight: number;
12
+ /**
13
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
14
+ */
15
+ remainingBalance: number;
16
+ /**
17
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
18
+ */
19
+ balanceChange?: number;
20
+ blsCredentials?: Record<string, any>;
21
+ };
22
+
23
+ export { L1ValidatorDetailsTransaction };
@@ -1,10 +1,15 @@
1
1
  import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc1155BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-1155 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc20TokenBalance } from './Erc20TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc20BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-20 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc721TokenBalance } from './Erc721TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc721BalancesResponse = {
4
5
  /**
5
6
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-721 token balances for the address.
10
15
  */
@@ -0,0 +1,12 @@
1
+ import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
2
+ import { PendingIcmMessage } from './PendingIcmMessage.js';
3
+
4
+ type ListIcmMessagesResponse = {
5
+ /**
6
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
7
+ */
8
+ nextPageToken?: string;
9
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
10
+ };
11
+
12
+ export { ListIcmMessagesResponse };
@@ -1,6 +1,6 @@
1
- import { SovDetailsFull } from './SovDetailsFull.js';
1
+ import { L1ValidatorDetailsFull } from './L1ValidatorDetailsFull.js';
2
2
 
3
- type ListSubnetOnlyValidatorsResponse = {
3
+ type ListL1ValidatorsResponse = {
4
4
  /**
5
5
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
6
  */
@@ -8,7 +8,7 @@ type ListSubnetOnlyValidatorsResponse = {
8
8
  /**
9
9
  * The list of L1 validations for the given Subnet ID, NodeId or validationId
10
10
  */
11
- validators: Array<SovDetailsFull>;
11
+ validators: Array<L1ValidatorDetailsFull>;
12
12
  };
13
13
 
14
- export { ListSubnetOnlyValidatorsResponse };
14
+ export { ListL1ValidatorsResponse };
@@ -14,6 +14,10 @@ type NativeTransaction = {
14
14
  * The block hash identifier.
15
15
  */
16
16
  blockHash: string;
17
+ /**
18
+ * The EVM chain ID on which the transaction occured.
19
+ */
20
+ chainId: string;
17
21
  /**
18
22
  * The index at which the transaction occured in the block (0-indexed).
19
23
  */
@@ -1,9 +1,9 @@
1
1
  import { AssetAmount } from './AssetAmount.js';
2
2
  import { BlsCredentials } from './BlsCredentials.js';
3
+ import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
3
4
  import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
4
5
  import { PChainTransactionType } from './PChainTransactionType.js';
5
6
  import { PChainUtxo } from './PChainUtxo.js';
6
- import { SoVDetailsTransaction } from './SoVDetailsTransaction.js';
7
7
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
8
8
 
9
9
  type PChainTransaction = {
@@ -16,9 +16,18 @@ type PChainTransaction = {
16
16
  * The block finality timestamp.
17
17
  */
18
18
  blockTimestamp: number;
19
+ /**
20
+ * The height of the block in which the transaction was included
21
+ */
19
22
  blockNumber: string;
20
23
  blockHash: string;
24
+ /**
25
+ * The consumed UTXOs of the transaction
26
+ */
21
27
  consumedUtxos: Array<PChainUtxo>;
28
+ /**
29
+ * The newly created UTXOs of the transaction
30
+ */
22
31
  emittedUtxos: Array<PChainUtxo>;
23
32
  /**
24
33
  * Source chain for an atomic transaction.
@@ -29,11 +38,11 @@ type PChainTransaction = {
29
38
  */
30
39
  destinationChain?: string;
31
40
  /**
32
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
41
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
33
42
  */
34
43
  value: Array<AssetAmount>;
35
44
  /**
36
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
45
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
37
46
  */
38
47
  amountBurned: Array<AssetAmount>;
39
48
  /**
@@ -41,9 +50,9 @@ type PChainTransaction = {
41
50
  */
42
51
  amountStaked: Array<AssetAmount>;
43
52
  /**
44
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
53
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
45
54
  */
46
- amountSovBalanceBurned: Array<AssetAmount>;
55
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
47
56
  /**
48
57
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
49
58
  */
@@ -53,11 +62,11 @@ type PChainTransaction = {
53
62
  */
54
63
  endTimestamp?: number;
55
64
  /**
56
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
65
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
57
66
  */
58
67
  delegationFeePercent?: string;
59
68
  /**
60
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
69
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
61
70
  */
62
71
  nodeId?: string;
63
72
  /**
@@ -65,22 +74,25 @@ type PChainTransaction = {
65
74
  */
66
75
  subnetId?: string;
67
76
  /**
68
- * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
77
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
69
78
  */
70
79
  l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
71
80
  /**
72
- * Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
81
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
73
82
  */
74
- l1ValidatorDetails?: Array<SoVDetailsTransaction>;
83
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
75
84
  /**
76
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
85
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
77
86
  */
78
87
  estimatedReward?: string;
88
+ /**
89
+ * Reward transaction hash for the completed validations or delegations
90
+ */
79
91
  rewardTxHash?: string;
80
92
  rewardAddresses?: Array<string>;
81
93
  memo?: string;
82
94
  /**
83
- * Present for RewardValidatorTx
95
+ * Staking transaction corresponding to the RewardValidatorTx
84
96
  */
85
97
  stakingTxHash?: string;
86
98
  /**
@@ -88,7 +100,7 @@ type PChainTransaction = {
88
100
  */
89
101
  subnetOwnershipInfo?: SubnetOwnershipInfo;
90
102
  /**
91
- * Present for AddPermissionlessValidatorTx
103
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
92
104
  */
93
105
  blsCredentials?: BlsCredentials;
94
106
  };
@@ -14,11 +14,11 @@ declare enum PChainTransactionType {
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
15
  BASE_TX = "BaseTx",
16
16
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
18
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
19
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
20
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
21
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
17
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
18
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
19
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
20
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
21
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
22
22
  UNKNOWN = "UNKNOWN"
23
23
  }
24
24
 
@@ -1 +1 @@
1
- var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
1
+ var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TO_L1TX="ConvertSubnetToL1Tx",T.REGISTER_L1VALIDATOR_TX="RegisterL1ValidatorTx",T.SET_L1VALIDATOR_WEIGHT_TX="SetL1ValidatorWeightTx",T.DISABLE_L1VALIDATOR_TX="DisableL1ValidatorTx",T.INCREASE_L1VALIDATOR_BALANCE_TX="IncreaseL1ValidatorBalanceTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};