Skip to content

Commit

Permalink
use Rust macro from the rooch_framework
Browse files Browse the repository at this point in the history
  • Loading branch information
steelgeek091 committed Aug 31, 2024
1 parent 6d1a81e commit 9d8f10c
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 189 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions crates/rooch-genesis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ use rooch_framework::natives::gas_parameter::gas_member::{
};
use rooch_framework::ROOCH_FRAMEWORK_ADDRESS;
use rooch_indexer::store::traits::IndexerStoreTrait;
use rooch_nursery::natives::gas_parameter::gas_member::InitialGasSchedule as RoochNurseryInitialGasSchedule;
use rooch_nursery::natives::gas_parameter::gas_member::{
FromOnChainGasSchedule as RoochNurseryFromOnChainGasSchedule,
ToOnChainGasSchedule as RoochNurseryToOnChainGasSchedule,
};
use rooch_store::meta_store::MetaStore;
use rooch_store::transaction_store::TransactionStore;
use rooch_types::address::BitcoinAddress;
Expand Down
Binary file modified frameworks/framework-release/released/8/stdlib
Binary file not shown.
3 changes: 2 additions & 1 deletion frameworks/rooch-nursery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ moveos-stdlib = { workspace = true }
moveos = { workspace = true }
moveos-wasm = { workspace = true }

rooch-types = { workspace = true }
rooch-types = { workspace = true }
rooch-framework = { workspace = true }
26 changes: 0 additions & 26 deletions frameworks/rooch-nursery/src/natives/gas_parameter/gas_member.rs

This file was deleted.

2 changes: 0 additions & 2 deletions frameworks/rooch-nursery/src/natives/gas_parameter/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0

pub mod gas_member;
pub mod native;
pub mod wasm;
152 changes: 0 additions & 152 deletions frameworks/rooch-nursery/src/natives/gas_parameter/native.rs

This file was deleted.

2 changes: 1 addition & 1 deletion frameworks/rooch-nursery/src/natives/gas_parameter/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use crate::natives::wasm::GasParameters;

crate::natives::gas_parameter::native::define_gas_parameters_for_natives!(GasParameters, "wasm", [
rooch_framework::natives::gas_parameter::native::define_gas_parameters_for_natives!(GasParameters, "wasm", [
[.create_instance_gas_parameter.base_create_instance, "create_instance_gas_parameter.base_create_instance", 10000],
[.create_instance_gas_parameter.per_byte_instance, "create_instance_gas_parameter.per_byte_instance", 100],

Expand Down
4 changes: 2 additions & 2 deletions frameworks/rooch-nursery/src/natives/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0

use crate::natives::gas_parameter::gas_member::{
use move_vm_runtime::native_functions::{make_table_from_iter, NativeFunctionTable};
use rooch_framework::natives::gas_parameter::gas_member::{
FromOnChainGasSchedule, InitialGasSchedule, ToOnChainGasSchedule,
};
use move_vm_runtime::native_functions::{make_table_from_iter, NativeFunctionTable};
use rooch_types::addresses::ROOCH_NURSERY_ADDRESS;
use std::collections::BTreeMap;

Expand Down

0 comments on commit 9d8f10c

Please sign in to comment.