KaizeNodeLabs / stark-cairo-nodes

Set of scripts written in Cairo/Starknet to learn and teach newcomers the ecosystem.
MIT License
16 stars 21 forks source link

Create counter contract #25

Open danielcdz opened 3 days ago

danielcdz commented 3 days ago

Description

Steps

mayasimi commented 2 days ago

Hi @danielcdz kindly assign me i just finished cairo boot camp and have some experience writing smart contracts using cairo and i believe this task would help me solidify my understanding. Kindly assign me if avaliable

steps to solve the above task:

  1. I need to implement the following:

    • A storage variable to hold my counter value
    • Public functions to manipulate this value
    • Events to track changes
  2. I'll need these main functions: a) Constructor:

    • Initialize my counter to 0
    • Set up any initial state

b) get_counter():

c) increment():

d) decrement():

e) reset():

  1. I'll test:
    • Initial value is 0
    • Increment works
    • Decrement works
    • Reset works
    • Multiple operations work correctly

ETA <= 15hrs

codeZe-us commented 1 day ago

Could I take on this issue? ETA: 3 Hours.

omsant02 commented 1 day ago

i would like to take this issue @danielcdz

i am a new contributor to repo and would like to start my contribution journey with stark-cairo-nodes

would solve this issue by creating a storage field counter and 3 functions (increment, decrement and reset)

Thank you

BrunoAmbricca commented 1 day ago

I would like to work on this issue

mimisavage commented 1 day ago

Could I be assigned to this?

Unickhub commented 1 day ago

I’d like to help with this.

ShantelPeters commented 1 day ago

Can I take this issue?

I will start by creating a simple counter contract in the specified directory that stores a counter value and provides methods to increment, decrement, and reset the counter. Then i will Include a get_counter function to retrieve the current counter value, ensuring the contract is straightforward and well-documented.

Benjtalkshow commented 1 day ago

I'd be happy to do this.

ChrisFernandezVivas commented 1 day ago

hi , im fron dojo coding

steps

1- declare mi smart contract counter

2 - declare my 3 functions (increment, decrement, reset)

3- deply tha contract and testing if works well

thank you

NueloSE commented 1 day ago

I’d like to resolve this.

i have experience in writing and testing smart contracts

MullerTheScientist commented 1 day ago

hello please can i address this issue

wheval commented 1 day ago

Can I take care of this issue? I have built this contract before, and would love to contribute to this repo. I would also write test for the contract and ensure they pass. Please assign. ETA is 1 day. Thank you.

ryzen-xp commented 1 day ago

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 etc . please /assign this issue . Thank You

Michaelkingsdev commented 1 day ago

Could I take a shot at this?

mimiprosper commented 1 day ago

I'd love to give this a go. Am a web 2 frontend developer, a solidity smart contract developer/auditor and a cairo smart contract developer. Am a graduate of Starknet Cairo Bootcamp. I have successfully done tasks assigned to me in OnlyDust. If assigned this i would complete it within 1 day.

ShantelPeters commented 1 day ago

Thank you @danielcdz