@1sat/actions 0.0.229 → 0.0.231

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.
Files changed (94) hide show
  1. package/dist/apply/opnsRegister.d.ts +12 -5
  2. package/dist/apply/opnsRegister.d.ts.map +1 -1
  3. package/dist/apply/opnsRegister.js +68 -10
  4. package/dist/apply/opnsRegister.js.map +1 -1
  5. package/dist/funding/index.d.ts +1 -0
  6. package/dist/funding/index.d.ts.map +1 -1
  7. package/dist/funding/index.js +1 -1
  8. package/dist/funding/index.js.map +1 -1
  9. package/dist/funding/walletFunding.d.ts +47 -0
  10. package/dist/funding/walletFunding.d.ts.map +1 -0
  11. package/dist/funding/walletFunding.js +162 -0
  12. package/dist/funding/walletFunding.js.map +1 -0
  13. package/dist/funding/walletFunding.test.d.ts +2 -0
  14. package/dist/funding/walletFunding.test.d.ts.map +1 -0
  15. package/dist/funding/walletFunding.test.js +225 -0
  16. package/dist/funding/walletFunding.test.js.map +1 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +4 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/mandala/brc78.d.ts +29 -0
  22. package/dist/mandala/brc78.d.ts.map +1 -0
  23. package/dist/mandala/brc78.js +60 -0
  24. package/dist/mandala/brc78.js.map +1 -0
  25. package/dist/mandala/deploy.d.ts +89 -0
  26. package/dist/mandala/deploy.d.ts.map +1 -0
  27. package/dist/mandala/deploy.js +226 -0
  28. package/dist/mandala/deploy.js.map +1 -0
  29. package/dist/mandala/deploy.test.d.ts +2 -0
  30. package/dist/mandala/deploy.test.d.ts.map +1 -0
  31. package/dist/mandala/deploy.test.js +281 -0
  32. package/dist/mandala/deploy.test.js.map +1 -0
  33. package/dist/mandala/envelope.d.ts +69 -0
  34. package/dist/mandala/envelope.d.ts.map +1 -0
  35. package/dist/mandala/envelope.js +86 -0
  36. package/dist/mandala/envelope.js.map +1 -0
  37. package/dist/mandala/envelope.test.d.ts +2 -0
  38. package/dist/mandala/envelope.test.d.ts.map +1 -0
  39. package/dist/mandala/envelope.test.js +106 -0
  40. package/dist/mandala/envelope.test.js.map +1 -0
  41. package/dist/mandala/index.d.ts +10 -0
  42. package/dist/mandala/index.d.ts.map +1 -0
  43. package/dist/mandala/index.js +18 -0
  44. package/dist/mandala/index.js.map +1 -0
  45. package/dist/mandala/receive.d.ts +46 -0
  46. package/dist/mandala/receive.d.ts.map +1 -0
  47. package/dist/mandala/receive.js +218 -0
  48. package/dist/mandala/receive.js.map +1 -0
  49. package/dist/mandala/relay.d.ts +36 -0
  50. package/dist/mandala/relay.d.ts.map +1 -0
  51. package/dist/mandala/relay.js +50 -0
  52. package/dist/mandala/relay.js.map +1 -0
  53. package/dist/mandala/send.d.ts +74 -0
  54. package/dist/mandala/send.d.ts.map +1 -0
  55. package/dist/mandala/send.js +327 -0
  56. package/dist/mandala/send.js.map +1 -0
  57. package/dist/mandala/send.test.d.ts +2 -0
  58. package/dist/mandala/send.test.d.ts.map +1 -0
  59. package/dist/mandala/send.test.js +515 -0
  60. package/dist/mandala/send.test.js.map +1 -0
  61. package/dist/mandala/tokenId.d.ts +21 -0
  62. package/dist/mandala/tokenId.d.ts.map +1 -0
  63. package/dist/mandala/tokenId.js +29 -0
  64. package/dist/mandala/tokenId.js.map +1 -0
  65. package/dist/opns/index.d.ts +65 -4
  66. package/dist/opns/index.d.ts.map +1 -1
  67. package/dist/opns/index.js +93 -34
  68. package/dist/opns/index.js.map +1 -1
  69. package/dist/opns/registerOpns.test.d.ts +2 -0
  70. package/dist/opns/registerOpns.test.d.ts.map +1 -0
  71. package/dist/opns/registerOpns.test.js +186 -0
  72. package/dist/opns/registerOpns.test.js.map +1 -0
  73. package/dist/payments/index.d.ts +14 -0
  74. package/dist/payments/index.d.ts.map +1 -1
  75. package/dist/payments/index.js +1 -1
  76. package/dist/payments/index.js.map +1 -1
  77. package/dist/sweep/index.d.ts.map +1 -1
  78. package/dist/sweep/index.js +13 -9
  79. package/dist/sweep/index.js.map +1 -1
  80. package/dist/sweep/sweepBsv21.test.d.ts +2 -0
  81. package/dist/sweep/sweepBsv21.test.d.ts.map +1 -0
  82. package/dist/sweep/sweepBsv21.test.js +46 -0
  83. package/dist/sweep/sweepBsv21.test.js.map +1 -0
  84. package/dist/sweep/types.d.ts +2 -0
  85. package/dist/sweep/types.d.ts.map +1 -1
  86. package/dist/tokens/index.d.ts +15 -1
  87. package/dist/tokens/index.d.ts.map +1 -1
  88. package/dist/tokens/index.js +100 -17
  89. package/dist/tokens/index.js.map +1 -1
  90. package/dist/tokens/overlayFunding.test.d.ts +2 -0
  91. package/dist/tokens/overlayFunding.test.d.ts.map +1 -0
  92. package/dist/tokens/overlayFunding.test.js +116 -0
  93. package/dist/tokens/overlayFunding.test.js.map +1 -0
  94. package/package.json +8 -7
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { hasOneSatModule } from './utils/hasOneSatModule.js';
16
16
  export type { PrepareP1SatOptions } from './apply/prepare.js';
