From 9c030e938b226d7599df6a13c607d99e68e096ab Mon Sep 17 00:00:00 2001 From: Irsal Alsanea Date: Thu, 28 Oct 2021 10:26:13 -0700 Subject: [PATCH 1/4] Remove old template files & add cargo test --- .github/workflows/build-push-template.yml | 19 ------------------- .github/workflows/check.yml | 6 +++++- 2 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/build-push-template.yml diff --git a/.github/workflows/build-push-template.yml b/.github/workflows/build-push-template.yml deleted file mode 100644 index be8bf9218..000000000 --- a/.github/workflows/build-push-template.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Build and Push template - -on: - push: - branches: - - master - -jobs: - build-push-template: - if: ${{ github.repository == 'substrate-developer-hub/substrate-node-template' }} - runs-on: ubuntu-18.04 - steps: - - name: Trigger playground inclusion - uses: peter-evans/repository-dispatch@v1 - with: - token: ${{ secrets.REPO_ACCESS_TOKEN }} - repository: paritytech/substrate-playground - event-type: template-updated - client-payload: '{"id": "node-template"}' diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 33c494c21..0d2cebf84 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Check Set-Up & Build +name: Check Set-Up, Build & Test # Controls when the action will run. on: @@ -37,3 +37,7 @@ jobs: - name: Check Build run: | SKIP_WASM_BUILD=1 cargo check --release + + - name: Check Test + run: | + SKIP_WASM_BUILD=1 cargo test From cb29cae68f9229d3db4d3e7376aabfed2519db4b Mon Sep 17 00:00:00 2001 From: Irsal Alsanea Date: Thu, 28 Oct 2021 11:40:44 -0700 Subject: [PATCH 2/4] Cleaned up README and GH workflow actions --- .github/workflows/check.yml | 29 +++++++++++++++++++++++++++-- README.md | 29 ++++++++++++++--------------- 2 files changed, 41 insertions(+), 17 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0d2cebf84..1eaf75e75 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Check Set-Up, Build & Test +name: Check Set-Up, Build, Test # Controls when the action will run. on: @@ -13,7 +13,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - check: + check-build: # The type of runner that the job will run on runs-on: ubuntu-20.04 @@ -41,3 +41,28 @@ jobs: - name: Check Test run: | SKIP_WASM_BUILD=1 cargo test + + - name: Spin up OAK-blockchain + run: | + ./target/release/oak --dev --tmp --ws-external -ldsync=debug + run-tests: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: Set-Up + run: sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl + + - name: Install Rustup + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + source ~/.cargo/env + rustup default stable + rustup update nightly + rustup update stable + rustup target add wasm32-unknown-unknown --toolchain nightly + + - name: Run Cargo Tests + run: | + SKIP_WASM_BUILD=1 cargo test diff --git a/README.md b/README.md index 8c5d19a7c..dbc40abda 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,22 @@ Documentation ---------- * [Website](https://oak.tech/) -* [Documentation]() +* [Documentation](https://docs.oak.tech/) Community --------- * General discussion: [Telegram (Coming Soon)]() -* Technical discussion: [Discord (Coming Soon)]() -* Subscribe on [OAK Twitter](https://twitter.com/OAKSubstrate) +* Technical discussion: [Discord](https://discord.gg/7W9UDvsbwh) +* Subscribe on [OAK Twitter](https://twitter.com/oak_network) * Subscribe on [Founder's Twitter](https://twitter.com/chrisli2046) Table of Contents ----------------- -* [Introduction]() -* [Install OAK]() -* [OAK Validator Program]() +* [Introduction](https://github.com/OAK-Foundation/OAK-blockchain#introduction) +* [Install OAK](https://github.com/OAK-Foundation/OAK-blockchain#install-oak-blockchain) +* [OAK Validator Program](https://github.com/OAK-Foundation/OAK-blockchain/blob/master/docs/validator-setup.md) Introduction ============ @@ -28,17 +28,15 @@ Introduction **OAK, or Onchain Automation Framework, is equipped with a novel smart contract virtual machine that supports an event-driven execution model, enabling developers to build fully autonomous decentralized application. **By extending the current set of atomic operations, namely, opcodes of EVM, OAK introduces an innovative way for contracts to interact with each other. Contracts can emit signal events, on which other contracts can listen. Once an event is triggered, corresponding handler functions are automatically executed as a new type of transaction, signal transaction. Applications implemented with the new approach will eliminate the dependency of unreliable mechanisms like off-chain relay servers, and in return, to significantly simplify the execution flow of the application and can avoid security risks such as relay manipulation attacks. Based on the above, OAK has some features. -- **[OAK Virtual Machine]()** -- **[Autonomous Transactions]()** -- **[Onchain Relayer]()** -- **[Validator Staking]()** - -Once Polkadot is launched, we will connect our root chain to Polkadot, and we aim to be one of the parachains. +- **OAK Virtual Machine** +- **Autonomous Transactions** +- **On-chain Relayer** +- **Validator Staking** Install OAK Blockchain ============= -* OAK releases [releases](). +* OAK releases [releases](https://github.com/OAK-Foundation/OAK-blockchain/releases). * Node [custom types](). > Latest version you can try to build from source. @@ -75,7 +73,7 @@ Run node on [Dusty Network](https://telemetry.polkadot.io/#list/Dusty): Or run on your local development network: - oak --dev + ./target/release/oak --dev --tmp Building with Nix ----------------- @@ -97,7 +95,7 @@ Here are the key milestones. 1. Become a Kusama Parachain (TBA) 1. Become a Polkadot Parachain. (TBA) -If you have any questions, please ask us on [Discord]() +If you have any questions, please ask us on [Discord](https://discord.gg/7W9UDvsbwh) Contacts -------- @@ -105,6 +103,7 @@ Contacts **Maintainers** * [Chris Li](https://github.com/chrisli30) +* [Irsal McGinnis](https://github.com/irsal) * [Xingyou Chen](https://github.com/imstar15) * [Zhongwei Shi](https://github.com/amazingbeerbelly) From 2e3cc8cad6afb1bf18cb79e2058bf5546a007a93 Mon Sep 17 00:00:00 2001 From: Irsal Alsanea Date: Thu, 28 Oct 2021 11:42:48 -0700 Subject: [PATCH 3/4] remove redundant check --- .github/workflows/check.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1eaf75e75..9eb3c38d6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -37,14 +37,7 @@ jobs: - name: Check Build run: | SKIP_WASM_BUILD=1 cargo check --release - - - name: Check Test - run: | - SKIP_WASM_BUILD=1 cargo test - - - name: Spin up OAK-blockchain - run: | - ./target/release/oak --dev --tmp --ws-external -ldsync=debug + run-tests: runs-on: ubuntu-20.04 From 48e8862cf99beacf43c464c49bb3050c2338c47d Mon Sep 17 00:00:00 2001 From: Irsal Alsanea Date: Thu, 28 Oct 2021 12:07:01 -0700 Subject: [PATCH 4/4] remove content from README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbc40abda..95e452f87 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Table of Contents Introduction ============ -**OAK, or Onchain Automation Framework, is equipped with a novel smart contract virtual machine that supports an event-driven execution model, enabling developers to build fully autonomous decentralized application. **By extending the current set of atomic operations, namely, opcodes of EVM, OAK introduces an innovative way for contracts to interact with each other. Contracts can emit signal events, on which other contracts can listen. Once an event is triggered, corresponding handler functions are automatically executed as a new type of transaction, signal transaction. Applications implemented with the new approach will eliminate the dependency of unreliable mechanisms like off-chain relay servers, and in return, to significantly simplify the execution flow of the application and can avoid security risks such as relay manipulation attacks. +**OAK, or Onchain Automation Framework, is equipped with a novel smart contract virtual machine that supports an event-driven execution model, enabling developers to build fully autonomous decentralized application.** By extending the current set of atomic operations, namely, opcodes of EVM, OAK introduces an innovative way for contracts to interact with each other. Contracts can emit signal events, on which other contracts can listen. Once an event is triggered, corresponding handler functions are automatically executed as a new type of transaction, signal transaction. Applications implemented with the new approach will eliminate the dependency of unreliable mechanisms like off-chain relay servers, and in return, to significantly simplify the execution flow of the application and can avoid security risks such as relay manipulation attacks. Based on the above, OAK has some features. - **OAK Virtual Machine** @@ -104,8 +104,7 @@ Contacts * [Chris Li](https://github.com/chrisli30) * [Irsal McGinnis](https://github.com/irsal) -* [Xingyou Chen](https://github.com/imstar15) -* [Zhongwei Shi](https://github.com/amazingbeerbelly) +* [Charles Chen](https://github.com/imstar15) * * *