forked from sushiswap/trident
-
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.
* MirinMath: Cleanup and Tests Removed all unused constants and functions only sqrt() is left * chore: reorg prettier config to js, and require @sushiswap/prettier-config * chore: add solcover.js and ignore flat, interfaces & mocks * chore: remove unused contract/tests * chore: move MirinMathTest to mocks/MirinMathConsumerMock and update test * chore: re-enable forking config, issue was fixed some time ago * chore: better define example env * chore: move examples to examples directory * chore: remove redudent MirinMathNew * chore: network configuration * chore: explicitly set paths * chore: explicitly typechain config * chore: remove archieved version of typechain * chore: compileUsingRemoteVersion 0.8.2 * chore: ignore types * chore: solthintignore * config: prettier * config: prettierignore * config: husky * config: lint staged Co-authored-by: nori <nori@sushi.com> Co-authored-by: Mudit Gupta <guptamudit@ymail.com>
- Loading branch information
1 parent
aef1db5
commit ef099c8
Showing
22 changed files
with
600 additions
and
190 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 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ artifacts/ | |
deployments/ | ||
|
||
# Typechain | ||
typechain/ | ||
types/ | ||
|
||
# Env | ||
.env | ||
|
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,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
yarn test |
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,8 @@ | ||
export/ | ||
deployments/ | ||
artifacts/ | ||
cache/ | ||
coverage/ | ||
node_modules/ | ||
package.json | ||
types/ |
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,18 @@ | ||
module.exports = { | ||
...require("@sushiswap/prettier-config"), | ||
// TODO: If a non-default solidity config is needed, we could add this to our | ||
// config repo and import as @sushiswap/prettier-config/solidity. Also, feel | ||
// free to add to the default config which is required above. | ||
overrides: [ | ||
{ | ||
files: '*.sol', | ||
options: { | ||
printWidth: 120, | ||
tabWidth: 4, | ||
singleQuote: false, | ||
bracketSpacing: false, | ||
explicitTypes: 'always', | ||
}, | ||
}, | ||
], | ||
}; |
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 @@ | ||
module.exports = { | ||
skipFiles: ["interfaces", "flat", "mocks"], | ||
}; |
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,7 @@ | ||
export/ | ||
deployments/ | ||
artifacts/ | ||
cache/ | ||
coverage/ | ||
node_modules/ | ||
types/ |
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
File renamed without changes.
File renamed without changes.
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,11 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
pragma solidity ^0.8.2; | ||
|
||
import "../libraries/MirinMath.sol"; | ||
|
||
contract MirinMathConsumerMock { | ||
function sqrt(uint256 x) public pure returns (uint256) { | ||
return MirinMath.sqrt(x); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.