-
Notifications
You must be signed in to change notification settings - Fork 3
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 challenge exit tests #47
Comments
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 363.0 DAI (363.0 USD @ $1.0/DAI) attached to it as part of the https://github.com/leapdao fund.
|
Hey @mul1sh , thanks for starting to work on the bounty. LeapDAO is a Decentralized Autonomous Organisation creating the Leap Network, a scalable second layer solution for the Ethereum Blockchain. The holacratic DAO has over 20 active members world-wide developing and maintaining the network. Its mission is to enable scalable Dapps to operate securely on layer-2 of Ethereum as well as widening the scope of possible Dapps in the Ethereum ecosystem. If you're intrested to join LeapDAO and contribute to the project long term feel free to join our slack and check all available bountys greetings Simon Weniger |
@simonweniger awesome thanks for the invitation 🙂. Joining slack now too, I've started working on this bounty and will definitely reach out if im stuck. |
hi @troggy @simonweniger I'm still working on this and I had a few questions.
Thanks |
@johannbarbie, @troggy can you help ? |
correct.
I'm not sure what do you call an "implementation" here? 🤔If you are looking for a usage example, take a look at this script for challengeExit.
@simonweniger can help you with general questions. Otherwise, I would prefer to have a call — it is faster. I'm |
@troggy thanks for the awesome feedback 🙂 , I've reached out in slack. |
@mul1sh Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@gitcoinbot yep almost done :) |
Hey @mul1sh , |
Finally doing 1 last test and then I submit in a few hours :) |
@mul1sh Unfortunately, we will have to un-assign you from this bounty. if you have problems implementing the task — just say so, please and ask for assistance. There is nothing bad about this. We are here to help, but we need your cooperation as well. /cc @simonweniger |
Hey @troggy I'm submitting today no more delays promise 🙂. Yes I had a few issues understanding the whole flow, I definitely should have asked for help but I also wanted to learn more about the contracts by breaking it down and putting it back together hence why I have taken this long, but sorry for this I realize this was an oversight on my end. Nonetheless expect the tests fully working in the next few hours, in fact i'm wrapping them up now. |
from my point of view, there is no problem with task taking too long — that's fine, we are not in a hurry. The problem is in poor communication |
I agree, I'll be more proactive in communicating my progress and also ask questions frequently in case i'm stuck going forward. |
a good first step to improve the situation IMO is to push your work in progress into PR. Takes only a minute, the code doesn't have to be working |
I noticed he abandoned this bounty |
@troggy Hey, how are you? pls ping me when you can talk about the bounty https://gitcoin.co/issue/leapdao/leap-sandbox/47/3832, I have some questions before start to work on this. |
@Technical-Vairix post your questions here pls |
@Sprimage Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Trying to write the challengeExit function, I see the other tests have actions. Is this a requirement for the test? I need to write an action for the challengeExit too no? |
what do you mean by that? This is an example of "test": https://github.com/leapdao/leap-sandbox/blob/master/tests/1_depositTransferExit.js . This just one of those, other "tests" are no different in structure. The assignment is to create a new "test" which will use |
Each "test" is basically a script that is being run against a working network (this is handled by leap-sandbox already). All the data you need to interact with network/environment is passed to the "test" in arguments (see any of the "tests" for example). Then you just interact with the network to test desired conditions. For now we can start with "success tests" only — the tests checking the success path for the function. For example, for |
Thanks @troggy, I have some more questions. Can you explain what the |
both of these are cryptographic proofs of tx inclusion in a chain. Plasma contracts know nothing about blocks, they only have period roots (period root is basically a root of merkle tree. See here: https://github.com/leapdao/leap-core/blob/master/lib/period.js#L95). So to prove to Plasma contracts the given tx was indeed included in a given period, you need merkle proof like this. Both to generate proof, you can use Look for usage examples in leap-sandbox. For instance, here https://github.com/leapdao/leap-sandbox/blob/master/tests/actions/exitUnspent.js#L69 |
@Sprimage Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Yeah I'm here @gitcoinbot still working |
@Sprimage Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Still working...we discuss in slack channel, thanks |
@Sprimage Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Yes still here |
Bounty
This is a critical functionality and we should be testing it with integration tests.
Scope
challengeExit
with TransferchallengeExit
for depositchallengeExit
with Spending Condition (simple inclusion as of now)challengeYoungestInput
Deliverables
Gain for the project
peace of mind, automatically catch regressions in challenge code
The text was updated successfully, but these errors were encountered: