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

Revert "add Rational64 type (#31gy38v) (#2236)" #2313

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

benluelo
Copy link
Contributor

This reverts commit 0ff9018, reversing changes made to 85c495d.

This reverts commit 0ff9018, reversing
changes made to 85c495d.
@benluelo benluelo requested review from a team November 15, 2022 14:49
@benluelo benluelo requested review from a team as code owners November 15, 2022 14:49
@vercel
Copy link

vercel bot commented Nov 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pablo-staging ✅ Ready (Inspect) Visit Preview Nov 15, 2022 at 2:53PM (UTC)
1 Ignored Deployment
Name Status Preview Updated
picasso-nightly ⬜️ Ignored (Inspect) Nov 15, 2022 at 2:53PM (UTC)

@itsbobbyzz
Copy link

Task linked: CU-31gy38v XCMP fixes

@github-actions
Copy link

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/d8692e099f630dcb4ae9f1073ea8bb65d28d79aa --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/d8692e099f630dcb4ae9f1073ea8bb65d28d79aa#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/d8692e099f630dcb4ae9f1073ea8bb65d28d79aa#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/d8692e099f630dcb4ae9f1073ea8bb65d28d79aa#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/d8692e099f630dcb4ae9f1073ea8bb65d28d79aa#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package

For more info on how to use Nix, check out our Nix docs

Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@vercel vercel bot temporarily deployed to Preview – pablo-staging November 15, 2022 14:53 Inactive
Copy link
Contributor

@vimukthi-git vimukthi-git left a comment

Choose a reason for hiding this comment

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

LGTM

@benluelo
Copy link
Contributor Author

benluelo commented Nov 15, 2022

@dzmitry-lahoda given your comments, why don't we just change the internal workings of the current Rational64 type? We could keep all the same validations and signatures but change the actual type to be two u64s.

Edit: We would then be able to update to NonZeroU64 once we depend on a version of scale-info that has the changes from paritytech/scale-info#171 in it.

@benluelo benluelo marked this pull request as draft November 15, 2022 15:03
@benluelo benluelo marked this pull request as ready for review November 15, 2022 16:44
mergify bot added a commit that referenced this pull request Nov 15, 2022
@benluelo
Copy link
Contributor Author

Resolved all conversations as all the changes are the be reverted.

@mergify mergify bot merged commit 4f0064b into main Nov 15, 2022
@mergify mergify bot deleted the ben/revert-rational-64-type branch November 15, 2022 17:33
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.

4 participants