Skip to content
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

High level of Nano Contracts #31

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

msbrogli
Copy link
Member

@msbrogli msbrogli commented Jul 22, 2021

@msbrogli msbrogli added the documentation Improvements or additions to documentation label Jul 22, 2021
@msbrogli msbrogli self-assigned this Jul 22, 2021
@msbrogli msbrogli force-pushed the feat/nano-contracts branch 8 times, most recently from 67823c9 to bbea8c9 Compare July 22, 2021 09:37
└─────────────────────┴──────────────────────────────────────┘
</pre>

Finally, a simple call to a method is similar to a deposit or withdrawal but with amount zero.
Copy link
Member

Choose a reason for hiding this comment

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

Will we have methods that can be only used in the tx inputs and others in the outputs? Should it be explicit in the blueprint?

collect_prize is a method just like make_a_bet or any other method that can be called with amount 0. How can we know where they are allowed? Does it make sense to have a method with amount 0 called in the inputs?


@public
def set_result(self, result: str) -> None:
"""Set result. Used by the oracle."""
Copy link
Member

Choose a reason for hiding this comment

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

Only the oracle can call this? Would be interesting if anyone can call it, as long as the message is properly signed by the oracle.

@msbrogli msbrogli force-pushed the feat/nano-contracts branch 2 times, most recently from 8f2638f to bb8527c Compare August 13, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants