Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move gw-types and gw-common to gwos folder #905

Merged
merged 13 commits into from
Dec 19, 2022

Conversation

jjyr
Copy link
Collaborator

@jjyr jjyr commented Dec 13, 2022

  1. Move gw-types and gw-common to the gwos folder. Then we can directly referent them in the contract by the path.
  2. Move smt from gw-common to a standalone crate gw-smt, so we can simplify the dependency of rust contracts.
  3. Upgrade the capsule toolchain to nightly-2021-08-16
  4. Remove gwos/contracts/tron-account-lock. Tron lock is not enabled both in the testnet and mainnet.
  5. Rename gw_utils::block_timepoint to gw_utils::finalized_timepoint

@jjyr jjyr requested review from blckngm, zeroqn and a team December 13, 2022 10:22
@jjyr jjyr force-pushed the renaming-fields branch 2 times, most recently from 7d84d1d to c7ff6b9 Compare December 13, 2022 10:30
@jjyr jjyr self-assigned this Dec 13, 2022
@keroro520
Copy link
Contributor

Move gw-types and gw-common to the gwos folder

What's the purpose of this change?

@jjyr
Copy link
Collaborator Author

jjyr commented Dec 14, 2022

Move gw-types and gw-common to the gwos folder

What's the purpose of this change?

By moving these crates into gwos folder, scripts can reference these crates by the path.

blckngm
blckngm previously approved these changes Dec 15, 2022
crates/block-producer/src/block_producer.rs Show resolved Hide resolved
crates/block-producer/src/block_producer.rs Outdated Show resolved Hide resolved
@jjyr jjyr requested a review from a team December 16, 2022 10:44
@jjyr jjyr merged commit 9cb54d9 into godwokenrises:develop Dec 19, 2022
@jjyr jjyr deleted the renaming-fields branch December 19, 2022 04:43
@jjyr jjyr mentioned this pull request Dec 19, 2022
jjyr added a commit that referenced this pull request Dec 19, 2022
* refactor: move `gw-types` and `gw-common` to `gwos` folder

* fix(ci): install nightly rustfmt

* fix: prevent to get a early since value in global_state_last_finalized_timepoint_to_since

* fix(ci): script-tests c-uint256-tests

* refactor: move smt from `gw-common` to a standalone crate `gw-smt`

* refactor: remove tron account lock contract

* chore: remove unused step from CI

* refactor: define H256 as alias of [u8; 32]

* refactor: remove unused files from gw-smt

* refactor: reduce copy when convert Vec<SMTH256>

* fix(ci): fix molecule schema url

* fix: fix evm tests

* fix: gwos-evm tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants