@unicitylabs/sphere-sdk 0.5.0 → 0.5.2
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.
- package/dist/connect/index.cjs +5 -1
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +5 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +813 -309
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +71 -2
- package/dist/core/index.d.ts +71 -2
- package/dist/core/index.js +813 -309
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +5 -1
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +5 -1
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +7 -2
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +7 -2
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/browser/ipfs.cjs +5 -1
- package/dist/impl/browser/ipfs.cjs.map +1 -1
- package/dist/impl/browser/ipfs.js +5 -1
- package/dist/impl/browser/ipfs.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +5 -1
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.js +5 -1
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +7 -2
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +6 -0
- package/dist/impl/nodejs/index.d.ts +6 -0
- package/dist/impl/nodejs/index.js +7 -2
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +815 -309
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +144 -3
- package/dist/index.d.ts +144 -3
- package/dist/index.js +814 -309
- package/dist/index.js.map +1 -1
- package/dist/l1/index.cjs +5 -1
- package/dist/l1/index.cjs.map +1 -1
- package/dist/l1/index.js +5 -1
- package/dist/l1/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -58,7 +58,11 @@ var STORAGE_KEYS_ADDRESS = {
|
|
|
58
58
|
/** Group chat: members for this address */
|
|
59
59
|
GROUP_CHAT_MEMBERS: "group_chat_members",
|
|
60
60
|
/** Group chat: processed event IDs for deduplication */
|
|
61
|
-
GROUP_CHAT_PROCESSED_EVENTS: "group_chat_processed_events"
|
|
61
|
+
GROUP_CHAT_PROCESSED_EVENTS: "group_chat_processed_events",
|
|
62
|
+
/** Processed V5 split group IDs for Nostr re-delivery dedup */
|
|
63
|
+
PROCESSED_SPLIT_GROUP_IDS: "processed_split_group_ids",
|
|
64
|
+
/** Processed V6 combined transfer IDs for Nostr re-delivery dedup */
|
|
65
|
+
PROCESSED_COMBINED_TRANSFER_IDS: "processed_combined_transfer_ids"
|
|
62
66
|
};
|
|
63
67
|
var STORAGE_KEYS = {
|
|
64
68
|
...STORAGE_KEYS_GLOBAL,
|
|
@@ -2116,12 +2120,13 @@ var NostrTransportProvider = class {
|
|
|
2116
2120
|
async sendTokenTransfer(recipientPubkey, payload) {
|
|
2117
2121
|
this.ensureReady();
|
|
2118
2122
|
const content = "token_transfer:" + JSON.stringify(payload);
|
|
2123
|
+
const uniqueD = `token-transfer-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
2119
2124
|
const event = await this.createEncryptedEvent(
|
|
2120
2125
|
EVENT_KINDS.TOKEN_TRANSFER,
|
|
2121
2126
|
content,
|
|
2122
2127
|
[
|
|
2123
2128
|
["p", recipientPubkey],
|
|
2124
|
-
["d",
|
|
2129
|
+
["d", uniqueD],
|
|
2125
2130
|
["type", "token_transfer"]
|
|
2126
2131
|
]
|
|
2127
2132
|
);
|