@secondlayer/shared 6.33.2 → 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.js CHANGED
@@ -702,6 +702,7 @@ var TABLE_TO_DB = {
702
702
  subgraph_table_snapshots: "target",
703
703
  x402_payments: "target",
704
704
  x402_balances: "target",
705
+ account_credits: "target",
705
706
  service_heartbeats: "both"
706
707
  };
707
708
 
@@ -1175,7 +1176,11 @@ var CHAIN_TRIGGER_TYPES = [
1175
1176
  "nft_burn",
1176
1177
  "contract_call",
1177
1178
  "contract_deploy",
1178
- "print_event"
1179
+ "print_event",
1180
+ "sbtc_deposit",
1181
+ "sbtc_withdrawal_create",
1182
+ "sbtc_withdrawal_accept",
1183
+ "sbtc_withdrawal_reject"
1179
1184
  ];
1180
1185
  var triggerAmount = z4.union([
1181
1186
  z4.string().trim().regex(/^\d+$/, "must be a non-negative integer string"),
@@ -1264,6 +1269,30 @@ var ChainTriggerSchema = z4.discriminatedUnion("type", [
1264
1269
  contractId: triggerPattern.optional(),
1265
1270
  topic: triggerPattern.optional(),
1266
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()
1267
1296
  }).strict()
1268
1297
  ]);
1269
1298
  var ChainTriggersSchema = z4.array(ChainTriggerSchema).min(1).max(50);
@@ -1372,6 +1401,22 @@ var trigger = {
1372
1401
  printEvent: (f = {}) => ({
1373
1402
  type: "print_event",
1374
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
1375
1420
  })
1376
1421
  };
1377
1422
  var SCALAR_COLUMN_TYPES = new Set([
@@ -2098,5 +2143,5 @@ export {
2098
2143
  AuthenticationError
2099
2144
  };
2100
2145
 
2101
- //# debugId=F4913FCFFE45C09864756E2164756E21
2146
+ //# debugId=5F71AA34FBFAC2AD64756E2164756E21
2102
2147
  //# sourceMappingURL=index.js.map