Scaffold-Stark / scaffold-stark-2

Open source forkable Starknet dev stack
https://www.scaffoldstark.com
63 stars 85 forks source link

Add STRK token balance #212

Closed 0xquantum3labs closed 3 months ago

0xquantum3labs commented 3 months ago

Issue Overview

Add support for STRK balance:

Proposed Solutions or Ideas

raizo07 commented 3 months ago

I'll like to pick this

EmmanuelAR commented 3 months ago

Hey can I work on this?

I am Emmanuel a software engineer from Costa Rica 🇨🇷

I will...

1. Add STRK Balance Next to Header ETH Balance

2. Add STRK Balance Below Contract ETH Balance on /debug Page

3. Predeployed Contract STRK to Interact with on /debug Page

Proposed Solutions or Ideas

onlydustapp[bot] commented 3 months ago

Hey @raizo07! Thanks for showing interest. We've created an application for you to contribute to Speedrun & Scaffold Stark. Go check it out on OnlyDust!

onlydustapp[bot] commented 3 months ago

Hey @EmmanuelAR! Thanks for showing interest. We've created an application for you to contribute to Speedrun & Scaffold Stark. Go check it out on OnlyDust!

Nadai2010 commented 3 months ago

Hi everyone, @EmmanuelAR and @Gift-Naomi we are preparing the issues for tomorrow's OD Hach, they will be assigned tomorrow

Remember that you can only work on one issue at a time, choose well

Ayoazeez26 commented 3 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a web developer with over 6 years experience building applications both personal and professional projects. I started contributing to open source via onlydust in march this year and I have contributed to a couple of issues, you can see them in my profile.

How I plan on tackling this issue

By following the implementation of useScaffoldEthBalance, I would use similar logic to implement STRK balance fetching. I would also make sure that the implementation works across all networks. I would also make sure to follow the current project color scheme and components to ensure consistency across the app

ScottyDavies commented 3 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

As an experienced analyst and blockchain developer with 15 years in the industry. i likely encountered a variety of challenges that these technologies can help address. My technical expertise and problem-solving skills will be valuable assets in leveraging JavaScript, Cairo, and TypeScript.

How I plan on tackling this issue

STRK Balance Hook Create useScaffoldStrBalance hook to fetch STRK token balance. Display STRK Balance Show STRK balance in header, next to ETH balance. Display STRK balance on /debug page, below contract ETH balance. STRK Interaction Add section on /debug page to interact with pre-deployed STRK contract. Styling Ensure STRK balance display matches existing design and colors.

ShantelPeters commented 3 months ago

Please can I be assigned this issue

Background and Leverage: As a frontend developer.I'm well-versed in React and JavaScript, having worked on multiple projects that utilize these technologies.

Approach to the Problem:

  1. Implement useScaffoldStrkBalance: I'll create a new hook, useScaffoldStrkBalance, to fetch and display STRK balances, following the implementation of useScaffoldEthBalance.
  2. Display STRK Balance: I'll add the STRK balance display next to the header ETH balance and below the contract ETH balance on the /debug page.
  3. Predeployed Contract: I'll deploy a predeployed STRK contract for interaction on the /debug page.
  4. Network Support: I'll ensure the solution works on all networks, following the existing implementation.
  5. UI Design and Colors: I'll maintain consistency with the current UI design and colors, ensuring a seamless user experience.

Solution: My proposed solution involves implementing a new hook to fetch and display STRK balances, deploying a predeployed STRK contract, and ensuring network support and UI consistency.

Technical Details:

onlydustapp[bot] commented 3 months ago

Hey @ShantelPeters! Thanks for showing interest. We've created an application for you to contribute to Speedrun & Scaffold Stark. Go check it out on OnlyDust!

wugalde19 commented 3 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Hi Speedrun & Scaffold Stark team, I’m William from Costa Rica 🇨🇷 and I am interested in contributing to this issue and believe my skills and background make me well-suited for the task. I’ve worked over 7 years as Full Stack engineer in several technologies (including the ones used on this project JS, Typescript) and I am currently expanding my expertise in Rust, Cairo, and Solidity. I’ve participated in two past OD Hack events and understand the need and usage of faucets to fund our wallets in Sepolia and test our changes. I also want to mention that our team used this project in the StarkHack and it saved us a lot of time and headaches, I will be honored to contribute to this project and help new devs to see their STRK balance on the site after solving this issue.

Profiles: https://app.onlydust.com/u/wugalde19 https://github.com/wugalde19

How I plan on tackling this issue

Based on my understanding of the issue description, the core problem appears to be that you want to make it easier for devsto see their STRK balance on the site which makes a ton of sense to me since the idea is that we will develop dApps on Starknet and this will be the main “currency” to be used in most of them.

I agree with your proposed ideas, after looking at the code I see that it will be a pretty similar implementation of the useScaffoldEthBalance hook. Of course, let me know if I’m omitting any other important points

Thank you, and I look forward to your guidance and to start contributing to this project.

Joy-Adah commented 3 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I have a strong background in web3 development, particularly with React.js and blockchain technologies, I am confident to deliver a solution that aligns with the current UI design and functionality.

How I plan on tackling this issue

I plan to approach the problem with the following steps:

ankit875 commented 3 months ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Hi, I am working as a software developer 8 Year of experience. My tech stack is React, Typescript, Cairo, Solidity, GraphQL etc. Winner of EthGlobal Brussel CDK partner prize and multiple hackathons.

How I plan on tackling this issue

Create useScaffoldStrBalance Hook: Develop a custom hook to fetch the STRK token balance. Display STRK Balance: Show STRK balance in the header, next to the ETH balance. Display STRK balance on the /debug page, beneath the contract's ETH balance. STRK Interaction: Add a section on the /debug page for interacting with the pre-deployed STRK contract. Styling: Ensure the STRK balance display aligns with the existing design and color scheme

armandocodecr commented 3 months ago

Request for Issue Assignment: Add Support for STRK Balance

Hi team,

I am excited about the opportunity to work on this issue. I have previously made contributions to other projects, demonstrating my ability to deliver high-quality solutions. Below, I have outlined a detailed plan on how I will approach and solve this issue.

Technical Plan

Objective

To add support for displaying the STRK balance next to the ETH balance in the header and below the contract ETH balance on the /debug page. Additionally, enable interaction with the predeployed STRK contract on the /debug page.

Step-by-Step Implementation

Integration with Existing Balance Display

Header ETH Balance:

/debug Page Contract ETH Balance:

Interaction with Predeployed STRK Contract

Predeployed Contract:

Functionality Implementation:

Code Modifications

Balance Fetching:

UI Design Consistency:

Network Compatibility:

Frontend Modifications

Header Component:

/debug Page:

Validation and Testing

Cross-Network Testing:

UI/UX Testing:

Conclusion

Given my previous contributions to other projects and my ability to deliver detailed and high-quality solutions, I am confident in my ability to resolve this issue effectively. My detailed and technical approach ensures that the solution will meet the project's standards and improve the user experience.

Thank you for considering my request. I look forward to contributing to this project.

Best regards!

Nadai2010 commented 3 months ago

Hi @armandocodecr, this issue has been assigned to @raizo07, thanks to all