This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Example Plugin Implementation #5393
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
2da30e0
Init abstract Web3PluginBase class. Init registerPlugin method
spacesailor24 530b4ce
Update web3.ts to have a named export instead of using default
spacesailor24 546fa28
Init web3-plugin-example package
spacesailor24 cb636c2
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 3233a76
Update CHANGELOG and README
spacesailor24 d0d388b
Merge branch 'wyatt/4.x/5091-chainlink-plugin' of github.com:ChainSaf…
spacesailor24 db296ff
Update packages/web3-plugin-example/test/unit/plugin.test.ts
spacesailor24 a2f43db
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 45881ee
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 6514f13
Remove unneeded npm scripts
spacesailor24 9b4896e
Remove webpack config
spacesailor24 dbc133f
Init ExistingPluginNamespaceError
spacesailor24 dc36d4b
registerPluging - throw error is namespace not undefined
spacesailor24 755d6d6
Update Web3 to use default and named exports
spacesailor24 1036836
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
jdevcs 08cbe72
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 7642f41
Add peerDependencies
spacesailor24 816f2f5
Default API generic to Web3APISpec for Web3PluginBase
spacesailor24 eaceff9
Remove use of ChainlinkPluginAPI. Define return type for getPrice
spacesailor24 5e6d3a2
Remove no longer needed generic values
spacesailor24 0666cff
Override link method for plugin
spacesailor24 c7c2a06
Remove no longer used import
spacesailor24 75bf686
Remove ChainlinkPlugin code
spacesailor24 3978175
Init custom_rpc_methods plugin example
spacesailor24 205b928
Init contract_method_wrappers plugin example
spacesailor24 b3c9140
Update web3 import to remove import ts error
spacesailor24 369e024
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 7acb576
Fix typing compatibility when linking a contract to a context (#5416)
Muhammad-Altabba 3ad7e1d
Fix lint error
spacesailor24 de3403d
Move web3-plugin-example to tools/. Remove @ts-expect-errors. Move We…
spacesailor24 5be6ef5
Update CHANGELOGs
spacesailor24 b455e21
Fix tsc and linter errors
spacesailor24 051a35f
Update packages/web3-types/CHANGELOG.md
spacesailor24 bba74e6
Add CHANGELOG changes to root CHANGELOG
spacesailor24 6093e5b
Merge branch 'wyatt/4.x/5091-chainlink-plugin' of github.com:ChainSaf…
spacesailor24 9481519
Update packages/web3-types/CHANGELOG.md
spacesailor24 c1b2cc5
Update CHANGELOG.md
spacesailor24 744bfc2
Update CHANGELOG.md
spacesailor24 c939cbc
Add web3-plugin-example CHANGELOG
spacesailor24 e55e65f
Merge branch 'wyatt/4.x/5091-chainlink-plugin' of github.com:ChainSaf…
spacesailor24 8d90ddd
Remove unnecessary web3 imports
spacesailor24 f242b48
Revert change to Web3 export
spacesailor24 56bf6b7
Init web3_export_helper.ts
spacesailor24 b79c68b
Merge branch '4.x' into wyatt/4.x/5091-chainlink-plugin
spacesailor24 d1ba3ec
Update packages/web3/CHANGELOG.md
spacesailor24 1e271b9
Update CHANGELOG.md
spacesailor24 4375a5d
Update comments for mocking in contract_method_wrappers.test.ts
spacesailor24 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ import { initAccountsForContext } from './accounts'; | |
| import { Web3EthInterface } from './types'; | ||
| import { Web3PkgInfo } from './version'; | ||
|
|
||
| export default class Web3 extends Web3Context<EthExecutionAPI> { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will break minified web3.js build #5345
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This commit updates |
||
| export class Web3 extends Web3Context<EthExecutionAPI> { | ||
| public static version = Web3PkgInfo.version; | ||
| public static utils = utils; | ||
| public static modules = { | ||
|
|
@@ -128,3 +128,4 @@ export default class Web3 extends Web3Context<EthExecutionAPI> { | |
| }); | ||
| } | ||
| } | ||
| export default Web3; | ||
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.
Uh oh!
There was an error while loading. Please reload this page.