@caatinga/client 2.4.1 → 2.4.3
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 +5 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,7 +64,6 @@ Supported type-only root exports:
|
|
|
64
64
|
- `CaatingaReadOptions`
|
|
65
65
|
- `CaatingaReadResult`
|
|
66
66
|
- `CaatingaWalletAdapter`
|
|
67
|
-
- `CaatingaWalletCapabilities`
|
|
68
67
|
- `CaatingaXdrBuildResult`
|
|
69
68
|
- `WalletSession`, `WalletSessionOptions`, `WalletSessionState`, `WalletSessionStatus`, `WalletSessionStorage`
|
|
70
69
|
|
|
@@ -73,6 +72,7 @@ Supported subpath exports:
|
|
|
73
72
|
- `@caatinga/client/freighter` -> `freighterWalletAdapter` (optional)
|
|
74
73
|
- `@caatinga/client/stellar-wallets-kit` -> `createStellarWalletsKitAdapter` (optional)
|
|
75
74
|
- `@caatinga/client/react` -> `WalletProvider`, `useWallet`, `useWalletSession` (optional, needs `react >= 18`)
|
|
75
|
+
- `@caatinga/client/vite` -> `walletStubViteAliases`, `walletStubOverrides`, `walletStubPnpmWorkspaceYaml` (Vite bundler helpers for SWK stubs)
|
|
76
76
|
|
|
77
77
|
Primary flow:
|
|
78
78
|
|
|
@@ -149,7 +149,7 @@ import { WalletProvider, useWallet } from "@caatinga/client/react";
|
|
|
149
149
|
<App />
|
|
150
150
|
</WalletProvider>;
|
|
151
151
|
|
|
152
|
-
const { publicKey, connected, connecting, error, connect, disconnect } = useWallet();
|
|
152
|
+
const { publicKey, connected, connecting, error, connect, disconnect, session } = useWallet();
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
Full guide: [docs/wallets.md](https://github.com/Dione-b/caatinga/blob/main/docs/wallets.md).
|
|
@@ -173,11 +173,14 @@ Common codes include:
|
|
|
173
173
|
- `CAATINGA_BINDING_CLIENT_NOT_FOUND`
|
|
174
174
|
- `CAATINGA_BINDING_METHOD_NOT_FOUND`
|
|
175
175
|
- `CAATINGA_WALLET_NOT_CONNECTED`
|
|
176
|
+
- `CAATINGA_WALLET_TIMEOUT`
|
|
176
177
|
- `CAATINGA_XDR_BUILD_FAILED`
|
|
177
178
|
- `CAATINGA_XDR_PREPARE_FAILED`
|
|
178
179
|
- `CAATINGA_XDR_SIGN_FAILED`
|
|
179
180
|
- `CAATINGA_XDR_SUBMIT_FAILED`
|
|
180
181
|
- `CAATINGA_XDR_RESULT_FAILED`
|
|
182
|
+
- `CAATINGA_READ_RESULT_MISSING`
|
|
183
|
+
- `CAATINGA_PLACEHOLDER_BINDING`
|
|
181
184
|
|
|
182
185
|
## Limitations
|
|
183
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caatinga/client",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Browser and Node client for Soroban smart contracts — connects generated bindings, Caatinga artifacts, and wallet adapters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stellar",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"LICENSE"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@caatinga/core": "^2.4.
|
|
64
|
+
"@caatinga/core": "^2.4.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"tsup": "^8.3.5",
|