[WIP] Changes for interoperability with ts-nitro#6
Open
nikugogoi wants to merge 18 commits intorelease-v0.1.3from
Open
[WIP] Changes for interoperability with ts-nitro#6nikugogoi wants to merge 18 commits intorelease-v0.1.3from
nikugogoi wants to merge 18 commits intorelease-v0.1.3from
Conversation
60c1103 to
01dca41
Compare
fbd98b5 to
4d6582b
Compare
585ecef to
235dca8
Compare
a37b68a to
5aaf264
Compare
c57319e to
d635e5f
Compare
5cda4b5 to
1ec0ec7
Compare
* 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>
* 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>
…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
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of cerc-io/watcher-ts#386
nitro-protocolpackage