plugeth-statediff/test_helpers/constant.go

36 lines
1.5 KiB
Go
Raw Normal View History

2023-06-14 12:43:34 +00:00
// VulcanizeDB
// Copyright © 2021 Vulcanize
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package test_helpers
import (
"github.com/ethereum/go-ethereum/params"
2024-03-15 08:04:28 +00:00
"github.com/holiman/uint256"
2023-06-14 12:43:34 +00:00
)
var (
BalanceChange1000 = int64(1000)
BalanceChange10000 = int64(10000)
2024-03-15 08:04:28 +00:00
BalanceChangeBIG = uint256.MustFromDecimal("2000000000000000000000000000000000000000000")
2023-06-14 12:43:34 +00:00
BalanceChange1Ether = int64(params.Ether)
2024-03-15 08:04:28 +00:00
Block1Account1Balance = uint256.NewInt(uint64(BalanceChange10000))
2023-06-14 12:43:34 +00:00
Block1bAccount1Balance = BalanceChangeBIG
GasFees = int64(params.GWei) * int64(params.TxGas)
GasFees2 = int64(params.TxGas) * int64(params.InitialBaseFee)
ContractGasLimit = uint64(1000000)
ContractForInternalLeafNodeGasLimit = uint64(500000000)
)