Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check thawing period before resolving dispute #19

Merged
merged 1 commit into from
Aug 19, 2021
Merged

Conversation

glmaljkovich
Copy link
Collaborator

Summary

  • Show the closedAtEpoch in red on the dispute if more than 2 thawing periods have elapsed since.
  • Show an error message when trying to accept or reject a dispute as an arbitrator if more than 2 thawing periods have elapsed since the allocation closed.

@glmaljkovich glmaljkovich requested a review from abarmat August 18, 2021 20:34
@@ -105,13 +123,21 @@ export class DisputeResolver {
@confirmResolve
async accept(disputeID: string, execute = false): Promise<void> {
log.info(`Accepting dispute ${disputeID}...`)
await this.commit(disputeID, DisputeResolution.Accept, execute)
if (await this.validateStatuteOfLimitations(disputeID)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good but I can see us refactoring it to include more conditions later, what do you think?

At a later point we can have a validateCharter() that does the limitations one, double jeopardy, etc. within the function, print the error and return. If all good then commits.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree but I didn't want to over-engineer it until we see the need.

@abarmat abarmat merged commit d95c885 into main Aug 19, 2021
@abarmat abarmat deleted the check_thawing_period branch August 19, 2021 13:23
goaaron added a commit that referenced this pull request Sep 23, 2021
…t blocks...coming up

automate the creation of divergent blocks

broken

fix conflict with sqlalchemy version

make the dispute stage an enum

all apis v0 and insomnia requests

cleanup and documentation on how to run the application

remove debugger

modify version of ipfshttpclient, change module name from web3 to w3

addendum to readme requirements

container file and Makescripts

Update README.md

multi stage docker build. use poetry inside of docker

Build dockerfile

added cicd and k8s files

run on updated k8s .github paths

fix cicd context

fix repo name

moving some fields to enums. cleanup some async code

base frontend for dispute portal

foundation redux actions

bump webpack, setup base dispute page

expose get all disputes

list disputes

simplify state with zustand

merge state updates

swap out the stages of the dispute

allows frontend to toggle the stages of the dispute

swap state in the frontend prior to revalidation. revalidation still hits later

sort, filter, visualize uploaded data

dispute portal list events

Fix rainbow

Fix setup when the config file is not yet created

Define files to use when publishing package

Add bin and cleanup gitignore

filter disputes by status (#13)

* filter by status

* Update README.md

Simplify cli (#14)

* remove dispute command and show help by default

* update README.md

* fix usage

Add Economics section and fetch network settings (#15)

Sort disputes by date (#16)

v0.2.0

Add defaultDisplayName to indexer and fisherman (#17)

Check thawing period before resolving dispute (#19)

Support for multiple ids on show and improved styling (#20)

* Support for multiple ids on show and improved styling

* Replace treeify with object-treeify

Add closing epoch startBlock and poi info (#21)

v0.3.0

[#24] Fix show command (#25)

v0.3.1

remove conf file

testing deployment
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants