Zondax / ledger-icp

Apache License 2.0
16 stars 9 forks source link

Candid blobs for ICRC29 Test vectors #236

Open lmuntaner opened 1 month ago

lmuntaner commented 1 month ago

We shared two test vectors to implement validation for ICRC29 flow:

{"content": {"arg": h'4449444C00017104746F6269', "canister_id": h'00000000006000FD0101', "ingress_expiry": 1712667140606000000, "method_name": "greet", "request_type": "query", "sender": h'04'}}

and

{"content": {"arg": h'4449444C076D7B6C01D880C6D007716C02CBAEB581017AB183E7F1077A6B028BEABFC2067F8EF1C1EE0D026E036C02EFCEE7800401C4FBF2DB05046C03D6FCA70200E1EDEB4A7184F7FEE80A0501060C4449444C00017104746F626905677265657402656E01011E000300', "canister_id": h'00000000006000FD0101', "ingress_expiry": 1712666698482000000, "method_name": "icrc21_canister_call_consent_message", "nonce": h'A3788C1805553FB69B20F08E87E23B13', "request_type": "call", "sender": h'04'}}

I encoded both with Candid as requested:

icrc29.json.txt

I also pushed the code to encode the vectors here in case there is another issue while I'm on holidays.

:link: zboto Link