applesauce-wallet 0.0.0-next-20250311162623 → 0.0.0-next-20250311170821

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,3 +1,3 @@
1
1
  import { Action } from "applesauce-actions";
2
2
  /** An action that creates a new 17375 wallet event and 375 wallet backup */
3
- export declare function CreateWallet(mints: string[], privateKey?: Uint8Array<ArrayBufferLike>): Action;
3
+ export declare function CreateWallet(mints: string[], privateKey?: Uint8Array): Action;
@@ -1,8 +1,8 @@
1
1
  import { EventFactory } from "applesauce-factory";
2
2
  import { modifyHiddenTags } from "applesauce-factory/operations/event";
3
3
  import { WALLET_BACKUP_KIND, WALLET_KIND } from "../helpers/wallet.js";
4
- import { setMintTags, setPrivateKeyTag } from "../operations/index.js";
5
- import { setWalletBackupContent } from "../operations/wallet.js";
4
+ import { setWalletBackupContent } from "../operations/event/wallet.js";
5
+ import { setMintTags, setPrivateKeyTag } from "../operations/tag/wallet.js";
6
6
  /** A blueprint to create a new 17375 wallet */
7
7
  export function WalletBlueprint(privateKey, mints) {
8
8
  return (ctx) => EventFactory.runProcess({ kind: WALLET_KIND }, ctx, modifyHiddenTags(setPrivateKeyTag(privateKey), setMintTags(mints)));
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * as Queries from "./queries/index.js";
2
- export * as Helpers from "./helpers/index.js";
3
- export * as Blueprints from "./blueprints/index.js";
4
1
  export * as Actions from "./actions/index.js";
2
+ export * as Blueprints from "./blueprints/index.js";
3
+ export * as Helpers from "./helpers/index.js";
4
+ export * as Queries from "./queries/index.js";
5
+ export * from "./operations/index.js";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
- export * as Queries from "./queries/index.js";
2
- export * as Helpers from "./helpers/index.js";
3
- export * as Blueprints from "./blueprints/index.js";
4
1
  export * as Actions from "./actions/index.js";
2
+ export * as Blueprints from "./blueprints/index.js";
3
+ export * as Helpers from "./helpers/index.js";
4
+ export * as Queries from "./queries/index.js";
5
+ export * from "./operations/index.js";
@@ -1,11 +1,11 @@
1
1
  import { describe, expect, it } from "vitest";
2
2
  import { setWalletBackupContent } from "../wallet.js";
3
- import { FakeUser } from "../../__tests__/fake-user.js";
4
3
  import { EventFactory } from "applesauce-factory";
5
- import { WalletBlueprint } from "../../blueprints/wallet.js";
6
4
  import { generateSecretKey } from "nostr-tools";
7
- import { WALLET_BACKUP_KIND } from "../../helpers/wallet.js";
8
5
  import { unixNow } from "applesauce-core/helpers";
6
+ import { WALLET_BACKUP_KIND } from "../../../helpers/wallet.js";
7
+ import { FakeUser } from "../../../__tests__/fake-user.js";
8
+ import { WalletBlueprint } from "../../../blueprints/wallet.js";
9
9
  const user = new FakeUser();
10
10
  const factory = new EventFactory({ signer: user });
11
11
  describe("setWalletBackupContent", () => {
@@ -1,4 +1,4 @@
1
- import { WALLET_KIND } from "../helpers/wallet.js";
1
+ import { WALLET_KIND } from "../../helpers/wallet.js";
2
2
  /** Sets the content of a kind 375 wallet backup event */
3
3
  export function setWalletBackupContent(wallet) {
4
4
  return async (draft, ctx) => {
@@ -1 +1,2 @@
1
- export * from "./tags/index.js";
1
+ export * as TagOperations from "./tag/index.js";
2
+ export * as EventOperations from "./event/wallet.js";
@@ -1 +1,2 @@
1
- export * from "./tags/index.js";
1
+ export * as TagOperations from "./tag/index.js";
2
+ export * as EventOperations from "./event/wallet.js";
@@ -0,0 +1 @@
1
+ export * from "./wallet.js";
@@ -0,0 +1 @@
1
+ export * from "./wallet.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-wallet",
3
- "version": "0.0.0-next-20250311162623",
3
+ "version": "0.0.0-next-20250311170821",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,20 +49,45 @@
49
49
  "import": "./dist/blueprints/*.js",
50
50
  "require": "./dist/blueprints/*.js",
51
51
  "types": "./dist/blueprints/*.d.ts"
52
+ },
53
+ "./operations": {
54
+ "import": "./dist/operations/index.js",
55
+ "require": "./dist/operations/index.js",
56
+ "types": "./dist/operations/index.d.ts"
57
+ },
58
+ "./operations/tag/*": {
59
+ "import": "./dist/operations/tag/*.js",
60
+ "require": "./dist/operations/tag/*.js",
61
+ "types": "./dist/operations/tag/*.d.ts"
62
+ },
63
+ "./operations/event/*": {
64
+ "import": "./dist/operations/event/*.js",
65
+ "require": "./dist/operations/event/*.js",
66
+ "types": "./dist/operations/event/*.d.ts"
67
+ },
68
+ "./actions": {
69
+ "import": "./dist/actions/index.js",
70
+ "require": "./dist/actions/index.js",
71
+ "types": "./dist/actions/index.d.ts"
72
+ },
73
+ "./actions/*": {
74
+ "import": "./dist/actions/*.js",
75
+ "require": "./dist/actions/*.js",
76
+ "types": "./dist/actions/*.d.ts"
52
77
  }
53
78
  },
54
79
  "dependencies": {
55
80
  "@noble/hashes": "^1.7.1",
56
- "applesauce-actions": "0.0.0-next-20250311162623",
57
- "applesauce-core": "0.0.0-next-20250311162623",
58
- "applesauce-factory": "0.0.0-next-20250311162623",
81
+ "applesauce-actions": "0.0.0-next-20250311170821",
82
+ "applesauce-core": "0.0.0-next-20250311170821",
83
+ "applesauce-factory": "0.0.0-next-20250311170821",
59
84
  "nostr-tools": "^2.10.4",
60
85
  "rxjs": "^7.8.1"
61
86
  },
62
87
  "devDependencies": {
63
88
  "@hirez_io/observer-spy": "^2.2.0",
64
89
  "@types/debug": "^4.1.12",
65
- "applesauce-signers": "0.0.0-next-20250311162623",
90
+ "applesauce-signers": "0.0.0-next-20250311170821",
66
91
  "typescript": "^5.7.3",
67
92
  "vitest": "^3.0.5"
68
93
  },
File without changes
File without changes
File without changes
File without changes