@tuwaio/pulsar-evm 0.5.0 → 0.5.2
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 +6 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -71,10 +71,16 @@ export const usePulsarStore = createBoundedUseStore(
|
|
|
71
71
|
createPulsarStore<TransactionUnion>({
|
|
72
72
|
name: storageName,
|
|
73
73
|
adapter: pulsarEvmAdapter(config, appChains),
|
|
74
|
+
beforeTxProcess: async () => {
|
|
75
|
+
// Optional global preflight. Throw here to block before wallet interaction.
|
|
76
|
+
await assertUserCanSubmitTransactions();
|
|
77
|
+
},
|
|
74
78
|
}),
|
|
75
79
|
);
|
|
76
80
|
```
|
|
77
81
|
|
|
82
|
+
`@tuwaio/pulsar-core` validates EVM transaction metadata before any wallet interaction or persistence. `title` strings are limited to 100 characters, `description` strings to 300 characters, and the serialized `payload` to 10KB. A local `beforeTxProcess` passed to `executeTxAction` overrides the global callback from `createPulsarStore`.
|
|
83
|
+
|
|
78
84
|
### 2. Using Standalone Trackers
|
|
79
85
|
|
|
80
86
|
You can use `evmTracker` for standard transactions or `initializePollingTracker` with `gelatoFetcher`/`safeFetcher` for polling-based tracking.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/pulsar-evm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tuwaio/orbit-core": "^0.2.8",
|
|
53
|
-
"@tuwaio/orbit-evm": "^0.2.
|
|
54
|
-
"@wagmi/core": "^3.4.
|
|
53
|
+
"@tuwaio/orbit-evm": "^0.2.12",
|
|
54
|
+
"@wagmi/core": "^3.4.9",
|
|
55
55
|
"dayjs": "^1.11.20",
|
|
56
|
-
"immer": "^11.1.
|
|
57
|
-
"jsdom": "^29.1.
|
|
56
|
+
"immer": "^11.1.8",
|
|
57
|
+
"jsdom": "^29.1.1",
|
|
58
58
|
"tsup": "^8.5.1",
|
|
59
59
|
"typescript": "^6.0.3",
|
|
60
|
-
"viem": "^2.48.
|
|
60
|
+
"viem": "^2.48.11",
|
|
61
61
|
"vitest": "^4.1.5",
|
|
62
|
-
"zustand": "^5.0.
|
|
62
|
+
"zustand": "^5.0.13",
|
|
63
63
|
"dotenv": "^17.4.2",
|
|
64
|
-
"@tuwaio/pulsar-core": "^0.6.
|
|
64
|
+
"@tuwaio/pulsar-core": "^0.6.3"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"start": "tsup src/index.ts --watch",
|