neoneo-go/interop/asset/asset.go
Anthony De Meulemeester 523789ee1c Compiler interop APIs (CityOfZion/neo-storm#5)
* added draft of block and transaction interop api.

* added header interop API

* added attribute, transaction, input, output interop API

* Added asset, attribute and account interop api.

* added Runtime interop apis

* added asset renew and create + contract and asset interop apis

Imported from CityOfZion/neo-storm (b6810d58b98312a959980f344db24689839574c4).
2019-08-14 19:13:56 +03:00

53 lines
1.2 KiB
Go

package asset
// Package asset provides function signatures that can be used inside
// smart contracts that are written in the neo-go-sc framework.
// Asset stubs a NEO asset type.
type Asset struct{}
// GetAssetID returns the id of the given asset.
func GetAssetID(a Asset) []byte {
return nil
}
// GetAssetType returns the type of the given asset.
func GetAssetType(a Asset) byte {
return 0x00
}
// GetAmount returns the amount of the given asset.
func GetAmount(a Asset) int {
return 0
}
// GetAvailable returns the available of the given asset.
func GetAvailable(a Asset) int {
return 0
}
// GetPrecision returns the precision of the given asset.
func GetPrecision(a Asset) byte {
return 0x00
}
// GetOwner returns the owner of the given asset.
func GetOwner(a Asset) []byte {
return nil
}
// GetAdmin returns the admin of the given asset.
func GetAdmin(a Asset) []byte {
return nil
}
// GetIssuer returns the issuer of the given asset.
func GetIssuer(a Asset) []byte {
return nil
}
// Create registers a new asset on the blockchain.
func Create(assetType byte, name string, amount int, precision byte, owner, admin, issuer []byte) {}
// Renew renews the existance of an asset by the given years.
func Renew(asset Asset, years int) {}