Skip to content

Commit 897a623

Browse files
Merge branch 'devnet-ready' into delegate_set_claim_type
2 parents 7b53c20 + ff7c531 commit 897a623

File tree

74 files changed

+4204
-3975
lines changed

Some content is hidden

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

74 files changed

+4204
-3975
lines changed

.github/workflows/evm-tests.yml renamed to .github/workflows/contract-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: EVM E2E Tests
1+
name: Contract E2E Tests
22

33
on:
44
pull_request:
@@ -52,10 +52,10 @@ jobs:
5252
- name: Run tests
5353
uses: nick-fields/retry@v3
5454
with:
55-
timeout_minutes: 60
55+
timeout_minutes: 90
5656
max_attempts: 3
5757
retry_wait_seconds: 60
5858
command: |
5959
cd ${{ github.workspace }}
6060
npm install --global yarn
61-
./evm-tests/run-ci.sh
61+
./contract-tests/run-ci.sh
File renamed without changes.

evm-tests/README.md renamed to contract-tests/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# type-test
22

3-
The evm-tests folder includes all typescript code to test the basic EVM function
3+
The contract-tests folder includes all typescript code to test the basic EVM function
44
like token transfer, and all precompile contracts in Subtensor. It is
55
implemented in typescript, use both ethers and viem lib to interact with
66
contracts. The polkadot API is used to call extrinsic, get storage in Subtensor
77
. The developers can use it to verify the code change in precompile contracts.
88

9-
It is also included in the CI process, all test cases are executed for new
9+
The Ink contract tests also are included in the contract-tests folder.
10+
There is an Ink project in the bittensor folder, which include all functions defined
11+
in the runtime extension. The test file for it is wasm.contract.test.ts.
12+
13+
The whole test process is also included in the CI, all test cases are executed for new
1014
commit. CI flow can get catch any failed test cases. The polkadot API get the
1115
latest metadata from the runtime, the case also can find out any incompatibility
1216
between runtime and precompile contracts.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore build artifacts from the local tests sub-crate.
2+
/target/
3+
4+
# Ignore backup files creates by cargo fmt.
5+
**/*.rs.bk
6+
7+
# Remove Cargo.lock when creating an executable, leave it for libraries
8+
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
9+
Cargo.lock
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[workspace]
2+
3+
[package]
4+
name = "bittensor"
5+
version = "0.1.0"
6+
authors = ["[your_name] <[your_email]>"]
7+
edition = "2021"
8+
9+
[dependencies]
10+
ink = { version = "5.1.1", default-features = false }
11+
parity-scale-codec = { version = "3.0.0", default-features = false }
12+
serde = { version = "1.0.228", default-features = false }
13+
subtensor-runtime-common = { path = "../../common", default-features = false }
14+
[dev-dependencies]
15+
ink_e2e = { version = "5.1.1" }
16+
17+
[lib]
18+
path = "lib.rs"
19+
20+
[features]
21+
default = ["std"]
22+
std = [
23+
"ink/std",
24+
"parity-scale-codec/std",
25+
"serde/std",
26+
"subtensor-runtime-common/std",
27+
]
28+
29+
ink-as-dependency = []
30+
e2e-tests = []

0 commit comments

Comments
 (0)