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 a utility function to check ERC-20 token allowance #18

Open
Abeeujah opened this issue Dec 17, 2024 · 45 comments
Open

Add a utility function to check ERC-20 token allowance #18

Abeeujah opened this issue Dec 17, 2024 · 45 comments
Assignees
Labels
backend ODBoost This is an ODBoost issue

Comments

@Abeeujah
Copy link
Collaborator

Implement a utility function to retrieve the allowance of an ERC-20 token, enabling the contract to verify token swap approvals.

Details:

Inputs:

  • tokenAddress: ERC-20 token contract address
  • owner: Token holder address
  • spender: Address authorized to spend tokens

Output:

Returns current allowance amount.

Tasks:

  • Implement the allowance retrieval function
  • Create comprehensive unit tests

Acceptance Criteria:

  • Function accurately fetches allowance values
  • Tests cover various scenarios (zero, partial, max allowance)
@Abeeujah Abeeujah added backend ODHack11 This is an ODHack11 issue labels Dec 17, 2024
@1nonlypiece
Copy link

Can I jump on this task?
ETA:
I estimate completing this task in about less than 1 day. Let me know if I can get started!

@greatest0falltime
Copy link

Can I tackle this one?
ETA: 1 day

@Jagadeeshftw
Copy link
Contributor

Hello @Abeeujah,

I’d be glad to work on this issue! I will implement a utility function to retrieve the allowance of an ERC-20 token, allowing the contract to verify token swap approvals. The function will take the tokenAddress, owner, and spender as inputs and return the current allowance amount.

I will also write comprehensive unit tests to cover various scenarios, including zero, partial, and maximum allowance.

If approved, I’ll ensure to deliver a robust and well-tested PR within the next 12-24 hours. Let me know if I can proceed!

Looking forward to contributing.

@ryzen-xp
Copy link

Hi, I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development.
I have contributed many cairo ,rust projects like chainevents , arkprojects sunshine etc
To tackle this issue, I will:
Implement the ERC-20 allowance function using the allowance() method.
Write comprehensive unit tests for various scenarios (zero, partial, and max allowance).
please /assign this issue .
Thank You

@GideonBature
Copy link

I'd like to handle this task.

My name is Gideon Bature, a Software Engineer with experience writing Rust. I will love to work on this issue, writing a utility function that retrieves the allowance, and also write a comprehensive unit test for the function. If I am assigned, I will send my first PR within 48 hours.

Thank you!

@Birdmannn
Copy link

I'm a good rust dev. I can handle this assignment.

@obacollins-lab
Copy link

Can I handle this task?

@emarc99
Copy link

emarc99 commented Dec 17, 2024

Mind if I try this one?

@olisaagbafor
Copy link

Could I take a shot at this?

@ekumamatthew
Copy link

Let me handle this issue!

@Supa-mega
Copy link

I’d like to work on this.

@Tchisom17
Copy link

Hi there!

I’m excited to deliver a clean, efficient, and reliable utility function to fetch ERC-20 token allowances. With proven experience in Solidity and smart contract development, I’ll ensure the implementation is both gas-efficient and adheres to best practices. The function will accurately retrieve the allowance for any token, owner, and spender combination while meeting all edge cases, including zero allowance, partial approvals, and maximum possible values.

To guarantee robustness, I’ll provide comprehensive unit tests covering all scenarios. My focus on clean code, edge case handling, and thorough test coverage ensures a utility function that’s ready for real-world use. You can expect timely delivery, clear communication, and a solution that exceeds expectations.

Let’s get this utility up and running — future-proof, precise, and fully tested. I look forward to contributing to your project!

@DanielEmmanuel1
Copy link

Could I try solving this?

Good day, my name is Deon I'm a Full-Stack Web3 Developer, I'm a first time contributor to Autoswappr and would love the opportunity to contribute by solving this issue.

How I Plan To Tackle This Issue
I will implement a utility function leveraging the ERC-20 allowance method to retrieve the token allowance between the specified owner and spender, ensuring accurate results and validating functionality with robust unit tests for edge cases

@mimisavage
Copy link

Mind if I try this one?

@jaykayudo
Copy link
Contributor

Can i be assigned this?

@hannahredler
Copy link

hannahredler commented Dec 18, 2024

Hey! Im an engineer with several years experience working in web3, including a couple of years experience working as a software engineer at a DeFi protocol. I'm very familiar with financial products and have experience in smart contract development in both Cairo and Solidity, as well as experience with rust.

Would love to work on this issue if its available.

@mimisavage
Copy link

Can I take this issue?

@caxtonacollins
Copy link

Let me try this one!I am a Full Stack Developer with two years of professional experience, specializing in web3. I have strong background in blockchain and extensive experience in Next.js/React, TypeScript, Cairo and Rust.

I will like to take care of this.

@hannahredler
Copy link

Thanks for the assignment! Will aim to open a PR ASAP

@sprtd
Copy link
Contributor

sprtd commented Dec 20, 2024

Thanks for the assignment! Will aim to open a PR ASAP

@hannahredler Any update so far? Please feel free to join Autoswappr TG contributors group

@sprtd sprtd assigned GideonBature and unassigned hannahredler Dec 20, 2024
@GideonBature
Copy link

@sprtd Thank you for assigning me to the task, let me get to work...

@sprtd sprtd added ODBoost This is an ODBoost issue and removed ODHack11 This is an ODHack11 issue labels Jan 22, 2025
@jaykayudo
Copy link
Contributor

