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

Example: How to connect to parachain #1043

Merged
merged 36 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
db045c5
parachain rpc lists
tadeohepperle Jun 23, 2023
a996f42
guide almost done
tadeohepperle Jun 29, 2023
05aae73
add the 3rd config
tadeohepperle Jun 29, 2023
e8dea98
subscribe to block with configs
tadeohepperle Jun 30, 2023
4466f81
delete table file
tadeohepperle Jun 30, 2023
2c5918c
spaces instead of tabs
tadeohepperle Jun 30, 2023
0b23e25
remove original ajuna example
tadeohepperle Jun 30, 2023
d6d0c79
zombienet setup
tadeohepperle Jul 5, 2023
4a632f1
nft minting example
tadeohepperle Jul 6, 2023
cc91900
include port, use different names
tadeohepperle Jul 10, 2023
aedea79
link the example from the book
tadeohepperle Jul 10, 2023
72c4d7b
format book
tadeohepperle Jul 10, 2023
1ffe485
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 10, 2023
7b59045
add config creation to book, simplify example structure
tadeohepperle Jul 11, 2023
874a55c
fix the nft creation script
tadeohepperle Jul 11, 2023
d2ab721
fix doc ref
tadeohepperle Jul 11, 2023
75296e1
fixing links to foreign crates
tadeohepperle Jul 11, 2023
d600e49
fix table formatting
tadeohepperle Jul 11, 2023
33e29f2
include nits
tadeohepperle Jul 17, 2023
c789dda
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 17, 2023
54e43a1
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 18, 2023
3ec6c41
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
jsdw Jul 18, 2023
a9901a5
move more docs to book, and simplify parachain-example
jsdw Jul 18, 2023
887e83d
another pass over docs and link to exampels from guide
jsdw Jul 19, 2023
9b8d88a
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
jsdw Jul 19, 2023
eab6032
nit: adjust comment to numbers
tadeohepperle Jul 19, 2023
8c177ae
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 19, 2023
375cdc9
teeny README fix for parachain-example
jsdw Jul 19, 2023
67d412f
fix command in readme
jsdw Jul 19, 2023
77eeda6
add CI for examples and fix parachain-example bug I left in
jsdw Jul 19, 2023
7bf5301
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 20, 2023
9239b0f
add target arch
tadeohepperle Jul 20, 2023
3a42e65
cargo fmt
tadeohepperle Jul 20, 2023
750002d
make CI not fail
tadeohepperle Jul 20, 2023
3e702a9
Merge branch 'master' into tadeo-hepperle-connect-to-parachain-example
tadeohepperle Jul 20, 2023
0d0368e
remove index from docs
tadeohepperle Jul 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
WASM_BINDGEN_TEST_TIMEOUT: 60

jobs:
build:
check:
name: Cargo check
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -83,6 +83,34 @@ jobs:
- name: Cargo hack; check each feature/crate on its own
run: cargo hack --exclude subxt --exclude subxt-signer --exclude subxt-lightclient --exclude-all-features --each-feature check --workspace

# Check examples, which aren't a part of the workspace and so are otherwise missed:
- name: Cargo check examples
run: |
cargo check --manifest-path examples/parachain-example/Cargo.toml

wasm_check:
name: Cargo check (WASM)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1

# Check WASM examples, which aren't a part of the workspace and so are otherwise missed:
- name: Cargo check WASM examples
run: |
cargo check --manifest-path examples/wasm-example/Cargo.toml --target wasm32-unknown-unknown
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think this should already be the case since target: wasm32-unknown-unknown means that it's the only target that will be installed, but nothing wrong with having some extra reassurance (I've done similar!)


fmt:
name: Cargo fmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -141,7 +169,7 @@ jobs:
command: test
args: --doc

nonwasm_tests:
tests:
name: "Test non-wasm"
runs-on: ubuntu-latest-16-cores
steps:
Expand Down Expand Up @@ -175,7 +203,7 @@ jobs:
command: nextest
args: run --workspace

nonwasm_light_client_tests:
light_client_tests:
name: "Test Light Client"
runs-on: ubuntu-latest-16-cores
timeout-minutes: 25
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
cargo-timing*
/examples/wasm-example/dist
/examples/wasm-example/target
/examples/parachain-example/target
/examples/parachain-example/metadata/target
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ exclude = [
"testing/wasm-rpc-tests",
"testing/wasm-lightclient-tests",
"signer/wasm-tests",
"examples/wasm-example"
"examples/wasm-example",
"examples/parachain-example"
]
resolver = "2"

Expand Down
Loading