-
Notifications
You must be signed in to change notification settings - Fork 10
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: add guardian funds retrieval function #7
Comments
Hi, I would like to contribute to solve this issue. I have been learning Cairo and I think I have the knowledge to solve it |
@sandragcarrillo I'm happy for your interest in this issue. We are getting the issues ready for the next ODHack which will be celebrated at the end of the month, please, consider registering here OnlyDust and join Strapex Telegram where further announcements will be posted. |
I’d like to help with this. |
I would be happy to solve this as soon as ODHack resume |
Can i work on this? @machuwey I am a blockchain developer with ample experience in building smart contracts. I recently started my cairo journey and i believe i am able to completer this task |
strapexHey! I'm Gerson. 👋I'm a member of Dojo Coding and have previously contributed to many projects such as:
I would like to work on this issue. You can check my OnlyDust profile to see my contributions to various projects: Profile Plan to Solve the Issue:
|
I’d like to help with this. |
Hello, I'm Ikem, a blockchain developer with over 3 years of experience in smart contract development. I would love to help with this issue my proposed approach |
I am a blockchain developer , can i please work on this |
May I work on this issue @machuwey ? My background: I am a web3 developer with 2 years of experience and a regular contributor at @keep-starknet-strange. I have been solving issues related to cairo for the past 2 months and I'm pretty confident that I can resolve this issue too. My approach: I would add the new timestamp field to the storage struct, then modify all functions to overwrite the field with the current timestamp so that it refreshes when calling the function. I will then add a new function which can only be called by the factory deployer where they can withdraw funds once the timestamp has expired eta: 3 days |
gm @machuwey, Suhas here, having worked in the last od, where I’ve worked on integrating on-chain mechanics into games and have contributed to optimizing user experience with tools like SPV wallets and Web3 integrations. To address this issue, I propose implementing an inactivity-based fallback mechanism within the strapex_child_contract. This will include recording the last interaction timestamp for the owner, updating it during owner interactions, and enabling the factory deployer to withdraw funds after a specified inactivity period. I will ensure robust testing and integration with the factory contract to validate the functionality and safeguard against misuse. draf pr : 24hrs |
Is this issue still available? |
Can I be assigned to this? |
Can I be assigned to work on this? I have three years experience in Software development and have contributed to some projects on OD here. ETA: 10 hours. |
Hello, can I be assigned this issue please? My experience includes html, css, react, javaScript, typescript, c#, solidity & Cairo. To solve this issue I'll take the following steps:
Please assign me I'm ready to work. |
Can I take care of this issue? |
Hi , I am a proficient MERN stack developer with experience in full-stack development. I believe I can contribute effectively to this project. Could you kindly assign this issue/task to me? |
i am a cairo dev, let me try this issue. |
hello, i would like to start my odhack journey with my contribution here. My proposed solution suggests adding an inactivity-based fallback to the strapex_child_contract. This will track the owner's last interaction, update it with each interaction, and allow the factory deployer to withdraw funds if the owner is inactive for a set period. I’ll ensure thorough testing and integration with the factory contract to prevent misuse. |
I’d love to work on this task. |
i want to contribute on this, i am new to open source and hope i can make the desired change. |
Could I be assigned to this? |
Hey @machuwey, Aniruddha here. So I'm a typescript dev and also contributed in last odHack. Want to take up the issue and solve right away. So, first I will add a time-locked inactivity function to strapex_child_contract. This function should update the last_interaction timestamp for every kind of owner interaction. Implement a withdrawal function for factory deployer-it should be accessible only after some inactivity time; let's say, one year elapsed. Then validate and test safe functionality with respect to timing and access. |
please can i take care of this issue |
I'd like to take this issue. |
I am a frontend and blockchain developer specializing in creating intuitive user interfaces. I have experience with modern frameworks like React and smart contract development on platforms like Ethereum and Starknet. HERE IS HOW I WILL GO ABOUT IN TACKLING THIS ISSUE I’ll then install the required dependencies by following the setup instructions provided in the project documentation. I’ll design a solution that tracks the owner’s last interaction using a last_interaction timestamp. Once i'm done with that , I will add a field to store the timestamp and initialize it in the contract’s constructor. Then , I will use a testing framework like Hardhat or Foundry to create test cases. I document my changes clearly in the pull request, explaining the problem, my solution, and how I tested it. finally, I’ll ensure all tests pass locally before pushing my changes and then push it. |
I'd be happy to do this. |
thank you for the assignment @machuwey |
@machuwey can i take up this issue |
May I take this issue on? |
Can I try solving this issue? |
Hi @machuwey , please can I be assigned this issue? |
Is it okay if I tackle this? |
Can I be assigned to this? |
I'd love to give this a go. |
May I be assigned to this? |
Can I handle this task? |
1 similar comment
Can I handle this task? |
Hello @machuwey , can i work on this? |
Enhancing Owner Inaccessibility Handling for
strapex_child_contract
Issue Definition
When deploying a
strapex_child_contract
, which functions as a linked business account, there is a potential risk where the owner may lose access to their wallet. This scenario could occur due to various reasons, such as:To mitigate these risks, it's essential to implement a fallback mechanism that allows a designated party (e.g., the factory deployer) to withdraw funds from the
strapex_child_contract
if the owner has not interacted with the contract within a specified timeframe (e.g., one year).Proposed Solution
Implement a time-based inactivity mechanism within the
strapex_child_contract
to track the last interaction timestamp of the owner. If the owner does not interact with the contract for a predetermined period (e.g., one year), the factory deployer gains the authority to withdraw funds from the contract.Steps to Achieve the Solution
Add a
last_interaction
Timestamp:Introduce a
last_interaction
field in the contract's storage to record the timestamp of the last owner's interaction.Update
last_interaction
on Owner Interactions:Modify all functions where the owner interacts with the contract to update the
last_interaction
timestamp.Implement a Withdrawal Mechanism for Factory Deployer:
Add a function that allows the factory deployer to withdraw funds if the
last_interaction
exceeds the specified inactivity period.Integrate with the Factory Contract:
Ensure that the factory contract is aware of the mechanism and can call the withdrawal function when necessary.
Please, consider writing also tests for this functionality.
Instructions to apply
The text was updated successfully, but these errors were encountered: