Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Beta 3 updates (#89)
Browse files Browse the repository at this point in the history
Includes updates to the quickstart, networks page, and a new page for
the beta-3 network
  • Loading branch information
sarahschwartz authored Mar 20, 2023
1 parent cc577e6 commit 21cf0ce
Show file tree
Hide file tree
Showing 42 changed files with 864 additions and 1,164 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://install.fuel.network/fuelup-init.sh | sh
- name: Modify Path
run: echo "$HOME/.fuelup/bin:${GITHUB_PATH}" >> $GITHUB_PATH
- name: Set Default Beta-2 Toolchain
run: fuelup toolchain install beta-2 && fuelup default beta-2
- name: Set Default Beta-3 Toolchain
run: fuelup toolchain install beta-3 && fuelup default beta-3
- name: Build Contract
run: forc build --path ./beta2-quickstart-master/counter-contract
run: forc build --path ./quickstart-example/counter-contract
- name: Run contract tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path ./beta2-quickstart-master/counter-contract/Cargo.toml
args: --manifest-path ./quickstart-example/counter-contract/Cargo.toml
- name: Check Cargo fmt & clippy
run: |
cd beta2-quickstart-master/counter-contract
cd quickstart-example/counter-contract
cargo fmt --all --check
cargo clippy --all-targets --all-features

This file was deleted.

6 changes: 0 additions & 6 deletions beta2-quickstart-master/frontend/src/contracts/index.ts

This file was deleted.

3 changes: 3 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ git-repository-url = "https://github.com/FuelLabs/fuel-docs"

[rust]
edition = "2021"

[output.html.redirect]
"/developer-quickstart.html" = "https://fuelbook.fuel.network/master/quickstart/developer-quickstart.html"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name = "counter-contract"
description = "A cargo-generate template for Rust + Sway integration testing."
version = "0.1.0"
edition = "2021"
authors = ["camiinthisthang"]
authors = ["sarahschwartz <[email protected]>"]
license = "Apache-2.0"

[dev-dependencies]
fuels = { version = "0.31" }
fuels = { version = "0.37", features = ["fuel-core-lib"] }
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[package]]
name = 'core'
source = 'path+from-root-E6BBD1A08F478960'
source = 'path+from-root-894BF76E6DA2FFD3'

[[package]]
name = 'counter-contract'
Expand All @@ -9,5 +9,5 @@ dependencies = ['std']

[[package]]
name = 'std'
source = 'git+https://github.com/fuellabs/sway?tag=v0.32.2#b9996f13463c324e256014935c053c334b880ab5'
source = 'git+https://github.com/fuellabs/sway?tag=v0.35.3#5d2b10bd83791d2eaff04206dbd45bfdd9cf23ff'
dependencies = ['core']
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use fuels::{prelude::*, tx::ContractId};

// Load abi from json
abigen!(MyContract, "out/debug/counter-contract-abi.json");
abigen!(Contract(
name = "MyContract",
abi = "out/debug/counter-contract-abi.json"
));

async fn get_contract_instance() -> (MyContract, ContractId) {
// Launch a local network and deploy the contract
Expand Down
Loading

0 comments on commit 21cf0ce

Please sign in to comment.