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

Verifying and validating results against the spec #34

Open
musik-c opened this issue Jul 9, 2023 · 6 comments
Open

Verifying and validating results against the spec #34

musik-c opened this issue Jul 9, 2023 · 6 comments
Assignees

Comments

@musik-c
Copy link

musik-c commented Jul 9, 2023

No description provided.

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: readParams()

Environment

Client Logs

Response: &{Msg:values:{cardano:{}} ledger_tip:{slot:66443229 hash:"\xaa´\xb6\x88\xab\x86fQl\x99\x0c1-\x83\xaa\xa4\x01\xf9~\xd9\xca\xcc5׳\xa6ƀ\xb3\x96\x8b"} header
[Content-Type:[application/grpc]

Expected Output

Expected an empty response with ledger tip.
(Specs weren't defined at the time of implementation)

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: readUtxos

Environment

Client Logs

connecting to utxorpc host: <http://localhost:9090>
Ledger Tip:
  Slot: 66444229
  Hash: 4e5102a03983c905d02b103fbdf118b67f60b17fd452f44598ba508abf771f70

Expect Output

N/A

Notes

https://preprod.cexplorer.io/tx/71a7498f086d378ec5e558581286629b678be1dd65d5d4e2a5d634ba6fdf8299
Hash: 71a7498f086d378ec5e558581286629b678be1dd65d5d4e2a5d634ba6fdf8299
Date 12d22h43m ago
Epoch 155
Block 2,472,770
Slot 65,325,702 (epoch slot 7,302)
Total Output 20.80k ₳ 9,137.6 0.13691
Fee 0.21 ₳ 0.1
Outputs 3
TTL locked 12d19h44m ago (65,336,477)
Message
Minswap: Market Order

  • Test Method: readUtxos(ctx, client, "efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184")

Client Logs

(Side note: There was more native bytes in the response)
  Native Bytes: 0a2222222222200b2200a222222222005222222222006200522222222200822222222200913003480088888888801c8888888010dc0a40006e1d2000370e90011b8748010dc3a400c6e1d2008370e90051b8748030dc4a400090504e00a410112f4aae7955ce9191800800911980198010010009
  Cardano UTxO:
    Address: pN;u�h����;T�6E������2��R�q�I
    Coin: 66000000

Expect Output

N/A

Notes

https://preprod.cexplorer.io/tx/efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184
Hash: efd8a48f69e5270cb73b438067e1b566d39758329a45e5d6d36755f2c7326184
Date	10d4h4m ago
Epoch	155
Block	2,483,293
Slot	65,569,166 (epoch slot 250,766)
Total Output	137.69 ₳ 60.5 0.00091
Fee	0.8 ₳ 0.4
Outputs	3
TTL	locked 10d4h2m ago (65,569,254)

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: searchUtxos()

Environment

  • Cardano Node Version: 8.9.4
  • Network: Preprod
  • Test Deployment: Cardano Node Api 0.2.0-Local (gouroborus:v0.90.0)
  • Test Code Repository: https://github.com/utxorpc/go-sdk/blob/main/examples/query/main.go#L90
  • Test Method: searchUtxos(ctx, client, "101467bc3a356777b920d0c3f023198737e0e6f0ebe9cccabe18a4941316a4092303be48b6477c2a0593a8cd483ca045284585eb4853e84726")

Client Logs

unknown
invalid character not part of charset: 98
[]

Server Logs

Got a SearchUtxos request with predicate match:{cardano:{address:{exact_address:"\x10\x14g\xbc:5gw\xb9 \xd0\xc3\xf0#\x19\x877\xe0\xe6\xf0\xeb\xe9\xccʾ\x18\xa4\x94\x13\x16\xa4\t#\x03\xbeH\xb6G|*\x05\x93\xa8\xcdH<\xa0E(E\x85\xebHS\xe8G&"} asset:{}}}

Expect Output

N/A

Notes

https://preprod.cardanoscan.io/address/101467bc3a356777b920d0c3f023198737e0e6f0ebe9cccabe18a4941316a4092303be48b6477c2a0593a8cd483ca045284585eb4853e84726

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: submitTx()

Environment

  • Cardano Node Version: 8.9.4
  • Network: Preprod
  • Test Deployment: Cardano Node Api 0.2.0-Local (gouroborus:v0.90.0)
  • Test Code Repository: https://github.com/utxorpc/go-sdk/blob/main/examples/submit/main.go#L41
  • Test Method: (signed transaction) submitTx(ctx, client, "84a50081825820d3e1af74921ce5b4562ab13acab532af64e1cae02b4033153ab4490299ba478e01018282583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1a00a7d8c082583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1b00000001281aad84021a00029285031a03f6d57d0800a10081825820b829480e5d5827d2e1bd7c89176a5ca125c30812e54be7dbdf5c47c835a17f3d58409a97044722c96132d7bf446c8fb4f1ae95e52bfdc188d2a970695ce108eeda2ca7f5d196df4e79ab9bd1a33b0594c6c9138d2cdf65ea9f387ac03a948cdc9703f5f6")

Client Logs

Connecting to utxorpc host: <http://localhost:9090>
Response: &{Msg:ref:"9U\xf9/\xb1\xce \x87\xfbz[@\xadg\x03\xec\xf5\xd5֊\xcc\xe1\xf7f\x8f\xc7O\x9d\xa33#\xd1" header:map[Content-Type:[application/grpc] Date:[Sun, 28 Jul 2024 15:32:34 GMT] Grpc-Accept-Encoding:[gzip] Grpc-Encoding:[gzip]] trailer:map[Grpc-Status:[0]]}

Expect Output

Transaction reference;
Got TXref: 3955f92fb1ce2087fb7a5b40ad6703ecf5d5dbccf7f7668fc74f9da33323d1


Unsigned Transaction
Test Method: submitTx(ctx, client, "84a50081825820d3e1af74921ce5b4562ab13acab532af64e1cae02b4033153ab4490299ba478e01018282583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1a00b71b0082583900923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9568b72f85522e4a17d44a45cd021b9741b55d7cbc635c911625b015e1b00000001280b6b44021a00029285031a03f6d2c00800a0f5f6")

Client Logs

Connecting to utxorpc host: <http://localhost:9090>
unknown
[ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError ([UtxowFailure (GenericError ([0 [1 [923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9]]]))]))]
[]
panic: unknown: [ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError ([UtxowFailure (GenericError ([0 [1 [923d4b64e1d730a4baf3e6dc433a9686983940f458363f37aad7a1a9]]]))]))]

Expect Output

N/A

@verbotenj
Copy link
Contributor

verbotenj commented Jul 28, 2024

Test Query: watchMempool()

Environment

Client Logs

Waiting, no response

Connecting to utxorpc host: http://localhost:9090

Server Logs

Got a WatchMempool request with predicate <nil> and fieldMask <nil>

Expect Output

All transactions no filtering.
Got none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

3 participants