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

Python client to Fullcount contract #11

Merged
merged 12 commits into from
Nov 8, 2023
Merged

Python client to Fullcount contract #11

merged 12 commits into from
Nov 8, 2023

Conversation

zomglings
Copy link
Contributor

Resolves #7

This PR implements a Python client to the Fullcount contract.

It is a modification of what used to be the fullcount_theory directory and Python package.

Now, python/fullcount is responsible for operations as well as game design and game balance testing.

Depends on Foundry support in moonworm, added in moonstream-to/moonworm#121

Also added a public `randomSample` method on the `Fullcount` contract
for the benefit of game clients and tooling.

Added `test/RandomnessConsistency.t.sol` to verify that the randomness
expected from `fullcount randomness` is the same as the randomness
generated from player nonces on-chain.
Moved previous `fullcount randomness` functionality to `fullcount
randomness inspect`
Copy link
Contributor

@kellan-simiotics kellan-simiotics left a comment

Choose a reason for hiding this comment

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

Looks good. I like the support for nonce testing.

@zomglings zomglings merged commit 1ea1a7b into main Nov 8, 2023
1 check passed
@zomglings zomglings deleted the python branch November 8, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fullcount.xyz Python client
2 participants