public class ManagementContract extends ContractInterface
| Constructor and Description |
|---|
ManagementContract() |
| Modifier and Type | Method and Description |
|---|---|
static Contract |
deploy(byte[] nefFile,
java.lang.String manifest)
Deploys a new contract with the given NEF (Neo Executable Format) file and manifest.
|
static void |
destroy()
Destroys the calling smart contract.
|
static Contract |
getContract(byte[] hash)
Gets the contract with the given script hash.
|
static void |
update(byte[] nefFile,
java.lang.String manifest)
Updates the calling smart contract with the given NEF file and manifest.
|
getHashpublic static Contract getContract(byte[] hash)
hash - The contract's script hash.public static Contract deploy(byte[] nefFile, java.lang.String manifest)
nefFile - The NEF file of the contract to deploy.manifest - The manifest of the contract to deploy.public static void update(byte[] nefFile,
java.lang.String manifest)
A deployed smart contract cannot be updated from the outside. Thus, if the contract should be updatable, the logic has to be written into the contract during development.
nefFile - The updated NEF file of the contract.manifest - The updated manifest of the contract.public static void destroy()
A deployed smart contract cannot be destroyed from the outside. Thus, if the contract should be destroyable, the logic has to be written into the contract during development.