Skip to content

Commit

Permalink
update new contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFungible committed Feb 18, 2024
1 parent 805c71f commit 4476980
Show file tree
Hide file tree
Showing 21 changed files with 1,519 additions and 846 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"
. "$(dirname -- "$0")/_/husky.sh"

# pnpm fix
pnpm fix
git add .
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@
},
"engines": {
"node": "^20.0.0"
},
"dependencies": {
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.22.20"
}
}
104 changes: 67 additions & 37 deletions packages/eslint-config-story/index.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,69 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"turbo",
"prettier",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"turbo",
"prettier",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
plugins: [
"@typescript-eslint",
"react",
"react-hooks",
"eslint-plugin-tsdoc",
"import"
],
env: {
browser: true,
es2021: true,
node: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
project: './tsconfig.json',
},
settings: {
react: {
version: 'detect',
},
},
rules: {
// eslint rules
"curly": "error",
"eqeqeq": "error",
"no-implicit-coercion": ["error", { boolean: false }],
"no-unused-expressions": "error",
"no-useless-computed-key": "error",
"no-console": "error",
// Typescript rules
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
'@typescript-eslint/no-unsafe-argument': 'off', // if you are experiencing false positives
// import rules
"import/newline-after-import": "error",
"import/no-cycle": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"newlines-between": "always"
}
],
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc", "import"],
rules: {
// eslint
"curly": "error",
"eqeqeq": "error",
"no-implicit-coercion": ["error", { boolean: false }],
"no-unused-expressions": "error",
"no-useless-computed-key": "error",
"no-console": "error",

// Typescript
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
'@typescript-eslint/no-unsafe-argument': 'off', // causing a lot of IDE false positives.

// import rules
"import/newline-after-import": "error",
"import/no-cycle": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"newlines-between": "always"
}
]
}
}
// react rules
'react/react-in-jsx-scope': 'off', // not needed for React 17+
'react/prop-types': 'off', // if using TypeScript for type checking
// react-hooks rules
'react-hooks/rules-of-hooks': 'error', // checks rules of Hooks
'react-hooks/exhaustive-deps': 'warn', // checks effect dependencies
},
};
12 changes: 7 additions & 5 deletions packages/eslint-config-story/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.2.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-tsdoc": "^0.2.17",
"@typescript-eslint/parser": "^6.2.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-turbo": "^1.10.0"
},
"devDependencies": {
"@story-protocol/prettier-config": "workspace:*",
"eslint": "^8.40.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.48.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"prettier": "^3.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-core
Submodule protocol-core updated 100 files
File renamed without changes.
25 changes: 25 additions & 0 deletions packages/react/contracts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"AccessController": "0x31dd83a3FebB5fAD7F7bc8D4E05B623461B74a02",
"AncestorsVaultLAP": "0x9Faa4E491a211bFa415d44554120B1b31b6f4e59",
"ArbitrationPolicySP": "0x75e181d5eb307eCccf8d3b4724109eca14719A75",
"DisputeModule": "0x11dAA3F573C4d6673BBE7f2D96B4C91073A0d55d",
"Governance": "0xa18252Aa11Ff1B20b89C10109050CC46A4067b22",
"IPAccountImpl": "0x7BBaB2BD68fd3990c8dA2c26334a6DF8Acc7E96E",
"IPAccountRegistry": "0x7184bAdAdf24dc261C7C27BceFF53d7A25a06846",
"IPAssetRegistry": "0xF59adB67B7CC87436A7CC41040A7dB24AE90aDB8",
"IPAssetRenderer": "0x986d8E96b30b688FCD84e9A5A757C3d4304B47b6",
"IPMetadataProvider": "0xfcD468A72F76e89F2Df517274063ef7210a32e2A",
"IPResolver": "0xF0920314Fb4C375cdEB5b15c4e77277aCf36E3D7",
"LicenseRegistry": "0x4D6a54B467332dF675cFa689cb294A4cB9122866",
"LicensingModule": "0x0C72b24067a15994f91D92Fd9bA23eB5ebcF8378",
"MetadataProviderV1": "0xfcD468A72F76e89F2Df517274063ef7210a32e2A",
"MockERC20": "0xd53C2A80D24F6B3Ff009E48CF88D3b482E8E1457",
"MockERC721": "0xD3719824a768c139AAa7C5eFc8BDb5D1d13A1564",
"MockTokenGatedHook": "0x2d3ED4354eD09B0E6aa252938aEF41920aB6FC40",
"ModuleRegistry": "0x17Ad1cD06d44ae5F5480A675A4D8BD8DAED40410",
"PILPolicyFrameworkManager": "0x49cF5C5523011F8B4A0489969096Eb68C571C197",
"RegistrationModule": "0x248c8CbF469ec7CB22Dc9914E569920b93d717a3",
"RoyaltyModule": "0x512bbF310452cC96E0E9818B0870EcA557b86d4D",
"RoyaltyPolicyLAP": "0x8404061350BA0CA85c4E733B0be78c5519679003",
"TaggingModule": "0xED445f1DeE74Cf470Aab47F4b63734653C4C9537"
}
8 changes: 3 additions & 5 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@story-protocol/react",
"version": "0.0.3-test-1",
"version": "0.0.4-test-1",
"description": "Story Protocol React SDK",
"main": "dist/story-protocol-react.cjs.js",
"module": "dist/story-protocol-react.esm.js",
Expand All @@ -20,13 +20,11 @@
"scripts": {
"build": "pnpm run fix && preconstruct build",
"test": "pnpm run test:unit && pnpm run test:integration",
"fix": "pnpm run format:fix && pnpm run lint:fix",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"lint:fix": "pnpm run lint --fix",
"lint": "eslint .",
"tsc": "tsc --noEmit",
"build-all": "cd ../protocol-core && git pull origin main && yarn && forge build && cd ../react && pnpm wagmi generate && preconstruct build"
"update": "cd ../protocol-core && git pull origin main && yarn && forge build && cd ../react",
"update:build": "pnpm run update && pnpm wagmi generate && preconstruct build"
},
"keywords": [],
"author": "",
Expand Down
Loading

0 comments on commit 4476980

Please sign in to comment.