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

Add macro to list currency id constants (list_assets) #1138

Merged
merged 13 commits into from
Jun 17, 2022

Conversation

benluelo
Copy link
Contributor

@benluelo benluelo commented Jun 10, 2022

Description

I noticed the list_assets function and the defined CurrencyId consts were going out of sync periodically, so I added a simple macro to define the list_assets function.

NOTE: parity-scale-codec-derive is broken as of 3.1.3: paritytech/parity-scale-codec#348, added a patch.

@vercel
Copy link

vercel bot commented Jun 10, 2022

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

4 Ignored Deployments
Name Status Preview Updated
pablo-staging ⬜️ Ignored (Inspect) Jun 17, 2022 at 3:20PM (UTC)
pablo-storybook ⬜️ Ignored (Inspect) Jun 17, 2022 at 3:20PM (UTC)
picasso-staging ⬜️ Ignored (Inspect) Jun 17, 2022 at 3:20PM (UTC)
picasso-storybook ⬜️ Ignored (Inspect) Jun 17, 2022 at 3:20PM (UTC)

PoisonPhang
PoisonPhang previously approved these changes Jun 10, 2022
dzmitry-lahoda
dzmitry-lahoda previously approved these changes Jun 10, 2022
@benluelo benluelo dismissed stale reviews from dzmitry-lahoda and PoisonPhang via 7ceeb90 June 10, 2022 16:39
@benluelo benluelo force-pushed the ben/currency-id-list-assets-macro branch from 2079b96 to bd5b873 Compare June 13, 2022 14:54
PoisonPhang
PoisonPhang previously approved these changes Jun 13, 2022
KaiserKarel
KaiserKarel previously approved these changes Jun 17, 2022
@KaiserKarel
Copy link
Contributor

@benluelo can you rebase this?

@benluelo benluelo dismissed stale reviews from KaiserKarel and PoisonPhang via f70f34e June 17, 2022 14:16
@benluelo benluelo force-pushed the ben/currency-id-list-assets-macro branch from bd5b873 to f70f34e Compare June 17, 2022 14:16
@benluelo benluelo requested a review from a team as a code owner June 17, 2022 14:16
@benluelo benluelo requested review from a team as code owners June 17, 2022 14:16
@benluelo benluelo requested review from a team June 17, 2022 14:16
andor0
andor0 previously approved these changes Jun 17, 2022
dzmitry-lahoda
dzmitry-lahoda previously approved these changes Jun 17, 2022
vimukthi-git
vimukthi-git previously approved these changes Jun 17, 2022
@benluelo benluelo dismissed stale reviews from vimukthi-git, dzmitry-lahoda, and andor0 via 1416f79 June 17, 2022 14:54
@vercel
Copy link

vercel bot commented Jun 17, 2022

Deployment failed with the following error:

Creating the Deployment Timed Out.

@codecov-commenter
Copy link

Codecov Report

Merging #1138 (1416f79) into main (3259e2c) will increase coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1138      +/-   ##
==========================================
+ Coverage   57.96%   57.99%   +0.03%     
==========================================
  Files         317      317              
  Lines       39850    39825      -25     
==========================================
- Hits        23098    23097       -1     
+ Misses      16752    16728      -24     
Impacted Files Coverage Δ
frame/composable-traits/src/vesting.rs 93.80% <ø> (ø)
runtime/primitives/src/currency.rs 33.33% <0.00%> (+1.85%) ⬆️
frame/pablo/src/uniswap.rs 98.57% <0.00%> (-0.72%) ⬇️
node/src/cli.rs 0.00% <0.00%> (ø)
utils/price-feed/src/opts.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3259e2c...1416f79. Read the comment docs.

@dzmitry-lahoda dzmitry-lahoda self-requested a review June 17, 2022 16:39
@dzmitry-lahoda dzmitry-lahoda self-requested a review June 17, 2022 17:27
@benluelo
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 17, 2022

@bors bors bot merged commit a4ff75e into main Jun 17, 2022
@bors bors bot deleted the ben/currency-id-list-assets-macro branch June 17, 2022 18:12
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.

8 participants