-
Notifications
You must be signed in to change notification settings - Fork 370
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
Create and submit a transaction to SDK/TM chain #47
Comments
Let's start with a ConnOpenInit - https://github.com/cosmos/ics/tree/master/spec/ics-003-connection-semantics#opening-handshake Should be able to run it from the relayer CLI |
We should open a new issue listing the set of transactions so we can start knocking them off |
Protobuf txs have not landed yet on the SDK so lets bump the milestone on this for now |
* Initial implementation for the relayer tx command #206 * Adding initial logic to support signing #47 * Adding logic for auth tx * Implementing initial support to conn open init and tx #206 * Changes: - Implemented logic for tx raw connection open init - Logic to build the message only using protobuf types - Got some signing logic but not validated - Still needs lots of refactoring and cleaning * update signing code to use k256 * Ignore .idea * Refactoring the ConnOpenInit logic. Disabling the build and sign tx code #246 * Added logic for the conn init tx on relayer * Finished implementing MsgConnectionOpenInit. No signing implemented #246 Co-authored-by: Andy Nogueira <[email protected]>
* Implemented very basic keybase to store keys (memory store) * Logic to restore key (private/public) from mnemonic * Added keystore to the chain * Implemented working 'keys restore' command on the relayer
Got a basic keystore working. You can test against branch
Should give the result (displays the address for now)
Next step is to use the private key to sign the message in the transaction. |
I believe the tx signing is working but getting a
if I send the tx via broadcast_tx_sync directly also get the error
The error doesn't show up in the chains log so not sure where it's happening. Haven't been able to debug it directly on gaia or cosmos-sdk yet. |
The For now, I've added two parameters to the command
Testing the transaction:
this will return the sequence number at the end. Make a note of that, you will need this number as an argument to the transaction command.
if you get an empty response it means the tx worked
you should see an entry in the JSON file that points to the
|
Looks good. A few observations:
here we need to pass the If we try to create the same connection twice we should get an error. You should call Currently creating the connection second time returns: Here are the current logs (removed some):
|
With
we will need to get a shorter explanation for that |
Thanks @ancazamfir I will look into those error cases for an existing connection. |
* Initial implementation for tx sign * Adding logic to build the tx as part of the chain. Added broadcast tx to chain. #47 * Added keys restore command boileplate for abscissa. Restore key functionality not implemented yet #47 * Implemented changes to support tx signing (#47): * Implemented very basic keybase to store keys (memory store) * Logic to restore key (private/public) from mnemonic * Added keystore to the chain * Implemented working 'keys restore' command on the relayer * Refactoring keybase structure (#47) * Initial logic to send message (#47) * Got the logic to sign but MsgConnectionOpenInit test against stargate-4 not working (#47) * MsgConnectionOpenInit tx working logic! (#47) * Added option to tx raw conn-init to specify and read key file content (#47) * Logic to parse the key_seed.json file passed as tx raw parameter working (#47) * Added support to specify key file and account sequence for the tax raw conn-init command (#47) * Adding instructions on how to submit a transaction (#345) * Fixing format issues (#345) * Fixing tests (#345) * Update relayer/src/tx/client.rs I had this in place so I could test. OK to change it back Co-authored-by: Anca Zamfir <[email protected]> * Update relayer/src/tx/connection.rs OK, didn't know where to get it from, thanks. Co-authored-by: Anca Zamfir <[email protected]> Co-authored-by: Anca Zamfir <[email protected]>
* Initial implementation for the relayer tx command informalsystems#206 * Adding initial logic to support signing informalsystems#47 * Adding logic for auth tx * Implementing initial support to conn open init and tx informalsystems#206 * Changes: - Implemented logic for tx raw connection open init - Logic to build the message only using protobuf types - Got some signing logic but not validated - Still needs lots of refactoring and cleaning * update signing code to use k256 * Ignore .idea * Refactoring the ConnOpenInit logic. Disabling the build and sign tx code informalsystems#246 * Added logic for the conn init tx on relayer * Finished implementing MsgConnectionOpenInit. No signing implemented informalsystems#246 Co-authored-by: Andy Nogueira <[email protected]>
* Initial implementation for tx sign * Adding logic to build the tx as part of the chain. Added broadcast tx to chain. informalsystems#47 * Added keys restore command boileplate for abscissa. Restore key functionality not implemented yet informalsystems#47 * Implemented changes to support tx signing (informalsystems#47): * Implemented very basic keybase to store keys (memory store) * Logic to restore key (private/public) from mnemonic * Added keystore to the chain * Implemented working 'keys restore' command on the relayer * Refactoring keybase structure (informalsystems#47) * Initial logic to send message (informalsystems#47) * Got the logic to sign but MsgConnectionOpenInit test against stargate-4 not working (informalsystems#47) * MsgConnectionOpenInit tx working logic! (informalsystems#47) * Added option to tx raw conn-init to specify and read key file content (informalsystems#47) * Logic to parse the key_seed.json file passed as tx raw parameter working (informalsystems#47) * Added support to specify key file and account sequence for the tax raw conn-init command (informalsystems#47) * Adding instructions on how to submit a transaction (informalsystems#345) * Fixing format issues (informalsystems#345) * Fixing tests (informalsystems#345) * Update relayer/src/tx/client.rs I had this in place so I could test. OK to change it back Co-authored-by: Anca Zamfir <[email protected]> * Update relayer/src/tx/connection.rs OK, didn't know where to get it from, thanks. Co-authored-by: Anca Zamfir <[email protected]> Co-authored-by: Anca Zamfir <[email protected]>
Summary
Create and submit an IBC transaction to SDK/TM chain.
Problem Definition
relayer needs to submit transactions that include the IBC messages and packets.
Proposal
Evaluate https://github.com/iqlusioninc/crates/tree/develop/stdtx for submitting an IBC transaction. Could be for ClientCreate or ClientUpdate, or other.
Keystore doesn't have to be part of this if a workaround is found. We will deal with this in another issue.
For Admin Use
The text was updated successfully, but these errors were encountered: