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

Add block to interact with contracts #50

Open
davisshaver opened this issue Apr 26, 2023 · 1 comment
Open

Add block to interact with contracts #50

davisshaver opened this issue Apr 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@davisshaver
Copy link
Owner

Suggested by bingobook on WordPress.org forum.

Do you have or are you planning to set up an ABI connection to interact with contracts from a simple WordPress button? Currently, no one has yet implemented this type of plugin that would drastically improve the setup of Dapps with WordPress.

the idea would be to use any contract, indicating the contract and the ABIs, and then calling a button by shortcode or HTML code.

Example:
Contract: 0x0000
Function: BalanceOf
ABI: [“name”:”balanceOf”,”outputs”:[{“internalType”:”uint256″,”name”:””,”type”:”uint256″}]
Call: BalanceOf > Button [Check wallet] or
Call: safemint > Button [Mint your NFT]

An integration of rainbowkit in the header would be necessary so that we can interact everywhere on the site.

To start, maybe we can assume the contract is on the same network as RainbowKit Login settings. we could start with manually entering contract, function, and ABI. Having this work with functions that require input will require some thought. Maybe it needs to evolve into a simple form interface in the future?

Once this is shipped, reminder to let bingobook know.

@davisshaver davisshaver added the enhancement New feature or request label Apr 26, 2023
@davisshaver
Copy link
Owner Author

Possible inspiration here mentioned by bingobook on WordPress.org forum: https://static.wixstatic.com/media/e8a1b0_0f3f5a0fcf984a20ae9de12f3627a58a~mv2.gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant