@stridge/kit 0.1.0-alpha.14 → 0.1.0-alpha.15
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 +17 -3
- package/dist/package.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ React widgets and headless hooks for the Stridge Gateway — drop-in deposit and
|
|
|
10
10
|
pnpm add @stridge/kit
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Peer dependencies: `react`, `react-dom`, `viem
|
|
13
|
+
Peer dependencies: `react`, `react-dom`, `viem`. `wagmi` is optional — required only when you enable the deposit/wallet method (the customer signs the source-chain transfer from their connected wallet). Withdraw and deposit/transfer-crypto work without wagmi.
|
|
14
14
|
|
|
15
15
|
## Quick start
|
|
16
16
|
|
|
@@ -22,12 +22,26 @@ import { WithdrawDialog } from "@stridge/kit/withdraw/dialog";
|
|
|
22
22
|
<StridgeProvider
|
|
23
23
|
gatewayKey={process.env.NEXT_PUBLIC_STRIDGE_GATEWAY_KEY!}
|
|
24
24
|
asset={{ chain: chains.bsc, symbol: "USDC" }}
|
|
25
|
-
flows={{
|
|
25
|
+
flows={{
|
|
26
|
+
deposit: {
|
|
27
|
+
// Required — where bridged funds settle (your treasury, or the customer's wallet
|
|
28
|
+
// under a same-owner-only gateway-kit configuration).
|
|
29
|
+
destination: { address: customerAddress },
|
|
30
|
+
// Optional — `gateway/start.owner` for deposit UDAs. Falls back to the connected
|
|
31
|
+
// wagmi wallet when omitted.
|
|
32
|
+
owner: { address: customerAddress },
|
|
33
|
+
},
|
|
34
|
+
withdraw: {
|
|
35
|
+
// Required — `gateway/start.owner` for withdraw UDAs. The kit scopes settlement
|
|
36
|
+
// polls against this address.
|
|
37
|
+
owner: { address: customerAddress },
|
|
38
|
+
},
|
|
39
|
+
}}
|
|
26
40
|
appearance={{ theme: "dark", accent: "oklch(78% 0.15 240)", radius: "rounded" }}
|
|
27
41
|
>
|
|
28
42
|
<YourApp />
|
|
29
43
|
<DepositDialog />
|
|
30
|
-
<WithdrawDialog />
|
|
44
|
+
<WithdrawDialog balance={liveBalance} onSubmit={handleWithdrawSubmit} />
|
|
31
45
|
</StridgeProvider>;
|
|
32
46
|
```
|
|
33
47
|
|
package/dist/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.1.0-alpha.
|
|
1
|
+
var e=`0.1.0-alpha.15`;export{e as version};
|