Help us shape the future of Go! Take the 2026 Go Developer Survey

erc20

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BalancePrefix   = `BALANCE`
	AllowancePrefix = `APPROVE`
)
View Source
const NameKey = `name`
View Source
const SymbolKey = `symbol`
View Source
const TotalSupplyKey = `totalSupply`

Variables

View Source
var (
	ErrNotEnoughFunds                   = errors.New(`not enough funds`)
	ErrForbiddenToTransferToSameAccount = errors.New(`forbidden to transfer to same account`)
	ErrSpenderNotHaveAllowance          = errors.New(`spender not have allowance for amount`)
)

Functions

func NewErc20FixedSupply

func NewErc20FixedSupply() *router.Chaincode

Types

type Approve

type Approve struct {
	From    identity.Id
	Spender identity.Id
	Amount  int
}

type Transfer

type Transfer struct {
	From   identity.Id
	To     identity.Id
	Amount int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL