Move casper contract to use custom units
See original GitHub issueHi There!
So we recently introduced custom units into vyper with VIP 752. Quick example of usage https://vyper.readthedocs.io/en/latest/types.html#custom-unit-types.
What I would like to probe - if there is perhaps reason we can remove some of the current static unit types from vyper completely.
m
currency_value
currency1_value
currency2_value
I feel like these are quite opaque and will cause trouble for future users of vyper. Additionally because we force a description field on custom units, future users will be able to understand the units much better.
What is everyone’s thoughts on this? If there is consensus in agreement with the above proposal, I will create a VIP to remove the not-obvious static units from vyper.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Sending Deploys to the Network - Casper
You can send your contract to the network via a deploy. ... You can use a block explorer to transfer tokens between accounts;...
Read more >Getting ready for the Vyper's beta launch · Issue #153 - GitHub
I'll go through the Casper contract... ... Move casper contract to use custom units #138. Closed. Sign up for free to join this...
Read more >TABS Custom Content FAQ - Landfall
Method 1: You can upload your units to the workshop by going into Custom Content and selecting the unit (or battle/campaign/faction) you want...
Read more >Custom Units Went Too Far This Time - Totally Accurate Battle ...
I never knew I needed to see Batman fight a 100 foot tall spider until today.Merch ▻ http://www.captainsaucemerch.com Twitter ...
Read more >TABS Unit Creator Beta Tutorial - How to Download & Use!
Once you have these new units and factions, I will show you how to place them in battle, so that you can use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I support this.
That said, I haven’t been able to figure out a good custom unit for casper’s scaled deposits. I guess maybe just
scale_factor
–wei / scale_factor
. Don’t want to hijack this thread, but open to ideas.ps, thank you for your continued rapid development of Vyper. It’s exciting to see all the features/syntax tighten up.
This is unblocked. Need to decide on our units now…