Local Foundry Test

I am trying to do the local testing of an NFT app in foundry, is there any resources or direction on how can i run the middle ware in my local environment for testing?

I already fork the state from base and optimism and called sendUniversalPacket as your XcounterUC example.

But how to interact in foundry test as the middleware?

2 Likes

Hey @bruce great question!

One resource that may be helpful when trying to set up tests in your local environment is: vibc-core-smart-contracts/test at main · open-ibc/vibc-core-smart-contracts · GitHub

Specifically the VirtualChain.sol contract: vibc-core-smart-contracts/test/VirtualChain.sol at main · open-ibc/vibc-core-smart-contracts · GitHub

The universal.channel.t.sol uses the VirtualChain.sol smart contract to test Channel creation and packet sending in: vibc-core-smart-contracts/test/universal.channel.t.sol at main · open-ibc/vibc-core-smart-contracts · GitHub

Hope this helps !

1 Like