Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Set up testing contracts and modules #5

Closed
5 tasks done
BrendanChou opened this issue Jan 24, 2020 · 0 comments
Closed
5 tasks done

Set up testing contracts and modules #5

BrendanChou opened this issue Jan 24, 2020 · 0 comments
Assignees

Comments

@BrendanChou
Copy link
Contributor

BrendanChou commented Jan 24, 2020

  • In contracts/test/v1/ set up test contracts for the Funder, Oracle, Trader, and Vault.
  • In src/lib/modules/ set up a Testing.ts file that helps us set the values for these contracts. You can use https://github.com/dydxprotocol/solo/blob/master/src/modules/testing/Testing.ts for inspiration
  • This file should be used in src/Perpetual.ts
  • Deploy these files in the migrations/2_deploy.js file if the network is a test network
  • Write a setup file/function in test/helpers/ that helps set these as the contracts that are used by the protocol. We can use this at the start of most tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants