[SEP-48] Contract Interface Spec #1693
Replies: 1 comment 1 reply
-
|
The scope of contract interface definition proposed in SEP-48, #1691 is focused on how to define the specs for public methods of the contract wasm. It doesn't explore definition of events emitted by the contract. Should the SEP-48 proposal also capture contact event meta definitions? The events compose significant external facing contract behavior and as such SEP-48 seems like ideal place. contract event definitions have been explored in some tangent discussions:
For external systems that want to interact with a contract's events, it appears like they will currently leverage SEP-47 to identify the If event meta specs are co-located in wasm of contract it an provide more options for external systems to automate parsing event streams reliably at development or potentially at runtime. Coincidentally, establishing a standard to define event specs in wasm would provide a way for contracts to declare non-sep event behavior also. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've opened a pull request containing a SEP that captures the existing contract interface (contract spec) capabilities that exist in the Rust soroban-sdk, the stellar-cli, and in many other tools as a result of them consuming the spec XDR:
This SEP is intended to be a living document, a specification, and to evolve with the contract spec as it evolves, unless of course a proposal to modify it makes such significant changes that amount to a different proposal.
All and any feedback appreciated. Because this SEP captures existing and already adopted behaviour the most useful feedback at this moment is whether the document captures it accurately, and in a way that is easily digestible and replicable in new SDKs or new tooling that needs to decode it. Making the document more digestible might mean removing information, adding information, or changing how we present information.
Beta Was this translation helpful? Give feedback.
All reactions