forked from TrueCloudLab/neoneo-go
core: adjust System.Storage.*
interop prices
This commit is contained in:
parent
61bba1a39c
commit
2e996ea57d
1 changed files with 6 additions and 6 deletions
|
@ -112,21 +112,21 @@ var systemInterops = []interop.Function{
|
||||||
{Name: "System.Runtime.Notify", Func: runtimeNotify, Price: 1, RequiredFlags: smartcontract.AllowNotify},
|
{Name: "System.Runtime.Notify", Func: runtimeNotify, Price: 1, RequiredFlags: smartcontract.AllowNotify},
|
||||||
{Name: "System.Runtime.Platform", Func: runtimePlatform, Price: 1},
|
{Name: "System.Runtime.Platform", Func: runtimePlatform, Price: 1},
|
||||||
{Name: "System.Runtime.Serialize", Func: runtimeSerialize, Price: 1},
|
{Name: "System.Runtime.Serialize", Func: runtimeSerialize, Price: 1},
|
||||||
{Name: "System.Storage.Delete", Func: storageDelete, Price: 100,
|
{Name: "System.Storage.Delete", Func: storageDelete, Price: StoragePrice,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},
|
||||||
{Name: "System.Storage.Find", Func: storageFind, Price: 1,
|
{Name: "System.Storage.Find", Func: storageFind, Price: 1000000,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
||||||
{Name: "System.Storage.Get", Func: storageGet, Price: 100,
|
{Name: "System.Storage.Get", Func: storageGet, Price: 1000000,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
||||||
{Name: "System.Storage.GetContext", Func: storageGetContext, Price: 1,
|
{Name: "System.Storage.GetContext", Func: storageGetContext, Price: 400,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
||||||
{Name: "System.Storage.GetReadOnlyContext", Func: storageGetReadOnlyContext, Price: 1,
|
{Name: "System.Storage.GetReadOnlyContext", Func: storageGetReadOnlyContext, Price: 400,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
||||||
{Name: "System.Storage.Put", Func: storagePut, Price: 0,
|
{Name: "System.Storage.Put", Func: storagePut, Price: 0,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates}, // These don't have static price in C# code.
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates}, // These don't have static price in C# code.
|
||||||
{Name: "System.Storage.PutEx", Func: storagePutEx, Price: 0,
|
{Name: "System.Storage.PutEx", Func: storagePutEx, Price: 0,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowModifyStates},
|
||||||
{Name: "System.Storage.AsReadOnly", Func: storageContextAsReadOnly, Price: 1,
|
{Name: "System.Storage.AsReadOnly", Func: storageContextAsReadOnly, Price: 400,
|
||||||
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue