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

JS client to send transactions to the sequencer #7

Open
szynwelski opened this issue Apr 26, 2023 · 2 comments
Open

JS client to send transactions to the sequencer #7

szynwelski opened this issue Apr 26, 2023 · 2 comments
Assignees
Milestone

Comments

@szynwelski
Copy link
Contributor

szynwelski commented Apr 26, 2023

The client should allow the creation of a Cosmos transaction containing a given signed Arweave transaction. The signature of the Cosmos transaction should be equal to the signature of the Arweave transaction (see #8).

After creating a transaction, the client should send it to the sequencer network.

Client should be as light as possible because it will eventually be included in Warp Contracts SDK.

To be decided:

  • should we use CosmJS or write code from scratch
  • whether to send a transaction encoded with protobuf via RPC or in the form of JSON via REST API
  • could the client only send an Arweave transaction and a Cosmos node would wrap it in a Cosmos transaction
@szynwelski
Copy link
Contributor Author

Decision:

  • we add an endpoint to the REST API that accepts Arweave transactions in the form of JSON
  • on the server side, we wrap it with a Cosmos transaction
  • on the client side we do not use CosmJS and we do not encode transactions with protobuf

@szynwelski szynwelski self-assigned this Jun 29, 2023
szynwelski added a commit that referenced this issue Jun 29, 2023
szynwelski added a commit that referenced this issue Jul 6, 2023
szynwelski added a commit that referenced this issue Jul 6, 2023
szynwelski added a commit that referenced this issue Jul 6, 2023
@szynwelski
Copy link
Contributor Author

Centralized and decentralized sequencer client: warp-contracts/warp#472

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

No branches or pull requests

1 participant