Package nxt.tools
Class ContractManager
java.lang.Object
nxt.tools.ContractManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidstatic voidvoidreference(ContractManager.ContractData contractData, byte[] contractFullHash) reference(ContractManager.ContractData contractData, byte[] fullHash, JO uploaderParams) uploadImpl(String contractName, String packageName) booleanWe assume that the contract is composed of a single source file which is deployed to the blockchain either as a single class file or as a Jar file containing all its inner classes.
-
Constructor Details
-
ContractManager
public ContractManager()
-
-
Method Details
-
main
-
init
-
init
-
list
-
listImpl
-
upload
-
uploadImpl
-
reference
-
reference
-
delete
-
verify
We assume that the contract is composed of a single source file which is deployed to the blockchain either as a single class file or as a Jar file containing all its inner classes. This compiled contract is identified by the provided transaction hash on the Ignis chain.- Parameters:
hash- hash of the cloud data transaction which stores the contract filesourceFile- path to the source file to compile- Returns:
- true if the compiled source code is identical to the code deployed to the blockchain, false otherwise
-