├── .env ├── .gitignore ├── README.md ├── contracts ├── Swapper.sol └── interfaces │ ├── IERC20.sol │ ├── IPangolinRouter.sol │ └── IWAVAX.sol ├── hardhat.config.ts ├── img.png ├── package.json ├── scripts └── deploy.ts ├── test └── swap.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- 1 | AVALANCHE_MAINNET_URL="https://api.avax.network/ext/bc/C/rpc" 2 | 3 | WAVAX_ADDRESS="0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /contracts/Swapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/contracts/Swapper.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IPangolinRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/contracts/interfaces/IPangolinRouter.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWAVAX.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/contracts/interfaces/IWAVAX.sol -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/img.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /scripts/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/scripts/deploy.ts -------------------------------------------------------------------------------- /test/swap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/test/swap.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sanghren/avalanche-hardhat-fork-tutorial/HEAD/tsconfig.json --------------------------------------------------------------------------------