@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 CHANGED
@@ -56,7 +56,11 @@ export PRIVY_WALLET_ID="..."
56
56
  export PRIVY_AUTHORIZATION_KEY="..."
57
57
  ```
58
58
 
59
- > Privy signer execution is intentionally stubbed right now and throws `PRIVY_AUTH_FAILED` with a deterministic message. Full implementation is tracked in [issue #117](https://github.com/spectra-the-bot/spectra-tools/issues/117).
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
- - note: provider is not live yet (see #117)
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