Open ailisp opened 1 year ago
Now, contract composability is not possible by extension, as proven here: https://github.com/near/near-sdk-js/pull/319 We need to define if this feature is important and if it is - add implementation and examples.
We can consider other options for composability. More info in https://github.com/near/near-sdk-js/pull/319
Why would codegen be required? We should leverage all the existing features of JS/TS for code composition and not resort to codegen unless absolutely necessary.
Here, i think the Mix-In pattern would work nicely if it can be made possible, naturally some experimentation would be necessary
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#mix-ins