Open JoelVR17 opened 1 day ago
Hello please i would love to work on this issue
I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged:
software engineering background, backend & smart contract dev with contribution to similar tasks(https://app.onlydust.com/u/Josh-121) looking to make first contribution on this project
How I plan on tackling this issue I have a good understanding of the requirements & would make necessary updates, I would work on feedback & recommendation ensuring contact. Can deliver within a day upon assignment
GM! I have experience working with SM in Cairo and Solidity, and I think I can handle this quite well, can I help you guys solve this issue?
Hi, My name is Kevin Obando, a full stack junior developer with 2 years of experience from Costa Rica. I am starting in this community and I want to help in this project.
I’d like to resolve this.
May I pick this up? I have three years experience in Software development and have contributed to some projects on OD here.
ETA: 10 hours.
I am applying through OnlyDust to contribute to this project. I have hands-on experience with Soroban smart contracts.
I can modify the fundEscrow
function to:
amount
property.amount
limit.This update will allow more flexible escrow management, supporting partial and full deposits without restrictions. I will also ensure the changes align with the updated escrow properties and write tests to validate the new functionality.
Looking forward to contributing to this project.
Can I take care of this issue? i'm a frontend dev and a blockchain dev please kindly assign :)
This issue is for you @danielcdz ! 🚀 Remember to follow all the guidelines, both the ones inside the repository and the guideline to perform the PR.
Many thanks to all the other dev's who sent in their application. 🔥
You must apply through OnlyDust. If not, you'll be ignored
Description:
Currently, the “fundEscrow” function of the contract allows funding the contract in two executions, adding half of the value defined in the “amount” property of the escrow with each execution. However, this behavior limits the flexibility in funding the escrows, which is not ideal for certain cases where larger deposits are required on specific dates prior to pre-set milestones.
Requirements:
We need to modify the fundEscrow function of the contract (in the file named contract.rs) to allow the possibility of adding any amount at any time, respecting the following conditions:
This change is necessary to provide greater flexibility in the management of escrows, allowing partial or full deposits to be made as needed, without the current limitation of two equal anchorages.
Validations:
Function parameters:
Note: Feel free to add more parameters to the function if necessary.
Errors:
We currently have a number of custom errors which we throw when executing some of the contract functions. An example of the above would be the following:
You only need to worry about throwing the error message, you don't need to handle custom errors. So if you need to return an error within the flow due to one of the validations, you can do it as follows:
You must make sure that the message you are sending as an error is very clear and makes sense as to why the error is being sent.
Tests:
In the test.rs file you must develop the following test to check that the contract flow works correctly together with the function you have just built:
You can rely on the previously created tests to complete your test. The important thing is that you succeed in testing your code and that it works well in conjunction with the entire contract flow which is explained in the list above. Also, please note that you should not create a test for each of the items in the above list. This list indicates with each of its items the flow that must contain the only test that you must create to verify that the code you made works. You can also create more than 1 test if necessary, but if you do, you must justify why.
⚠️ Important: Please define a clear name for the test so that the purpose of the test is clearly understood.
This is an example of how to initialize our test token in our test.rs file:
To run the test you have just created you can use the command
cargo test
.Recommendation:
Stellar people have in their discord a channel called “stella-help”, in that channel you can ask your technical questions about Stellar and its libraries (including the “soroban_sdk” library we use in the contract). This bot can help you a lot to solve your issues. Just remember that before submitting your query you must add the word “stella” at the beginning of the query. Otherwise the bot will not answer you. The Stellar discord where you can find this channel is the following: Stellar Discord
⚠️ Please follow the guidelines for requesting an issue, launching commits and describing PR's. Otherwise they will be ignored. ⚠️