From cc64d44fb008560b6fb38f228bfa52afc7b9f5be Mon Sep 17 00:00:00 2001 From: Elad Gildnur Date: Thu, 5 Sep 2024 16:15:47 +0300 Subject: [PATCH 1/2] Add tokens-owner-indexed verification to solana spec --- cookbook/specs/solana.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cookbook/specs/solana.json b/cookbook/specs/solana.json index 74c727a894..3a987b5f23 100644 --- a/cookbook/specs/solana.json +++ b/cookbook/specs/solana.json @@ -1196,6 +1196,26 @@ "expected_value": "*" } ] + }, + { + "name": "tokens-owner-indexed", + "parse_directive": { + "function_template": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"getTokenAccountsByOwner\",\"params\":[\"4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F\",{\"programId\":\"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\"},{\"encoding\":\"jsonParsed\"}]}", + "function_tag": "VERIFICATION", + "result_parsing": { + "parser_arg": [ + "0", + "value" + ], + "parser_func": "PARSE_CANONICAL" + }, + "api_name": "getTokenAccountsByOwner" + }, + "values": [ + { + "expected_value": "*" + } + ] } ] } From a79afde08d482172e4f1b1a89acd3c0f53e4157b Mon Sep 17 00:00:00 2001 From: Elad Gildnur Date: Thu, 26 Sep 2024 10:58:49 +0300 Subject: [PATCH 2/2] CR Fix: Add severity warning to verification --- cookbook/specs/solana.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/specs/solana.json b/cookbook/specs/solana.json index 3a987b5f23..e14203dd39 100644 --- a/cookbook/specs/solana.json +++ b/cookbook/specs/solana.json @@ -1213,7 +1213,8 @@ }, "values": [ { - "expected_value": "*" + "expected_value": "*", + "severity": "Warning" } ] }