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.
Click to show internal directories.
Click to hide internal directories.