You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per thread #348 (comment), it would be helpful for future contract programming to clean up and generalize the interface for contract methods vs utility functions, as these are currently all placed in contracts/wawaka/common/contract/base.h.
The text was updated successfully, but these errors were encountered:
I know this issue describes a need to improve naming of functions provided by the common contract methods for wawaka. However, I think there is a bigger issue about the right way to provide re-usable components for contracts. While building the exchange contracts I've found that there are a number of methods that get re-used. This was the genesis for the base & attestation contracts. These are "inherited" in some way into other contracts (and these are not the only examples).
Another aspect of the problem is that plugins for the methods are also shared. For example, it doesn't make sense to re-implement the "get_verifying_key" function for every plugin that might use it. With the exchange contracts I've been building a library of these methods that could be pulled into the plugins more easily.
So... I really think we need to generalize the discussion in this issue to best practices for developing and sharing re-usable contract components.
Per thread #348 (comment), it would be helpful for future contract programming to clean up and generalize the interface for contract methods vs utility functions, as these are currently all placed in
contracts/wawaka/common/contract/base.h
.The text was updated successfully, but these errors were encountered: