From 487c992b858e3f800fa46e3975d4b19cd387d4b1 Mon Sep 17 00:00:00 2001 From: Tanya S <120410716+stubbsta@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:37:30 +0200 Subject: [PATCH] Add info for dogfooding to mint tokens with burning ETH method (#181) Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dogfooding/.env.example.publisher | 4 ++++ dogfooding/dogfood_readme.md | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dogfooding/.env.example.publisher b/dogfooding/.env.example.publisher index 0f2847c..9ab81f7 100644 --- a/dogfooding/.env.example.publisher +++ b/dogfooding/.env.example.publisher @@ -22,6 +22,10 @@ RLN_CONTRACT_ADDRESS=0xB9cd878C90E49F797B4431fBF4fb333108CB90e6 # Address of the RLN Membership Token contract on Linea Sepolia used to pay for membership. TOKEN_CONTRACT_ADDRESS=0xd28d1a688b1cBf5126fB8B034d0150C81ec0024c +# Amount of Linea Sepolia ETH to send with the minting transaction to obtain RLN membership tokens. +# Conversion rate is 1:1 (1 ETH = 1 token). e.g. use value of 5000000000000000000 (wei) for 5 tokens (5 ETH) +ETH_AMOUNT= + # Password you would like to use to protect your RLN membership. RLN_RELAY_CRED_PASSWORD="my_secure_keystore_password" diff --git a/dogfooding/dogfood_readme.md b/dogfooding/dogfood_readme.md index 6b31798..680cd70 100644 --- a/dogfooding/dogfood_readme.md +++ b/dogfooding/dogfood_readme.md @@ -9,7 +9,12 @@ ``` cp dogfooding/.env.example.publisher .env ``` -2. Obtain test tokens (if needed, request in Discord). +2. Obtain test tokens. + The total tokens minted is determined by the amount of ETH sent with the transaction. + + ``` + cast send $TOKEN_CONTRACT_ADDRESS "mintWithETH(address)" $ETH_TESTNET_ACCOUNT --value $ETH_AMOUNT --rpc-url $RLN_RELAY_ETH_CLIENT_ADDRESS --private-key $ETH_TESTNET_KEY + ``` 3. Run the RLN registration script: ```