Skip to content

Commit d66cebb

Browse files
committed
Merge remote-tracking branch 'upstream/mainnet' into playlists
2 parents 373ab2d + a01b261 commit d66cebb

1,022 files changed

Lines changed: 358428 additions & 111413 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ target/
44
.vscode/
55
query-node/**/dist
66
query-node/lib
7-
cli/
87
tests/
98
!tests/network-tests/proposal-parameters.json
109
devops/

.env

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ BLOCK_HEIGHT=0
2424
# Query node GraphQL server port
2525
# Remember to change it in COLOSSUS_QUERY_NODE_URL and DISTRIBUTOR_QUERY_NODE_URL as well
2626
GRAPHQL_SERVER_PORT=8081
27+
PROCESSOR_STATE_APP_PORT=8082
28+
PROCESSOR_HOST=processor
2729

2830
# Query node playground endpoint
2931
# Leave it blank if you want endpoint to be copied from browser's URL
@@ -55,31 +57,38 @@ DISTRIBUTOR_QUERY_NODE_URL=http://graphql-server:8081/graphql
5557
# Indexer gateway used by processor. If you don't use the local indexer set this to a remote gateway
5658
PROCESSOR_INDEXER_GATEWAY=http://hydra-indexer-gateway:4000/graphql
5759

60+
# State update endpoint used by prcessor (to send state updates)
61+
STATE_UPDATE_ENDPOINT=http://graphql-server:8082/update-processor-state
62+
5863
# Colossus services identities
59-
COLOSSUS_1_WORKER_ID=0
60-
COLOSSUS_1_WORKER_URI=//testing//worker//Storage//${COLOSSUS_1_WORKER_ID}
64+
# Assuming hired lead has worker id 0
65+
COLOSSUS_1_WORKER_ID=1
66+
COLOSSUS_1_WORKER_URI=//testing//worker//Storage//1
6167
COLOSSUS_1_TRANSACTOR_URI=//Colossus1
6268

63-
COLOSSUS_2_WORKER_ID=1
64-
COLOSSUS_2_WORKER_URI=//testing//worker//Storage//${COLOSSUS_2_WORKER_ID}
69+
COLOSSUS_2_WORKER_ID=2
70+
COLOSSUS_2_WORKER_URI=//testing//worker//Storage//2
6571
COLOSSUS_2_TRANSACTOR_URI=//Colossus2
6672

6773
# Distributor node services identities
68-
DISTRIBUTOR_1_WORKER_ID=0
69-
DISTRIBUTOR_1_ACCOUNT_URI=//testing//worker//Distribution//0
74+
# Assuming hired lead has worker id 0
75+
DISTRIBUTOR_1_WORKER_ID=1
76+
DISTRIBUTOR_1_ACCOUNT_URI=//testing//worker//Distribution//1
7077

71-
DISTRIBUTOR_2_WORKER_ID=1
72-
DISTRIBUTOR_2_ACCOUNT_URI=//testing//worker//Distribution//1
78+
DISTRIBUTOR_2_WORKER_ID=2
79+
DISTRIBUTOR_2_ACCOUNT_URI=//testing//worker//Distribution//2
7380

7481
# Membership Faucet
75-
SCREENING_AUTHORITY_SEED=//Alice
76-
INVITING_MEMBER_ID=0
82+
INVITER_KEY=
7783
# SendGrid API key
7884
SENDGRID_API_KEY=
7985
# Destination email address for failure alerts
8086
ALERT_TO_EMAIL=
8187
ALERT_FROM_EMAIL=
82-
BALANCE_TOP_UP_AMOUNT=10
88+
# HCaptcha secret API key
89+
HCAPTCHA_SECRET=
90+
BALANCE_CREDIT=300000000000
91+
BALANCE_LOCKED=300000000000
8392

8493
# joystream/node docker image tag
8594
# We do not provide a default value - scripts that startup a joystream-node service

.github/workflows/create-ami.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/create-release.yml

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: macos-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- id: compute_shasum
2424
name: Compute runtime code shasum
@@ -39,52 +39,18 @@ jobs:
3939
tar czvf joystream-node-macos.tar.gz -C ./target/release joystream-node
4040
4141
- name: Temporarily save node binary
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v3
4343
with:
4444
name: joystream-node-macos-${{ steps.compute_shasum.outputs.shasum }}
4545
path: joystream-node-macos.tar.gz
4646
retention-days: 1
4747

48-
build-rpi-binary:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- name: Checkout
52-
uses: actions/checkout@v2
53-
54-
- id: compute_shasum
55-
name: Compute runtime code shasum
56-
run: |
57-
export RUNTIME_CODE_SHASUM=`scripts/runtime-code-shasum.sh`
58-
echo "::set-output name=shasum::${RUNTIME_CODE_SHASUM}"
59-
60-
- name: Run Setup
61-
run: |
62-
./setup.sh
63-
64-
- name: Build binaries
65-
run: |
66-
export WORKSPACE_ROOT=`cargo metadata --offline --no-deps --format-version 1 | jq .workspace_root -r`
67-
sudo chmod a+w $WORKSPACE_ROOT
68-
sudo chmod -R a+w $HOME/.cargo/registry
69-
./scripts/raspberry-cross-build.sh
70-
71-
- name: Tar the binary
72-
run: |
73-
tar czvf joystream-node-rpi.tar.gz -C ./target/arm-unknown-linux-gnueabihf/release joystream-node
74-
75-
- name: Temporarily save node binary
76-
uses: actions/upload-artifact@v2
77-
with:
78-
name: joystream-node-rpi-${{ steps.compute_shasum.outputs.shasum }}
79-
path: joystream-node-rpi.tar.gz
80-
retention-days: 1
81-
8248
create-release:
8349
runs-on: ubuntu-latest
84-
needs: [build-mac-binary, build-rpi-binary]
50+
needs: build-mac-binary
8551
steps:
8652
- name: Checkout
87-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
8854

8955
- id: compute_shasum
9056
name: Compute runtime code shasum
@@ -113,23 +79,14 @@ jobs:
11379
docker cp $(docker create --rm $IMAGE-arm64):/joystream/node ./joystream-node
11480
tar -czvf joystream-node-$VERSION_AND_COMMIT-arm64-linux-gnu.tar.gz joystream-node
11581
116-
docker cp $(docker create --rm $IMAGE-arm):/joystream/node ./joystream-node
117-
tar -czvf joystream-node-$VERSION_AND_COMMIT-armv7-linux-gnu.tar.gz joystream-node
118-
11982
- name: Retrieve saved MacOS binary
120-
uses: actions/download-artifact@v2
83+
uses: actions/download-artifact@v3
12184
with:
12285
name: joystream-node-macos-${{ steps.compute_shasum.outputs.shasum }}
12386

124-
- name: Retrieve saved RPi binary
125-
uses: actions/download-artifact@v2
126-
with:
127-
name: joystream-node-rpi-${{ steps.compute_shasum.outputs.shasum }}
128-
129-
- name: Rename MacOS and RPi tar
87+
- name: Rename MacOS binary and tar
13088
run: |
13189
mv joystream-node-macos.tar.gz joystream-node-${{ steps.extract_binaries.outputs.version_and_commit }}-x86_64-macos.tar.gz
132-
mv joystream-node-rpi.tar.gz joystream-node-${{ steps.extract_binaries.outputs.version_and_commit }}-rpi.tar.gz
13390
13491
- name: Release
13592
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)