contracts: decipher oracle test contract

Make it a proper Go contract, opcodes are fun until you want to change
something in them. Part of #2412.
This commit is contained in:
Roman Khimov 2022-07-22 11:44:11 +03:00
parent 593fa4cac8
commit da2db74bc9
8 changed files with 45 additions and 77 deletions

View file

@ -21,8 +21,10 @@ var (
helper2ContractNEFPath = filepath.Join("management_helper", "management_helper2.nef")
helper2ContractManifestPath = filepath.Join("management_helper", "management_helper2.manifest.json")
oracleContractNEFPath = filepath.Join("oracle_contract", "oracle.nef")
oracleContractManifestPath = filepath.Join("oracle_contract", "oracle.manifest.json")
oracleContractModPath = "oracle_contract"
oracleContractYAMLPath = filepath.Join(oracleContractModPath, "oracle.yml")
oracleContractNEFPath = filepath.Join(oracleContractModPath, "oracle.nef")
oracleContractManifestPath = filepath.Join(oracleContractModPath, "oracle.manifest.json")
)
// GetTestContractState reads 2 pre-compiled contracts generated by