chore: move token example to nep5 as package name (CityOfZion/neo-storm#19)
* feat: add token example * feat: code splitted package * feat: use updated apis * chore: change token namespace to nep5 * chore: add transfer event and readme updates Imported from CityOfZion/neo-storm (63ec2d7dc23a60f128a8b383ceda1eaa15d919c1).
This commit is contained in:
parent
b3037cd598
commit
1f8ccdba16
4 changed files with 118 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
package token_contract
|
||||
|
||||
import (
|
||||
"token"
|
||||
"nep5"
|
||||
|
||||
"github.com/CityOfZion/neo-storm/interop/storage"
|
||||
"github.com/CityOfZion/neo-storm/interop/util"
|
||||
|
@ -15,8 +15,8 @@ const (
|
|||
var owner = util.FromAddress("AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y")
|
||||
|
||||
// CreateToken initializes the Token Interface for the Smart Contract to operate with
|
||||
func CreateToken() token.Token {
|
||||
return token.Token{
|
||||
func CreateToken() nep5.Token {
|
||||
return nep5.Token{
|
||||
Name: "Awesome NEO Token",
|
||||
Symbol: "ANT",
|
||||
Decimals: decimals,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue