@miden-sdk/miden-wallet-adapter-base 0.13.0

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 (104) hide show
  1. package/adapter.ts +146 -0
  2. package/dist/adapter.d.ts +69 -0
  3. package/dist/adapter.js +74 -0
  4. package/dist/adapter.js.map +1 -0
  5. package/dist/errors.d.ts +70 -0
  6. package/dist/errors.js +75 -0
  7. package/dist/errors.js.map +1 -0
  8. package/dist/helpers.d.ts +2 -0
  9. package/dist/helpers.js +32 -0
  10. package/dist/helpers.js.map +1 -0
  11. package/dist/index.d.ts +6 -0
  12. package/dist/index.js +7 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/signer.d.ts +34 -0
  15. package/dist/signer.js +6 -0
  16. package/dist/signer.js.map +1 -0
  17. package/dist/transaction.d.ts +67 -0
  18. package/dist/transaction.js +74 -0
  19. package/dist/transaction.js.map +1 -0
  20. package/dist/types.d.ts +47 -0
  21. package/dist/types.js +19 -0
  22. package/dist/types.js.map +1 -0
  23. package/docs/@miden-sdk/namespaces/EventEmitter/README.md +24 -0
  24. package/docs/@miden-sdk/namespaces/EventEmitter/interfaces/EventEmitterStatic.md +17 -0
  25. package/docs/@miden-sdk/namespaces/EventEmitter/interfaces/ListenerFn.md +25 -0
  26. package/docs/@miden-sdk/namespaces/EventEmitter/type-aliases/ArgumentMap.md +15 -0
  27. package/docs/@miden-sdk/namespaces/EventEmitter/type-aliases/EventArgs.md +19 -0
  28. package/docs/@miden-sdk/namespaces/EventEmitter/type-aliases/EventListener.md +19 -0
  29. package/docs/@miden-sdk/namespaces/EventEmitter/type-aliases/EventNames.md +15 -0
  30. package/docs/@miden-sdk/namespaces/EventEmitter/type-aliases/ValidEventTypes.md +17 -0
  31. package/docs/@miden-sdk/namespaces/EventEmitter/variables/EventEmitter.md +9 -0
  32. package/docs/README.md +88 -0
  33. package/docs/classes/BaseMessageSignerWalletAdapter.md +755 -0
  34. package/docs/classes/BaseSignerWalletAdapter.md +579 -0
  35. package/docs/classes/BaseWalletAdapter.md +535 -0
  36. package/docs/classes/ConsumeTransaction.md +93 -0
  37. package/docs/classes/CustomTransaction.md +93 -0
  38. package/docs/classes/EventEmitter.md +305 -0
  39. package/docs/classes/SendTransaction.md +107 -0
  40. package/docs/classes/Transaction.md +151 -0
  41. package/docs/classes/WalletAccountError.md +223 -0
  42. package/docs/classes/WalletAddressError.md +223 -0
  43. package/docs/classes/WalletConfigError.md +223 -0
  44. package/docs/classes/WalletConnectionError.md +223 -0
  45. package/docs/classes/WalletDecryptionError.md +223 -0
  46. package/docs/classes/WalletDecryptionNotAllowedError.md +223 -0
  47. package/docs/classes/WalletDisconnectedError.md +223 -0
  48. package/docs/classes/WalletDisconnectionError.md +223 -0
  49. package/docs/classes/WalletError.md +244 -0
  50. package/docs/classes/WalletKeypairError.md +223 -0
  51. package/docs/classes/WalletLoadError.md +223 -0
  52. package/docs/classes/WalletNotConnectedError.md +223 -0
  53. package/docs/classes/WalletNotReadyError.md +223 -0
  54. package/docs/classes/WalletNotSelectedError.md +223 -0
  55. package/docs/classes/WalletPrivateDataPermissionError.md +223 -0
  56. package/docs/classes/WalletRecordsError.md +223 -0
  57. package/docs/classes/WalletSendTransactionError.md +223 -0
  58. package/docs/classes/WalletSignMessageError.md +223 -0
  59. package/docs/classes/WalletSignTransactionError.md +223 -0
  60. package/docs/classes/WalletTimeoutError.md +223 -0
  61. package/docs/classes/WalletTransactionError.md +223 -0
  62. package/docs/classes/WalletWindowBlockedError.md +223 -0
  63. package/docs/classes/WalletWindowClosedError.md +223 -0
  64. package/docs/enumerations/AllowedPrivateData.md +37 -0
  65. package/docs/enumerations/PrivateDataPermission.md +19 -0
  66. package/docs/enumerations/TransactionType.md +25 -0
  67. package/docs/enumerations/WalletAdapterNetwork.md +19 -0
  68. package/docs/enumerations/WalletReadyState.md +49 -0
  69. package/docs/functions/b64ToU8.md +19 -0
  70. package/docs/functions/scopePollingDetectionStrategy.md +19 -0
  71. package/docs/functions/u8ToB64.md +19 -0
  72. package/docs/interfaces/Asset.md +19 -0
  73. package/docs/interfaces/IFailedTransactionOutput.md +13 -0
  74. package/docs/interfaces/MessageSignerWalletAdapterProps.md +293 -0
  75. package/docs/interfaces/MidenConsumeTransaction.md +37 -0
  76. package/docs/interfaces/MidenCustomTransaction.md +37 -0
  77. package/docs/interfaces/MidenSendTransaction.md +43 -0
  78. package/docs/interfaces/MidenTransaction.md +19 -0
  79. package/docs/interfaces/SignerWalletAdapterProps.md +149 -0
  80. package/docs/interfaces/TransactionOutput.md +19 -0
  81. package/docs/interfaces/WalletAdapterEvents.md +69 -0
  82. package/docs/interfaces/WalletAdapterProps.md +106 -0
  83. package/docs/interfaces/WalletTransactionSuccessOutput.md +19 -0
  84. package/docs/type-aliases/Adapter.md +9 -0
  85. package/docs/type-aliases/FungibleAssetDetails.md +21 -0
  86. package/docs/type-aliases/InputNoteDetails.md +45 -0
  87. package/docs/type-aliases/MessageSignerWalletAdapter.md +15 -0
  88. package/docs/type-aliases/NoteTypeString.md +9 -0
  89. package/docs/type-aliases/SignKind.md +9 -0
  90. package/docs/type-aliases/SignerWalletAdapter.md +15 -0
  91. package/docs/type-aliases/SupportedTransactionVersions.md +9 -0
  92. package/docs/type-aliases/TransactionOrVersionedTransaction.md +15 -0
  93. package/docs/type-aliases/TransactionPayload.md +9 -0
  94. package/docs/type-aliases/WalletAdapter.md +15 -0
  95. package/docs/type-aliases/WalletName.md +21 -0
  96. package/docs/type-aliases/WalletTransactionOutput.md +9 -0
  97. package/errors.ts +97 -0
  98. package/helpers.ts +28 -0
  99. package/index.ts +6 -0
  100. package/package.json +21 -0
  101. package/signer.ts +71 -0
  102. package/transaction.ts +178 -0
  103. package/tsconfig.json +15 -0
  104. package/types.ts +68 -0
@@ -0,0 +1,223 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / WalletWindowBlockedError
6
+
7
+ # Class: WalletWindowBlockedError
8
+
9
+ ## Extends
10
+
11
+ - [`WalletError`](WalletError.md)
12
+
13
+ ## Constructors
14
+
15
+ ### Constructor
16
+
17
+ > **new WalletWindowBlockedError**(`message?`, `error?`): `WalletWindowBlockedError`
18
+
19
+ #### Parameters
20
+
21
+ ##### message?
22
+
23
+ `string`
24
+
25
+ ##### error?
26
+
27
+ `any`
28
+
29
+ #### Returns
30
+
31
+ `WalletWindowBlockedError`
32
+
33
+ #### Inherited from
34
+
35
+ [`WalletError`](WalletError.md).[`constructor`](WalletError.md#constructor)
36
+
37
+ ## Properties
38
+
39
+ ### cause?
40
+
41
+ > `optional` **cause**: `unknown`
42
+
43
+ #### Inherited from
44
+
45
+ [`WalletError`](WalletError.md).[`cause`](WalletError.md#cause)
46
+
47
+ ***
48
+
49
+ ### error
50
+
51
+ > **error**: `any`
52
+
53
+ #### Inherited from
54
+
55
+ [`WalletError`](WalletError.md).[`error`](WalletError.md#error)
56
+
57
+ ***
58
+
59
+ ### message
60
+
61
+ > **message**: `string`
62
+
63
+ #### Inherited from
64
+
65
+ [`WalletError`](WalletError.md).[`message`](WalletError.md#message)
66
+
67
+ ***
68
+
69
+ ### name
70
+
71
+ > **name**: `string` = `'WalletWindowBlockedError'`
72
+
73
+ #### Overrides
74
+
75
+ [`WalletError`](WalletError.md).[`name`](WalletError.md#name)
76
+
77
+ ***
78
+
79
+ ### stack?
80
+
81
+ > `optional` **stack**: `string`
82
+
83
+ #### Inherited from
84
+
85
+ [`WalletError`](WalletError.md).[`stack`](WalletError.md#stack)
86
+
87
+ ***
88
+
89
+ ### stackTraceLimit
90
+
91
+ > `static` **stackTraceLimit**: `number`
92
+
93
+ The `Error.stackTraceLimit` property specifies the number of stack frames
94
+ collected by a stack trace (whether generated by `new Error().stack` or
95
+ `Error.captureStackTrace(obj)`).
96
+
97
+ The default value is `10` but may be set to any valid JavaScript number. Changes
98
+ will affect any stack trace captured _after_ the value has been changed.
99
+
100
+ If set to a non-number value, or set to a negative number, stack traces will
101
+ not capture any frames.
102
+
103
+ #### Inherited from
104
+
105
+ [`WalletError`](WalletError.md).[`stackTraceLimit`](WalletError.md#stacktracelimit)
106
+
107
+ ## Methods
108
+
109
+ ### captureStackTrace()
110
+
111
+ > `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
112
+
113
+ Creates a `.stack` property on `targetObject`, which when accessed returns
114
+ a string representing the location in the code at which
115
+ `Error.captureStackTrace()` was called.
116
+
117
+ ```js
118
+ const myObject = {};
119
+ Error.captureStackTrace(myObject);
120
+ myObject.stack; // Similar to `new Error().stack`
121
+ ```
122
+
123
+ The first line of the trace will be prefixed with
124
+ `${myObject.name}: ${myObject.message}`.
125
+
126
+ The optional `constructorOpt` argument accepts a function. If given, all frames
127
+ above `constructorOpt`, including `constructorOpt`, will be omitted from the
128
+ generated stack trace.
129
+
130
+ The `constructorOpt` argument is useful for hiding implementation
131
+ details of error generation from the user. For instance:
132
+
133
+ ```js
134
+ function a() {
135
+ b();
136
+ }
137
+
138
+ function b() {
139
+ c();
140
+ }
141
+
142
+ function c() {
143
+ // Create an error without stack trace to avoid calculating the stack trace twice.
144
+ const { stackTraceLimit } = Error;
145
+ Error.stackTraceLimit = 0;
146
+ const error = new Error();
147
+ Error.stackTraceLimit = stackTraceLimit;
148
+
149
+ // Capture the stack trace above function b
150
+ Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
151
+ throw error;
152
+ }
153
+
154
+ a();
155
+ ```
156
+
157
+ #### Parameters
158
+
159
+ ##### targetObject
160
+
161
+ `object`
162
+
163
+ ##### constructorOpt?
164
+
165
+ `Function`
166
+
167
+ #### Returns
168
+
169
+ `void`
170
+
171
+ #### Inherited from
172
+
173
+ [`WalletError`](WalletError.md).[`captureStackTrace`](WalletError.md#capturestacktrace)
174
+
175
+ ***
176
+
177
+ ### isError()
178
+
179
+ > `static` **isError**(`error`): `error is Error`
180
+
181
+ Indicates whether the argument provided is a built-in Error instance or not.
182
+
183
+ #### Parameters
184
+
185
+ ##### error
186
+
187
+ `unknown`
188
+
189
+ #### Returns
190
+
191
+ `error is Error`
192
+
193
+ #### Inherited from
194
+
195
+ [`WalletError`](WalletError.md).[`isError`](WalletError.md#iserror)
196
+
197
+ ***
198
+
199
+ ### prepareStackTrace()
200
+
201
+ > `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
202
+
203
+ #### Parameters
204
+
205
+ ##### err
206
+
207
+ `Error`
208
+
209
+ ##### stackTraces
210
+
211
+ `CallSite`[]
212
+
213
+ #### Returns
214
+
215
+ `any`
216
+
217
+ #### See
218
+
219
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
220
+
221
+ #### Inherited from
222
+
223
+ [`WalletError`](WalletError.md).[`prepareStackTrace`](WalletError.md#preparestacktrace)
@@ -0,0 +1,223 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / WalletWindowClosedError
6
+
7
+ # Class: WalletWindowClosedError
8
+
9
+ ## Extends
10
+
11
+ - [`WalletError`](WalletError.md)
12
+
13
+ ## Constructors
14
+
15
+ ### Constructor
16
+
17
+ > **new WalletWindowClosedError**(`message?`, `error?`): `WalletWindowClosedError`
18
+
19
+ #### Parameters
20
+
21
+ ##### message?
22
+
23
+ `string`
24
+
25
+ ##### error?
26
+
27
+ `any`
28
+
29
+ #### Returns
30
+
31
+ `WalletWindowClosedError`
32
+
33
+ #### Inherited from
34
+
35
+ [`WalletError`](WalletError.md).[`constructor`](WalletError.md#constructor)
36
+
37
+ ## Properties
38
+
39
+ ### cause?
40
+
41
+ > `optional` **cause**: `unknown`
42
+
43
+ #### Inherited from
44
+
45
+ [`WalletError`](WalletError.md).[`cause`](WalletError.md#cause)
46
+
47
+ ***
48
+
49
+ ### error
50
+
51
+ > **error**: `any`
52
+
53
+ #### Inherited from
54
+
55
+ [`WalletError`](WalletError.md).[`error`](WalletError.md#error)
56
+
57
+ ***
58
+
59
+ ### message
60
+
61
+ > **message**: `string`
62
+
63
+ #### Inherited from
64
+
65
+ [`WalletError`](WalletError.md).[`message`](WalletError.md#message)
66
+
67
+ ***
68
+
69
+ ### name
70
+
71
+ > **name**: `string` = `'WalletWindowClosedError'`
72
+
73
+ #### Overrides
74
+
75
+ [`WalletError`](WalletError.md).[`name`](WalletError.md#name)
76
+
77
+ ***
78
+
79
+ ### stack?
80
+
81
+ > `optional` **stack**: `string`
82
+
83
+ #### Inherited from
84
+
85
+ [`WalletError`](WalletError.md).[`stack`](WalletError.md#stack)
86
+
87
+ ***
88
+
89
+ ### stackTraceLimit
90
+
91
+ > `static` **stackTraceLimit**: `number`
92
+
93
+ The `Error.stackTraceLimit` property specifies the number of stack frames
94
+ collected by a stack trace (whether generated by `new Error().stack` or
95
+ `Error.captureStackTrace(obj)`).
96
+
97
+ The default value is `10` but may be set to any valid JavaScript number. Changes
98
+ will affect any stack trace captured _after_ the value has been changed.
99
+
100
+ If set to a non-number value, or set to a negative number, stack traces will
101
+ not capture any frames.
102
+
103
+ #### Inherited from
104
+
105
+ [`WalletError`](WalletError.md).[`stackTraceLimit`](WalletError.md#stacktracelimit)
106
+
107
+ ## Methods
108
+
109
+ ### captureStackTrace()
110
+
111
+ > `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
112
+
113
+ Creates a `.stack` property on `targetObject`, which when accessed returns
114
+ a string representing the location in the code at which
115
+ `Error.captureStackTrace()` was called.
116
+
117
+ ```js
118
+ const myObject = {};
119
+ Error.captureStackTrace(myObject);
120
+ myObject.stack; // Similar to `new Error().stack`
121
+ ```
122
+
123
+ The first line of the trace will be prefixed with
124
+ `${myObject.name}: ${myObject.message}`.
125
+
126
+ The optional `constructorOpt` argument accepts a function. If given, all frames
127
+ above `constructorOpt`, including `constructorOpt`, will be omitted from the
128
+ generated stack trace.
129
+
130
+ The `constructorOpt` argument is useful for hiding implementation
131
+ details of error generation from the user. For instance:
132
+
133
+ ```js
134
+ function a() {
135
+ b();
136
+ }
137
+
138
+ function b() {
139
+ c();
140
+ }
141
+
142
+ function c() {
143
+ // Create an error without stack trace to avoid calculating the stack trace twice.
144
+ const { stackTraceLimit } = Error;
145
+ Error.stackTraceLimit = 0;
146
+ const error = new Error();
147
+ Error.stackTraceLimit = stackTraceLimit;
148
+
149
+ // Capture the stack trace above function b
150
+ Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
151
+ throw error;
152
+ }
153
+
154
+ a();
155
+ ```
156
+
157
+ #### Parameters
158
+
159
+ ##### targetObject
160
+
161
+ `object`
162
+
163
+ ##### constructorOpt?
164
+
165
+ `Function`
166
+
167
+ #### Returns
168
+
169
+ `void`
170
+
171
+ #### Inherited from
172
+
173
+ [`WalletError`](WalletError.md).[`captureStackTrace`](WalletError.md#capturestacktrace)
174
+
175
+ ***
176
+
177
+ ### isError()
178
+
179
+ > `static` **isError**(`error`): `error is Error`
180
+
181
+ Indicates whether the argument provided is a built-in Error instance or not.
182
+
183
+ #### Parameters
184
+
185
+ ##### error
186
+
187
+ `unknown`
188
+
189
+ #### Returns
190
+
191
+ `error is Error`
192
+
193
+ #### Inherited from
194
+
195
+ [`WalletError`](WalletError.md).[`isError`](WalletError.md#iserror)
196
+
197
+ ***
198
+
199
+ ### prepareStackTrace()
200
+
201
+ > `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
202
+
203
+ #### Parameters
204
+
205
+ ##### err
206
+
207
+ `Error`
208
+
209
+ ##### stackTraces
210
+
211
+ `CallSite`[]
212
+
213
+ #### Returns
214
+
215
+ `any`
216
+
217
+ #### See
218
+
219
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
220
+
221
+ #### Inherited from
222
+
223
+ [`WalletError`](WalletError.md).[`prepareStackTrace`](WalletError.md#preparestacktrace)
@@ -0,0 +1,37 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / AllowedPrivateData
6
+
7
+ # Enumeration: AllowedPrivateData
8
+
9
+ ## Enumeration Members
10
+
11
+ ### All
12
+
13
+ > **All**: `65535`
14
+
15
+ ***
16
+
17
+ ### Assets
18
+
19
+ > **Assets**: `1`
20
+
21
+ ***
22
+
23
+ ### None
24
+
25
+ > **None**: `0`
26
+
27
+ ***
28
+
29
+ ### Notes
30
+
31
+ > **Notes**: `2`
32
+
33
+ ***
34
+
35
+ ### Storage
36
+
37
+ > **Storage**: `4`
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / PrivateDataPermission
6
+
7
+ # Enumeration: PrivateDataPermission
8
+
9
+ ## Enumeration Members
10
+
11
+ ### Auto
12
+
13
+ > **Auto**: `"AUTO"`
14
+
15
+ ***
16
+
17
+ ### UponRequest
18
+
19
+ > **UponRequest**: `"UPON_REQUEST"`
@@ -0,0 +1,25 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / TransactionType
6
+
7
+ # Enumeration: TransactionType
8
+
9
+ ## Enumeration Members
10
+
11
+ ### Consume
12
+
13
+ > **Consume**: `"consume"`
14
+
15
+ ***
16
+
17
+ ### Custom
18
+
19
+ > **Custom**: `"custom"`
20
+
21
+ ***
22
+
23
+ ### Send
24
+
25
+ > **Send**: `"send"`
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / WalletAdapterNetwork
6
+
7
+ # Enumeration: WalletAdapterNetwork
8
+
9
+ ## Enumeration Members
10
+
11
+ ### Localnet
12
+
13
+ > **Localnet**: `"localnet"`
14
+
15
+ ***
16
+
17
+ ### Testnet
18
+
19
+ > **Testnet**: `"testnet"`
@@ -0,0 +1,49 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / WalletReadyState
6
+
7
+ # Enumeration: WalletReadyState
8
+
9
+ A wallet's readiness describes a series of states that the wallet can be in,
10
+ depending on what kind of wallet it is. An installable wallet (eg. a browser
11
+ extension like Phantom) might be `Installed` if we've found the Phantom API
12
+ in the global scope, or `NotDetected` otherwise. A loadable, zero-install
13
+ runtime (eg. Torus Wallet) might simply signal that it's `Loadable`. Use this
14
+ metadata to personalize the wallet list for each user (eg. to show their
15
+ installed wallets first).
16
+
17
+ ## Enumeration Members
18
+
19
+ ### Installed
20
+
21
+ > **Installed**: `"Installed"`
22
+
23
+ User-installable wallets can typically be detected by scanning for an API
24
+ that they've injected into the global context. If such an API is present,
25
+ we consider the wallet to have been installed.
26
+
27
+ ***
28
+
29
+ ### Loadable
30
+
31
+ > **Loadable**: `"Loadable"`
32
+
33
+ Loadable wallets are always available to you. Since you can load them at
34
+ any time, it's meaningless to say that they have been detected.
35
+
36
+ ***
37
+
38
+ ### NotDetected
39
+
40
+ > **NotDetected**: `"NotDetected"`
41
+
42
+ ***
43
+
44
+ ### Unsupported
45
+
46
+ > **Unsupported**: `"Unsupported"`
47
+
48
+ If a wallet is not supported on a given platform (eg. server-rendering, or
49
+ mobile) then it will stay in the `Unsupported` state.
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / b64ToU8
6
+
7
+ # Function: b64ToU8()
8
+
9
+ > **b64ToU8**(`b64`): `Uint8Array`
10
+
11
+ ## Parameters
12
+
13
+ ### b64
14
+
15
+ `string`
16
+
17
+ ## Returns
18
+
19
+ `Uint8Array`
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / scopePollingDetectionStrategy
6
+
7
+ # Function: scopePollingDetectionStrategy()
8
+
9
+ > **scopePollingDetectionStrategy**(`detect`): `void`
10
+
11
+ ## Parameters
12
+
13
+ ### detect
14
+
15
+ () => `boolean`
16
+
17
+ ## Returns
18
+
19
+ `void`
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / u8ToB64
6
+
7
+ # Function: u8ToB64()
8
+
9
+ > **u8ToB64**(`u8`): `string`
10
+
11
+ ## Parameters
12
+
13
+ ### u8
14
+
15
+ `Uint8Array`
16
+
17
+ ## Returns
18
+
19
+ `string`
@@ -0,0 +1,19 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / Asset
6
+
7
+ # Interface: Asset
8
+
9
+ ## Properties
10
+
11
+ ### amount
12
+
13
+ > **amount**: `string`
14
+
15
+ ***
16
+
17
+ ### faucetId
18
+
19
+ > **faucetId**: `string`
@@ -0,0 +1,13 @@
1
+ [**@miden-sdk/miden-wallet-adapter-base**](../README.md)
2
+
3
+ ***
4
+
5
+ [@miden-sdk/miden-wallet-adapter-base](../README.md) / IFailedTransactionOutput
6
+
7
+ # Interface: IFailedTransactionOutput
8
+
9
+ ## Properties
10
+
11
+ ### errorMessage
12
+
13
+ > **errorMessage**: `string`