17
17
  export { type Spend, type ResolvedSpend, type SpendTarget, type BasketSpendTarget, type OutpointSpendTarget, type PipelineOptions, spendsFromLabels, labelsFromSpends, spendToLabel, spendTargetsFromLabels, labelsFromSpendTargets, spendTargetToLabel, buildSpendsForTargets, buildSpendsForResolved, materializeSpends, resolveSpendTargets, unlockByScript, buildPurchaseUnlockingScript, runCreateActionPipeline, finishCreateAction, embellishCreateActionArgs, } from './pipeline/index.js';
18
18
  export type { FundingProvider, FundingResult, } from './funding/index.js';
19
+ export { createWalletFundingProvider, FUNDING_BASKET, type WalletFundingProviderOptions, } from './funding/index.js';
19
20
  export { getDisplayValue } from './utils/displayValue.js';
20
21
  export { ordinalSeedTags } from './utils/ordinalSeedTags.js';
21
22
  export { loadBasketOutput, loadBasketOutputBeef, toIdTag, type LoadBasketOutputResult, } from './utils/loadBasketOutput.js';
@@ -32,6 +33,7 @@ export * from './collections/index.js';
32
33
  export * from './payments/index.js';
33
34
  export * from './ordinals/index.js';
34
35
  export * from './tokens/index.js';
36
+ export * from './mandala/index.js';
35
37
  export * from './inscriptions/index.js';
36
38
  export * from './locks/index.js';
37
39
  export * from './signing/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACN,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,aAAa,GACb,MAAM,YAAY,CAAA;AAGnB,OAAO,EACN,cAAc,EACd,cAAc,EACd,KAAK,OAAO,GACZ,MAAM,sBAAsB,CAAA;AAG7B,cAAc,gBAAgB,CAAA;AAG9B,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,OAAO,GACZ,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EACN,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,eAAe,GACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACN,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,KAAK,kBAAkB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,KAAK,oBAAoB,GACzB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EACN,KAAK,KAAK,EACV,KAAK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K,wBAAwB,EAC7B,KAAK,yBAAyB,GAC9B,MAAM,mCAAmC,CAAA;AAG1C,cAAc,iBAAiB,CAAA;AAG/B,cAAc,qBAAqB,CAAA;AAGnC,cAAc,kBAAkB,CAAA;AA0ChC,YAAY,EACX,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,YAAY,GACZ,MAAM,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ export { PUSHDROP_SIG_PLACEHOLDER_LEN, pushDropCustomInstructions, pushDropDecod
