Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ src/pages/protocol/tips/tip-*
# Playwright
playwright-report/
test-results/
.zed
2 changes: 1 addition & 1 deletion src/components/MermaidDiagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export function animate(
const map = new Map<number, Item>()
const get = (i: number, isNote = false) => {
if (!map.has(i)) map.set(i, { si: i, fade: [], isNote })
return map.get(i)!
return map.get(i) as Item
}

svg.querySelectorAll<SVGElement>('[data-step]').forEach((el) => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/quickstart/verify-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ To verify a contract that's already deployed, use `forge verify-contract`:

```bash
forge verify-contract \
--rpc-url $TEMPO_RPC_URL \
--verifier-url https://contracts.tempo.xyz \
<CONTRACT_ADDRESS> \
src/MyContract.sol:MyContract
Expand Down
17 changes: 14 additions & 3 deletions src/pages/sdk/foundry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export VERIFIER_URL=https://contracts.tempo.xyz

# Optional: create a new keypair and request some testnet tokens from the faucet.
cast wallet new
cast rpc tempo_fundAddress <YOUR_WALLET_ADDRESS> --rpc-url $TEMPO_RPC_URL
cast rpc tempo_fundAddress <YOUR_WALLET_ADDRESS> --rpc-url https://rpc.moderato.tempo.xyz

# Run all tests on Tempo's testnet
forge test
Expand All @@ -117,6 +117,15 @@ forge create src/Mail.sol:Mail \
--verify \
--constructor-args 0x20c0000000000000000000000000000000000001

# Deploy using an access key (delegated signing)
forge create src/Mail.sol:Mail \
--tempo.access-key $ACCESS_KEY_PRIVATE_KEY \
--tempo.root-account $ROOT_ADDRESS \
--rpc-url $TEMPO_RPC_URL \
--broadcast \
--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)
Expand Down Expand Up @@ -244,8 +253,8 @@ cast send 0xAAAAAAAA00000000000000000000000000000000 \
# Then send using the access key
cast send <CONTRACT_ADDRESS> 'increment()' \
--rpc-url $TEMPO_RPC_URL \
--access-key $ACCESS_KEY_PRIVATE_KEY \
--root-account $ROOT_ADDRESS
--tempo.access-key $ACCESS_KEY_PRIVATE_KEY \
--tempo.root-account $ROOT_ADDRESS
```

### Local Development with Anvil
Expand Down Expand Up @@ -301,6 +310,8 @@ The following flags are available for `cast` and `forge script` for Tempo-specif
| `--tempo.valid-after <TIMESTAMP>` | Unix timestamp after which tx can execute | `--tempo.valid-after 1704067100` |
| `--tempo.sponsor-signature <SIG>` | Pre-signed sponsor signature for gasless transactions | `--tempo.sponsor-signature 0x...` |
| `--tempo.print-sponsor-hash` | Print fee payer signature hash and exit (for sponsor to sign) | `--tempo.print-sponsor-hash` |
| `--tempo.access-key <KEY>` | Private key for delegated signing via access key | `--tempo.access-key $ACCESS_KEY_PRIVATE_KEY` |
| `--tempo.root-account <ADDRESS>` | Root account address when using an access key | `--tempo.root-account $ROOT_ADDRESS` |

Ledger and Trezor wallets are not yet compatible with any `--tempo.*` option.

Expand Down
Loading