Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,15 @@ it. The deployer already holds HYPE, because that is what it pays gas in, so it
credits itself:

```sh
HYPERCORE_CREDIT_WEI=10000000000000000 DEPLOYMENT_KEY=0x... \
read -rs DEPLOYMENT_KEY && export DEPLOYMENT_KEY
HYPERCORE_CREDIT_WEI=10000000000000000 \
nix develop -c forge script script/CreditHyperCore.sol:CreditHyperCore --legacy
```

The key is read rather than written into the command, because a
`DEPLOYMENT_KEY=0x...` prefix is a private key in the shell's history file,
where it outlives the run and the terminal both.

Run exactly that first, without `--broadcast`: it is a dry run against a fork of
HyperEVM that executes every guard and the transfer itself and sends nothing, so
anything the real run would refuse is refused there for free. Add `--broadcast`
Expand Down
7 changes: 6 additions & 1 deletion script/CreditHyperCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ import {LibHyperCore} from "../src/lib/LibHyperCore.sol";
/// It is run by hand instead:
///
/// ```sh
/// HYPERCORE_CREDIT_WEI=10000000000000000 DEPLOYMENT_KEY=0x... \
/// read -rs DEPLOYMENT_KEY && export DEPLOYMENT_KEY
/// HYPERCORE_CREDIT_WEI=10000000000000000 \
/// forge script script/CreditHyperCore.sol:CreditHyperCore --legacy
/// ```
///
/// The key is read rather than written into the command: a
/// `DEPLOYMENT_KEY=0x...` prefix leaves a private key in the shell's history
/// file, where it outlives both the run and the terminal.
///
/// Without `--broadcast` that is a dry run against a fork of HyperEVM, which
/// executes every guard and the transfer itself and sends nothing. Do that
/// first: it is the same code path, so anything it refuses is something the
Expand Down
Loading