19
19
  export { createTrackedAction, executeTrackedAction, randomActionId, stampManagedOutputIds, ensureP1SatDispatchLabel, ensureActionId, } from './utils/createTrackedAction.js';
20
20
  export { hasOneSatModule } from './utils/hasOneSatModule.js';
21
21
  export { spendsFromLabels, labelsFromSpends, spendToLabel, spendTargetsFromLabels, labelsFromSpendTargets, spendTargetToLabel, buildSpendsForTargets, buildSpendsForResolved, materializeSpends, resolveSpendTargets, unlockByScript, buildPurchaseUnlockingScript, runCreateActionPipeline, finishCreateAction, embellishCreateActionArgs, } from './pipeline/index.js';
22
+ export { createWalletFundingProvider, FUNDING_BASKET, } from './funding/index.js';
22
23
  export { getDisplayValue } from './utils/displayValue.js';
23
24
  export { ordinalSeedTags } from './utils/ordinalSeedTags.js';
24
25
  export { loadBasketOutput, loadBasketOutputBeef, toIdTag, } from './utils/loadBasketOutput.js';
@@ -36,6 +37,7 @@ export * from './collections/index.js';
36
37
  export * from './payments/index.js';
37
38
  export * from './ordinals/index.js';
38
39
  export * from './tokens/index.js';
40
+ export * from './mandala/index.js';
39
41
  export * from './inscriptions/index.js';
40
42
  export * from './locks/index.js';
41
43
  export * from './signing/index.js';
@@ -61,6 +63,7 @@ import { identityActions } from './identity/index.js';
61
63
  import { inscriptionsActions } from './inscriptions/index.js';
62
64
  import { cancelOwnedListings } from './listings/cancelOwnedListings.js';
63
65
  import { locksActions } from './locks/index.js';
66
+ import { mandalaActions } from './mandala/index.js';
64
67
  import { mneeActions } from './mnee/index.js';
65
68
  import { opnsActions } from './opns/index.js';
66
69
  import { ordfsActions } from './ordfs/index.js';
