@1sat/types 0.0.19 → 0.0.20

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.
@@ -25,6 +25,17 @@ export interface Destination {
25
25
  counterparty?: string;
26
26
  /** Literal P2PKH address. */
27
27
  address?: string;
28
+ /**
29
+ * Override / augment the customInstructions written on the resulting
30
+ * output's wallet record. For wallet-derived destinations
31
+ * (counterparty/self/address), these merge on top of the standard
32
+ * { protocolID, keyID, counterparty } block. For literal lockingScripts
33
+ * (which otherwise carry no derivation info), this is the only way to
34
+ * record spend-time metadata — useful for multi-sig destinations where
35
+ * the spending wallet needs to know { protocolID, keyID, counterparty,
36
+ * multiSig, M, N } to participate in a future P2MS unlock.
37
+ */
38
+ customInstructions?: Record<string, unknown>;
28
39
  }
29
40
  /**
30
41
  * Structural shape for a LockingScript instance — kept structural so this
@@ -1 +1 @@
1
- {"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../src/destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,WAAW;IAC3B,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAC1C,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IACjC,KAAK,IAAI,MAAM,CAAA;IACf,QAAQ,IAAI,MAAM,EAAE,CAAA;CACpB"}
1
+ {"version":3,"file":"destination.d.ts","sourceRoot":"","sources":["../src/destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,WAAW;IAC3B,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAC1C,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC5C;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IACjC,KAAK,IAAI,MAAM,CAAA;IACf,QAAQ,IAAI,MAAM,EAAE,CAAA;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/types",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Type definitions for 1Sat Ordinals SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",