This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Web3 4x Upgrade #5393
Draft
nazarhussain
wants to merge
475
commits into
trufflesuite:develop
Choose a base branch
from
nazarhussain:nh/web3-4x-upgrade
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Web3 4x Upgrade #5393
Changes from all commits
Commits
Show all changes
475 commits
Select commit
Hold shift + click to select a range
6228d20
keep track of unknown sources so we can display something useful in t…
eggplantzzz ef48764
add a couple of deps to useEffect callback to make React happy
eggplantzzz 188e69f
add plumbing for keeping track of debugger breakpoints
eggplantzzz 82784bb
add click handler on source lines to handle breakpoints and create Un…
eggplantzzz 3eb9102
update UI when the user clicks on a line to set a breakpoint
eggplantzzz f05fabb
update debugger when setting breakpoints
eggplantzzz dc8f9bf
improve rendering of variables
eggplantzzz 2e51b0d
update mantine packages to latest of version 5
eggplantzzz 77451a9
WIP - work on the css for debugger view
eggplantzzz 0484c02
when stepping, make content center in the scrollable container
eggplantzzz 9dfd7c0
edit styles and component structure a little bit
eggplantzzz bc44b8f
start work on arranging for a way to set the current source manually
eggplantzzz a9224f1
move initDebugger into the utils folder
eggplantzzz 86d2b11
use generic html element dom manipulation for jumping to source line
eggplantzzz ac2ef7d
remove unnecessary stuff from callback
eggplantzzz 5b41b6d
correct bug with class construction and rename method
eggplantzzz dc30a91
create delete breakpoint method and use it in breakpoint section
eggplantzzz a962f40
give mouse pointer a hover state while over breakpoints
eggplantzzz e75b23a
add source text processing fully into the utils
eggplantzzz 91eb328
add hacky method for fully supporting multiline comments
eggplantzzz 3dd8981
update useEffects to better deal with autoscrolling as debugger steps
eggplantzzz 4534f8f
optimize renders and add type predicate
eggplantzzz 9aa2fa1
add some comments and pass etherscan api key to source-fetcher if it …
eggplantzzz adaa262
bump react-dom-router to ^6.10.0
eggplantzzz 7576cb6
create simulate tx button and adjust some method signatures in sessio…
eggplantzzz 4f9cc09
edit some css and fix a bug involving passing the provider
eggplantzzz 5d4dd6e
add stack component, update useEffects, and start working on notifica…
eggplantzzz f99d8d4
rework layout leveraging mantine more
eggplantzzz 208ad30
update html a bit and the scrolling algorithm
eggplantzzz ed7bf92
remove contracts module from dashboard
eggplantzzz 2983502
dashboard: Debugger WIP
821be67
hack out the state for keeping track of sources and debugger session
eggplantzzz 24d283a
get scroll working crudely and provide error message when tx hash not…
eggplantzzz dbb9fa5
add new inspect lib, create Variables component, and update operation…
eggplantzzz 8a52dd2
only call scrollIntoView when the ref exists
eggplantzzz ec4fcf6
keep track of unknown sources so we can display something useful in t…
eggplantzzz 801e124
add plumbing for keeping track of debugger breakpoints
eggplantzzz a7eeb6a
update debugger when setting breakpoints
eggplantzzz 8150b38
WIP - work on the css for debugger view
eggplantzzz ed63127
when stepping, make content center in the scrollable container
eggplantzzz 2c47057
start work on arranging for a way to set the current source manually
eggplantzzz 4446d43
use generic html element dom manipulation for jumping to source line …
eggplantzzz b33dd95
create delete breakpoint method and use it in breakpoint section
eggplantzzz ada8f54
give mouse pointer a hover state while over breakpoints
eggplantzzz 90429df
update useEffects to better deal with autoscrolling as debugger steps
eggplantzzz 3fb2981
optimize renders
eggplantzzz d05f3ff
update html a bit, some styles, and the scrolling algorithm
eggplantzzz ac5e03f
keep werkin that design
eggplantzzz 5258c8d
give individual panes nice, curvy corners and update stack
eggplantzzz da33613
update unknown source display, add more css, and try a different disp…
eggplantzzz 0171537
update background color for uknown source in dark mode and update bre…
eggplantzzz 937f8a3
reword message
eggplantzzz 4b3ae70
set reasonable scroll amount
eggplantzzz 3855ecd
refine breakpoint design
eggplantzzz d6d1a20
remove notification on error, text in header, and style header
eggplantzzz 7ecbcef
move some css into component and tweak input stuff
eggplantzzz 990e000
continue moving css to component files
eggplantzzz 035dedc
move all debugger logic into the Debugger folder
eggplantzzz 44a7ec0
add padding to breakpoints and tweak border radius for sources
eggplantzzz 4bc185a
add component for displaying preparation progress
eggplantzzz ae4cae2
keep unknown addresses in the global state
eggplantzzz 5ea5559
tighten up some more styling and add naive implementation of preparin…
eggplantzzz 7836e68
rearrange some code and make active source tab a different color
eggplantzzz 5db10f6
fix issue with debugger line numbering and breakpoint system
eggplantzzz 232fa85
tweak colors for active/inactive tabs on sources
eggplantzzz 0fae964
add tooltips to control buttons
eggplantzzz 0d7efb6
add new inactive status for welcome page and add loading spinner
eggplantzzz d42346f
create home page for debugger and store etherscan api key in global s…
eggplantzzz 0c5b193
use mantine hook for interacting with local storage and remove unnece…
eggplantzzz 263a11e
tweak text for etherscan key and update styling
eggplantzzz d30653f
remove border from input
eggplantzzz d9ebf9c
further develop etherscan prompt
eggplantzzz 2b900eb
adjust color of prompt container for dark mode
eggplantzzz 22a5ba5
add background color change for active navbar item and update css for…
eggplantzzz af2922b
re-add disabled prop to nav buttons and make background color consist…
eggplantzzz 725cda7
rework how ganache/provider options are passed through init functions
eggplantzzz f40df42
instead of passing provider, pass network id through init functions
eggplantzzz a452e50
group network id and etherscan key under one parameter named fetching…
eggplantzzz 768b559
add simple error notification when there is an issue with debugger in…
eggplantzzz 912fa71
slightly re-work design for tx signer dialogue
eggplantzzz 812792a
add some more info to error notification
eggplantzzz 50c67ea
tweak error notification design
eggplantzzz 7253c0d
update etherscan message and tweak scrolling algorithm
eggplantzzz 1dc0f2d
match active color for sidebar items to the bottom left button backgr…
eggplantzzz 240fd52
hook up input field and use test tx hash as a backup
eggplantzzz c95282b
style to fix a bug where content went offscreen
eggplantzzz aa150e0
indent variable names in display
eggplantzzz 08e0e8c
remove object-inspect from project and add fetch-and-compile to dashb…
eggplantzzz 2c99384
use flex elements to alleviate weird scrolling issue and remove unnec…
eggplantzzz e3bf4d8
make another naive attempt at getting the stack information correct
eggplantzzz 79b6d16
make tabs for sources scroll instead of stacking
eggplantzzz f87b41b
update ResultInspector to take options
eggplantzzz 5e801eb
check to make sure an affected address is a contract and not an EOA
eggplantzzz 8d660cf
save fetched compilations in the browser
eggplantzzz 8a4d0a8
check to see if a session is loaded so a debugger session doesn't van…
eggplantzzz 6bf8432
make block highlighting include whitespace at start of lines
eggplantzzz def7410
scroll only when debugger steps or current source changes
eggplantzzz aea3479
fix block highlighting issue
eggplantzzz 322bf12
make continue until breakpoint button inactive until one is set
eggplantzzz eee78f3
Revert "fix block highlighting issue"
eggplantzzz 98259e7
remove testing tx hashes
eggplantzzz c40ce67
disable submit button when no tx hash is in input and remove some css
eggplantzzz 7f503cc
remove duplicate entries in dashboard package.json and update to curr…
eggplantzzz 424d002
use vs code icons for debugger buttons
eggplantzzz 4fcf7b0
improve block highlighting
eggplantzzz f59adcd
add some comments and correct property name
eggplantzzz 9306afb
clean up some unnecessary code snippets
eggplantzzz 3b3eb69
make some corrections based on react warnings
eggplantzzz 4d31f7a
handle case when the source range has an undefined source id
eggplantzzz 81bc2a0
highlight the line numbers on lines that have highlighting
eggplantzzz 5eb54c7
make some refinements based on the design
eggplantzzz 1e107c2
narrow error notification box, wrap text when too long, and remove im…
eggplantzzz d4a68dd
refine the etherscan api key message and move a line of code
eggplantzzz 4539bda
adjust some types related to visual debugger state
eggplantzzz 5bc2a1f
handle when the fetch request for source material is not ok
eggplantzzz a9d5502
clean up after rebase mistakes
eggplantzzz 892f1d0
make Ganache fork the current block instead of 5 blocks behind the cu…
eggplantzzz ae08e9c
fix debug button that broke
eggplantzzz 661d0cb
clean up another rebase mistake
eggplantzzz c4cd810
add emojis to the etherscan api key message
eggplantzzz 53a62a0
make button icons larger
eggplantzzz 116a7c7
add a check to make sure the source id is defined before setting
eggplantzzz 3567359
limit ganache output in preparing screen to 6 lines
eggplantzzz 7e2c88e
fix some spacing issues related to source material
eggplantzzz 103f643
Use codec-components inside Dashboard Debugger
gnidan 032c33a
dashboard: Import codec components styles
cliffoo 6947fc1
complete html broken when we chop up the source code and use f…
eggplantzzz 546188b
separate source material into two panes: line number and source material
eggplantzzz e82fd48
remove some unnecessary imports, some unused libs, update some deps, …
eggplantzzz 7c49879
Display variables in <ul> with <NameValuePair>
gnidan 4af8dad
update preparing session message
eggplantzzz 1d2afa9
add another step for preparation and put it in 'prep' mode earlier to…
eggplantzzz 0c3d030
add comment about why we add highlighting tags at the end of html pro…
eggplantzzz 39eb93c
add in hacky thing to deal with some instances of bad source maps
eggplantzzz 2e455ed
update yarn.lock
eggplantzzz 436c7d1
don't set breakpoints on source code but only the margin
eggplantzzz 6bc63b8
make input responsive to enter key press
eggplantzzz 3c01c3d
make syntax highlighting more Truffle-y
eggplantzzz 8e2d2e7
bump ganache to 7.9.0 in dashboard and set some truffle deps to the c…
eggplantzzz 8b38054
replace accidentally deleted dependency and update yarn.lock
eggplantzzz 0d4eb17
dashboard: Improve contrast in debugger
cliffoo d1788b9
remove some unused styling
eggplantzzz 674ae3b
get rid of border from mantine component
eggplantzzz 015c057
remove argument from fetch and compile route
eggplantzzz 780ec9b
set border-radius property properly
eggplantzzz ca529c9
remove unused styling classes
eggplantzzz 5c8d20e
change name of button from 'SimulateTx' to 'Debug'
eggplantzzz 9c63256
add type
eggplantzzz 7d7e119
Update packages/dashboard/src/components/composed/Debugger/Variables.tsx
eggplantzzz 26e5272
move etherscan api key name to constants
eggplantzzz 345346b
cast window.ethereum as any to get rid of some ts-ignores
eggplantzzz cd85e97
get rid of unnecessary flex
eggplantzzz 302d59f
Update packages/dashboard/src/components/composed/Debugger/PreparingS…
eggplantzzz 38d82c5
remove unnecessary escapes
eggplantzzz cfb5e82
re-add flex
eggplantzzz d62e289
use constant
eggplantzzz 5b992d1
move some styles into the component file and remove unused class
eggplantzzz 5790e42
Update packages/dashboard/src/components/composed/Debugger/Sources/in…
eggplantzzz 56f3652
change type of variable and get rid of some ts-ignores
eggplantzzz 8f03e27
remove method that was replaced and never removed
eggplantzzz de87506
re-add hover state for inactive navbar tabs
eggplantzzz f5f704e
add two methods to session type and remove some ts-ignores
eggplantzzz f3407cf
use non-null assertion instead of conditional logic and use createSty…
eggplantzzz a252e2c
revert changes to the try in fetch-and-compile route
eggplantzzz 93f9991
get rid of method
eggplantzzz 4b27f79
correct type for operations
eggplantzzz 4b50b1b
move string constants next to the others
eggplantzzz 5853638
update mantine-related classes and add eslint ignore comment
eggplantzzz 2edaf43
update one more mantine-related class and use empty string instead of…
eggplantzzz 98febed
eslint ignore entire file, cast window.ethereum as any, and remove un…
eggplantzzz 4738552
get rid of some unnecessary css stuff
eggplantzzz e3d9e67
change how highlighted class is stored in constants and update code u…
eggplantzzz f7db450
narrow the scope of the eslint ignore
eggplantzzz 67d2df9
remove console.log
eggplantzzz 66312c4
conditionally add tooltip to fix an issue where it won't disappear wh…
eggplantzzz 173ff9d
re-work Variables component to store raw data in state and calculate …
eggplantzzz 5fc03f7
store stack report data in state and use that for the render
eggplantzzz fed824d
dashboard: Fix debug button styles
cliffoo ad652e7
dashboard: Clean up ganache indexeddb on start
cliffoo 8ed677d
Publish
eggplantzzz a29a32f
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] 2ef6fb0
add a tooltip for the debug button in the tx signer for dashboard
eggplantzzz 383b7b5
correct typo to etherscan message
eggplantzzz addd02f
use global state directly in components rather than passing them as p…
eggplantzzz 6201d52
get rid of currentStep variable
eggplantzzz 78825fa
move source range data into Sources component and make it state
eggplantzzz 48513f5
Publish
eggplantzzz 450c459
Add more networks to etherscan fetcher (including linea)
haltman-at b945e24
Update Solidity version in truffle init to 0.8.21
haltman-at b0fad97
Update solc dependencies to 0.8.21
haltman-at 7bc3c9d
Update sourcify networks for sourcify 2.5.0
haltman-at c05cac6
Update debugger tests to 0.8.21; increase some timeouts
haltman-at a0ae578
Get Yul ASTs and work around id bug
haltman-at f9c1326
Allow getting source IDs from Yul ASTs
haltman-at a38df5d
Account for possibility of YulObject as top-level-node in debugger
haltman-at 763ecd3
Add test of using Yul sources in debugger
haltman-at c2b13f2
Publish
haltman-at 8d130c1
:art: Update references and add fixes
nazarhussain cea1936
:art: Fix the issues raised after merging base branch
nazarhussain 4aa9ab1
:test_tube: Fix few failing tests"
nazarhussain 339bbe3
Fix some issues
nazarhussain 86c29ae
Changes in tests
nikoulai d5c6726
Unskip Project.contractInstances test
nikoulai 888e956
Revert sha3 to keccak256
nikoulai 00e843d
Add changes
nikoulai c1b4398
Add changes
nikoulai ae6f849
fix web3 upgrade multicall bug
mpetrunic 84aee35
fix a test
Muhammad-Altabba 3c06a64
fix some tests and add TODOs linked to issues
Muhammad-Altabba 46d497a
un-skip a working test at packages/db
Muhammad-Altabba 356fabc
fix tests at console.js inside core
Muhammad-Altabba f270888
un-skip running tests
Muhammad-Altabba 13857f1
un-skip some tests and increase their timeouts
Muhammad-Altabba 374b258
revert commenting some lines
Muhammad-Altabba 4bf9d01
fix Quorum decodeParameters tests
Muhammad-Altabba d74a438
Merge branch 'nh/web3-4x-upgrade' into trufflesuite-egg/web3-upgrade
Muhammad-Altabba e455cd3
update yarn.lock
Muhammad-Altabba 5fbd97d
Merge remote-tracking branch 'upstream/develop' into nh/web3-4x-upgrade
Muhammad-Altabba 7ba2841
adding missed dependencies
Muhammad-Altabba 4edc60e
update yarn.lock
Muhammad-Altabba 08e1a59
add option to ignore node native modules while performing the depende…
eggplantzzz e879fa6
Merge remote-tracking branch 'upstream/master' into nh/web3-4x-upgrade
Muhammad-Altabba b76ebb6
update node versions in the CI
Muhammad-Altabba 3b6da90
temporarily disable `git diff` at CI
Muhammad-Altabba 40aada9
update node versions in the CI
Muhammad-Altabba df2447e
temporarily disable `git diff` at CI
Muhammad-Altabba fcfce6b
add back changes overridden when rebased
Muhammad-Altabba 909acf7
try enable back `git diff` at CI
Muhammad-Altabba 94f6a8d
fix a unit test for core console
Muhammad-Altabba 6f1bfb8
increase timeout at some tests
Muhammad-Altabba 6989d44
increase timeout at a test
Muhammad-Altabba 7f65bf5
fix and un-skip tests at deployer
Muhammad-Altabba 4f9f0e7
un-skip tests at provider
Muhammad-Altabba b858881
restore mocking files and empty lines at packages/truffle
Muhammad-Altabba 2618ff7
restore mocking files and empty lines at packages/truffle
Muhammad-Altabba 948ebc9
restore deleted files at resolver/test/fixtures
Muhammad-Altabba 556812c
fix and un-skip tests at packages/resolver
Muhammad-Altabba 3d9c450
un-skip passed test at packages/truffle
Muhammad-Altabba 36abbd4
add a comment at a test and add modifiers at .sol file
Muhammad-Altabba 4ace25c
set web3.js packages versions to `dev`
Muhammad-Altabba f8188f2
reject promiEvent on error
Muhammad-Altabba 36f6591
allow sendTransaction and smart contract calls to process `options` p…
Muhammad-Altabba 70250d8
resolve and un-skip issues: web3.js#6320 and web3.js#6317
Muhammad-Altabba a674046
remove web3-types from packages/contract
Muhammad-Altabba 232be17
update dependencies
Muhammad-Altabba af140b2
fix and un-skip tests for events logs
Muhammad-Altabba 4d25ae7
allow deploy to optionally accept transaction options
Muhammad-Altabba a66de71
resolve and un-skip issue: web3.js#6327
Muhammad-Altabba 4a9c99f
modify for issue: web3.js#6345
Muhammad-Altabba df2a53a
remove comments related to issue: web3.js#6311
Muhammad-Altabba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned web3/web3.js#6011 (comment), dom was added to handle the use of RequestInit, but there should be a better way to handle this on our end (@spacesailor24)