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

BSC - Decimal Fix & Graph-ts Upgade #200

Merged
merged 6 commits into from
Feb 26, 2024
Merged

BSC - Decimal Fix & Graph-ts Upgade #200

merged 6 commits into from
Feb 26, 2024

Conversation

Data-Nexus
Copy link
Contributor

Fixes:

  • Updated graph-ts and cli & AS migrations
  • Updated ERC20 ABI to allow larger decimals and add a less than 255 check in fetchTokenDecimals()
  • Updated MIN_ETH_LOCKED to 300 BNB to fix TVL issues
  • Updated reference pool to 0x6fe9e9de56356f7edbfcbb29fab7cd69471a4869 since the currently reference pool only has 6k TVL
  • Rewound graft block to handle recent TVL issues

Copy link

socket-security bot commented Feb 5, 2024

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

Package New capabilities Transitives Size Publisher
npm/@graphprotocol/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +488 143 MB dotansimha
npm/@graphprotocol/[email protected] Transitive: eval +3 19.2 MB dotansimha
npm/@types/[email protected] None 0 6.39 kB types
npm/[email protected] environment 0 26.1 kB jonschlinkert
npm/[email protected] Transitive: environment, network +2 432 kB infinitered-owner
npm/[email protected] eval Transitive: filesystem +5 20.9 MB assemblyscript
npm/[email protected] None 0 808 kB aearly
npm/[email protected] None 0 12.5 MB assemblyscript
npm/[email protected] None 0 99 kB fanatid
npm/[email protected] filesystem 0 5.75 kB isaacs
npm/[email protected] Transitive: environment +7 158 kB turbo87
npm/[email protected] filesystem Transitive: environment, unsafe +19 665 kB davidtheclark
npm/[email protected] environment +1 49.2 kB qix
npm/[email protected] shell Transitive: environment +1 516 kB alexzeitler
npm/[email protected] eval, filesystem Transitive: environment, shell +8 1.24 MB mde
npm/[email protected] environment +1 224 kB jonschlinkert
npm/[email protected] None 0 7.76 kB achingbrain
npm/[email protected] environment, shell Transitive: filesystem +14 187 kB sindresorhus
npm/[email protected] filesystem Transitive: environment +11 235 kB szwacz
npm/[email protected] None 0 12.2 kB sindresorhus
npm/[email protected] Transitive: environment, filesystem +8 2.23 MB isaacs
npm/[email protected] filesystem, shell Transitive: environment, eval, network, unsafe +100 4.16 MB infinitered-owner
npm/[email protected] None 0 44.3 kB ehmicky
npm/[email protected] None 0 676 kB leebyron
npm/[email protected] network Transitive: environment, filesystem +82 20.4 MB achingbrain
npm/[email protected] Transitive: environment, filesystem, network +35 1.25 MB npm-service-account-ipfs
npm/[email protected] None 0 13.5 kB hugomrdias
npm/[email protected] network Transitive: filesystem, shell +11 1.92 MB tedeh
npm/[email protected] None 0 144 kB sindresorhus
npm/[email protected] Transitive: environment, network +15 1.4 MB vascosantos
npm/[email protected] network +3 560 kB node-fetch-bot
npm/[email protected] Transitive: environment +13 123 kB sindresorhus
npm/[email protected] None 0 90 kB mrmlnc
npm/[email protected] None +2 120 kB npm-cli-ops
npm/[email protected] None 0 9.96 kB isaacs
npm/[email protected] filesystem +2 895 kB linusu
npm/[email protected] Transitive: environment +10 204 kB matteo.collina
npm/[email protected] None +4 68 kB sindresorhus
npm/[email protected] None +1 9.64 kB sindresorhus
npm/[email protected] Transitive: environment +9 191 kB rvagg
npm/[email protected] environment, filesystem 0 128 kB oss-bot

🚮 Removed packages: npm/@graphprotocol/[email protected], npm/@graphprotocol/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Feb 5, 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/[email protected]
  • Install script: postinstall
  • Source: node scripts/postinstall
Native code npm/[email protected]
Native code npm/[email protected]
Deprecated npm/[email protected]
  • Reason: This module is deprecated, please upgrade to @multiformats/multiaddr-to-uri
Deprecated npm/[email protected]
Deprecated npm/[email protected]

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.

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

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/[email protected] or ignore all packages with @SocketSecurity ignore-all

@Data-Nexus
Copy link
Contributor Author

Builds to: QmNtvKgPtgHS8vrx5RvXz1SK6ERVwNQrLQNRthz8q25Bt2
Link for testing: https://thegraph.com/hosted-service/subgraph/graph-buildersdao/univ3-bsc?version=pending

@ianlapham ianlapham merged commit b31edef into Uniswap:bsc Feb 26, 2024
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants