stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
57 stars 60 forks source link

Use sdk token interface instead of own interface in example #275

Closed leighmcculloch closed 1 year ago

leighmcculloch commented 1 year ago

What

Use sdk token interface instead of own interface in token example.

Why

The SDK provides a standard token interface in hope that token contracts will export a consistent interface promoting interoperability, in a similar way that the Ethereum ecosystem has rallied around ERC20 and other standards.

The example should lean on that interface to encourage others to, to continue to maintain consistency.

leighmcculloch commented 1 year ago

I was going to merge this to a branch for the next release. But the changes in this PR doesn't meaningful manifest themselves into the docs for this example. Because the example is so large only a small subset of its code is actually embedded in the docs. So I think this change won't present a significant inconsistency.