@@ -78,6 +81,7 @@ actionRegistry.registerAll([
78
81
  ...paymentsActions,
79
82
  ...ordinalsActions,
80
83
  ...tokensActions,
84
+ ...mandalaActions,
81
85
  ...inscriptionsActions,
82
86
  ...locksActions,
83
87
  ...signingActions,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,kCAAkC;AAClC,OAAO,EAQN,aAAa,GACb,MAAM,YAAY,CAAA;AAEnB,yBAAyB;AACzB,OAAO,EACN,cAAc,EACd,cAAc,GAEd,MAAM,sBAAsB,CAAA;AAE7B,mBAAmB;AACnB,cAAc,gBAAgB,CAAA;AAE9B,wEAAwE;AACxE,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,GAEpB,MAAM,kBAAkB,CAAA;AAEzB,0BAA0B;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EACN,oBAAoB,GAGpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACN,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,YAAY,EACZ,YAAY,GAEZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,GAEd,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAON,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EAC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AmB,CAAA;AAEjD,cAAc,CAAC,WAAW,CAAC;IAC1B,GAAG,gBAAgB;IACnB,GAAG,kBAAkB;IACrB,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,GAAG,eAAe;IAClB,GAAG,aAAa;IAChB,GAAG,cAAc;IACjB,GAAG,mBAAmB;IACtB,GAAG,YAAY;IACf,GAAG,cAAc;IACjB,GAAG,aAAa;IAChB,GAAG,YAAY;IACf,mBAAmB;IACnB,GAAG,WAAW;IACd,GAAG,WAAW;IACd,GAAG,WAAW;IACd,GAAG,YAAY;CACf,CAAC,CAAA"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * BRC-78 portable encrypted message, with the crypto done by the wallet.
3
+ *
4
+ * BRC-78 is BRC-2 encryption under protocol `[2, 'message encryption']` with a
5
+ * random 32-byte key ID (base64 in the invoice number) and counterparty = the
6
+ * recipient: exactly BRC-100 `wallet.encrypt`. This module only writes the
7
+ * BRC-78 framing around the wallet's ciphertext, in the byte layout of
8
+ * `@bsv/sdk`'s `EncryptedMessage` (so its `decrypt` reads it):
9
+ *
10
+ * version `42421033` (4) ‖ sender identity key (33) ‖ recipient identity
11
+ * key (33) ‖ key ID (32) ‖ AES-256-GCM ciphertext (IV prepended)
12
+ */
13
+ import { type WalletInterface, type WalletProtocol } from '@bsv/sdk';
14
+ /** BRC-78 protocol, security level 2 */
15
+ export declare const BRC78_PROTOCOL: WalletProtocol;
16
+ /** Version bytes, in `@bsv/sdk` `EncryptedMessage` order */
17
+ export declare const BRC78_VERSION = "42421033";
18
+ /**
19
+ * Encrypt `plaintext` to `recipient` (identity key hex) and return the BRC-78
20
+ * serialization.
21
+ */
22
+ export declare function encryptBrc78(wallet: Pick<WalletInterface, 'encrypt' | 'getPublicKey'>, plaintext: number[], recipient: string): Promise<number[]>;
23
+ /**
24
+ * Decrypt a BRC-78 serialization addressed to this wallet: the inverse of
25
+ * {@link encryptBrc78}. The key ID is read from the BRC-78 header; the
26
+ * counterparty is the sender's identity key.
27
+ */
28
+ export declare function decryptBrc78(wallet: Pick<WalletInterface, 'decrypt'>, message: number[] | Uint8Array, sender: string): Promise<number[]>;
29
+ //# sourceMappingURL=brc78.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brc78.d.ts","sourceRoot":"","sources":["../../src/mandala/brc78.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAS,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AAE3E,wCAAwC;AACxC,eAAO,MAAM,cAAc,EAAE,cAA0C,CAAA;AACvE,4DAA4D;AAC5D,eAAO,MAAM,aAAa,aAAa,CAAA;AAEvC;;;GAGG;AACH,wBAAsB,YAAY,CACjC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,cAAc,CAAC,EACzD,SAAS,EAAE,MAAM,EAAE,EACnB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,EAAE,CAAC,CAkBnB;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CACjC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,EACxC,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU,EAC9B,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,EAAE,CAAC,CAanB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * BRC-78 portable encrypted message, with the crypto done by the wallet.
3
+ *
4
+ * BRC-78 is BRC-2 encryption under protocol `[2, 'message encryption']` with a
5
+ * random 32-byte key ID (base64 in the invoice number) and counterparty = the
6
+ * recipient: exactly BRC-100 `wallet.encrypt`. This module only writes the
7
+ * BRC-78 framing around the wallet's ciphertext, in the byte layout of
8
+ * `@bsv/sdk`'s `EncryptedMessage` (so its `decrypt` reads it):
9
+ *
10
+ * version `42421033` (4) ‖ sender identity key (33) ‖ recipient identity
11
+ * key (33) ‖ key ID (32) ‖ AES-256-GCM ciphertext (IV prepended)
12
+ */
13
+ import { Utils } from '@bsv/sdk';
14
+ /** BRC-78 protocol, security level 2 */
15
+ export const BRC78_PROTOCOL = [2, 'message encryption'];
16
+ /** Version bytes, in `@bsv/sdk` `EncryptedMessage` order */
17
+ export const BRC78_VERSION = '42421033';
18
+ /**
19
+ * Encrypt `plaintext` to `recipient` (identity key hex) and return the BRC-78
20
+ * serialization.
21
+ */
22
+ export async function encryptBrc78(wallet, plaintext, recipient) {
23
+ const keyID = Array.from(crypto.getRandomValues(new Uint8Array(32)));
24
+ const { ciphertext } = await wallet.encrypt({
25
+ plaintext,
26
+ protocolID: BRC78_PROTOCOL,
27
+ keyID: Utils.toBase64(keyID),
28
+ counterparty: recipient,
29
+ });
30
+ const { publicKey: sender } = await wallet.getPublicKey({
31
+ identityKey: true,
32
+ });
33
+ return [
34
+ ...Utils.toArray(BRC78_VERSION, 'hex'),
35
+ ...Utils.toArray(sender, 'hex'),
36
+ ...Utils.toArray(recipient, 'hex'),
37
+ ...keyID,
38
+ ...ciphertext,
39
+ ];
40
+ }
41
+ /**
42
+ * Decrypt a BRC-78 serialization addressed to this wallet: the inverse of
43
+ * {@link encryptBrc78}. The key ID is read from the BRC-78 header; the
44
+ * counterparty is the sender's identity key.
45
+ */
46
+ export async function decryptBrc78(wallet, message, sender) {
47
+ const bytes = Array.from(message);
48
+ if (Utils.toHex(bytes.slice(0, 4)) !== BRC78_VERSION) {
49
+ throw new Error('BRC-78: unsupported version');
50
+ }
51
+ const keyID = bytes.slice(4 + 33 + 33, 4 + 33 + 33 + 32);
52
+ const { plaintext } = await wallet.decrypt({
53
+ ciphertext: bytes.slice(4 + 33 + 33 + 32),
54
+ protocolID: BRC78_PROTOCOL,
55
+ keyID: Utils.toBase64(keyID),
56
+ counterparty: sender,
57
+ });
58
+ return plaintext;
59
+ }
60
+ //# sourceMappingURL=brc78.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brc78.js","sourceRoot":"","sources":["../../src/mandala/brc78.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;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AAC,KAAK,aAAa,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAC/C,CAAC;IACD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAA;IACxD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAC1C,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;QACzC,UAAU,EAAE,cAAc;QAC1B,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC5B,YAAY,EAAE,MAAM;KACpB,CAAC,CAAA;IACF,OAAO,SAAS,CAAA;AACjB,CAAC"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Mandala (BRC-162) deploy.
3
+ *
4
+ * Filing: a **label** on the transaction indexes tokens — `mandala` on every
5
+ * Mandala transaction, `mandala <txid> <vout>` per token (`listActions` answers
6
+ * "which tokens does this wallet track", and labels survive outputs being
7
+ * spent). **Per-token baskets** `mandala <txid> <vout>` hold outputs: every
8
+ * value/authority output of a token, the deploy output included.
9
+ */
10
+ import { type Destination } from '@1sat/types';
11
+ import type { Action } from '../types.js';
12
+ export interface DeployMandalaInput {
13
+ /** Supply: > 0 is a fixed-supply deploy, 0 an authority deploy */
14
+ amount: string | bigint;
15
+ /** Decimal places (`dec`), 0-18 */
16
+ decimals?: number;
17
+ /** Ticker (`sym`); not unique */
18
+ symbol?: string;
19
+ /** Icon pointer: `txid_vout` outpoint, or an output index in this transaction */
20
+ icon?: string | number;
21
+ /** Holder of the deploy output. Defaults to self */
22
+ destination?: Destination;
23
+ /**
24
+ * Overlay base URL. When set, the wallet creates the deploy with
25
+ * `noSend` and it is broadcast as a BRC-22 submit to `<overlay>/submit`
26
+ * with `X-Topics: tm_mandala,tm_<txid>` instead of the wallet's broadcast;
27
+ * a STEAK response is success. This `overlay` input is the pattern other
28
+ * broadcasting actions adopt.
29
+ */
30
+ overlay?: string;
31
+ }
32
+ export interface DeployMandalaResponse {
33
+ txid?: string;
34
+ /** AtomicBEEF of the deploy transaction */
35
+ tx?: number[];
36
+ /** The token's BRC-36 deploy outpoint `<txid>.0`; its basket, label and protocol name are `mandala <txid> 0` */
37
+ tokenId?: string;
38
+ /**
39
+ * Set with `txid`/`tx` when the deploy was created but not filed: re-run
40
+ * the filing with {@link fileMandalaDeploy}.
41
+ */
42
+ error?: string;
43
+ }
44
+ /**
45
+ * Deploy a Mandala token: one `createAction` and one `internalizeAction` on
46
+ * the same transaction.
47
+ *
48
+ * 1. `createAction` with the deploy output at vout 0 (`randomizeOutputs:
49
+ * false`) and no basket (an output cannot later be moved out of a basket),
50
+ * customInstructions = the key derivation only, label `mandala`.
51
+ * Broadcast by the wallet, or via `overlay` (see
52
+ * {@link DeployMandalaInput.overlay}).
53
+ * 2. `internalizeAction` on that transaction: vout 0 is inserted into the
54
+ * per-token basket `mandala <txid> 0` with the same customInstructions, and
55
+ * the labels `mandala` and `mandala <txid> 0` are added. When this step
56
+ * fails the result carries `txid`, `tx` and the error; the action is still
57
+ * labelled `mandala`, and {@link fileMandalaDeploy} re-runs the filing.
58
+ *
59
+ * The deploy key derives under `MANDALA_DEPLOY_PROTOCOL` = `[2, 'mandala
60
+ * deploy']`, keyID `mandala-deploy-<hex>`: the token id is this
61
+ * transaction's txid, unknown while the key is derived.
62
+ *
63
+ * The token is named by its BRC-36 deploy outpoint `<txid>.0`; on chain its BRC-162
64
+ * id is the 32-byte txid. Amount and id are read from the script,
65
+ * `sym`/`dec`/`icon` from the deploy payload — none are copied into
66
+ * customInstructions.
67
+ */
68
+ export declare const deployMandala: Action<DeployMandalaInput, DeployMandalaResponse>;
69
+ export interface FileMandalaDeployInput {
70
+ /** The deploy txid (the token is `<txid>.0`) */
71
+ txid: string;
72
+ /**
73
+ * Atomic BEEF of the deploy (the `tx` {@link deployMandala} returned).
74
+ * When omitted it is fetched with `ctx.services.getBeefForTxid`.
75
+ */
76
+ tx?: number[];
77
+ }
78
+ export interface FileMandalaDeployResponse {
79
+ txid?: string;
80
+ tokenId?: string;
81
+ error?: string;
82
+ }
83
+ /**
84
+ * Re-run the filing step of {@link deployMandala} for a deploy that was
85
+ * created but not filed. The customInstructions are read back from the
86
+ * `mandala`-labelled action's vout 0 (`listActions`).
87
+ */
88
+ export declare const fileMandalaDeploy: Action<FileMandalaDeployInput, FileMandalaDeployResponse>;
89
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/mandala/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACN,KAAK,WAAW,EAMhB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAA;AAIxD,MAAM,WAAW,kBAAkB;IAClC,kEAAkE;IAClE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,oDAAoD;IACpD,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb,gHAAgH;IAChH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAgCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAwH1E,CAAA;AAEF,MAAM,WAAW,sBAAsB;IACtC,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;CACb;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACrC,sBAAsB,EACtB,yBAAyB,CA4CzB,CAAA"}
@@ -0,0 +1,226 @@
1
+ /**
2
+ * Mandala (BRC-162) deploy.
3
+ *
4
+ * Filing: a **label** on the transaction indexes tokens — `mandala` on every
5
+ * Mandala transaction, `mandala <txid> <vout>` per token (`listActions` answers
6
+ * "which tokens does this wallet track", and labels survive outputs being
7
+ * spent). **Per-token baskets** `mandala <txid> <vout>` hold outputs: every
8
+ * value/authority output of a token, the deploy output included.
9
+ */
10
+ import { OverlayClient } from '@1sat/client';
11
+ import { Mandala } from '@1sat/templates';
12
+ import { MANDALA_DEPLOY_PROTOCOL, MANDALA_LABEL, MANDALA_TOPIC, mandalaTokenBasket, mandalaTokenLabel, } from '@1sat/types';
13
+ import { executeTrackedAction } from '../utils/createTrackedAction.js';
14
+ import { resolveDestination } from '../utils/resolveDestination.js';
15
+ /**
16
+ * File a deploy output into its token's basket: `internalizeAction` on the
17
+ * deploy transaction, vout 0 by `basket insertion` into `mandala <txid> 0` with
18
+ * the derivation triple as customInstructions, labels `mandala` and
19
+ * `mandala <txid> 0`.
20
+ */
21
+ async function fileDeploy(ctx, txid, tx, customInstructions) {
22
+ const token = { txid, vout: 0 };
23
+ await ctx.wallet.internalizeAction({
24
+ tx,
25
+ outputs: [
26
+ {
27
+ outputIndex: 0,
28
+ protocol: 'basket insertion',
29
+ insertionRemittance: {
30
+ basket: mandalaTokenBasket(token),
31
+ customInstructions,
32
+ },
33
+ },
34
+ ],
35
+ labels: [MANDALA_LABEL, mandalaTokenLabel(token)],
36
+ description: 'File Mandala deploy',
37
+ });
38
+ }
39
+ /**
40
+ * Deploy a Mandala token: one `createAction` and one `internalizeAction` on
41
+ * the same transaction.
42
+ *
43
+ * 1. `createAction` with the deploy output at vout 0 (`randomizeOutputs:
44
+ * false`) and no basket (an output cannot later be moved out of a basket),
45
+ * customInstructions = the key derivation only, label `mandala`.
46
+ * Broadcast by the wallet, or via `overlay` (see
47
+ * {@link DeployMandalaInput.overlay}).
48
+ * 2. `internalizeAction` on that transaction: vout 0 is inserted into the
49
+ * per-token basket `mandala <txid> 0` with the same customInstructions, and
50
+ * the labels `mandala` and `mandala <txid> 0` are added. When this step
51
+ * fails the result carries `txid`, `tx` and the error; the action is still
52
+ * labelled `mandala`, and {@link fileMandalaDeploy} re-runs the filing.
53
+ *
54
+ * The deploy key derives under `MANDALA_DEPLOY_PROTOCOL` = `[2, 'mandala
55
+ * deploy']`, keyID `mandala-deploy-<hex>`: the token id is this
56
+ * transaction's txid, unknown while the key is derived.
57
+ *
58
+ * The token is named by its BRC-36 deploy outpoint `<txid>.0`; on chain its BRC-162
59
+ * id is the 32-byte txid. Amount and id are read from the script,
60
+ * `sym`/`dec`/`icon` from the deploy payload — none are copied into
61
+ * customInstructions.
62
+ */
63
+ export const deployMandala = {
64
+ meta: {
65
+ name: 'deployMandala',
66
+ description: 'Deploy a Mandala (BRC-162) token: amount > 0 is fixed supply, 0 is an authority deploy. The token is the BRC-36 deploy outpoint <txid>.0.',
67
+ category: 'tokens',
68
+ inputSchema: {
69
+ type: 'object',
70
+ properties: {
71
+ amount: {
72
+ type: 'string',
73
+ description: 'Supply as a string for bigint: > 0 fixed supply, 0 authority deploy',
74
+ },
75
+ decimals: {
76
+ type: 'integer',
77
+ description: 'Decimal places (0-18)',
78
+ },
79
+ symbol: { type: 'string', description: 'Token symbol/ticker' },
80
+ icon: {
81
+ type: 'string',
82
+ description: 'Icon outpoint (txid_vout), or an output index in the deploy transaction',
83
+ },
84
+ destination: {
85
+ type: 'object',
86
+ description: 'Holder destination. One of lockingScript (hex), counterparty (pubkey), or address. Defaults to self.',
87
+ },
88
+ overlay: {
89
+ type: 'string',
90
+ description: 'Overlay base URL: broadcast as a BRC-22 submit (tm_mandala, tm_<txid>) instead of the wallet broadcast',
91
+ },
92
+ },
93
+ required: ['amount'],
94
+ },
95
+ },
96
+ async execute(ctx, input) {
97
+ try {
98
+ const amount = typeof input.amount === 'string' ? BigInt(input.amount) : input.amount;
99
+ const authority = amount === 0n;
100
+ const resolved = await resolveDestination(ctx, input.destination, {
101
+ protocolID: MANDALA_DEPLOY_PROTOCOL,
102
+ keyIDPrefix: 'mandala-deploy',
103
+ });
104
+ const payload = {};
105
+ if (input.symbol !== undefined)
106
+ payload.sym = input.symbol;
107
+ if (input.decimals !== undefined)
108
+ payload.dec = input.decimals;
109
+ if (input.icon !== undefined)
110
+ payload.icon = input.icon;
111
+ const deploy = authority
112
+ ? Mandala.deployAuthority({ lock: resolved.lockingScript, payload })
113
+ : Mandala.deployValue(amount, {
114
+ lock: resolved.lockingScript,
115
+ payload,
116
+ });
117
+ // Derivation only (absent for an address / literal-script destination).
118
+ const customInstructions = resolved.customInstructions
119
+ ? JSON.stringify(resolved.customInstructions)
120
+ : undefined;
121
+ const description = authority
122
+ ? 'Deploy Mandala token (authority)'
123
+ : 'Deploy Mandala token (fixed supply)';
124
+ const args = {
125
+ description,
126
+ outputs: [
127
+ {
128
+ lockingScript: deploy.lock().toHex(),
129
+ satoshis: 1,
130
+ outputDescription: 'Mandala deploy',
131
+ customInstructions,
132
+ },
133
+ ],
134
+ labels: [MANDALA_LABEL],
135
+ options: {
136
+ randomizeOutputs: false,
137
+ ...(input.overlay && { noSend: true }),
138
+ },
139
+ };
140
+ const created = await executeTrackedAction(ctx.wallet, args);
141
+ if (created.error)
142
+ return { error: created.error };
143
+ if (!created.txid || !created.tx)
144
+ return { error: 'deploy-no-tx' };
145
+ const txid = created.txid;
146
+ const tx = created.tx;
147
+ if (input.overlay) {
148
+ const steak = await new OverlayClient(input.overlay).submitBrc22(tx, [
149
+ MANDALA_TOPIC,
150
+ `tm_${txid}`,
151
+ ]);
152
+ if (!steak || typeof steak !== 'object' || Array.isArray(steak)) {
153
+ return { txid, tx, error: 'overlay-no-steak' };
154
+ }
155
+ }
156
+ try {
157
+ await fileDeploy(ctx, txid, tx, customInstructions);
158
+ }
159
+ catch (error) {
160
+ return {
161
+ txid,
162
+ tx,
163
+ tokenId: `${txid}.0`,
164
+ error: `file-failed: ${error instanceof Error ? error.message : String(error)}`,
165
+ };
166
+ }
167
+ return { txid, tx, tokenId: `${txid}.0` };
168
+ }
169
+ catch (error) {
170
+ return {
171
+ error: error instanceof Error ? error.message : 'unknown-error',
172
+ };
173
+ }
174
+ },
175
+ };
176
+ /**
177
+ * Re-run the filing step of {@link deployMandala} for a deploy that was
178
+ * created but not filed. The customInstructions are read back from the
179
+ * `mandala`-labelled action's vout 0 (`listActions`).
180
+ */
181
+ export const fileMandalaDeploy = {
182
+ meta: {
183
+ name: 'fileMandalaDeploy',
184
+ description: 'File a created Mandala deploy output into its token basket (retry of the deploy internalize)',
185
+ category: 'tokens',
186
+ inputSchema: {
187
+ type: 'object',
188
+ properties: {
189
+ txid: { type: 'string', description: 'Deploy txid' },
190
+ tx: {
191
+ type: 'array',
192
+ description: 'Atomic BEEF of the deploy; fetched from services when omitted',
193
+ },
194
+ },
195
+ required: ['txid'],
196
+ },
197
+ },
198
+ async execute(ctx, input) {
199
+ try {
200
+ const txid = input.txid.toLowerCase();
201
+ const listed = await ctx.wallet.listActions({
202
+ labels: [MANDALA_LABEL],
203
+ includeOutputs: true,
204
+ limit: 10000,
205
+ });
206
+ const action = listed.actions.find((a) => a.txid === txid);
207
+ if (!action)
208
+ return { error: 'deploy-not-found' };
209
+ const out = action.outputs?.find((o) => o.outputIndex === 0);
210
+ let tx = input.tx;
211
+ if (!tx) {
212
+ if (!ctx.services)
213
+ return { error: 'services-required' };
214
+ tx = (await ctx.services.getBeefForTxid(txid)).toBinaryAtomic(txid);
215
+ }
216
+ await fileDeploy(ctx, txid, tx, out?.customInstructions);
217
+ return { txid, tokenId: `${txid}.0` };
218
+ }
219
+ catch (error) {
220
+ return {
221
+ error: error instanceof Error ? error.message : String(error),
222
+ };
223
+ }
224
+ },
225
+ };
226
+ //# sourceMappingURL=deploy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/mandala/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAwB,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAEN,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,iBAAiB,GACjB,MAAM,aAAa,CAAA;AAGpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAoCnE;;;;;GAKG;AACH,KAAK,UAAU,UAAU,CACxB,GAAkB,EAClB,IAAY,EACZ,EAAc,EACd,kBAAsC;IAEtC,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAA;IAC/B,MAAM,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC;QAClC,EAAE;QACF,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,CAAC;gBACd,QAAQ,EAAE,kBAAkB;gBAC5B,mBAAmB,EAAE;oBACpB,MAAM,EAAE,kBAAkB,CAAC,KAAK,CAAC;oBACjC,kBAAkB;iBAClB;aACD;SACD;QACD,MAAM,EAAE,CAAC,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACjD,WAAW,EAAE,qBAAqB;K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