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

[WIP] Horizon: add subgraph data service #946

Merged
merged 71 commits into from May 17, 2024
Merged

Conversation

tmigone
Copy link
Contributor

@tmigone tmigone commented Feb 20, 2024

No description provided.

@tmigone tmigone changed the title chore: use eslint-graph-config feat: add subgraph data service Feb 20, 2024
@tmigone tmigone changed the title feat: add subgraph data service [WIP/Experimental] BREAKING CHANGE: add subgraph data service Feb 20, 2024
@tmigone tmigone marked this pull request as draft February 20, 2024 20:37
Copy link

openzeppelin-code bot commented Feb 22, 2024

[WIP] Horizon: add subgraph data service

Generated at commit: 3afdd91fdf334087d994cd8b1e6a9d06364eb5ed

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
16
43
65
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

Copy link

socket-security bot commented Feb 23, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/core-js-pure@3.8.2
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
  • orphan: npm/core-js-pure@3.8.2
Install scripts npm/core-js@2.6.12
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
  • orphan: npm/core-js@2.6.12
Install scripts npm/postinstall-postinstall@2.1.0
  • orphan: npm/postinstall-postinstall@2.1.0

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/core-js-pure@3.8.2
  • @SocketSecurity ignore npm/core-js@2.6.12
  • @SocketSecurity ignore npm/postinstall-postinstall@2.1.0

@tmigone tmigone force-pushed the horizon branch 2 times, most recently from 31237f0 to a9a6717 Compare March 18, 2024 13:07
Copy link

socket-security bot commented Mar 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/node@17.0.45 None 0 1.68 MB types
npm/yaml@1.10.2 environment 0 448 kB eemeli

🚮 Removed packages: npm/@babel/code-frame@7.24.2, npm/@babel/helper-validator-identifier@7.24.5, npm/@babel/highlight@7.24.5, npm/@babel/runtime@7.24.5, npm/@changesets/apply-release-plan@7.0.0, npm/@changesets/assemble-release-plan@6.0.0, npm/@changesets/changelog-git@0.2.0, npm/@changesets/cli@2.27.1, npm/@changesets/config@3.0.0, npm/@changesets/errors@0.2.0, npm/@changesets/get-dependents-graph@2.0.0, npm/@changesets/get-release-plan@4.0.0, npm/@changesets/get-version-range-type@0.4.0, npm/@changesets/git@3.0.0, npm/@changesets/logger@0.1.0, npm/@changesets/parse@0.4.0, npm/@changesets/pre@2.0.0, npm/@changesets/read@0.6.0, npm/@changesets/types@6.0.0, npm/@changesets/write@0.3.0, npm/@commitlint/cli@18.6.1, npm/@commitlint/config-conventional@18.6.3, npm/@commitlint/config-validator@18.6.1, npm/@commitlint/ensure@18.6.1, npm/@commitlint/execute-rule@18.6.1, npm/@commitlint/format@18.6.1, npm/@commitlint/is-ignored@18.6.1, npm/@commitlint/lint@18.6.1, npm/@commitlint/load@18.6.1, npm/@commitlint/message@18.6.1, npm/@commitlint/parse@18.6.1, npm/@commitlint/read@18.6.1, npm/@commitlint/resolve-extends@18.6.1, npm/@commitlint/rules@18.6.1, npm/@commitlint/to-lines@18.6.1, npm/@commitlint/top-level@18.6.1, npm/@commitlint/types@18.6.1, npm/@graphprotocol/contracts-monorepo@0.0.0-use.local, npm/@graphprotocol/data-edge@0.0.0-use.local, npm/@graphprotocol/horizon@0.0.0-use.local, npm/@graphprotocol/sdk@0.0.0-use.local, npm/@graphprotocol/token-distribution@0.0.0-use.local, npm/@manypkg/find-root@1.1.0, npm/@manypkg/get-packages@1.1.3, npm/@nodelib/fs.scandir@2.1.5, npm/@nodelib/fs.walk@1.2.8, npm/@types/minimist@1.2.5, npm/@types/mocha@9.1.1, npm/@types/node@20.12.12, npm/@types/normalize-package-data@2.4.4, npm/@types/semver@7.5.8, npm/ajv@8.13.0, npm/ansi-colors@4.1.3, npm/ansi-styles@4.3.0, npm/array-buffer-byte-length@1.0.1, npm/array-ify@1.0.0, npm/array.prototype.flat@1.3.2, npm/arraybuffer.prototype.slice@1.0.3, npm/arrify@1.0.1, npm/available-typed-arrays@1.0.7, npm/better-path-resolve@1.0.0, npm/braces@3.0.2, npm/breakword@1.0.6, npm/call-bind@1.0.7, npm/camelcase-keys@6.2.2, npm/camelcase@5.3.1, npm/caniuse-lite@1.0.30001620, npm/chalk@2.4.2, npm/chardet@0.7.0, npm/cliui@6.0.0, npm/compare-func@2.0.0, npm/conventional-changelog-angular@7.0.0, npm/conventional-changelog-conventionalcommits@7.0.2, npm/conventional-commits-parser@5.0.0, npm/cosmiconfig-typescript-loader@5.0.0, npm/cosmiconfig@8.3.6, npm/cross-spawn@7.0.3, npm/csv-generate@3.4.3, npm/csv-parse@4.16.3, npm/csv-stringify@5.6.5, npm/csv@5.5.3, npm/dargs@7.0.0, npm/decamelize-keys@1.1.1, npm/decamelize@1.2.0, npm/define-data-property@1.1.4, npm/define-properties@1.2.1, npm/detect-indent@6.1.0, npm/dir-glob@3.0.1, npm/dot-prop@5.3.0, npm/enquirer@2.4.1, npm/error-ex@1.3.2, npm/es-abstract@1.23.3, npm/es-define-property@1.0.0, npm/es-errors@1.3.0, npm/es-shim-unscopables@1.0.2, npm/eslint-graph-config@0.0.0-use.local, npm/execa@5.1.1, npm/extendable-error@0.1.7, npm/external-editor@3.1.0, npm/fast-glob@3.3.2, npm/fastq@1.17.1, npm/find-up@5.0.0, npm/find-yarn-workspace-root2@1.2.16, npm/fs-extra@7.0.1, npm/function-bind@1.1.2, npm/get-caller-file@2.0.5, npm/get-intrinsic@1.2.4, npm/git-raw-commits@2.0.11, npm/global-dirs@0.1.1, npm/globby@11.1.0, npm/gopd@1.0.1, npm/grapheme-splitter@1.0.4, npm/hard-rejection@2.1.0, npm/has-property-descriptors@1.0.2, npm/hasown@2.0.2, npm/hosted-git-info@2.8.9, npm/human-id@1.0.2, npm/husky@8.0.3, npm/iconv-lite@0.4.24, npm/ignore@5.3.1, npm/import-fresh@3.3.0, npm/is-core-module@2.13.1, npm/is-subdir@1.2.0, npm/is-text-path@2.0.0, npm/js-yaml@3.14.1, npm/jsonparse@1.3.1, npm/jsonstream@1.3.5, npm/kleur@4.1.5, npm/locate-path@5.0.0, npm/lodash.camelcase@4.3.0, npm/lodash.isfunction@3.0.9, npm/lodash.isplainobject@4.0.6, npm/lodash.kebabcase@4.1.1, npm/lodash.merge@4.6.2, npm/lodash.mergewith@4.6.2, npm/lodash.snakecase@4.1.1, npm/lodash.startcase@4.4.0, npm/lodash.upperfirst@4.3.1, npm/lru-cache@6.0.0, npm/map-obj@4.3.0, npm/meow@6.1.1, npm/micromatch@4.0.5, npm/min-indent@1.0.1, npm/minimist-options@4.1.0, npm/nanoid@3.3.7, npm/normalize-package-data@3.0.3, npm/npm-run-path@4.0.1, npm/onetime@5.1.2, npm/outdent@0.5.0, npm/p-filter@2.1.0, npm/p-limit@2.3.0, npm/p-locate@5.0.0, npm/p-map@2.1.0, npm/p-try@2.2.0, npm/parent-module@1.0.1, npm/parse-json@5.2.0, npm/path-parse@1.0.7, npm/picocolors@1.0.1, npm/pify@4.0.1, npm/pkg-dir@4.2.0, npm/preferred-pm@3.1.3, npm/queue-microtask@1.2.3, npm/quick-lru@4.0.1, npm/read-pkg-up@7.0.1, npm/read-pkg@5.2.0, npm/read-yaml-file@1.1.0, npm/redent@3.0.0, npm/regenerator-runtime@0.14.1, npm/require-directory@2.1.1, npm/require-main-filename@2.0.0, npm/resolve-from@5.0.0, npm/resolve-global@1.0.0, npm/resolve@1.22.8, npm/run-parallel@1.2.0, npm/set-blocking@2.0.0, npm/set-function-length@1.2.2, npm/shebang-command@2.0.0, npm/smartwrap@2.0.2, npm/solhint-graph-config@0.0.0-use.local, npm/spawndamnit@2.0.0, npm/stream-transform@2.1.3, npm/streamsearch@1.1.0, npm/string_decoder@1.3.0, npm/strip-bom@3.0.0, npm/strip-indent@3.0.0, npm/supports-color@7.2.0, npm/supports-preserve-symlinks-flag@1.0.0, npm/term-size@2.2.1, npm/text-extensions@2.4.0, npm/through2@4.0.2, npm/tmp@0.0.33, npm/to-regex-range@5.0.1, npm/trim-newlines@3.0.1, npm/tty-table@4.2.3, npm/typescript@5.4.5, npm/uri-js@4.4.1, npm/validate-npm-package-license@3.0.4, npm/wcwidth@1.0.1, npm/which-module@2.0.1, npm/which-pm@2.0.0, npm/which@2.0.2, npm/wrap-ansi@6.2.0, npm/y18n@4.0.3, npm/yargs-parser@20.2.9, npm/yargs@17.7.2, npm/yocto-queue@0.1.0

View full report↗︎

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.70%. Comparing base (a94a455) to head (ddc82ab).

Current head ddc82ab differs from pull request most recent head 3afdd91

Please upload reports for the commit 3afdd91 to get more accurate results.

Additional details and impacted files
@@           Coverage Diff            @@
##           horizon     #946   +/-   ##
========================================
  Coverage    92.70%   92.70%           
========================================
  Files           46       46           
  Lines         2370     2370           
  Branches       426      426           
========================================
  Hits          2197     2197           
  Misses         173      173           
Flag Coverage Δ
unittests 92.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone changed the base branch from horizon to main March 21, 2024 21:02
@tmigone tmigone changed the base branch from main to horizon March 21, 2024 21:02
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
tmigone and others added 28 commits April 25, 2024 12:37
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
…nager-tests

fix: horizon dispute manager tests
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
@tmigone tmigone marked this pull request as ready for review May 17, 2024 20:54
@tmigone tmigone merged commit 46e5da5 into horizon May 17, 2024
3 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants