Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into xchain-pools
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeal-eth committed Sep 20, 2023
2 parents b2ae508 + ddde448 commit df390d3
Show file tree
Hide file tree
Showing 407 changed files with 50,522 additions and 4,627 deletions.
27 changes: 26 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,39 @@ commands:
# Find the last update of any contract
- run: |
git log -1 -- \
utils/common-config/hardhat.config.ts \
utils/core-modules/contracts \
utils/core-modules/cannonfile.test.toml \
utils/core-modules/hardhat.config.ts \
utils/core-modules/storage.dump.sol \
utils/core-contracts/contracts \
utils/core-contracts/hardhat.config.ts \
protocol/synthetix/contracts \
protocol/synthetix/cannonfile.test.toml \
protocol/synthetix/cannonfile.toml \
protocol/synthetix/hardhat.config.ts \
protocol/synthetix/storage.dump.sol \
protocol/governance/contracts \
protocol/governance/cannonfile.toml \
protocol/governance/hardhat.config.ts \
protocol/oracle-manager/contracts \
protocol/oracle-manager/cannonfile.test.toml \
protocol/oracle-manager/cannonfile.toml \
protocol/oracle-manager/hardhat.config.ts \
protocol/oracle-manager/storage.dump.sol \
markets/spot-market/contracts \
markets/spot-market/cannonfile.test.toml \
markets/spot-market/cannonfile.toml \
markets/spot-market/hardhat.config.ts \
markets/spot-market/storage.dump.sol \
markets/perps-market/contracts \
markets/perps-market/cannonfile.test.toml \
markets/perps-market/cannonfile.toml \
markets/perps-market/hardhat.config.ts \
markets/perps-market/storage.dump.sol \
markets/legacy-market/contracts \
markets/legacy-market/hardhat.config.ts \
markets/legacy-market/cannonfile.toml \
> /tmp/version--contracts.txt
- run: cat /tmp/version--contracts.txt

Expand Down Expand Up @@ -151,7 +176,7 @@ jobs:
- restore_cache:
keys:
- testable-hardhat-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "/tmp/version--contracts.txt" }}
- run: yarn workspaces foreach --topological-dev --verbose run build-testable
- run: CANNON_REGISTRY_PRIORITY=local yarn workspaces foreach --topological-dev --verbose run build-testable
- save_cache:
key: testable-hardhat-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "/tmp/version--contracts.txt" }}
paths:
Expand Down
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ INFURA_API_KEY=
INFURA_IPFS_ID=
INFURA_IPFS_SECRET=
ETHERSCAN_API_KEY=
OVM_ETHERSCAN_API_KEY=
OVM_ETHERSCAN_API_KEY=
CANNON_REGISTRY_PRIORITY=
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ utils/*/utils
**/contracts/generated
**/test/generated
**/artifacts
**/subgraph/deployments
**/subgraph/**/deployments
**/subgraph/build
**/subgraph/.bin
2 changes: 1 addition & 1 deletion .github/workflows/simulate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
cannonPackage: "synthetix-spot-market"
impersonate: "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9"
proxy: "InitialProxy"
chains: "mainnet optimistic-mainnet goerli optimistic-goerli"
chains: "optimistic-mainnet optimistic-goerli"

# - workspace: "@synthetixio/perps-market"
# cannonPackage: "synthetix-perps-market"
Expand Down
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.yarn/
node_mudules/
*.dump.sol
**/coverage*
build/
Expand All @@ -6,7 +8,7 @@ node_modules/
**/contracts/routers
**/dist/
**/node_modules/
**/typechain-types
**/typechain-types/
utils/*/utils
utils/*/test/generated
protocol/*/test/generated
Expand All @@ -21,3 +23,4 @@ lerna.json
**/artifacts/
**/cache/
**/docs/
**/tests/.latest.json
23 changes: 13 additions & 10 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"overrides": [
{
"files": "*.toml",
"options": {
"plugins": ["prettier-plugin-toml"],
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
},
{
"files": "*.sol",
"options": {
"plugins": ["prettier-plugin-solidity"],
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
Expand All @@ -11,11 +22,7 @@
}
},
{
"files": [
"*.js",
"*.ts",
"*.md"
],
"files": ["*.js", "*.ts", "*.md"],
"options": {
"printWidth": 100,
"semi": true,
Expand All @@ -25,11 +32,7 @@
}
},
{
"files": [
"*.js",
"*.ts",
"*.json"
],
"files": ["*.js", "*.ts", "*.json"],
"options": {
"useTabs": false
}
Expand Down
3 changes: 1 addition & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"maxLength": 32
}
],
"numcast/safe-cast": "error",
"no-global-import": "off"
"numcast/safe-cast": "error"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/mri-npm-1.2.0-8ecee0357d-83f515abbc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/pump-npm-3.0.0-0080bf6a7a-e42e9229fb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/rxjs-npm-6.6.7-055046ea3c-bc334edef1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
checksumBehavior: ignore

defaultSemverRangePrefix: ""

nodeLinker: node-modules

npmRegistryServer: "https://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ To prepare for system upgrades, this repository is used to release new versions
- Publish the release with `yarn publish:dev` for the pre-release (no git tag, version looks like `1.2.3-<GIT_SHA>.0`)> and `yarn publish:release` for the proper semver release.
- If you aren't using [Frame](https://frame.sh/), prepend `CANNON_REGISTRY_PROVIDER_URL=<MAINNET_RPC> CANNON_PRIVATE_KEY=<PRIVATE_KEY>` to the commands above.
- In case Cannon publish fails you can run `yarn publish-contracts` in the root to retry publishing all Cannon packages. Or run `yarn publish-contracts` in each failed package separately.
- In all of the package.json files, revert dependencies' version changes back to "workspaces:*"` (leaving the change to `gitHead`, if applicable), commit, and push.
- In all the package.json files, revert dependencies' version changes back to `"workspaces:*"` (leaving the change to `gitHead`, if applicable), commit, and push.
Loading

0 comments on commit df390d3

Please sign in to comment.