diem_types/account_config/
mod.rs

1// Copyright (c) The Diem Core Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4// Copyright 2021 Conflux Foundation. All rights reserved.
5// Conflux is free software and distributed under GNU General Public License.
6// See http://www.gnu.org/licenses/
7
8pub mod constants;
9
10pub use constants::*;
11
12use move_core_types::account_address::AccountAddress;
13
14pub fn pivot_chain_select_address() -> AccountAddress {
15    AccountAddress::from_hex_literal("0x1D9")
16        .expect("Parsing valid hex literal should always succeed")
17}
18
19pub fn election_select_address() -> AccountAddress {
20    AccountAddress::from_hex_literal("0x1DA")
21        .expect("Parsing valid hex literal should always succeed")
22}
23
24pub fn retire_address() -> AccountAddress {
25    AccountAddress::from_hex_literal("0x1DB")
26        .expect("Parsing valid hex literal should always succeed")
27}
28
29pub fn unlock_address() -> AccountAddress {
30    AccountAddress::from_hex_literal("0x1DC")
31        .expect("Parsing valid hex literal should always succeed")
32}
33
34pub fn register_address() -> AccountAddress {
35    AccountAddress::from_hex_literal("0x1DD")
36        .expect("Parsing valid hex literal should always succeed")
37}
38
39pub fn update_voting_power_address() -> AccountAddress {
40    AccountAddress::from_hex_literal("0x1DE")
41        .expect("Parsing valid hex literal should always succeed")
42}
43
44pub fn dispute_address() -> AccountAddress {
45    AccountAddress::from_hex_literal("0x1DF")
46        .expect("Parsing valid hex literal should always succeed")
47}