diff --git a/Cargo.lock b/Cargo.lock index 305926dac3..9251d3fb1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -978,7 +978,7 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytecode-interpreter-crypto" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "curve25519-dalek-fiat", @@ -5020,7 +5020,7 @@ checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" [[package]] name = "move-abigen" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5037,7 +5037,7 @@ dependencies = [ [[package]] name = "move-binary-format" version = "0.0.3" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "arbitrary", @@ -5053,12 +5053,12 @@ dependencies = [ [[package]] name = "move-borrow-graph" version = "0.0.1" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" [[package]] name = "move-bytecode-source-map" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5073,7 +5073,7 @@ dependencies = [ [[package]] name = "move-bytecode-utils" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-binary-format", @@ -5085,7 +5085,7 @@ dependencies = [ [[package]] name = "move-bytecode-verifier" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "fail", @@ -5098,7 +5098,7 @@ dependencies = [ [[package]] name = "move-bytecode-viewer" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "clap 3.2.23", @@ -5115,7 +5115,7 @@ dependencies = [ [[package]] name = "move-cli" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5161,7 +5161,7 @@ dependencies = [ [[package]] name = "move-command-line-common" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "difference", @@ -5178,7 +5178,7 @@ dependencies = [ [[package]] name = "move-compiler" version = "0.0.1" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5207,7 +5207,7 @@ dependencies = [ [[package]] name = "move-core-types" version = "0.0.4" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "arbitrary", @@ -5231,7 +5231,7 @@ dependencies = [ [[package]] name = "move-coverage" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5268,7 +5268,7 @@ dependencies = [ [[package]] name = "move-disassembler" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "clap 3.2.23", @@ -5286,7 +5286,7 @@ dependencies = [ [[package]] name = "move-docgen" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "codespan 0.11.1", @@ -5304,7 +5304,7 @@ dependencies = [ [[package]] name = "move-errmapgen" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5318,7 +5318,7 @@ dependencies = [ [[package]] name = "move-ir-compiler" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5337,7 +5337,7 @@ dependencies = [ [[package]] name = "move-ir-to-bytecode" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "codespan-reporting", @@ -5356,7 +5356,7 @@ dependencies = [ [[package]] name = "move-ir-to-bytecode-syntax" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "hex", @@ -5369,7 +5369,7 @@ dependencies = [ [[package]] name = "move-ir-types" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "hex", @@ -5383,7 +5383,7 @@ dependencies = [ [[package]] name = "move-model" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "codespan 0.11.1", @@ -5409,7 +5409,7 @@ dependencies = [ [[package]] name = "move-package" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5493,7 +5493,7 @@ dependencies = [ [[package]] name = "move-prover" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "async-trait", @@ -5530,7 +5530,7 @@ dependencies = [ [[package]] name = "move-prover-boogie-backend" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "async-trait", @@ -5558,7 +5558,7 @@ dependencies = [ [[package]] name = "move-prover-test-utils" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-command-line-common", @@ -5569,7 +5569,7 @@ dependencies = [ [[package]] name = "move-read-write-set-types" version = "0.0.3" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-binary-format", @@ -5580,7 +5580,7 @@ dependencies = [ [[package]] name = "move-resource-viewer" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5595,7 +5595,7 @@ dependencies = [ [[package]] name = "move-stackless-bytecode" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "codespan 0.11.1", "codespan-reporting", @@ -5622,7 +5622,7 @@ dependencies = [ [[package]] name = "move-stackless-bytecode-interpreter" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bytecode-interpreter-crypto", @@ -5640,7 +5640,7 @@ dependencies = [ [[package]] name = "move-stdlib" version = "0.1.1" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "hex", @@ -5663,7 +5663,7 @@ dependencies = [ [[package]] name = "move-symbol-pool" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "once_cell", "serde 1.0.152", @@ -5672,7 +5672,7 @@ dependencies = [ [[package]] name = "move-table-extension" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "bcs", @@ -5689,7 +5689,7 @@ dependencies = [ [[package]] name = "move-transactional-test-runner" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "clap 3.2.23", @@ -5724,7 +5724,7 @@ dependencies = [ [[package]] name = "move-unit-test" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "better_any", @@ -5755,7 +5755,7 @@ dependencies = [ [[package]] name = "move-vm-runtime" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "better_any", "fail", @@ -5772,7 +5772,7 @@ dependencies = [ [[package]] name = "move-vm-test-utils" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-binary-format", @@ -5786,7 +5786,7 @@ dependencies = [ [[package]] name = "move-vm-types" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "bcs", "move-binary-format", @@ -7816,7 +7816,7 @@ dependencies = [ [[package]] name = "read-write-set" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-binary-format", @@ -7831,7 +7831,7 @@ dependencies = [ [[package]] name = "read-write-set-dynamic" version = "0.1.0" -source = "git+https://github.com/starcoinorg/move?rev=823912c39b4b58fe1ee3f24af81dbf56849ff82a#823912c39b4b58fe1ee3f24af81dbf56849ff82a" +source = "git+https://github.com/starcoinorg/move?rev=7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc#7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" dependencies = [ "anyhow", "move-binary-format", @@ -9706,7 +9706,7 @@ dependencies = [ [[package]] name = "starcoin-framework" version = "11.0.0" -source = "git+https://github.com/starcoinorg/starcoin-framework?rev=1df759371941ab59cb2295542f7eafa85c4ef6fe#1df759371941ab59cb2295542f7eafa85c4ef6fe" +source = "git+https://github.com/starcoinorg/starcoin-framework?rev=3e879a168036dceaa60c57c8e2b9228283476f81#3e879a168036dceaa60c57c8e2b9228283476f81" dependencies = [ "anyhow", "include_dir", diff --git a/Cargo.toml b/Cargo.toml index dabb326153..f2e7051406 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -335,31 +335,31 @@ log4rs = { version = "1.2.0", features = ["background_rotation", "gzip"] } lru = "0.7.8" merkletree = { version = "0.22.1" } mirai-annotations = "1.10.1" -move-binary-format = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-bytecode-source-map = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-bytecode-verifier = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-cli = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-command-line-common = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-compiler = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-core-types = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-coverage = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-disassembler = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-docgen = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-errmapgen = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-ir-compiler = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-ir-types = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-model = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-package = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-prover = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-prover-test-utils = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-resource-viewer = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-stdlib = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-transactional-test-runner = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-unit-test = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a", features = ["table-extension"] } -move-vm-runtime = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-vm-types = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-table-extension = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a" } -move-vm-test-utils = { git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a", features = ["table-extension"] } +move-binary-format = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-bytecode-source-map = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-bytecode-verifier = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-cli = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-command-line-common = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-compiler = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-core-types = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-coverage = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-disassembler = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-docgen = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-errmapgen = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-ir-compiler = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-ir-types = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-model = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-package = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-prover = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-prover-test-utils = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-resource-viewer = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-stdlib = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-transactional-test-runner = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-unit-test = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc", features = ["table-extension"] } +move-vm-runtime = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-vm-types = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-table-extension = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc" } +move-vm-test-utils = { git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc", features = ["table-extension"] } names = { version = "0.14.0", default-features = false } network-api = { path = "network/api", package = "network-api" } @@ -444,7 +444,7 @@ starcoin-crypto = { git = "https://github.com/starcoinorg/starcoin-crypto", rev starcoin-decrypt = { path = "commons/decrypt" } starcoin-dev = { path = "vm/dev" } starcoin-executor = { path = "executor" } -starcoin-framework = { git = "https://github.com/starcoinorg/starcoin-framework", rev = "1df759371941ab59cb2295542f7eafa85c4ef6fe" } +starcoin-framework = { git = "https://github.com/starcoinorg/starcoin-framework", rev = "3e879a168036dceaa60c57c8e2b9228283476f81" } starcoin-genesis = { path = "genesis" } starcoin-logger = { path = "commons/logger" } starcoin-metrics = { path = "commons/metrics" } @@ -525,7 +525,7 @@ unsigned-varint = { version = "0.6.0", features = [ "futures", "asynchronous_codec", ] } -vm = { package = "move-binary-format", git = "https://github.com/starcoinorg/move", rev = "823912c39b4b58fe1ee3f24af81dbf56849ff82a", features = [ +vm = { package = "move-binary-format", git = "https://github.com/starcoinorg/move", rev = "7b6ac7bb04515ee4ced5b1c1cdafb6ea6cb4eadc", features = [ "fuzzing", ] } vm-status-translator = { path = "vm/vm-status-translator" } diff --git a/scripts/build_stdlib.sh b/scripts/build_stdlib.sh new file mode 100755 index 0000000000..c7fa5b4976 --- /dev/null +++ b/scripts/build_stdlib.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +SOURCE_VERSION=$1 +TARGET_VERSION=$2 + +if [ $# -lt 2 ]; then + echo "Usage: $0 SOURCE_VERSION TARGET_VERSION [ARGS...]" + exit 1 +fi + +SOURCE_VERSION=$1 +TARGET_VERSION=$2 + +# check SOURCE_VERSION and TARGET_VERSION has defined +if [ -z "$SOURCE_VERSION" ] || [ -z "$TARGET_VERSION" ]; then + echo "SOURCE_VERSION and TARGET_VERSION must be specified." + exit 1 +fi + +# Check SOURCE_VERSION and TARGET_VERSION is number +if ! [[ "$SOURCE_VERSION" =~ ^[0-9]+$ ]] || ! [[ "$TARGET_VERSION" =~ ^[0-9]+$ ]]; then + echo "SOURCE_VERSION and TARGET_VERSION must be integers." + exit 1 +fi + +cargo run --bin stdlib + +cmd="cargo run --bin stdlib -- -v ${TARGET_VERSION} -m StdlibUpgradeScripts -f upgrade_from_v${SOURCE_VERSION}_to_v${TARGET_VERSION}" + +args=("${@:3}") + +for arg in "${args[@]}"; do + cmd+=" --arg ${arg}" +done + +eval $cmd \ No newline at end of file diff --git a/vm/stdlib/compiled/12/11-12/stdlib.blob b/vm/stdlib/compiled/12/11-12/stdlib.blob index 3b94cae1b1..afcfdca18b 100644 Binary files a/vm/stdlib/compiled/12/11-12/stdlib.blob and b/vm/stdlib/compiled/12/11-12/stdlib.blob differ diff --git a/vm/stdlib/compiled/12/11-12/stdlib/064_StdlibUpgradeScripts.mv b/vm/stdlib/compiled/12/11-12/stdlib/064_StdlibUpgradeScripts.mv index 3e9fcaba3b..3b340b742e 100644 Binary files a/vm/stdlib/compiled/12/11-12/stdlib/064_StdlibUpgradeScripts.mv and b/vm/stdlib/compiled/12/11-12/stdlib/064_StdlibUpgradeScripts.mv differ diff --git a/vm/stdlib/compiled/12/11-12/stdlib/078_TransactionManager.mv b/vm/stdlib/compiled/12/11-12/stdlib/078_TransactionManager.mv index 2fa33f2603..c96829fdc4 100644 Binary files a/vm/stdlib/compiled/12/11-12/stdlib/078_TransactionManager.mv and b/vm/stdlib/compiled/12/11-12/stdlib/078_TransactionManager.mv differ diff --git a/vm/stdlib/compiled/12/stdlib/064_StdlibUpgradeScripts.mv b/vm/stdlib/compiled/12/stdlib/064_StdlibUpgradeScripts.mv index 3e9fcaba3b..3b340b742e 100644 Binary files a/vm/stdlib/compiled/12/stdlib/064_StdlibUpgradeScripts.mv and b/vm/stdlib/compiled/12/stdlib/064_StdlibUpgradeScripts.mv differ diff --git a/vm/stdlib/compiled/12/stdlib/078_TransactionManager.mv b/vm/stdlib/compiled/12/stdlib/078_TransactionManager.mv index 2fa33f2603..c96829fdc4 100644 Binary files a/vm/stdlib/compiled/12/stdlib/078_TransactionManager.mv and b/vm/stdlib/compiled/12/stdlib/078_TransactionManager.mv differ diff --git a/vm/stdlib/compiled/latest/error_descriptions/error_descriptions.errmap b/vm/stdlib/compiled/latest/error_descriptions/error_descriptions.errmap index a3f23c9a73..687ca02f73 100644 Binary files a/vm/stdlib/compiled/latest/error_descriptions/error_descriptions.errmap and b/vm/stdlib/compiled/latest/error_descriptions/error_descriptions.errmap differ diff --git a/vm/stdlib/compiled/latest/stdlib/064_StdlibUpgradeScripts.mv b/vm/stdlib/compiled/latest/stdlib/064_StdlibUpgradeScripts.mv index 3e9fcaba3b..3b340b742e 100644 Binary files a/vm/stdlib/compiled/latest/stdlib/064_StdlibUpgradeScripts.mv and b/vm/stdlib/compiled/latest/stdlib/064_StdlibUpgradeScripts.mv differ diff --git a/vm/stdlib/compiled/latest/stdlib/078_TransactionManager.mv b/vm/stdlib/compiled/latest/stdlib/078_TransactionManager.mv index 2fa33f2603..c96829fdc4 100644 Binary files a/vm/stdlib/compiled/latest/stdlib/078_TransactionManager.mv and b/vm/stdlib/compiled/latest/stdlib/078_TransactionManager.mv differ diff --git a/vm/vm-runtime/src/errors.rs b/vm/vm-runtime/src/errors.rs index 71d6b2ea89..44273062db 100644 --- a/vm/vm-runtime/src/errors.rs +++ b/vm/vm-runtime/src/errors.rs @@ -17,6 +17,8 @@ const PROLOGUE_BAD_CHAIN_ID: u64 = 6; const PROLOGUE_MODULE_NOT_ALLOWED: u64 = 7; const PROLOGUE_SCRIPT_NOT_ALLOWED: u64 = 8; const PROLOGUE_SEQUENCE_NUMBER_TOO_BIG: u64 = 9; +const EPROLOGUE_SENDING_ACCOUNT_FROZEN: u64 = 10; +const EPROLOGUE_SENDING_TXN_GLOBAL_FROZEN: u64 = 11; const EPROLOGUE_SIGNER_ALREADY_DELEGATED: u64 = 200; const EINSUFFICIENT_BALANCE: u64 = 10; @@ -86,6 +88,13 @@ pub fn convert_prologue_runtime_error(error: VMError) -> Result<(), VMStatus> { (INVALID_ARGUMENT, EBAD_TRANSACTION_FEE_TOKEN) => { StatusCode::BAD_TRANSACTION_FEE_CURRENCY } + (INVALID_ARGUMENT, EPROLOGUE_SENDING_ACCOUNT_FROZEN) => { + StatusCode::SENDING_ACCOUNT_FROZEN + } + (INVALID_ARGUMENT, EPROLOGUE_SENDING_TXN_GLOBAL_FROZEN) => { + StatusCode::SEND_TXN_GLOBAL_FROZEN + } + (category, reason) => { warn!( "prologue runtime unknown: category({}), reason:({}), location:({})",