diff --git a/.github/eosjs-ci/Dockerfile b/.github/eosjs-ci/Dockerfile index f26af56d7..277738a80 100644 --- a/.github/eosjs-ci/Dockerfile +++ b/.github/eosjs-ci/Dockerfile @@ -14,11 +14,11 @@ RUN git clone https://github.com/EOSIO/eos \ && cd eos \ && git checkout develop -RUN git clone https://github.com/EOSIO/eosio.contracts \ - && cd eosio.contracts \ +RUN git clone https://github.com/EOSIO/eosio.cdt \ + && cd eosio.cdt \ && git checkout develop \ - && mkdir build && cd build && mkdir eosio.token && cd .. \ - && eosio-cpp -abigen ./contracts/eosio.token/src/eosio.token.cpp -o ./build/eosio.token/eosio.token.wasm -R ./contracts/eosio.token/ricardian/ -I ./contracts/eosio.token/include/ + && mkdir build && cd build && mkdir read_only_query_tests && cd .. \ + && eosio-cpp -abigen ./tests/unit/test_contracts/read_only_query_tests.cpp -o ./build/read_only_query_tests/read_only_query_tests.wasm RUN git clone https://github.com/EOSIO/key-value-example-app.git \ && cd key-value-example-app \ @@ -36,11 +36,15 @@ RUN cd cfhello \ FROM eosio/eosio:${EOSBRANCH} -ENTRYPOINT ["nodeos", "--data-dir", "/root/.local/share", "-e", "-p", "eosio", "--replay-blockchain", "--plugin", "eosio::producer_plugin", "--plugin", "eosio::chain_api_plugin", "--plugin", "eosio::trace_api_plugin", "--trace-no-abis", "--plugin", "eosio::db_size_api_plugin", "--plugin", "eosio::http_plugin", "--http-server-address=0.0.0.0:8888", "--access-control-allow-origin=*", "--contracts-console", "--http-validate-host=false", "--enable-account-queries=true", "--verbose-http-errors", "--max-transaction-time=100"] +ENTRYPOINT ["nodeos", "--data-dir", "/root/.local/share", "-e", "-p", "eosio", "--replay-blockchain", "--plugin", "eosio::producer_plugin", "--plugin", "eosio::producer_api_plugin", "--plugin", "eosio::chain_api_plugin", "--plugin", "eosio::trace_api_plugin", "--trace-no-abis", "--plugin", "eosio::db_size_api_plugin", "--plugin", "eosio::http_plugin", "--http-server-address=0.0.0.0:8888", "--access-control-allow-origin=*", "--contracts-console", "--http-validate-host=false", "--enable-account-queries=true", "--verbose-http-errors", "--max-transaction-time=100"] WORKDIR /root RUN mkdir -p "/opt/eosio/bin/contracts" COPY --from=contracts /root/eos/contracts/contracts/eosio.bios/bin/* /opt/eosio/bin/contracts/eosio.bios/ COPY --from=contracts /root/eos/contracts/contracts/eosio.boot/bin/* /opt/eosio/bin/contracts/eosio.boot/ +COPY --from=contracts /root/eos/unittests/contracts/eosio.system/* /opt/eosio/bin/contracts/eosio.system/ +COPY --from=contracts /root/eos/unittests/contracts/eosio.msig/* /opt/eosio/bin/contracts/eosio.msig/ +COPY --from=contracts /root/eos/unittests/contracts/eosio.token/* /opt/eosio/bin/contracts/eosio.token/ +COPY --from=contracts /root/eosio.cdt/build/read_only_query_tests/* /opt/eosio/bin/contracts/read_only_query_tests/ COPY --from=contracts /root/eosio.contracts/build/ /opt/eosio/bin/contracts COPY --from=contracts /root/key-value-example-app/contracts/kv_todo/build/* /opt/eosio/bin/contracts/kv_todo/ COPY --from=contracts /root/return-values-example-app/contracts/action_return_value/build/* /opt/eosio/bin/contracts/action_return_value/ diff --git a/.github/eosjs-ci/scripts/deploy_contracts.sh b/.github/eosjs-ci/scripts/deploy_contracts.sh index f4a694e96..4803722e1 100644 --- a/.github/eosjs-ci/scripts/deploy_contracts.sh +++ b/.github/eosjs-ci/scripts/deploy_contracts.sh @@ -162,11 +162,8 @@ cleos create account eosio eosio.vpay $SYSTEM_ACCOUNT_PUBLIC_KEY cleos create account eosio eosio.rex $SYSTEM_ACCOUNT_PUBLIC_KEY cleos create account eosio eosio.token $SYSTEM_ACCOUNT_PUBLIC_KEY cleos create account eosio returnvalue $SYSTEM_ACCOUNT_PUBLIC_KEY +cleos create account eosio readonly $EXAMPLE_ACCOUNT_PUBLIC_KEY cleos create account eosio todo $SYSTEM_ACCOUNT_PUBLIC_KEY -cleos create account eosio bob $EXAMPLE_ACCOUNT_PUBLIC_KEY -cleos create account eosio alice $EXAMPLE_ACCOUNT_PUBLIC_KEY -cleos create account eosio bobr1 $R1_EXAMPLE_ACCOUNT_PUBLIC_KEY -cleos create account eosio alicer1 $R1_EXAMPLE_ACCOUNT_PUBLIC_KEY cleos create account eosio cfhello $CFHELLO_PUBLIC_KEY cleos create account cfhello cfactor $CFACTOR_PUBLIC_KEY @@ -193,6 +190,7 @@ activate_feature "4a90c00d55454dc5b059055ca213579c6ea856967712a56017487886a4d4cc activate_feature "1a99a59d87e06e09ec5b028a9cbb7749b4a5ad8819004365d02dc4379a8b7241" activate_feature "bf61537fd21c61a60e542a5d66c3f6a78da0589336868307f94a82bccea84e88" activate_feature "5443fcf88330c586bc0e5f3dee10e7f63c76c00249c87fe4fbf7f38c082006b4" +activate_feature "808c49387292c34ccb3970e00b08a690b6b3370c1cbcec46d46c19d5dfafab03" sleep 1s setabi eosio $CONTRACTS_DIR/eosio.bios/eosio.bios.abi @@ -214,21 +212,45 @@ sleep 1s setabi returnvalue $CONTRACTS_DIR/action_return_value/action_return_value.abi setcode returnvalue $CONTRACTS_DIR/action_return_value/action_return_value.wasm +sleep 1s +setabi readonly $CONTRACTS_DIR/read_only_query_tests/read_only_query_tests.abi +setcode readonly $CONTRACTS_DIR/read_only_query_tests/read_only_query_tests.wasm + +sleep 1s +setabi eosio.msig $CONTRACTS_DIR/eosio.msig/eosio.msig.abi +setcode eosio.msig $CONTRACTS_DIR/eosio.msig/eosio.msig.wasm + +sleep 1s +setabi eosio $CONTRACTS_DIR/eosio.system/eosio.system.abi +setcode eosio $CONTRACTS_DIR/eosio.system/eosio.system.wasm + sleep 1s setabi eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.abi setcode eosio.token $CONTRACTS_DIR/eosio.token/eosio.token.wasm sleep 1s -cleos push action eosio.token create '["bob", "10000000000.0000 SYS"]' -p eosio.token -cleos push action eosio.token issue '["bob", "5000000000.0000 SYS", "Half of available supply"]' -p bob -cleos push action eosio.token transfer '["bob", "alice", "1000000.0000 SYS", "memo"]' -p bob -cleos push action eosio.token transfer '["bob", "bobr1", "1000000.0000 SYS", "memo"]' -p bob -cleos push action eosio.token transfer '["bob", "alicer1", "1000000.0000 SYS", "memo"]' -p bob +cleos push action eosio.token create '["eosio", "10000000000.0000 SYS"]' -p eosio.token +cleos push action eosio.token issue '["eosio", "5000000000.0000 SYS", "Half of available supply"]' -p eosio + +cleos push action eosio init '["0", "4,SYS"]' -p eosio@active + +cleos system newaccount eosio --transfer bob $EXAMPLE_ACCOUNT_PUBLIC_KEY --stake-net "10000.0000 SYS" --stake-cpu "10000.0000 SYS" --buy-ram-kbytes 8192 +cleos system newaccount eosio --transfer alice $EXAMPLE_ACCOUNT_PUBLIC_KEY --stake-net "10000.0000 SYS" --stake-cpu "10000.0000 SYS" --buy-ram-kbytes 8192 +cleos system newaccount eosio --transfer bobr1 $R1_EXAMPLE_ACCOUNT_PUBLIC_KEY --stake-net "10000.0000 SYS" --stake-cpu "10000.0000 SYS" --buy-ram-kbytes 8192 +cleos system newaccount eosio --transfer alicer1 $R1_EXAMPLE_ACCOUNT_PUBLIC_KEY --stake-net "10000.0000 SYS" --stake-cpu "10000.0000 SYS" --buy-ram-kbytes 8192 + +sleep 1s +cleos push action eosio.token transfer '["eosio", "bob", "1000.0000 SYS", "memo"]' -p eosio +cleos push action eosio.token transfer '["eosio", "alice", "1000.0000 SYS", "memo"]' -p eosio +cleos push action eosio.token transfer '["eosio", "bobr1", "1000.0000 SYS", "memo"]' -p eosio +cleos push action eosio.token transfer '["eosio", "alicer1", "1000.0000 SYS", "memo"]' -p eosio cleos push action todo upsert '["bf581bee-9f2c-447b-94ad-78e4984b6f51", "todo", "Write Hello World Contract", false]' -p todo@active cleos push action todo upsert '["b7b0d09d-a82b-44d9-b067-3bae2d02917e", "todo", "Start Blockchain", false]' -p todo@active cleos push action todo upsert '["ac8acfe7-cd4e-4d22-8400-218b697a4517", "todo", "Deploy Hello World Contract", false]' -p todo@active +cleos push action readonly setup '[]' -p readonly@active + echo "All done initializing the blockchain" if [[ -z $NODEOS_RUNNING ]]; then diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a29b6ea6..ef56c22c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Check for GIT_API_KEY id: check_token diff --git a/.github/workflows/integration-test-develop.yml b/.github/workflows/integration-test-develop.yml index d64efa38e..47f466860 100644 --- a/.github/workflows/integration-test-develop.yml +++ b/.github/workflows/integration-test-develop.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/integration-test-release.yml b/.github/workflows/integration-test-release.yml index 3726decde..3de1556bc 100644 --- a/.github/workflows/integration-test-release.yml +++ b/.github/workflows/integration-test-release.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/publish-edge.yml b/.github/workflows/publish-edge.yml index 0a4e7db7f..7add10e78 100644 --- a/.github/workflows/publish-edge.yml +++ b/.github/workflows/publish-edge.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 069a700b1..9e8e1f9df 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f @@ -66,7 +66,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - node-version: [12.14.1] + node-version: [15.14.0] steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f