@secondlayer/subgraphs 3.23.1 → 3.24.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.
@@ -1,4 +1,5 @@
1
1
  import { AbiContract as AbiContract2 } from "@secondlayer/stacks/clarity";
2
+ import { AssetIdentifier } from "@secondlayer/stacks/filters";
2
3
  /**
3
4
  * How long a read stays valid.
4
5
  *
@@ -147,38 +148,38 @@ interface FactoryScope {
147
148
  /** FT event filters */
148
149
  interface FtTransferFilter extends TraitScope {
149
150
  type: "ft_transfer";
150
- assetIdentifier?: string;
151
+ assetIdentifier?: AssetIdentifier;
151
152
  sender?: string;
152
153
  recipient?: string;
153
154
  minAmount?: bigint;
154
155
  }
155
156
  interface FtMintFilter extends TraitScope {
156
157
  type: "ft_mint";
157
- assetIdentifier?: string;
158
+ assetIdentifier?: AssetIdentifier;
158
159
  recipient?: string;
159
160
  minAmount?: bigint;
160
161
  }
161
162
  interface FtBurnFilter extends TraitScope {
162
163
  type: "ft_burn";
163
- assetIdentifier?: string;
164
+ assetIdentifier?: AssetIdentifier;
164
165
  sender?: string;
165
166
  minAmount?: bigint;
166
167
  }
167
168
  /** NFT event filters */
168
169
  interface NftTransferFilter extends TraitScope {
169
170
  type: "nft_transfer";
170
- assetIdentifier?: string;
171
+ assetIdentifier?: AssetIdentifier;
171
172
  sender?: string;
172
173
  recipient?: string;
173
174
  }
174
175
  interface NftMintFilter extends TraitScope {
175
176
  type: "nft_mint";
176
- assetIdentifier?: string;
177
+ assetIdentifier?: AssetIdentifier;
177
178
  recipient?: string;
178
179
  }
179
180
  interface NftBurnFilter extends TraitScope {
180
181
  type: "nft_burn";
181
- assetIdentifier?: string;
182
+ assetIdentifier?: AssetIdentifier;
182
183
  sender?: string;
183
184
  }
184
185
  /** Contract event filters */
@@ -235,7 +236,10 @@ type PrintField = ColumnType | {
235
236
  interface PrintEventFilter extends TraitScope, FactoryScope {
236
237
  type: "print_event";
237
238
  /** One contract id, or a set of them (max 20). Supports `*` wildcards.
238
- * Mutually exclusive with `trait`. */
239
+ * COMPOSES with `trait` — the matcher ANDs them, so the pair means
240
+ * "contracts conforming to this trait, narrowed to these ids". (The Index
241
+ * read API refuses the combination, but that is its query planner's
242
+ * constraint, not a semantic one.) */
239
243
  contractId?: string | readonly string[];
240
244
  topic?: string;
241
245
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondlayer/subgraphs",
3
- "version": "3.23.1",
3
+ "version": "3.24.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,9 +49,7 @@
49
49
  "import": "./dist/src/testing/index.js"
50
50
  }
51
51
  },
52
- "files": [
53
- "dist"
54
- ],
52
+ "files": ["dist"],
55
53
  "scripts": {
56
54
  "build": "bunup",
57
55
  "dev": "bunup --watch",
@@ -60,7 +58,7 @@
60
58
  "prepublishOnly": "bun run build"
61
59
  },
62
60
  "dependencies": {
63
- "@secondlayer/shared": "^7.3.1",
61
+ "@secondlayer/shared": "^7.5.0",
64
62
  "@secondlayer/stacks": "^3.0.0",
65
63
  "esbuild": "^0.27.4",
66
64
  "kysely": "0.28.17",