@secondts/bark-react-native 0.2.0-beta.2 → 0.3.0-beta.1

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 (38) hide show
  1. package/README.md +2 -2
  2. package/cpp/generated/bark.cpp +8716 -6407
  3. package/cpp/generated/bark.hpp +912 -235
  4. package/lib/commonjs/WalletNotifications.js +82 -0
  5. package/lib/commonjs/WalletNotifications.js.map +1 -0
  6. package/lib/commonjs/generated/bark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/bark.js +347 -6
  8. package/lib/commonjs/generated/bark.js.map +1 -1
  9. package/lib/commonjs/index.js +13 -1
  10. package/lib/commonjs/index.js.map +1 -1
  11. package/lib/module/WalletNotifications.js +77 -0
  12. package/lib/module/WalletNotifications.js.map +1 -0
  13. package/lib/module/generated/bark-ffi.js.map +1 -1
  14. package/lib/module/generated/bark.js +346 -6
  15. package/lib/module/generated/bark.js.map +1 -1
  16. package/lib/module/index.js +3 -0
  17. package/lib/module/index.js.map +1 -1
  18. package/lib/typescript/commonjs/src/WalletNotifications.d.ts +41 -0
  19. package/lib/typescript/commonjs/src/WalletNotifications.d.ts.map +1 -0
  20. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts +62 -1
  21. package/lib/typescript/commonjs/src/generated/bark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/bark.d.ts +254 -4
  23. package/lib/typescript/commonjs/src/generated/bark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/WalletNotifications.d.ts +41 -0
  27. package/lib/typescript/module/src/WalletNotifications.d.ts.map +1 -0
  28. package/lib/typescript/module/src/generated/bark-ffi.d.ts +62 -1
  29. package/lib/typescript/module/src/generated/bark-ffi.d.ts.map +1 -1
  30. package/lib/typescript/module/src/generated/bark.d.ts +254 -4
  31. package/lib/typescript/module/src/generated/bark.d.ts.map +1 -1
  32. package/lib/typescript/module/src/index.d.ts +1 -0
  33. package/lib/typescript/module/src/index.d.ts.map +1 -1
  34. package/package.json +4 -4
  35. package/src/WalletNotifications.ts +86 -0
  36. package/src/generated/bark-ffi.ts +172 -1
  37. package/src/generated/bark.ts +584 -17
  38. package/src/index.tsx +3 -0
@@ -21,6 +21,18 @@ Object.keys(bark).forEach(function (key) {
21
21
  }
22
22
  });
23
23
  });
24
+ var _WalletNotifications = require("./WalletNotifications.js");
25
+ Object.keys(_WalletNotifications).forEach(function (key) {
26
+ if (key === "default" || key === "__esModule") return;
27
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
28
+ if (key in exports && exports[key] === _WalletNotifications[key]) return;
29
+ Object.defineProperty(exports, key, {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _WalletNotifications[key];
33
+ }
34
+ });
35
+ });
24
36
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
25
37
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
26
38
  // Generated by uniffi-bindgen-react-native
