Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Tests - NomadBase, Replica, CI #247

Merged
merged 87 commits into from
Jun 2, 2022

Conversation

odyslam
Copy link
Contributor

@odyslam odyslam commented Apr 26, 2022

Unit-Tests:

  • NomadBase.sol
  • Replica.sol

Fuzzing:

  • NomadBase.sol

Other:

Tracking: #283

@odyslam odyslam mentioned this pull request Apr 26, 2022
8 tasks
@odyslam odyslam self-assigned this Apr 26, 2022
@odyslam odyslam added the solidity Solidity protocol or xapp change label Apr 26, 2022
@odyslam odyslam requested a review from prestwich May 29, 2022 18:54
packages/contracts-core/README.md Show resolved Hide resolved
packages/contracts-core/contracts/Replica.sol Outdated Show resolved Hide resolved
packages/contracts-core/contracts/Replica.sol Outdated Show resolved Hide resolved
packages/contracts-core/contracts/Replica.sol Outdated Show resolved Hide resolved
@odyslam odyslam requested a review from prestwich May 31, 2022 20:56
packages/contracts-core/package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Member

@anna-carroll anna-carroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so dope, mostly some questions, a couple requests for inline comments


For testing, we use [Foundry](https://getfoundry.sh/).

- Run `yarn build:accumulator-cli` from the root directory of the monorepo. It will build a rust-based cli tool that creates Sparse Merkle Tree proofs for arbitrary data. It's used in our testing suite via the `--ffi` flag for Forge. The binary is built in thre `/scripts` top-level directory of the monorepo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: thre

packages/contracts-core/README.md Show resolved Hide resolved
packages/contracts-core/.gas-snapshot Show resolved Hide resolved
packages/contracts-core/contracts/test/Home.t.sol Outdated Show resolved Hide resolved
packages/contracts-core/contracts/test/Home.t.sol Outdated Show resolved Hide resolved
packages/contracts-core/contracts/test/Replica.t.sol Outdated Show resolved Hide resolved
packages/contracts-core/contracts/test/utils/GoodXapps.sol Outdated Show resolved Hide resolved
vm.label(fakeSigner, "fake signer");
}

function getMessage(bytes32 oldRoot, bytes32 newRoot, uint32 domain)
Copy link
Member

@anna-carroll anna-carroll Jun 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed this is an update not a message & we should rename

@prestwich
Copy link
Member

prestwich commented Jun 2, 2022

checks aren't running because this is a branch from a fork, so I can't tell if the changes to the workflow are themselves good

Copy link
Member

@anna-carroll anna-carroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks amazin to me

@odyslam odyslam merged commit 8166a5b into nomad-xyz:main Jun 2, 2022
@odyslam odyslam deleted the feat/foundry-tests branch June 2, 2022 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solidity Solidity protocol or xapp change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants