Skip to main content
1

Clone the example repo

git clone https://github.com/Forte-Service-Company-Ltd/test-token
cd test-token
npm install
2

Setup .env

To deploy these tokens you’ll need to setup your .env file. Get started by copying the example:
cp env.sample .env
Then add your values to this file.
RPC_URL=
PRIV_KEY=
ETHERSCAN_API_KEY=
3

Add environment varialbles to shell

Make these values available to your shell
source .env
4

Deploy test token contract

Now you can run the deploy script for any of the test tokens.
forge script script/TestToken.s.sol --rpc-url $RPC_URL --private-key $PRIV_KEY --broadcast --verify
This will return a contract address of the newly deployed token. Go ahead and add that to the shell as well:
export TOKEN_ADDRESS=_YOUR_TOKEN_ADDRESS_
5

Mint some tokens

Finally, go ahead and mint tokens to be used for initializing the AMM pool.
cast send $TOKEN_ADDRESS "mint()" --rpc-url $RPC_URL --private-key $PRIV_KEY
The above command will mint 1,000,000 tokens to the wallet associated with the private key.Now you’re ready to create a pool!