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

Update cannon and regenerate storage #2357

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ commands:
- run: date +"%Y-%m" > /tmp/month.txt && cat /tmp/month.txt
- restore_cache:
keys:
- yarn-{{ .Environment.YARN_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-{{ checksum "yarn.lock" }}
- yarn-{{ .Environment.YARN_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-
- yarn-{{ .Environment.NODE_MODULES_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-{{ checksum "yarn.lock" }}
- yarn-{{ .Environment.NODE_MODULES_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-
- run: yarn -v
- run: yarn install --immutable
- save_cache:
key: yarn-{{ .Environment.YARN_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-{{ checksum "yarn.lock" }}
key: yarn-{{ .Environment.NODE_MODULES_CACHE_VERSION }}-{{ checksum "/tmp/month.txt" }}-{{ checksum "yarn.lock" }}
paths:
- "~/.yarn/berry"

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ storage.new.dump.json
!.yarn/releases
!.yarn/sdks
!.yarn/versions

tsconfig.tsbuildinfo
Binary file not shown.
Binary file not shown.
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.4.1.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ supportedArchitectures:
- darwin
- linux

yarnPath: .yarn/releases/yarn-4.4.1.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
6 changes: 0 additions & 6 deletions auxiliary/ArbitrumGasPriceOracle/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion auxiliary/BuybackSnx/test/integration/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { coreBootstrap } from '@synthetixio/core-utils/utils/bootstrap/tests';
import { wei } from '@synthetixio/wei';
import { ethers } from 'ethers';

import { BuybackSnx } from '../generated/typechain';
import { type BuybackSnx } from '../../typechain-types';

interface Contracts {
buyback_snx: BuybackSnx;
Expand Down
6 changes: 0 additions & 6 deletions auxiliary/BuybackSnx/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion auxiliary/ERC4626ToAssetsRatioOracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@synthetixio/docgen": "workspace:*",
"@synthetixio/main": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"solidity-docgen": "^0.6.0-beta.36"
Expand Down
6 changes: 0 additions & 6 deletions auxiliary/ERC4626ToAssetsRatioOracle/tsconfig.json

This file was deleted.

6 changes: 0 additions & 6 deletions auxiliary/OpGasPriceOracle/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion auxiliary/OwnedFeeCollector/test/integration/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { coreBootstrap } from '@synthetixio/core-utils/utils/bootstrap/tests';
import { wei } from '@synthetixio/wei';
import { ethers } from 'ethers';

import { OwnedFeeCollector } from '../generated/typechain';
import { type OwnedFeeCollector } from '../../typechain-types';

interface Contracts {
owned_fee_collector: OwnedFeeCollector;
Expand Down
6 changes: 0 additions & 6 deletions auxiliary/OwnedFeeCollector/tsconfig.json

This file was deleted.

6 changes: 0 additions & 6 deletions auxiliary/PythERC7412Wrapper/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion auxiliary/RewardsDistributor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"forge-coverage": "forge coverage --report lcov"
},
"devDependencies": {
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"forge-std": "github:foundry-rs/forge-std#master"
},
"depcheck": {
Expand Down
2 changes: 1 addition & 1 deletion auxiliary/RewardsDistributorExternal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"forge-coverage": "forge coverage --report lcov"
},
"devDependencies": {
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"forge-std": "github:foundry-rs/forge-std#master"
},
"depcheck": {
Expand Down
6 changes: 0 additions & 6 deletions auxiliary/SpotMarketOracle/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion auxiliary/WstEthToStEthRatioOracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@synthetixio/docgen": "workspace:*",
"@synthetixio/main": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"solidity-docgen": "^0.6.0-beta.36"
Expand Down
6 changes: 0 additions & 6 deletions auxiliary/WstEthToStEthRatioOracle/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion markets/bfp-market/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@synthetixio/wei": "^2.74.4",
"@types/lodash": "^4.14.199",
"@types/mocha-each": "^2.0.1",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"lodash": "^4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('LegacyMarket (iosiro)', function () {
let susdToken: ethers.Contract;

let v3System: ethers.Contract;
let v3Account: ethers.Contract;
let v3Usd: ethers.Contract;

let cannonProvider: ethers.providers.JsonRpcProvider;
Expand Down Expand Up @@ -82,6 +83,7 @@ describe('LegacyMarket (iosiro)', function () {
outputs.imports.v3.contracts.CoreProxy.abi,
provider
);

v3Account = new ethers.Contract(
outputs.imports.v3.contracts.AccountProxy.address,
outputs.imports.v3.contracts.AccountProxy.abi,
Expand Down
2 changes: 1 addition & 1 deletion markets/perps-market/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@synthetixio/oracle-manager": "workspace:*",
"@synthetixio/spot-market": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"solidity-docgen": "^0.6.0-beta.36",
Expand Down
2 changes: 1 addition & 1 deletion markets/perps-market/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@graphprotocol/graph-cli": "^0.81.0",
"@graphprotocol/graph-ts": "^0.35.1",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"matchstick-as": "^0.6.0",
"prettier": "^3.2.5"
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@synthetixio/oracle-manager": "workspace:*",
"@synthetixio/wei": "^2.74.4",
"@types/node-fetch": "^2.6.11",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"node-fetch": "^2.7.0",
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@graphprotocol/graph-cli": "^0.81.0",
"@graphprotocol/graph-ts": "^0.35.1",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"matchstick-as": "^0.6.0",
"prettier": "^3.2.5"
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@
"@lerna-lite/publish": "^3.3.0",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@synthetixio/deps": "workspace:*",
"@types/debug": "^4.1.12",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.17",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"eslint": "^9.9.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"globals": "^15.9.0",
Expand Down Expand Up @@ -122,5 +125,5 @@
"engines": {
"node": "^20.17.0"
},
"packageManager": "yarn@4.4.1"
"packageManager": "yarn@4.6.0"
}
2 changes: 1 addition & 1 deletion protocol/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@synthetixio/core-modules": "workspace:*",
"@synthetixio/core-utils": "workspace:*",
"@synthetixio/docgen": "workspace:*",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"hardhat": "^2.19.5",
"solidity-docgen": "^0.6.0-beta.36",
Expand Down
2 changes: 1 addition & 1 deletion protocol/oracle-manager/test/common/oracleNode.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BigNumberish, Contract, ethers } from 'ethers';
import hre from 'hardhat';
import { Proxy } from '../generated/typechain';
import { type Proxy } from '../../typechain-types';
import { findSingleEvent } from '@synthetixio/core-utils/utils/ethers/events';
import NodeTypes from '../integration/mixins/Node.types';

Expand Down
2 changes: 1 addition & 1 deletion protocol/oracle-manager/test/integration/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { coreBootstrap } from '@synthetixio/core-utils/utils/bootstrap/tests';
import { wei } from '@synthetixio/wei';
import { ethers } from 'ethers';
import hre from 'hardhat';
import { NodeModule } from '../generated/typechain';
import { type NodeModule } from '../../typechain-types';
import NodeTypes from './mixins/Node.types';

const abi = ethers.utils.defaultAbiCoder;
Expand Down
6 changes: 0 additions & 6 deletions protocol/oracle-manager/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion protocol/synthetix/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"devDependencies": {
"@graphprotocol/graph-cli": "^0.81.0",
"@graphprotocol/graph-ts": "^0.35.1",
"@usecannon/cli": "2.20.1",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"matchstick-as": "^0.6.0",
"prettier": "^3.2.5"
Expand Down
6 changes: 0 additions & 6 deletions protocol/synthetix/tsconfig.json

This file was deleted.

6 changes: 1 addition & 5 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@
"./markets/**/*.js",
"./auxiliary/**/*.js",
"./auxiliary/**/*.ts"
],
"exclude": [],
"compilerOptions": {
"noEmit": true
}
]
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"noEmit": true,
"target": "ESNext",
"module": "Node16",
"moduleResolution": "node16",
Expand All @@ -12,5 +13,8 @@
"declaration": true,
"declarationMap": true,
"sourceMap": true
}
},
"exclude": [
"**/subgraph/**/*"
]
}
2 changes: 1 addition & 1 deletion utils/common-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@typechain/hardhat": "^9.1.0",
"dotenv": "^16.4.3",
"hardhat": "^2.19.5",
"hardhat-cannon": "2.20.1",
"hardhat-cannon": "2.21.0",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.10",
"hardhat-ignore-warnings": "^0.2.9",
Expand Down
7 changes: 0 additions & 7 deletions utils/common-config/tsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions utils/core-contracts/tsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions utils/core-modules/tsconfig.json

This file was deleted.

8 changes: 4 additions & 4 deletions utils/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"scripts": {
"build": "yarn build:ts",
"build:ts": "tsc --project src/tsconfig.json",
"build:ts": "tsc --noEmit false --project src/tsconfig.json",
"watch": "yarn build --watch",
"test": "mocha --require ts-node/register",
"coverage": "nyc yarn test",
Expand Down Expand Up @@ -46,8 +46,8 @@
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/micromatch": "^4",
"@types/prompts": "^2.4.9",
"@usecannon/builder": "2.20.1",
"@usecannon/cli": "2.20.1",
"@usecannon/builder": "2.21.0",
"@usecannon/cli": "2.21.0",
"ethers": "^5.7.2",
"get-port": "^7.0.0",
"hardhat": "^2.19.5",
Expand All @@ -68,6 +68,6 @@
"micromatch": "4.0.8",
"prompts": "^2.4.2",
"rfdc": "^1.3.1",
"viem": "^2.16.5"
"viem": "^2.22.17"
}
}
7 changes: 3 additions & 4 deletions utils/core-utils/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"outDir": ".."
},
"include": ["./**/*.ts"],
"exclude": []
"outDir": "..",
"composite": true
}
}
2 changes: 1 addition & 1 deletion utils/core-utils/src/utils/bootstrap/cannon-inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function cannonInspect(options: InspectOptions) {
options.packageRef,
cliSettings,
options.chainId,
false,
'overview',
options.writeDeployments,
true
);
Expand Down
2 changes: 1 addition & 1 deletion utils/hardhat-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"license": "MIT",
"scripts": {
"build": "yarn build:ts",
"build:ts": "tsc --project src/tsconfig.json",
"build:ts": "tsc --noEmit false --project src/tsconfig.json",
"watch": "yarn build --watch",
"test": "jest",
"coverage": "yarn test --coverage",
Expand Down
4 changes: 1 addition & 3 deletions utils/hardhat-storage/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
"rootDir": ".",
"outDir": "../dist",
"composite": true
},
"include": ["./**/*.ts"],
"exclude": []
}
}
Loading