applesauce-wallet 0.0.0-next-20250716144720 → 0.0.0-next-20250718170433
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,9 +1,9 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { EventFactory } from "applesauce-factory";
|
|
3
|
-
import { EncryptedContentSymbol, unixNow } from "applesauce-core/helpers";
|
|
4
3
|
import { FakeUser } from "../../__tests__/fake-user.js";
|
|
5
4
|
import { WalletTokenBlueprint } from "../../blueprints/tokens.js";
|
|
6
5
|
import { decodeTokenFromEmojiString, dumbTokenSelection, encodeTokenToEmoji, unlockTokenContent } from "../tokens.js";
|
|
6
|
+
import { HiddenContentSymbol, unixNow } from "applesauce-core/helpers";
|
|
7
7
|
const user = new FakeUser();
|
|
8
8
|
const factory = new EventFactory({ signer: user });
|
|
9
9
|
describe("dumbTokenSelection", () => {
|
|
@@ -58,7 +58,7 @@ describe("dumbTokenSelection", () => {
|
|
|
58
58
|
bDraft.created_at -= 60 * 60 * 7;
|
|
59
59
|
const b = await user.signEvent(bDraft);
|
|
60
60
|
// manually remove the hidden content to lock it again
|
|
61
|
-
Reflect.deleteProperty(b,
|
|
61
|
+
Reflect.deleteProperty(b, HiddenContentSymbol);
|
|
62
62
|
expect(dumbTokenSelection([a, b], 20).events).toEqual([a]);
|
|
63
63
|
});
|
|
64
64
|
it("should ignore duplicate proofs", async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-wallet",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250718170433",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"@cashu/cashu-ts": "2.0.0-rc1",
|
|
81
81
|
"@gandlaf21/bc-ur": "^1.1.12",
|
|
82
82
|
"@noble/hashes": "^1.7.1",
|
|
83
|
-
"applesauce-actions": "0.0.0-next-
|
|
83
|
+
"applesauce-actions": "0.0.0-next-20250718170433",
|
|
84
84
|
"applesauce-core": "^2.0.0",
|
|
85
|
-
"applesauce-factory": "0.0.0-next-
|
|
85
|
+
"applesauce-factory": "0.0.0-next-20250718170433",
|
|
86
86
|
"nostr-tools": "^2.13",
|
|
87
87
|
"rxjs": "^7.8.1"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@hirez_io/observer-spy": "^2.2.0",
|
|
91
91
|
"@types/debug": "^4.1.12",
|
|
92
|
-
"applesauce-signers": "
|
|
92
|
+
"applesauce-signers": "0.0.0-next-20250718170433",
|
|
93
93
|
"typescript": "^5.8.3",
|
|
94
94
|
"vitest": "^3.2.3"
|
|
95
95
|
},
|