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

Translate lending to the new syntax #119

Open
virgil-serbanuta opened this issue Oct 2, 2024 · 0 comments
Open

Translate lending to the new syntax #119

virgil-serbanuta opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@virgil-serbanuta
Copy link
Member

virgil-serbanuta commented Oct 2, 2024

Relevant for #117

We would need to:

  • Use the new attributes for the contract, endpoints and storage (#[ethereum::contract], #[endpoint(endpointName)], #[storage("storage_name")])
  • Use the new data types (Int256 for amounts, Address for addresses, Storage for the storage object) and remove the old ones (e.g. BigUint, StorageMapper).
  • Use the new Hooks trait for blockchain functionality instead of the old blockchain/send/whatever functions.
  • Use "Bytes" wherever we need bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant