• Resolved bingobook

    (@bingobook)


    Hello,

    I would like to thank you for the plugin you created, it is very useful for connecting WordPress and Web3.

    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.


Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Davis Shaver

    (@davisshaver)

    Hi @bingobook! This is such a great idea, thank you for suggesting it.

    Could you describe your use case some more? Here are a couple specific questions I have.

    • Would you primarily be wanting to interact with ERC-20, ERC-721, and ERC-1155 contracts? Or would you want to be interacting with custom contracts?
    • Do you picture the ABI connection working similar to how the existing RainbowKit Login button block works?
    Thread Starter bingobook

    (@bingobook)

    Hi @davisshaver !

    Not specifically, 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.


    Plugin Author Davis Shaver

    (@davisshaver)

    Hey @bingobook! That’s very helpful.

    At this point I’m not trying to avoid shortcode development. Would a block work for you? A workaround I’ve seen from another user is installing Reusable Blocks Extended, which allows a shortcode to be mapped to a reusable block.

    One other question for you – right now, we select a network (mainnet, Optimism, etc) in the RainbowKit Login settings and this network is used to perform any token validation for login/role assignment. Would it work for you if this was the same network we used for the contract interaction button?

    I’d also like to explore whether I can have the function names and ABIs auto populate from Etherscan. Having the ability to enter function selector and ABI manually would be important to have as a fallback.

    Please let me know if you have any other suggestions! I’m going to mark this as a resolved for now, but I have documented the suggestion on our Github repo for followup and will let you know once we ship this.

    Plugin Author Davis Shaver

    (@davisshaver)

    Here’s the Github issue: https://github.com/davisshaver/wp-rainbow/issues/50

    By the way, something else I thought of. We would probably want to start this with supporting only functions that don’t require any input values. That way we can hook the function up to a simple button interface. In the future, maybe we could auto-generate a simple form based on ABI.

    Thread Starter bingobook

    (@bingobook)

    Hello Davis !

    I hope you doing well ! I just wanted to show you this website which be helpful : https://www.webstudio.so/

    Plugin Author Davis Shaver

    (@davisshaver)

    Thanks @bingobook, that is a great reference! I’m adding it to our open Github issue: https://github.com/davisshaver/wp-rainbow/issues/50

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Contrat ABI’ is closed to new replies.