Skip to content

jamesatomc/SwapMate

Repository files navigation

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/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy DeployDEX

$ forge script script/DeployDEX.s.sol --fork-url https://rpc.testnet.alpenlabs.io --ledger --broadcast

verify-contract-address

$ forge verify-contract --rpc-url https://explorer.testnet.alpenlabs.io/api/eth-rpc --verifier blockscout --verifier-url 'https://explorer.testnet.alpenlabs.io/api/' 0x1d1D334E3fe1c22B12D68af6B4Ffd8DFd4c1a5e7 src/Kanari.sol:Kanari --compiler-version 0.8.30

Deploy Counter (Original)

$ forge script script/Counter.s.sol:CounterScript --rpc-url https://rpc.testnet.alpenlabs.io --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

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

ระบบ farm คู่ kanari/coin(เหรียญหลัก) จะได้ Reward Rate หารจำนวนผู้นวาง lp หากมีเยอะก็จะหารเยอะ ใช้เวลา 6 ปี ถึงจะจบ pool Reward max 6m kanari ปีหนึงตก ปีละ 1m kanari จนครบ 6 ปี ปรับ DeployDEX_v2.s.sol

About

SwapMate DEX - Decentralized Exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published