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
There have been some questions around if functions like clawback and set_admin (some context around set_admin) should be included in the token interface. We should add another interface in the SDK that users should implement, and leave the existing one in there if you want to use SAC specific admin functionality. My thoughts on this from here are quoted below -
I have been thinking about if there are any admin methods in the interface that should be pulled out because they're specific to Stellar assets and can be implemented as an extension to the interface (clawback() is a good example of this). I can see the argument for removing set_admin as well since administrative type methods are typically used as one-off calls (and are more likely to require custom logic/function signature). Custom tokens shouldn't have to implement methods that they don't need either. The EIP-20 interface is actually quite bare, which makes it easier to implement tokens.
sisuresh
changed the title
Consider removing admin level methods from the token interface
Add a minimal token interface in the sdk similar to ERC-20.
Jun 2, 2023
The interfaces were split in #1012. We still need to provide a single interface to interact with the SAC. This can be done by exposing a trait that combines the Client and AdminClient.
There have been some questions around if functions like
clawback
andset_admin
(some context around set_admin) should be included in the token interface. We should add another interface in the SDK that users should implement, and leave the existing one in there if you want to use SAC specific admin functionality. My thoughts on this from here are quoted below -Discord thread with a discussion about this here.
The text was updated successfully, but these errors were encountered: