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

Write an RFC for traits as supertraits for abis #20

Open
mohammadfawaz opened this issue Nov 18, 2022 · 0 comments
Open

Write an RFC for traits as supertraits for abis #20

mohammadfawaz opened this issue Nov 18, 2022 · 0 comments

Comments

@mohammadfawaz
Copy link
Contributor

mohammadfawaz commented Nov 18, 2022

Syntax:

trait MyTrait {
    // Interface
}

abi MyContract : MyTrait {
    // Interface
} {
    // Default-implemented methods 
}

Semantics:

  • The implementation of the abi is allowed to use the methods from MyTrait.
  • The methods from MyTrait are not actual contract methods... they are only callable from inside the library/contract.
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

No branches or pull requests

1 participant