@avalabs/glacier-sdk 3.1.0-canary.c0d7afa.0 → 3.1.0-canary.c1e8d55.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 (65) hide show
  1. package/dist/index.d.ts +633 -204
  2. package/dist/index.js +1 -1
  3. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  4. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  5. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  6. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  7. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  8. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  9. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  10. package/esm/generated/models/EvmBlock.d.ts +4 -0
  11. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  12. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  13. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
  14. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  15. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  16. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  17. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  18. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  19. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  20. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  21. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  22. package/esm/generated/models/PChainTransaction.d.ts +27 -14
  23. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  24. package/esm/generated/models/PChainTransactionType.js +1 -1
  25. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  26. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  27. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  28. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
  29. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  30. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  31. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  32. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  33. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  34. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  35. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  36. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  37. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  38. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  39. package/esm/generated/models/Subnet.d.ts +13 -0
  40. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  41. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  42. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  43. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  44. package/esm/generated/models/UtxoType.d.ts +3 -0
  45. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  46. package/esm/generated/services/DataApiUsageMetricsService.d.ts +72 -22
  47. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  48. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  49. package/esm/generated/services/EvmBlocksService.js +1 -1
  50. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  51. package/esm/generated/services/EvmChainsService.js +1 -1
  52. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  53. package/esm/generated/services/EvmTransactionsService.js +1 -1
  54. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  55. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  56. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -8
  57. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  58. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  59. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  60. package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
  61. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  62. package/esm/index.d.ts +9 -2
  63. package/esm/index.js +1 -1
  64. package/package.json +2 -2
  65. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
@@ -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;
@@ -0,0 +1,6 @@
1
+ type BalanceOwner = {
2
+ addresses: Array<string>;
3
+ threshold: number;
4
+ };
5
+
6
+ export { BalanceOwner };
@@ -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
  /**
@@ -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,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 };
@@ -0,0 +1,6 @@
1
+ type L1ValidatorManagerDetails = {
2
+ blockchainId: string;
3
+ contractAddress: string;
4
+ };
5
+
6
+ export { L1ValidatorManagerDetails };
@@ -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,14 @@
1
+ import { L1ValidatorDetailsFull } from './L1ValidatorDetailsFull.js';
2
+
3
+ type ListL1ValidatorsResponse = {
4
+ /**
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
+ */
7
+ nextPageToken?: string;
8
+ /**
9
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
10
+ */
11
+ validators: Array<L1ValidatorDetailsFull>;
12
+ };
13
+
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,10 @@
1
1
  import { AssetAmount } from './AssetAmount.js';
2
2
  import { BlsCredentials } from './BlsCredentials.js';
3
+ import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
4
+ import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
3
5
  import { PChainTransactionType } from './PChainTransactionType.js';
4
6
  import { PChainUtxo } from './PChainUtxo.js';
5
7
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
6
- import { SubnetValidatorManagerDetails } from './SubnetValidatorManagerDetails.js';
7
8
 
