-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #962 from yieldprotocol/dev-without-december-maturity
feat: Dev TV without december maturity
- Loading branch information
Showing
71 changed files
with
8,456 additions
and
13,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"require": "ts-node/register/files", | ||
"timeout": 20000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
## Yield Protocol App UI | ||
`yarn && yarn type-contracts && yarn build && yarn global add serve && serve -s build` | ||
|
||
`yarn && yarn type-contracts && yarn build && yarn global add serve && serve -s build` | ||
|
||
### Using Tenderly Forks for Testing | ||
|
||
1. Go to settings, and click the **_Use Tenderly Fork_** button to activate the tenderly fork testing environment; the app will reload | ||
2. Go to settings, click the **_Fill ETH_** button to get 100 ETH for the test environment | ||
3. Reload the page | ||
4. If you don't see the expected new tenderly fork data (i.e.: you don't see new series, assets, or strategies), reload the page | ||
5. If data still doesn't load: reset the app by going to settings and clicking **_Reset App_**, and try from step 1 above | ||
6. Try any action (i.e.: borrow any asset with ETH as collateral) | ||
a. **No user interaction is needed after clicking the submit button**; the UI will show an automatic approval transaction followed by your action (borrow, lend, pool, etc.) | ||
|
||
### Dev: Updating Tenderly Fork Environment | ||
|
||
1. Update the `TENDERLY_JSON_RPC_URL` environment variable within `.env.local` to point to the relevant fork; you can find the fork rpc url in the Tenderly UI | ||
2. Restart the dev environment to have the new environment variable take effect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const nextJest = require('next/jest'); | ||
|
||
const createJestConfig = nextJest({ | ||
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment | ||
dir: './', | ||
}); | ||
|
||
// Add any custom config to be passed to Jest | ||
const customJestConfig = { | ||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], | ||
moduleNameMapper: { | ||
// Handle module aliases (this will be automatically configured for you soon) | ||
'^@/components/(.*)$': '<rootDir>/components/$1', | ||
|
||
'^@/pages/(.*)$': '<rootDir>/pages/$1', | ||
}, | ||
testEnvironment: 'jest-environment-jsdom', | ||
}; | ||
|
||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async | ||
module.exports = createJestConfig(customJestConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Optional: configure or set up a testing framework before each test. | ||
// If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js` | ||
|
||
// Used for __tests__/testing-library.js | ||
// Learn more: https://github.com/testing-library/jest-dom | ||
import '@testing-library/jest-dom/extend-expect'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.