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

Use slog in receivePeerInfo and revert use of mplex #10

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

nikugogoi
Copy link
Collaborator

Part of cerc-io/watcher-ts#386

  • Use slog in receivePeerInfo method that was added back to connect with ts-nitro
  • Revert commit to add mplex as it is deprecated
    • Using yamux in ts-nitro for libp2p connection

@nikugogoi nikugogoi self-assigned this Sep 15, 2023
@nikugogoi nikugogoi merged commit a37b68a into cerc-io:ts-interop Sep 15, 2023
2 checks passed
@nikugogoi nikugogoi deleted the nv-rebase-ts-interop branch September 15, 2023 09:40
nikugogoi added a commit that referenced this pull request Aug 20, 2024
* Add websocket transport in message service to connect with browser client (#2)

* Use mplex muxer (#4)

* Add workflow to publish `nitro-protocol` package (#5)

* 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 `nitro-protocol` package to `2.0.0-alpha.4-ts-port-0.1.1` (#7)

* 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>

* Use Node version 18.15 for publishing package (#8)

Co-authored-by: neeraj <neeraj.rtly@gmail.com>

* Add back `receivePeerInfo` method for connecting with ts-nitro (#9)

* 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 and revert use of mplex (#10)

* 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 (#11)

* 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>

* Disable compression in payment proxy transport and add proxy in the Dockerfile (#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>

* Changes required for running proxy server and `nitro-rpc-client` in payments 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 in proxy server (#15)

* 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>

* Improve filtering for paid RPC methods in payment proxy (#16)

* Check for Content-Type and request fields for paid methods

* Include the RPC method in response handler log

* Setup a payments manager with voucher cache (#17)

* 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

* Implement RPC API for voucher validation (#18)

* 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>

* Reduce voucher check retry interval (#20)

* Reduce voucher check retry interval to 1s

* Remove unused variables

* Add steps to run go-nitro nodes (#23)

* Add steps to run go-nitro nodes

* Update README

* Handle review changes

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>

* Update steps to run go-nitro nodes and make payments (#24)

* 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>

* Revert change to remove default TLS cert in go-nitro node CLI (#14)

* Upgrade nitro protocol version

* Revert change to remove default TLS cert in go-nitro node CLI

* Update websocket message ports

---------

Co-authored-by: prathamesh0 <42446521+prathamesh0@users.noreply.github.com>
Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Co-authored-by: neerajvijay1997 <111040298+neerajvijay1997@users.noreply.github.com>
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