Documentation
¶
Index ¶
- Constants
- func AddChain(entity Kind, entityName string, name []byte, chain []byte)
- func GetAdmin() interop.Hash160
- func GetChain(entity Kind, entityName string, name []byte) []byte
- func IteratorChainsByPrefix(entity Kind, entityName string, prefix []byte) iterator.Iterator
- func ListChainNames(entity Kind, entityName string) iterator.Iterator
- func ListChains(namespace, container string, name []byte) [][]byte
- func ListChainsByPrefix(entity Kind, entityName string, prefix []byte) [][]byte
- func ListTargets(entity Kind) iterator.Iterator
- func RemoveChain(entity Kind, entityName string, name []byte)
- func RemoveChainsByPrefix(entity Kind, entityName string, name []byte)
- func SetAdmin(addr interop.Hash160)
- func Update(script []byte, manifest []byte, data any)
- func Version() int
- type Kind
Constants ¶
View Source
const ( Namespace = 'n' Container = 'c' User = 'u' Group = 'g' IAM = 'i' )
View Source
const ( // ErrNotAuthorized is returned when the none of the transaction signers // belongs to the list of autorized keys. ErrNotAuthorized = "none of the signers is authorized to change the contract" )
Variables ¶
This section is empty.
Functions ¶
func IteratorChainsByPrefix ¶
func ListChainNames ¶ added in v0.20.0
ListChainNames iterates over chain names for specific target.
func ListChains ¶
ListChains lists all chains for the namespace by prefix. container may be empty.
func ListChainsByPrefix ¶
ListChainsByPrefix list all chains for the provided kind and entity by prefix.
func ListTargets ¶
ListTargets iterates over targets for which rules are defined.
func RemoveChain ¶
func RemoveChainsByPrefix ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.