@fedimint/react-native-bindings 0.0.0-om-rn1-d72fdc108a01df2d7d64c2b85c8b1f9fd43927cb
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/LICENSE +21 -0
- package/README.md +7 -0
- package/ReactNative.podspec +45 -0
- package/ReactNativeBindings.podspec +44 -0
- package/android/CMakeLists.txt +76 -0
- package/android/build.gradle +144 -0
- package/android/cpp-adapter.cpp +44 -0
- package/android/generated/java/com/fedimint/reactnative/NativeReactNativeBindingsSpec.java +41 -0
- package/android/generated/jni/CMakeLists.txt +28 -0
- package/android/generated/jni/ReactNativeBindingsSpec-generated.cpp +38 -0
- package/android/generated/jni/ReactNativeBindingsSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/EventEmitters.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/EventEmitters.h +17 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/Props.cpp +19 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/Props.h +18 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/ReactNativeBindingsSpecJSI.h +45 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/ShadowNodes.h +23 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ReactNativeBindingsSpec/States.h +20 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/fedimint/reactnative/ReactNativeBindingsModule.kt +43 -0
- package/android/src/main/java/com/fedimint/reactnative/ReactNativeBindingsPackage.kt +34 -0
- package/app.plugin.js +1 -0
- package/cpp/fedimint-react-native-bindings.cpp +16 -0
- package/cpp/fedimint-react-native-bindings.h +15 -0
- package/cpp/generated/fedimint_client_uniffi.cpp +2281 -0
- package/cpp/generated/fedimint_client_uniffi.hpp +95 -0
- package/ios/ReactNativeBindings.h +16 -0
- package/ios/ReactNativeBindings.mm +66 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/EventEmitters.cpp +16 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/EventEmitters.h +17 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/Props.cpp +19 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/Props.h +18 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/RCTComponentViewHelpers.h +18 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ReactNativeBindingsSpec-generated.mm +46 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ReactNativeBindingsSpec.h +63 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/ShadowNodes.h +23 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/States.cpp +16 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpec/States.h +20 -0
- package/ios/generated/ReactCodegen/ReactNativeBindingsSpecJSI.h +45 -0
- package/lib/commonjs/NativeReactNativeBindings.js +10 -0
- package/lib/commonjs/NativeReactNativeBindings.js.map +1 -0
- package/lib/commonjs/generated/fedimint_client_uniffi-ffi.js +44 -0
- package/lib/commonjs/generated/fedimint_client_uniffi-ffi.js.map +1 -0
- package/lib/commonjs/generated/fedimint_client_uniffi.js +426 -0
- package/lib/commonjs/generated/fedimint_client_uniffi.js.map +1 -0
- package/lib/commonjs/index.js +63 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/NativeReactNativeBindings.js +7 -0
- package/lib/module/NativeReactNativeBindings.js.map +1 -0
- package/lib/module/generated/fedimint_client_uniffi-ffi.js +43 -0
- package/lib/module/generated/fedimint_client_uniffi-ffi.js.map +1 -0
- package/lib/module/generated/fedimint_client_uniffi.js +420 -0
- package/lib/module/generated/fedimint_client_uniffi.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/plugin/src/index.d.ts +11 -0
- package/lib/typescript/commonjs/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/utils.d.ts +9 -0
- package/lib/typescript/commonjs/plugin/src/utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts +6 -0
- package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/withBinaryArtifacts.d.ts +7 -0
- package/lib/typescript/commonjs/plugin/src/withBinaryArtifacts.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/withIOS.d.ts +7 -0
- package/lib/typescript/commonjs/plugin/src/withIOS.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeReactNativeBindings.d.ts +8 -0
- package/lib/typescript/commonjs/src/NativeReactNativeBindings.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/fedimint_client_uniffi-ffi.d.ts +95 -0
- package/lib/typescript/commonjs/src/generated/fedimint_client_uniffi-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/fedimint_client_uniffi.d.ts +501 -0
- package/lib/typescript/commonjs/src/generated/fedimint_client_uniffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/plugin/src/index.d.ts +11 -0
- package/lib/typescript/module/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/utils.d.ts +9 -0
- package/lib/typescript/module/plugin/src/utils.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/withAndroid.d.ts +6 -0
- package/lib/typescript/module/plugin/src/withAndroid.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/withBinaryArtifacts.d.ts +7 -0
- package/lib/typescript/module/plugin/src/withBinaryArtifacts.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/withIOS.d.ts +7 -0
- package/lib/typescript/module/plugin/src/withIOS.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeReactNativeBindings.d.ts +8 -0
- package/lib/typescript/module/src/NativeReactNativeBindings.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/fedimint_client_uniffi-ffi.d.ts +95 -0
- package/lib/typescript/module/src/generated/fedimint_client_uniffi-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/fedimint_client_uniffi.d.ts +501 -0
- package/lib/typescript/module/src/generated/fedimint_client_uniffi.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +8 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +146 -0
- package/patches/rn083_callinvoker.patch +50 -0
- package/plugin/tsconfig.json +18 -0
- package/react-native.config.js +15 -0
- package/scripts/download-binaries.js +111 -0
- package/src/NativeReactNativeBindings.ts +10 -0
- package/src/generated/fedimint_client_uniffi-ffi.ts +221 -0
- package/src/generated/fedimint_client_uniffi.ts +651 -0
- package/src/index.tsx +41 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { type UniffiRustCallStatus, type UniffiRustArcPtr, type UniffiResult } from 'uniffi-bindgen-react-native';
|
|
2
|
+
interface NativeModuleInterface {
|
|
3
|
+
ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(string: string, uniffi_out_err: UniffiRustCallStatus): number;
|
|
4
|
+
ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(string: string, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
5
|
+
ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
|
|
6
|
+
ubrn_uniffi_fedimint_client_uniffi_fn_clone_rpchandler(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
7
|
+
ubrn_uniffi_fedimint_client_uniffi_fn_free_rpchandler(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
8
|
+
ubrn_uniffi_fedimint_client_uniffi_fn_constructor_rpchandler_new(dbPath: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
9
|
+
ubrn_uniffi_fedimint_client_uniffi_fn_method_rpchandler_rpc(ptr: bigint, requestJson: Uint8Array, callback: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
10
|
+
ubrn_uniffi_fedimint_client_uniffi_fn_init_callback_vtable_rpccallback(vtable: UniffiVTableCallbackInterfaceRpcCallback): void;
|
|
11
|
+
ubrn_uniffi_fedimint_client_uniffi_checksum_method_rpchandler_rpc(): number;
|
|
12
|
+
ubrn_uniffi_fedimint_client_uniffi_checksum_constructor_rpchandler_new(): number;
|
|
13
|
+
ubrn_uniffi_fedimint_client_uniffi_checksum_method_rpccallback_on_response(): number;
|
|
14
|
+
ubrn_ffi_fedimint_client_uniffi_uniffi_contract_version(): number;
|
|
15
|
+
ubrn_uniffi_internal_fn_method_rpchandler_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiRustArcPtr;
|
|
16
|
+
}
|
|
17
|
+
declare const getter: () => NativeModuleInterface;
|
|
18
|
+
export default getter;
|
|
19
|
+
export type UniffiRustFutureContinuationCallback = (data: bigint, pollResult: number) => void;
|
|
20
|
+
type UniffiForeignFutureFree = (handle: bigint) => void;
|
|
21
|
+
type UniffiCallbackInterfaceFree = (handle: bigint) => void;
|
|
22
|
+
export type UniffiForeignFuture = {
|
|
23
|
+
handle: bigint;
|
|
24
|
+
free: UniffiForeignFutureFree;
|
|
25
|
+
};
|
|
26
|
+
export type UniffiForeignFutureStructU8 = {
|
|
27
|
+
returnValue: number;
|
|
28
|
+
callStatus: UniffiRustCallStatus;
|
|
29
|
+
};
|
|
30
|
+
export type UniffiForeignFutureCompleteU8 = (callbackData: bigint, result: UniffiForeignFutureStructU8) => void;
|
|
31
|
+
export type UniffiForeignFutureStructI8 = {
|
|
32
|
+
returnValue: number;
|
|
33
|
+
callStatus: UniffiRustCallStatus;
|
|
34
|
+
};
|
|
35
|
+
export type UniffiForeignFutureCompleteI8 = (callbackData: bigint, result: UniffiForeignFutureStructI8) => void;
|
|
36
|
+
export type UniffiForeignFutureStructU16 = {
|
|
37
|
+
returnValue: number;
|
|
38
|
+
callStatus: UniffiRustCallStatus;
|
|
39
|
+
};
|
|
40
|
+
export type UniffiForeignFutureCompleteU16 = (callbackData: bigint, result: UniffiForeignFutureStructU16) => void;
|
|
41
|
+
export type UniffiForeignFutureStructI16 = {
|
|
42
|
+
returnValue: number;
|
|
43
|
+
callStatus: UniffiRustCallStatus;
|
|
44
|
+
};
|
|
45
|
+
export type UniffiForeignFutureCompleteI16 = (callbackData: bigint, result: UniffiForeignFutureStructI16) => void;
|
|
46
|
+
export type UniffiForeignFutureStructU32 = {
|
|
47
|
+
returnValue: number;
|
|
48
|
+
callStatus: UniffiRustCallStatus;
|
|
49
|
+
};
|
|
50
|
+
export type UniffiForeignFutureCompleteU32 = (callbackData: bigint, result: UniffiForeignFutureStructU32) => void;
|
|
51
|
+
export type UniffiForeignFutureStructI32 = {
|
|
52
|
+
returnValue: number;
|
|
53
|
+
callStatus: UniffiRustCallStatus;
|
|
54
|
+
};
|
|
55
|
+
export type UniffiForeignFutureCompleteI32 = (callbackData: bigint, result: UniffiForeignFutureStructI32) => void;
|
|
56
|
+
export type UniffiForeignFutureStructU64 = {
|
|
57
|
+
returnValue: bigint;
|
|
58
|
+
callStatus: UniffiRustCallStatus;
|
|
59
|
+
};
|
|
60
|
+
export type UniffiForeignFutureCompleteU64 = (callbackData: bigint, result: UniffiForeignFutureStructU64) => void;
|
|
61
|
+
export type UniffiForeignFutureStructI64 = {
|
|
62
|
+
returnValue: bigint;
|
|
63
|
+
callStatus: UniffiRustCallStatus;
|
|
64
|
+
};
|
|
65
|
+
export type UniffiForeignFutureCompleteI64 = (callbackData: bigint, result: UniffiForeignFutureStructI64) => void;
|
|
66
|
+
export type UniffiForeignFutureStructF32 = {
|
|
67
|
+
returnValue: number;
|
|
68
|
+
callStatus: UniffiRustCallStatus;
|
|
69
|
+
};
|
|
70
|
+
export type UniffiForeignFutureCompleteF32 = (callbackData: bigint, result: UniffiForeignFutureStructF32) => void;
|
|
71
|
+
export type UniffiForeignFutureStructF64 = {
|
|
72
|
+
returnValue: number;
|
|
73
|
+
callStatus: UniffiRustCallStatus;
|
|
74
|
+
};
|
|
75
|
+
export type UniffiForeignFutureCompleteF64 = (callbackData: bigint, result: UniffiForeignFutureStructF64) => void;
|
|
76
|
+
export type UniffiForeignFutureStructPointer = {
|
|
77
|
+
returnValue: bigint;
|
|
78
|
+
callStatus: UniffiRustCallStatus;
|
|
79
|
+
};
|
|
80
|
+
export type UniffiForeignFutureCompletePointer = (callbackData: bigint, result: UniffiForeignFutureStructPointer) => void;
|
|
81
|
+
export type UniffiForeignFutureStructRustBuffer = {
|
|
82
|
+
returnValue: Uint8Array;
|
|
83
|
+
callStatus: UniffiRustCallStatus;
|
|
84
|
+
};
|
|
85
|
+
export type UniffiForeignFutureCompleteRustBuffer = (callbackData: bigint, result: UniffiForeignFutureStructRustBuffer) => void;
|
|
86
|
+
export type UniffiForeignFutureStructVoid = {
|
|
87
|
+
callStatus: UniffiRustCallStatus;
|
|
88
|
+
};
|
|
89
|
+
export type UniffiForeignFutureCompleteVoid = (callbackData: bigint, result: UniffiForeignFutureStructVoid) => void;
|
|
90
|
+
type UniffiCallbackInterfaceRpcCallbackMethod0 = (uniffiHandle: bigint, responseJson: Uint8Array) => UniffiResult<void>;
|
|
91
|
+
export type UniffiVTableCallbackInterfaceRpcCallback = {
|
|
92
|
+
onResponse: UniffiCallbackInterfaceRpcCallbackMethod0;
|
|
93
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=fedimint_client_uniffi-ffi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fedimint_client_uniffi-ffi.d.ts","sourceRoot":"","sources":["../../../../../src/generated/fedimint_client_uniffi-ffi.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EAErB,KAAK,YAAY,EAClB,MAAM,6BAA6B,CAAA;AAEpC,UAAU,qBAAqB;IAC7B,uDAAuD,CACrD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAA;IACT,uDAAuD,CACrD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,oBAAoB,GACnC,UAAU,CAAA;IACb,uDAAuD,CACrD,MAAM,EAAE,UAAU,EAClB,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAA;IACT,sDAAsD,CACpD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAA;IACT,qDAAqD,CACnD,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,oBAAoB,GACnC,IAAI,CAAA;IACP,gEAAgE,CAC9D,MAAM,EAAE,UAAU,EAClB,cAAc,EAAE,oBAAoB,GACnC,MAAM,CAAA;IACT,2DAA2D,CACzD,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,oBAAoB,GACnC,IAAI,CAAA;IACP,sEAAsE,CACpE,MAAM,EAAE,wCAAwC,GAC/C,IAA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,EACpB,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAA;AACT,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,oBAAoB,CAAA;CACjC,CAAA;AACD,MAAM,MAAM,8BAA8B,GAAG,CAC3C,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAA;AACT,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,oBAAoB,CAAA;CACjC,CAAA;AACD,MAAM,MAAM,kCAAkC,GAAG,CAC/C,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,gCAAgC,KACrC,IAAI,CAAA;AACT,MAAM,MAAM,mCAAmC,GAAG;IAChD,WAAW,EAAE,UAAU,CAAA;IACvB,UAAU,EAAE,oBAAoB,CAAA;CACjC,CAAA;AACD,MAAM,MAAM,qCAAqC,GAAG,CAClD,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mCAAmC,KACxC,IAAI,CAAA;AACT,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,oBAAoB,CAAA;CACjC,CAAA;AACD,MAAM,MAAM,+BAA+B,GAAG,CAC5C,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,6BAA6B,KAClC,IAAI,CAAA;AACT,KAAK,yCAAyC,GAAG,CAC/C,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,UAAU,KACrB,YAAY,CAAC,IAAI,CAAC,CAAA;AACvB,MAAM,MAAM,wCAAwC,GAAG;IACrD,UAAU,EAAE,yCAAyC,CAAA;IACrD,UAAU,EAAE,2BAA2B,CAAA;CACxC,CAAA"}
|
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
|
|
2
|
+
export interface RpcCallback {
|
|
3
|
+
onResponse(responseJson: string): void;
|
|
4
|
+
}
|
|
5
|
+
export declare enum FedimintError_Tags {
|
|
6
|
+
DatabaseError = "DatabaseError",
|
|
7
|
+
NetworkingError = "NetworkingError",
|
|
8
|
+
RuntimeError = "RuntimeError",
|
|
9
|
+
InvalidRequest = "InvalidRequest",
|
|
10
|
+
General = "General"
|
|
11
|
+
}
|
|
12
|
+
export declare const FedimintError: Readonly<{
|
|
13
|
+
instanceOf: (obj: any) => obj is FedimintError;
|
|
14
|
+
DatabaseError: {
|
|
15
|
+
new (inner: {
|
|
16
|
+
msg: string;
|
|
17
|
+
}): {
|
|
18
|
+
readonly tag: FedimintError_Tags.DatabaseError;
|
|
19
|
+
readonly inner: Readonly<{
|
|
20
|
+
msg: string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* This field is private and should not be used, use `tag` instead.
|
|
25
|
+
*/
|
|
26
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
27
|
+
name: string;
|
|
28
|
+
message: string;
|
|
29
|
+
stack?: string;
|
|
30
|
+
cause?: unknown;
|
|
31
|
+
};
|
|
32
|
+
"new"(inner: {
|
|
33
|
+
msg: string;
|
|
34
|
+
}): {
|
|
35
|
+
readonly tag: FedimintError_Tags.DatabaseError;
|
|
36
|
+
readonly inner: Readonly<{
|
|
37
|
+
msg: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* @private
|
|
41
|
+
* This field is private and should not be used, use `tag` instead.
|
|
42
|
+
*/
|
|
43
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
44
|
+
name: string;
|
|
45
|
+
message: string;
|
|
46
|
+
stack?: string;
|
|
47
|
+
cause?: unknown;
|
|
48
|
+
};
|
|
49
|
+
instanceOf(obj: any): obj is {
|
|
50
|
+
readonly tag: FedimintError_Tags.DatabaseError;
|
|
51
|
+
readonly inner: Readonly<{
|
|
52
|
+
msg: string;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* @private
|
|
56
|
+
* This field is private and should not be used, use `tag` instead.
|
|
57
|
+
*/
|
|
58
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
59
|
+
name: string;
|
|
60
|
+
message: string;
|
|
61
|
+
stack?: string;
|
|
62
|
+
cause?: unknown;
|
|
63
|
+
};
|
|
64
|
+
hasInner(obj: any): obj is {
|
|
65
|
+
readonly tag: FedimintError_Tags.DatabaseError;
|
|
66
|
+
readonly inner: Readonly<{
|
|
67
|
+
msg: string;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* @private
|
|
71
|
+
* This field is private and should not be used, use `tag` instead.
|
|
72
|
+
*/
|
|
73
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
74
|
+
name: string;
|
|
75
|
+
message: string;
|
|
76
|
+
stack?: string;
|
|
77
|
+
cause?: unknown;
|
|
78
|
+
};
|
|
79
|
+
getInner(obj: {
|
|
80
|
+
readonly tag: FedimintError_Tags.DatabaseError;
|
|
81
|
+
readonly inner: Readonly<{
|
|
82
|
+
msg: string;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* @private
|
|
86
|
+
* This field is private and should not be used, use `tag` instead.
|
|
87
|
+
*/
|
|
88
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
89
|
+
name: string;
|
|
90
|
+
message: string;
|
|
91
|
+
stack?: string;
|
|
92
|
+
cause?: unknown;
|
|
93
|
+
}): Readonly<{
|
|
94
|
+
msg: string;
|
|
95
|
+
}>;
|
|
96
|
+
isError(error: unknown): error is Error;
|
|
97
|
+
isError(value: unknown): value is Error;
|
|
98
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
99
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
100
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
101
|
+
stackTraceLimit: number;
|
|
102
|
+
};
|
|
103
|
+
NetworkingError: {
|
|
104
|
+
new (inner: {
|
|
105
|
+
msg: string;
|
|
106
|
+
}): {
|
|
107
|
+
readonly tag: FedimintError_Tags.NetworkingError;
|
|
108
|
+
readonly inner: Readonly<{
|
|
109
|
+
msg: string;
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* @private
|
|
113
|
+
* This field is private and should not be used, use `tag` instead.
|
|
114
|
+
*/
|
|
115
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
116
|
+
name: string;
|
|
117
|
+
message: string;
|
|
118
|
+
stack?: string;
|
|
119
|
+
cause?: unknown;
|
|
120
|
+
};
|
|
121
|
+
"new"(inner: {
|
|
122
|
+
msg: string;
|
|
123
|
+
}): {
|
|
124
|
+
readonly tag: FedimintError_Tags.NetworkingError;
|
|
125
|
+
readonly inner: Readonly<{
|
|
126
|
+
msg: string;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* @private
|
|
130
|
+
* This field is private and should not be used, use `tag` instead.
|
|
131
|
+
*/
|
|
132
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
133
|
+
name: string;
|
|
134
|
+
message: string;
|
|
135
|
+
stack?: string;
|
|
136
|
+
cause?: unknown;
|
|
137
|
+
};
|
|
138
|
+
instanceOf(obj: any): obj is {
|
|
139
|
+
readonly tag: FedimintError_Tags.NetworkingError;
|
|
140
|
+
readonly inner: Readonly<{
|
|
141
|
+
msg: string;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* @private
|
|
145
|
+
* This field is private and should not be used, use `tag` instead.
|
|
146
|
+
*/
|
|
147
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
148
|
+
name: string;
|
|
149
|
+
message: string;
|
|
150
|
+
stack?: string;
|
|
151
|
+
cause?: unknown;
|
|
152
|
+
};
|
|
153
|
+
hasInner(obj: any): obj is {
|
|
154
|
+
readonly tag: FedimintError_Tags.NetworkingError;
|
|
155
|
+
readonly inner: Readonly<{
|
|
156
|
+
msg: string;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* @private
|
|
160
|
+
* This field is private and should not be used, use `tag` instead.
|
|
161
|
+
*/
|
|
162
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
163
|
+
name: string;
|
|
164
|
+
message: string;
|
|
165
|
+
stack?: string;
|
|
166
|
+
cause?: unknown;
|
|
167
|
+
};
|
|
168
|
+
getInner(obj: {
|
|
169
|
+
readonly tag: FedimintError_Tags.NetworkingError;
|
|
170
|
+
readonly inner: Readonly<{
|
|
171
|
+
msg: string;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* @private
|
|
175
|
+
* This field is private and should not be used, use `tag` instead.
|
|
176
|
+
*/
|
|
177
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
178
|
+
name: string;
|
|
179
|
+
message: string;
|
|
180
|
+
stack?: string;
|
|
181
|
+
cause?: unknown;
|
|
182
|
+
}): Readonly<{
|
|
183
|
+
msg: string;
|
|
184
|
+
}>;
|
|
185
|
+
isError(error: unknown): error is Error;
|
|
186
|
+
isError(value: unknown): value is Error;
|
|
187
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
188
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
189
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
190
|
+
stackTraceLimit: number;
|
|
191
|
+
};
|
|
192
|
+
RuntimeError: {
|
|
193
|
+
new (inner: {
|
|
194
|
+
msg: string;
|
|
195
|
+
}): {
|
|
196
|
+
readonly tag: FedimintError_Tags.RuntimeError;
|
|
197
|
+
readonly inner: Readonly<{
|
|
198
|
+
msg: string;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* @private
|
|
202
|
+
* This field is private and should not be used, use `tag` instead.
|
|
203
|
+
*/
|
|
204
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
205
|
+
name: string;
|
|
206
|
+
message: string;
|
|
207
|
+
stack?: string;
|
|
208
|
+
cause?: unknown;
|
|
209
|
+
};
|
|
210
|
+
"new"(inner: {
|
|
211
|
+
msg: string;
|
|
212
|
+
}): {
|
|
213
|
+
readonly tag: FedimintError_Tags.RuntimeError;
|
|
214
|
+
readonly inner: Readonly<{
|
|
215
|
+
msg: string;
|
|
216
|
+
}>;
|
|
217
|
+
/**
|
|
218
|
+
* @private
|
|
219
|
+
* This field is private and should not be used, use `tag` instead.
|
|
220
|
+
*/
|
|
221
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
222
|
+
name: string;
|
|
223
|
+
message: string;
|
|
224
|
+
stack?: string;
|
|
225
|
+
cause?: unknown;
|
|
226
|
+
};
|
|
227
|
+
instanceOf(obj: any): obj is {
|
|
228
|
+
readonly tag: FedimintError_Tags.RuntimeError;
|
|
229
|
+
readonly inner: Readonly<{
|
|
230
|
+
msg: string;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* @private
|
|
234
|
+
* This field is private and should not be used, use `tag` instead.
|
|
235
|
+
*/
|
|
236
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
237
|
+
name: string;
|
|
238
|
+
message: string;
|
|
239
|
+
stack?: string;
|
|
240
|
+
cause?: unknown;
|
|
241
|
+
};
|
|
242
|
+
hasInner(obj: any): obj is {
|
|
243
|
+
readonly tag: FedimintError_Tags.RuntimeError;
|
|
244
|
+
readonly inner: Readonly<{
|
|
245
|
+
msg: string;
|
|
246
|
+
}>;
|
|
247
|
+
/**
|
|
248
|
+
* @private
|
|
249
|
+
* This field is private and should not be used, use `tag` instead.
|
|
250
|
+
*/
|
|
251
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
252
|
+
name: string;
|
|
253
|
+
message: string;
|
|
254
|
+
stack?: string;
|
|
255
|
+
cause?: unknown;
|
|
256
|
+
};
|
|
257
|
+
getInner(obj: {
|
|
258
|
+
readonly tag: FedimintError_Tags.RuntimeError;
|
|
259
|
+
readonly inner: Readonly<{
|
|
260
|
+
msg: string;
|
|
261
|
+
}>;
|
|
262
|
+
/**
|
|
263
|
+
* @private
|
|
264
|
+
* This field is private and should not be used, use `tag` instead.
|
|
265
|
+
*/
|
|
266
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
267
|
+
name: string;
|
|
268
|
+
message: string;
|
|
269
|
+
stack?: string;
|
|
270
|
+
cause?: unknown;
|
|
271
|
+
}): Readonly<{
|
|
272
|
+
msg: string;
|
|
273
|
+
}>;
|
|
274
|
+
isError(error: unknown): error is Error;
|
|
275
|
+
isError(value: unknown): value is Error;
|
|
276
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
277
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
278
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
279
|
+
stackTraceLimit: number;
|
|
280
|
+
};
|
|
281
|
+
InvalidRequest: {
|
|
282
|
+
new (inner: {
|
|
283
|
+
msg: string;
|
|
284
|
+
}): {
|
|
285
|
+
readonly tag: FedimintError_Tags.InvalidRequest;
|
|
286
|
+
readonly inner: Readonly<{
|
|
287
|
+
msg: string;
|
|
288
|
+
}>;
|
|
289
|
+
/**
|
|
290
|
+
* @private
|
|
291
|
+
* This field is private and should not be used, use `tag` instead.
|
|
292
|
+
*/
|
|
293
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
294
|
+
name: string;
|
|
295
|
+
message: string;
|
|
296
|
+
stack?: string;
|
|
297
|
+
cause?: unknown;
|
|
298
|
+
};
|
|
299
|
+
"new"(inner: {
|
|
300
|
+
msg: string;
|
|
301
|
+
}): {
|
|
302
|
+
readonly tag: FedimintError_Tags.InvalidRequest;
|
|
303
|
+
readonly inner: Readonly<{
|
|
304
|
+
msg: string;
|
|
305
|
+
}>;
|
|
306
|
+
/**
|
|
307
|
+
* @private
|
|
308
|
+
* This field is private and should not be used, use `tag` instead.
|
|
309
|
+
*/
|
|
310
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
311
|
+
name: string;
|
|
312
|
+
message: string;
|
|
313
|
+
stack?: string;
|
|
314
|
+
cause?: unknown;
|
|
315
|
+
};
|
|
316
|
+
instanceOf(obj: any): obj is {
|
|
317
|
+
readonly tag: FedimintError_Tags.InvalidRequest;
|
|
318
|
+
readonly inner: Readonly<{
|
|
319
|
+
msg: string;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* @private
|
|
323
|
+
* This field is private and should not be used, use `tag` instead.
|
|
324
|
+
*/
|
|
325
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
326
|
+
name: string;
|
|
327
|
+
message: string;
|
|
328
|
+
stack?: string;
|
|
329
|
+
cause?: unknown;
|
|
330
|
+
};
|
|
331
|
+
hasInner(obj: any): obj is {
|
|
332
|
+
readonly tag: FedimintError_Tags.InvalidRequest;
|
|
333
|
+
readonly inner: Readonly<{
|
|
334
|
+
msg: string;
|
|
335
|
+
}>;
|
|
336
|
+
/**
|
|
337
|
+
* @private
|
|
338
|
+
* This field is private and should not be used, use `tag` instead.
|
|
339
|
+
*/
|
|
340
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
341
|
+
name: string;
|
|
342
|
+
message: string;
|
|
343
|
+
stack?: string;
|
|
344
|
+
cause?: unknown;
|
|
345
|
+
};
|
|
346
|
+
getInner(obj: {
|
|
347
|
+
readonly tag: FedimintError_Tags.InvalidRequest;
|
|
348
|
+
readonly inner: Readonly<{
|
|
349
|
+
msg: string;
|
|
350
|
+
}>;
|
|
351
|
+
/**
|
|
352
|
+
* @private
|
|
353
|
+
* This field is private and should not be used, use `tag` instead.
|
|
354
|
+
*/
|
|
355
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
356
|
+
name: string;
|
|
357
|
+
message: string;
|
|
358
|
+
stack?: string;
|
|
359
|
+
cause?: unknown;
|
|
360
|
+
}): Readonly<{
|
|
361
|
+
msg: string;
|
|
362
|
+
}>;
|
|
363
|
+
isError(error: unknown): error is Error;
|
|
364
|
+
isError(value: unknown): value is Error;
|
|
365
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
366
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
367
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
368
|
+
stackTraceLimit: number;
|
|
369
|
+
};
|
|
370
|
+
General: {
|
|
371
|
+
new (inner: {
|
|
372
|
+
msg: string;
|
|
373
|
+
}): {
|
|
374
|
+
readonly tag: FedimintError_Tags.General;
|
|
375
|
+
readonly inner: Readonly<{
|
|
376
|
+
msg: string;
|
|
377
|
+
}>;
|
|
378
|
+
/**
|
|
379
|
+
* @private
|
|
380
|
+
* This field is private and should not be used, use `tag` instead.
|
|
381
|
+
*/
|
|
382
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
383
|
+
name: string;
|
|
384
|
+
message: string;
|
|
385
|
+
stack?: string;
|
|
386
|
+
cause?: unknown;
|
|
387
|
+
};
|
|
388
|
+
"new"(inner: {
|
|
389
|
+
msg: string;
|
|
390
|
+
}): {
|
|
391
|
+
readonly tag: FedimintError_Tags.General;
|
|
392
|
+
readonly inner: Readonly<{
|
|
393
|
+
msg: string;
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* @private
|
|
397
|
+
* This field is private and should not be used, use `tag` instead.
|
|
398
|
+
*/
|
|
399
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
400
|
+
name: string;
|
|
401
|
+
message: string;
|
|
402
|
+
stack?: string;
|
|
403
|
+
cause?: unknown;
|
|
404
|
+
};
|
|
405
|
+
instanceOf(obj: any): obj is {
|
|
406
|
+
readonly tag: FedimintError_Tags.General;
|
|
407
|
+
readonly inner: Readonly<{
|
|
408
|
+
msg: string;
|
|
409
|
+
}>;
|
|
410
|
+
/**
|
|
411
|
+
* @private
|
|
412
|
+
* This field is private and should not be used, use `tag` instead.
|
|
413
|
+
*/
|
|
414
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
415
|
+
name: string;
|
|
416
|
+
message: string;
|
|
417
|
+
stack?: string;
|
|
418
|
+
cause?: unknown;
|
|
419
|
+
};
|
|
420
|
+
hasInner(obj: any): obj is {
|
|
421
|
+
readonly tag: FedimintError_Tags.General;
|
|
422
|
+
readonly inner: Readonly<{
|
|
423
|
+
msg: string;
|
|
424
|
+
}>;
|
|
425
|
+
/**
|
|
426
|
+
* @private
|
|
427
|
+
* This field is private and should not be used, use `tag` instead.
|
|
428
|
+
*/
|
|
429
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
430
|
+
name: string;
|
|
431
|
+
message: string;
|
|
432
|
+
stack?: string;
|
|
433
|
+
cause?: unknown;
|
|
434
|
+
};
|
|
435
|
+
getInner(obj: {
|
|
436
|
+
readonly tag: FedimintError_Tags.General;
|
|
437
|
+
readonly inner: Readonly<{
|
|
438
|
+
msg: string;
|
|
439
|
+
}>;
|
|
440
|
+
/**
|
|
441
|
+
* @private
|
|
442
|
+
* This field is private and should not be used, use `tag` instead.
|
|
443
|
+
*/
|
|
444
|
+
readonly [uniffiTypeNameSymbol]: "FedimintError";
|
|
445
|
+
name: string;
|
|
446
|
+
message: string;
|
|
447
|
+
stack?: string;
|
|
448
|
+
cause?: unknown;
|
|
449
|
+
}): Readonly<{
|
|
450
|
+
msg: string;
|
|
451
|
+
}>;
|
|
452
|
+
isError(error: unknown): error is Error;
|
|
453
|
+
isError(value: unknown): value is Error;
|
|
454
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
455
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
456
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
457
|
+
stackTraceLimit: number;
|
|
458
|
+
};
|
|
459
|
+
}>;
|
|
460
|
+
export type FedimintError = InstanceType<(typeof FedimintError)[keyof Omit<typeof FedimintError, 'instanceOf'>]>;
|
|
461
|
+
export interface RpcHandlerInterface {
|
|
462
|
+
rpc(requestJson: string, callback: RpcCallback): void;
|
|
463
|
+
}
|
|
464
|
+
export declare class RpcHandler extends UniffiAbstractObject implements RpcHandlerInterface {
|
|
465
|
+
readonly [uniffiTypeNameSymbol] = "RpcHandler";
|
|
466
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
467
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
468
|
+
constructor(dbPath: string);
|
|
469
|
+
rpc(requestJson: string, callback: RpcCallback): void;
|
|
470
|
+
/**
|
|
471
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
472
|
+
*/
|
|
473
|
+
uniffiDestroy(): void;
|
|
474
|
+
static instanceOf(obj: any): obj is RpcHandler;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* This should be called before anything else.
|
|
478
|
+
*
|
|
479
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
480
|
+
*
|
|
481
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
482
|
+
* and when the bindings were generated.
|
|
483
|
+
*
|
|
484
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
485
|
+
*/
|
|
486
|
+
declare function uniffiEnsureInitialized(): void;
|
|
487
|
+
declare const _default: Readonly<{
|
|
488
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
489
|
+
converters: {
|
|
490
|
+
FfiConverterTypeFedimintError: {
|
|
491
|
+
read(from: RustBuffer): FedimintError;
|
|
492
|
+
write(value: FedimintError, into: RustBuffer): void;
|
|
493
|
+
allocationSize(value: FedimintError): number;
|
|
494
|
+
lift(value: UniffiByteArray): FedimintError;
|
|
495
|
+
lower(value: FedimintError): UniffiByteArray;
|
|
496
|
+
};
|
|
497
|
+
FfiConverterTypeRpcHandler: FfiConverterObject<RpcHandlerInterface>;
|
|
498
|
+
};
|
|
499
|
+
}>;
|
|
500
|
+
export default _default;
|
|
501
|
+
//# sourceMappingURL=fedimint_client_uniffi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fedimint_client_uniffi.d.ts","sourceRoot":"","sources":["../../../../../src/generated/fedimint_client_uniffi.ts"],"names":[],"mappings":"AAiCA,OAAO,EAEL,KAAK,eAAe,EAIpB,KAAK,gBAAgB,EAErB,KAAK,uBAAuB,EAI5B,kBAAkB,EAElB,UAAU,EACV,oBAAoB,EAKpB,qBAAqB,EACrB,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,6BAA6B,CAAA;AAapC,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC;AAuED,oBAAY,kBAAkB;IAC5B,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,OAAO,YAAY;CACpB;AACD,eAAO,MAAM,aAAa;sBAsLC,GAAG,KAAG,GAAG,IAAI,aAAa;;oBAxK9B;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE;;4BADlB,QAAQ,CAAC;gBAAE,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YANzC;;;eAGG;;;;;;;qBASe;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE;;4BANjB,QAAQ,CAAC;gBAAE,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YANzC;;;eAGG;;;;;;;wBAaoB,GAAG,GAAG,GAAG;;4BAVhB,QAAQ,CAAC;gBAAE,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YANzC;;;eAGG;;;;;;SAa+C;sBAI7B,GAAG,GAAG,GAAG;;4BAdd,QAAQ,CAAC;gBAAE,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YANzC;;;eA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
1
|
+
export * from './generated/fedimint_client_uniffi';
|
|
2
|
+
import * as fedimint_client_uniffi from './generated/fedimint_client_uniffi';
|
|
3
|
+
export declare function uniffiInitAsync(): Promise<void>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
fedimint_client_uniffi: typeof fedimint_client_uniffi;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAaA,cAAc,oCAAoC,CAAC;AAKnD,OAAO,KAAK,sBAAsB,MAAM,oCAAoC,CAAC;AAc7E,wBAAsB,eAAe,kBAEpC;;;;AAGD,wBAEE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
export type FedimintPluginOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Skip downloading binary artifacts (default: false)
|
|
5
|
+
* Set to true if you want to handle binary downloads manually
|
|
6
|
+
*/
|
|
7
|
+
skipBinaryDownload?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: ConfigPlugin<void | FedimintPluginOptions>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;;AAkBF,wBAIE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CAE6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withAndroid.d.ts","sourceRoot":"","sources":["../../../../../plugin/src/withAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,sBAAsB,CAAC;AAkC/E;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAGjC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
/**
|
|
3
|
+
* Downloads prebuilt binary artifacts for Android and iOS
|
|
4
|
+
* This runs synchronously during expo prebuild to ensure binaries are available
|
|
5
|
+
*/
|
|
6
|
+
export declare const withBinaryArtifacts: ConfigPlugin;
|
|
7
|
+
//# sourceMappingURL=withBinaryArtifacts.d.ts.map
|