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
9 changes: 8 additions & 1 deletion src/pages/sdk/foundry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Next, run:
foundryup -n tempo
```

It will automatically install the latest `nightly` release of the precompiled binaries: [`forge`](https://getfoundry.sh/forge/overview#forge) and [`cast`](https://getfoundry.sh/cast/overview#cast).
It will automatically install the latest `nightly` release of all precompiled binaries: [`forge`](https://getfoundry.sh/forge/overview#forge), [`cast`](https://getfoundry.sh/cast/overview#cast), [`anvil`](https://getfoundry.sh/anvil/overview#anvil), and [`chisel`](https://getfoundry.sh/chisel/overview#chisel).

To install a specific version, replace `<TAG_NAME>` with the desired release tag:

Expand Down Expand Up @@ -114,8 +114,14 @@ forge create src/Mail.sol:Mail \
--verify \
--constructor-args 0x20c0000000000000000000000000000000000001

# Set a salt for deterministic contract address derivation
# The salt is passed to TIP20_FACTORY.createToken() which uses it with the sender
# address to compute a deterministic deployment address via getTokenAddress(sender, salt)
export SALT="my-unique-salt"

# Run a deployment script and verify
forge script script/Mail.s.sol \
--sig "run(string)" $SALT \
--rpc-url $TEMPO_RPC_URL \
--interactive \
--sender <YOUR_WALLET_ADDRESS> \
Expand All @@ -124,6 +130,7 @@ forge script script/Mail.s.sol \

# Run a deployment script with custom fee token and verify
forge script script/Mail.s.sol \
--sig "run(string)" $SALT \
--tempo.fee-token <FEE_TOKEN_ADDRESS> \
--rpc-url $TEMPO_RPC_URL \
--interactive \
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ function syncTips(): Plugin {

await Promise.all(
tipFiles.map(async (file) => {
const content = await fetch(file.download_url).then((r) => r.text())
let content = await fetch(file.download_url).then((r) => r.text())
// Fix dead links in TIPs that reference local paths instead of GitHub URLs
content = content.replace(
/\(tips\/ref-impls\/src\/interfaces\/(\w+\.sol)\)/g,
'(https://github.com/tempoxyz/tempo-std/blob/master/src/interfaces/$1)',
)
const outputPath = path.join(outputDir, file.name.replace('.md', '.mdx'))
await fs.writeFile(outputPath, content)
}),
Expand Down