@@ -59,5 +71,5 @@ async function uniffiInitAsync() {
59
71
  // Export the crates as individually namespaced objects.
60
72
  var _default = exports.default = {
61
73
  bark
62
- };
74
+ }; // Hand-written helpers (appended by patch-bindings.sh).
63
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_NativeBarkReactNative","_interopRequireDefault","require","bark","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor","rustInstalled","installer","installRustCrate","initialized","initialize","uniffiInitAsync","_default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;AACA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAYA,IAAAC,IAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAAiC,SAAAJ,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAP,GAAA,CAAAC,CAAA,GAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAR,cAAA,CAAAC,IAAA,CAAAM,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAlB,MAAA,CAAAS,cAAA,KAAAT,MAAA,CAAAyB,wBAAA,CAAAb,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAR,GAAA,IAAAQ,CAAA,CAAAK,GAAA,IAAAN,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAAjB,uBAAAgB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA;AAbjC;;AAGA;AACA;AACA;AACA,IAAIc,aAAa,GAAG,KAAK;AACzB,IAAI,CAACA,aAAa,EAAE;EAClBC,8BAAS,CAACC,gBAAgB,CAAC,CAAC;EAC5BF,aAAa,GAAG,IAAI;AACtB;;AAEA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,IAAIG,WAAW,GAAG,KAAK;AACvB,IAAI,CAACA,WAAW,EAAE;EAChB/B,IAAI,CAACwB,OAAO,CAACQ,UAAU,CAAC,CAAC;EACzBD,WAAW,GAAG,IAAI;AACpB;;AAEA;AACA;AACA;AACO,eAAeE,eAAeA,CAAA,EAAG;EACtC;AAAA;;AAGF;AAAA,IAAAC,QAAA,GAAAxB,OAAA,CAAAc,OAAA,GACe;EACbxB;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_NativeBarkReactNative","_interopRequireDefault","require","bark","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_WalletNotifications","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor","rustInstalled","installer","installRustCrate","initialized","initialize","uniffiInitAsync","_default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Wraps the pull-based {@link NotificationHolderInterface} into a subscribe/unsubscribe API.
5
+ *
6
+ * The internal polling loop starts when the first listener subscribes and stops when the
7
+ * last listener unsubscribes. Re-subscribing after all listeners have been removed creates
8
+ * a fresh {@link NotificationHolderInterface} and restarts the loop.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const notifications = new WalletNotifications(wallet);
13
+ *
14
+ * const unsubscribe = notifications.subscribe((event) => {
15
+ * switch (event.tag) {
16
+ * case WalletNotification_Tags.MovementCreated:
17
+ * console.log('movement created', event.inner.movement);
18
+ * break;
19
+ * case WalletNotification_Tags.MovementUpdated:
20
+ * console.log('movement updated', event.inner.movement);
21
+ * break;
22
+ * case WalletNotification_Tags.ChannelLagging:
23
+ * console.log('channel lagging');
24
+ * break;
25
+ * }
26
+ * });
27
+ *
28
+ * // later…
29
+ * unsubscribe();
30
+ * ```
31
+ */
32
+ export class WalletNotifications {
33
+ holder = null;
34
+ listeners = new Set();
35
+ constructor(wallet) {
36
+ this.wallet = wallet;
37
+ }
38
+ subscribe(listener) {
39
+ this.listeners.add(listener);
40
+ if (this.listeners.size === 1) {
41
+ this.startLoop();
42
+ }
43
+ return () => {
44
+ this.listeners.delete(listener);
45
+ if (this.listeners.size === 0) {
46
+ this.holder?.cancelNextNotificationWait();
47
+ this.holder = null;
48
+ }
49
+ };
50
+ }
51
+ startLoop() {
52
+ const localHolder = this.wallet.notifications();
53
+ this.holder = localHolder;
54
+ (async () => {
55
+ try {
56
+ while (true) {
57
+ const event = await localHolder.nextNotification();
58
+ if (event == null) break;
59
+ for (const listener of this.listeners) {
60
+ try {
61
+ listener(event);
62
+ } catch (err) {
63
+ console.error('Wallet notification listener failed', err);
64
+ }
65
+ }
66
+ }
67
+ } catch (err) {
68
+ console.error('Wallet notification loop failed', err);
69
+ } finally {
70
+ if (this.holder === localHolder) {
71
+ this.holder = null;
72
+ }
73
+ }
74
+ })();
75
+ }
76
+ }
77
+ //# sourceMappingURL=WalletNotifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WalletNotifications","holder","listeners","Set","constructor","wallet","subscribe","listener","add","size","startLoop","delete","cancelNextNotificationWait","localHolder","notifications","event","nextNotification","err","console","error"],"sourceRoot":"../../src","sources":["WalletNotifications.ts"],"mappings":";;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,mBAAmB,CAAC;EACvBC,MAAM,GAAuC,IAAI;EACxCC,SAAS,GAAG,IAAIC,GAAG,CAAsC,CAAC;EAE3EC,WAAWA,CAAkBC,MAAuB,EAAE;IAAA,KAAzBA,MAAuB,GAAvBA,MAAuB;EAAG;EAEvDC,SAASA,CAACC,QAA6C,EAAe;IACpE,IAAI,CAACL,SAAS,CAACM,GAAG,CAACD,QAAQ,CAAC;IAE5B,IAAI,IAAI,CAACL,SAAS,CAACO,IAAI,KAAK,CAAC,EAAE;MAC7B,IAAI,CAACC,SAAS,CAAC,CAAC;IAClB;IAEA,OAAO,MAAM;MACX,IAAI,CAACR,SAAS,CAACS,MAAM,CAACJ,QAAQ,CAAC;MAC/B,IAAI,IAAI,CAACL,SAAS,CAACO,IAAI,KAAK,CAAC,EAAE;QAC7B,IAAI,CAACR,MAAM,EAAEW,0BAA0B,CAAC,CAAC;QACzC,IAAI,CAACX,MAAM,GAAG,IAAI;MACpB;IACF,CAAC;EACH;EAEQS,SAASA,CAAA,EAAS;IACxB,MAAMG,WAAW,GAAG,IAAI,CAACR,MAAM,CAACS,aAAa,CAAC,CAAC;IAC/C,IAAI,CAACb,MAAM,GAAGY,WAAW;IAEzB,CAAC,YAAY;MACX,IAAI;QACF,OAAO,IAAI,EAAE;UACX,MAAME,KAAK,GAAG,MAAMF,WAAW,CAACG,gBAAgB,CAAC,CAAC;UAClD,IAAID,KAAK,IAAI,IAAI,EAAE;UACnB,KAAK,MAAMR,QAAQ,IAAI,IAAI,CAACL,SAAS,EAAE;YACrC,IAAI;cACFK,QAAQ,CAACQ,KAAK,CAAC;YACjB,CAAC,CAAC,OAAOE,GAAG,EAAE;cACZC,OAAO,CAACC,KAAK,CAAC,qCAAqC,EAAEF,GAAG,CAAC;YAC3D;UACF;QACF;MACF,CAAC,CAAC,OAAOA,GAAG,EAAE;QACZC,OAAO,CAACC,KAAK,CAAC,iCAAiC,EAAEF,GAAG,CAAC;MACvD,CAAC,SAAS;QACR,IAAI,IAAI,CAAChB,MAAM,KAAKY,WAAW,EAAE;UAC/B,IAAI,CAACZ,MAAM,GAAG,IAAI;QACpB;MACF;IACF,CAAC,EAAE,CAAC;EACN;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AAilBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AA8JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["getter","globalThis","NativeBark","isRustFutureContinuationCallbackTypeCompatible","isUniffiForeignFutureTypeCompatible"],"sourceRoot":"../../../src","sources":["generated/bark-ffi.ts"],"mappings":";;AAAA;AACA;;AAEA;AACA;AACA;;AA4vBA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAmC,GAAGA,CAAA,KACzCC,UAAU,CAASC,UAAU;AAChC,eAAeF,MAAM;;AAErB;;AA8JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,8CAGL,GAAG,IAAI;AACR,MAAMC,mCAGL,GAAG,IAAI","ignoreList":[]}
@@ -7,7 +7,7 @@
7
7
  /* eslint-disable */
8
8
  // @ts-nocheck
9
9
  import nativeModule from "./bark-ffi.js";
10
- import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterCallback, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
10
+ import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterCallback, FfiConverterInt32, FfiConverterInt64, FfiConverterObject, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, UniffiAbstractObject, UniffiEnum, UniffiError, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCallWithError, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
11
11
 
12
12
  // Get converters from the other files, if any.
13
13
  const uniffiCaller = new UniffiRustCaller(() => ({
@@ -2088,6 +2088,290 @@ const FfiConverterTypeNetwork = (() => {
2088
2088
  return new FFIConverter();
2089
2089
  })();
2090
2090
 
2091
+ // Enum: WalletNotification
2092
+ export let WalletNotification_Tags = /*#__PURE__*/function (WalletNotification_Tags) {
2093
+ WalletNotification_Tags["MovementCreated"] = "MovementCreated";
2094
+ WalletNotification_Tags["MovementUpdated"] = "MovementUpdated";
2095
+ WalletNotification_Tags["ChannelLagging"] = "ChannelLagging";
2096
+ return WalletNotification_Tags;
2097
+ }({});
2098
+ /**
2099
+ * A notification event from the wallet
2100
+ */
2101
+ export const WalletNotification = (() => {
2102
+ /**
2103
+ * A new movement was created
2104
+ */
2105
+ class MovementCreated_ extends UniffiEnum {
2106
+ /**
2107
+ * @private
2108
+ * This field is private and should not be used, use `tag` instead.
2109
+ */
2110
+ [uniffiTypeNameSymbol] = "WalletNotification";
2111
+ tag = WalletNotification_Tags.MovementCreated;
2112
+ constructor(inner) {
2113
+ super("WalletNotification", "MovementCreated");
2114
+ this.inner = Object.freeze(inner);
2115
+ }
2116
+ static new(inner) {
2117
+ return new MovementCreated_(inner);
2118
+ }
2119
+ static instanceOf(obj) {
2120
+ return obj.tag === WalletNotification_Tags.MovementCreated;
2121
+ }
2122
+ }
2123
+ /**
2124
+ * An existing movement was updated
2125
+ */
2126
+ class MovementUpdated_ extends UniffiEnum {
2127
+ /**
2128
+ * @private
2129
+ * This field is private and should not be used, use `tag` instead.
2130
+ */
2131
+ [uniffiTypeNameSymbol] = "WalletNotification";
2132
+ tag = WalletNotification_Tags.MovementUpdated;
2133
+ constructor(inner) {
2134
+ super("WalletNotification", "MovementUpdated");
2135
+ this.inner = Object.freeze(inner);
2136
+ }
2137
+ static new(inner) {
2138
+ return new MovementUpdated_(inner);
2139
+ }
2140
+ static instanceOf(obj) {
2141
+ return obj.tag === WalletNotification_Tags.MovementUpdated;
2142
+ }
2143
+ }
2144
+ /**
2145
+ * The notification channel is lagging (some notifications were dropped)
2146
+ */
2147
+ class ChannelLagging_ extends UniffiEnum {
2148
+ /**
2149
+ * @private
2150
+ * This field is private and should not be used, use `tag` instead.
2151
+ */
2152
+ [uniffiTypeNameSymbol] = "WalletNotification";
2153
+ tag = WalletNotification_Tags.ChannelLagging;
2154
+ constructor() {
2155
+ super("WalletNotification", "ChannelLagging");
2156
+ }
2157
+ static new() {
2158
+ return new ChannelLagging_();
2159
+ }
2160
+ static instanceOf(obj) {
2161
+ return obj.tag === WalletNotification_Tags.ChannelLagging;
2162
+ }
2163
+ }
2164
+ function instanceOf(obj) {
2165
+ return obj[uniffiTypeNameSymbol] === "WalletNotification";
2166
+ }
2167
+ return Object.freeze({
2168
+ instanceOf,
2169
+ MovementCreated: MovementCreated_,
2170
+ MovementUpdated: MovementUpdated_,
2171
+ ChannelLagging: ChannelLagging_
2172
+ });
2173
+ })();
2174
+
2175
+ /**
2176
+ * A notification event from the wallet
2177
+ */
2178
+
2179
+ // FfiConverter for enum WalletNotification
2180
+ const FfiConverterTypeWalletNotification = (() => {
2181
+ const ordinalConverter = FfiConverterInt32;
2182
+ class FFIConverter extends AbstractFfiConverterByteArray {
2183
+ read(from) {
2184
+ switch (ordinalConverter.read(from)) {
2185
+ case 1:
2186
+ return new WalletNotification.MovementCreated({
2187
+ movement: FfiConverterTypeMovement.read(from)
2188
+ });
2189
+ case 2:
2190
+ return new WalletNotification.MovementUpdated({
2191
+ movement: FfiConverterTypeMovement.read(from)
2192
+ });
2193
+ case 3:
2194
+ return new WalletNotification.ChannelLagging();
2195
+ default:
2196
+ throw new UniffiInternalError.UnexpectedEnumCase();
2197
+ }
2198
+ }
2199
+ write(value, into) {
2200
+ switch (value.tag) {
2201
+ case WalletNotification_Tags.MovementCreated:
2202
+ {
2203
+ ordinalConverter.write(1, into);
2204
+ const inner = value.inner;
2205
+ FfiConverterTypeMovement.write(inner.movement, into);
2206
+ return;
2207
+ }
2208
+ case WalletNotification_Tags.MovementUpdated:
2209
+ {
2210
+ ordinalConverter.write(2, into);
2211
+ const inner = value.inner;
2212
+ FfiConverterTypeMovement.write(inner.movement, into);
2213
+ return;
2214
+ }
2215
+ case WalletNotification_Tags.ChannelLagging:
2216
+ {
2217
+ ordinalConverter.write(3, into);
2218
+ return;
2219
+ }
2220
+ default:
2221
+ // Throwing from here means that WalletNotification_Tags hasn't matched an ordinal.
2222
+ throw new UniffiInternalError.UnexpectedEnumCase();
2223
+ }
2224
+ }
2225
+ allocationSize(value) {
2226
+ switch (value.tag) {
2227
+ case WalletNotification_Tags.MovementCreated:
2228
+ {
2229
+ const inner = value.inner;
2230
+ let size = ordinalConverter.allocationSize(1);
2231
+ size += FfiConverterTypeMovement.allocationSize(inner.movement);
2232
+ return size;
2233
+ }
2234
+ case WalletNotification_Tags.MovementUpdated:
2235
+ {
2236
+ const inner = value.inner;
2237
+ let size = ordinalConverter.allocationSize(2);
2238
+ size += FfiConverterTypeMovement.allocationSize(inner.movement);
2239
+ return size;
2240
+ }
2241
+ case WalletNotification_Tags.ChannelLagging:
2242
+ {
2243
+ return ordinalConverter.allocationSize(3);
2244
+ }
2245
+ default:
2246
+ throw new UniffiInternalError.UnexpectedEnumCase();
2247
+ }
2248
+ }
2249
+ }
2250
+ return new FFIConverter();
2251
+ })();
2252
+
2253
+ /**
2254
+ * Pull-based handle for consuming wallet notifications.
2255
+ *
2256
+ * Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
2257
+ * to receive events. Call `cancel_next_notification_wait()` to unblock a
2258
+ * pending wait without destroying the underlying stream.
2259
+ *
2260
+ * Each call to `Wallet.notifications()` creates an independent stream backed
2261
+ * by a new broadcast receiver. Only one consumer loop per holder is assumed.
2262
+ */
2263
+
2264
+ /**
2265
+ * Pull-based handle for consuming wallet notifications.
2266
+ *
2267
+ * Obtain via `Wallet.notifications()`. Call `next_notification()` in a loop
2268
+ * to receive events. Call `cancel_next_notification_wait()` to unblock a
2269
+ * pending wait without destroying the underlying stream.
2270
+ *
2271
+ * Each call to `Wallet.notifications()` creates an independent stream backed
2272
+ * by a new broadcast receiver. Only one consumer loop per holder is assumed.
2273
+ */
2274
+ export class NotificationHolder extends UniffiAbstractObject {
2275
+ [uniffiTypeNameSymbol] = "NotificationHolder";
2276
+ // No primary constructor declared for this class.
2277
+ constructor(pointer) {
2278
+ super();
2279
+ this[pointerLiteralSymbol] = pointer;
2280
+ this[destructorGuardSymbol] = uniffiTypeNotificationHolderObjectFactory.bless(pointer);
2281
+ }
2282
+
2283
+ /**
2284
+ * Cancel the currently pending `next_notification()` wait.
2285
+ *
2286
+ * Causes a blocked `next_notification()` to return null.
2287
+ * Has no effect when no wait is active.
2288
+ * Does NOT destroy the underlying stream; subsequent calls to
2289
+ * `next_notification()` will still work.
2290
+ */
2291
+ cancelNextNotificationWait() {
2292
+ uniffiCaller.rustCall(/*caller:*/callStatus => {
2293
+ nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait(uniffiTypeNotificationHolderObjectFactory.clonePointer(this), callStatus);
2294
+ }, /*liftString:*/FfiConverterString.lift);
2295
+ }
2296
+
2297
+ /**
2298
+ * Wait for the next notification.
2299
+ *
2300
+ * Returns null if the wait was cancelled via `cancel_next_notification_wait()`
2301
+ * or if the wallet's notification source was shut down permanently.
2302
+ *
2303
+ * After a cancellation this method can be called again normally — the
2304
+ * underlying stream is preserved and a fresh cancel channel is set up on
2305
+ * every entry.
2306
+ *
2307
+ * Throws `BarkError.Internal` if called concurrently on the same holder.
2308
+ */
2309
+ async nextNotification(asyncOpts_) /*throws*/{
2310
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
2311
+ try {
2312
+ return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
2313
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification(uniffiTypeNotificationHolderObjectFactory.clonePointer(this));
2314
+ }, /*pollFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().ubrn_ffi_bark_ffi_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterOptionalTypeWalletNotification.lift.bind(FfiConverterOptionalTypeWalletNotification), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError));
2315
+ } catch (__error) {
2316
+ if (uniffiIsDebug && __error instanceof Error) {
2317
+ __error.stack = __stack;
2318
+ }
2319
+ throw __error;
2320
+ }
2321
+ }
2322
+
2323
+ /**
2324
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
2325
+ */
2326
+ uniffiDestroy() {
2327
+ const ptr = this[destructorGuardSymbol];
2328
+ if (ptr !== undefined) {
2329
+ const pointer = uniffiTypeNotificationHolderObjectFactory.pointer(this);
2330
+ uniffiTypeNotificationHolderObjectFactory.freePointer(pointer);
2331
+ uniffiTypeNotificationHolderObjectFactory.unbless(ptr);
2332
+ delete this[destructorGuardSymbol];
2333
+ }
2334
+ }
2335
+ static instanceOf(obj) {
2336
+ return uniffiTypeNotificationHolderObjectFactory.isConcreteType(obj);
2337
+ }
2338
+ }
2339
+ const uniffiTypeNotificationHolderObjectFactory = (() => {
2340
+ return {
2341
+ create(pointer) {
2342
+ const instance = Object.create(NotificationHolder.prototype);
2343
+ instance[pointerLiteralSymbol] = pointer;
2344
+ instance[destructorGuardSymbol] = this.bless(pointer);
2345
+ instance[uniffiTypeNameSymbol] = "NotificationHolder";
2346
+ return instance;
2347
+ },
2348
+ bless(p) {
2349
+ return uniffiCaller.rustCall(/*caller:*/status => nativeModule().ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer(p, status), /*liftString:*/FfiConverterString.lift);
2350
+ },
2351
+ unbless(ptr) {
2352
+ ptr.markDestroyed();
2353
+ },
2354
+ pointer(obj) {
2355
+ if (obj[destructorGuardSymbol] === undefined) {
2356
+ throw new UniffiInternalError.UnexpectedNullPointer();
2357
+ }
2358
+ return obj[pointerLiteralSymbol];
2359
+ },
2360
+ clonePointer(obj) {
2361
+ const pointer = this.pointer(obj);
2362
+ return uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_clone_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
2363
+ },
2364
+ freePointer(pointer) {
2365
+ uniffiCaller.rustCall(/*caller:*/callStatus => nativeModule().ubrn_uniffi_bark_ffi_fn_free_notificationholder(pointer, callStatus), /*liftString:*/FfiConverterString.lift);
2366
+ },
2367
+ isConcreteType(obj) {
2368
+ return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "NotificationHolder";
2369
+ }
2370
+ };
2371
+ })();
2372
+ // FfiConverter for NotificationHolderInterface
2373
+ const FfiConverterTypeNotificationHolder = new FfiConverterObject(uniffiTypeNotificationHolderObjectFactory);
2374
+
2091
2375
  /**
2092
2376
  * Onchain Bitcoin wallet for boarding and exits
2093
2377
  *
@@ -2619,6 +2903,20 @@ export class Wallet extends UniffiAbstractObject {
2619
2903
  }, /*liftString:*/FfiConverterString.lift));
2620
2904
  }
2621
2905
 
2906
+ /**
2907
+ * Get wallet movements filtered by payment method
2908
+ *
2909
+ * # Arguments
2910
+ *
2911
+ * * `payment_method_type` - Type (e.g. "ark", "bitcoin", "invoice", "offer", "lightning_address", "custom")
2912
+ * * `payment_method_value` - Value (e.g. an address or invoice string)
2913
+ */
2914
+ historyByPaymentMethod(paymentMethodType, paymentMethodValue) /*throws*/{
2915
+ return FfiConverterArrayTypeMovement.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2916
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(paymentMethodType), FfiConverterString.lower(paymentMethodValue), callStatus);
2917
+ }, /*liftString:*/FfiConverterString.lift));
2918
+ }
2919
+
2622
2920
  /**
2623
2921
  * Import a serialized VTXO into the wallet
2624
2922
  *
@@ -2778,6 +3076,19 @@ export class Wallet extends UniffiAbstractObject {
2778
3076
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
2779
3077
  }, /*liftString:*/FfiConverterString.lift));
2780
3078
  }
3079
+
3080
+ /**
3081
+ * Get a pull-based notification holder for this wallet.
3082
+ *
3083
+ * Call `next_notification()` in a loop to receive events.
3084
+ * Call `cancel_next_notification_wait()` to unblock a pending wait without
3085
+ * destroying the stream.
3086
+ */
3087
+ notifications() {
3088
+ return FfiConverterTypeNotificationHolder.lift(uniffiCaller.rustCall(/*caller:*/callStatus => {
3089
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_notifications(uniffiTypeWalletObjectFactory.clonePointer(this), callStatus);
3090
+ }, /*liftString:*/FfiConverterString.lift));
3091
+ }
2781
3092
  offboardAll(bitcoinAddress) /*throws*/{
2782
3093
  return FfiConverterTypeOffboardResult.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
2783
3094
  return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterString.lower(bitcoinAddress), callStatus);
@@ -2818,7 +3129,7 @@ export class Wallet extends UniffiAbstractObject {
2818
3129
  }
2819
3130
 
2820
3131
  /**
2821
- * Peek at an address at a specific index
3132
+ * DEPRECATED: use `peek_address` instead
2822
3133
  */
2823
3134
  peakAddress(index) /*throws*/{
2824
3135
  return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
@@ -2826,6 +3137,15 @@ export class Wallet extends UniffiAbstractObject {
2826
3137
  }, /*liftString:*/FfiConverterString.lift));
2827
3138
  }
2828
3139
 
3140
+ /**
3141
+ * Peek at an address at a specific index
3142
+ */
3143
+ peekAddress(index) /*throws*/{
3144
+ return FfiConverterString.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3145
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterUInt32.lower(index), callStatus);
3146
+ }, /*liftString:*/FfiConverterString.lift));
3147
+ }
3148
+
2829
3149
  /**
2830
3150
  * Get all VTXOs that are part of pending boards
2831
3151
  */
@@ -3052,9 +3372,9 @@ export class Wallet extends UniffiAbstractObject {
3052
3372
  }, /*liftString:*/FfiConverterString.lift);
3053
3373
  }
3054
3374
  tryClaimAllLightningReceives(wait) /*throws*/{
3055
- uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3056
- nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterBool.lower(wait), callStatus);
3057
- }, /*liftString:*/FfiConverterString.lift);
3375
+ return FfiConverterArrayTypeLightningReceive.lift(uniffiCaller.rustCallWithError(/*liftError:*/FfiConverterTypeBarkError.lift.bind(FfiConverterTypeBarkError), /*caller:*/callStatus => {
3376
+ return nativeModule().ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives(uniffiTypeWalletObjectFactory.clonePointer(this), FfiConverterBool.lower(wait), callStatus);
3377
+ }, /*liftString:*/FfiConverterString.lift));
3058
3378
  }
3059
3379
 
3060
3380
  /**
@@ -3198,6 +3518,9 @@ const FfiConverterArrayTypeVtxo = new FfiConverterArray(FfiConverterTypeVtxo);
3198
3518
  // FfiConverter for Array<string>
3199
3519
  const FfiConverterArrayString = new FfiConverterArray(FfiConverterString);
3200
3520
 
3521
+ // FfiConverter for WalletNotification | undefined
3522
+ const FfiConverterOptionalTypeWalletNotification = new FfiConverterOptional(FfiConverterTypeWalletNotification);
3523
+
3201
3524
  // FfiConverter for Array<string> | undefined
3202
3525
  const FfiConverterOptionalArrayString = new FfiConverterOptional(FfiConverterArrayString);
3203
3526
 
@@ -3231,6 +3554,12 @@ function uniffiEnsureInitialized() {
3231
3554
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic() !== 2707) {
3232
3555
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_func_validate_mnemonic");
3233
3556
  }
3557
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait() !== 48074) {
3558
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait");
3559
+ }
3560
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification() !== 10262) {
3561
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_notificationholder_next_notification");
3562
+ }
3234
3563
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance() !== 22016) {
3235
3564
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_onchainwallet_balance");
3236
3565
  }
@@ -3333,6 +3662,9 @@ function uniffiEnsureInitialized() {
3333
3662
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history() !== 21880) {
3334
3663
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history");
3335
3664
  }
3665
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method() !== 52617) {
3666
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method");
3667
+ }
3336
3668
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo() !== 31318) {
3337
3669
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_import_vtxo");
3338
3670
  }
@@ -3378,6 +3710,9 @@ function uniffiEnsureInitialized() {
3378
3710
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time() !== 55091) {
3379
3711
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_next_round_start_time");
3380
3712
  }
3713
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications() !== 32641) {
3714
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_notifications");
3715
+ }
3381
3716
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all() !== 61123) {
3382
3717
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_offboard_all");
3383
3718
  }
@@ -3396,6 +3731,9 @@ function uniffiEnsureInitialized() {
3396
3731
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peak_address() !== 23469) {
3397
3732
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peak_address");
3398
3733
  }
3734
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address() !== 35297) {
3735
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_peek_address");
3736
+ }
3399
3737
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos() !== 58145) {
3400
3738
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos");
3401
3739
  }
@@ -3465,7 +3803,7 @@ function uniffiEnsureInitialized() {
3465
3803
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards() !== 8863) {
3466
3804
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards");
3467
3805
  }
3468
- if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 53132) {
3806
+ if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives() !== 8587) {
3469
3807
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives");
3470
3808
  }
3471
3809
  if (nativeModule().ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive() !== 60644) {
@@ -3544,6 +3882,7 @@ export default Object.freeze({
3544
3882
  FfiConverterTypeLightningSend,
3545
3883
  FfiConverterTypeMovement,
3546
3884
  FfiConverterTypeNetwork,
3885
+ FfiConverterTypeNotificationHolder,
3547
3886
  FfiConverterTypeOffboardResult,
3548
3887
  FfiConverterTypeOnchainBalance,
3549
3888
  FfiConverterTypeOnchainWallet,
@@ -3552,6 +3891,7 @@ export default Object.freeze({
3552
3891
  FfiConverterTypeRoundState,
3553
3892
  FfiConverterTypeVtxo,
3554
3893
  FfiConverterTypeWallet,
3894
+ FfiConverterTypeWalletNotification,
3555
3895
  FfiConverterTypeWalletProperties
3556
3896
  }
3557
3897
  });