n3-sdk 0.1.1 → 0.1.3

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.
@@ -0,0 +1,12 @@
1
+ export { AssetId, Exchange, Info, N3Clients, N3Env, default as N3SDK, NoteStore, NoteStore as NoteStoreT, Receiver, Subscription, TopicName, Topics, toReceiverFromBlock, toViemFromBlock } from './index.js';
2
+ import 'viem';
3
+
4
+ type PublishPayload = Record<string, unknown>;
5
+ type Publisher = (payload: PublishPayload) => Promise<unknown>;
6
+ /** Allow host apps to inject a custom publisher (e.g., RPC, WS, custom fetch) */
7
+ declare function setPublisher(p: Publisher): void;
8
+ /** Allow host apps to point to a different HTTP endpoint from the browser */
9
+ declare function setIntentEndpoint(url: string): void;
10
+ declare function getIntentEndpoint(): any;
11
+
12
+ export { getIntentEndpoint, setIntentEndpoint, setPublisher };
@@ -0,0 +1,30 @@
1
+ import {
2
+ N3SDK,
3
+ NoteStore,
4
+ Receiver,
5
+ Topics,
6
+ exchange_exports,
7
+ getIntentEndpoint,
8
+ info_exports,
9
+ setIntentEndpoint,
10
+ setPublisher,
11
+ subscription_exports,
12
+ toReceiverFromBlock,
13
+ toViemFromBlock
14
+ } from "./chunk-5N6A23ZQ.js";
15
+ import "./chunk-PZ5AY32C.js";
16
+ export {
17
+ exchange_exports as Exchange,
18
+ info_exports as Info,
19
+ N3SDK,
20
+ NoteStore,
21
+ Receiver,
22
+ subscription_exports as Subscription,
23
+ Topics,
24
+ getIntentEndpoint,
25
+ setIntentEndpoint,
26
+ setPublisher,
27
+ toReceiverFromBlock,
28
+ toViemFromBlock
29
+ };
30
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}