Skip to content

Commit

Permalink
feat: TxResultResponse direct values
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 19, 2024
1 parent d7d3fd7 commit 180ffd2
Show file tree
Hide file tree
Showing 5 changed files with 528 additions and 263 deletions.
9 changes: 4 additions & 5 deletions gcosmos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,17 @@ grpcurl -plaintext localhost:9092 list
grpcurl -plaintext localhost:9092 server.GordianGRPC/GetBlocksWatermark
grpcurl -plaintext localhost:9092 server.GordianGRPC/GetValidators

# grpcurl -plaintext localhost:9092 server.GordianGRPC/SubmitTransaction
grpcurl -plaintext -d '{"account_id":"cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl","denom":"stake"}' localhost:9092 server.GordianGRPC/QueryAccountBalance
grpcurl -plaintext -d '{"address":"cosmos1r5v5srda7xfth3hn2s26txvrcrntldjumt8mhl","denom":"stake"}' localhost:9092 server.GordianGRPC/QueryAccountBalance
```

# Testing
# Transaction Testing
```bash
./gcosmos tx bank send val cosmos10r39fueph9fq7a6lgswu4zdsg8t3gxlqvvvyvn 1stake --chain-id=TODO:TEMPORARY_CHAIN_ID --generate-only > example-tx.json

# TODO: get account number
./gcosmos tx sign ./example-tx.json --offline --from=val --sequence=1 --account-number=1 --chain-id=TODO:TEMPORARY_CHAIN_ID --keyring-backend=test > example-tx-signed.json

grpcurl -plaintext -d '{"tx":"'$(cat example-tx-signed.json | base64 -w 0)'"}' localhost:9092 server.GordianGRPC/SimulateTransaction
grpcurl -plaintext -emit-defaults -d '{"tx":"'$(cat example-tx-signed.json | base64 -w 0)'"}' localhost:9092 server.GordianGRPC/SimulateTransaction

grpcurl -plaintext -d '{"tx":"'$(cat example-tx-signed.json | base64 -w 0)'"}' localhost:9092 server.GordianGRPC/SubmitTransaction
grpcurl -plaintext -emit-defaults -d '{"tx":"'$(cat example-tx-signed.json | base64 -w 0)'"}' localhost:9092 server.GordianGRPC/SubmitTransaction
```
Loading

0 comments on commit 180ffd2

Please sign in to comment.