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: build interacting stake with researcher first #14

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

0xBoji
Copy link
Member

@0xBoji 0xBoji commented Dec 28, 2024

Description
This PR implements the functionality for users to stake tokens and mint a Soulbound NFT as a "Researcher," enabling initial interaction with the blockchain for role assignment.

Key Changes
Staking Integration:

Added UI for users to input and stake the required token amount.
Integrated with the smart contract function mintMembershipWithStake.

Minting Soulbound NFT:

Triggered NFT minting upon successful staking.
Displayed transaction status and confirmation.

Role Assignment:

Updated the user's profile to reflect the "Researcher" role after staking and minting.

Validation and Error Handling:

Ensured users meet staking requirements.
Added error messages for failed transactions or invalid inputs.

Testing
Verified successful interactions with the staking contract.
Tested role updates in the profile after minting.

Notes: Comment issue below, please 🚀 Addresses Issue #10

CC: @0xBoji @tranvanhai0504

@0xBoji 0xBoji added the enhancement New feature or request label Dec 28, 2024
@0xBoji 0xBoji self-assigned this Dec 28, 2024
@0xBoji
Copy link
Member Author

0xBoji commented Dec 28, 2024

updating setter getter from smartcontract script:

image

and stake example as researcher:
image

image

@0xBoji
Copy link
Member Author

0xBoji commented Dec 28, 2024

make sure address only has one role!
note: nft soulbound can't be transfered
image

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

Successfully merging this pull request may close these issues.

2 participants