Tanya S a1d97fcad9
Initialise TST MaxSupply on deployment (#37)
* Implement init maxSupply when deploying TST

* README and comments updates

* Move the maxSupply!=zero check to init function and add test

* Fix mintWithEth command in test/README.md

* Remove incorrect proxy deployment in TestStableTokenFactory

* Remove redundant post deploy check

* Update test/README with default token amount in ETH

* Update README section on Proxy address upgrade

* Add example env for TST commands

* Add prerequisites section to test/README
2025-09-25 09:56:36 +02:00

28 lines
1.4 KiB
Scilab

# Example environment variables for TestStableToken commands in test/README.md
# Either provide a private key (`DEPLOYER_ACCOUNT_PRIVATE_KEY`) or a mnemonic (`TWELVE_WORD_MNEMONIC`).
# Deployer account (used as --from / ETH_FROM)
DEPLOYER_ACCOUNT_ADDRESS=0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# Hex private key (prefixed with 0x) OR leave empty if you prefer to use mnemonic
DEPLOYER_ACCOUNT_PRIVATE_KEY=0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# Alternatively, use a mnemonic instead of a private key
TWELVE_WORD_MNEMONIC="test test test test test test test test test test test junk"
# RPC URL for accessing testnet via HTTP.
# e.g. https://linea-sepolia.infura.io/v3/123aa110320f4aec179150fba1e1b1b1
RPC_URL=https://linea-sepolia.infura.io/v3/<key>
# Optional: override the default max supply (value is in wei; example below = 1_000_000 * 10**18)
# Uncomment and set to change the token cap used during initialize/upgrade
# MAX_SUPPLY=1000000000000000000000000
# Addresses used by various actions (leave commented if not applicable)
# Proxy contract (when calling upgrade, approve, mint, etc.)
# TOKEN_PROXY_ADDRESS=0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
# Example account to add to the minter allowlist
# ACCOUNT_ADDRESS=0xcccccccccccccccccccccccccccccccccccccccc
# Private key for a minter account (used when sending mint transactions)
# MINTER_ACCOUNT_PRIVATE_KEY=0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc