Skip to content

[WIP] Changes for interoperability with ts-nitro#6

Open
nikugogoi wants to merge 18 commits intorelease-v0.1.3from
ts-interop
Open

[WIP] Changes for interoperability with ts-nitro#6
nikugogoi wants to merge 18 commits intorelease-v0.1.3from
ts-interop

Conversation

@nikugogoi
Copy link
Copy Markdown

Part of cerc-io/watcher-ts#386

  • Use default security options for libp2p node
  • Add websocket transport in message service to connect with browser client
  • Use mplex muxer
  • Add CI to publish nitro-protocol package

@nikugogoi nikugogoi force-pushed the ts-interop branch 2 times, most recently from 60c1103 to 01dca41 Compare September 6, 2023 08:14
@nikugogoi nikugogoi changed the base branch from release-v1.1 to release-v1.2 September 6, 2023 08:18
@nikugogoi nikugogoi changed the base branch from release-v1.2 to release-v1.3 September 11, 2023 14:02
@nikugogoi nikugogoi changed the base branch from release-v1.3 to release-v1.4 September 15, 2023 08:24
@nikugogoi nikugogoi changed the base branch from release-v1.4 to release-v1.5 September 29, 2023 09:09
@nikugogoi nikugogoi changed the base branch from release-v1.5 to release-v1.6 October 4, 2023 04:37
@prathamesh0 prathamesh0 force-pushed the ts-interop branch 2 times, most recently from c57319e to d635e5f Compare October 13, 2023 05:42
@nikugogoi nikugogoi force-pushed the ts-interop branch 2 times, most recently from 5cda4b5 to 1ec0ec7 Compare October 16, 2023 08:43
@nikugogoi nikugogoi changed the base branch from release-v1.6 to release-v1.7 October 19, 2023 05:15
nikugogoi and others added 14 commits April 18, 2024 11:14
* Add workflow to publish nitro-protocol

* Set gas limit and gas price in ConnectToChain

* Update workflow to use npm

* Revert "Set gas limit and gas price in ConnectToChain"

This reverts commit 8e11f0d.

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Upgrade @cerc-io/nitro-protocol to 2.0.0-alpha.4-ts-port-0.1.1

* Add WebSocket message port in reverse payment proxy test

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Use receivePeerInfo for peer info exchange

* Add WebSocket message port in rpc test

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Use slog in receivePeerInfo

* Revert "Use mplex muxer (#4)"

This reverts commit 0472b96.

* Fix logging in receivePeerInfo

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Add WebSocket message port in InitializeNode method

* Upgrade @cerc-io/nitro-protocol to 2.0.0-alpha.4-ts-port-0.1.3

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
…ockerfile (#12)

* Disable compression on reverse proxy transport to access content-length

* Add jq to the Docker image

* Add binary for reverse payment proxy to the Docker image

* Add netcat to the Docker image

* Listen on any IP for Message service ports

* Check payment for listed methods in reverse payment proxy

* Add flag filterrpcmethods to verify payments for selected RPC methods

* Change flag name to enablepaidrpcmethods

---------

Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
…ayments stack (#14)

* Add eth_getBlockByNumber to paidRPCMethods

* Fix payment proxy cmd name in Docker build

* Add option to pass hostname in `nitro-rpc-client` cli (#13)

* Add option to pass hostname in nitro-rpc-client cli

* Rename variable host to rpcHost in rpc-nitro-client

* Update yarn lock file

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
* Parse RPC method from request body

* Use handleError method to log error

* Add todo to check for content type

* Increase golangci-lint timeout to 5 min

* Change error string to lower case

* Parse RPC method from body if enablePaidRpcMethods is true

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Check for Content-Type and request fields for paid methods

* Include the RPC method in response handler log
* Add payments manager

* Use nitro node in payments manager

* Add a placeholder HTTP middleware

* Add voucher extraction and validation to the HTTP middleware

* Use pointer for Nitro instance

* Initialize quit channel

* Fix signer recovery from payment header

* Use strings for keys in voucher cache

* Move ChainOpts to ETH chain service

* Add comments and fix lint errors

* Fix static checks

* Removed commented out type
* Add RPC method to validate voucher

* Implement ValidateVoucher method in RemoteVoucherValidator

* Fix log on payment not found

* Fix payments manager initialization

* Handle review comments

* Add empty PaymentsManager in InitializeRpcServer method

* Remove @cerc-io/nitro-protocol from yarn lock

* Fix for initializing node without TLS

* Add client support for non-secure Nitro connections

* Add support for non-secure connections in js client

* Fix lint errors

* Fix certificates loading

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
prathamesh0 and others added 2 commits April 18, 2024 11:22
…n API (#19)

* Load amounts paid so far for open payment channels

* Use tls in start rpc server cmd

* Change return type of validate voucher API method

* Handle review changes

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Reduce voucher check retry interval to 1s

* Remove unused variables
prathamesh0 and others added 2 commits April 26, 2024 14:40
* Add steps to run go-nitro nodes

* Update README

* Handle review changes

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
* Update README to run nitro nodes

* Update README to add example outputs

* Fix lint errors

* Install foundry of specific version in CI

* Update README to use foundry of specific version

* Add result outputs in README

* Fix indentation

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
@nikugogoi nikugogoi changed the base branch from release-v1.7 to release-v0.1.3 August 19, 2024 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants