@@ -544,6 +544,9 @@ export const RESOURCES = {
544
544
withdrawals_counters : {
545
545
path : '/api/v2/withdrawals/counters' ,
546
546
} ,
547
+ internal_txs : {
548
+ path : '/api/v2/internal-transactions' ,
549
+ } ,
547
550
548
551
// ADDRESSES
549
552
addresses : {
@@ -1273,7 +1276,7 @@ export interface ResourceError<T = unknown> {
1273
1276
export type ResourceErrorAccount < T > = ResourceError < { errors : T } > ;
1274
1277
1275
1278
export type PaginatedResources = 'blocks' | 'block_txs' | 'block_election_rewards' |
1276
- 'txs_validated' | 'txs_pending' | 'txs_with_blobs' | 'txs_watchlist' | 'txs_execution_node' |
1279
+ 'txs_validated' | 'txs_pending' | 'txs_with_blobs' | 'txs_watchlist' | 'txs_execution_node' | 'internal_txs' |
1277
1280
'tx_internal_txs' | 'tx_logs' | 'tx_token_transfers' | 'tx_state_changes' | 'tx_blobs' |
1278
1281
'addresses' | 'addresses_metadata_search' |
1279
1282
'address_txs' | 'address_internal_txs' | 'address_token_transfers' | 'address_blocks_validated' | 'address_coin_balance' |
@@ -1342,6 +1345,7 @@ Q extends 'txs_pending' ? TransactionsResponsePending :
1342
1345
Q extends 'txs_with_blobs' ? TransactionsResponseWithBlobs :
1343
1346
Q extends 'txs_watchlist' ? TransactionsResponseWatchlist :
1344
1347
Q extends 'txs_execution_node' ? TransactionsResponseValidated :
1348
+ Q extends 'internal_txs' ? InternalTransactionsResponse :
1345
1349
Q extends 'tx' ? Transaction :
1346
1350
Q extends 'tx_internal_txs' ? InternalTransactionsResponse :
1347
1351
Q extends 'tx_logs' ? LogsResponseTx :
@@ -1388,20 +1392,6 @@ Q extends 'verified_contracts' ? VerifiedContractsResponse :
1388
1392
Q extends 'verified_contracts_counters' ? VerifiedContractsCounters :
1389
1393
Q extends 'visualize_sol2uml' ? visualizer . VisualizeResponse :
1390
1394
Q extends 'contract_verification_config' ? SmartContractVerificationConfigRaw :
1391
- Q extends 'optimistic_l2_output_roots' ? OptimisticL2OutputRootsResponse :
1392
- Q extends 'optimistic_l2_withdrawals' ? OptimisticL2WithdrawalsResponse :
1393
- Q extends 'optimistic_l2_deposits' ? OptimisticL2DepositsResponse :
1394
- Q extends 'optimistic_l2_txn_batches' ? OptimisticL2TxnBatchesResponse :
1395
- Q extends 'optimistic_l2_txn_batches_count' ? number :
1396
- Q extends 'optimistic_l2_txn_batch' ? OptimismL2TxnBatch :
1397
- Q extends 'optimistic_l2_txn_batch_celestia' ? OptimismL2TxnBatch :
1398
- Q extends 'optimistic_l2_txn_batch_txs' ? OptimismL2BatchTxs :
1399
- Q extends 'optimistic_l2_txn_batch_blocks' ? OptimismL2BatchBlocks :
1400
- Q extends 'optimistic_l2_dispute_games' ? OptimisticL2DisputeGamesResponse :
1401
- Q extends 'optimistic_l2_output_roots_count' ? number :
1402
- Q extends 'optimistic_l2_withdrawals_count' ? number :
1403
- Q extends 'optimistic_l2_deposits_count' ? number :
1404
- Q extends 'optimistic_l2_dispute_games_count' ? number :
1405
1395
never ;
1406
1396
// !!! IMPORTANT !!!
1407
1397
// See comment above
@@ -1422,34 +1412,6 @@ Q extends 'validators_blackfort' ? ValidatorsBlackfortResponse :
1422
1412
Q extends 'validators_blackfort_counters' ? ValidatorsBlackfortCountersResponse :
1423
1413
Q extends 'validators_zilliqa' ? ValidatorsZilliqaResponse :
1424
1414
Q extends 'validator_zilliqa' ? ValidatorZilliqa :
1425
- Q extends 'shibarium_withdrawals' ? ShibariumWithdrawalsResponse :
1426
- Q extends 'shibarium_deposits' ? ShibariumDepositsResponse :
1427
- Q extends 'shibarium_withdrawals_count' ? number :
1428
- Q extends 'shibarium_deposits_count' ? number :
1429
- Q extends 'arbitrum_l2_messages' ? ArbitrumL2MessagesResponse :
1430
- Q extends 'arbitrum_l2_messages_count' ? number :
1431
- Q extends 'arbitrum_l2_txn_batches' ? ArbitrumL2TxnBatchesResponse :
1432
- Q extends 'arbitrum_l2_txn_batches_count' ? number :
1433
- Q extends 'arbitrum_l2_txn_batch' ? ArbitrumL2TxnBatch :
1434
- Q extends 'arbitrum_l2_txn_batch_celestia' ? ArbitrumL2TxnBatch :
1435
- Q extends 'arbitrum_l2_txn_batch_txs' ? ArbitrumL2BatchTxs :
1436
- Q extends 'arbitrum_l2_txn_batch_blocks' ? ArbitrumL2BatchBlocks :
1437
- Q extends 'arbitrum_l2_txn_withdrawals' ? ArbitrumL2TxnWithdrawalsResponse :
1438
- Q extends 'arbitrum_l2_message_claim' ? ArbitrumL2MessageClaimResponse :
1439
- Q extends 'zkevm_l2_deposits' ? ZkEvmL2DepositsResponse :
1440
- Q extends 'zkevm_l2_deposits_count' ? number :
1441
- Q extends 'zkevm_l2_withdrawals' ? ZkEvmL2WithdrawalsResponse :
1442
- Q extends 'zkevm_l2_withdrawals_count' ? number :
1443
- Q extends 'zkevm_l2_txn_batches' ? ZkEvmL2TxnBatchesResponse :
1444
- Q extends 'zkevm_l2_txn_batches_count' ? number :
1445
- Q extends 'zkevm_l2_txn_batch' ? ZkEvmL2TxnBatch :
1446
- Q extends 'zkevm_l2_txn_batch_txs' ? ZkEvmL2TxnBatchTxs :
1447
- Q extends 'zksync_l2_txn_batches' ? ZkSyncBatchesResponse :
1448
- Q extends 'zksync_l2_txn_batches_count' ? number :
1449
- Q extends 'zksync_l2_txn_batch' ? ZkSyncBatch :
1450
- Q extends 'zksync_l2_txn_batch_txs' ? ZkSyncBatchTxs :
1451
- Q extends 'scroll_l2_txn_batch_txs' ? ScrollL2TxnBatchTxs :
1452
- Q extends 'scroll_l2_txn_batch_blocks' ? ScrollL2TxnBatchBlocks :
1453
1415
Q extends 'contract_security_audits' ? SmartContractSecurityAudits :
1454
1416
Q extends 'addresses_lookup' ? bens . LookupAddressResponse :
1455
1417
Q extends 'address_domain' ? bens . GetAddressResponse :
@@ -1485,13 +1447,6 @@ Q extends 'rewards_user_daily_claim' ? RewardsUserDailyClaimResponse :
1485
1447
Q extends 'rewards_user_referrals' ? RewardsUserReferralsResponse :
1486
1448
Q extends 'token_transfers_all' ? TokenTransferResponse :
1487
1449
Q extends 'address_xstar_score' ? AddressXStarResponse :
1488
- Q extends 'scroll_l2_txn_batches' ? ScrollL2BatchesResponse :
1489
- Q extends 'scroll_l2_txn_batches_count' ? number :
1490
- Q extends 'scroll_l2_txn_batch' ? ScrollL2TxnBatch :
1491
- Q extends 'scroll_l2_deposits' ? ScrollL2MessagesResponse :
1492
- Q extends 'scroll_l2_deposits_count' ? number :
1493
- Q extends 'scroll_l2_withdrawals' ? ScrollL2MessagesResponse :
1494
- Q extends 'scroll_l2_withdrawals_count' ? number :
1495
1450
Q extends 'advanced_filter' ? AdvancedFilterResponse :
1496
1451
Q extends 'advanced_filter_methods' ? AdvancedFilterMethodsResponse :
1497
1452
Q extends 'pools' ? PoolsResponse :
@@ -1502,10 +1457,66 @@ Q extends 'stats_contracts' ? stats.ContractsPageStats :
1502
1457
never ;
1503
1458
/* eslint-enable @stylistic/indent */
1504
1459
1505
- export type ResourcePayload < Q extends ResourceName > = ResourcePayloadA < Q > | ResourcePayloadB < Q > ;
1506
- export type PaginatedResponseItems < Q extends ResourceName > = Q extends PaginatedResources ? ResourcePayloadA < Q > [ 'items' ] | ResourcePayloadB < Q > [ 'items' ] : never ;
1460
+ /* eslint-disable @stylistic/indent */
1461
+ export type ResourcePayloadRollups < Q extends ResourceName > =
1462
+ Q extends 'optimistic_l2_output_roots' ? OptimisticL2OutputRootsResponse :
1463
+ Q extends 'optimistic_l2_withdrawals' ? OptimisticL2WithdrawalsResponse :
1464
+ Q extends 'optimistic_l2_deposits' ? OptimisticL2DepositsResponse :
1465
+ Q extends 'optimistic_l2_txn_batches' ? OptimisticL2TxnBatchesResponse :
1466
+ Q extends 'optimistic_l2_txn_batches_count' ? number :
1467
+ Q extends 'optimistic_l2_txn_batch' ? OptimismL2TxnBatch :
1468
+ Q extends 'optimistic_l2_txn_batch_celestia' ? OptimismL2TxnBatch :
1469
+ Q extends 'optimistic_l2_txn_batch_txs' ? OptimismL2BatchTxs :
1470
+ Q extends 'optimistic_l2_txn_batch_blocks' ? OptimismL2BatchBlocks :
1471
+ Q extends 'optimistic_l2_dispute_games' ? OptimisticL2DisputeGamesResponse :
1472
+ Q extends 'optimistic_l2_output_roots_count' ? number :
1473
+ Q extends 'optimistic_l2_withdrawals_count' ? number :
1474
+ Q extends 'optimistic_l2_deposits_count' ? number :
1475
+ Q extends 'optimistic_l2_dispute_games_count' ? number :
1476
+ Q extends 'shibarium_withdrawals' ? ShibariumWithdrawalsResponse :
1477
+ Q extends 'shibarium_deposits' ? ShibariumDepositsResponse :
1478
+ Q extends 'shibarium_withdrawals_count' ? number :
1479
+ Q extends 'shibarium_deposits_count' ? number :
1480
+ Q extends 'arbitrum_l2_messages' ? ArbitrumL2MessagesResponse :
1481
+ Q extends 'arbitrum_l2_messages_count' ? number :
1482
+ Q extends 'arbitrum_l2_txn_batches' ? ArbitrumL2TxnBatchesResponse :
1483
+ Q extends 'arbitrum_l2_txn_batches_count' ? number :
1484
+ Q extends 'arbitrum_l2_txn_batch' ? ArbitrumL2TxnBatch :
1485
+ Q extends 'arbitrum_l2_txn_batch_celestia' ? ArbitrumL2TxnBatch :
1486
+ Q extends 'arbitrum_l2_txn_batch_txs' ? ArbitrumL2BatchTxs :
1487
+ Q extends 'arbitrum_l2_txn_batch_blocks' ? ArbitrumL2BatchBlocks :
1488
+ Q extends 'arbitrum_l2_txn_withdrawals' ? ArbitrumL2TxnWithdrawalsResponse :
1489
+ Q extends 'arbitrum_l2_message_claim' ? ArbitrumL2MessageClaimResponse :
1490
+ Q extends 'zkevm_l2_deposits' ? ZkEvmL2DepositsResponse :
1491
+ Q extends 'zkevm_l2_deposits_count' ? number :
1492
+ Q extends 'zkevm_l2_withdrawals' ? ZkEvmL2WithdrawalsResponse :
1493
+ Q extends 'zkevm_l2_withdrawals_count' ? number :
1494
+ Q extends 'zkevm_l2_txn_batches' ? ZkEvmL2TxnBatchesResponse :
1495
+ Q extends 'zkevm_l2_txn_batches_count' ? number :
1496
+ Q extends 'zkevm_l2_txn_batch' ? ZkEvmL2TxnBatch :
1497
+ Q extends 'zkevm_l2_txn_batch_txs' ? ZkEvmL2TxnBatchTxs :
1498
+ Q extends 'zksync_l2_txn_batches' ? ZkSyncBatchesResponse :
1499
+ Q extends 'zksync_l2_txn_batches_count' ? number :
1500
+ Q extends 'zksync_l2_txn_batch' ? ZkSyncBatch :
1501
+ Q extends 'zksync_l2_txn_batch_txs' ? ZkSyncBatchTxs :
1502
+ Q extends 'scroll_l2_txn_batch_txs' ? ScrollL2TxnBatchTxs :
1503
+ Q extends 'scroll_l2_txn_batch_blocks' ? ScrollL2TxnBatchBlocks :
1504
+ Q extends 'scroll_l2_txn_batches' ? ScrollL2BatchesResponse :
1505
+ Q extends 'scroll_l2_txn_batches_count' ? number :
1506
+ Q extends 'scroll_l2_txn_batch' ? ScrollL2TxnBatch :
1507
+ Q extends 'scroll_l2_deposits' ? ScrollL2MessagesResponse :
1508
+ Q extends 'scroll_l2_deposits_count' ? number :
1509
+ Q extends 'scroll_l2_withdrawals' ? ScrollL2MessagesResponse :
1510
+ Q extends 'scroll_l2_withdrawals_count' ? number :
1511
+ never ;
1512
+ /* eslint-enable @stylistic/indent */
1513
+
1514
+ export type ResourcePayload < Q extends ResourceName > = ResourcePayloadA < Q > | ResourcePayloadB < Q > | ResourcePayloadRollups < Q > ;
1515
+ export type PaginatedResponseItems < Q extends ResourceName > = Q extends PaginatedResources ?
1516
+ ResourcePayloadA < Q > [ 'items' ] | ResourcePayloadB < Q > [ 'items' ] | ResourcePayloadRollups < Q > [ 'items' ] :
1517
+ never ;
1507
1518
export type PaginatedResponseNextPageParams < Q extends ResourceName > = Q extends PaginatedResources ?
1508
- ResourcePayloadA < Q > [ 'next_page_params' ] | ResourcePayloadB < Q > [ 'next_page_params' ] :
1519
+ ResourcePayloadA < Q > [ 'next_page_params' ] | ResourcePayloadB < Q > [ 'next_page_params' ] | ResourcePayloadRollups < Q > [ 'next_page_params' ] :
1509
1520
never ;
1510
1521
1511
1522
/* eslint-disable @stylistic/indent */
0 commit comments