8
9
  type PChainTransaction = {
9
10
  /**
@@ -15,9 +16,18 @@ type PChainTransaction = {
15
16
  * The block finality timestamp.
16
17
  */
17
18
  blockTimestamp: number;
19
+ /**
20
+ * The height of the block in which the transaction was included
21
+ */
18
22
  blockNumber: string;
19
23
  blockHash: string;
24
+ /**
25
+ * The consumed UTXOs of the transaction
26
+ */
20
27
  consumedUtxos: Array<PChainUtxo>;
28
+ /**
29
+ * The newly created UTXOs of the transaction
30
+ */
21
31
  emittedUtxos: Array<PChainUtxo>;
22
32
  /**
23
33
  * Source chain for an atomic transaction.
@@ -28,11 +38,11 @@ type PChainTransaction = {
28
38
  */
29
39
  destinationChain?: string;
30
40
  /**
31
- * 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
32
42
  */
33
43
  value: Array<AssetAmount>;
34
44
  /**
35
- * 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
36
46
  */
37
47
  amountBurned: Array<AssetAmount>;
38
48
  /**
@@ -40,9 +50,9 @@ type PChainTransaction = {
40
50
  */
41
51
  amountStaked: Array<AssetAmount>;
42
52
  /**
43
- * 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.
44
54
  */
45
- amountSovBalanceBurned: Array<AssetAmount>;
55
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
46
56
  /**
47
57
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
48
58
  */
@@ -52,11 +62,11 @@ type PChainTransaction = {
52
62
  */
53
63
  endTimestamp?: number;
54
64
  /**
55
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
65
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
56
66
  */
57
67
  delegationFeePercent?: string;
58
68
  /**
59
- * 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
60
70
  */
61
71
  nodeId?: string;
62
72
  /**
@@ -64,22 +74,25 @@ type PChainTransaction = {
64
74
  */
65
75
  subnetId?: string;
66
76
  /**
67
- * Present for ConvertSubnetTx
77
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
68
78
  */
69
- subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
79
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
70
80
  /**
71
- * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
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
72
82
  */
73
- subnetOnlyValidatorDetails?: Array<string>;
83
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
74
84
  /**
75
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
85
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
76
86
  */
77
87
  estimatedReward?: string;
88
+ /**
89
+ * Reward transaction hash for the completed validations or delegations
90
+ */
78
91
  rewardTxHash?: string;
79
92
  rewardAddresses?: Array<string>;
80
93
  memo?: string;
81
94
  /**
82
- * Present for RewardValidatorTx
95
+ * Staking transaction corresponding to the RewardValidatorTx
83
96
  */
84
97
  stakingTxHash?: string;
85
98
  /**
@@ -87,7 +100,7 @@ type PChainTransaction = {
87
100
  */
88
101
  subnetOwnershipInfo?: SubnetOwnershipInfo;
89
102
  /**
90
- * Present for AddPermissionlessValidatorTx
103
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
91
104
  */
92
105
  blsCredentials?: BlsCredentials;
93
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};
@@ -34,16 +34,43 @@ type PChainUtxo = {
34
34
  assetId: string;
35
35
  blockNumber: string;
36
36
  blockTimestamp: number;
37
+ /**
38
+ * Block height in which the transaction consuming this UTXO was included
39
+ */
37
40
  consumingBlockNumber?: string;
41
+ /**
42
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
43
+ */
38
44
  consumingBlockTimestamp?: number;
45
+ /**
46
+ * Timestamp in seconds after which this UTXO can be consumed
47
+ */
39
48
  platformLocktime?: number;
49
+ /**
50
+ * The index of the UTXO in the transaction
51
+ */
40
52
  outputIndex: number;
41
53
  rewardType?: RewardType;
54
+ /**
55
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
56
+ */
42
57
  stakeableLocktime?: number;
43
58
  staked?: boolean;
59
+ /**
60
+ * The minimum number of signatures required to spend this UTXO
61
+ */
44
62
  threshold?: number;
63
+ /**
64
+ * The hash of the transaction that created this UTXO
65
+ */
45
66
  txHash: string;
67
+ /**
68
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
69
+ */
46
70
  utxoEndTimestamp?: number;
71
+ /**
72
+ * Timestamp in seconds at which the staked UTXO was locked.
73
+ */
47
74
  utxoStartTimestamp?: number;
48
75
  utxoType: UtxoType;
49
76
  };
@@ -6,7 +6,13 @@ type PendingDelegatorDetails = {
6
6
  delegationFee: string;
7
7
  startTimestamp: number;
8
8
  endTimestamp: number;
9
+ /**
10
+ * Estimated total rewards that will be distributed for the successful delegation.
11
+ */
9
12
  estimatedGrossReward: string;
13
+ /**
14
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
15
+ */
10
16
  estimatedNetReward: string;
11
17
  delegationStatus: PendingDelegatorDetails.delegationStatus;
12
18
  };
@@ -5,6 +5,9 @@ type PendingValidatorDetails = {
5
5
  nodeId: string;
6
6
  subnetId: string;
7
7
  amountStaked: string;
8
+ /**
9
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
10
+ */
8
11
  delegationFee?: string;
9
12
  startTimestamp: number;
10
13
  endTimestamp: number;
@@ -9,8 +9,8 @@ type PrimaryNetworkBlock = {
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
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
2
+ REQUEST_PATH = "requestPath",
3
+ RESPONSE_CODE = "responseCode",
4
+ COUNTRY = "country",
5
+ CONTINENT = "continent",
6
+ USER_AGENT = "userAgent"
7
+ }
8
+
9
+ export { PrimaryNetworkRpcMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
@@ -14,11 +14,11 @@ declare enum PrimaryNetworkTxType {
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
  CREATE_ASSET_TX = "CreateAssetTx",
24
24
  OPERATION_TX = "OperationTx"
@@ -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.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
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.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
@@ -5,6 +5,9 @@ type RemovedValidatorDetails = {
5
5
  nodeId: string;
6
6
  subnetId: string;
7
7
  amountStaked: string;
8
+ /**
9
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
10
+ */
8
11
  delegationFee?: string;
9
12
  startTimestamp: number;
10
13
  endTimestamp: number;
@@ -12,7 +15,13 @@ type RemovedValidatorDetails = {
12
15
  * Present for AddPermissionlessValidatorTx
13
16
  */
14
17
  blsCredentials?: BlsCredentials;
18
+ /**
19
+ * The transaction hash that removed the permissioned subnet validator.
20
+ */
15
21
  removeTxHash: string;
22
+ /**
23
+ * The timestamp of the transaction that removed the permissioned subnet validator.
24
+ */
16
25
  removeTimestamp: number;
17
26
  validationStatus: RemovedValidatorDetails.validationStatus;
18
27
  };
@@ -0,0 +1,7 @@
1
+ declare enum RpcUsageMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
3
+ RESPONSE_CODE = "responseCode",
4
+ RL_BYPASS_TOKEN = "rlBypassToken"
5
+ }
6
+
7
+ export { RpcUsageMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.RESPONSE_CODE="responseCode",e.RL_BYPASS_TOKEN="rlBypassToken",e))(e||{});export{e as RpcUsageMetricsGroupByEnum};
@@ -23,6 +23,10 @@ type RpcUsageMetricsValueAggregated = {
23
23
  * The number of invalid requests
24
24
  */
25
25
  invalidRequests: number;
26
+ /**
27
+ * The number of API credits wasted on invalid requests
28
+ */
29
+ apiCreditsWasted: number;
26
30
  /**
27
31
  * Column name used for data aggregation
28
32
  */
@@ -1,11 +1,5 @@
1
1
  type SignatureAggregatorRequest = {
2
- /**
3
- * Must be defined if justification is not defined
4
- */
5
- message?: string;
6
- /**
7
- * Must be defined if message is not defined
8
- */
2
+ message: string;
9
3
  justification?: string;
10
4
  signingSubnetId?: string;
11
5
  quorumPercentage?: number;
@@ -1,6 +1,15 @@
1
1
  type StakingDistribution = {
2
+ /**
3
+ * AvalancheGo version for the validator node.
4
+ */
2
5
  version: string;
6
+ /**
7
+ * The total amount staked by validators using this version.
8
+ */
3
9
  amountStaked: string;
10
+ /**
11
+ * The number of validators using this version.
12
+ */
4
13
  validatorCount: number;
5
14
  };
6
15