forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
43 lines (37 loc) · 1 KB
/
lib.rs
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
38
39
40
41
42
43
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![warn(
future_incompatible,
nonstandard_style,
rust_2018_idioms,
rust_2021_compatibility
)]
#![deny(warnings)]
use move_core_types::account_address::AccountAddress;
#[macro_use]
pub mod error;
pub mod base_types;
pub mod batch;
pub mod coin;
pub mod committee;
pub mod crypto;
pub mod event;
pub mod gas;
pub mod gas_coin;
pub mod id;
pub mod messages;
pub mod move_package;
pub mod object;
pub mod serialize;
pub mod storage;
/// 0x1-- account address where Move stdlib modules are stored
/// Same as the ObjectID
pub const MOVE_STDLIB_ADDRESS: AccountAddress = AccountAddress::ONE;
/// 0x2-- account address where sui framework modules are stored
/// Same as the ObjectID
pub const SUI_FRAMEWORK_ADDRESS: AccountAddress = get_hex_address_two();
const fn get_hex_address_two() -> AccountAddress {
let mut addr = [0u8; AccountAddress::LENGTH];
addr[AccountAddress::LENGTH - 1] = 2u8;
AccountAddress::new(addr)
}