Skip to content

yehoudaB/migration-finance

Repository files navigation

Teleport Aave V3 ( Aave Tools https://aave-tools.web.app )

Configuration

for interactWithTeleportAaveV3 contract run

  forge install ChainAccelOrg/foundry-devops --no-commit

Deploy contract locally from a fork url

run :

anvil --fork-url $SEPOLIA_RPC_URL

then :

make deploy

for testing from sepolia fork in one command you need to do this :

 source .env 

then

forge test --fork-url $SEPOLIA_RPC_URL -vvvv --mt <name-of-test-fonction>

equivalent to :

  make test

deployement command example for seploia network

   make deploy ARGS="--network sepolia"

or with forge directly

source .env

then

forge create --rpc-url $SEPOLIA_RPC_URL --private-key $PRIVATE_KEY src/MyContract.sol:MyContract  --verify --etherscan-api-key $ETHERSCAN_API_KEY 

To verify a contract already deployed

forge verify-contract --chain-id 11155111 --watch --verifier etherscan --api-key $ETHERSCAN_API_KEY <contract-address> <contract-name>

for prepareTeleportAaveV3 contract example :

forge verify-contract --chain-id 11155111 --watch --verifier etherscan --api-key $ETHERSCAN_API_KEY 0x049893EC86Ad3FAA67557410E2bae0c4190bAcA9  PrepareTeleportAaveV3   --constructor-args $(cast abi-encode "constructor(address,address,address)"  0x3e9708d80f7B3e43118013075F7e95CE3AB31F31 0x6Ae43d3271ff6888e7Fc43Fd7321a503ff738951 0x65e71BeDf24b1418b39E4bbf106516cCd0e58508)    

for TeleportAaveV3 contract example :

forge verify-contract --chain-id 137 --watch --verifier etherscan --api-key $POLYSCAN_API_KEY 0xeb075d205313a9B4427FB37dd14a8695B1436937  TeleportAaveV3   --constructor-args $(cast abi-encode "constructor(address,address)" 0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb 0x9945852318056dC9EbAfdC3caC70d05e0fBa00F7)    

forge verify-contract --chain-id 1 --watch --verifier etherscan --api-key $ETHERSCAN_API_KEY 0x936ee132A0A00c374Ac03dd71eB55a7C02b3CFFe TeleportAaveV3 --constructor-args $(cast abi-encode "constructor(address,address)" 0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e 0x823Be23F5a90bb629D30Bb0ecc8777b4c15b6F17)

forge verify-contract --chain-id 8453 --watch --verifier etherscan --api-key $BASESCAN_API_KEY 0x936ee132A0A00c374Ac03dd71eB55a7C02b3CFFe PrepareTeleportAaveV3 --constructor-args $(cast abi-encode "constructor(address,address,address)" 0x2A0979257105834789bC6b9E1B00446DFbA8dFBa 0x8F44Fd754285aa6A2b8B9B97739B79746e0475a7 0x15b9551Eff0920F13d9d57505f071aab8c3A1Cc8)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published