Skip to content

Commit bd08a3e

Browse files
authored
refactor: update project workspace (#2)
1 parent a740634 commit bd08a3e

File tree

10 files changed

+7
-254
lines changed

10 files changed

+7
-254
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[workspace]
22

33
members = [
4-
"insoul_core",
5-
"soul_token",
6-
"subtoken",
74
"soulbound",
5+
"hub",
86
"deps"
97
]

insoul_core/Cargo.toml renamed to hub/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "insoul-core"
2+
name = "hub"
33
version = "0.1.0"
44
authors = ["Near Inc <[email protected]>"]
55
edition = "2018"

insoul_core/src/lib.rs renamed to hub/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use deps::interfaces::core_self;
99

1010
#[near_bindgen]
1111
#[derive(BorshDeserialize, BorshSerialize)]
12-
pub struct InsoulCore {
12+
pub struct Hub {
1313
pub owner_id: AccountId,
1414
pub admin_public_key: PublicKey,
1515
pub soul_token_id: AccountId,
@@ -20,14 +20,14 @@ pub struct InsoulCore {
2020

2121
const SOULBOUND_CODE: &[u8] = include_bytes!("../../wasm/soulbound.wasm");
2222

23-
impl Default for InsoulCore {
23+
impl Default for Hub {
2424
fn default() -> Self {
2525
env::panic_str("Not implemented yet");
2626
}
2727
}
2828

2929
#[near_bindgen]
30-
impl InsoulCore {
30+
impl Hub {
3131
pub fn assert_only_owner(&self) {
3232
assert_one_yocto();
3333
assert_eq!(

integration-tests/core.ava.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test.beforeEach(async (t) => {
2020
});
2121

2222
const contract = await root.devDeploy(
23-
"./wasm/insoul_core.wasm",
23+
"./wasm/hub.wasm",
2424
{ method: "new", args: {soul_token_id: soulToken}, initialBalance: NEAR.parse("30 N").toJSON() }
2525
);
2626

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "insoul-core",
2+
"name": "caps-core",
33
"version": "1.0.0",
44
"description": "",
55
"scripts": {

soul_token/Cargo.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

soul_token/src/lib.rs

Lines changed: 0 additions & 62 deletions
This file was deleted.

soul_token/src/tests.rs

Lines changed: 0 additions & 81 deletions
This file was deleted.

subtoken/Cargo.toml

Lines changed: 0 additions & 23 deletions
This file was deleted.

subtoken/src/lib.rs

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)