import { AccountId , u128 } from "ask-lang" ; import { ERC20 } from "./ERC20" ; @ contract @ doc ( desc = "MyToken conract that extended erc20 contract" ) class MyToken extends ERC20 { constructor ( ) { super ( ) ; } @ constructor default ( name = "" , symbol = "" ) { super . default ( name , symbol ) ; } @ message @ doc ( desc = "Mint a token" ) mint ( to , amount ) { this . _mint ( to , amount ) ; } @ message @ doc ( desc = "burn the token" ) burn ( from , amount ) { this . _burn ( from , amount ) ; } }