babyface001
babyface001
no interface, no ecosystem.
if no interface, how a wallet transfer token. `0x1::coin::transfer` just works for aptos coin and manged coin. how to transfer a token with custom `transfer`. for `aptos`
interface is a part of type safe.
@dulumao I mean for client side. wallet app. token interface.
@dulumao I want a coin with custom `transfer`, but I can not override `0x1::coin::transfer`, and wallet only call `0x1::coin::transfer` to transfer, so my coin not work. interface just a convention...
for example. ``` module Token::erc20 { public entry fun transfer(){ // interface override. // your logic or just call 0x::coin::transfer } } ```
maybe move should have some primitive like `trait`
someone get in touch in upstream https://github.com/move-language/move/issues/449
the biggest problem now is we must implement some algorithm with move and js.
@JoshLind download framework dep will clone entry git repo, it 's too big. if we split it into a separate repo, it will be small download.