-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: configure the plugin, add first method addEthereumChain #2
Conversation
2283ec5
to
4abff9d
Compare
https://github.com/web3/web3-wallet-rpc-utils/blob/main/package.json#L39 |
Looks good! |
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.
No blockers from me. Looks great!
- wallet_addEthereumChain (EIP-3085) | ||
- wallet_updateEthereumChain (EIP-2015) | ||
- wallet_switchEthereumChain (EIP-3326) | ||
- wallet_getOwnedAssets (EIP-2256) | ||
- wallet_watchAsset (EIP-747) | ||
- wallet_requestPermissions (EIP-2255) | ||
- wallet_getPermissions (EIP-2255) |
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.
It seems like this PR only adds support for one of these methods. It may be a good idea to note that the other methods are not yet supported.
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.
yes, this is WIP, I'll add them all before the plugin is ready for release
super(); | ||
} | ||
|
||
public async addEthereumChain(param: AddEthereumChainRequest): Promise<null> { |
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.
Documentation comments here would be nice
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.
This is coming in the next PR
import { Web3PluginBase, utils } from "web3"; | ||
import { AddEthereumChainRequest } from "./types"; | ||
|
||
type WalletRpcApi = { |
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.
Why isn't this defined in types.ts
?
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.
all types from types.ts
are exported from the plugin package to use outside of it, this one is for internal use only.
"extends": "./tsconfig.json", | ||
"include": ["src"] | ||
} |
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.
Why has the exclude
property been removed?
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.
I understand that include
is enough if we want to build only src
folder, using both doesn't change anything and I find it even more confusing, as exclude didn't mention all other folders in the repo anyway.
I just noticed that there is no LICENSE file in this repository. |
Noted:
|
0bd6f66
to
e62782d
Compare
Signed-off-by: Kris Urbas <[email protected]>
e62782d
to
32f2226
Compare
No description provided.