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

WebRTC exploration #396

Merged
merged 64 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
e2f6400
Diagram of Browser with RTC
ScottyPoi Dec 16, 2022
6615c14
proxy: choose port 9009 - 9999
ScottyPoi Dec 16, 2022
5f5c714
portalnetwork: add p2pt dependency
ScottyPoi Dec 16, 2022
bf10e71
portalnetwork: create RTCPeerManager
ScottyPoi Dec 16, 2022
20feb76
portalnetwork: create simpleRTC.ts Transport Layer
ScottyPoi Dec 16, 2022
34c45d9
portalnetwork: switch WebSocket Transport for SimpleRTC Transport
ScottyPoi Dec 16, 2022
c5b1094
portalnetwork: update protocol class to deal with RTC peers
ScottyPoi Dec 16, 2022
48a0222
browser-client: update portalClient.ts to use SimpleRTC
ScottyPoi Dec 16, 2022
7d29e8e
browser-client: update RoutingTableView to display RTC peers
ScottyPoi Dec 16, 2022
a4d5a0c
browser-client: add Tab for RTC interface
ScottyPoi Dec 16, 2022
6ed5e6e
fix github actions...maybe
ScottyPoi Dec 16, 2022
52674cb
totally fix github actions
ScottyPoi Dec 16, 2022
509b136
Fixing Github actions one last time
ScottyPoi Dec 16, 2022
1728818
portalnetwork: separate webrtc and websocket code
ScottyPoi Dec 17, 2022
cd958c9
Automatically Ping new webrtc peer on completion of handshake
ScottyPoi Dec 17, 2022
3d2eceb
Update Browser Components
ScottyPoi Dec 17, 2022
a6a2fd3
remove unused
ScottyPoi Jan 12, 2023
fd66159
create HybridTransportService
ScottyPoi Jan 12, 2023
5c3342a
update client for hybrid transport
ScottyPoi Jan 12, 2023
acbb1a3
update browser client to use hybrid tranpsort
ScottyPoi Jan 12, 2023
485e19b
update Proxy to use selected port number
ScottyPoi Jan 12, 2023
2a6a931
fix CLI build issue
ScottyPoi Jan 12, 2023
10656ee
fix multiaddr and delete comments
ScottyPoi Jan 12, 2023
013a01a
commit package-lock.json
ScottyPoi Jan 12, 2023
2e123ef
update WebRTC Diagrams
ScottyPoi Jan 12, 2023
1782159
add diagram for waku/webrtc protocol
ScottyPoi Jan 12, 2023
2fd2f35
remove node-pre-gyp from CI jobs
ScottyPoi Jan 13, 2023
df12d63
portalnetwork: remove transport logic from client code
ScottyPoi Jan 13, 2023
edea33b
edit send function
ScottyPoi Jan 13, 2023
9a6ef90
move dependencies to correct list
ScottyPoi Jan 13, 2023
89edd21
remove changes to app layout
ScottyPoi Jan 13, 2023
4c8d022
portalnetwork: move all transport logic out of client code
ScottyPoi Jan 14, 2023
e51eebe
enr: remove 'rtc' byte
ScottyPoi Jan 14, 2023
a36149c
Clarify logic for transport.send
ScottyPoi Jan 14, 2023
6563456
CLI: update CLI to use rtc enabled transport
ScottyPoi Jan 16, 2023
605c22f
wait till app loads to add bootnodes
ScottyPoi Jan 17, 2023
4376c7c
Fix CI build with node-pre-gyp
ScottyPoi Jan 18, 2023
9b11b35
delete test file
ScottyPoi Jan 18, 2023
7d1de17
Add types specifier for wrtc
acolytec3 Jan 18, 2023
b1f8a3f
Switch to node 18
acolytec3 Jan 18, 2023
ca7f955
Linter megafixes
acolytec3 Jan 18, 2023
44978d8
Update cli to node 18 engine req
acolytec3 Jan 18, 2023
be09a4c
move integration tests to cli package
ScottyPoi Jan 19, 2023
d17e71e
update deps
ScottyPoi Jan 19, 2023
724a49e
update integration tests for CLI client
ScottyPoi Jan 20, 2023
c68cb71
add tests to integration
ScottyPoi Jan 20, 2023
e1ceb41
delete / move files
ScottyPoi Jan 20, 2023
7b762e6
move integration test command to CLI test runner
ScottyPoi Jan 20, 2023
17cd93e
fix client ip bug
ScottyPoi Jan 20, 2023
431c502
add tape to npm scripts
ScottyPoi Jan 20, 2023
622657e
fix node version in github actions
ScottyPoi Jan 20, 2023
2891400
fix for CI test
ScottyPoi Jan 22, 2023
f165b32
remove broken integration test
ScottyPoi Jan 23, 2023
79d5780
Add node-pre-gyp to cli
acolytec3 Jan 23, 2023
15b48e5
add CLI integration test to CI
acolytec3 Jan 23, 2023
4d02ba3
Add start of integration test back to portalnetwork
acolytec3 Jan 23, 2023
2c95d80
change integration tests
acolytec3 Jan 24, 2023
3ed2aa5
portalnetwork: implement rest of integration tests
ScottyPoi Jan 27, 2023
246fa3f
CLI: remove webrtc / waku changes
ScottyPoi Jan 27, 2023
5fbf217
CLI: fix github devnet test run ip
ScottyPoi Jan 27, 2023
656f880
remove unused changes
ScottyPoi Jan 27, 2023
44ab6af
update package-lock
ScottyPoi Jan 27, 2023
0d1d9ed
clean up tests and testdata
acolytec3 Feb 3, 2023
6da3610
Partially fix integration test race conditions
acolytec3 Feb 3, 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
5 changes: 2 additions & 3 deletions .github/workflows/build-android-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ jobs:
- name: checkout code
uses: actions/checkout@v2

- name: Use Node.js 16
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
cache: 'npm'

- run: npm i
working-directory: ${{ github.workspace }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/devnet-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ concurrency:
cancel-in-progress: true

jobs:
devnet-cli-run:
cli-devnet-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
node-version: [18]
steps:
- uses: actions/checkout@v3

Expand All @@ -28,13 +28,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i -g @mapbox/node-pre-gyp

- run: npm i
working-directory: ${{ github.workspace }}

- run: npx ts-node --esm scripts/devnet.ts --numNodes=10 &
- run: npx ts-node --esm scripts/devnet.ts --numNodes=10 --ip=127.0.0.1 &

- run: |
sleep 10 &&
npx ts-node --esm scripts/seeder.ts --rpcPort=8545 --sourceFile="./blocks200000-210000.json" --numBlocks=3 --numNodes=10

21 changes: 2 additions & 19 deletions .github/workflows/portalnetwork-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
node-version: [18]
steps:
- uses: actions/checkout@v3

Expand All @@ -28,30 +28,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm i
working-directory: ${{ github.workspace }}

- run: npm run lint
- run: npm run test

test-integration-portalnetwork:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm i
working-directory: ${{ github.workspace }}
- run: npm run test:integration

- run: npm run test:integration


Loading