Skip to content

Commit 13d2c9e

Browse files
nanne007jolestar
andauthored
Update to use diem latest code (starcoinorg#3109)
* merge diem 1.5 * vmconfig: add new instruction gascost * make mpm work * mpm: make move package manager work * stdlib[genesis]:set move lang version to 4 * update dev_setup to use cvc5 * transactional-test: finally work * migrate functional test to transactional test * cleanup code * support pacakge release * fmt check * use StarcoinFramework * dev_setup: ignore nodejs * update ci runner * use cvc5 for ci dockerfile * work around on x * update ci docker image * change std to starcoin_framewrok in txn test * move std address to compiler * contrib-contracts udpate * fail fast when run test * fix intergrate test * update deps to merge into master * change starcoin-stdlib to StarcoinFramework * [ci] Update ci script and runner config. Co-authored-by: jolestar <[email protected]>
1 parent a3e7973 commit 13d2c9e

File tree

663 files changed

+16298
-15362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

663 files changed

+16298
-15362
lines changed

Cargo.lock

Lines changed: 1933 additions & 1219 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ members = [
6868
"rpc/client",
6969
"rpc/server",
7070
"vm/types",
71-
"vm/functional-tests",
71+
7272
"vm/vm-runtime",
7373
"vm/natives",
7474
"vm/stdlib",
@@ -80,8 +80,10 @@ members = [
8080
"vm/resource-viewer",
8181
"vm/dev",
8282
"vm/move-explain",
83-
"vm/move-cli",
83+
"vm/move-package-manager",
8484
"vm/vm-status-translator",
85+
"vm/starcoin-transactional-test-harness",
86+
"vm/transactional-tests",
8587
"abi/types",
8688
"abi/decoder",
8789
"abi/resolver",
@@ -170,7 +172,7 @@ default-members = [
170172
"rpc/client",
171173
"rpc/server",
172174
"vm/types",
173-
"vm/functional-tests",
175+
"vm/transactional-tests",
174176
"vm/vm-runtime",
175177
"vm/natives",
176178
"vm/stdlib",
@@ -182,8 +184,9 @@ default-members = [
182184
"vm/resource-viewer",
183185
"vm/dev",
184186
"vm/move-explain",
185-
"vm/move-cli",
187+
"vm/move-package-manager",
186188
"vm/vm-status-translator",
189+
"vm/starcoin-transactional-test-harness",
187190
"abi/types",
188191
"abi/decoder",
189192
"abi/resolver",
@@ -232,3 +235,36 @@ starcoin-vm-runtime.debug = 1
232235

233236
[profile.release.package."*"]
234237
debug = false
238+
239+
#[patch."https://github.com/starcoinorg/diem"]
240+
#move-bytecode-source-map = {git = "https://github.com/lerencao/libra", branch="merge-main" }
241+
#move-bytecode-verifier = { git = "https://github.com/lerencao/libra", branch="merge-main" }
242+
#diem-crypto = { git = "https://github.com/lerencao/libra", branch="merge-main" }
243+
#diem-crypto-derive = { git = "https://github.com/lerencao/libra", branch="merge-main" }
244+
#diem-proptest-helpers = { git = "https://github.com/lerencao/libra", branch="merge-main" }
245+
#diem-temppath = { git = "https://github.com/lerencao/libra", branch="merge-main" }
246+
#diem-workspace-hack = { git = "https://github.com/lerencao/libra", branch="merge-main" }
247+
#move-disassembler = { git = "https://github.com/lerencao/libra", branch="merge-main" }
248+
#move-docgen = { git = "https://github.com/lerencao/libra", branch="merge-main" }
249+
#move-errmapgen = { git = "https://github.com/lerencao/libra", branch="merge-main" }
250+
#move-binary-format = { git = "https://github.com/lerencao/libra", branch="merge-main" }
251+
#move-command-line-common = { git = "https://github.com/lerencao/libra", branch="merge-main" }
252+
#move-transactional-test-runner= { git = "https://github.com/lerencao/libra", branch="merge-main" }
253+
#move-core-types={ git = "https://github.com/lerencao/libra", branch="merge-main" }
254+
#move-coverage={ git = "https://github.com/lerencao/libra", branch="merge-main" }
255+
#move-ir-types={ git = "https://github.com/lerencao/libra", branch="merge-main" }
256+
#move-compiler={ git = "https://github.com/lerencao/libra", branch="merge-main" }
257+
#move-model={ git = "https://github.com/lerencao/libra", branch="merge-main" }
258+
#move-prover={ git = "https://github.com/lerencao/libra", branch="merge-main" }
259+
#move-prover-test-utils={ git = "https://github.com/lerencao/libra", branch="merge-main" }
260+
#move-stdlib={ git = "https://github.com/lerencao/libra", branch="merge-main" }
261+
#move-unit-test={ git = "https://github.com/lerencao/libra", branch="merge-main" }
262+
#move-vm-runtime={ git = "https://github.com/lerencao/libra", branch="merge-main" }
263+
#move-vm-types={ git = "https://github.com/lerencao/libra", branch="merge-main" }
264+
#short-hex-str={ git = "https://github.com/lerencao/libra", branch="merge-main" }
265+
#x = { git = "https://github.com/lerencao/libra", branch="merge-main" }
266+
#x-core={ git = "https://github.com/lerencao/libra", branch="merge-main" }
267+
#x-lint={ git = "https://github.com/lerencao/libra", branch="merge-main" }
268+
#move-resource-viewer={ git = "https://github.com/lerencao/libra", branch="merge-main" }
269+
#move-cli = { git = "https://github.com/lerencao/libra", branch="merge-main" }
270+
#move-package = { git = "https://github.com/lerencao/libra", branch="merge-main" }

abi/decoder/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ serde_bytes = "0.11"
1414
anyhow = "1.0.41"
1515
once_cell = "1.8.0"
1616
hex = "0.4.3"
17-
move-binary-format = {git = "https://github.com/starcoinorg/diem", rev="6b1533f22b3075cc15ff68db21b5b84e6baa2955" }
17+
move-binary-format = {git = "https://github.com/starcoinorg/diem", rev="bdb6f73f3a196f9f80ea8ae09a859c6a3579d702" }
1818
starcoin-resource-viewer = {path = "../../vm/resource-viewer"}
1919
starcoin-vm-types = { path = "../../vm/types" }
2020
starcoin-abi-types = {path = "../types"}
2121
starcoin-abi-resolver = {path = "../resolver"}
2222
bcs-ext = {path = "../../commons/bcs_ext"}
2323
bcs = "0.1"
24-
schemars = {git = "https://github.com/starcoinorg/schemars", rev="3f8ecc27f02b27d56c716de58d7880ae7816390c"}
24+
schemars = {git = "https://github.com/starcoinorg/schemars", rev="fa9abf1ea670677f0d628112c83d08937c743bad"}

abi/resolver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ starcoin-vm-types = {path = "../../vm/types"}
1111
starcoin-abi-types = {path = "../types"}
1212
anyhow="~1"
1313
starcoin-resource-viewer = {path = "../../vm/resource-viewer"}
14-
move-model = { git = "https://github.com/starcoinorg/diem", rev="6b1533f22b3075cc15ff68db21b5b84e6baa2955" }
14+
move-model = { git = "https://github.com/starcoinorg/diem", rev="bdb6f73f3a196f9f80ea8ae09a859c6a3579d702" }
1515
[dev-dependencies]
1616
stdlib = {path = "../../vm/stdlib"}
1717
serde_json = "1"

abi/types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ serde="~1"
1414
serde_bytes = "0.11"
1515
serde_json = "~1"
1616
hex = "0.4"
17-
schemars = {git = "https://github.com/starcoinorg/schemars", rev="3f8ecc27f02b27d56c716de58d7880ae7816390c"}
17+
schemars = {git = "https://github.com/starcoinorg/schemars", rev="fa9abf1ea670677f0d628112c83d08937c743bad"}

account/api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rand = "0.8.4"
2121
rand_core = { version = "0.6.3", default-features = false }
2222
futures = "0.3.12"
2323
starcoin-service-registry = { path = "../../commons/service-registry" }
24-
schemars = {git = "https://github.com/starcoinorg/schemars", rev="3f8ecc27f02b27d56c716de58d7880ae7816390c"}
24+
schemars = {git = "https://github.com/starcoinorg/schemars", rev="fa9abf1ea670677f0d628112c83d08937c743bad"}
2525

2626
[dev-dependencies]
2727

block-relayer/src/block_relayer.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ impl BlockRelayer {
219219
warn!("Block is failed block : {:?}", block_id);
220220
}
221221
} else {
222-
let peer = network
223-
.get_peer(peer_id.clone())
224-
.await?
225-
.ok_or_else(|| format_err!("CompatBlockMessage's peer {} is not connected"))?;
222+
let peer = network.get_peer(peer_id.clone()).await?.ok_or_else(|| {
223+
format_err!(
224+
"CompatBlockMessage's peer {} is not connected",
225+
peer_id.clone()
226+
)
227+
})?;
226228
let peer_selector = PeerSelector::new(vec![peer], PeerStrategy::default(), None);
227229
let rpc_client = VerifiedRpcClient::new(peer_selector, network);
228230
let _timer = metrics

chain/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ proptest-derive = { version = "0.3.0" }
4444
test-helper = { path = "../test-helper" }
4545
starcoin-chain-mock = { path = "./mock" }
4646
starcoin-types = { path = "../types", package = "starcoin-types", features = ["fuzzing"]}
47-
starcoin-functional-tests = { path = "../vm/functional-tests"}
4847
starcoin-resource-viewer = {path = "../vm/resource-viewer"}
4948
starcoin-transaction-builder = { path = "../vm/transaction-builder"}
5049

cmd/airdrop/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ starcoin-vm-types = {path = "../../vm/types"}
1515
bcs-ext = {path = "../../commons/bcs_ext"}
1616
anyhow = "~1"
1717
async-trait = "~0.1"
18-
clap = "3.0.0-beta.2"
18+
clap = { version = "3.0.0-rc.7", features=["derive"] }
1919
elasticsearch = "7.10.0-alpha.1"
2020
serde = "1.0.130"
2121
serde_json = "~1"

cmd/airdrop/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::Result;
22
use bcs_ext::BCSCodec;
3-
use clap::Clap;
3+
use clap::Parser;
44
use jsonrpc_core_client::{RpcChannel, RpcError};
55
use serde::Deserialize;
66
use starcoin_crypto::{HashValue, ValidCryptoMaterialStringExt};
@@ -23,8 +23,7 @@ use starcoin_vm_types::value::MoveValue;
2323
use std::path::PathBuf;
2424
use std::str::FromStr;
2525
use std::time::Duration;
26-
27-
#[derive(Clap, Debug, Clone)]
26+
#[derive(Parser, Debug, Clone)]
2827
#[clap(version = "0.1.0", author = "Starcoin Core Dev <[email protected]>")]
2928
pub struct Options {
3029
#[clap(long, default_value = "http://localhost:9850")]

0 commit comments

Comments
 (0)