Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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: 7 additions & 0 deletions docs/examples/ts/aztecjs_connection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ const { result: balance } = await token.methods
console.log(`Alice's token balance: ${balance}`);
// docs:end:simulate_function

// The bridged Fee Juice claim only becomes consumable once the network's inbox lag (2 checkpoints)
// has elapsed since the L1->L2 message was inserted. The token deploy and mint above produced two
// blocks; mine one more here so the claim is available when we pay with it below.
await token.methods
.mint_to_public(aliceAddress, 1n)
.send({ from: aliceAddress });

// docs:start:bridge_fee_juice_claim
import { FeeJuicePaymentMethodWithClaim } from "@aztec/aztec.js/fee";

Expand Down
2 changes: 1 addition & 1 deletion spartan/environments/network-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ l1-contracts: &l1-contracts-defaults
# Proof & Block Configuration
#---------------------------------------------------------------------------
# Checkpoints to lag in inbox (prevents sequencer DOS attacks).
AZTEC_INBOX_LAG: 1
AZTEC_INBOX_LAG: 2
# Epochs after end that proofs are still accepted.
AZTEC_PROOF_SUBMISSION_EPOCHS: 1
# Target mana consumption per block.
Expand Down
1 change: 1 addition & 0 deletions spartan/environments/next-scenario.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DESTROY_ETH_DEVNET=true
CREATE_ETH_DEVNET=true
AZTEC_EPOCH_DURATION=32
AZTEC_SLOT_DURATION=36
AZTEC_INBOX_LAG=2
ETHEREUM_CHAIN_ID=1337
LABS_INFRA_MNEMONIC="test test test test test test test test test test test junk"
FUNDING_PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
Expand Down
Loading
Loading