diff --git a/pkg/core/interops.go b/pkg/core/interops.go index 437705ab6..7f0c3ee35 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -71,25 +71,25 @@ func getInteropFromSlice(ic *interop.Context, slice []interop.Function) func(uin var systemInterops = []interop.Function{ {Name: "System.Binary.Deserialize", Func: runtimeDeserialize, Price: 500000}, {Name: "System.Binary.Serialize", Func: runtimeSerialize, Price: 100000}, - {Name: "System.Blockchain.GetBlock", Func: bcGetBlock, Price: 250, + {Name: "System.Blockchain.GetBlock", Func: bcGetBlock, Price: 2500000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Blockchain.GetContract", Func: bcGetContract, Price: 100, + {Name: "System.Blockchain.GetContract", Func: bcGetContract, Price: 1000000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Blockchain.GetHeight", Func: bcGetHeight, Price: 1, + {Name: "System.Blockchain.GetHeight", Func: bcGetHeight, Price: 400, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Blockchain.GetTransaction", Func: bcGetTransaction, Price: 100, + {Name: "System.Blockchain.GetTransaction", Func: bcGetTransaction, Price: 1000000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Blockchain.GetTransactionFromBlock", Func: bcGetTransactionFromBlock, Price: 100, + {Name: "System.Blockchain.GetTransactionFromBlock", Func: bcGetTransactionFromBlock, Price: 1000000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Blockchain.GetTransactionHeight", Func: bcGetTransactionHeight, Price: 100, + {Name: "System.Blockchain.GetTransactionHeight", Func: bcGetTransactionHeight, Price: 1000000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, - {Name: "System.Contract.Call", Func: contractCall, Price: 1, + {Name: "System.Contract.Call", Func: contractCall, Price: 1000000, AllowedTriggers: trigger.System | trigger.Application, RequiredFlags: smartcontract.AllowCall}, - {Name: "System.Contract.CallEx", Func: contractCallEx, Price: 1, + {Name: "System.Contract.CallEx", Func: contractCallEx, Price: 1000000, AllowedTriggers: trigger.System | trigger.Application, RequiredFlags: smartcontract.AllowCall}, {Name: "System.Contract.Create", Func: contractCreate, Price: 0, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates}, - {Name: "System.Contract.Destroy", Func: contractDestroy, Price: 1, + {Name: "System.Contract.Destroy", Func: contractDestroy, Price: 1000000, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates}, {Name: "System.Contract.Update", Func: contractUpdate, Price: 0, AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},