@secondlayer/shared 6.33.3 → 6.34.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.
- package/dist/src/index.d.ts +49 -4
- package/dist/src/index.js +46 -2
- package/dist/src/index.js.map +3 -3
- package/dist/src/schemas/index.d.ts +22 -2
- package/dist/src/schemas/index.js +46 -2
- package/dist/src/schemas/index.js.map +3 -3
- package/dist/src/schemas/subscriptions.d.ts +26 -2
- package/dist/src/schemas/subscriptions.js +46 -2
- package/dist/src/schemas/subscriptions.js.map +3 -3
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -2368,7 +2368,7 @@ declare const SubscriptionFilterPrimitiveSchema: z4.ZodType<SubscriptionFilterPr
|
|
|
2368
2368
|
declare const SubscriptionFilterOperatorSchema: z4.ZodType<SubscriptionFilterOperator>;
|
|
2369
2369
|
declare const SubscriptionFilterClauseSchema: z4.ZodType<SubscriptionFilterClause>;
|
|
2370
2370
|
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"];
|
|
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", "sbtc_deposit", "sbtc_withdrawal_create", "sbtc_withdrawal_accept", "sbtc_withdrawal_reject"];
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Per-type accepted filter fields for chain triggers, DERIVED from
|
|
2374
2374
|
* {@link ChainTriggerSchema} so the agent-facing reference can never drift behind
|
|
@@ -2467,7 +2467,27 @@ type ChainTrigger = {
|
|
|
2467
2467
|
type: "print_event"
|
|
2468
2468
|
contractId?: string
|
|
2469
2469
|
topic?: string
|
|
2470
|
-
} & TraitScoped)
|
|
2470
|
+
} & TraitScoped) | {
|
|
2471
|
+
type: "sbtc_deposit"
|
|
2472
|
+
sender?: string
|
|
2473
|
+
minAmount?: ChainTriggerAmount
|
|
2474
|
+
maxAmount?: ChainTriggerAmount
|
|
2475
|
+
bitcoinTxid?: string
|
|
2476
|
+
requestId?: number
|
|
2477
|
+
} | {
|
|
2478
|
+
type: "sbtc_withdrawal_create"
|
|
2479
|
+
sender?: string
|
|
2480
|
+
minAmount?: ChainTriggerAmount
|
|
2481
|
+
maxAmount?: ChainTriggerAmount
|
|
2482
|
+
requestId?: number
|
|
2483
|
+
} | {
|
|
2484
|
+
type: "sbtc_withdrawal_accept"
|
|
2485
|
+
requestId?: number
|
|
2486
|
+
sweepTxid?: string
|
|
2487
|
+
} | {
|
|
2488
|
+
type: "sbtc_withdrawal_reject"
|
|
2489
|
+
requestId?: number
|
|
2490
|
+
};
|
|
2471
2491
|
interface CreateSubscriptionRequest {
|
|
2472
2492
|
name: string;
|
|
2473
2493
|
/** Subgraph mode. */
|
|
@@ -2733,6 +2753,31 @@ declare const EMPTY_RANGE_EVENT_INDEX_SENTINEL = 2147483647;
|
|
|
2733
2753
|
declare function encodeStreamsCursor(cursor: StreamsCursor): string;
|
|
2734
2754
|
declare function decodeStreamsCursor(cursor: string): StreamsCursor;
|
|
2735
2755
|
/**
|
|
2756
|
+
* Payload for `sbtc_deposit` (topic: completed-deposit).
|
|
2757
|
+
* `sender` is the Stacks address that initiated the deposit and receives the sBTC.
|
|
2758
|
+
*/
|
|
2759
|
+
interface SbtcDepositEvent {
|
|
2760
|
+
topic: "completed-deposit";
|
|
2761
|
+
request_id: number;
|
|
2762
|
+
sender: string | null;
|
|
2763
|
+
amount: string;
|
|
2764
|
+
bitcoin_txid: string | null;
|
|
2765
|
+
block_height: number;
|
|
2766
|
+
tx_id: string;
|
|
2767
|
+
}
|
|
2768
|
+
/** Payload for `sbtc_withdrawal_create`, `sbtc_withdrawal_accept`, `sbtc_withdrawal_reject`. */
|
|
2769
|
+
interface SbtcWithdrawalEvent {
|
|
2770
|
+
topic: "withdrawal-create" | "withdrawal-accept" | "withdrawal-reject";
|
|
2771
|
+
request_id: number;
|
|
2772
|
+
sender: string | null;
|
|
2773
|
+
amount: string | null;
|
|
2774
|
+
sweep_txid: string | null;
|
|
2775
|
+
/** Always false until the BTC L1 confirmer ships. */
|
|
2776
|
+
settlement_confirmed: false;
|
|
2777
|
+
block_height: number;
|
|
2778
|
+
tx_id: string;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2736
2781
|
* Delivered when a matched chain event lands in a canonical block
|
|
2737
2782
|
* (`event_type: "chain.<trigger>.apply"`). Tx-level triggers (contract_call /
|
|
2738
2783
|
* contract_deploy) carry the tx as `event`; event-level triggers carry the event.
|
|
@@ -2747,7 +2792,7 @@ interface ChainApplyEnvelope {
|
|
|
2747
2792
|
canonical: true;
|
|
2748
2793
|
/** The chain-trigger type that matched. */
|
|
2749
2794
|
trigger: ChainTrigger["type"];
|
|
2750
|
-
event: Record<string, unknown>;
|
|
2795
|
+
event: SbtcDepositEvent | SbtcWithdrawalEvent | Record<string, unknown>;
|
|
2751
2796
|
}
|
|
2752
2797
|
/** One orphaned delivery recalled by a reorg rollback. */
|
|
2753
2798
|
interface ChainReorgOrphanedEntry {
|
|
@@ -2769,4 +2814,4 @@ interface ChainReorgRollbackEnvelope {
|
|
|
2769
2814
|
}
|
|
2770
2815
|
/** Any chain-subscription webhook body. Discriminate on `action`. */
|
|
2771
2816
|
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 };
|
|
2817
|
+
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=
|
|
2146
|
+
//# debugId=5F71AA34FBFAC2AD64756E2164756E21
|
|
2103
2147
|
//# sourceMappingURL=index.js.map
|