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

Expand prelude #2433

Closed
SwayStar123 opened this issue Jul 31, 2022 · 3 comments
Closed

Expand prelude #2433

SwayStar123 opened this issue Jul 31, 2022 · 3 comments
Labels
enhancement New feature or request lib: std Standard library

Comments

@SwayStar123
Copy link
Collaborator

Currently the standard library prelude is way too short. Essentials are required to be imported nearly in every contract. Heres some nominations for addition to the prelude

  • Address
  • ContractId
  • Identity
  • transfer()
  • msg_sender()
  • msg_amount()
  • msg_asset_id()
  • StorageMap
  • Vec
  • assert
  • require
  • revert
@Braqzen Braqzen added enhancement New feature or request lib: std Standard library labels Jul 31, 2022
@mohammadfawaz
Copy link
Contributor

mohammadfawaz commented Aug 1, 2022

If I'm not mistaken, we need to create the prelude first and have the compiler include it in every module. #841 seems to be tracking that work. We can then start adding the symbols and functions above to it.

@otrho
Copy link
Contributor

otrho commented Aug 1, 2022

Yeah, I was going to say, zero sized probably is too short. 🙂

@mohammadfawaz
Copy link
Contributor

Closing in favour of #841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib: std Standard library
Projects
None yet
Development

No branches or pull requests

4 participants