-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logic for automatic contract instances updates when Hub is updated (#123
) * Added custom BlockchainError and decorator in order to handle updated contracts in the Hub * Add blockchain constants * Remove shortening of blockchain name * Add chainId to blockchain constants * Add set right blockchain name if old are used * Add constants intstead of strings * Added function to validate options for the 'isValidUAL' function * Added additional info to the errors in the 'isValidUAL' function * Add case insensitive comparison for contract address * Add hardhat2 constants * Fix missing comma * Add chain it to chiado and gnosis * Rename chiado to gnosis * Bumped version to 6.1.0 * Validate blockchain name withou network name * Added 'environment' to options, splitted blockchains by environment, remove redundant code, added logic to update contracts when executing contract functions * Fixes for new UALs * Remove decorator * Fix add await when calling updateContractInstances * Fix use correct error reference * Update dkg-evm-module version * Add fethingc gas price from gnosis oracle * Add logic for using gas price oracle to getNetworkGasPrice method * Add missing await * Return gas value * Fix using correct blockchain name * Fix return gasPrice in getNetworkGasPrice * Use gasPriceOracleLink from constants * Fix priceOracleLink * Fix getting gas for gnosis mainnet * Add webpack build * Fixed logic for automatic contract instances updates when Hub is updated * Fix error using reference from try block in catch * Remove BlockchainError * Added force flag for contracts update * Fix fetching new address and updating contract * Remove console.log & update version to 6.1.1 --------- Co-authored-by: Mihajlo Pavlovic <mihajlo.pavlovic@origin-trail.com> Co-authored-by: NZT48 <nikolaztodorovic26@gmail.com>
- Loading branch information
1 parent
719e9e8
commit 91513a0
Showing
10 changed files
with
85 additions
and
32 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
Large diffs are not rendered by default.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 was deleted.
Oops, something went wrong.