Skip to content
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: add get/request/revoke permissions methods #9

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

krzysu
Copy link
Contributor

@krzysu krzysu commented Oct 24, 2024

No description provided.

@danforbes danforbes mentioned this pull request Oct 24, 2024
@krzysu krzysu force-pushed the feat-examples branch 3 times, most recently from 242de10 to 02b206e Compare October 28, 2024 11:23
@krzysu krzysu changed the title feat: manual tests in the example app feat: add get/request/revoke permissions methods Oct 28, 2024
@krzysu krzysu marked this pull request as ready for review October 28, 2024 13:02
* @returns a Promise that resolves if the request is successful
* @param param - Details of the chain to switch to and possibly add.
* @returns A Promise that resolves if the request is successful.
* @experimental
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since other libraries don’t implement this method and wallets appear not to support them, I’ve moved it to experimental. I’ll eventually remove it if I don’t find a wallet that supports it.

* @returns a Promise that resolves to a list of owned assets
* @param param - Details of the request for owned assets.
* @returns A Promise that resolves to a list of owned assets.
* @experimental
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since other libraries don’t implement this method and wallets appear not to support them, I’ve moved it to experimental. I’ll eventually remove it if I don’t find a wallet that supports it.

Comment on lines 1 to 6
{
"eslint.workingDirectories": [
"packages/example-react-app",
"packages/web3-plugin-wallet-rpc"
]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be checked-in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, removed for now, let's wait if others will have similar problems

README.md Outdated Show resolved Hide resolved
@@ -3,15 +3,16 @@
This Web3.js plugin adds support for the following wallet-related RPC methods:

- [wallet_addEthereumChain (EIP-3085)](https://eips.ethereum.org/EIPS/eip-3085)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you link the EIPs in the descriptions below, I think these links should point to the anchors for the respective method descriptions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done per function in the examples below, here is the link to the full EIP

@krzysu krzysu merged commit 169b12c into main Oct 29, 2024
3 checks passed
@krzysu krzysu deleted the feat-examples branch October 29, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants