@spectratools/tx-shared 0.4.2 → 0.5.1
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 -2
- package/dist/chunk-HFRJBEDT.js +1144 -0
- package/dist/errors.d.ts +1 -1
- package/dist/execute-tx-DO8p_9dP.d.ts +160 -0
- package/dist/execute-tx.d.ts +4 -63
- package/dist/execute-tx.js +1 -1
- package/dist/index.d.ts +54 -47
- package/dist/index.js +25 -381
- package/package.json +1 -1
- package/dist/chunk-4XI6TBKX.js +0 -130
package/README.md
CHANGED
|
@@ -56,7 +56,11 @@ export PRIVY_WALLET_ID="..."
|
|
|
56
56
|
export PRIVY_AUTHORIZATION_KEY="..."
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
> Privy signer
|
|
59
|
+
> Privy signer resolution performs wallet address lookup and returns a Privy-backed account adapter with:
|
|
60
|
+
> - `sendTransaction` → `eth_sendTransaction`
|
|
61
|
+
> - `signMessage` → `personal_sign`
|
|
62
|
+
> - `signTypedData` → `eth_signTypedData_v4`
|
|
63
|
+
> - `signTransaction` → `eth_signTransaction` (returns serialized tx hex; broadcast separately via `sendRawTransaction`)
|
|
60
64
|
|
|
61
65
|
## `resolveSigner()` usage
|
|
62
66
|
|
|
@@ -185,7 +189,7 @@ try {
|
|
|
185
189
|
- ensure keystore is valid V3 JSON
|
|
186
190
|
- **`PRIVY_AUTH_FAILED`**
|
|
187
191
|
- verify all `PRIVY_*` variables are set
|
|
188
|
-
-
|
|
192
|
+
- check signer/owner policy constraints for the Privy wallet
|
|
189
193
|
- **`GAS_ESTIMATION_FAILED` / `TX_REVERTED`**
|
|
190
194
|
- validate function args and `value`
|
|
191
195
|
- run with `dryRun: true` first
|