@secondlayer/shared 6.33.3 → 6.35.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.
@@ -2197,6 +2197,7 @@ interface SubgraphSummary {
2197
2197
  status: string;
2198
2198
  lastProcessedBlock: number;
2199
2199
  totalProcessed: number;
2200
+ totalRows?: number;
2200
2201
  totalErrors: number;
2201
2202
  tables: string[];
2202
2203
  chainTip: number;
@@ -2210,6 +2211,13 @@ interface SubgraphSummary {
2210
2211
  /** history_filling = expected gaps while a tip-first backfill op runs. */
2211
2212
  integrity: "complete" | "gaps_detected" | "history_filling";
2212
2213
  visibility?: "public" | "private";
2214
+ /** Most recent indexing error reason + when it occurred, if any. */
2215
+ lastError?: string | null;
2216
+ lastErrorAt?: string | null;
2217
+ /** Last row mutation timestamp; powers per-card freshness. */
2218
+ updatedAt?: string | null;
2219
+ /** Number of subscriptions attached to this subgraph. */
2220
+ subscriptionCount?: number;
2213
2221
  createdAt: string;
2214
2222
  }
2215
2223
  interface SubgraphGapRange {
@@ -2368,7 +2376,7 @@ declare const SubscriptionFilterPrimitiveSchema: z4.ZodType<SubscriptionFilterPr
2368
2376
  declare const SubscriptionFilterOperatorSchema: z4.ZodType<SubscriptionFilterOperator>;
2369
2377
  declare const SubscriptionFilterClauseSchema: z4.ZodType<SubscriptionFilterClause>;
2370
2378
  declare const SubscriptionFilterSchema: z4.ZodType<SubscriptionFilter>;
2371
- declare const CHAIN_TRIGGER_TYPES: readonly ["stx_transfer", "stx_mint", "stx_burn", "stx_lock", "ft_transfer", "ft_mint", "ft_burn", "nft_transfer", "nft_mint", "nft_burn", "contract_call", "contract_deploy", "print_event"];
2379
+ declare const CHAIN_TRIGGER_TYPES: readonly ["stx_transfer", "stx_mint", "stx_burn", "stx_lock", "ft_transfer", "ft_mint", "ft_burn", "nft_transfer", "nft_mint", "nft_burn", "contract_call", "contract_deploy", "print_event", "sbtc_deposit", "sbtc_withdrawal_create", "sbtc_withdrawal_accept", "sbtc_withdrawal_reject"];
2372
2380
  /**
2373
2381
  * Per-type accepted filter fields for chain triggers, DERIVED from
2374
2382
  * {@link ChainTriggerSchema} so the agent-facing reference can never drift behind
@@ -2467,7 +2475,27 @@ type ChainTrigger = {
2467
2475
  type: "print_event"
2468
2476
  contractId?: string
2469
2477
  topic?: string
2470
- } & TraitScoped);
2478
+ } & TraitScoped) | {
2479
+ type: "sbtc_deposit"
2480
+ sender?: string
2481
+ minAmount?: ChainTriggerAmount
2482
+ maxAmount?: ChainTriggerAmount
2483
+ bitcoinTxid?: string
2484
+ requestId?: number
2485
+ } | {
2486
+ type: "sbtc_withdrawal_create"
2487
+ sender?: string
2488
+ minAmount?: ChainTriggerAmount
2489
+ maxAmount?: ChainTriggerAmount
2490
+ requestId?: number
2491
+ } | {
2492
+ type: "sbtc_withdrawal_accept"
2493
+ requestId?: number
2494
+ sweepTxid?: string
2495
+ } | {
2496
+ type: "sbtc_withdrawal_reject"
2497
+ requestId?: number
2498
+ };
2471
2499
  interface CreateSubscriptionRequest {
2472
2500
  name: string;
2473
2501
  /** Subgraph mode. */
@@ -2733,6 +2761,31 @@ declare const EMPTY_RANGE_EVENT_INDEX_SENTINEL = 2147483647;
2733
2761
  declare function encodeStreamsCursor(cursor: StreamsCursor): string;
2734
2762
  declare function decodeStreamsCursor(cursor: string): StreamsCursor;
2735
2763
  /**
2764
+ * Payload for `sbtc_deposit` (topic: completed-deposit).
2765
+ * `sender` is the Stacks address that initiated the deposit and receives the sBTC.
2766
+ */
2767
+ interface SbtcDepositEvent {
2768
+ topic: "completed-deposit";
2769
+ request_id: number;
2770
+ sender: string | null;
2771
+ amount: string;
2772
+ bitcoin_txid: string | null;
2773
+ block_height: number;
2774
+ tx_id: string;
2775
+ }
2776
+ /** Payload for `sbtc_withdrawal_create`, `sbtc_withdrawal_accept`, `sbtc_withdrawal_reject`. */
2777
+ interface SbtcWithdrawalEvent {
2778
+ topic: "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject";
2779
+ request_id: number;
2780
+ sender: string | null;
2781
+ amount: string | null;
2782
+ sweep_txid: string | null;
2783
+ /** Always false until the BTC L1 confirmer ships. */
2784
+ settlement_confirmed: false;
2785
+ block_height: number;
2786
+ tx_id: string;
2787
+ }
2788
+ /**
2736
2789
  * Delivered when a matched chain event lands in a canonical block
2737
2790
  * (`event_type: "chain.<trigger>.apply"`). Tx-level triggers (contract_call /
2738
2791
  * contract_deploy) carry the tx as `event`; event-level triggers carry the event.
@@ -2747,7 +2800,7 @@ interface ChainApplyEnvelope {
2747
2800
  canonical: true;
2748
2801
  /** The chain-trigger type that matched. */
2749
2802
  trigger: ChainTrigger["type"];
2750
- event: Record<string, unknown>;
2803
+ event: SbtcDepositEvent | SbtcWithdrawalEvent | Record<string, unknown>;
2751
2804
  }
2752
2805
  /** One orphaned delivery recalled by a reorg rollback. */
2753
2806
  interface ChainReorgOrphanedEntry {
@@ -2769,4 +2822,4 @@ interface ChainReorgRollbackEnvelope {
2769
2822
  }
2770
2823
  /** Any chain-subscription webhook body. Discriminate on `action`. */
2771
2824
  type ChainWebhookEnvelope = ChainApplyEnvelope | ChainReorgRollbackEnvelope;
2772
- export { validateSubscriptionFilterForTable, sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, logger, jsonb, isPox4DecoderEnabled, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getErrorMessage, getEnv, getDbSplitStatus, getDb, generateSubgraphSpec, generateSubgraphOpenApi, generateSubgraphMarkdown, generateSubgraphAgentSchema, formatSubscriptionSchemaErrors, finalizedBurnHeight, encodeStreamsCursor, exports_ed25519 as ed25519, decodeStreamsCursor, exports_hmac as crypto, closeDb, assertDbSplit, X402PaymentsTable, X402BalancesTable, VersionConflictError, ValidationError, UsageSnapshotsTable, UsageSnapshot, UsageDailyTable, UsageDaily, UpdateTransaction, UpdateTenantUsageMonthly, UpdateTenantComputeAddon, UpdateTenant, UpdateSubscriptionRequestSchema, UpdateSubscriptionRequest, UpdateSubscriptionOutbox, UpdateSubscription, UpdateSubgraphOperation, UpdateSubgraph, UpdateProject, UpdateIndexProgress, UpdateEvent, UpdateContract, UpdateBlock, UpdateApiKey, UpdateAccountSpendCap, UpdateAccountCredits, TriggerEvaluatorStateTable, TriggerEvaluatorState, TransactionsTable, TransactionsArchiveTable, Transaction, TenantsTable, TenantUsageMonthlyTable, TenantUsageMonthly, TenantSuspendedError, TenantStatus, TenantComputeAddonsTable, TenantComputeAddon, Tenant, TeamMembersTable, TeamMember, TeamInvitationsTable, TeamInvitation, TABLE_TO_DB, SubscriptionsTable, SubscriptionSummary, SubscriptionStatusSchema, SubscriptionStatus, SubscriptionSchemaTables, SubscriptionSchemaTable, SubscriptionSchemaColumn, SubscriptionRuntimeSchema, SubscriptionRuntime, SubscriptionOutboxTable, SubscriptionOutbox, SubscriptionKind, SubscriptionFormatSchema, SubscriptionFormat, SubscriptionFilterSchema, SubscriptionFilterPrimitiveSchema, SubscriptionFilterPrimitive, SubscriptionFilterOperatorSchema, SubscriptionFilterOperator, SubscriptionFilterClauseSchema, SubscriptionFilterClause, SubscriptionFilter, SubscriptionDetail, SubscriptionDelivery, SubscriptionDeliveriesTable, Subscription, SubgraphsTable, SubgraphUsageDailyTable, SubgraphUsageDaily, SubgraphTableSnapshotsTable, SubgraphSyncInfo, SubgraphSummary, SubgraphSpecOptions, SubgraphSpecFormat, SubgraphResourceWarning, SubgraphQueryParams, SubgraphProcessingStatsTable, SubgraphOperationsTable, SubgraphOperationStatus, SubgraphOperationKind, SubgraphOperation, SubgraphHealthSnapshotsTable, SubgraphHealthSnapshot, SubgraphGapsTable, SubgraphGapsResponse, SubgraphGapRange, SubgraphGapEntry, SubgraphGap, SubgraphDetail, SubgraphAggregateResponse, SubgraphAggregateParams, SubgraphAgentSchema, Subgraph, StxTransferFilterSchema, StxTransferFilter, StxMintFilterSchema, StxMintFilter, StxLockFilterSchema, StxLockFilter, StxBurnFilterSchema, StxBurnFilter, StreamsEventType, StreamsDbEventType, StreamsCursor, SessionsTable, Session, ServiceHeartbeatsTable, SecondLayerError, SbtcTokenEventsTable, SbtcTokenEventType, SbtcSupplySnapshotsTable, SbtcEventsTable, SbtcEventTopic, SUBSCRIPTION_STATUSES, SUBSCRIPTION_RUNTIMES, SUBSCRIPTION_FORMATS, SUBSCRIPTION_FILTER_OPERATORS, STREAMS_TO_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_DB_EVENT_TYPES, SOURCE_READ_TYPES, SOURCE_READ_PKS, SOURCE_READ_COLUMNS, RotateSecretResponse, ReplaySubscriptionRequestSchema, ReplaySubscriptionRequest, ReplayResult, ReindexResponse, RateLimitError, ProvisioningAuditStatus, ProvisioningAuditLogTable, ProvisioningAuditLog, ProvisioningAuditEvent, ProjectsTable, Project, ProcessedStripeEventsTable, PrintEventFilterSchema, PrintEventFilter, Pox4SignersDailyTable, Pox4FunctionName, Pox4CyclesDailyTable, Pox4CallsTable, PaymentRequiredError, ParsedUpdateSubscriptionRequest, ParsedReplaySubscriptionRequest, ParsedCreateSubscriptionRequest, OutboxStatus, NumericAsText, NotFoundError, NftTransferFilterSchema, NftTransferFilter, NftMintFilterSchema, NftMintFilter, NftBurnFilterSchema, NftBurnFilter, MigrationRole, MempoolTransactionsTable, MempoolTransaction, MagicLinksTable, MagicLink, L2DecoderCheckpointsTable, KeyRotatedError, InsertTransaction, InsertTenantUsageMonthly, InsertTenantComputeAddon, InsertTenant, InsertTeamMember, InsertTeamInvitation, InsertSubscriptionOutbox, InsertSubscriptionDelivery, InsertSubscription, InsertSubgraphUsageDaily, InsertSubgraphOperation, InsertSubgraphHealthSnapshot, InsertSubgraphGap, InsertSubgraph, InsertSession, InsertProvisioningAuditLog, InsertProject, InsertMempoolTransaction, InsertMagicLink, InsertIndexProgress, InsertEvent, InsertContract, InsertClaimToken, InsertBlock, InsertApiKey, InsertAccountSpendCap, InsertAccountInsight, InsertAccountCredits, InsertAccountAgentRun, InsertAccount, IndexProgressTable, IndexProgress, IndexPrimaryKey, IndexColumnType, IndexColumn, FtTransferFilterSchema, FtTransferFilter, FtMintFilterSchema, FtMintFilter, FtBurnFilterSchema, FtBurnFilter, ForbiddenError, EventsTable, EventsArchiveTable, EventFilterSchema, EventFilter, Event, ErrorCodes, ErrorCode, Env, EMPTY_RANGE_EVENT_INDEX_SENTINEL, DeploySubgraphResponse, DeploySubgraphRequestSchema, DeploySubgraphRequest, DeliveryRow, DecodedEventsTable, DecodedEventType, DeadRow, DeadLetterEventsTable, DbSplitStatus, DbReadRow, DbPlane, DatabaseError, Database, DEFAULT_BTC_CONFIRMATIONS, DECODED_EVENT_TYPES, DB_TO_STREAMS_EVENT_TYPE, CreateSubscriptionResponse, CreateSubscriptionRequestSchema, CreateSubscriptionRequest, ContractsTable, ContractDeployFilterSchema, ContractDeployFilter, ContractCallFilterSchema, ContractCallFilter, Contract, ClaimTokensTable, ClaimToken, ChainWebhookEnvelope, ChainReorgsTable, ChainReorgRollbackEnvelope, ChainReorgOrphanedEntry, ChainApplyEnvelope, CODE_TO_STATUS, CHAIN_TRIGGER_TYPES, CHAIN_TRIGGER_FIELDS, ByoBreakingChangeDetails, BurnBlockRewardsTable, BurnBlockRewardSlotsTable, BnsNamespacesTable, BnsNamespaceEventsTable, BnsNamespaceEventStatus, BnsNamesTable, BnsNameEventsTable, BnsNameEventTopic, BnsMarketplaceEventsTable, BnsMarketplaceAction, BlocksTable, Block, AuthorizationError, AuthenticationError, ApiKeysTable, ApiKey, AccountsTable, AccountSpendCapsTable, AccountSpendCap, AccountInsightsTable, AccountInsight, AccountCreditsTable, AccountCredits, AccountAgentRunsTable, AccountAgentRun, Account };
2825
+ export { validateSubscriptionFilterForTable, sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, logger, jsonb, isPox4DecoderEnabled, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getErrorMessage, getEnv, getDbSplitStatus, getDb, generateSubgraphSpec, generateSubgraphOpenApi, generateSubgraphMarkdown, generateSubgraphAgentSchema, formatSubscriptionSchemaErrors, finalizedBurnHeight, encodeStreamsCursor, exports_ed25519 as ed25519, decodeStreamsCursor, exports_hmac as crypto, closeDb, assertDbSplit, X402PaymentsTable, X402BalancesTable, VersionConflictError, ValidationError, UsageSnapshotsTable, UsageSnapshot, UsageDailyTable, UsageDaily, UpdateTransaction, UpdateTenantUsageMonthly, UpdateTenantComputeAddon, UpdateTenant, UpdateSubscriptionRequestSchema, UpdateSubscriptionRequest, UpdateSubscriptionOutbox, UpdateSubscription, UpdateSubgraphOperation, UpdateSubgraph, UpdateProject, UpdateIndexProgress, UpdateEvent, UpdateContract, UpdateBlock, UpdateApiKey, UpdateAccountSpendCap, UpdateAccountCredits, TriggerEvaluatorStateTable, TriggerEvaluatorState, TransactionsTable, TransactionsArchiveTable, Transaction, TenantsTable, TenantUsageMonthlyTable, TenantUsageMonthly, TenantSuspendedError, TenantStatus, TenantComputeAddonsTable, TenantComputeAddon, Tenant, TeamMembersTable, TeamMember, TeamInvitationsTable, TeamInvitation, TABLE_TO_DB, SubscriptionsTable, SubscriptionSummary, SubscriptionStatusSchema, SubscriptionStatus, SubscriptionSchemaTables, SubscriptionSchemaTable, SubscriptionSchemaColumn, SubscriptionRuntimeSchema, SubscriptionRuntime, SubscriptionOutboxTable, SubscriptionOutbox, SubscriptionKind, SubscriptionFormatSchema, SubscriptionFormat, SubscriptionFilterSchema, SubscriptionFilterPrimitiveSchema, SubscriptionFilterPrimitive, SubscriptionFilterOperatorSchema, SubscriptionFilterOperator, SubscriptionFilterClauseSchema, SubscriptionFilterClause, SubscriptionFilter, SubscriptionDetail, SubscriptionDelivery, SubscriptionDeliveriesTable, Subscription, SubgraphsTable, SubgraphUsageDailyTable, SubgraphUsageDaily, SubgraphTableSnapshotsTable, SubgraphSyncInfo, SubgraphSummary, SubgraphSpecOptions, SubgraphSpecFormat, SubgraphResourceWarning, SubgraphQueryParams, SubgraphProcessingStatsTable, SubgraphOperationsTable, SubgraphOperationStatus, SubgraphOperationKind, SubgraphOperation, SubgraphHealthSnapshotsTable, SubgraphHealthSnapshot, SubgraphGapsTable, SubgraphGapsResponse, SubgraphGapRange, SubgraphGapEntry, SubgraphGap, SubgraphDetail, SubgraphAggregateResponse, SubgraphAggregateParams, SubgraphAgentSchema, Subgraph, StxTransferFilterSchema, StxTransferFilter, StxMintFilterSchema, StxMintFilter, StxLockFilterSchema, StxLockFilter, StxBurnFilterSchema, StxBurnFilter, StreamsEventType, StreamsDbEventType, StreamsCursor, SessionsTable, Session, ServiceHeartbeatsTable, SecondLayerError, SbtcWithdrawalEvent, SbtcTokenEventsTable, SbtcTokenEventType, SbtcSupplySnapshotsTable, SbtcEventsTable, SbtcEventTopic, SbtcDepositEvent, SUBSCRIPTION_STATUSES, SUBSCRIPTION_RUNTIMES, SUBSCRIPTION_FORMATS, SUBSCRIPTION_FILTER_OPERATORS, STREAMS_TO_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_DB_EVENT_TYPES, SOURCE_READ_TYPES, SOURCE_READ_PKS, SOURCE_READ_COLUMNS, RotateSecretResponse, ReplaySubscriptionRequestSchema, ReplaySubscriptionRequest, ReplayResult, ReindexResponse, RateLimitError, ProvisioningAuditStatus, ProvisioningAuditLogTable, ProvisioningAuditLog, ProvisioningAuditEvent, ProjectsTable, Project, ProcessedStripeEventsTable, PrintEventFilterSchema, PrintEventFilter, Pox4SignersDailyTable, Pox4FunctionName, Pox4CyclesDailyTable, Pox4CallsTable, PaymentRequiredError, ParsedUpdateSubscriptionRequest, ParsedReplaySubscriptionRequest, ParsedCreateSubscriptionRequest, OutboxStatus, NumericAsText, NotFoundError, NftTransferFilterSchema, NftTransferFilter, NftMintFilterSchema, NftMintFilter, NftBurnFilterSchema, NftBurnFilter, MigrationRole, MempoolTransactionsTable, MempoolTransaction, MagicLinksTable, MagicLink, L2DecoderCheckpointsTable, KeyRotatedError, InsertTransaction, InsertTenantUsageMonthly, InsertTenantComputeAddon, InsertTenant, InsertTeamMember, InsertTeamInvitation, InsertSubscriptionOutbox, InsertSubscriptionDelivery, InsertSubscription, InsertSubgraphUsageDaily, InsertSubgraphOperation, InsertSubgraphHealthSnapshot, InsertSubgraphGap, InsertSubgraph, InsertSession, InsertProvisioningAuditLog, InsertProject, InsertMempoolTransaction, InsertMagicLink, InsertIndexProgress, InsertEvent, InsertContract, InsertClaimToken, InsertBlock, InsertApiKey, InsertAccountSpendCap, InsertAccountInsight, InsertAccountCredits, InsertAccountAgentRun, InsertAccount, IndexProgressTable, IndexProgress, IndexPrimaryKey, IndexColumnType, IndexColumn, FtTransferFilterSchema, FtTransferFilter, FtMintFilterSchema, FtMintFilter, FtBurnFilterSchema, FtBurnFilter, ForbiddenError, EventsTable, EventsArchiveTable, EventFilterSchema, EventFilter, Event, ErrorCodes, ErrorCode, Env, EMPTY_RANGE_EVENT_INDEX_SENTINEL, DeploySubgraphResponse, DeploySubgraphRequestSchema, DeploySubgraphRequest, DeliveryRow, DecodedEventsTable, DecodedEventType, DeadRow, DeadLetterEventsTable, DbSplitStatus, DbReadRow, DbPlane, DatabaseError, Database, DEFAULT_BTC_CONFIRMATIONS, DECODED_EVENT_TYPES, DB_TO_STREAMS_EVENT_TYPE, CreateSubscriptionResponse, CreateSubscriptionRequestSchema, CreateSubscriptionRequest, ContractsTable, ContractDeployFilterSchema, ContractDeployFilter, ContractCallFilterSchema, ContractCallFilter, Contract, ClaimTokensTable, ClaimToken, ChainWebhookEnvelope, ChainReorgsTable, ChainReorgRollbackEnvelope, ChainReorgOrphanedEntry, ChainApplyEnvelope, CODE_TO_STATUS, CHAIN_TRIGGER_TYPES, CHAIN_TRIGGER_FIELDS, ByoBreakingChangeDetails, BurnBlockRewardsTable, BurnBlockRewardSlotsTable, BnsNamespacesTable, BnsNamespaceEventsTable, BnsNamespaceEventStatus, BnsNamesTable, BnsNameEventsTable, BnsNameEventTopic, BnsMarketplaceEventsTable, BnsMarketplaceAction, BlocksTable, Block, AuthorizationError, AuthenticationError, ApiKeysTable, ApiKey, AccountsTable, AccountSpendCapsTable, AccountSpendCap, AccountInsightsTable, AccountInsight, AccountCreditsTable, AccountCredits, AccountAgentRunsTable, AccountAgentRun, Account };
package/dist/src/index.js CHANGED
@@ -1176,7 +1176,11 @@ var CHAIN_TRIGGER_TYPES = [
1176
1176
  "nft_burn",
1177
1177
  "contract_call",
1178
1178
  "contract_deploy",
1179
- "print_event"
1179
+ "print_event",
1180
+ "sbtc_deposit",
1181
+ "sbtc_withdrawal_create",
1182
+ "sbtc_withdrawal_accept",
1183
+ "sbtc_withdrawal_reject"
1180
1184
  ];
1181
1185
  var triggerAmount = z4.union([
1182
1186
  z4.string().trim().regex(/^\d+$/, "must be a non-negative integer string"),
@@ -1265,6 +1269,30 @@ var ChainTriggerSchema = z4.discriminatedUnion("type", [
1265
1269
  contractId: triggerPattern.optional(),
1266
1270
  topic: triggerPattern.optional(),
1267
1271
  trait: trait.optional()
1272
+ }).strict(),
1273
+ z4.object({
1274
+ type: z4.literal("sbtc_deposit"),
1275
+ sender: triggerPattern.optional(),
1276
+ minAmount: triggerAmount.optional(),
1277
+ maxAmount: triggerAmount.optional(),
1278
+ bitcoinTxid: triggerPattern.optional(),
1279
+ requestId: z4.number().int().nonnegative().optional()
1280
+ }).strict(),
1281
+ z4.object({
1282
+ type: z4.literal("sbtc_withdrawal_create"),
1283
+ sender: triggerPattern.optional(),
1284
+ minAmount: triggerAmount.optional(),
1285
+ maxAmount: triggerAmount.optional(),
1286
+ requestId: z4.number().int().nonnegative().optional()
1287
+ }).strict(),
1288
+ z4.object({
1289
+ type: z4.literal("sbtc_withdrawal_accept"),
1290
+ requestId: z4.number().int().nonnegative().optional(),
1291
+ sweepTxid: triggerPattern.optional()
1292
+ }).strict(),
1293
+ z4.object({
1294
+ type: z4.literal("sbtc_withdrawal_reject"),
1295
+ requestId: z4.number().int().nonnegative().optional()
1268
1296
  }).strict()
1269
1297
  ]);
1270
1298
  var ChainTriggersSchema = z4.array(ChainTriggerSchema).min(1).max(50);
@@ -1373,6 +1401,22 @@ var trigger = {
1373
1401
  printEvent: (f = {}) => ({
1374
1402
  type: "print_event",
1375
1403
  ...f
1404
+ }),
1405
+ sbtcDeposit: (f = {}) => ({
1406
+ type: "sbtc_deposit",
1407
+ ...f
1408
+ }),
1409
+ sbtcWithdrawalCreate: (f = {}) => ({
1410
+ type: "sbtc_withdrawal_create",
1411
+ ...f
1412
+ }),
1413
+ sbtcWithdrawalAccept: (f = {}) => ({
1414
+ type: "sbtc_withdrawal_accept",
1415
+ ...f
1416
+ }),
1417
+ sbtcWithdrawalReject: (f = {}) => ({
1418
+ type: "sbtc_withdrawal_reject",
1419
+ ...f
1376
1420
  })
1377
1421
  };
1378
1422
  var SCALAR_COLUMN_TYPES = new Set([
@@ -2099,5 +2143,5 @@ export {
2099
2143
  AuthenticationError
2100
2144
  };
2101
2145
 
2102
- //# debugId=4BF40DE9B2CE1FE264756E2164756E21
2146
+ //# debugId=5F71AA34FBFAC2AD64756E2164756E21
2103
2147
  //# sourceMappingURL=index.js.map