@secondlayer/shared 6.1.0 → 6.3.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.
@@ -104,6 +104,8 @@ interface ApiKeysTable {
104
104
  rate_limit: Generated<number>;
105
105
  ip_address: string;
106
106
  account_id: string;
107
+ product: Generated<"account" | "streams" | "index">;
108
+ tier: "free" | "build" | "scale" | "enterprise" | null;
107
109
  last_used_at: Date | null;
108
110
  revoked_at: Date | null;
109
111
  created_at: Generated<Date>;
@@ -314,6 +316,208 @@ interface ChainReorgsTable {
314
316
  new_canonical_event_index: number;
315
317
  created_at: Generated<Date>;
316
318
  }
319
+ type Pox4FunctionName = "stack-stx" | "delegate-stx" | "stack-extend" | "stack-increase" | "revoke-delegate-stx" | "delegate-stack-stx" | "delegate-stack-extend" | "delegate-stack-increase" | "stack-aggregation-commit" | "stack-aggregation-commit-indexed" | "stack-aggregation-increase" | "set-signer-key-authorization";
320
+ interface Pox4CallsTable {
321
+ cursor: string;
322
+ block_height: number;
323
+ block_time: Date;
324
+ burn_block_height: number;
325
+ tx_id: string;
326
+ tx_index: number;
327
+ function_name: Pox4FunctionName;
328
+ caller: string;
329
+ stacker: string | null;
330
+ delegate_to: string | null;
331
+ amount_ustx: string | null;
332
+ lock_period: number | null;
333
+ pox_addr_version: number | null;
334
+ pox_addr_hashbytes: string | null;
335
+ pox_addr_btc: string | null;
336
+ start_cycle: number | null;
337
+ end_cycle: number | null;
338
+ signer_key: string | null;
339
+ signer_signature: string | null;
340
+ auth_id: string | null;
341
+ max_amount: string | null;
342
+ reward_cycle: number | null;
343
+ aggregated_amount_ustx: string | null;
344
+ aggregated_signer_index: number | null;
345
+ auth_period: number | null;
346
+ auth_topic: string | null;
347
+ auth_allowed: boolean | null;
348
+ result_ok: boolean;
349
+ result_raw: string;
350
+ canonical: Generated<boolean>;
351
+ source_cursor: string;
352
+ created_at: Generated<Date>;
353
+ }
354
+ interface Pox4CyclesDailyTable {
355
+ date: string;
356
+ reward_cycle: number;
357
+ total_stacked_ustx: Generated<string>;
358
+ solo_stackers: Generated<number>;
359
+ delegated_principals: Generated<number>;
360
+ unique_pools: Generated<number>;
361
+ unique_signers: Generated<number>;
362
+ calls_today: Generated<number>;
363
+ updated_at: Generated<Date>;
364
+ }
365
+ interface Pox4SignersDailyTable {
366
+ date: string;
367
+ reward_cycle: number;
368
+ signer_key: string;
369
+ weight_ustx: Generated<string>;
370
+ stacker_count: Generated<number>;
371
+ aggregation_calls: Generated<number>;
372
+ updated_at: Generated<Date>;
373
+ }
374
+ type SbtcEventTopic = "completed-deposit" | "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject" | "key-rotation" | "update-protocol-contract";
375
+ interface SbtcEventsTable {
376
+ cursor: string;
377
+ block_height: number;
378
+ block_time: Date;
379
+ tx_id: string;
380
+ tx_index: number;
381
+ event_index: number;
382
+ topic: SbtcEventTopic;
383
+ request_id: number | null;
384
+ amount: string | null;
385
+ sender: string | null;
386
+ recipient_btc_version: number | null;
387
+ recipient_btc_hashbytes: string | null;
388
+ bitcoin_txid: string | null;
389
+ output_index: number | null;
390
+ sweep_txid: string | null;
391
+ burn_hash: string | null;
392
+ burn_height: number | null;
393
+ signer_bitmap: string | null;
394
+ max_fee: string | null;
395
+ fee: string | null;
396
+ block_height_at_request: number | null;
397
+ governance_contract_type: number | null;
398
+ governance_new_contract: string | null;
399
+ signer_aggregate_pubkey: string | null;
400
+ signer_threshold: number | null;
401
+ signer_address: string | null;
402
+ signer_keys_count: number | null;
403
+ canonical: Generated<boolean>;
404
+ source_cursor: string;
405
+ created_at: Generated<Date>;
406
+ }
407
+ type SbtcTokenEventType = "transfer" | "mint" | "burn";
408
+ interface SbtcTokenEventsTable {
409
+ cursor: string;
410
+ block_height: number;
411
+ block_time: Date;
412
+ tx_id: string;
413
+ tx_index: number;
414
+ event_index: number;
415
+ event_type: SbtcTokenEventType;
416
+ sender: string | null;
417
+ recipient: string | null;
418
+ amount: string;
419
+ memo: string | null;
420
+ canonical: Generated<boolean>;
421
+ source_cursor: string;
422
+ created_at: Generated<Date>;
423
+ }
424
+ interface SbtcSupplySnapshotsTable {
425
+ date: string;
426
+ total_supply: Generated<string>;
427
+ mints_today: Generated<string>;
428
+ burns_today: Generated<string>;
429
+ deposit_count: Generated<number>;
430
+ withdrawal_create_count: Generated<number>;
431
+ withdrawal_accept_count: Generated<number>;
432
+ withdrawal_reject_count: Generated<number>;
433
+ updated_at: Generated<Date>;
434
+ }
435
+ type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
436
+ interface BnsNameEventsTable {
437
+ cursor: string;
438
+ block_height: number;
439
+ block_time: Date;
440
+ tx_id: string;
441
+ tx_index: number;
442
+ event_index: number;
443
+ topic: BnsNameEventTopic;
444
+ namespace: string;
445
+ name: string;
446
+ fqn: string;
447
+ owner: string | null;
448
+ bns_id: string;
449
+ registered_at: number | null;
450
+ imported_at: number | null;
451
+ renewal_height: number | null;
452
+ stx_burn: string | null;
453
+ preordered_by: string | null;
454
+ hashed_salted_fqn_preorder: string | null;
455
+ canonical: Generated<boolean>;
456
+ source_cursor: string;
457
+ created_at: Generated<Date>;
458
+ }
459
+ type BnsNamespaceEventStatus = "launch" | "transfer-manager" | "freeze-manager" | "update-price-manager" | "freeze-price-manager" | "turn-off-manager-transfers";
460
+ interface BnsNamespaceEventsTable {
461
+ cursor: string;
462
+ block_height: number;
463
+ block_time: Date;
464
+ tx_id: string;
465
+ tx_index: number;
466
+ event_index: number;
467
+ status: BnsNamespaceEventStatus;
468
+ namespace: string;
469
+ manager: string | null;
470
+ manager_frozen: boolean | null;
471
+ manager_transfers_disabled: boolean | null;
472
+ price_function: string | null;
473
+ price_frozen: boolean | null;
474
+ lifetime: number | null;
475
+ revealed_at: number | null;
476
+ launched_at: number | null;
477
+ canonical: Generated<boolean>;
478
+ source_cursor: string;
479
+ created_at: Generated<Date>;
480
+ }
481
+ type BnsMarketplaceAction = "list-in-ustx" | "unlist-in-ustx" | "buy-in-ustx";
482
+ interface BnsMarketplaceEventsTable {
483
+ cursor: string;
484
+ block_height: number;
485
+ block_time: Date;
486
+ tx_id: string;
487
+ tx_index: number;
488
+ event_index: number;
489
+ action: BnsMarketplaceAction;
490
+ bns_id: string;
491
+ price_ustx: string | null;
492
+ commission: string | null;
493
+ canonical: Generated<boolean>;
494
+ source_cursor: string;
495
+ created_at: Generated<Date>;
496
+ }
497
+ interface BnsNamesTable {
498
+ fqn: string;
499
+ namespace: string;
500
+ name: string;
501
+ owner: string;
502
+ bns_id: string;
503
+ registered_at: number | null;
504
+ renewal_height: number | null;
505
+ last_event_cursor: string;
506
+ last_event_at: Date;
507
+ updated_at: Generated<Date>;
508
+ }
509
+ interface BnsNamespacesTable {
510
+ namespace: string;
511
+ manager: string | null;
512
+ manager_frozen: Generated<boolean>;
513
+ price_frozen: Generated<boolean>;
514
+ lifetime: number | null;
515
+ launched_at: number | null;
516
+ last_event_cursor: string;
517
+ last_event_at: Date;
518
+ name_count: Generated<number>;
519
+ updated_at: Generated<Date>;
520
+ }
317
521
  interface Database {
318
522
  blocks: BlocksTable;
319
523
  transactions: TransactionsTable;
@@ -352,6 +556,17 @@ interface Database {
352
556
  decoded_events: DecodedEventsTable;
353
557
  l2_decoder_checkpoints: L2DecoderCheckpointsTable;
354
558
  chain_reorgs: ChainReorgsTable;
559
+ pox4_calls: Pox4CallsTable;
560
+ pox4_cycles_daily: Pox4CyclesDailyTable;
561
+ pox4_signers_daily: Pox4SignersDailyTable;
562
+ sbtc_events: SbtcEventsTable;
563
+ sbtc_token_events: SbtcTokenEventsTable;
564
+ sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
565
+ bns_name_events: BnsNameEventsTable;
566
+ bns_namespace_events: BnsNamespaceEventsTable;
567
+ bns_marketplace_events: BnsMarketplaceEventsTable;
568
+ bns_names: BnsNamesTable;
569
+ bns_namespaces: BnsNamespacesTable;
355
570
  }
356
571
  type TenantStatus = "provisioning" | "active" | "limit_warning" | "paused_limit" | "suspended" | "error" | "deleted";
357
572
  interface TenantsTable {
@@ -104,6 +104,8 @@ interface ApiKeysTable {
104
104
  rate_limit: Generated<number>;
105
105
  ip_address: string;
106
106
  account_id: string;
107
+ product: Generated<"account" | "streams" | "index">;
108
+ tier: "free" | "build" | "scale" | "enterprise" | null;
107
109
  last_used_at: Date | null;
108
110
  revoked_at: Date | null;
109
111
  created_at: Generated<Date>;
@@ -314,6 +316,208 @@ interface ChainReorgsTable {
314
316
  new_canonical_event_index: number;
315
317
  created_at: Generated<Date>;
316
318
  }
319
+ type Pox4FunctionName = "stack-stx" | "delegate-stx" | "stack-extend" | "stack-increase" | "revoke-delegate-stx" | "delegate-stack-stx" | "delegate-stack-extend" | "delegate-stack-increase" | "stack-aggregation-commit" | "stack-aggregation-commit-indexed" | "stack-aggregation-increase" | "set-signer-key-authorization";
320
+ interface Pox4CallsTable {
321
+ cursor: string;
322
+ block_height: number;
323
+ block_time: Date;
324
+ burn_block_height: number;
325
+ tx_id: string;
326
+ tx_index: number;
327
+ function_name: Pox4FunctionName;
328
+ caller: string;
329
+ stacker: string | null;
330
+ delegate_to: string | null;
331
+ amount_ustx: string | null;
332
+ lock_period: number | null;
333
+ pox_addr_version: number | null;
334
+ pox_addr_hashbytes: string | null;
335
+ pox_addr_btc: string | null;
336
+ start_cycle: number | null;
337
+ end_cycle: number | null;
338
+ signer_key: string | null;
339
+ signer_signature: string | null;
340
+ auth_id: string | null;
341
+ max_amount: string | null;
342
+ reward_cycle: number | null;
343
+ aggregated_amount_ustx: string | null;
344
+ aggregated_signer_index: number | null;
345
+ auth_period: number | null;
346
+ auth_topic: string | null;
347
+ auth_allowed: boolean | null;
348
+ result_ok: boolean;
349
+ result_raw: string;
350
+ canonical: Generated<boolean>;
351
+ source_cursor: string;
352
+ created_at: Generated<Date>;
353
+ }
354
+ interface Pox4CyclesDailyTable {
355
+ date: string;
356
+ reward_cycle: number;
357
+ total_stacked_ustx: Generated<string>;
358
+ solo_stackers: Generated<number>;
359
+ delegated_principals: Generated<number>;
360
+ unique_pools: Generated<number>;
361
+ unique_signers: Generated<number>;
362
+ calls_today: Generated<number>;
363
+ updated_at: Generated<Date>;
364
+ }
365
+ interface Pox4SignersDailyTable {
366
+ date: string;
367
+ reward_cycle: number;
368
+ signer_key: string;
369
+ weight_ustx: Generated<string>;
370
+ stacker_count: Generated<number>;
371
+ aggregation_calls: Generated<number>;
372
+ updated_at: Generated<Date>;
373
+ }
374
+ type SbtcEventTopic = "completed-deposit" | "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject" | "key-rotation" | "update-protocol-contract";
375
+ interface SbtcEventsTable {
376
+ cursor: string;
377
+ block_height: number;
378
+ block_time: Date;
379
+ tx_id: string;
380
+ tx_index: number;
381
+ event_index: number;
382
+ topic: SbtcEventTopic;
383
+ request_id: number | null;
384
+ amount: string | null;
385
+ sender: string | null;
386
+ recipient_btc_version: number | null;
387
+ recipient_btc_hashbytes: string | null;
388
+ bitcoin_txid: string | null;
389
+ output_index: number | null;
390
+ sweep_txid: string | null;
391
+ burn_hash: string | null;
392
+ burn_height: number | null;
393
+ signer_bitmap: string | null;
394
+ max_fee: string | null;
395
+ fee: string | null;
396
+ block_height_at_request: number | null;
397
+ governance_contract_type: number | null;
398
+ governance_new_contract: string | null;
399
+ signer_aggregate_pubkey: string | null;
400
+ signer_threshold: number | null;
401
+ signer_address: string | null;
402
+ signer_keys_count: number | null;
403
+ canonical: Generated<boolean>;
404
+ source_cursor: string;
405
+ created_at: Generated<Date>;
406
+ }
407
+ type SbtcTokenEventType = "transfer" | "mint" | "burn";
408
+ interface SbtcTokenEventsTable {
409
+ cursor: string;
410
+ block_height: number;
411
+ block_time: Date;
412
+ tx_id: string;
413
+ tx_index: number;
414
+ event_index: number;
415
+ event_type: SbtcTokenEventType;
416
+ sender: string | null;
417
+ recipient: string | null;
418
+ amount: string;
419
+ memo: string | null;
420
+ canonical: Generated<boolean>;
421
+ source_cursor: string;
422
+ created_at: Generated<Date>;
423
+ }
424
+ interface SbtcSupplySnapshotsTable {
425
+ date: string;
426
+ total_supply: Generated<string>;
427
+ mints_today: Generated<string>;
428
+ burns_today: Generated<string>;
429
+ deposit_count: Generated<number>;
430
+ withdrawal_create_count: Generated<number>;
431
+ withdrawal_accept_count: Generated<number>;
432
+ withdrawal_reject_count: Generated<number>;
433
+ updated_at: Generated<Date>;
434
+ }
435
+ type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
436
+ interface BnsNameEventsTable {
437
+ cursor: string;
438
+ block_height: number;
439
+ block_time: Date;
440
+ tx_id: string;
441
+ tx_index: number;
442
+ event_index: number;
443
+ topic: BnsNameEventTopic;
444
+ namespace: string;
445
+ name: string;
446
+ fqn: string;
447
+ owner: string | null;
448
+ bns_id: string;
449
+ registered_at: number | null;
450
+ imported_at: number | null;
451
+ renewal_height: number | null;
452
+ stx_burn: string | null;
453
+ preordered_by: string | null;
454
+ hashed_salted_fqn_preorder: string | null;
455
+ canonical: Generated<boolean>;
456
+ source_cursor: string;
457
+ created_at: Generated<Date>;
458
+ }
459
+ type BnsNamespaceEventStatus = "launch" | "transfer-manager" | "freeze-manager" | "update-price-manager" | "freeze-price-manager" | "turn-off-manager-transfers";
460
+ interface BnsNamespaceEventsTable {
461
+ cursor: string;
462
+ block_height: number;
463
+ block_time: Date;
464
+ tx_id: string;
465
+ tx_index: number;
466
+ event_index: number;
467
+ status: BnsNamespaceEventStatus;
468
+ namespace: string;
469
+ manager: string | null;
470
+ manager_frozen: boolean | null;
471
+ manager_transfers_disabled: boolean | null;
472
+ price_function: string | null;
473
+ price_frozen: boolean | null;
474
+ lifetime: number | null;
475
+ revealed_at: number | null;
476
+ launched_at: number | null;
477
+ canonical: Generated<boolean>;
478
+ source_cursor: string;
479
+ created_at: Generated<Date>;
480
+ }
481
+ type BnsMarketplaceAction = "list-in-ustx" | "unlist-in-ustx" | "buy-in-ustx";
482
+ interface BnsMarketplaceEventsTable {
483
+ cursor: string;
484
+ block_height: number;
485
+ block_time: Date;
486
+ tx_id: string;
487
+ tx_index: number;
488
+ event_index: number;
489
+ action: BnsMarketplaceAction;
490
+ bns_id: string;
491
+ price_ustx: string | null;
492
+ commission: string | null;
493
+ canonical: Generated<boolean>;
494
+ source_cursor: string;
495
+ created_at: Generated<Date>;
496
+ }
497
+ interface BnsNamesTable {
498
+ fqn: string;
499
+ namespace: string;
500
+ name: string;
501
+ owner: string;
502
+ bns_id: string;
503
+ registered_at: number | null;
504
+ renewal_height: number | null;
505
+ last_event_cursor: string;
506
+ last_event_at: Date;
507
+ updated_at: Generated<Date>;
508
+ }
509
+ interface BnsNamespacesTable {
510
+ namespace: string;
511
+ manager: string | null;
512
+ manager_frozen: Generated<boolean>;
513
+ price_frozen: Generated<boolean>;
514
+ lifetime: number | null;
515
+ launched_at: number | null;
516
+ last_event_cursor: string;
517
+ last_event_at: Date;
518
+ name_count: Generated<number>;
519
+ updated_at: Generated<Date>;
520
+ }
317
521
  interface Database {
318
522
  blocks: BlocksTable;
319
523
  transactions: TransactionsTable;
@@ -352,6 +556,17 @@ interface Database {
352
556
  decoded_events: DecodedEventsTable;
353
557
  l2_decoder_checkpoints: L2DecoderCheckpointsTable;
354
558
  chain_reorgs: ChainReorgsTable;
559
+ pox4_calls: Pox4CallsTable;
560
+ pox4_cycles_daily: Pox4CyclesDailyTable;
561
+ pox4_signers_daily: Pox4SignersDailyTable;
562
+ sbtc_events: SbtcEventsTable;
563
+ sbtc_token_events: SbtcTokenEventsTable;
564
+ sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
565
+ bns_name_events: BnsNameEventsTable;
566
+ bns_namespace_events: BnsNamespaceEventsTable;
567
+ bns_marketplace_events: BnsMarketplaceEventsTable;
568
+ bns_names: BnsNamesTable;
569
+ bns_namespaces: BnsNamespacesTable;
355
570
  }
356
571
  type TenantStatus = "provisioning" | "active" | "limit_warning" | "paused_limit" | "suspended" | "error" | "deleted";
357
572
  interface TenantsTable {
@@ -104,6 +104,8 @@ interface ApiKeysTable {
104
104
  rate_limit: Generated<number>;
105
105
  ip_address: string;
106
106
  account_id: string;
107
+ product: Generated<"account" | "streams" | "index">;
108
+ tier: "free" | "build" | "scale" | "enterprise" | null;
107
109
  last_used_at: Date | null;
108
110
  revoked_at: Date | null;
109
111
  created_at: Generated<Date>;
@@ -314,6 +316,208 @@ interface ChainReorgsTable {
314
316
  new_canonical_event_index: number;
315
317
  created_at: Generated<Date>;
316
318
  }
319
+ type Pox4FunctionName = "stack-stx" | "delegate-stx" | "stack-extend" | "stack-increase" | "revoke-delegate-stx" | "delegate-stack-stx" | "delegate-stack-extend" | "delegate-stack-increase" | "stack-aggregation-commit" | "stack-aggregation-commit-indexed" | "stack-aggregation-increase" | "set-signer-key-authorization";
320
+ interface Pox4CallsTable {
321
+ cursor: string;
322
+ block_height: number;
323
+ block_time: Date;
324
+ burn_block_height: number;
325
+ tx_id: string;
326
+ tx_index: number;
327
+ function_name: Pox4FunctionName;
328
+ caller: string;
329
+ stacker: string | null;
330
+ delegate_to: string | null;
331
+ amount_ustx: string | null;
332
+ lock_period: number | null;
333
+ pox_addr_version: number | null;
334
+ pox_addr_hashbytes: string | null;
335
+ pox_addr_btc: string | null;
336
+ start_cycle: number | null;
337
+ end_cycle: number | null;
338
+ signer_key: string | null;
339
+ signer_signature: string | null;
340
+ auth_id: string | null;
341
+ max_amount: string | null;
342
+ reward_cycle: number | null;
343
+ aggregated_amount_ustx: string | null;
344
+ aggregated_signer_index: number | null;
345
+ auth_period: number | null;
346
+ auth_topic: string | null;
347
+ auth_allowed: boolean | null;
348
+ result_ok: boolean;
349
+ result_raw: string;
350
+ canonical: Generated<boolean>;
351
+ source_cursor: string;
352
+ created_at: Generated<Date>;
353
+ }
354
+ interface Pox4CyclesDailyTable {
355
+ date: string;
356
+ reward_cycle: number;
357
+ total_stacked_ustx: Generated<string>;
358
+ solo_stackers: Generated<number>;
359
+ delegated_principals: Generated<number>;
360
+ unique_pools: Generated<number>;
361
+ unique_signers: Generated<number>;
362
+ calls_today: Generated<number>;
363
+ updated_at: Generated<Date>;
364
+ }
365
+ interface Pox4SignersDailyTable {
366
+ date: string;
367
+ reward_cycle: number;
368
+ signer_key: string;
369
+ weight_ustx: Generated<string>;
370
+ stacker_count: Generated<number>;
371
+ aggregation_calls: Generated<number>;
372
+ updated_at: Generated<Date>;
373
+ }
374
+ type SbtcEventTopic = "completed-deposit" | "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject" | "key-rotation" | "update-protocol-contract";
375
+ interface SbtcEventsTable {
376
+ cursor: string;
377
+ block_height: number;
378
+ block_time: Date;
379
+ tx_id: string;
380
+ tx_index: number;
381
+ event_index: number;
382
+ topic: SbtcEventTopic;
383
+ request_id: number | null;
384
+ amount: string | null;
385
+ sender: string | null;
386
+ recipient_btc_version: number | null;
387
+ recipient_btc_hashbytes: string | null;
388
+ bitcoin_txid: string | null;
389
+ output_index: number | null;
390
+ sweep_txid: string | null;
391
+ burn_hash: string | null;
392
+ burn_height: number | null;
393
+ signer_bitmap: string | null;
394
+ max_fee: string | null;
395
+ fee: string | null;
396
+ block_height_at_request: number | null;
397
+ governance_contract_type: number | null;
398
+ governance_new_contract: string | null;
399
+ signer_aggregate_pubkey: string | null;
400
+ signer_threshold: number | null;
401
+ signer_address: string | null;
402
+ signer_keys_count: number | null;
403
+ canonical: Generated<boolean>;
404
+ source_cursor: string;
405
+ created_at: Generated<Date>;
406
+ }
407
+ type SbtcTokenEventType = "transfer" | "mint" | "burn";
408
+ interface SbtcTokenEventsTable {
409
+ cursor: string;
410
+ block_height: number;
411
+ block_time: Date;
412
+ tx_id: string;
413
+ tx_index: number;
414
+ event_index: number;
415
+ event_type: SbtcTokenEventType;
416
+ sender: string | null;
417
+ recipient: string | null;
418
+ amount: string;
419
+ memo: string | null;
420
+ canonical: Generated<boolean>;
421
+ source_cursor: string;
422
+ created_at: Generated<Date>;
423
+ }
424
+ interface SbtcSupplySnapshotsTable {
425
+ date: string;
426
+ total_supply: Generated<string>;
427
+ mints_today: Generated<string>;
428
+ burns_today: Generated<string>;
429
+ deposit_count: Generated<number>;
430
+ withdrawal_create_count: Generated<number>;
431
+ withdrawal_accept_count: Generated<number>;
432
+ withdrawal_reject_count: Generated<number>;
433
+ updated_at: Generated<Date>;
434
+ }
435
+ type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
436
+ interface BnsNameEventsTable {
437
+ cursor: string;
438
+ block_height: number;
439
+ block_time: Date;
440
+ tx_id: string;
441
+ tx_index: number;
442
+ event_index: number;
443
+ topic: BnsNameEventTopic;
444
+ namespace: string;
445
+ name: string;
446
+ fqn: string;
447
+ owner: string | null;
448
+ bns_id: string;
449
+ registered_at: number | null;
450
+ imported_at: number | null;
451
+ renewal_height: number | null;
452
+ stx_burn: string | null;
453
+ preordered_by: string | null;
454
+ hashed_salted_fqn_preorder: string | null;
455
+ canonical: Generated<boolean>;
456
+ source_cursor: string;
457
+ created_at: Generated<Date>;
458
+ }
459
+ type BnsNamespaceEventStatus = "launch" | "transfer-manager" | "freeze-manager" | "update-price-manager" | "freeze-price-manager" | "turn-off-manager-transfers";
460
+ interface BnsNamespaceEventsTable {
461
+ cursor: string;
462
+ block_height: number;
463
+ block_time: Date;
464
+ tx_id: string;
465
+ tx_index: number;
466
+ event_index: number;
467
+ status: BnsNamespaceEventStatus;
468
+ namespace: string;
469
+ manager: string | null;
470
+ manager_frozen: boolean | null;
471
+ manager_transfers_disabled: boolean | null;
472
+ price_function: string | null;
473
+ price_frozen: boolean | null;
474
+ lifetime: number | null;
475
+ revealed_at: number | null;
476
+ launched_at: number | null;
477
+ canonical: Generated<boolean>;
478
+ source_cursor: string;
479
+ created_at: Generated<Date>;
480
+ }
481
+ type BnsMarketplaceAction = "list-in-ustx" | "unlist-in-ustx" | "buy-in-ustx";
482
+ interface BnsMarketplaceEventsTable {
483
+ cursor: string;
484
+ block_height: number;
485
+ block_time: Date;
486
+ tx_id: string;
487
+ tx_index: number;
488
+ event_index: number;
489
+ action: BnsMarketplaceAction;
490
+ bns_id: string;
491
+ price_ustx: string | null;
492
+ commission: string | null;
493
+ canonical: Generated<boolean>;
494
+ source_cursor: string;
495
+ created_at: Generated<Date>;
496
+ }
497
+ interface BnsNamesTable {
498
+ fqn: string;
499
+ namespace: string;
500
+ name: string;
501
+ owner: string;
502
+ bns_id: string;
503
+ registered_at: number | null;
504
+ renewal_height: number | null;
505
+ last_event_cursor: string;
506
+ last_event_at: Date;
507
+ updated_at: Generated<Date>;
508
+ }
509
+ interface BnsNamespacesTable {
510
+ namespace: string;
511
+ manager: string | null;
512
+ manager_frozen: Generated<boolean>;
513
+ price_frozen: Generated<boolean>;
514
+ lifetime: number | null;
515
+ launched_at: number | null;
516
+ last_event_cursor: string;
517
+ last_event_at: Date;
518
+ name_count: Generated<number>;
519
+ updated_at: Generated<Date>;
520
+ }
317
521
  interface Database {
318
522
  blocks: BlocksTable;
319
523
  transactions: TransactionsTable;
@@ -352,6 +556,17 @@ interface Database {
352
556
  decoded_events: DecodedEventsTable;
353
557
  l2_decoder_checkpoints: L2DecoderCheckpointsTable;
354
558
  chain_reorgs: ChainReorgsTable;
559
+ pox4_calls: Pox4CallsTable;
560
+ pox4_cycles_daily: Pox4CyclesDailyTable;
561
+ pox4_signers_daily: Pox4SignersDailyTable;
562
+ sbtc_events: SbtcEventsTable;
563
+ sbtc_token_events: SbtcTokenEventsTable;
564
+ sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
565
+ bns_name_events: BnsNameEventsTable;
566
+ bns_namespace_events: BnsNamespaceEventsTable;
567
+ bns_marketplace_events: BnsMarketplaceEventsTable;
568
+ bns_names: BnsNamesTable;
569
+ bns_namespaces: BnsNamespacesTable;
355
570
  }
356
571
  type TenantStatus = "provisioning" | "active" | "limit_warning" | "paused_limit" | "suspended" | "error" | "deleted";
357
572
  interface TenantsTable {