Skip to content

Commit

Permalink
chore: filenames fastpay -> sui
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Feb 11, 2022
1 parent 39d9339 commit 930f2a9
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 22 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
To contribute, ensure that you have the latest version of the codebase. To clone the repository, run the following:
```bash
$ git clone https://github.com/mystenlabs/fastnft.git
$ cd fastpay
$ cd sui
$ cargo build --all --all-targets
$ cargo test
```
Expand All @@ -18,7 +18,7 @@ Please refer to the documentation to determine the status of each project (e.g.

To submit your pull request:

1. Fork `fastpay` repository and create your branch from `main`.
1. Fork `sui` repository and create your branch from `main`.
2. If you have added code that should be tested, add unit tests.
3. If you have made changes to APIs, update the relevant documentation, and build and test the developer site.
4. Verify and ensure that the test suite passes.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
members = [
"fastpay_core",
"fastpay",
"sui_core",
"sui",
"fastx_programmability/adapter",
"fastx_programmability/framework",
"fastx_types",
Expand Down
4 changes: 2 additions & 2 deletions fastpay/Cargo.toml → sui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "fastpay"
name = "sui"
version = "0.1.0"
authors = ["Libra <oncall+libra@xmail.facebook.com>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -30,7 +30,7 @@ tracing = { version = "0.1", features = ["log"] }
tracing-subscriber = { version = "0.3", features = ["time", "env-filter"] }

bcs = "0.1.3"
fastpay_core = { path = "../fastpay_core" }
sui_core = { path = "../sui_core" }
fastx-adapter = { path = "../fastx_programmability/adapter" }
fastx-network = { path = "../network_utils" }
fastx-types = { path = "../fastx_types" }
Expand Down
2 changes: 1 addition & 1 deletion fastpay/src/bench.rs → sui/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![deny(warnings)]

use bytes::Bytes;
use fastpay_core::{authority::*, authority_server::AuthorityServer};
use fastx_network::{network::NetworkClient, transport};
use fastx_types::FASTX_FRAMEWORK_ADDRESS;
use fastx_types::{base_types::*, committee::*, messages::*, object::Object, serialize::*};
Expand All @@ -14,6 +13,7 @@ use rand::rngs::StdRng;
use rand::Rng;
use std::time::{Duration, Instant};
use structopt::StructOpt;
use sui_core::{authority::*, authority_server::AuthorityServer};
use tokio::runtime::Runtime;
use tokio::{runtime::Builder, time};
use tracing::subscriber::set_global_default;
Expand Down
2 changes: 1 addition & 1 deletion fastpay/src/config.rs → sui/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// SPDX-License-Identifier: Apache-2.0

use fastpay_core::client::ClientState;
use fastx_types::{
base_types::*,
messages::{CertifiedOrder, OrderKind},
};
use sui_core::client::ClientState;

use crate::utils::Config;
use fastx_network::transport;
Expand Down
10 changes: 4 additions & 6 deletions fastpay/src/fastx.rs → sui/src/fastx.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// Copyright (c) Mysten Labs
// SPDX-License-Identifier: Apache-2.0
use fastpay::config::{
AccountInfo, AuthorityInfo, AuthorityPrivateInfo, NetworkConfig, WalletConfig,
};
use fastpay::utils::Config;
use fastpay_core::authority::{AuthorityState, AuthorityStore};
use fastpay_core::authority_server::AuthorityServer;
use fastx_types::base_types::{get_key_pair, ObjectID, SequenceNumber};
use fastx_types::committee::Committee;
use fastx_types::object::Object;
Expand All @@ -16,6 +10,10 @@ use std::path::PathBuf;
use std::process::exit;
use std::sync::Arc;
use structopt::StructOpt;
use sui::config::{AccountInfo, AuthorityInfo, AuthorityPrivateInfo, NetworkConfig, WalletConfig};
use sui::utils::Config;
use sui_core::authority::{AuthorityState, AuthorityStore};
use sui_core::authority_server::AuthorityServer;
use tracing::error;
use tracing::subscriber::set_global_default;
use tracing_subscriber::EnvFilter;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions fastpay/src/wallet.rs → sui/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// SPDX-License-Identifier: Apache-2.0
use async_trait::async_trait;
use colored::Colorize;
use fastpay::config::WalletConfig;
use fastpay::shell::{AsyncHandler, CommandStructure, Shell};
use fastpay::utils::Config;
use fastpay::wallet_commands::*;
use std::io;
use structopt::clap::{App, AppSettings};
use structopt::StructOpt;
use sui::config::WalletConfig;
use sui::shell::{AsyncHandler, CommandStructure, Shell};
use sui::utils::Config;
use sui::wallet_commands::*;
use tracing::subscriber::set_global_default;
use tracing_subscriber::EnvFilter;

Expand Down
4 changes: 2 additions & 2 deletions fastpay/src/wallet_commands.rs → sui/src/wallet_commands.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) Mysten Labs
// SPDX-License-Identifier: Apache-2.0
use crate::config::{AccountInfo, AuthorityInfo, WalletConfig};
use fastpay_core::authority_client::AuthorityClient;
use fastpay_core::client::{Client, ClientState};
use fastx_network::network::NetworkClient;
use fastx_types::base_types::{
decode_address_hex, encode_address_hex, get_key_pair, AuthorityName, ObjectID, PublicKeyBytes,
SuiAddress,
};
use fastx_types::committee::Committee;
use fastx_types::messages::{ExecutionStatus, OrderEffects};
use sui_core::authority_client::AuthorityClient;
use sui_core::client::{Client, ClientState};

use crate::utils::Config;
use fastx_types::error::SuiError;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fastpay_core/Cargo.toml → sui_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "fastpay_core"
name = "sui_core"
version = "0.1.0"
authors = ["Libra <oncall+libra@xmail.facebook.com>"]
license = "Apache-2.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct Options {
action: Action,
}

const FILE_PATH: &str = "fastpay_core/tests/staged/fastpay.yaml";
const FILE_PATH: &str = "sui_core/tests/staged/sui.yaml";

fn main() {
let options = Options::from_args();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 930f2a9

Please sign in to comment.