@kimafinance/kima-transaction-widget 1.5.28 → 1.5.30
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/README.md +16 -6
- package/dist/index.cjs +1860 -1707
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1802 -1648
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +37 -37
- package/dist/index.d.ts +37 -37
- package/dist/index.js +1830 -1671
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -12
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ const App = () => {
|
|
|
31
31
|
return (
|
|
32
32
|
<KimaProvider
|
|
33
33
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
34
|
-
|
|
34
|
+
projectId='e579511a495b5c312b572b036e60555a'
|
|
35
35
|
externalProvider={} // in case you want to provide an already connected wallet
|
|
36
36
|
>
|
|
37
37
|
<KimaTransactionWidget
|
|
@@ -78,7 +78,7 @@ const App = () => {
|
|
|
78
78
|
return (
|
|
79
79
|
<KimaProvider
|
|
80
80
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
81
|
-
|
|
81
|
+
projectId='e579511a495b5c312b572b036e60555a'
|
|
82
82
|
externalProvider={} // in case you want to provide an already connected wallet
|
|
83
83
|
>
|
|
84
84
|
<KimaTransactionWidget
|
|
@@ -122,7 +122,7 @@ const App = () => {
|
|
|
122
122
|
return (
|
|
123
123
|
<KimaProvider
|
|
124
124
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
125
|
-
|
|
125
|
+
projectId='e579511a495b5c312b572b036e60555a'
|
|
126
126
|
>
|
|
127
127
|
<KimaTransactionWidget
|
|
128
128
|
theme={{
|
|
@@ -267,7 +267,7 @@ Used to specify payment screen's title.
|
|
|
267
267
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
268
268
|
externalProvider={new Web3Provider()}
|
|
269
269
|
logLevel='debug' // optional, default is 'error'
|
|
270
|
-
|
|
270
|
+
projectId='e579511a495b5c312b572b036e60555a'
|
|
271
271
|
>
|
|
272
272
|
{/ * etc */}
|
|
273
273
|
</KimaProvider>
|
|
@@ -282,9 +282,9 @@ Used to specify kima transaction backend url.
|
|
|
282
282
|
- Required: `true`
|
|
283
283
|
- Type: `string`
|
|
284
284
|
|
|
285
|
-
### `
|
|
285
|
+
### `projectId`
|
|
286
286
|
|
|
287
|
-
Used to specify the
|
|
287
|
+
Used to specify the Reown project id. A default value is provided, but you can specify your own. To create a project, visit [Reown Cloud](https://cloud.reown.com/sign-in) and sign up for a free account.
|
|
288
288
|
|
|
289
289
|
- Required: `false`
|
|
290
290
|
- Type: `string`
|
|
@@ -318,6 +318,16 @@ interface ExternalProvider {
|
|
|
318
318
|
- `closeHandler: (e: any) => void`: Callback function to handle close event.
|
|
319
319
|
- `successHandler: (e: any) => void`: Callback function to handle success event after transaction submission to kima transaction backend.
|
|
320
320
|
|
|
321
|
+
## Testing
|
|
322
|
+
|
|
323
|
+
Run the widget test suite with:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
npm test
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
The repository keeps contract-focused tests for the public widget API, plugin runtime resolution and the core pure helpers used by transfer and status flows.
|
|
330
|
+
|
|
321
331
|
- `switchChainHandler: (chainId: number) => void`: Callback function to handle chain switch event.
|
|
322
332
|
|
|
323
333
|
- `keplrHandler: (e: any) => void`: Callback function to handle Keplr wallet events.
|