core: implement System.Contract.CreateStandardAccount syscall

This commit is contained in:
Evgenii Stratonikov 2020-06-16 11:25:30 +03:00
parent 5b4f38d717
commit 52a27e9be4
3 changed files with 35 additions and 0 deletions

View file

@ -89,6 +89,7 @@ var systemInterops = []interop.Function{
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.CreateStandardAccount", Func: contractCreateStandardAccount, Price: 10000},
{Name: "System.Contract.Destroy", Func: contractDestroy, Price: 1000000,
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},
{Name: "System.Contract.IsStandard", Func: contractIsStandard, Price: 30000},