Skip to content

setouchi-h/polaris-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polaris

Address

Linea Sepolia

  • Polaris: 0xAaf6A734114437b719c28cfd44c0b2B515eD29be
  • PolarisToken: 0xAa3FDEB44B7bb1C0A366685c0A10b1a2aEa6548C

Base Sepolia

  • Polaris: 0x35B9B2B23f01452eab2095d074966F99A1d1aAd0
  • PolarisToken: 0xAaf6A734114437b719c28cfd44c0b2B515eD29be

Usage

Deploy ERC20

$  forge script script/DeployTestSMP.s.sol:DeployTestSMP --rpc-url $BASE_SEPOLIA_RPC_URL --broadcast --private-key <your private key>

Deploy ERC721

$ forge script script/DeployTestERC721.s.sol:DeployTestERC721 --rpc-url $BASE_SEPOLIA_RPC_URL --broadcast --private-key <your private key>

Mint ERC20

Everyone can mint because it is a test asset.

$ cast send 0xAaf6A734114437b719c28cfd44c0b2B515eD29be "mint(address,uint256)" <recipient> <amount> --rpc-url $BASE_SEPOLIA_RPC_URL  --private-key <your private key>

or

$ forge script script/Interactions.s.sol:MintPolarisToken --rpc-url $BASE_SEPOLIA_RPC_URL --private-key <your private key> --broadcast

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

Foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

Foundry consists of:

  • Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
  • Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
  • Chisel: Fast, utilitarian, and verbose solidity REPL.

Documentation

https://book.getfoundry.sh/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published