From 14b41b0a4568f0072969ff0bb37b7a1dea185936 Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Sat, 5 Nov 2022 12:40:02 -0700 Subject: [PATCH 1/2] fuel-core v0.14 tai64 timestamp support (#676) ###### Description of changes Update fuels-rs to the latest fuel-core v0.14. This release was necessary to unblock the bridging team as fuel-core was incorrectly using datetime strings instead of tai64 when representing time. No breaking changes to the VM or forc like fuel-core v0.13, so this is a very lightweight update. --- .github/workflows/ci.yml | 2 +- packages/fuels-contract/Cargo.toml | 2 +- packages/fuels-signers/Cargo.toml | 4 ++-- packages/fuels-test-helpers/Cargo.toml | 8 ++++---- packages/fuels/Cargo.toml | 10 +++++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76f3681728..a22e42b5f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: CARGO_TERM_COLOR: always DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64 RUSTFLAGS: "-D warnings" - FUEL_CORE_VERSION: 0.13.2 + FUEL_CORE_VERSION: 0.14.0 RUST_VERSION: 1.64.0 FORC_VERSION: 0.30.0 diff --git a/packages/fuels-contract/Cargo.toml b/packages/fuels-contract/Cargo.toml index 724313a0e9..1c06c2d512 100644 --- a/packages/fuels-contract/Cargo.toml +++ b/packages/fuels-contract/Cargo.toml @@ -11,7 +11,7 @@ description = "Fuel Rust SDK contracts." [dependencies] anyhow = "1" bytes = { version = "1.0.1", features = ["serde"] } -fuel-gql-client = { version = "0.13", default-features = false } +fuel-gql-client = { version = "0.14", default-features = false } fuel-tx = "0.23" fuels-core = { version = "0.29.0", path = "../fuels-core" } fuels-signers = { version = "0.29.0", path = "../fuels-signers" } diff --git a/packages/fuels-signers/Cargo.toml b/packages/fuels-signers/Cargo.toml index 7cce5767be..232abbdcf5 100644 --- a/packages/fuels-signers/Cargo.toml +++ b/packages/fuels-signers/Cargo.toml @@ -13,9 +13,9 @@ async-trait = { version = "0.1.50", default-features = false } bytes = { version = "1.1.0", features = ["serde"] } elliptic-curve = { version = "0.11.6", default-features = false } eth-keystore = { version = "0.3.0" } -fuel-core = { version = "0.13", default-features = false, optional = true } +fuel-core = { version = "0.14", default-features = false, optional = true } fuel-crypto = { version = "0.6", features = ["random"] } -fuel-gql-client = { version = "0.13", default-features = false } +fuel-gql-client = { version = "0.14", default-features = false } fuel-types = { version = "0.5", default-features = false, features = ["random"] } fuels-core = { version = "0.29.0", path = "../fuels-core" } fuels-types = { version = "0.29.0", path = "../fuels-types" } diff --git a/packages/fuels-test-helpers/Cargo.toml b/packages/fuels-test-helpers/Cargo.toml index f28584c6df..aa318a093c 100644 --- a/packages/fuels-test-helpers/Cargo.toml +++ b/packages/fuels-test-helpers/Cargo.toml @@ -10,10 +10,10 @@ description = "Fuel Rust SDK test helpers." [dependencies] anyhow = { version = "1.0.58" } -fuel-core = { version = "0.13", default-features = false, optional = true } -fuel-chain-config = { version = "0.13", default-features = false } -fuel-core-interfaces = { version = "0.13", default-features = false } -fuel-gql-client = { version = "0.13", default-features = false } +fuel-core = { version = "0.14", default-features = false, optional = true } +fuel-chain-config = { version = "0.14", default-features = false } +fuel-core-interfaces = { version = "0.14", default-features = false } +fuel-gql-client = { version = "0.14", default-features = false } fuel-types = { version = "0.5", default-features = false, features = ["random"] } fuels-contract = { version = "0.29.0", path = "../fuels-contract" } fuels-core = { version = "0.29.0", path = "../fuels-core" } diff --git a/packages/fuels/Cargo.toml b/packages/fuels/Cargo.toml index 6673d68cb9..6f3eef27b4 100644 --- a/packages/fuels/Cargo.toml +++ b/packages/fuels/Cargo.toml @@ -10,8 +10,8 @@ rust-version = "1.64.0" description = "Fuel Rust SDK." [dependencies] -fuel-core = { version = "0.13", default-features = false, optional = true } -fuel-gql-client = { version = "0.13", default-features = false } +fuel-core = { version = "0.14", default-features = false, optional = true } +fuel-gql-client = { version = "0.14", default-features = false } fuels-abigen-macro = { version = "0.29.0", path = "../fuels-abigen-macro" } fuels-contract = { version = "0.29.0", path = "../fuels-contract" } fuels-core = { version = "0.29.0", path = "../fuels-core" } @@ -22,9 +22,9 @@ fuels-types = { version = "0.29.0", path = "../fuels-types" } [dev-dependencies] anyhow = "1.0.58" ctor = " 0.1" -fuel-core = { version = "0.13", default-features = false } -fuel-core-interfaces = { version = "0.13", default-features = false } -fuel-gql-client = { version = "0.13", default-features = false } +fuel-core = { version = "0.14", default-features = false } +fuel-core-interfaces = { version = "0.14", default-features = false } +fuel-gql-client = { version = "0.14", default-features = false } hex = { version = "0.4.3", default-features = false } sha2 = "0.9.5" tokio = "1.15.0" From 54981368f00180ef1eec76bfd028a35acafa507e Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Sat, 5 Nov 2022 12:56:11 -0700 Subject: [PATCH 2/2] bump to v0.30.0 to release breaking fuel-core changes (#677) ###### Description of changes Make a breaking version bump of fuels-rs in support of upgrading to fuel-core v0.14 to unblock bridge testing. --- docs/src/providers/short-lived.md | 2 +- examples/contracts/Cargo.toml | 2 +- examples/cookbook/Cargo.toml | 2 +- examples/debugging/Cargo.toml | 2 +- examples/predicates/Cargo.toml | 2 +- examples/providers/Cargo.toml | 2 +- examples/rust_bindings/Cargo.toml | 4 ++-- examples/types/Cargo.toml | 2 +- examples/wallets/Cargo.toml | 2 +- packages/fuels-abigen-macro/Cargo.toml | 4 ++-- packages/fuels-contract/Cargo.toml | 8 ++++---- packages/fuels-core/Cargo.toml | 4 ++-- packages/fuels-signers/Cargo.toml | 6 +++--- packages/fuels-test-helpers/Cargo.toml | 10 +++++----- packages/fuels-types/Cargo.toml | 2 +- packages/fuels/Cargo.toml | 14 +++++++------- tools/fuels-abi-cli/Cargo.toml | 8 ++++---- 17 files changed, 38 insertions(+), 38 deletions(-) diff --git a/docs/src/providers/short-lived.md b/docs/src/providers/short-lived.md index 0e5e311af3..c02bf70902 100644 --- a/docs/src/providers/short-lived.md +++ b/docs/src/providers/short-lived.md @@ -27,5 +27,5 @@ let wallet = launch_provider_and_get_wallet().await; The `fuel-core-lib` is a feature defined in the `fuels` library, allowing us to run a `fuel-core` node without installing the `fuel-core` binary on the local machine. Using the `fuel-core-lib` feature flag entails downloading all the dependencies needed to run the fuel-core node. ```rust,ignore -fuels = { version = "0.29.0", features = ["fuel-core-lib"] } +fuels = { version = "0.30.0", features = ["fuel-core-lib"] } ``` diff --git a/examples/contracts/Cargo.toml b/examples/contracts/Cargo.toml index c11775ecc2..59ef7e8ed2 100644 --- a/examples/contracts/Cargo.toml +++ b/examples/contracts/Cargo.toml @@ -11,7 +11,7 @@ description = "Fuel Rust SDK contract examples." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/cookbook/Cargo.toml b/examples/cookbook/Cargo.toml index 7589578554..a920647caa 100644 --- a/examples/cookbook/Cargo.toml +++ b/examples/cookbook/Cargo.toml @@ -10,6 +10,6 @@ repository = "https://github.com/FuelLabs/fuels-rs" description = "Fuel Rust SDK cookbook examples." [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/debugging/Cargo.toml b/examples/debugging/Cargo.toml index 10f215d396..088d198772 100644 --- a/examples/debugging/Cargo.toml +++ b/examples/debugging/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/FuelLabs/fuels-rs" description = "Fuel Rust SDK debugging examples." [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8.5" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/predicates/Cargo.toml b/examples/predicates/Cargo.toml index 05c41a00ef..e1dd0d7d0a 100644 --- a/examples/predicates/Cargo.toml +++ b/examples/predicates/Cargo.toml @@ -10,6 +10,6 @@ repository = "https://github.com/FuelLabs/fuels-rs" description = "Fuel Rust SDK cookbook examples." [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/providers/Cargo.toml b/examples/providers/Cargo.toml index 45a44cbd06..80370abbf8 100644 --- a/examples/providers/Cargo.toml +++ b/examples/providers/Cargo.toml @@ -10,6 +10,6 @@ repository = "https://github.com/FuelLabs/fuels-rs" description = "Fuel Rust SDK provider examples." [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8.5" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/rust_bindings/Cargo.toml b/examples/rust_bindings/Cargo.toml index b0a0bc90bb..b9fe21d2fd 100644 --- a/examples/rust_bindings/Cargo.toml +++ b/examples/rust_bindings/Cargo.toml @@ -11,8 +11,8 @@ description = "Fuel Rust SDK examples for Rust-native bindings" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } -fuels-abigen-macro = { version = "0.29.0", path = "../../packages/fuels-abigen-macro" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } +fuels-abigen-macro = { version = "0.30.0", path = "../../packages/fuels-abigen-macro" } proc-macro2 = "1.0" rand = "0.8" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/types/Cargo.toml b/examples/types/Cargo.toml index 30a2cbf1ba..86c8cefcd2 100644 --- a/examples/types/Cargo.toml +++ b/examples/types/Cargo.toml @@ -11,6 +11,6 @@ description = "Fuel Rust SDK types examples." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8" tokio = { version = "1.10", features = ["full"] } diff --git a/examples/wallets/Cargo.toml b/examples/wallets/Cargo.toml index d6fdb5aae3..e5b76ddec3 100644 --- a/examples/wallets/Cargo.toml +++ b/examples/wallets/Cargo.toml @@ -10,6 +10,6 @@ repository = "https://github.com/FuelLabs/fuels-rs" description = "Fuel Rust SDK wallet examples." [dependencies] -fuels = { version = "0.29.0", path = "../../packages/fuels" } +fuels = { version = "0.30.0", path = "../../packages/fuels" } rand = "0.8.5" tokio = { version = "1.10", features = ["full"] } diff --git a/packages/fuels-abigen-macro/Cargo.toml b/packages/fuels-abigen-macro/Cargo.toml index a7507ffae7..308eb968d6 100644 --- a/packages/fuels-abigen-macro/Cargo.toml +++ b/packages/fuels-abigen-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-abigen-macro" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -13,7 +13,7 @@ proc-macro = true [dependencies] Inflector = "0.11" -fuels-core = { version = "0.29.0", path = "../fuels-core" } +fuels-core = { version = "0.30.0", path = "../fuels-core" } proc-macro2 = "1.0" quote = "1.0" rand = "0.8" diff --git a/packages/fuels-contract/Cargo.toml b/packages/fuels-contract/Cargo.toml index 1c06c2d512..4cb4c1254b 100644 --- a/packages/fuels-contract/Cargo.toml +++ b/packages/fuels-contract/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-contract" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -13,9 +13,9 @@ anyhow = "1" bytes = { version = "1.0.1", features = ["serde"] } fuel-gql-client = { version = "0.14", default-features = false } fuel-tx = "0.23" -fuels-core = { version = "0.29.0", path = "../fuels-core" } -fuels-signers = { version = "0.29.0", path = "../fuels-signers" } -fuels-types = { version = "0.29.0", path = "../fuels-types" } +fuels-core = { version = "0.30.0", path = "../fuels-core" } +fuels-signers = { version = "0.30.0", path = "../fuels-signers" } +fuels-types = { version = "0.30.0", path = "../fuels-types" } futures = "0.3.21" hex = { version = "0.4.3", default-features = false, features = ["std"] } itertools = "0.10.3" diff --git a/packages/fuels-core/Cargo.toml b/packages/fuels-core/Cargo.toml index 5e4b126bb4..3ef3bde7c5 100644 --- a/packages/fuels-core/Cargo.toml +++ b/packages/fuels-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-core" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -13,7 +13,7 @@ Inflector = "0.11" anyhow = "1" fuel-tx = "0.23" fuel-types = "0.5" -fuels-types = { version = "0.29.0", path = "../fuels-types" } +fuels-types = { version = "0.30.0", path = "../fuels-types" } hex = { version = "0.4.3", features = ["std"] } itertools = "0.10" proc-macro2 = "1.0" diff --git a/packages/fuels-signers/Cargo.toml b/packages/fuels-signers/Cargo.toml index 232abbdcf5..24ed2f6af2 100644 --- a/packages/fuels-signers/Cargo.toml +++ b/packages/fuels-signers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-signers" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -17,8 +17,8 @@ fuel-core = { version = "0.14", default-features = false, optional = true } fuel-crypto = { version = "0.6", features = ["random"] } fuel-gql-client = { version = "0.14", default-features = false } fuel-types = { version = "0.5", default-features = false, features = ["random"] } -fuels-core = { version = "0.29.0", path = "../fuels-core" } -fuels-types = { version = "0.29.0", path = "../fuels-types" } +fuels-core = { version = "0.30.0", path = "../fuels-core" } +fuels-types = { version = "0.30.0", path = "../fuels-types" } hex = { version = "0.4.3", default-features = false, features = ["std"] } rand = { version = "0.8.4", default-features = false } serde = { version = "1.0.124", default-features = true, features = ["derive"] } diff --git a/packages/fuels-test-helpers/Cargo.toml b/packages/fuels-test-helpers/Cargo.toml index aa318a093c..a7d41f7672 100644 --- a/packages/fuels-test-helpers/Cargo.toml +++ b/packages/fuels-test-helpers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-test-helpers" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -15,10 +15,10 @@ fuel-chain-config = { version = "0.14", default-features = false } fuel-core-interfaces = { version = "0.14", default-features = false } fuel-gql-client = { version = "0.14", default-features = false } fuel-types = { version = "0.5", default-features = false, features = ["random"] } -fuels-contract = { version = "0.29.0", path = "../fuels-contract" } -fuels-core = { version = "0.29.0", path = "../fuels-core" } -fuels-signers = { version = "0.29.0", path = "../fuels-signers", optional = true } -fuels-types = { version = "0.29.0", path = "../fuels-types" } +fuels-contract = { version = "0.30.0", path = "../fuels-contract" } +fuels-core = { version = "0.30.0", path = "../fuels-core" } +fuels-signers = { version = "0.30.0", path = "../fuels-signers", optional = true } +fuels-types = { version = "0.30.0", path = "../fuels-types" } hex = { version = "0.4.3", default-features = false, features = ["std", "serde"] } portpicker = { version = "0.1.1" } diff --git a/packages/fuels-types/Cargo.toml b/packages/fuels-types/Cargo.toml index c900b773f0..e267bb8c36 100644 --- a/packages/fuels-types/Cargo.toml +++ b/packages/fuels-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-types" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" diff --git a/packages/fuels/Cargo.toml b/packages/fuels/Cargo.toml index 6f3eef27b4..bda076766b 100644 --- a/packages/fuels/Cargo.toml +++ b/packages/fuels/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -12,12 +12,12 @@ description = "Fuel Rust SDK." [dependencies] fuel-core = { version = "0.14", default-features = false, optional = true } fuel-gql-client = { version = "0.14", default-features = false } -fuels-abigen-macro = { version = "0.29.0", path = "../fuels-abigen-macro" } -fuels-contract = { version = "0.29.0", path = "../fuels-contract" } -fuels-core = { version = "0.29.0", path = "../fuels-core" } -fuels-signers = { version = "0.29.0", path = "../fuels-signers" } -fuels-test-helpers = { version = "0.29.0", path = "../fuels-test-helpers" } -fuels-types = { version = "0.29.0", path = "../fuels-types" } +fuels-abigen-macro = { version = "0.30.0", path = "../fuels-abigen-macro" } +fuels-contract = { version = "0.30.0", path = "../fuels-contract" } +fuels-core = { version = "0.30.0", path = "../fuels-core" } +fuels-signers = { version = "0.30.0", path = "../fuels-signers" } +fuels-test-helpers = { version = "0.30.0", path = "../fuels-test-helpers" } +fuels-types = { version = "0.30.0", path = "../fuels-types" } [dev-dependencies] anyhow = "1.0.58" diff --git a/tools/fuels-abi-cli/Cargo.toml b/tools/fuels-abi-cli/Cargo.toml index c648486475..bf34931a55 100644 --- a/tools/fuels-abi-cli/Cargo.toml +++ b/tools/fuels-abi-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuels-abi-cli" -version = "0.29.0" +version = "0.30.0" authors = ["Fuel Labs "] edition = "2021" homepage = "https://fuel.network/" @@ -10,9 +10,9 @@ description = "Fuel Rust SDK CLI tool to parse ABI." [dependencies] anyhow = "1" -fuels-contract = { version = "0.29.0", path = "../../packages/fuels-contract" } -fuels-core = { version = "0.29.0", path = "../../packages/fuels-core" } -fuels-types = { version = "0.29.0", path = "../../packages/fuels-types" } +fuels-contract = { version = "0.30.0", path = "../../packages/fuels-contract" } +fuels-core = { version = "0.30.0", path = "../../packages/fuels-core" } +fuels-types = { version = "0.30.0", path = "../../packages/fuels-types" } hex = "0.4" itertools = "0.10" structopt = "0.3"