erc20ownable

package
v0.0.0-...-b1d75aa Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwnableTokenInterface

type OwnableTokenInterface interface {
	GetOwner(stub shim.ChaincodeStubInterface) (string, error)

	TransferOwnership(stub shim.ChaincodeStubInterface,
		args []string,
		getOwner func(shim.ChaincodeStubInterface) (string, error),
	) error
}

OwnableTokenInterface consists of GetOwner & TransferOwnership

type Token

type Token struct{}

Token ownable implements OwnableTokenInterface

func (*Token) GetOwner

func (t *Token) GetOwner(stub shim.ChaincodeStubInterface) (string, error)

GetOwner returns the owner ID of token

func (*Token) TransferOwnership

func (t *Token) TransferOwnership(stub shim.ChaincodeStubInterface,
	args []string,
	getOwner func(shim.ChaincodeStubInterface) (string, error),
) error

TransferOwnership allows the current owner to transfer control of the contract to a new owner.

* `args[0]` - the ID of the new owner.

* `getOwner` - specifies the function of getting the current owner of token.

Jump to

Keyboard shortcuts

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