@avalabs/glacier-sdk 3.1.0-canary.801d1a5.0 → 3.1.0-canary.809f9ff.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 (103) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1068 -143
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessListData.d.ts +12 -0
  6. package/esm/generated/models/AccessRequest.d.ts +12 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  8. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  9. package/esm/generated/models/CommonBalanceType.js +1 -0
  10. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  11. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  12. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  13. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  14. package/esm/generated/models/ERCToken.d.ts +24 -0
  15. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  16. package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
  17. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  18. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  19. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  20. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  21. package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
  22. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  23. package/esm/generated/models/EventType.d.ts +3 -1
  24. package/esm/generated/models/EventType.js +1 -1
  25. package/esm/generated/models/Geolocation.d.ts +24 -0
  26. package/esm/generated/models/GetTransactionResponse.d.ts +1 -1
  27. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  28. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  29. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  30. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  31. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  32. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  33. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  34. package/esm/generated/models/IcmRewardDetails.js +1 -0
  35. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  36. package/esm/generated/models/InternalTransaction.d.ts +15 -16
  37. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  38. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  39. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
  40. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +4 -0
  41. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  42. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  43. package/esm/generated/models/Log.d.ts +40 -0
  44. package/esm/generated/models/Network.d.ts +1 -2
  45. package/esm/generated/models/Network.js +1 -1
  46. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  47. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  48. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  49. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  50. package/esm/generated/models/PendingIcmMessage.js +1 -0
  51. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  52. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  53. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  54. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  55. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  56. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  57. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  58. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  59. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  60. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  61. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
  62. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
  63. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  64. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  65. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  66. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  67. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  68. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  69. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  70. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  71. package/esm/generated/models/Subnet.d.ts +2 -2
  72. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  73. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  74. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  75. package/esm/generated/models/Transaction.d.ts +121 -0
  76. package/esm/generated/models/TransactionDetails.d.ts +1 -1
  77. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  78. package/esm/generated/models/UnknownContract.d.ts +1 -1
  79. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  80. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  81. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  82. package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
  83. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  84. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  85. package/esm/generated/services/EvmTransactionsService.d.ts +1 -1
  86. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  87. package/esm/generated/services/HealthCheckService.js +1 -1
  88. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  89. package/esm/generated/services/InterchainMessagingService.js +1 -0
  90. package/esm/generated/services/NotificationsService.d.ts +51 -0
  91. package/esm/generated/services/NotificationsService.js +1 -0
  92. package/esm/generated/services/PrimaryNetworkService.d.ts +18 -1
  93. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  94. package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
  95. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  96. package/esm/generated/services/TeleporterService.d.ts +12 -6
  97. package/esm/generated/services/WebhooksService.d.ts +26 -24
  98. package/esm/generated/services/WebhooksService.js +1 -1
  99. package/esm/index.d.ts +40 -3
  100. package/esm/index.js +1 -1
  101. package/package.json +4 -3
  102. package/dist/index.js +0 -1
  103. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
@@ -0,0 +1,40 @@
1
+ type Log = {
2
+ /**
3
+ * Contract address
4
+ */
5
+ address: string;
6
+ /**
7
+ * First topic
8
+ */
9
+ topic0: string;
10
+ /**
11
+ * Second topic (optional)
12
+ */
13
+ topic1?: string;
14
+ /**
15
+ * Third topic (optional)
16
+ */
17
+ topic2?: string;
18
+ /**
19
+ * Fourth topic (optional)
20
+ */
21
+ topic3?: string;
22
+ /**
23
+ * Event data
24
+ */
25
+ data: string;
26
+ /**
27
+ * Transaction index
28
+ */
29
+ transactionIndex: number;
30
+ /**
31
+ * Log index
32
+ */
33
+ logIndex: number;
34
+ /**
35
+ * Indicates if the log was removed
36
+ */
37
+ removed: boolean;
38
+ };
39
+
40
+ export { Log };
@@ -1,8 +1,7 @@
1
1
  declare enum Network {
2
2
  MAINNET = "mainnet",
3
3
  FUJI = "fuji",
4
- TESTNET = "testnet",
5
- DEVNET = "devnet"
4
+ TESTNET = "testnet"
6
5
  }
7
6
 
8
7
  export { Network };
@@ -1 +1 @@
1
- var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(e||{});export{e as Network};
1
+ var t=(t=>(t.MAINNET="mainnet",t.FUJI="fuji",t.TESTNET="testnet",t))(t||{});export{t as Network};
@@ -0,0 +1,20 @@
1
+ type NetworkTokenInfo = {
2
+ /**
3
+ * Token name
4
+ */
5
+ tokenName?: string;
6
+ /**
7
+ * Token symbol
8
+ */
9
+ tokenSymbol?: string;
10
+ /**
11
+ * Token decimals
12
+ */
13
+ tokenDecimals?: number;
14
+ /**
15
+ * Value including decimals
16
+ */
17
+ valueWithDecimals?: string;
18
+ };
19
+
20
+ export { NetworkTokenInfo };
@@ -0,0 +1,5 @@
1
+ type NotificationsResponse = {
2
+ message: string;
3
+ };
4
+
5
+ export { NotificationsResponse };
@@ -7,7 +7,7 @@ type OperationStatusResponse = {
7
7
  operationType: OperationType;
8
8
  operationStatus: OperationStatus;
9
9
  message?: string;
10
- metadata: TransactionExportMetadata;
10
+ metadata?: TransactionExportMetadata;
11
11
  createdAtTimestamp: number;
12
12
  updatedAtTimestamp: number;
13
13
  };
@@ -0,0 +1,29 @@
1
+ import { IcmReceipt } from './IcmReceipt.js';
2
+ import { IcmRewardDetails } from './IcmRewardDetails.js';
3
+ import { IcmSourceTransaction } from './IcmSourceTransaction.js';
4
+
5
+ type PendingIcmMessage = {
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
+ sourceTransaction: IcmSourceTransaction;
21
+ status: PendingIcmMessage.status;
22
+ };
23
+ declare namespace PendingIcmMessage {
24
+ enum status {
25
+ PENDING = "pending"
26
+ }
27
+ }
28
+
29
+ export { PendingIcmMessage };
@@ -0,0 +1 @@
1
+ var t,s;((s=t||(t={})).status||(s.status={})).PENDING="pending";export{t as PendingIcmMessage};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The type of key for platform activity depending on the event type
3
+ */
4
+ declare enum PlatformActivityKeyType {
5
+ ADDRESSES = "addresses",
6
+ NODE_ID = "nodeId",
7
+ SUBNET_ID = "subnetId"
8
+ }
9
+
10
+ export { PlatformActivityKeyType };
@@ -0,0 +1 @@
1
+ var d=(d=>(d.ADDRESSES="addresses",d.NODE_ID="nodeId",d.SUBNET_ID="subnetId",d))(d||{});export{d as PlatformActivityKeyType};
@@ -0,0 +1,37 @@
1
+ import { PlatformActivityKeyType } from './PlatformActivityKeyType.js';
2
+ import { PlatformActivitySubEvents } from './PlatformActivitySubEvents.js';
3
+ import { PlatformBalanceThresholdFilter } from './PlatformBalanceThresholdFilter.js';
4
+
5
+ type PlatformActivityMetadata = {
6
+ keyType: PlatformActivityKeyType;
7
+ /**
8
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
9
+ */
10
+ keys: Array<string>;
11
+ /**
12
+ * Sub-events to monitor
13
+ */
14
+ subEvents?: PlatformActivitySubEvents;
15
+ /**
16
+ * Array of hexadecimal strings of the event signatures.
17
+ */
18
+ eventSignatures?: Array<string>;
19
+ /**
20
+ * Array of node IDs to filter the events
21
+ */
22
+ nodeIds?: Array<string>;
23
+ /**
24
+ * Array of subnet IDs to filter the events
25
+ */
26
+ subnetIds?: Array<string>;
27
+ /**
28
+ * Balance threshold filter
29
+ */
30
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
31
+ /**
32
+ * L1 validator fee balance threshold in nAVAX
33
+ */
34
+ l1ValidatorFeeBalanceThreshold?: string;
35
+ };
36
+
37
+ export { PlatformActivityMetadata };
@@ -0,0 +1,31 @@
1
+ import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
2
+ import { PrimaryNetworkType } from './PrimaryNetworkType.js';
3
+
4
+ type PlatformActivityRequest = {
5
+ eventType: PlatformActivityRequest.eventType;
6
+ url: string;
7
+ chainId: string;
8
+ network?: PrimaryNetworkType;
9
+ name?: string;
10
+ description?: string;
11
+ /**
12
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
13
+ */
14
+ includeInternalTxs?: boolean;
15
+ /**
16
+ * Whether to include logs in the webhook payload.
17
+ */
18
+ includeLogs?: boolean;
19
+ /**
20
+ * Metadata for platform activity
21
+ */
22
+ metadata: PlatformActivityMetadata;
23
+ };
24
+ declare namespace PlatformActivityRequest {
25
+ enum eventType {
26
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
27
+ VALIDATOR_ACTIVITY = "validator_activity"
28
+ }
29
+ }
30
+
31
+ export { PlatformActivityRequest };
@@ -0,0 +1 @@
1
+ var t,e,T;e=t||(t={}),(T=e.eventType||(e.eventType={})).PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",T.VALIDATOR_ACTIVITY="validator_activity";export{t as PlatformActivityRequest};
@@ -0,0 +1,17 @@
1
+ import { EventType } from './EventType.js';
2
+ import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type PlatformActivityResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ url: string;
9
+ chainId: string;
10
+ status: WebhookStatusType;
11
+ createdAt: number;
12
+ name: string;
13
+ description: string;
14
+ metadata: PlatformActivityMetadata;
15
+ };
16
+
17
+ export { PlatformActivityResponse };
@@ -0,0 +1,11 @@
1
+ import { PlatformAddressActivitySubEventType } from './PlatformAddressActivitySubEventType.js';
2
+
3
+ type PlatformActivitySubEvents = {
4
+ /**
5
+ * Array of validator activity sub-event types
6
+ */
7
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
8
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
9
+ };
10
+
11
+ export { PlatformActivitySubEvents };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Array of address activity sub-event types
3
+ */
4
+ declare enum PlatformAddressActivitySubEventType {
5
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
6
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
7
+ REWARD_DISTRIBUTION = "reward_distribution"
8
+ }
9
+
10
+ export { PlatformAddressActivitySubEventType };
@@ -0,0 +1 @@
1
+ var _=(_=>(_.BALANCE_CHANGE_PLATFORM="balance_change_platform",_.BALANCE_THRESHOLD_PLATFORM="balance_threshold_platform",_.REWARD_DISTRIBUTION="reward_distribution",_))(_||{});export{_ as PlatformAddressActivitySubEventType};
@@ -0,0 +1,11 @@
1
+ import { CommonBalanceType } from './CommonBalanceType.js';
2
+
3
+ type PlatformBalanceThresholdFilter = {
4
+ balanceType: CommonBalanceType;
5
+ /**
6
+ * Threshold for balance corresponding to balanceType in nAVAX
7
+ */
8
+ balanceThreshold: string;
9
+ };
10
+
11
+ export { PlatformBalanceThresholdFilter };
@@ -1,4 +1,5 @@
1
1
  declare enum PrimaryNetworkRpcMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
2
3
  REQUEST_PATH = "requestPath",
3
4
  RESPONSE_CODE = "responseCode",
4
5
  COUNTRY = "country",
@@ -1 +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};
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
@@ -0,0 +1,8 @@
1
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { PrimaryNetworkRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as PrimaryNetworkRpcTimeIntervalGranularity};
@@ -0,0 +1,27 @@
1
+ import { RpcMetrics } from './RpcMetrics.js';
2
+
3
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
4
+ /**
5
+ * Duration in which the metrics value is aggregated
6
+ */
7
+ aggregateDuration: string;
8
+ /**
9
+ * Metrics values
10
+ */
11
+ metrics: Array<RpcMetrics>;
12
+ /**
13
+ * Network type for which the metrics are aggregated
14
+ */
15
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
16
+ };
17
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
18
+ /**
19
+ * Network type for which the metrics are aggregated
20
+ */
21
+ enum network {
22
+ MAINNET = "mainnet",
23
+ TESTNET = "testnet"
24
+ }
25
+ }
26
+
27
+ export { PrimaryNetworkRpcUsageMetricsResponseDTO };
@@ -0,0 +1 @@
1
+ var t,e,n;e=t||(t={}),(n=e.network||(e.network={})).MAINNET="mainnet",n.TESTNET="testnet";export{t as PrimaryNetworkRpcUsageMetricsResponseDTO};
@@ -0,0 +1,6 @@
1
+ declare enum PrimaryNetworkType {
2
+ MAINNET = "mainnet",
3
+ FUJI = "fuji"
4
+ }
5
+
6
+ export { PrimaryNetworkType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetworkType};
@@ -44,6 +44,10 @@ declare namespace RpcUsageMetricsValueAggregated {
44
44
  RPC_METHOD = "rpcMethod",
45
45
  RESPONSE_CODE = "responseCode",
46
46
  RL_BYPASS_TOKEN = "rlBypassToken",
47
+ REQUEST_PATH = "requestPath",
48
+ COUNTRY = "country",
49
+ CONTINENT = "continent",
50
+ USER_AGENT = "userAgent",
47
51
  NONE = "None"
48
52
  }
49
53
  }
@@ -1 +1 @@
1
- var e,o,r;o=e||(e={}),(r=o.groupedBy||(o.groupedBy={})).RPC_METHOD="rpcMethod",r.RESPONSE_CODE="responseCode",r.RL_BYPASS_TOKEN="rlBypassToken",r.NONE="None";export{e as RpcUsageMetricsValueAggregated};
1
+ var e,E,o;E=e||(e={}),(o=E.groupedBy||(E.groupedBy={})).RPC_METHOD="rpcMethod",o.RESPONSE_CODE="responseCode",o.RL_BYPASS_TOKEN="rlBypassToken",o.REQUEST_PATH="requestPath",o.COUNTRY="country",o.CONTINENT="continent",o.USER_AGENT="userAgent",o.NONE="None";export{e as RpcUsageMetricsValueAggregated};
@@ -1,4 +1,4 @@
1
- import { BlockchainInfo } from './BlockchainInfo.js';
1
+ import { Blockchain } from './Blockchain.js';
2
2
  import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
3
3
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
4
 
@@ -37,7 +37,7 @@ type Subnet = {
37
37
  * L1 validator manager details.
38
38
  */
39
39
  l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
40
- blockchains: Array<BlockchainInfo>;
40
+ blockchains: Array<Blockchain>;
41
41
  };
42
42
 
43
43
  export { Subnet };
@@ -0,0 +1,16 @@
1
+ type SubscribeRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ /**
7
+ * The node ID to subscribe to
8
+ */
9
+ nodeId: string;
10
+ /**
11
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
12
+ */
13
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
14
+ };
15
+
16
+ export { SubscribeRequest };
@@ -0,0 +1,8 @@
1
+ type SubscriptionsRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ };
7
+
8
+ export { SubscriptionsRequest };
@@ -0,0 +1,14 @@
1
+ type SubscriptionsResponse = {
2
+ /**
3
+ * The email address of the user
4
+ */
5
+ email: string;
6
+ /**
7
+ * The subscriptions of the user
8
+ */
9
+ subscriptions: Record<string, {
10
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
11
+ }>;
12
+ };
13
+
14
+ export { SubscriptionsResponse };
@@ -0,0 +1,121 @@
1
+ import { AccessListData } from './AccessListData.js';
2
+ import { ERCTransfer } from './ERCTransfer.js';
3
+ import { InternalTransaction } from './InternalTransaction.js';
4
+ import { NetworkTokenInfo } from './NetworkTokenInfo.js';
5
+
6
+ type Transaction = {
7
+ /**
8
+ * Block hash of the transaction
9
+ */
10
+ blockHash: string;
11
+ /**
12
+ * Block number of the transaction
13
+ */
14
+ blockNumber: string;
15
+ /**
16
+ * Sender address
17
+ */
18
+ from: string;
19
+ /**
20
+ * Gas limit for the transaction
21
+ */
22
+ gas: string;
23
+ /**
24
+ * Gas price used
25
+ */
26
+ gasPrice: string;
27
+ /**
28
+ * Maximum fee per gas
29
+ */
30
+ maxFeePerGas: string;
31
+ /**
32
+ * Maximum priority fee per gas
33
+ */
34
+ maxPriorityFeePerGas: string;
35
+ /**
36
+ * Transaction hash
37
+ */
38
+ txHash: string;
39
+ /**
40
+ * Transaction status
41
+ */
42
+ txStatus: string;
43
+ /**
44
+ * Input data
45
+ */
46
+ input: string;
47
+ /**
48
+ * Nonce value
49
+ */
50
+ nonce: string;
51
+ /**
52
+ * Recipient address
53
+ */
54
+ to: string;
55
+ /**
56
+ * Transaction index
57
+ */
58
+ transactionIndex: number;
59
+ /**
60
+ * Value transferred in the transaction
61
+ */
62
+ value: string;
63
+ /**
64
+ * Transaction type
65
+ */
66
+ type: number;
67
+ /**
68
+ * Chain ID of the network
69
+ */
70
+ chainId: string;
71
+ /**
72
+ * Cumulative gas used
73
+ */
74
+ receiptCumulativeGasUsed: string;
75
+ /**
76
+ * Gas used
77
+ */
78
+ receiptGasUsed: string;
79
+ /**
80
+ * Effective gas price
81
+ */
82
+ receiptEffectiveGasPrice: string;
83
+ /**
84
+ * Receipt root
85
+ */
86
+ receiptRoot: string;
87
+ /**
88
+ * Block timestamp
89
+ */
90
+ blockTimestamp: number;
91
+ /**
92
+ * Contract address (optional)
93
+ */
94
+ contractAddress?: string;
95
+ /**
96
+ * ERC20 transfers
97
+ */
98
+ erc20Transfers: Array<ERCTransfer>;
99
+ /**
100
+ * ERC721 transfers
101
+ */
102
+ erc721Transfers: Array<ERCTransfer>;
103
+ /**
104
+ * ERC1155 transfers
105
+ */
106
+ erc1155Transfers: Array<ERCTransfer>;
107
+ /**
108
+ * Internal transactions (optional)
109
+ */
110
+ internalTransactions?: Array<InternalTransaction>;
111
+ /**
112
+ * Access list (optional)
113
+ */
114
+ accessList?: Array<AccessListData>;
115
+ /**
116
+ * Network token info (optional)
117
+ */
118
+ networkToken?: NetworkTokenInfo;
119
+ };
120
+
121
+ export { Transaction };
@@ -22,7 +22,7 @@ type TransactionDetails = {
22
22
  */
23
23
  erc1155Transfers?: Array<Erc1155TransferDetails>;
24
24
  /**
25
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
25
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
26
26
  */
27
27
  internalTransactions?: Array<InternalTransactionDetails>;
28
28
  };
@@ -0,0 +1,15 @@
1
+ import { Log } from './Log.js';
2
+ import { Transaction } from './Transaction.js';
3
+
4
+ type TransactionEvent = {
5
+ /**
6
+ * Transaction details
7
+ */
8
+ transaction: Transaction;
9
+ /**
10
+ * Array of log events
11
+ */
12
+ logs?: Array<Log>;
13
+ };
14
+
15
+ export { TransactionEvent };
@@ -19,7 +19,7 @@ type UnknownContract = {
19
19
  * A wallet or contract address in mixed-case checksum encoding.
20
20
  */
21
21
  address: string;
22
- deploymentDetails: ContractDeploymentDetails;
22
+ deploymentDetails?: ContractDeploymentDetails;
23
23
  ercType: UnknownContract.ercType;
24
24
  };
25
25
  declare namespace UnknownContract {
@@ -0,0 +1,12 @@
1
+ type UnsubscribeRequest = {
2
+ /**
3
+ * The access token to use for authentication
4
+ */
5
+ accessToken: string;
6
+ /**
7
+ * The node ID to subscribe to
8
+ */
9
+ nodeId: string;
10
+ };
11
+
12
+ export { UnsubscribeRequest };
@@ -0,0 +1,30 @@
1
+ import { TransactionEvent } from './TransactionEvent.js';
2
+
3
+ type WebhookAddressActivityResponse = {
4
+ /**
5
+ * Webhook ID
6
+ */
7
+ webhookId: string;
8
+ /**
9
+ * Event type
10
+ */
11
+ eventType: WebhookAddressActivityResponse.eventType;
12
+ /**
13
+ * Message ID
14
+ */
15
+ messageId: string;
16
+ /**
17
+ * Event details
18
+ */
19
+ event: TransactionEvent;
20
+ };
21
+ declare namespace WebhookAddressActivityResponse {
22
+ /**
23
+ * Event type
24
+ */
25
+ enum eventType {
26
+ ADDRESS_ACTIVITY = "address_activity"
27
+ }
28
+ }
29
+
30
+ export { WebhookAddressActivityResponse };
@@ -0,0 +1 @@
1
+ var e,t;((t=e||(e={})).eventType||(t.eventType={})).ADDRESS_ACTIVITY="address_activity";export{e as WebhookAddressActivityResponse};