Update storage gas prices

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-23 22:39:11 +02:00
parent 774c6901a8
commit 4abff16783
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -13,7 +13,7 @@ import (
)
const (
GasStorageMulti = 1
GasStorageMulti = 1000
GasComputeMulti = 1
)
@ -85,10 +85,10 @@ type Pricelist interface {
var prices = map[abi.ChainEpoch]Pricelist{
abi.ChainEpoch(0): &pricelistV0{
onChainMessageComputeBase: 137137,
onChainMessageStorageBase: 0, // TODO gas
onChainMessageStoragePerByte: 2, // TODO gas
onChainMessageStorageBase: 36,
onChainMessageStoragePerByte: 1,
onChainReturnValuePerByte: 8, // TODO gas
onChainReturnValuePerByte: 1,
sendBase: 97236,
sendTransferFunds: 96812,
@ -97,11 +97,11 @@ var prices = map[abi.ChainEpoch]Pricelist{
ipldGetBase: 417230,
ipldPutBase: 396100,
ipldPutPerByte: 2, // TODO gas
ipldPutPerByte: 1,
createActorCompute: 750011,
createActorStorage: 500, // TODO gas
deleteActor: -500, // -createActorStorage
createActorStorage: 36 + 40,
deleteActor: -(36 + 40), // -createActorStorage
verifySignature: map[crypto.SigType]int64{
crypto.SigTypeBLS: 219946580,