-
Notifications
You must be signed in to change notification settings - Fork 31
/
inner_contract.go
37 lines (31 loc) · 2.06 KB
/
inner_contract.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
32
33
34
35
36
37
// Copyright 2021 The Alaya Network Authors
// This file is part of the Alaya-Go library.
//
// The Alaya-Go library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The Alaya-Go library 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the Alaya-Go library. If not, see <http://www.gnu.org/licenses/>.
package vm
import "github.com/AlayaNetwork/Alaya-Go/common"
// the inner contract addr table
var (
RestrictingContractAddr = common.HexToAddress("0x1000000000000000000000000000000000000001") // The PlatON Precompiled contract addr for restricting
StakingContractAddr = common.HexToAddress("0x1000000000000000000000000000000000000002") // The PlatON Precompiled contract addr for staking
RewardManagerPoolAddr = common.HexToAddress("0x1000000000000000000000000000000000000003") // The PlatON Precompiled contract addr for reward
SlashingContractAddr = common.HexToAddress("0x1000000000000000000000000000000000000004") // The PlatON Precompiled contract addr for slashing
GovContractAddr = common.HexToAddress("0x1000000000000000000000000000000000000005") // The PlatON Precompiled contract addr for governance
DelegateRewardPoolAddr = common.HexToAddress("0x1000000000000000000000000000000000000006") // The PlatON Precompiled contract addr for delegate reward
ValidatorInnerContractAddr = common.HexToAddress("0x2000000000000000000000000000000000000000") // The PlatON Precompiled contract addr for cbft inner
)
type PrecompiledContractCheck interface {
IsPlatONPrecompiledContract(address common.Address) bool
}
var PrecompiledContractCheckInstance PrecompiledContractCheck