Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions bvm/bvm2_cost.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,31 @@ struct ChargeFor {

struct Cost
{
static const uint32_t Cycle = ChargeFor<20*1000*1000>::V;
static const uint32_t MemOpPerByte = ChargeFor<50*1000*1000>::V;
static const uint32_t HeapOp = ChargeFor<1000*1000>::V;
static const uint32_t LoadVar = ChargeFor<20*1000>::V;
static const uint32_t LoadVarPerByte = ChargeFor<2*1000*1000>::V;
static const uint32_t SaveVar = ChargeFor<5*1000>::V;
static const uint32_t SaveVarPerByte = ChargeFor<1000*1000>::V;
static const uint32_t Log = ChargeFor<20*1000>::V;
static const uint32_t LogPerByte = ChargeFor<1000*1000>::V;
static const uint32_t UpdateShader = ChargeFor<1*1000>::V;
static const uint32_t CallFar = ChargeFor<10*1000>::V;
static const uint32_t AddSig = ChargeFor<10*1000>::V;
static const uint32_t AssetManage = ChargeFor<1000>::V;
static const uint32_t AssetEmit = ChargeFor<20*1000>::V;
static const uint32_t FundsLock = ChargeFor<50*1000>::V;
static const uint32_t HashOp = ChargeFor<1000*1000>::V;
static const uint32_t HashWrite = ChargeFor<5*1000*1000>::V;
static const uint32_t HashWritePerByte = ChargeFor<50*1000*1000>::V;
static const uint32_t Cycle = ChargeFor<20'000'000>::V;
static const uint32_t MemOpPerByte = ChargeFor<50'000'000>::V;
static const uint32_t HeapOp = ChargeFor<1'000'000>::V;
static const uint32_t LoadVar = ChargeFor<20'000>::V;
static const uint32_t LoadVarPerByte = ChargeFor<2'000'000>::V;
static const uint32_t SaveVar = ChargeFor<5'000>::V;
static const uint32_t SaveVarPerByte = ChargeFor<1'000'000>::V;
static const uint32_t Log = ChargeFor<20'000>::V;
static const uint32_t LogPerByte = ChargeFor<1'000'000>::V;
static const uint32_t UpdateShader = ChargeFor<1'000>::V;
static const uint32_t CallFar = ChargeFor<10'000>::V;
static const uint32_t AddSig = ChargeFor<10'000>::V;
static const uint32_t AssetManage = ChargeFor<1'000>::V;
static const uint32_t AssetEmit = ChargeFor<20'000>::V;
static const uint32_t FundsLock = ChargeFor<50'000>::V;
static const uint32_t HashOp = ChargeFor<1'000'000>::V;
static const uint32_t HashWrite = ChargeFor<5'000'000>::V;
static const uint32_t HashWritePerByte = ChargeFor<50'000'000>::V;

static const uint32_t Secp_ScalarInv = ChargeFor<5*1000>::V;
static const uint32_t Secp_Point_Import = ChargeFor<5*1000>::V;
static const uint32_t Secp_Point_Export = ChargeFor<5*1000>::V;
static const uint32_t Secp_Point_Multiply = ChargeFor<2*1000>::V;
static const uint32_t Secp_ScalarInv = ChargeFor<5'000>::V;
static const uint32_t Secp_Point_Import = ChargeFor<5'000>::V;
static const uint32_t Secp_Point_Export = ChargeFor<5'000>::V;
static const uint32_t Secp_Point_Multiply = ChargeFor<2'000>::V;

static const uint32_t BeamHashIII = ChargeFor<20*1000>::V;
static const uint32_t BeamHashIII = ChargeFor<20'000>::V;

static const uint32_t Refs = LoadVar + SaveVar;

Expand Down
2 changes: 1 addition & 1 deletion utility/cli/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ namespace beam
(cli::INFURA_PROJECT_ID, po::value<string>(), "infura project ID")
(cli::ACCOUNT_INDEX, po::value<Nonnegative<uint32_t>>(), "ethereum account index")
(cli::SHOULD_CONNECT, po::value<bool>(), "connect to ethereum [true|false]")
(cli::ETH_GAS_PRICE, po::value<Positive<Amount>>(), "gas price in the gwei")
(cli::ETH_GAS_PRICE, po::value<Positive<Amount>>(), "gas price in gwei")
(cli::ETH_SWAP_AMOUNT, po::value<string>(), "swap amount in the ethereums or tokens");

po::options_description wallet_assets_options("Confidential assets");
Expand Down
Loading