-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: clean up and update dependency (#259)
* feat: add new cd workflow * feat: add code scan * chore: update code scan in duel process * chore: merge sonar scan in test workflow * chore: add token for scan * chore: restore report coverage from specific node version * fix: update secret * fix: missing node version on the cache key * chore: update dependency for ui and snap * fix: update yarn lock * fix: update yarn.lock * fix: remove unuse package in get-starknet * fix: remove metamask/rpc-methods * chore: remove metamask/rpc-methods * chore: update yarn lock * chore: update snap package.json
- Loading branch information
1 parent
02b92f9
commit fcb83e1
Showing
27 changed files
with
1,716 additions
and
2,982 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
lts/* |
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,9 @@ | ||
/* eslint-disable */ | ||
//prettier-ignore | ||
module.exports = { | ||
name: "@yarnpkg/plugin-allow-scripts", | ||
factory: function (require) { | ||
var plugin=(()=>{var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var p=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(o,e)=>(typeof require<"u"?require:o)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var u=(t,o)=>{for(var e in o)l(t,e,{get:o[e],enumerable:!0})},f=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of a(o))!c.call(t,i)&&i!==e&&l(t,i,{get:()=>o[i],enumerable:!(r=s(o,i))||r.enumerable});return t};var m=t=>f(l({},"__esModule",{value:!0}),t);var g={};u(g,{default:()=>d});var n=p("@yarnpkg/shell"),x={hooks:{afterAllInstalled:async()=>{let t=await(0,n.execute)("yarn run allow-scripts");t!==0&&process.exit(t)}}},d=x;return m(g);})(); | ||
return plugin; | ||
} | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
enableScripts: false | ||
|
||
enableTelemetry: 0 | ||
|
||
logFilters: | ||
- code: YN0004 | ||
level: discard | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
spec: '@yarnpkg/plugin-workspace-tools' | ||
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs | ||
spec: 'https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js' | ||
|
||
yarnPath: .yarn/releases/yarn-berry.cjs | ||
yarnPath: .yarn/releases/yarn-3.2.1.cjs |
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 |
---|---|---|
|
@@ -4,12 +4,14 @@ | |
"main": "index.js", | ||
"private": true, | ||
"license": "(Apache-2.0 OR MIT)", | ||
"repository": "https://github.com/ConsenSys/starknet-snap.git", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ConsenSys/starknet-snap.git" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"scripts": { | ||
"allow-scripts": "yarn workspaces foreach --parallel --interlaced --verbose run allow-scripts", | ||
"clean": "yarn workspaces foreach --parallel --interlaced --verbose run clean", | ||
"build": "yarn workspaces foreach --parallel --interlaced --verbose run build", | ||
"lint": "yarn workspaces foreach --parallel --interlaced --verbose run lint", | ||
|
@@ -20,12 +22,19 @@ | |
"devDependencies": { | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"@lavamoat/allow-scripts": "^3.0.0", | ||
"@lavamoat/preinstall-always-fail": "^2.0.0", | ||
"husky": "^8.0.0" | ||
}, | ||
"resolutions": { | ||
"luxon@^3.2.1": "patch:luxon@npm%3A3.3.0#./.yarn/patches/luxon-npm-3.3.0-bdbae9bfd5.patch" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.6.0" | ||
}, | ||
"lavamoat": { | ||
"allowScripts": { | ||
"@lavamoat/preinstall-always-fail": false, | ||
"sharp": true, | ||
"@commitlint/cli>@commitlint/load>ts-node>@swc/core": false | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,39 +1,52 @@ | ||
{ | ||
"name": "@consensys/starknet-snap", | ||
"version": "2.8.0", | ||
"license": "(Apache-2.0 OR MIT)", | ||
"keywords": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ConsenSys/starknet-snap.git" | ||
}, | ||
"license": "(Apache-2.0 OR MIT)", | ||
"author": "", | ||
"main": "./dist/bundle.js", | ||
"files": [ | ||
"dist/", | ||
"images/", | ||
"snap.manifest.json" | ||
], | ||
"scripts": { | ||
"build:clean": "yarn clean && yarn build", | ||
"allow-scripts": "yarn workspace root allow-scripts", | ||
"build": "mm-snap build", | ||
"serve": "mm-snap serve", | ||
"build:clean": "yarn clean && yarn build", | ||
"clean": "rimraf dist", | ||
"start": "mm-snap watch", | ||
"test": "yarn run test:unit && yarn run cover:report", | ||
"cover:report": "nyc report --reporter=lcov --reporter=text", | ||
"lint": "yarn lint:eslint && yarn lint:misc --check", | ||
"lint:eslint": "eslint . --cache --ext js,ts", | ||
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", | ||
"lint:misc": "prettier '**/*.ts' '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore", | ||
"serve": "mm-snap serve", | ||
"start": "mm-snap watch", | ||
"test": "yarn run test:unit && yarn run cover:report", | ||
"test:unit": "nyc --check-coverage --statements 80 --branches 80 --functions 80 --lines 80 mocha --colors -r ts-node/register \"test/**/*.test.ts\"", | ||
"test:unit:one": "nyc --check-coverage --statements 80 --branches 80 --functions 80 --lines 80 mocha --colors -r ts-node/register", | ||
"cover:report": "nyc report --reporter=lcov --reporter=text" | ||
"test:unit:one": "nyc --check-coverage --statements 80 --branches 80 --functions 80 --lines 80 mocha --colors -r ts-node/register" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"devDependencies": { | ||
"@lavamoat/allow-scripts": "^2.0.3", | ||
"nyc": { | ||
"exclude": [ | ||
"**/addNetwork.ts", | ||
"**/*.test.ts" | ||
] | ||
}, | ||
"dependencies": { | ||
"@metamask/key-tree": "9.0.0", | ||
"@metamask/rpc-methods": "3.0.0", | ||
"@metamask/snaps-cli": "5.0.0", | ||
"@metamask/snaps-sdk": "^4.0.0", | ||
"async-mutex": "^0.3.2", | ||
"ethereum-unit-converter": "^0.0.17", | ||
"ethers": "^5.5.1", | ||
"starknet": "6.7.0", | ||
"starknet_v4.22.0": "npm:[email protected]" | ||
}, | ||
"devDependencies": { | ||
"@metamask/snaps-cli": "^6.1.0", | ||
"@types/chai": "^4.3.1", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/sinon": "^10.0.11", | ||
|
@@ -42,44 +55,24 @@ | |
"@typescript-eslint/parser": "^5.20.0", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"concurrently": "^7.1.0", | ||
"cross-env": "^7.0.3", | ||
"dotenv": "^16.4.5", | ||
"eslint": "^8.13.0", | ||
"mocha": "^9.2.2", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.6.2", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-packagejson": "^2.2.11", | ||
"rimraf": "^3.0.2", | ||
"sinon": "^13.0.2", | ||
"sinon-chai": "^3.7.0", | ||
"standard-version": "^9.5.0", | ||
"ts-node": "^10.8.1", | ||
"typescript": "^4.6.3" | ||
"typescript": "^4.7.4" | ||
}, | ||
"dependencies": { | ||
"@metamask/snaps-sdk": "3.0.1", | ||
"async-mutex": "^0.3.2", | ||
"dotenv": "^16.4.5", | ||
"ethereum-unit-converter": "^0.0.17", | ||
"ethers": "^5.5.1", | ||
"starknet": "6.7.0", | ||
"starknet_v4.22.0": "npm:[email protected]" | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.6.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"lavamoat": { | ||
"allowScripts": { | ||
"@lavamoat/preinstall-always-fail": false, | ||
"@metamask/rpc-methods>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": true, | ||
"@metamask/rpc-methods>@metamask/permission-controller>@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": true, | ||
"ts-node>@swc/core": false | ||
} | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"**/addNetwork.ts", | ||
"**/*.test.ts" | ||
] | ||
} | ||
} |
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
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
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
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
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
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
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.