This repository was archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
ContractContext: should hold external contracts similar to useContractLoader #101
Labels
✨ type.feature
New feature or request
Comments
Closed
3 tasks
useContractLoader
ShravanSunder
added a commit
that referenced
this issue
Dec 22, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 22, 2021
- created an contract context factory
ShravanSunder
added a commit
that referenced
this issue
Dec 22, 2021
ShravanSunder
added a commit
to scaffold-eth/scaffold-eth-typescript
that referenced
this issue
Dec 22, 2021
- external contracts are now handles - worked on the contract context initalization in app
ShravanSunder
added a commit
to scaffold-eth/scaffold-eth-typescript
that referenced
this issue
Dec 22, 2021
- created an contract context factory
ShravanSunder
added a commit
that referenced
this issue
Dec 23, 2021
issues with app contract definition types
ShravanSunder
added a commit
that referenced
this issue
Dec 23, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 24, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 31, 2021
… related files. also renamed harness to wrapper
ShravanSunder
added a commit
that referenced
this issue
Dec 31, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 31, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 31, 2021
ShravanSunder
added a commit
that referenced
this issue
Dec 31, 2021
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
… contracts in multiple networks
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
ShravanSunder
added a commit
that referenced
this issue
Jan 2, 2022
This was referenced Jan 2, 2022
ShravanSunder
added a commit
that referenced
this issue
Jan 3, 2022
* #96 #94 #93 working on ContractContext. Started eth context override * #94 ethersContext overrides for hooks * #94 ethersContext overrides for hooks. enable secondary/alternate web3context * #94 v3.4 will not have getters and setters * #96 added comments * fixing merge conflicts, disabled some tests temporarily, changed command name * Update useGetUserFromSigners.ts * Additionally #94 #102 Merge branch 'develop' into feature/#96 # Conflicts: # package.json # src/context/EthersAppContext.tsx # src/hooks/useBalance.ts # src/hooks/useContractExistsAtAddress.ts # src/hooks/useContractLoader.ts # src/hooks/useContractReader.ts # src/hooks/useGetUserFromProviders.ts # src/hooks/useGetUserFromSigners.ts * update version (#111) * #101 #94 updates for contracts context changes * #101 #94 updates for contracts context changes - created an contract context factory * #101 #94 some work on generics for definitions * #101 #94 typing for contracts and factory seems to be working issues with app contract definition types * #101 #94 moved some files around * #101 #94 Finally go the contract typeing to work. Now i need to work on the reducer * #101 #94 moved logic from class into reducer * #101 #94 checkpoint * #101 #94 organization and refactoring of names and contractAppContext related files. also renamed harness to wrapper * #101 #94 more refactoring of types * #101 #94 fixing types for the contract actions * #101 #94 fixing types for the contract actions * #101 #94 created hook and system to load contracts * #95 added update tuples (getters). Additionally updated useContractReader to be typed. - left the old contractReader with untyped postfix - removed useOnRepetition and updated useBlockNumber - updated optional provider for many hooks - removed useWeb3Modal * #95 added update tuples (getters). * #95 updated packages and fixed some bugs * #95 updated yarn and set node version * #95 refactoring and fixes * #95 fixes for compatability of eht-hooks and components * #95 #101 #94 bug fixes and manual testing * #95 #101 #94 bug fixes and manual testing. fixing issues with loading contracts in multiple networks * #95 #101 #94 converted the context back into a reducer * #95 #101 #94 changes to hook options. found invariant-ts * #95 #101 #94 fixed issues with loading contracts * #95 #101 #94 fixed logs * #95 #101 #94 fixed bugs and removed async hook Co-authored-by: Jaxcoder <[email protected]>
Repository owner
moved this from 🏃🏾♀️ In Progress
to ✅ Done
in scaffold-eth-typescript & packages
Jan 3, 2022
1 task
ShravanSunder
added a commit
to scaffold-eth/scaffold-eth-typescript
that referenced
this issue
Jan 6, 2022
* #29 testing out contracts context * #29 v4 compatability changes and merging develop * #29 eth-hooks v4 minor updates * #29 more work on contract context scaffold-eth/eth-ui#101 - external contracts are now handles - worked on the contract context initalization in app * #29 more work on contract context scaffold-eth/eth-ui#101 - created an contract context factory * #29 preliminary typing system for all the app contracts * #29 contract typing is almost working * #29 checkpoint * #29 checkpoint * #29 regenerate lock file * #29 general refactor of v4 types and function names * #29 created hook and system to load contracts * #29 using the new eth-hooksv4 paradigm * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 loading contractrats * #29 changes to how main provider is passed around * added react async * #29 final changes to inital beta * #29 final changes to inital beta * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 event based updates * replace apollo with react-query and graphql-request. lazy load GraphiQl * #29 tried to make folder structure simpler. better commands to build contracts * #29 minor fixes * #29 more comments to contract * update packages * #46 fixes and autconnect to burner with an option * #46 packages updates
ShravanSunder
added a commit
to scaffold-eth/scaffold-eth-typescript
that referenced
this issue
Jan 12, 2022
* Feature/#29 eth-hooks v4 changes (#32) * #29 testing out contracts context * #29 v4 compatability changes and merging develop * #29 eth-hooks v4 minor updates * #29 more work on contract context scaffold-eth/eth-ui#101 - external contracts are now handles - worked on the contract context initalization in app * #29 more work on contract context scaffold-eth/eth-ui#101 - created an contract context factory * #29 preliminary typing system for all the app contracts * #29 contract typing is almost working * #29 checkpoint * #29 checkpoint * #29 regenerate lock file * #29 general refactor of v4 types and function names * #29 created hook and system to load contracts * #29 using the new eth-hooksv4 paradigm * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 loading contractrats * #29 changes to how main provider is passed around * added react async * #29 final changes to inital beta * #29 final changes to inital beta * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 event based updates * replace apollo with react-query and graphql-request. lazy load GraphiQl * #29 tried to make folder structure simpler. better commands to build contracts * #29 minor fixes * #29 more comments to contract * update packages * #46 fixes and autconnect to burner with an option * #46 packages updates * changes for scaffold-eth/eth-ui#120 useBalance * #47 changes to building contract, bug fixes, and updates to packages * reenabled dai * #47 updated packages * #47 updated packages, fixed externals for vite. * disabled subgraph for now #48 * updated git ignore * #47 fix to generic-contract. removed generated fiels * #47 updated git ignore * #47 updated action * #47 updated action * #47 updated action
ShravanSunder
added a commit
that referenced
this issue
Jan 19, 2022
* docs * update version (#109) * Revert "update version (#109)" (#110) This reverts commit 72efce3. * Fix docs (#105) * Fix @link to correct class name `EthersModalConnect` does not exist, I suppose you meant `EthersModalConnector` * Fix incorrect markdown links * Fix some confusing wording (probably copy paste leftovers) Co-authored-by: Shravan Sunder <[email protected]> * updated docs * Feature/#96 eth-hook v4 initial dev (#103) * #96 #94 #93 working on ContractContext. Started eth context override * #94 ethersContext overrides for hooks * #94 ethersContext overrides for hooks. enable secondary/alternate web3context * #94 v3.4 will not have getters and setters * #96 added comments * fixing merge conflicts, disabled some tests temporarily, changed command name * Update useGetUserFromSigners.ts * Additionally #94 #102 Merge branch 'develop' into feature/#96 # Conflicts: # package.json # src/context/EthersAppContext.tsx # src/hooks/useBalance.ts # src/hooks/useContractExistsAtAddress.ts # src/hooks/useContractLoader.ts # src/hooks/useContractReader.ts # src/hooks/useGetUserFromProviders.ts # src/hooks/useGetUserFromSigners.ts * update version (#111) * #101 #94 updates for contracts context changes * #101 #94 updates for contracts context changes - created an contract context factory * #101 #94 some work on generics for definitions * #101 #94 typing for contracts and factory seems to be working issues with app contract definition types * #101 #94 moved some files around * #101 #94 Finally go the contract typeing to work. Now i need to work on the reducer * #101 #94 moved logic from class into reducer * #101 #94 checkpoint * #101 #94 organization and refactoring of names and contractAppContext related files. also renamed harness to wrapper * #101 #94 more refactoring of types * #101 #94 fixing types for the contract actions * #101 #94 fixing types for the contract actions * #101 #94 created hook and system to load contracts * #95 added update tuples (getters). Additionally updated useContractReader to be typed. - left the old contractReader with untyped postfix - removed useOnRepetition and updated useBlockNumber - updated optional provider for many hooks - removed useWeb3Modal * #95 added update tuples (getters). * #95 updated packages and fixed some bugs * #95 updated yarn and set node version * #95 refactoring and fixes * #95 fixes for compatability of eht-hooks and components * #95 #101 #94 bug fixes and manual testing * #95 #101 #94 bug fixes and manual testing. fixing issues with loading contracts in multiple networks * #95 #101 #94 converted the context back into a reducer * #95 #101 #94 changes to hook options. found invariant-ts * #95 #101 #94 fixed issues with loading contracts * #95 #101 #94 fixed logs * #95 #101 #94 fixed bugs and removed async hook Co-authored-by: Jaxcoder <[email protected]> * Feature/#114 (#119) * #114 integrated react-query and a caching layer for ethereum calls. in useContractReader and useBalance - Now ethereum data will be cached and reused based on - you can now poll, or get data based on new blocks, or block number interval * #114 updates to query namespace and query invalidation on contract connector load. updated many hooks to new cached paradigm * #114 bug fixes to new caching changes * #114 event based updates. changes to default options. all hooks are up to date * #114 minor bug fix * #114 context changes. TODO split apart options * #114 seperated override from options * #114 minor workaround for typechain array issue * #114 better console logs * #114 imporvements to keys and some hooks. finished useGasPrice * #114 new version * #114 fixes to keys and connectors. also auto connect for burner options * #120 #119 created useBalance which accepts single or multiple addresses - updated contract func key for better caching and invalidation * updated yarn * Features/#116 (#121) * #116 fixed test for useBalance #117 modified wrapper for ContractContext - removed old json way sof doing things, will be adding local contracts for testing - updating hardhat mocks * #116 lots of changes to tests - cleaned up tests - fixed old tests - test wrapper changes to types - fixed how mocks are loaded - new mocks for external and hardhat contracts - updated useContractLoader to be more simple * #116 bug fixes and updates to contract context - invalidation of old contract isntances - key updates - updates to validate adaptor - fixes to sorting * #116 bug fixes and updates to contract context. Fix to EthersConnector signer bug - signer should invalidate when chain is changed - invalidation of old contract isntances - key updates - updates to validate adaptor - fixes to sorting * #116 changed order of invalidation of cache * #116 package updates * #116 package updates * #116 package updates * updated actions * #124 updated docs * #124 updated readme in docs * Create CNAME * Delete CNAME * Set theme jekyll-theme-minimal * Set theme jekyll-theme-architect * Set theme jekyll-theme-midnight * Set theme jekyll-theme-modernist * Set theme jekyll-theme-hacker * Set theme jekyll-theme-architect * #124 updated docs headers * #124 added emoji * chore apply prettier to all files (#128) biggest changes are just the newlines from windows computers * Features/#126 (#129) * #126 added status return type. made react query options available. better options typeing * update packages * updated tests #126 * Features/#125 (#130) * updated docs * #124 updated docs * #124 updated readme in docs * Create CNAME * Delete CNAME * Set theme jekyll-theme-minimal * Set theme jekyll-theme-architect * Set theme jekyll-theme-midnight * Set theme jekyll-theme-modernist * Set theme jekyll-theme-hacker * Set theme jekyll-theme-architect * #124 updated docs headers * #124 added emoji * #125 improved typing and updated to #125. waiting for eth-sdk to update to v7 * #125 better comments * #125 some type changes * #125 some type changes for simplicity * #126 added status return type. made react query options available. better options typeing * update packages * updated tests #126 * #125 merged with #126 * added examples and comments and minor changes #126 * comments and readme * updated README * updated README * update package for docs * updated docs * #76 Tests for useTokenBalance (#131) Additionally adds some docs to useTokenBalance and useBalance * #127 comments and readme * #124 comments and readme * Bugs/#133 (#135) * #133 fixes for contractConnects bugs found in collating contracts for the connectors * #133 fixes for contractConnects bugs found in collating contracts for the connectors * #133 nuked lock file * updated package * update packages and readme Co-authored-by: Jaxcoder <[email protected]> Co-authored-by: omnifient <[email protected]> Co-authored-by: Sean Paterson <[email protected]>
ShravanSunder
added a commit
that referenced
this issue
May 2, 2022
* updated action * Feat/merge (#161) * docs * update version (#109) * Revert "update version (#109)" (#110) This reverts commit 72efce3. * Fix docs (#105) * Fix @link to correct class name `EthersModalConnect` does not exist, I suppose you meant `EthersModalConnector` * Fix incorrect markdown links * Fix some confusing wording (probably copy paste leftovers) Co-authored-by: Shravan Sunder <[email protected]> * updated docs * Feature/#96 eth-hook v4 initial dev (#103) * #96 #94 #93 working on ContractContext. Started eth context override * #94 ethersContext overrides for hooks * #94 ethersContext overrides for hooks. enable secondary/alternate web3context * #94 v3.4 will not have getters and setters * #96 added comments * fixing merge conflicts, disabled some tests temporarily, changed command name * Update useGetUserFromSigners.ts * Additionally #94 #102 Merge branch 'develop' into feature/#96 # Conflicts: # package.json # src/context/EthersAppContext.tsx # src/hooks/useBalance.ts # src/hooks/useContractExistsAtAddress.ts # src/hooks/useContractLoader.ts # src/hooks/useContractReader.ts # src/hooks/useGetUserFromProviders.ts # src/hooks/useGetUserFromSigners.ts * update version (#111) * #101 #94 updates for contracts context changes * #101 #94 updates for contracts context changes - created an contract context factory * #101 #94 some work on generics for definitions * #101 #94 typing for contracts and factory seems to be working issues with app contract definition types * #101 #94 moved some files around * #101 #94 Finally go the contract typeing to work. Now i need to work on the reducer * #101 #94 moved logic from class into reducer * #101 #94 checkpoint * #101 #94 organization and refactoring of names and contractAppContext related files. also renamed harness to wrapper * #101 #94 more refactoring of types * #101 #94 fixing types for the contract actions * #101 #94 fixing types for the contract actions * #101 #94 created hook and system to load contracts * #95 added update tuples (getters). Additionally updated useContractReader to be typed. - left the old contractReader with untyped postfix - removed useOnRepetition and updated useBlockNumber - updated optional provider for many hooks - removed useWeb3Modal * #95 added update tuples (getters). * #95 updated packages and fixed some bugs * #95 updated yarn and set node version * #95 refactoring and fixes * #95 fixes for compatability of eht-hooks and components * #95 #101 #94 bug fixes and manual testing * #95 #101 #94 bug fixes and manual testing. fixing issues with loading contracts in multiple networks * #95 #101 #94 converted the context back into a reducer * #95 #101 #94 changes to hook options. found invariant-ts * #95 #101 #94 fixed issues with loading contracts * #95 #101 #94 fixed logs * #95 #101 #94 fixed bugs and removed async hook Co-authored-by: Jaxcoder <[email protected]> * Feature/#114 (#119) * #114 integrated react-query and a caching layer for ethereum calls. in useContractReader and useBalance - Now ethereum data will be cached and reused based on - you can now poll, or get data based on new blocks, or block number interval * #114 updates to query namespace and query invalidation on contract connector load. updated many hooks to new cached paradigm * #114 bug fixes to new caching changes * #114 event based updates. changes to default options. all hooks are up to date * #114 minor bug fix * #114 context changes. TODO split apart options * #114 seperated override from options * #114 minor workaround for typechain array issue * #114 better console logs * #114 imporvements to keys and some hooks. finished useGasPrice * #114 new version * #114 fixes to keys and connectors. also auto connect for burner options * #120 #119 created useBalance which accepts single or multiple addresses - updated contract func key for better caching and invalidation * updated yarn * Features/#116 (#121) * #116 fixed test for useBalance #117 modified wrapper for ContractContext - removed old json way sof doing things, will be adding local contracts for testing - updating hardhat mocks * #116 lots of changes to tests - cleaned up tests - fixed old tests - test wrapper changes to types - fixed how mocks are loaded - new mocks for external and hardhat contracts - updated useContractLoader to be more simple * #116 bug fixes and updates to contract context - invalidation of old contract isntances - key updates - updates to validate adaptor - fixes to sorting * #116 bug fixes and updates to contract context. Fix to EthersConnector signer bug - signer should invalidate when chain is changed - invalidation of old contract isntances - key updates - updates to validate adaptor - fixes to sorting * #116 changed order of invalidation of cache * #116 package updates * #116 package updates * #116 package updates * updated actions * #124 updated docs * #124 updated readme in docs * Create CNAME * Delete CNAME * Set theme jekyll-theme-minimal * Set theme jekyll-theme-architect * Set theme jekyll-theme-midnight * Set theme jekyll-theme-modernist * Set theme jekyll-theme-hacker * Set theme jekyll-theme-architect * #124 updated docs headers * #124 added emoji * chore apply prettier to all files (#128) biggest changes are just the newlines from windows computers * Features/#126 (#129) * #126 added status return type. made react query options available. better options typeing * update packages * updated tests #126 * Features/#125 (#130) * updated docs * #124 updated docs * #124 updated readme in docs * Create CNAME * Delete CNAME * Set theme jekyll-theme-minimal * Set theme jekyll-theme-architect * Set theme jekyll-theme-midnight * Set theme jekyll-theme-modernist * Set theme jekyll-theme-hacker * Set theme jekyll-theme-architect * #124 updated docs headers * #124 added emoji * #125 improved typing and updated to #125. waiting for eth-sdk to update to v7 * #125 better comments * #125 some type changes * #125 some type changes for simplicity * #126 added status return type. made react query options available. better options typeing * update packages * updated tests #126 * #125 merged with #126 * added examples and comments and minor changes #126 * comments and readme * updated README * updated README * update package for docs * updated docs * #76 Tests for useTokenBalance (#131) Additionally adds some docs to useTokenBalance and useBalance * #127 comments and readme * #124 comments and readme * Bugs/#133 (#135) * #133 fixes for contractConnects bugs found in collating contracts for the connectors * #133 fixes for contractConnects bugs found in collating contracts for the connectors * #133 nuked lock file * updated package * update packages and readme Co-authored-by: Jaxcoder <[email protected]> Co-authored-by: omnifient <[email protected]> Co-authored-by: Sean Paterson <[email protected]> * exclude sol (#170) * #207 login improvements * #207 update packages * #207 better login error handling Co-authored-by: Jaxcoder <[email protected]> Co-authored-by: omnifient <[email protected]> Co-authored-by: Sean Paterson <[email protected]>
ShravanSunder
pushed a commit
to ShravanSunder/eth-hooks
that referenced
this issue
Sep 8, 2023
feat: add faucetAvailable boolean
venuswhispers
added a commit
to venuswhispers/Scaffold-Eth-Typescript
that referenced
this issue
Feb 19, 2024
* #29 testing out contracts context * #29 v4 compatability changes and merging develop * #29 eth-hooks v4 minor updates * #29 more work on contract context scaffold-eth/eth-ui#101 - external contracts are now handles - worked on the contract context initalization in app * #29 more work on contract context scaffold-eth/eth-ui#101 - created an contract context factory * #29 preliminary typing system for all the app contracts * #29 contract typing is almost working * #29 checkpoint * #29 checkpoint * #29 regenerate lock file * #29 general refactor of v4 types and function names * #29 created hook and system to load contracts * #29 using the new eth-hooksv4 paradigm * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 loading contractrats * #29 changes to how main provider is passed around * added react async * #29 final changes to inital beta * #29 final changes to inital beta * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 event based updates * replace apollo with react-query and graphql-request. lazy load GraphiQl * #29 tried to make folder structure simpler. better commands to build contracts * #29 minor fixes * #29 more comments to contract * update packages * #46 fixes and autconnect to burner with an option * #46 packages updates
venuswhispers
added a commit
to venuswhispers/Scaffold-Eth-Typescript
that referenced
this issue
Feb 19, 2024
* Feature/#29 eth-hooks v4 changes (#32) * #29 testing out contracts context * #29 v4 compatability changes and merging develop * #29 eth-hooks v4 minor updates * #29 more work on contract context scaffold-eth/eth-ui#101 - external contracts are now handles - worked on the contract context initalization in app * #29 more work on contract context scaffold-eth/eth-ui#101 - created an contract context factory * #29 preliminary typing system for all the app contracts * #29 contract typing is almost working * #29 checkpoint * #29 checkpoint * #29 regenerate lock file * #29 general refactor of v4 types and function names * #29 created hook and system to load contracts * #29 using the new eth-hooksv4 paradigm * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 and eth-components * #29 fixes from eth-hooksv4 loading contractrats * #29 changes to how main provider is passed around * added react async * #29 final changes to inital beta * #29 final changes to inital beta * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 * #29 changes from scaffold-eth/eth-ui#114 event based updates * replace apollo with react-query and graphql-request. lazy load GraphiQl * #29 tried to make folder structure simpler. better commands to build contracts * #29 minor fixes * #29 more comments to contract * update packages * #46 fixes and autconnect to burner with an option * #46 packages updates * changes for scaffold-eth/eth-ui#120 useBalance * #47 changes to building contract, bug fixes, and updates to packages * reenabled dai * #47 updated packages * #47 updated packages, fixed externals for vite. * disabled subgraph for now #48 * updated git ignore * #47 fix to generic-contract. removed generated fiels * #47 updated git ignore * #47 updated action * #47 updated action * #47 updated action
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: