moneysurfer 0.1.2 → 0.2.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 +11 -4
- package/dist/cli.js +549 -301
- package/package.json +9 -11
package/README.md
CHANGED
|
@@ -8,10 +8,10 @@ moneysurfer [v1|v2] <command> ...
|
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
- Full V1 and V2 support: V1 on Ethereum, Optimism and Arbitrum; V2 on
|
|
11
|
+
- Full V1 and V2 support: V1 on Ethereum, Optimism and Arbitrum; V2 on Ethereum and BNB Chain
|
|
12
12
|
- One seed per protocol
|
|
13
13
|
- Nothing is sent to the ASP; its set is read from the chain
|
|
14
|
-
- Withdraw via a relayer
|
|
14
|
+
- Withdraw via a relayer, yourself, or a Safe; ragequit if unapproved
|
|
15
15
|
- Local prover in pure JS, everything simulated before sending
|
|
16
16
|
- Sign with Frame, a private key or a keystore
|
|
17
17
|
- Minimal and security audited dependencies, bundled in: an install adds one package
|
|
@@ -46,7 +46,11 @@ A deposit can be withdrawn once the ASP approves it (up to 7 days); until then
|
|
|
46
46
|
|
|
47
47
|
### V2
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
A withdrawal goes through 0xbow's relayer, which pays the gas and takes its fee out of
|
|
50
|
+
`<amount>`. With `--self` or `--safe` you submit it instead, and then `<to>` has to be the
|
|
51
|
+
submitter: the pool pays `msg.sender`, and only a relayer's contract splits the payout.
|
|
52
|
+
`--safe` also spends the Safe's own notes; add `--owner ADDR` to have it submit a withdrawal of
|
|
53
|
+
ADDR's notes instead, proposed by any owner or delegate.
|
|
50
54
|
|
|
51
55
|
```sh
|
|
52
56
|
moneysurfer v2 setup
|
|
@@ -54,9 +58,12 @@ moneysurfer v2 init # --from-wallet derives the seed the app woul
|
|
|
54
58
|
moneysurfer v2 register # a Keystore leaf; required before spending
|
|
55
59
|
moneysurfer v2 pools
|
|
56
60
|
moneysurfer v2 deposit usdc 10.02
|
|
57
|
-
moneysurfer v2 withdraw ppusdc 5 0xRecipient
|
|
61
|
+
moneysurfer v2 withdraw ppusdc 5 0xRecipient
|
|
58
62
|
```
|
|
59
63
|
|
|
64
|
+
`--chain bnb` uses BNB Chain, with a seed's notes kept apart from its mainnet ones. It needs
|
|
65
|
+
`--rpc-url`: no public BNB Chain RPC serves the logs a sync reads.
|
|
66
|
+
|
|
60
67
|
Run `moneysurfer help` for all commands and options.
|
|
61
68
|
|
|
62
69
|
## License
|