go-cnc
go-cnc copied to clipboard
celestia-node REST client in Go.
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. Release notes Sourced from actions/checkout's releases. v4.0.0 What's Changed Update default runtime to node20 by @takost in actions/checkout#1436 Support fetching without the --progress option...
Bumps [nosborn/github-action-markdown-cli](https://github.com/nosborn/github-action-markdown-cli) from 3.2.0 to 3.3.0. Release notes Sourced from nosborn/github-action-markdown-cli's releases. v3.3.0 What's Changed Bump actions/setup-python from 4.2.0 to 4.3.0 by @dependabot in nosborn/github-action-markdown-cli#48 Bump actions/checkout from 3.0.2 to...
## Overview Resolves https://github.com/celestiaorg/go-cnc/issues/58
resp should always be returned as it contains the tx hash which is crucial for following the tx block inclusion (even if an error occurred, e.g timeout). reference: https://github.com/celestiaorg/celestia-node/issues/2328
[celestia-local-dockerl](https://github.com/celestiaorg/celestia-local-docker) should be used instead of custom docker-compose configuration. This will make developers live easier, as no docker cleanup will be required in case of failing tests.
`Head` method (corresponding to `/head` endpoint) needs to be added to client. Specs: https://docs.celestia.org/developers/node-api/#get-head Code in node: https://github.com/celestiaorg/celestia-node/blob/0466d9c9222f7ceacba2223a83fd352b5d751d1e/service/rpc/header.go#L22 This is `height`-less version of `/header` endpoint.
## Issues/PR Fix Issue #7. ## Changes - Implemented `SubmitTx` method - Added tests for `SubmitTx` Changes can be viewed in the files client.go, client_test.go, and type.go.
Recently there are multiple failures of `TestIntegrationTestSuite/TestDataRoundTrip` in CI. I'm not able to reproduce this locally. We need to fix this, to be able to smoothly merge PRs.
Simple, runnable example showing how to create and use `Client` should be added into README.md.
To enable gentle cleanup in case of interrupt (Ctrl+C), signal handler should be added to tests (setup method).