Can i work on this? @Abeeujah
I believe i can complete this task.
I will open a PR within 24 hours.

1 similar comment
@jaykayudo
Copy link
Contributor

Can i work on this? @Abeeujah
I believe i can complete this task.
I will open a PR within 24 hours.

@beeguy74
Copy link

Hi, I am a beginner Cairo developer from Paris.
Closed 3 tasks totally on cairo during previos ODHACK 11.
I don't promise to finish the issue quickly because your project is new to me =)
But I intend to do a decent job and at least do the draft PR within 24 hours.
Could I try solving this?

@Ndifreke000
Copy link

Mind if I take this issue? I will like to work on this.

@RichoKD
Copy link
Collaborator

RichoKD commented Jan 22, 2025

I’d like to work on this.

@chiscookeke11
Copy link

May I try my hand at this?

@Praizfotos
Copy link

I’d love to apply for this opportunity! With my experience in implementing utility functions and creating comprehensive tests, including ERC-20 allowance retrievals, I’m excited about contributing to tasks that enhance smart contract functionality. This role aligns perfectly with my skills in blockchain development and testing!

@caxtonacollins
Copy link

I'd love to contribute to this project. ready to put in the work. Please assign me this implementation issue.

@ryzen-xp
Copy link

Hi,
I am proficient Blockchain developer expert in Cairo , Rust and Solidity and also in web development.
I have contributed many starknet project and more .
please /assign this issue .
Thank You !!

@RomThpt
Copy link

RomThpt commented Jan 22, 2025

Is it okay if I tackle this?

@Jagadeeshftw
Copy link
Contributor

Proposal to Work on the Issue

I am eager to contribute to this issue and believe I am well-suited for the task, given my extensive experience in Cairo programming and building decentralized applications on StarkNet. My expertise spans across multiple domains crucial for this implementation:

  • Smart Contracts & Blockchain Development: Proven expertise in StarkNet, Stellar, and Rust, with hands-on experience in developing secure and efficient smart contracts, blockchain integrations, and high-performance backend systems.
  • Backend Engineering: Strong background in designing and managing scalable APIs, handling server-side operations, and ensuring robust backend performance for blockchain applications.
  • Frontend Development: Proficient in building intuitive and responsive frontend interfaces using React and Next.js, ensuring seamless interaction between users and blockchain-based applications.

Why Assign This to Me?

I have a track record of delivering high-quality solutions efficiently, with a deep understanding of smart contract security, decentralized architectures, and full-stack development. My ability to bridge frontend, backend, and blockchain components ensures a well-rounded, optimized solution.

Estimated Timeline

I anticipate delivering a fully functional solution within 2 days. Please let me know if I can proceed.

I am excited about the opportunity to contribute and look forward to collaborating!

Best regards,
Jagadeesh B

@CollinsC1O
Copy link

May I be assigned to this please?

@danielrobotz
Copy link

I'd like to take this issue.

@Elite-tch
Copy link

Is it okay if I tackle this?

@wheval
Copy link

wheval commented Jan 22, 2025

Hello, I'm Wheval. I have experience in frontend development and also have been learning to write contracts and tests in Cairo.

Can I take this issue?

I would create a function and add the interface of the function that retrieves the allowance.
I would also write unit tests for the function.
I would make sure the tests passes.

ETA is 1 day.

@suhas-sensei
Copy link
Contributor

Could I take a shot at this?
I plan to implement a utility function that retrieves the allowance of an ERC-20 token, allowing the contract to verify token swap approvals.
The function will take the token address, owner, and spender as inputs, and return the current allowance.
I'll also write comprehensive unit tests covering different scenarios, such as zero allowance, partial allowance, and maximum allowance.

@jerrymusaga
Copy link

Is this issue still available?

@1nonlypiece
Copy link

Application for Contribution

I am excited about the opportunity to contribute to this issue and am confident that my expertise aligns well with the requirements. With a strong background in Cairo programming and decentralized application development on StarkNet, I bring a well-rounded skill set to deliver an effective solution.

Relevant Expertise

  • Blockchain & Smart Contracts: Extensive experience with StarkNet, Stellar, and Rust, specializing in developing secure and optimized smart contracts, blockchain integrations, and high-performance backend infrastructure.
  • Backend Development: Well-versed in API design, server-side logic, and scalable system architecture, ensuring efficient and seamless backend performance.
  • Frontend Engineering: Skilled in crafting interactive and responsive UI components using React and Next.js, enhancing the user experience for blockchain-based platforms.

Why Consider My Application?

My proven track record of delivering high-quality, optimized solutions in blockchain and full-stack development sets me apart. I have a deep understanding of smart contract security, decentralized architectures, and the synergy between frontend, backend, and blockchain layers—ensuring a seamless and efficient implementation.

ETA

I expect to have a working solution ready within 48 hours. Please let me know if I can proceed with the implementation.

@ussyalfaks
Copy link

Could I be assigned to this?

1 similar comment
@Amizeey
Copy link

Amizeey commented Jan 23, 2025

Could I be assigned to this?

@OWK50GA
Copy link

OWK50GA commented Jan 23, 2025

Is it okay if I tackle this?

@Birdmannn
Copy link

I'd love to handle this. Gm dev

@emarc99
Copy link

emarc99 commented Jan 23, 2025

Can I handle this task? ETA - 3days

@suhas-sensei
Copy link
Contributor

thanks for the assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend ODBoost This is an ODBoost issue
Projects
None yet
Development

No branches or pull requests