-
Notifications
You must be signed in to change notification settings - Fork 1
/
params.go
31 lines (22 loc) · 955 Bytes
/
params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package precompile
import "github.com/ethereum/go-ethereum/common"
// Gas costs for stateful precompiles
const (
GetPriceGasCost = 5_000
)
// Designated addresses of stateful precompiles
// Note: it is important that none of these addresses conflict with each other or any other precompiles
// in core/vm/contracts.go.
// We start at 0x0200000000000000000000000000000000000000 and will increment by 1 from here to reduce
// the risk of conflicts.
// For forks of subnet-evm, users should start at 0x0300000000000000000000000000000000000000 to ensure
// that their own modifications do not conflict with stateful precompiles that may be added to subnet-evm
// in the future.
var (
PriceOracleAddress = common.HexToAddress("0x0300000000000000000000000000000000000001")
UsedAddresses = []common.Address{
PriceOracleAddress,
}
)