@secondlayer/shared 6.24.0 → 6.25.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/db/index.d.ts +728 -1
- package/dist/src/db/index.js +251 -1
- package/dist/src/db/index.js.map +4 -4
- package/dist/src/db/queries/chain-reorgs.js +249 -1
- package/dist/src/db/queries/chain-reorgs.js.map +4 -4
- package/dist/src/db/queries/subgraphs.js +249 -1
- package/dist/src/db/queries/subgraphs.js.map +4 -4
- package/dist/src/errors.d.ts +5 -2
- package/dist/src/errors.js +8 -5
- package/dist/src/errors.js.map +3 -3
- package/dist/src/index.d.ts +770 -3
- package/dist/src/index.js +258 -5
- package/dist/src/index.js.map +6 -6
- package/dist/src/schemas/index.js.map +2 -2
- package/dist/src/schemas/subscriptions.d.ts +10 -1
- package/dist/src/schemas/subscriptions.js.map +2 -2
- package/package.json +1 -1
package/dist/src/db/index.d.ts
CHANGED
|
@@ -950,6 +950,733 @@ declare const SOURCE_READ_COLUMNS: {
|
|
|
950
950
|
readonly events: readonly ["block_height", "data", "event_index", "tx_id", "type"]
|
|
951
951
|
readonly chain_reorgs: readonly ["detected_at"]
|
|
952
952
|
};
|
|
953
|
+
/** Portable column type for the Index read domain (a lean, ORM-agnostic vocab). */
|
|
954
|
+
type IndexColumnType = "text" | "int" | "boolean" | "timestamp" | "jsonb";
|
|
955
|
+
interface IndexColumn {
|
|
956
|
+
type: IndexColumnType;
|
|
957
|
+
/** SELECT type includes `| null`. Omitted = NOT NULL. */
|
|
958
|
+
nullable?: boolean;
|
|
959
|
+
}
|
|
960
|
+
declare const SOURCE_READ_TYPES: {
|
|
961
|
+
readonly blocks: {
|
|
962
|
+
readonly burn_block_hash: {
|
|
963
|
+
readonly type: "text"
|
|
964
|
+
readonly nullable: true
|
|
965
|
+
}
|
|
966
|
+
readonly burn_block_height: {
|
|
967
|
+
readonly type: "int"
|
|
968
|
+
}
|
|
969
|
+
readonly canonical: {
|
|
970
|
+
readonly type: "boolean"
|
|
971
|
+
}
|
|
972
|
+
readonly hash: {
|
|
973
|
+
readonly type: "text"
|
|
974
|
+
}
|
|
975
|
+
readonly height: {
|
|
976
|
+
readonly type: "int"
|
|
977
|
+
}
|
|
978
|
+
readonly parent_hash: {
|
|
979
|
+
readonly type: "text"
|
|
980
|
+
}
|
|
981
|
+
readonly timestamp: {
|
|
982
|
+
readonly type: "int"
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
readonly decoded_events: {
|
|
986
|
+
readonly amount: {
|
|
987
|
+
readonly type: "text"
|
|
988
|
+
readonly nullable: true
|
|
989
|
+
}
|
|
990
|
+
readonly asset_identifier: {
|
|
991
|
+
readonly type: "text"
|
|
992
|
+
readonly nullable: true
|
|
993
|
+
}
|
|
994
|
+
readonly block_height: {
|
|
995
|
+
readonly type: "int"
|
|
996
|
+
}
|
|
997
|
+
readonly canonical: {
|
|
998
|
+
readonly type: "boolean"
|
|
999
|
+
}
|
|
1000
|
+
readonly contract_id: {
|
|
1001
|
+
readonly type: "text"
|
|
1002
|
+
readonly nullable: true
|
|
1003
|
+
}
|
|
1004
|
+
readonly cursor: {
|
|
1005
|
+
readonly type: "text"
|
|
1006
|
+
}
|
|
1007
|
+
readonly event_index: {
|
|
1008
|
+
readonly type: "int"
|
|
1009
|
+
}
|
|
1010
|
+
readonly event_type: {
|
|
1011
|
+
readonly type: "text"
|
|
1012
|
+
}
|
|
1013
|
+
readonly memo: {
|
|
1014
|
+
readonly type: "text"
|
|
1015
|
+
readonly nullable: true
|
|
1016
|
+
}
|
|
1017
|
+
readonly payload: {
|
|
1018
|
+
readonly type: "jsonb"
|
|
1019
|
+
readonly nullable: true
|
|
1020
|
+
}
|
|
1021
|
+
readonly recipient: {
|
|
1022
|
+
readonly type: "text"
|
|
1023
|
+
readonly nullable: true
|
|
1024
|
+
}
|
|
1025
|
+
readonly sender: {
|
|
1026
|
+
readonly type: "text"
|
|
1027
|
+
readonly nullable: true
|
|
1028
|
+
}
|
|
1029
|
+
readonly tx_id: {
|
|
1030
|
+
readonly type: "text"
|
|
1031
|
+
}
|
|
1032
|
+
readonly tx_index: {
|
|
1033
|
+
readonly type: "int"
|
|
1034
|
+
}
|
|
1035
|
+
readonly value: {
|
|
1036
|
+
readonly type: "text"
|
|
1037
|
+
readonly nullable: true
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
readonly transactions: {
|
|
1041
|
+
readonly block_height: {
|
|
1042
|
+
readonly type: "int"
|
|
1043
|
+
}
|
|
1044
|
+
readonly contract_id: {
|
|
1045
|
+
readonly type: "text"
|
|
1046
|
+
readonly nullable: true
|
|
1047
|
+
}
|
|
1048
|
+
readonly function_args: {
|
|
1049
|
+
readonly type: "jsonb"
|
|
1050
|
+
readonly nullable: true
|
|
1051
|
+
}
|
|
1052
|
+
readonly function_name: {
|
|
1053
|
+
readonly type: "text"
|
|
1054
|
+
readonly nullable: true
|
|
1055
|
+
}
|
|
1056
|
+
readonly raw_result: {
|
|
1057
|
+
readonly type: "text"
|
|
1058
|
+
readonly nullable: true
|
|
1059
|
+
}
|
|
1060
|
+
readonly raw_tx: {
|
|
1061
|
+
readonly type: "text"
|
|
1062
|
+
}
|
|
1063
|
+
readonly sender: {
|
|
1064
|
+
readonly type: "text"
|
|
1065
|
+
}
|
|
1066
|
+
readonly status: {
|
|
1067
|
+
readonly type: "text"
|
|
1068
|
+
}
|
|
1069
|
+
readonly tx_id: {
|
|
1070
|
+
readonly type: "text"
|
|
1071
|
+
}
|
|
1072
|
+
readonly tx_index: {
|
|
1073
|
+
readonly type: "int"
|
|
1074
|
+
}
|
|
1075
|
+
readonly type: {
|
|
1076
|
+
readonly type: "text"
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
readonly mempool_transactions: {
|
|
1080
|
+
readonly contract_id: {
|
|
1081
|
+
readonly type: "text"
|
|
1082
|
+
readonly nullable: true
|
|
1083
|
+
}
|
|
1084
|
+
readonly function_args: {
|
|
1085
|
+
readonly type: "jsonb"
|
|
1086
|
+
readonly nullable: true
|
|
1087
|
+
}
|
|
1088
|
+
readonly function_name: {
|
|
1089
|
+
readonly type: "text"
|
|
1090
|
+
readonly nullable: true
|
|
1091
|
+
}
|
|
1092
|
+
readonly raw_tx: {
|
|
1093
|
+
readonly type: "text"
|
|
1094
|
+
}
|
|
1095
|
+
readonly received_at: {
|
|
1096
|
+
readonly type: "timestamp"
|
|
1097
|
+
}
|
|
1098
|
+
readonly sender: {
|
|
1099
|
+
readonly type: "text"
|
|
1100
|
+
}
|
|
1101
|
+
readonly seq: {
|
|
1102
|
+
readonly type: "text"
|
|
1103
|
+
}
|
|
1104
|
+
readonly tx_id: {
|
|
1105
|
+
readonly type: "text"
|
|
1106
|
+
}
|
|
1107
|
+
readonly type: {
|
|
1108
|
+
readonly type: "text"
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
readonly pox4_calls: {
|
|
1112
|
+
readonly aggregated_amount_ustx: {
|
|
1113
|
+
readonly type: "text"
|
|
1114
|
+
readonly nullable: true
|
|
1115
|
+
}
|
|
1116
|
+
readonly aggregated_signer_index: {
|
|
1117
|
+
readonly type: "int"
|
|
1118
|
+
readonly nullable: true
|
|
1119
|
+
}
|
|
1120
|
+
readonly amount_ustx: {
|
|
1121
|
+
readonly type: "text"
|
|
1122
|
+
readonly nullable: true
|
|
1123
|
+
}
|
|
1124
|
+
readonly auth_allowed: {
|
|
1125
|
+
readonly type: "boolean"
|
|
1126
|
+
readonly nullable: true
|
|
1127
|
+
}
|
|
1128
|
+
readonly auth_id: {
|
|
1129
|
+
readonly type: "text"
|
|
1130
|
+
readonly nullable: true
|
|
1131
|
+
}
|
|
1132
|
+
readonly auth_period: {
|
|
1133
|
+
readonly type: "int"
|
|
1134
|
+
readonly nullable: true
|
|
1135
|
+
}
|
|
1136
|
+
readonly auth_topic: {
|
|
1137
|
+
readonly type: "text"
|
|
1138
|
+
readonly nullable: true
|
|
1139
|
+
}
|
|
1140
|
+
readonly block_height: {
|
|
1141
|
+
readonly type: "int"
|
|
1142
|
+
}
|
|
1143
|
+
readonly block_time: {
|
|
1144
|
+
readonly type: "timestamp"
|
|
1145
|
+
}
|
|
1146
|
+
readonly burn_block_height: {
|
|
1147
|
+
readonly type: "int"
|
|
1148
|
+
}
|
|
1149
|
+
readonly caller: {
|
|
1150
|
+
readonly type: "text"
|
|
1151
|
+
}
|
|
1152
|
+
readonly canonical: {
|
|
1153
|
+
readonly type: "boolean"
|
|
1154
|
+
}
|
|
1155
|
+
readonly cursor: {
|
|
1156
|
+
readonly type: "text"
|
|
1157
|
+
}
|
|
1158
|
+
readonly delegate_to: {
|
|
1159
|
+
readonly type: "text"
|
|
1160
|
+
readonly nullable: true
|
|
1161
|
+
}
|
|
1162
|
+
readonly end_cycle: {
|
|
1163
|
+
readonly type: "int"
|
|
1164
|
+
readonly nullable: true
|
|
1165
|
+
}
|
|
1166
|
+
readonly function_name: {
|
|
1167
|
+
readonly type: "text"
|
|
1168
|
+
}
|
|
1169
|
+
readonly lock_period: {
|
|
1170
|
+
readonly type: "int"
|
|
1171
|
+
readonly nullable: true
|
|
1172
|
+
}
|
|
1173
|
+
readonly max_amount: {
|
|
1174
|
+
readonly type: "text"
|
|
1175
|
+
readonly nullable: true
|
|
1176
|
+
}
|
|
1177
|
+
readonly pox_addr_btc: {
|
|
1178
|
+
readonly type: "text"
|
|
1179
|
+
readonly nullable: true
|
|
1180
|
+
}
|
|
1181
|
+
readonly pox_addr_hashbytes: {
|
|
1182
|
+
readonly type: "text"
|
|
1183
|
+
readonly nullable: true
|
|
1184
|
+
}
|
|
1185
|
+
readonly pox_addr_version: {
|
|
1186
|
+
readonly type: "int"
|
|
1187
|
+
readonly nullable: true
|
|
1188
|
+
}
|
|
1189
|
+
readonly result_ok: {
|
|
1190
|
+
readonly type: "boolean"
|
|
1191
|
+
}
|
|
1192
|
+
readonly reward_cycle: {
|
|
1193
|
+
readonly type: "int"
|
|
1194
|
+
readonly nullable: true
|
|
1195
|
+
}
|
|
1196
|
+
readonly signer_key: {
|
|
1197
|
+
readonly type: "text"
|
|
1198
|
+
readonly nullable: true
|
|
1199
|
+
}
|
|
1200
|
+
readonly signer_signature: {
|
|
1201
|
+
readonly type: "text"
|
|
1202
|
+
readonly nullable: true
|
|
1203
|
+
}
|
|
1204
|
+
readonly source_cursor: {
|
|
1205
|
+
readonly type: "text"
|
|
1206
|
+
}
|
|
1207
|
+
readonly stacker: {
|
|
1208
|
+
readonly type: "text"
|
|
1209
|
+
readonly nullable: true
|
|
1210
|
+
}
|
|
1211
|
+
readonly start_cycle: {
|
|
1212
|
+
readonly type: "int"
|
|
1213
|
+
readonly nullable: true
|
|
1214
|
+
}
|
|
1215
|
+
readonly tx_id: {
|
|
1216
|
+
readonly type: "text"
|
|
1217
|
+
}
|
|
1218
|
+
readonly tx_index: {
|
|
1219
|
+
readonly type: "int"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
readonly sbtc_events: {
|
|
1223
|
+
readonly amount: {
|
|
1224
|
+
readonly type: "text"
|
|
1225
|
+
readonly nullable: true
|
|
1226
|
+
}
|
|
1227
|
+
readonly bitcoin_txid: {
|
|
1228
|
+
readonly type: "text"
|
|
1229
|
+
readonly nullable: true
|
|
1230
|
+
}
|
|
1231
|
+
readonly block_height: {
|
|
1232
|
+
readonly type: "int"
|
|
1233
|
+
}
|
|
1234
|
+
readonly block_time: {
|
|
1235
|
+
readonly type: "timestamp"
|
|
1236
|
+
}
|
|
1237
|
+
readonly burn_hash: {
|
|
1238
|
+
readonly type: "text"
|
|
1239
|
+
readonly nullable: true
|
|
1240
|
+
}
|
|
1241
|
+
readonly burn_height: {
|
|
1242
|
+
readonly type: "int"
|
|
1243
|
+
readonly nullable: true
|
|
1244
|
+
}
|
|
1245
|
+
readonly canonical: {
|
|
1246
|
+
readonly type: "boolean"
|
|
1247
|
+
}
|
|
1248
|
+
readonly cursor: {
|
|
1249
|
+
readonly type: "text"
|
|
1250
|
+
}
|
|
1251
|
+
readonly event_index: {
|
|
1252
|
+
readonly type: "int"
|
|
1253
|
+
}
|
|
1254
|
+
readonly fee: {
|
|
1255
|
+
readonly type: "text"
|
|
1256
|
+
readonly nullable: true
|
|
1257
|
+
}
|
|
1258
|
+
readonly governance_contract_type: {
|
|
1259
|
+
readonly type: "int"
|
|
1260
|
+
readonly nullable: true
|
|
1261
|
+
}
|
|
1262
|
+
readonly governance_new_contract: {
|
|
1263
|
+
readonly type: "text"
|
|
1264
|
+
readonly nullable: true
|
|
1265
|
+
}
|
|
1266
|
+
readonly max_fee: {
|
|
1267
|
+
readonly type: "text"
|
|
1268
|
+
readonly nullable: true
|
|
1269
|
+
}
|
|
1270
|
+
readonly output_index: {
|
|
1271
|
+
readonly type: "int"
|
|
1272
|
+
readonly nullable: true
|
|
1273
|
+
}
|
|
1274
|
+
readonly recipient_btc_hashbytes: {
|
|
1275
|
+
readonly type: "text"
|
|
1276
|
+
readonly nullable: true
|
|
1277
|
+
}
|
|
1278
|
+
readonly recipient_btc_version: {
|
|
1279
|
+
readonly type: "int"
|
|
1280
|
+
readonly nullable: true
|
|
1281
|
+
}
|
|
1282
|
+
readonly request_id: {
|
|
1283
|
+
readonly type: "int"
|
|
1284
|
+
readonly nullable: true
|
|
1285
|
+
}
|
|
1286
|
+
readonly sender: {
|
|
1287
|
+
readonly type: "text"
|
|
1288
|
+
readonly nullable: true
|
|
1289
|
+
}
|
|
1290
|
+
readonly signer_address: {
|
|
1291
|
+
readonly type: "text"
|
|
1292
|
+
readonly nullable: true
|
|
1293
|
+
}
|
|
1294
|
+
readonly signer_aggregate_pubkey: {
|
|
1295
|
+
readonly type: "text"
|
|
1296
|
+
readonly nullable: true
|
|
1297
|
+
}
|
|
1298
|
+
readonly signer_bitmap: {
|
|
1299
|
+
readonly type: "text"
|
|
1300
|
+
readonly nullable: true
|
|
1301
|
+
}
|
|
1302
|
+
readonly signer_keys_count: {
|
|
1303
|
+
readonly type: "int"
|
|
1304
|
+
readonly nullable: true
|
|
1305
|
+
}
|
|
1306
|
+
readonly signer_threshold: {
|
|
1307
|
+
readonly type: "int"
|
|
1308
|
+
readonly nullable: true
|
|
1309
|
+
}
|
|
1310
|
+
readonly sweep_txid: {
|
|
1311
|
+
readonly type: "text"
|
|
1312
|
+
readonly nullable: true
|
|
1313
|
+
}
|
|
1314
|
+
readonly topic: {
|
|
1315
|
+
readonly type: "text"
|
|
1316
|
+
}
|
|
1317
|
+
readonly tx_id: {
|
|
1318
|
+
readonly type: "text"
|
|
1319
|
+
}
|
|
1320
|
+
readonly tx_index: {
|
|
1321
|
+
readonly type: "int"
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
readonly sbtc_token_events: {
|
|
1325
|
+
readonly amount: {
|
|
1326
|
+
readonly type: "text"
|
|
1327
|
+
}
|
|
1328
|
+
readonly block_height: {
|
|
1329
|
+
readonly type: "int"
|
|
1330
|
+
}
|
|
1331
|
+
readonly block_time: {
|
|
1332
|
+
readonly type: "timestamp"
|
|
1333
|
+
}
|
|
1334
|
+
readonly canonical: {
|
|
1335
|
+
readonly type: "boolean"
|
|
1336
|
+
}
|
|
1337
|
+
readonly cursor: {
|
|
1338
|
+
readonly type: "text"
|
|
1339
|
+
}
|
|
1340
|
+
readonly event_index: {
|
|
1341
|
+
readonly type: "int"
|
|
1342
|
+
}
|
|
1343
|
+
readonly event_type: {
|
|
1344
|
+
readonly type: "text"
|
|
1345
|
+
}
|
|
1346
|
+
readonly memo: {
|
|
1347
|
+
readonly type: "text"
|
|
1348
|
+
readonly nullable: true
|
|
1349
|
+
}
|
|
1350
|
+
readonly recipient: {
|
|
1351
|
+
readonly type: "text"
|
|
1352
|
+
readonly nullable: true
|
|
1353
|
+
}
|
|
1354
|
+
readonly sender: {
|
|
1355
|
+
readonly type: "text"
|
|
1356
|
+
readonly nullable: true
|
|
1357
|
+
}
|
|
1358
|
+
readonly tx_id: {
|
|
1359
|
+
readonly type: "text"
|
|
1360
|
+
}
|
|
1361
|
+
readonly tx_index: {
|
|
1362
|
+
readonly type: "int"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
readonly bns_name_events: {
|
|
1366
|
+
readonly block_height: {
|
|
1367
|
+
readonly type: "int"
|
|
1368
|
+
}
|
|
1369
|
+
readonly block_time: {
|
|
1370
|
+
readonly type: "timestamp"
|
|
1371
|
+
}
|
|
1372
|
+
readonly bns_id: {
|
|
1373
|
+
readonly type: "text"
|
|
1374
|
+
}
|
|
1375
|
+
readonly canonical: {
|
|
1376
|
+
readonly type: "boolean"
|
|
1377
|
+
}
|
|
1378
|
+
readonly cursor: {
|
|
1379
|
+
readonly type: "text"
|
|
1380
|
+
}
|
|
1381
|
+
readonly event_index: {
|
|
1382
|
+
readonly type: "int"
|
|
1383
|
+
}
|
|
1384
|
+
readonly fqn: {
|
|
1385
|
+
readonly type: "text"
|
|
1386
|
+
}
|
|
1387
|
+
readonly hashed_salted_fqn_preorder: {
|
|
1388
|
+
readonly type: "text"
|
|
1389
|
+
readonly nullable: true
|
|
1390
|
+
}
|
|
1391
|
+
readonly imported_at: {
|
|
1392
|
+
readonly type: "int"
|
|
1393
|
+
readonly nullable: true
|
|
1394
|
+
}
|
|
1395
|
+
readonly name: {
|
|
1396
|
+
readonly type: "text"
|
|
1397
|
+
}
|
|
1398
|
+
readonly namespace: {
|
|
1399
|
+
readonly type: "text"
|
|
1400
|
+
}
|
|
1401
|
+
readonly owner: {
|
|
1402
|
+
readonly type: "text"
|
|
1403
|
+
readonly nullable: true
|
|
1404
|
+
}
|
|
1405
|
+
readonly preordered_by: {
|
|
1406
|
+
readonly type: "text"
|
|
1407
|
+
readonly nullable: true
|
|
1408
|
+
}
|
|
1409
|
+
readonly registered_at: {
|
|
1410
|
+
readonly type: "int"
|
|
1411
|
+
readonly nullable: true
|
|
1412
|
+
}
|
|
1413
|
+
readonly renewal_height: {
|
|
1414
|
+
readonly type: "int"
|
|
1415
|
+
readonly nullable: true
|
|
1416
|
+
}
|
|
1417
|
+
readonly stx_burn: {
|
|
1418
|
+
readonly type: "text"
|
|
1419
|
+
readonly nullable: true
|
|
1420
|
+
}
|
|
1421
|
+
readonly topic: {
|
|
1422
|
+
readonly type: "text"
|
|
1423
|
+
}
|
|
1424
|
+
readonly tx_id: {
|
|
1425
|
+
readonly type: "text"
|
|
1426
|
+
}
|
|
1427
|
+
readonly tx_index: {
|
|
1428
|
+
readonly type: "int"
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
readonly bns_namespace_events: {
|
|
1432
|
+
readonly block_height: {
|
|
1433
|
+
readonly type: "int"
|
|
1434
|
+
}
|
|
1435
|
+
readonly block_time: {
|
|
1436
|
+
readonly type: "timestamp"
|
|
1437
|
+
}
|
|
1438
|
+
readonly canonical: {
|
|
1439
|
+
readonly type: "boolean"
|
|
1440
|
+
}
|
|
1441
|
+
readonly cursor: {
|
|
1442
|
+
readonly type: "text"
|
|
1443
|
+
}
|
|
1444
|
+
readonly event_index: {
|
|
1445
|
+
readonly type: "int"
|
|
1446
|
+
}
|
|
1447
|
+
readonly launched_at: {
|
|
1448
|
+
readonly type: "int"
|
|
1449
|
+
readonly nullable: true
|
|
1450
|
+
}
|
|
1451
|
+
readonly lifetime: {
|
|
1452
|
+
readonly type: "int"
|
|
1453
|
+
readonly nullable: true
|
|
1454
|
+
}
|
|
1455
|
+
readonly manager: {
|
|
1456
|
+
readonly type: "text"
|
|
1457
|
+
readonly nullable: true
|
|
1458
|
+
}
|
|
1459
|
+
readonly manager_frozen: {
|
|
1460
|
+
readonly type: "boolean"
|
|
1461
|
+
readonly nullable: true
|
|
1462
|
+
}
|
|
1463
|
+
readonly manager_transfers_disabled: {
|
|
1464
|
+
readonly type: "boolean"
|
|
1465
|
+
readonly nullable: true
|
|
1466
|
+
}
|
|
1467
|
+
readonly namespace: {
|
|
1468
|
+
readonly type: "text"
|
|
1469
|
+
}
|
|
1470
|
+
readonly price_frozen: {
|
|
1471
|
+
readonly type: "boolean"
|
|
1472
|
+
readonly nullable: true
|
|
1473
|
+
}
|
|
1474
|
+
readonly price_function: {
|
|
1475
|
+
readonly type: "text"
|
|
1476
|
+
readonly nullable: true
|
|
1477
|
+
}
|
|
1478
|
+
readonly revealed_at: {
|
|
1479
|
+
readonly type: "int"
|
|
1480
|
+
readonly nullable: true
|
|
1481
|
+
}
|
|
1482
|
+
readonly status: {
|
|
1483
|
+
readonly type: "text"
|
|
1484
|
+
}
|
|
1485
|
+
readonly tx_id: {
|
|
1486
|
+
readonly type: "text"
|
|
1487
|
+
}
|
|
1488
|
+
readonly tx_index: {
|
|
1489
|
+
readonly type: "int"
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
readonly bns_marketplace_events: {
|
|
1493
|
+
readonly action: {
|
|
1494
|
+
readonly type: "text"
|
|
1495
|
+
}
|
|
1496
|
+
readonly block_height: {
|
|
1497
|
+
readonly type: "int"
|
|
1498
|
+
}
|
|
1499
|
+
readonly block_time: {
|
|
1500
|
+
readonly type: "timestamp"
|
|
1501
|
+
}
|
|
1502
|
+
readonly bns_id: {
|
|
1503
|
+
readonly type: "text"
|
|
1504
|
+
}
|
|
1505
|
+
readonly canonical: {
|
|
1506
|
+
readonly type: "boolean"
|
|
1507
|
+
}
|
|
1508
|
+
readonly commission: {
|
|
1509
|
+
readonly type: "text"
|
|
1510
|
+
readonly nullable: true
|
|
1511
|
+
}
|
|
1512
|
+
readonly cursor: {
|
|
1513
|
+
readonly type: "text"
|
|
1514
|
+
}
|
|
1515
|
+
readonly event_index: {
|
|
1516
|
+
readonly type: "int"
|
|
1517
|
+
}
|
|
1518
|
+
readonly price_ustx: {
|
|
1519
|
+
readonly type: "text"
|
|
1520
|
+
readonly nullable: true
|
|
1521
|
+
}
|
|
1522
|
+
readonly tx_id: {
|
|
1523
|
+
readonly type: "text"
|
|
1524
|
+
}
|
|
1525
|
+
readonly tx_index: {
|
|
1526
|
+
readonly type: "int"
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
readonly bns_names: {
|
|
1530
|
+
readonly bns_id: {
|
|
1531
|
+
readonly type: "text"
|
|
1532
|
+
}
|
|
1533
|
+
readonly fqn: {
|
|
1534
|
+
readonly type: "text"
|
|
1535
|
+
}
|
|
1536
|
+
readonly last_event_at: {
|
|
1537
|
+
readonly type: "timestamp"
|
|
1538
|
+
}
|
|
1539
|
+
readonly last_event_cursor: {
|
|
1540
|
+
readonly type: "text"
|
|
1541
|
+
}
|
|
1542
|
+
readonly name: {
|
|
1543
|
+
readonly type: "text"
|
|
1544
|
+
}
|
|
1545
|
+
readonly namespace: {
|
|
1546
|
+
readonly type: "text"
|
|
1547
|
+
}
|
|
1548
|
+
readonly owner: {
|
|
1549
|
+
readonly type: "text"
|
|
1550
|
+
}
|
|
1551
|
+
readonly registered_at: {
|
|
1552
|
+
readonly type: "int"
|
|
1553
|
+
readonly nullable: true
|
|
1554
|
+
}
|
|
1555
|
+
readonly renewal_height: {
|
|
1556
|
+
readonly type: "int"
|
|
1557
|
+
readonly nullable: true
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
readonly bns_namespaces: {
|
|
1561
|
+
readonly last_event_at: {
|
|
1562
|
+
readonly type: "timestamp"
|
|
1563
|
+
}
|
|
1564
|
+
readonly last_event_cursor: {
|
|
1565
|
+
readonly type: "text"
|
|
1566
|
+
}
|
|
1567
|
+
readonly launched_at: {
|
|
1568
|
+
readonly type: "int"
|
|
1569
|
+
readonly nullable: true
|
|
1570
|
+
}
|
|
1571
|
+
readonly lifetime: {
|
|
1572
|
+
readonly type: "int"
|
|
1573
|
+
readonly nullable: true
|
|
1574
|
+
}
|
|
1575
|
+
readonly manager: {
|
|
1576
|
+
readonly type: "text"
|
|
1577
|
+
readonly nullable: true
|
|
1578
|
+
}
|
|
1579
|
+
readonly manager_frozen: {
|
|
1580
|
+
readonly type: "boolean"
|
|
1581
|
+
}
|
|
1582
|
+
readonly name_count: {
|
|
1583
|
+
readonly type: "int"
|
|
1584
|
+
}
|
|
1585
|
+
readonly namespace: {
|
|
1586
|
+
readonly type: "text"
|
|
1587
|
+
}
|
|
1588
|
+
readonly price_frozen: {
|
|
1589
|
+
readonly type: "boolean"
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
readonly burn_block_rewards: {
|
|
1593
|
+
readonly amount_sats: {
|
|
1594
|
+
readonly type: "text"
|
|
1595
|
+
}
|
|
1596
|
+
readonly burn_amount: {
|
|
1597
|
+
readonly type: "text"
|
|
1598
|
+
}
|
|
1599
|
+
readonly burn_block_hash: {
|
|
1600
|
+
readonly type: "text"
|
|
1601
|
+
}
|
|
1602
|
+
readonly burn_block_height: {
|
|
1603
|
+
readonly type: "int"
|
|
1604
|
+
}
|
|
1605
|
+
readonly canonical: {
|
|
1606
|
+
readonly type: "boolean"
|
|
1607
|
+
}
|
|
1608
|
+
readonly cursor: {
|
|
1609
|
+
readonly type: "text"
|
|
1610
|
+
}
|
|
1611
|
+
readonly recipient_btc: {
|
|
1612
|
+
readonly type: "text"
|
|
1613
|
+
}
|
|
1614
|
+
readonly reward_index: {
|
|
1615
|
+
readonly type: "int"
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
readonly burn_block_reward_slots: {
|
|
1619
|
+
readonly burn_block_hash: {
|
|
1620
|
+
readonly type: "text"
|
|
1621
|
+
}
|
|
1622
|
+
readonly burn_block_height: {
|
|
1623
|
+
readonly type: "int"
|
|
1624
|
+
}
|
|
1625
|
+
readonly canonical: {
|
|
1626
|
+
readonly type: "boolean"
|
|
1627
|
+
}
|
|
1628
|
+
readonly cursor: {
|
|
1629
|
+
readonly type: "text"
|
|
1630
|
+
}
|
|
1631
|
+
readonly holder_btc: {
|
|
1632
|
+
readonly type: "text"
|
|
1633
|
+
}
|
|
1634
|
+
readonly slot_index: {
|
|
1635
|
+
readonly type: "int"
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
readonly events: {
|
|
1639
|
+
readonly block_height: {
|
|
1640
|
+
readonly type: "int"
|
|
1641
|
+
}
|
|
1642
|
+
readonly data: {
|
|
1643
|
+
readonly type: "jsonb"
|
|
1644
|
+
}
|
|
1645
|
+
readonly event_index: {
|
|
1646
|
+
readonly type: "int"
|
|
1647
|
+
}
|
|
1648
|
+
readonly tx_id: {
|
|
1649
|
+
readonly type: "text"
|
|
1650
|
+
}
|
|
1651
|
+
readonly type: {
|
|
1652
|
+
readonly type: "text"
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
readonly chain_reorgs: {
|
|
1656
|
+
readonly detected_at: {
|
|
1657
|
+
readonly type: "timestamp"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
};
|
|
1661
|
+
type IndexPrimaryKey = readonly string[] | null;
|
|
1662
|
+
declare const SOURCE_READ_PKS: {
|
|
1663
|
+
readonly blocks: readonly ["height"]
|
|
1664
|
+
readonly decoded_events: readonly ["cursor"]
|
|
1665
|
+
readonly transactions: readonly ["tx_id"]
|
|
1666
|
+
readonly mempool_transactions: readonly ["seq"]
|
|
1667
|
+
readonly pox4_calls: readonly ["cursor"]
|
|
1668
|
+
readonly sbtc_events: readonly ["cursor"]
|
|
1669
|
+
readonly sbtc_token_events: readonly ["cursor"]
|
|
1670
|
+
readonly bns_name_events: readonly ["cursor"]
|
|
1671
|
+
readonly bns_namespace_events: readonly ["cursor"]
|
|
1672
|
+
readonly bns_marketplace_events: readonly ["cursor"]
|
|
1673
|
+
readonly bns_names: readonly ["fqn"]
|
|
1674
|
+
readonly bns_namespaces: readonly ["namespace"]
|
|
1675
|
+
readonly burn_block_rewards: readonly ["cursor"]
|
|
1676
|
+
readonly burn_block_reward_slots: readonly ["cursor"]
|
|
1677
|
+
readonly events: readonly ["tx_id", "event_index"]
|
|
1678
|
+
readonly chain_reorgs: null
|
|
1679
|
+
};
|
|
953
1680
|
/**
|
|
954
1681
|
* Per-migration DB-plane gating for the source/target split.
|
|
955
1682
|
*
|
|
@@ -1124,4 +1851,4 @@ declare function getRawClient(role?: "source" | "target"): ReturnType<typeof pos
|
|
|
1124
1851
|
declare function getRawClientFor(url: string): ReturnType<typeof postgres>;
|
|
1125
1852
|
/** Close all DB connection pools. Call in CLI commands to allow process exit. */
|
|
1126
1853
|
declare function closeDb(): Promise<void>;
|
|
1127
|
-
export { sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, jsonb, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getDbSplitStatus, getDb, closeDb, assertDbSplit, UsageSnapshotsTable, UsageSnapshot, UsageDailyTable, UsageDaily, UpdateTransaction, UpdateTenantUsageMonthly, UpdateTenantComputeAddon, UpdateTenant, UpdateSubscriptionOutbox, UpdateSubscription, UpdateSubgraphOperation, UpdateSubgraph, UpdateProject, UpdateIndexProgress, UpdateEvent, UpdateContract, UpdateChatSession, UpdateBlock, UpdateApiKey, UpdateAccountSpendCap, TriggerEvaluatorStateTable, TriggerEvaluatorState, TransactionsTable, TransactionsArchiveTable, Transaction, TenantsTable, TenantUsageMonthlyTable, TenantUsageMonthly, TenantStatus, TenantComputeAddonsTable, TenantComputeAddon, Tenant, TeamMembersTable, TeamMember, TeamInvitationsTable, TeamInvitation, TABLE_TO_DB, SubscriptionsTable, SubscriptionStatus, SubscriptionRuntime, SubscriptionOutboxTable, SubscriptionOutbox, SubscriptionKind, SubscriptionFormat, SubscriptionDelivery, SubscriptionDeliveriesTable, Subscription, SubgraphsTable, SubgraphUsageDailyTable, SubgraphUsageDaily, SubgraphTableSnapshotsTable, SubgraphProcessingStatsTable, SubgraphOperationsTable, SubgraphOperationStatus, SubgraphOperationKind, SubgraphOperation, SubgraphHealthSnapshotsTable, SubgraphHealthSnapshot, SubgraphGapsTable, SubgraphGap, Subgraph, SessionsTable, Session, ServiceHeartbeatsTable, SbtcTokenEventsTable, SbtcTokenEventType, SbtcSupplySnapshotsTable, SbtcEventsTable, SbtcEventTopic, SOURCE_READ_COLUMNS, ProvisioningAuditStatus, ProvisioningAuditLogTable, ProvisioningAuditLog, ProvisioningAuditEvent, ProjectsTable, Project, ProcessedStripeEventsTable, Pox4SignersDailyTable, Pox4FunctionName, Pox4CyclesDailyTable, Pox4CallsTable, OutboxStatus, NumericAsText, MigrationRole, MempoolTransactionsTable, MempoolTransaction, MagicLinksTable, MagicLink, L2DecoderCheckpointsTable, InsertTransaction, InsertTenantUsageMonthly, InsertTenantComputeAddon, InsertTenant, InsertTeamMember, InsertTeamInvitation, InsertSubscriptionOutbox, InsertSubscriptionDelivery, InsertSubscription, InsertSubgraphUsageDaily, InsertSubgraphOperation, InsertSubgraphHealthSnapshot, InsertSubgraphGap, InsertSubgraph, InsertSession, InsertProvisioningAuditLog, InsertProject, InsertMempoolTransaction, InsertMagicLink, InsertIndexProgress, InsertEvent, InsertContract, InsertChatSession, InsertChatMessage, InsertBlock, InsertApiKey, InsertAccountSpendCap, InsertAccountInsight, InsertAccountAgentRun, InsertAccount, IndexProgressTable, IndexProgress, EventsTable, EventsArchiveTable, Event, DecodedEventsTable, DeadLetterEventsTable, DbSplitStatus, DbReadRow, DbPlane, Database, ContractsTable, Contract, ChatSessionsTable, ChatSession, ChatMessagesTable, ChatMessage, ChainReorgsTable, BurnBlockRewardsTable, BurnBlockRewardSlotsTable, BnsNamespacesTable, BnsNamespaceEventsTable, BnsNamespaceEventStatus, BnsNamesTable, BnsNameEventsTable, BnsNameEventTopic, BnsMarketplaceEventsTable, BnsMarketplaceAction, BlocksTable, Block, ApiKeysTable, ApiKey, AccountsTable, AccountSpendCapsTable, AccountSpendCap, AccountInsightsTable, AccountInsight, AccountAgentRunsTable, AccountAgentRun, Account };
|
|
1854
|
+
export { sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, jsonb, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getDbSplitStatus, getDb, closeDb, assertDbSplit, UsageSnapshotsTable, UsageSnapshot, UsageDailyTable, UsageDaily, UpdateTransaction, UpdateTenantUsageMonthly, UpdateTenantComputeAddon, UpdateTenant, UpdateSubscriptionOutbox, UpdateSubscription, UpdateSubgraphOperation, UpdateSubgraph, UpdateProject, UpdateIndexProgress, UpdateEvent, UpdateContract, UpdateChatSession, UpdateBlock, UpdateApiKey, UpdateAccountSpendCap, TriggerEvaluatorStateTable, TriggerEvaluatorState, TransactionsTable, TransactionsArchiveTable, Transaction, TenantsTable, TenantUsageMonthlyTable, TenantUsageMonthly, TenantStatus, TenantComputeAddonsTable, TenantComputeAddon, Tenant, TeamMembersTable, TeamMember, TeamInvitationsTable, TeamInvitation, TABLE_TO_DB, SubscriptionsTable, SubscriptionStatus, SubscriptionRuntime, SubscriptionOutboxTable, SubscriptionOutbox, SubscriptionKind, SubscriptionFormat, SubscriptionDelivery, SubscriptionDeliveriesTable, Subscription, SubgraphsTable, SubgraphUsageDailyTable, SubgraphUsageDaily, SubgraphTableSnapshotsTable, SubgraphProcessingStatsTable, SubgraphOperationsTable, SubgraphOperationStatus, SubgraphOperationKind, SubgraphOperation, SubgraphHealthSnapshotsTable, SubgraphHealthSnapshot, SubgraphGapsTable, SubgraphGap, Subgraph, SessionsTable, Session, ServiceHeartbeatsTable, SbtcTokenEventsTable, SbtcTokenEventType, SbtcSupplySnapshotsTable, SbtcEventsTable, SbtcEventTopic, SOURCE_READ_TYPES, SOURCE_READ_PKS, SOURCE_READ_COLUMNS, ProvisioningAuditStatus, ProvisioningAuditLogTable, ProvisioningAuditLog, ProvisioningAuditEvent, ProjectsTable, Project, ProcessedStripeEventsTable, Pox4SignersDailyTable, Pox4FunctionName, Pox4CyclesDailyTable, Pox4CallsTable, OutboxStatus, NumericAsText, MigrationRole, MempoolTransactionsTable, MempoolTransaction, MagicLinksTable, MagicLink, L2DecoderCheckpointsTable, InsertTransaction, InsertTenantUsageMonthly, InsertTenantComputeAddon, InsertTenant, InsertTeamMember, InsertTeamInvitation, InsertSubscriptionOutbox, InsertSubscriptionDelivery, InsertSubscription, InsertSubgraphUsageDaily, InsertSubgraphOperation, InsertSubgraphHealthSnapshot, InsertSubgraphGap, InsertSubgraph, InsertSession, InsertProvisioningAuditLog, InsertProject, InsertMempoolTransaction, InsertMagicLink, InsertIndexProgress, InsertEvent, InsertContract, InsertChatSession, InsertChatMessage, InsertBlock, InsertApiKey, InsertAccountSpendCap, InsertAccountInsight, InsertAccountAgentRun, InsertAccount, IndexProgressTable, IndexProgress, IndexPrimaryKey, IndexColumnType, IndexColumn, EventsTable, EventsArchiveTable, Event, DecodedEventsTable, DeadLetterEventsTable, DbSplitStatus, DbReadRow, DbPlane, Database, ContractsTable, Contract, ChatSessionsTable, ChatSession, ChatMessagesTable, ChatMessage, ChainReorgsTable, BurnBlockRewardsTable, BurnBlockRewardSlotsTable, BnsNamespacesTable, BnsNamespaceEventsTable, BnsNamespaceEventStatus, BnsNamesTable, BnsNameEventsTable, BnsNameEventTopic, BnsMarketplaceEventsTable, BnsMarketplaceAction, BlocksTable, Block, ApiKeysTable, ApiKey, AccountsTable, AccountSpendCapsTable, AccountSpendCap, AccountInsightsTable, AccountInsight, AccountAgentRunsTable, AccountAgentRun, Account };
|