[HACK BOUNTY] Send $HYPE component

Send $HYPE component

Open questions

  • How to make board accessible from UI?
    • $HYPE registration button is a drop-down menu when wallet connected and contains the following links:

Started working on this and will open a PR when prototype is ready.

I’ll make the component available in the new HYPE menu.

1 Like

Hey everyone,

after being busy with other projects, I’ve managed to finish the send component. The current build from the PR is available here: https://hype-dao-8pwdk98m0-hypedao.vercel.app/

The preview uses mainnet. In order to test the send functionality on testnet, you need to follow the instructions in the README I’ve added (deploy HYPE token contract and switch Next.js environment).

Implementation details

General

  • is not coupled with the sandbox testing PR anymore, uses testnet configuration
  • Use testnet: pulls fungible token contracts from near-examples and deploys them using a dev account.

UI:

  • User can only send as much HYPE as available on their account
  • Receiver account must exist
  • Transaction will fail if receiver is not registered in the token contract (we can not check before sending because it’s an contract internal error, wallet will report it)

Contracts:

  • fungible token implementation is unmodified example from near-examples
  • Wrapper scripts added that use near-cli to set everything up
1 Like