From a733decb4824232a9eec9205b0af3147ca10b459 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:04:02 +0530 Subject: [PATCH 01/37] initial test-proxy announce --- tests/testcases_current.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 21301c4..1c03920 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14479,5 +14479,34 @@ "7 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "7 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 786, + "name": "Proxy_Announce", + "blob": "1b06decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef553cf33250fd6ffc86cadf62f22ed4d3576193f5262c3d914444766966016602d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 553cf33250fd6ffc86cadf62f22ed4d3576193", + "2 | Call hash [2/2] : f5262c3d914444766966016602", + "3 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "3 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 553cf33250fd6ffc86cadf62f22ed4d3576193", + "2 | Call hash [2/2] : f5262c3d914444766966016602", + "3 | Chain : Edgeware", + "4 | Nonce : 0", + "5 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "5 | Tip [2/2] : 456789", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From addcc09ce46d6286d0eeb3525cfc30fc6d93f592 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:29:30 +0530 Subject: [PATCH 02/37] fix call index and case id --- app/src/substrate_dispatch_V2.c | 118 ++++++++++++++++---------------- app/src/substrate_methods_V2.h | 2 +- 2 files changed, 60 insertions(+), 60 deletions(-) diff --git a/app/src/substrate_dispatch_V2.c b/app/src/substrate_dispatch_V2.c index af0004f..5938040 100644 --- a/app/src/substrate_dispatch_V2.c +++ b/app/src/substrate_dispatch_V2.c @@ -1744,34 +1744,34 @@ parser_error_t _readMethod_V2( case 7182: /* module 28 call 14 */ CHECK_ERROR(_readMethod_identity_quit_sub_V2(c, &method->basic.identity_quit_sub_V2)) break; - case 7424: /* module 29 call 0 */ + case 6912: /* module 27 call 0 */ CHECK_ERROR(_readMethod_proxy_proxy_V2(c, &method->nested.proxy_proxy_V2)) break; - case 7425: /* module 29 call 1 */ + case 6913: /* module 27 call 1 */ CHECK_ERROR(_readMethod_proxy_add_proxy_V2(c, &method->basic.proxy_add_proxy_V2)) break; - case 7426: /* module 29 call 2 */ + case 6914: /* module 27 call 2 */ CHECK_ERROR(_readMethod_proxy_remove_proxy_V2(c, &method->basic.proxy_remove_proxy_V2)) break; - case 7427: /* module 29 call 3 */ + case 6915: /* module 27 call 3 */ CHECK_ERROR(_readMethod_proxy_remove_proxies_V2(c, &method->basic.proxy_remove_proxies_V2)) break; - case 7428: /* module 29 call 4 */ + case 6916: /* module 27 call 4 */ CHECK_ERROR(_readMethod_proxy_anonymous_V2(c, &method->basic.proxy_anonymous_V2)) break; - case 7429: /* module 29 call 5 */ + case 6917: /* module 27 call 5 */ CHECK_ERROR(_readMethod_proxy_kill_anonymous_V2(c, &method->basic.proxy_kill_anonymous_V2)) break; - case 7430: /* module 29 call 6 */ + case 6918: /* module 27 call 6 */ CHECK_ERROR(_readMethod_proxy_announce_V2(c, &method->basic.proxy_announce_V2)) break; - case 7431: /* module 29 call 7 */ + case 6919: /* module 27 call 7 */ CHECK_ERROR(_readMethod_proxy_reject_announcement_V2(c, &method->basic.proxy_reject_announcement_V2)) break; - case 7432: /* module 29 call 8 */ + case 6920: /* module 27 call 8 */ CHECK_ERROR(_readMethod_proxy_remove_announcement_V2(c, &method->basic.proxy_remove_announcement_V2)) break; - case 7433: /* module 29 call 9 */ + case 6921: /* module 27 call 9 */ CHECK_ERROR(_readMethod_proxy_proxy_announced_V2(c, &method->basic.proxy_proxy_announced_V2)) break; case 7680: /* module 30 call 0 */ @@ -2252,25 +2252,25 @@ const char *_getMethod_Name_V2_ParserFull(uint16_t callPrivIdx) return STR_ME_REMOVE_SUB; case 7182: /* module 28 call 14 */ return STR_ME_QUIT_SUB; - case 7424: /* module 29 call 0 */ + case 6912: /* module 27 call 0 */ return STR_ME_PROXY; - case 7425: /* module 29 call 1 */ + case 6913: /* module 27 call 1 */ return STR_ME_ADD_PROXY; - case 7426: /* module 29 call 2 */ + case 6914: /* module 27 call 2 */ return STR_ME_REMOVE_PROXY; - case 7427: /* module 29 call 3 */ + case 6915: /* module 27 call 3 */ return STR_ME_REMOVE_PROXIES; - case 7428: /* module 29 call 4 */ + case 6916: /* module 27 call 4 */ return STR_ME_ANONYMOUS; - case 7429: /* module 29 call 5 */ + case 6917: /* module 27 call 5 */ return STR_ME_KILL_ANONYMOUS; - case 7430: /* module 29 call 6 */ + case 6918: /* module 27 call 6 */ return STR_ME_ANNOUNCE; - case 7431: /* module 29 call 7 */ + case 6919: /* module 27 call 7 */ return STR_ME_REJECT_ANNOUNCEMENT; - case 7432: /* module 29 call 8 */ + case 6920: /* module 27 call 8 */ return STR_ME_REMOVE_ANNOUNCEMENT; - case 7433: /* module 29 call 9 */ + case 6921: /* module 27 call 9 */ return STR_ME_PROXY_ANNOUNCED; case 7680: /* module 30 call 0 */ return STR_ME_AS_MULTI_THRESHOLD_1; @@ -2620,25 +2620,25 @@ uint8_t _getMethod_NumItems_V2(uint8_t moduleIdx, uint8_t callIdx) return 1; case 7182: /* module 28 call 14 */ return 0; - case 7424: /* module 29 call 0 */ + case 6912: /* module 27 call 0 */ return 3; - case 7425: /* module 29 call 1 */ + case 6913: /* module 27 call 1 */ return 3; - case 7426: /* module 29 call 2 */ + case 6914: /* module 27 call 2 */ return 3; - case 7427: /* module 29 call 3 */ + case 6915: /* module 27 call 3 */ return 0; - case 7428: /* module 29 call 4 */ + case 6916: /* module 27 call 4 */ return 3; - case 7429: /* module 29 call 5 */ + case 6917: /* module 27 call 5 */ return 5; - case 7430: /* module 29 call 6 */ + case 6918: /* module 27 call 6 */ return 2; - case 7431: /* module 29 call 7 */ + case 6919: /* module 27 call 7 */ return 2; - case 7432: /* module 29 call 8 */ + case 6920: /* module 27 call 8 */ return 2; - case 7433: /* module 29 call 9 */ + case 6921: /* module 27 call 9 */ return 4; case 7680: /* module 30 call 0 */ return 2; @@ -3768,7 +3768,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7424: /* module 29 call 0 */ + case 6912: /* module 27 call 0 */ switch (itemIdx) { case 0: @@ -3780,7 +3780,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7425: /* module 29 call 1 */ + case 6913: /* module 27 call 1 */ switch (itemIdx) { case 0: @@ -3792,7 +3792,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7426: /* module 29 call 2 */ + case 6914: /* module 27 call 2 */ switch (itemIdx) { case 0: @@ -3804,13 +3804,13 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7427: /* module 29 call 3 */ + case 6915: /* module 27 call 3 */ switch (itemIdx) { default: return NULL; } - case 7428: /* module 29 call 4 */ + case 6916: /* module 27 call 4 */ switch (itemIdx) { case 0: @@ -3822,7 +3822,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7429: /* module 29 call 5 */ + case 6917: /* module 27 call 5 */ switch (itemIdx) { case 0: @@ -3838,7 +3838,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7430: /* module 29 call 6 */ + case 6918: /* module 27 call 6 */ switch (itemIdx) { case 0: @@ -3848,7 +3848,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7431: /* module 29 call 7 */ + case 6919: /* module 27 call 7 */ switch (itemIdx) { case 0: @@ -3858,7 +3858,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7432: /* module 29 call 8 */ + case 6920: /* module 27 call 8 */ switch (itemIdx) { case 0: @@ -3868,7 +3868,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 7433: /* module 29 call 9 */ + case 6921: /* module 27 call 9 */ switch (itemIdx) { case 0: @@ -5947,7 +5947,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7424: /* module 29 call 0 */ + case 6912: /* module 27 call 0 */ switch (itemIdx) { case 0: /* proxy_proxy_V2 - real */; @@ -5968,7 +5968,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7425: /* module 29 call 1 */ + case 6913: /* module 27 call 1 */ switch (itemIdx) { case 0: /* proxy_add_proxy_V2 - delegate */; @@ -5989,7 +5989,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7426: /* module 29 call 2 */ + case 6914: /* module 27 call 2 */ switch (itemIdx) { case 0: /* proxy_remove_proxy_V2 - delegate */; @@ -6010,13 +6010,13 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7427: /* module 29 call 3 */ + case 6915: /* module 27 call 3 */ switch (itemIdx) { default: return parser_no_data; } - case 7428: /* module 29 call 4 */ + case 6916: /* module 27 call 4 */ switch (itemIdx) { case 0: /* proxy_anonymous_V2 - proxy_type */; @@ -6037,7 +6037,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7429: /* module 29 call 5 */ + case 6917: /* module 27 call 5 */ switch (itemIdx) { case 0: /* proxy_kill_anonymous_V2 - spawner */; @@ -6068,7 +6068,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7430: /* module 29 call 6 */ + case 6918: /* module 27 call 6 */ switch (itemIdx) { case 0: /* proxy_announce_V2 - real */; @@ -6084,7 +6084,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7431: /* module 29 call 7 */ + case 6919: /* module 27 call 7 */ switch (itemIdx) { case 0: /* proxy_reject_announcement_V2 - delegate */; @@ -6100,7 +6100,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7432: /* module 29 call 8 */ + case 6920: /* module 27 call 8 */ switch (itemIdx) { case 0: /* proxy_remove_announcement_V2 - real */; @@ -6116,7 +6116,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 7433: /* module 29 call 9 */ + case 6921: /* module 27 call 9 */ switch (itemIdx) { case 0: /* proxy_proxy_announced_V2 - delegate */; @@ -7224,15 +7224,15 @@ bool _getMethod_IsNestingSupported_V2(uint8_t moduleIdx, uint8_t callIdx) case 7178: // Identity:Kill identity case 7181: // Identity:Remove sub case 7182: // Identity:Quit sub - case 7425: // Proxy:Add proxy - case 7426: // Proxy:Remove proxy - case 7427: // Proxy:Remove proxies - case 7428: // Proxy:Anonymous - case 7429: // Proxy:Kill anonymous - case 7430: // Proxy:announce - case 7431: // Proxy: Reject announcement - case 7432: // Proxy: Remove announcement - case 7433: // Proxy:Proxy announced + case 6913: // Proxy:Add proxy + case 6914: // Proxy:Remove proxy + case 6915: // Proxy:Remove proxies + case 6916: // Proxy:Anonymous + case 6917: // Proxy:Kill anonymous + case 6918: // Proxy:announce + case 6919: // Proxy: Reject announcement + case 6920: // Proxy: Remove announcement + case 6921: // Proxy:Proxy announced case 8192: // TreasuryReward:Set current payout case 8193: // TreasuryReward:Set minting interval case 9472: // Bounties:Propose bounty diff --git a/app/src/substrate_methods_V2.h b/app/src/substrate_methods_V2.h index 9e5c285..23ae0af 100644 --- a/app/src/substrate_methods_V2.h +++ b/app/src/substrate_methods_V2.h @@ -42,7 +42,7 @@ extern "C" { #define PD_CALL_VESTING_V2 25 #define PD_CALL_RECOVERY_V22 24 #define PD_CALL_IDENTITY_V2 28 -#define PD_CALL_PROXY_V2 29 +#define PD_CALL_PROXY_V2 27 #define PD_CALL_MULTISIG_V2 30 #define PD_CALL_TREASURYREWARD_V2 32 #define PD_CALL_BOUNTIES_V2 37 From 8bcf8c9dcb6e9950ffad59dfeafd53bdbf92f1e8 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 19 Nov 2023 22:37:58 +0530 Subject: [PATCH 03/37] prepend the keyword proxy --- app/src/substrate_strings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/substrate_strings.h b/app/src/substrate_strings.h index 7bcaff5..4a01805 100644 --- a/app/src/substrate_strings.h +++ b/app/src/substrate_strings.h @@ -221,7 +221,7 @@ static const char* STR_IT_keep_alive = "Keep alive"; static const char* STR_ME_REMOVE_PROXIES = "Remove proxies"; static const char* STR_ME_ANONYMOUS = "Anonymous"; static const char* STR_ME_KILL_ANONYMOUS = "Kill anonymous"; -static const char* STR_ME_ANNOUNCE = "Announce"; +static const char* STR_ME_ANNOUNCE = "Proxy Announce"; static const char* STR_ME_REMOVE_ANNOUNCEMENT = "Remove announcement"; static const char* STR_ME_REJECT_ANNOUNCEMENT = "Reject announcement"; static const char* STR_ME_PROXY_ANNOUNCED = "Proxy announced"; From 472b67605cf107ee27212d758ca4a9fbf7eceba1 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:30:52 +0530 Subject: [PATCH 04/37] fix null module value. --- app/src/substrate_dispatch_V2.c | 2 +- app/src/substrate_strings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/substrate_dispatch_V2.c b/app/src/substrate_dispatch_V2.c index 5938040..5695912 100644 --- a/app/src/substrate_dispatch_V2.c +++ b/app/src/substrate_dispatch_V2.c @@ -1977,7 +1977,7 @@ const char *_getMethod_ModuleName_V2(uint8_t moduleIdx) return STR_MO_RECOVERY; case 28: return STR_MO_IDENTITY; - case 29: + case 27: return STR_MO_PROXY; case 30: return STR_MO_MULTISIG; diff --git a/app/src/substrate_strings.h b/app/src/substrate_strings.h index 4a01805..7bcaff5 100644 --- a/app/src/substrate_strings.h +++ b/app/src/substrate_strings.h @@ -221,7 +221,7 @@ static const char* STR_IT_keep_alive = "Keep alive"; static const char* STR_ME_REMOVE_PROXIES = "Remove proxies"; static const char* STR_ME_ANONYMOUS = "Anonymous"; static const char* STR_ME_KILL_ANONYMOUS = "Kill anonymous"; -static const char* STR_ME_ANNOUNCE = "Proxy Announce"; +static const char* STR_ME_ANNOUNCE = "Announce"; static const char* STR_ME_REMOVE_ANNOUNCEMENT = "Remove announcement"; static const char* STR_ME_REJECT_ANNOUNCEMENT = "Reject announcement"; static const char* STR_ME_PROXY_ANNOUNCED = "Proxy announced"; From c63d680f9366460fa5b94d13ae158f463f9be83e Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:20:16 +0530 Subject: [PATCH 05/37] more test cases-proxy announce --- tests/testcases_current.json | 106 +++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 1c03920..94751df 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14508,5 +14508,111 @@ "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 787, + "name": "Proxy_Announce", + "blob": "1b06decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef6c1b0bbfd700f44deeac23f634fae3b8a78ffa751989932a7924bc4ae3a22d17d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 6c1b0bbfd700f44deeac23f634fae3b8a78ffa", + "2 | Call hash [2/2] : 751989932a7924bc4ae3a22d17", + "3 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 6c1b0bbfd700f44deeac23f634fae3b8a78ffa", + "2 | Call hash [2/2] : 751989932a7924bc4ae3a22d17", + "3 | Chain : Edgeware", + "4 | Nonce : 50283", + "5 | Tip : EDG 0.000000000055555555", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 788, + "name": "Proxy_Announce", + "blob": "1b06decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efa18e1571c3dc0d7c2bbc1235e9c2d9daf8356100229f11b37bd288f4469fa480d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : a18e1571c3dc0d7c2bbc1235e9c2d9daf83561", + "2 | Call hash [2/2] : 00229f11b37bd288f4469fa480" + ], + "output_expert": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : a18e1571c3dc0d7c2bbc1235e9c2d9daf83561", + "2 | Call hash [2/2] : 00229f11b37bd288f4469fa480", + "3 | Chain : Edgeware", + "4 | Nonce : 100", + "5 | Era Phase : 61", + "6 | Era Period : 64", + "7 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "7 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 789, + "name": "Proxy_Announce", + "blob": "1b06decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef52d08db42612b2c9fc2b4a5f9d7ec0d2e939d30e6eef69ad6127b122e98386f4d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 52d08db42612b2c9fc2b4a5f9d7ec0d2e939d3", + "2 | Call hash [2/2] : 0e6eef69ad6127b122e98386f4", + "3 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 52d08db42612b2c9fc2b4a5f9d7ec0d2e939d3", + "2 | Call hash [2/2] : 0e6eef69ad6127b122e98386f4", + "3 | Chain : Edgeware", + "4 | Nonce : 1", + "5 | Tip : EDG 0.000000000000000987", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 790, + "name": "Proxy_Announce", + "blob": "1b06decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef573e986889e4ec0ec810c645671ba0103b9e597d307019d9c133e4337c8684f8d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 573e986889e4ec0ec810c645671ba0103b9e59", + "2 | Call hash [2/2] : 7d307019d9c133e4337c8684f8", + "3 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Announce", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 573e986889e4ec0ec810c645671ba0103b9e59", + "2 | Call hash [2/2] : 7d307019d9c133e4337c8684f8", + "3 | Chain : Edgeware", + "4 | Nonce : 2339", + "5 | Tip : EDG 0.00000000123456789", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 449d63bf162554aa7379ba05783ddb2b4194e453 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:49:42 +0530 Subject: [PATCH 06/37] initial test-proxy anonymous --- tests/testcases_current.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 94751df..9d1fa80 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14614,5 +14614,32 @@ "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 791, + "name": "Proxy_Anonymous", + "blob": "1b0400250100000100d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Any", + "2 | Delay : 293", + "3 | Index : 1", + "4 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "4 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Any", + "2 | Delay : 293", + "3 | Index : 1", + "4 | Chain : Edgeware", + "5 | Nonce : 0", + "6 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "6 | Tip [2/2] : 456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From eb5c69a0a428ef11557b0f7768ad0872887177dc Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:09:22 +0530 Subject: [PATCH 07/37] test different proxy type value --- tests/testcases_current.json | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 9d1fa80..94fa25d 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14641,5 +14641,53 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 792, + "name": "Proxy_Anonymous", + "blob": "1b0400b63500002c01d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Staking", + "2 | Delay : 13750", + "3 | Index : 300", + "4 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Staking", + "2 | Delay : 13750", + "3 | Index : 300", + "4 | Chain : Edgeware", + "5 | Nonce : 50283", + "6 | Tip : EDG 0.000000000055555555", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 793, + "name": "Proxy_Anonymous", + "blob": "1b0400ffffffffffffd5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Any", + "2 | Delay : 4294967295", + "3 | Index : 65535" + ], + "output_expert": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Any", + "2 | Delay : 4294967295", + "3 | Index : 65535", + "4 | Chain : Edgeware", + "5 | Nonce : 100", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From a540dfbd95316ba303e6bb0b6e8f617096aa0d8d Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 21 Nov 2023 18:23:33 +0530 Subject: [PATCH 08/37] more test proxy anonymous --- tests/testcases_current.json | 52 +++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 94fa25d..c56f029 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14645,7 +14645,7 @@ { "index": 792, "name": "Proxy_Anonymous", - "blob": "1b0400b63500002c01d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b0403b63500002c01d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Anonymous", "1 | Proxy type : Staking", @@ -14689,5 +14689,55 @@ "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 794, + "name": "Proxy_Anonymous", + "blob": "1b040150be1c00ce0bd503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : NonTransfer", + "2 | Delay : 1883728", + "3 | Index : 3022", + "4 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : NonTransfer", + "2 | Delay : 1883728", + "3 | Index : 3022", + "4 | Chain : Edgeware", + "5 | Nonce : 1", + "6 | Tip : EDG 0.000000000000000987", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 795, + "name": "Proxy_Anonymous", + "blob": "1b040226c205000100d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Governance", + "2 | Delay : 377382", + "3 | Index : 1", + "4 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Anonymous", + "1 | Proxy type : Governance", + "2 | Delay : 377382", + "3 | Index : 1", + "4 | Chain : Edgeware", + "5 | Nonce : 2339", + "6 | Tip : EDG 0.00000000123456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 0a8b9b141e61868651531179eb11bca8416ab18d Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:03:54 +0530 Subject: [PATCH 09/37] initial-test_kill-anonymous --- tests/testcases_current.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index c56f029..2f09918 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14739,5 +14739,38 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 796, + "name": "Proxy_Kill_Anonymous", + "blob": "1b05decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0201007ecf46007ecf4600d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Governance", + "3 | Index : 1", + "4 | Height : 1160159", + "5 | Ext index : 1160159", + "6 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "6 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Governance", + "3 | Index : 1", + "4 | Height : 1160159", + "5 | Ext index : 1160159", + "6 | Chain : Edgeware", + "7 | Nonce : 0", + "8 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "8 | Tip [2/2] : 456789", + "9 | Era Phase : 61", + "10 | Era Period : 64", + "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 9107abdef911f2f09f2a3d32405e1c934827ac93 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:44:19 +0530 Subject: [PATCH 10/37] more tests kill anonymous proxy --- tests/testcases_current.json | 122 +++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 2f09918..72cc14f 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14772,5 +14772,127 @@ "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 797, + "name": "Proxy_Kill_Anonymous", + "blob": "1b05decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0100047ecf4600d167d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : NonTransfer", + "3 | Index : 1024", + "4 | Height : 1160159", + "5 | Ext index : 6644", + "6 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : NonTransfer", + "3 | Index : 1024", + "4 | Height : 1160159", + "5 | Ext index : 6644", + "6 | Chain : Edgeware", + "7 | Nonce : 50283", + "8 | Tip : EDG 0.000000000055555555", + "9 | Era Phase : 61", + "10 | Era Period : 64", + "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 798, + "name": "Proxy_Kill_Anonymous", + "blob": "1b05decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef030004d1677ecf4600d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Index : 1024", + "4 | Height : 6644", + "5 | Ext index : 1160159" + ], + "output_expert": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Index : 1024", + "4 | Height : 6644", + "5 | Ext index : 1160159", + "6 | Chain : Edgeware", + "7 | Nonce : 100", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 799, + "name": "Proxy_Kill_Anonymous", + "blob": "1b05decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef034e037ecf46007ecf4600d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Index : 846", + "4 | Height : 1160159", + "5 | Ext index : 1160159", + "6 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Index : 846", + "4 | Height : 1160159", + "5 | Ext index : 1160159", + "6 | Chain : Edgeware", + "7 | Nonce : 1", + "8 | Tip : EDG 0.000000000000000987", + "9 | Era Phase : 61", + "10 | Era Period : 64", + "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 800, + "name": "Proxy_Kill_Anonymous", + "blob": "1b05decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef005c00ad3d7ecf4600d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Index : 92", + "4 | Height : 3947", + "5 | Ext index : 1160159", + "6 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Kill anonymous", + "1 | Spawner [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Spawner [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Index : 92", + "4 | Height : 3947", + "5 | Ext index : 1160159", + "6 | Chain : Edgeware", + "7 | Nonce : 2339", + "8 | Tip : EDG 0.00000000123456789", + "9 | Era Phase : 61", + "10 | Era Period : 64", + "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 017d60fa5c5d241f5c8325948226ce7eca75ce66 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:07:21 +0530 Subject: [PATCH 11/37] initial test proxy proxy --- tests/testcases_current.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 72cc14f..369a56a 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14894,5 +14894,38 @@ "11 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "11 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 801, + "name": "Proxy_Proxy", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01020000e6c0a143d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : Governance", + "3 | Call [1/2] : Fill block", + "3 | Call [2/2] : 113.4674150%", + "4 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "4 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : Governance", + "3 | Call [1/2] : Fill block", + "3 | Call [2/2] : 113.4674150%", + "4 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "4 | Tip [2/2] : 456789", + "5 | Chain : Edgeware", + "6 | Nonce : 0", + "7 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "7 | Tip [2/2] : 456789", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 93ea90ede9155b9d414ce743c5e04ec7f58aefc9 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:20:49 +0530 Subject: [PATCH 12/37] fix initial test and add more test --- tests/testcases_current.json | 51 +++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 369a56a..c9e535e 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14916,16 +14916,47 @@ "2 | Force proxy type : Governance", "3 | Call [1/2] : Fill block", "3 | Call [2/2] : 113.4674150%", - "4 | Tip [1/2] : EDG 123456789012345678901.234567890123", - "4 | Tip [2/2] : 456789", - "5 | Chain : Edgeware", - "6 | Nonce : 0", - "7 | Tip [1/2] : EDG 123456789012345678901.234567890123", - "7 | Tip [2/2] : 456789", - "8 | Era Phase : 61", - "9 | Era Period : 64", - "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", - "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + "4 | Chain : Edgeware", + "5 | Nonce : 0", + "6 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "6 | Tip [2/2] : 456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 802, + "name": "Proxy_Proxy", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01000f006d0f00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efd503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : Governance", + "3 | Call [1/4] : Propose spend", + "3 | Call [2/4] : EDG 0.000000000000000987", + "3 | Call [2/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [2/4] : 6dyKjVhjr", + "4 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : Governance", + "3 | Call [1/4] : Propose spend", + "3 | Call [2/4] : EDG 0.000000000000000987", + "3 | Call [2/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [2/4] : 6dyKjVhjr", + "4 | Chain : Edgeware", + "5 | Nonce : 50283", + "6 | Tip : EDG 0.000000000055555555", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] } ] From be1f0b9d1d95ef63742a8b12a717b5669737f725 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:25:31 +0530 Subject: [PATCH 13/37] minor fix --- tests/testcases_current.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index c9e535e..a764ff7 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14934,22 +14934,22 @@ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Governance", + "2 | Force proxy type : Any", "3 | Call [1/4] : Propose spend", "3 | Call [2/4] : EDG 0.000000000000000987", - "3 | Call [2/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [2/4] : 6dyKjVhjr", + "3 | Call [3/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [4/4] : 6dyKjVhjr", "4 | Tip : EDG 0.000000000055555555" ], "output_expert": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Governance", + "2 | Force proxy type : Any", "3 | Call [1/4] : Propose spend", "3 | Call [2/4] : EDG 0.000000000000000987", - "3 | Call [2/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [2/4] : 6dyKjVhjr", + "3 | Call [3/4] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [4/4] : 6dyKjVhjr", "4 | Chain : Edgeware", "5 | Nonce : 50283", "6 | Tip : EDG 0.000000000055555555", From 3b509eb1538e4080746f6f5012953a2d46795a7f Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:40:01 +0530 Subject: [PATCH 14/37] proxy test with staking --- tests/testcases_current.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index a764ff7..7b3433d 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14958,5 +14958,38 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 803, + "name": "Proxy_Proxy", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0101080000decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef03d202964900d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : NonTransfer", + "3 | Call [1/5] : Bond", + "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [3/4] : 6dyKjVhjr", + "3 | Call [4/5] : EDG 0.00000000123456789", + "3 | Call [5/5] : Staked" + ], + "output_expert": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : NonTransfer", + "3 | Call [1/5] : Bond", + "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [3/4] : 6dyKjVhjr", + "3 | Call [4/5] : EDG 0.00000000123456789", + "3 | Call [5/5] : Staked", + "4 | Chain : Edgeware", + "5 | Nonce : 100", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 71e6a72bcb5b5acaecddc4fc7eae2b8e2081d206 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:33:56 +0530 Subject: [PATCH 15/37] second last test - proxy proxy --- tests/testcases_current.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 7b3433d..cfe2bfc 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14991,5 +14991,37 @@ "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 804, + "name": "Proxy_Proxy", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01012b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : NonTransfer", + "3 | Call [1/3] : Request preimage", + "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", + "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", + "4 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : NonTransfer", + "3 | Call [1/3] : Request preimage", + "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", + "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", + "4 | Tip : EDG 0.000000000000000987", + "5 | Chain : Edgeware", + "6 | Nonce : 1", + "7 | Tip : EDG 0.000000000000000987", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 728097862831ecc8eb526b3141cbdffb360a558c Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:39:25 +0530 Subject: [PATCH 16/37] force proxy type to staking --- tests/testcases_current.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index cfe2bfc..de51c13 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14995,12 +14995,12 @@ { "index": 804, "name": "Proxy_Proxy", - "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01012b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01032b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : NonTransfer", + "2 | Force proxy type : Staking", "3 | Call [1/3] : Request preimage", "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", @@ -15010,7 +15010,7 @@ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : NonTransfer", + "2 | Force proxy type : Staking", "3 | Call [1/3] : Request preimage", "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", From fc50bdbd1908b72fa5aa3f9bc3ff372c70ee9b74 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:49:50 +0530 Subject: [PATCH 17/37] change test non transfer to staking --- tests/testcases_current.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index de51c13..4f88fc7 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14962,12 +14962,12 @@ { "index": 803, "name": "Proxy_Proxy", - "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0101080000decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef03d202964900d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0103080000decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef03d202964900d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : NonTransfer", + "2 | Force proxy type : Staking", "3 | Call [1/5] : Bond", "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "3 | Call [3/4] : 6dyKjVhjr", @@ -14978,7 +14978,7 @@ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : NonTransfer", + "2 | Force proxy type : Staking", "3 | Call [1/5] : Bond", "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "3 | Call [3/4] : 6dyKjVhjr", From d8339063165869d186479375e097ffbc7480c5ef Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:40:08 +0530 Subject: [PATCH 18/37] final test proxy proxy --- tests/testcases_current.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 4f88fc7..0e6b12f 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15023,5 +15023,34 @@ "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 805, + "name": "Proxy_Proxy", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef000000e6c0a143d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : None", + "3 | Call [1/2] : Fill block", + "3 | Call [2/2] : 113.4674150%", + "4 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Proxy", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Force proxy type : None", + "3 | Call [1/2] : Fill block", + "3 | Call [2/2] : 113.4674150%", + "4 | Chain : Edgeware", + "5 | Nonce : 2339", + "6 | Tip : EDG 0.00000000123456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 5d0f65c74f00d873cdf06065ecc5fde44a77c7c7 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Fri, 24 Nov 2023 22:10:38 +0530 Subject: [PATCH 19/37] change force proxy type to governance --- tests/testcases_current.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 0e6b12f..ee59b48 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14995,12 +14995,12 @@ { "index": 804, "name": "Proxy_Proxy", - "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01032b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01022b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Staking", + "2 | Force proxy type : Governance", "3 | Call [1/3] : Request preimage", "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", @@ -15010,7 +15010,7 @@ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Staking", + "2 | Force proxy type : Governance", "3 | Call [1/3] : Request preimage", "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", From 86b1dad405426aafd9f4a02fab60a0486f99d127 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 26 Nov 2023 20:59:30 +0530 Subject: [PATCH 20/37] test a call which supports nesting --- tests/testcases_current.json | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index ee59b48..f3f905d 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14995,25 +14995,27 @@ { "index": 804, "name": "Proxy_Proxy", - "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01022b0291b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01000600003ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2a8ed73e0dd503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Governance", - "3 | Call [1/3] : Request preimage", - "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", - "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", + "2 | Force proxy type : Any", + "3 | Call [1/4] : Transfer", + "3 | Call [2/4] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "3 | Call [3/4] : rWMeyMVYL", + "3 | Call [4/4] : EDG 0.000000000055555555", "4 | Tip : EDG 0.000000000000000987" ], "output_expert": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", - "2 | Force proxy type : Governance", - "3 | Call [1/3] : Request preimage", - "3 | Call [2/3] : 91b171bb158e2d3848fa23a9f1c25182fb8e20", - "3 | Call [3/3] : 313b2c1eb49219da7a70ce90c3", + "2 | Force proxy type : Any", + "3 | Call [1/4] : Transfer", + "3 | Call [2/4] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "3 | Call [3/4] : rWMeyMVYL", + "3 | Call [4/4] : EDG 0.000000000055555555", "4 | Tip : EDG 0.000000000000000987", "5 | Chain : Edgeware", "6 | Nonce : 1", From 9ec8f675e3edc7796f52f27dadcef379a5c952e8 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:54:28 +0530 Subject: [PATCH 21/37] proxy with council subcall --- tests/testcases_current.json | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index f3f905d..b78b4eb 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14962,28 +14962,30 @@ { "index": 803, "name": "Proxy_Proxy", - "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0103080000decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef03d202964900d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b003ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2a01030b0004266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2e01decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef04000000d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", "2 | Force proxy type : Staking", - "3 | Call [1/5] : Bond", - "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [3/4] : 6dyKjVhjr", - "3 | Call [4/5] : EDG 0.00000000123456789", - "3 | Call [5/5] : Staked" + "3 | Call [1/6] : Set Members", + "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "3 | Call [3/6] : ZVciuFgwe", + "3 | Call [4/6] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [5/6] : 6dyKjVhjr", + "3 | Call [6/6] : 4" ], "output_expert": [ "0 | Proxy : Proxy", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", "2 | Force proxy type : Staking", - "3 | Call [1/5] : Bond", - "3 | Call [2/5] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [3/4] : 6dyKjVhjr", - "3 | Call [4/5] : EDG 0.00000000123456789", - "3 | Call [5/5] : Staked", + "3 | Call [1/6] : Set Members", + "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "3 | Call [3/6] : ZVciuFgwe", + "3 | Call [4/6] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "3 | Call [5/6] : 6dyKjVhjr", + "3 | Call [6/6] : 4", "4 | Chain : Edgeware", "5 | Nonce : 100", "6 | Era Phase : 61", From 36775e9ce7c7ae8d6603499fd137c8e023c15a29 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:58:07 +0530 Subject: [PATCH 22/37] change real account --- tests/testcases_current.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index b78b4eb..1a48fad 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14965,8 +14965,8 @@ "blob": "1b003ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2a01030b0004266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2e01decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef04000000d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", - "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "1 | Real [2/2] : 6dyKjVhjr", + "1 | Real [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Real [2/2] : rWMeyMVYL", "2 | Force proxy type : Staking", "3 | Call [1/6] : Set Members", "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", @@ -14977,8 +14977,8 @@ ], "output_expert": [ "0 | Proxy : Proxy", - "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "1 | Real [2/2] : 6dyKjVhjr", + "1 | Real [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Real [2/2] : rWMeyMVYL", "2 | Force proxy type : Staking", "3 | Call [1/6] : Set Members", "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", From 71f730cc27655a00950737e390ac340c3bbcf4bc Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:40:51 +0530 Subject: [PATCH 23/37] add nesting call for proxy test --- tests/testcases_current.json | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 1a48fad..0abac7c 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -14962,30 +14962,26 @@ { "index": 803, "name": "Proxy_Proxy", - "blob": "1b003ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2a01030b0004266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2e01decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef04000000d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "blob": "1b00decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01030b010000e6c0a14310d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ "0 | Proxy : Proxy", - "1 | Real [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", - "1 | Real [2/2] : rWMeyMVYL", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", "2 | Force proxy type : Staking", - "3 | Call [1/6] : Set Members", - "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", - "3 | Call [3/6] : ZVciuFgwe", - "3 | Call [4/6] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [5/6] : 6dyKjVhjr", - "3 | Call [6/6] : 4" + "3 | Call [1/4] : Execute", + "3 | Call [2/4] : Fill block", + "3 | Call [3/4] : 113.4674150%", + "3 | Call [4/4] : 4" ], "output_expert": [ "0 | Proxy : Proxy", - "1 | Real [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", - "1 | Real [2/2] : rWMeyMVYL", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", "2 | Force proxy type : Staking", - "3 | Call [1/6] : Set Members", - "3 | Call [2/6] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", - "3 | Call [3/6] : ZVciuFgwe", - "3 | Call [4/6] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", - "3 | Call [5/6] : 6dyKjVhjr", - "3 | Call [6/6] : 4", + "3 | Call [1/4] : Execute", + "3 | Call [2/4] : Fill block", + "3 | Call [3/4] : 113.4674150%", + "3 | Call [4/4] : 4", "4 | Chain : Edgeware", "5 | Nonce : 100", "6 | Era Phase : 61", From 7087ec36ad9d6f639fb923eb64cffc9dcb236354 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:44:07 +0530 Subject: [PATCH 24/37] remove additional tip --- tests/testcases_current.json | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 0abac7c..d0d8cf9 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15014,14 +15014,13 @@ "3 | Call [2/4] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", "3 | Call [3/4] : rWMeyMVYL", "3 | Call [4/4] : EDG 0.000000000055555555", - "4 | Tip : EDG 0.000000000000000987", - "5 | Chain : Edgeware", - "6 | Nonce : 1", - "7 | Tip : EDG 0.000000000000000987", - "8 | Era Phase : 61", - "9 | Era Period : 64", - "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", - "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + "4 | Chain : Edgeware", + "5 | Nonce : 1", + "6 | Tip : EDG 0.000000000000000987", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] }, { From da404d9f54c0daaa7adebbed9392a0062dfdea76 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:06:40 +0530 Subject: [PATCH 25/37] inital test-proxy announced --- tests/testcases_current.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index d0d8cf9..2b8396e 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15051,5 +15051,40 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 806, + "name": "Proxy_Announced", + "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01000000e6c0a143d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Any", + "4 | Call [1/2] : Fill block", + "4 | Call [2/2] : 113.4674150%", + "5 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "5 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Any", + "4 | Call [1/2] : Fill block", + "4 | Call [2/2] : 113.4674150%", + "5 | Chain : Edgeware", + "6 | Nonce : 0", + "7 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "7 | Tip [2/2] : 456789", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 0626242cc38ce0e18f397321a7f65db12c52d0e8 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:27:25 +0530 Subject: [PATCH 26/37] test proxy announced with non transfer type --- tests/testcases_current.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 2b8396e..d290243 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15086,5 +15086,38 @@ "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 807, + "name": "Proxy_Announced", + "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01010f02ce830700d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Non Transfer", + "4 | Call [1/2] : Approve proposal", + "4 | Call [2/2] : 123123", + "5 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Proxy Announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Non Transfer", + "4 | Call [1/2] : Approve proposal", + "4 | Call [2/2] : 123123", + "5 | Chain : Edgeware", + "6 | Nonce : 50283", + "7 | Tip : EDG 0.000000000055555555", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 78381975c670bb1c8ab4d978fddad3a98fb8b712 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:31:24 +0530 Subject: [PATCH 27/37] remove space --- tests/testcases_current.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index d290243..660619b 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15097,7 +15097,7 @@ "1 | Delegate [2/2] : rWMeyMVYL", "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "2 | Real [2/2] : 6dyKjVhjr", - "3 | Force proxy type : Non Transfer", + "3 | Force proxy type : NonTransfer", "4 | Call [1/2] : Approve proposal", "4 | Call [2/2] : 123123", "5 | Tip : EDG 0.000000000055555555" @@ -15108,7 +15108,7 @@ "1 | Delegate [2/2] : rWMeyMVYL", "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "2 | Real [2/2] : 6dyKjVhjr", - "3 | Force proxy type : Non Transfer", + "3 | Force proxy type : NonTransfer", "4 | Call [1/2] : Approve proposal", "4 | Call [2/2] : 123123", "5 | Chain : Edgeware", From b01a240c2b6f4520c197d268696279a5cf44e15a Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:00:41 +0530 Subject: [PATCH 28/37] fix casing and add new test --- tests/testcases_current.json | 37 +++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 660619b..6910dfa 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15103,7 +15103,7 @@ "5 | Tip : EDG 0.000000000055555555" ], "output_expert": [ - "0 | Proxy : Proxy Announced", + "0 | Proxy : Proxy announced", "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", "1 | Delegate [2/2] : rWMeyMVYL", "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", @@ -15119,5 +15119,40 @@ "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 808, + "name": "Proxy_Announced", + "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01020f006d0f00266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2ed5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Governance", + "4 | Call [1/4] : Propose spend", + "4 | Call [2/4]: EDG 0.000000000000000987", + "4 | Call [3/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [4/4] : ZVciuFgwe" + ], + "output_expert": [ + "0 | Proxy : Announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Governance", + "4 | Call [1/4] : Propose spend", + "4 | Call [2/4]: EDG 0.000000000000000987", + "4 | Call [3/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [4/4] : ZVciuFgwe", + "5 | Chain : Edgeware", + "6 | Nonce : 100", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From df28e925664eafe7601f70011aca6a04832eea34 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:33:36 +0530 Subject: [PATCH 29/37] minor fix --- tests/testcases_current.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 6910dfa..222ec1f 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15125,26 +15125,26 @@ "name": "Proxy_Announced", "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef01020f006d0f00266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2ed5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", "output": [ - "0 | Proxy : Announced", + "0 | Proxy : Proxy announced", "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", "1 | Delegate [2/2] : rWMeyMVYL", "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "2 | Real [2/2] : 6dyKjVhjr", "3 | Force proxy type : Governance", "4 | Call [1/4] : Propose spend", - "4 | Call [2/4]: EDG 0.000000000000000987", + "4 | Call [2/4] : EDG 0.000000000000000987", "4 | Call [3/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", "4 | Call [4/4] : ZVciuFgwe" ], "output_expert": [ - "0 | Proxy : Announced", + "0 | Proxy : Proxy announced", "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", "1 | Delegate [2/2] : rWMeyMVYL", "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "2 | Real [2/2] : 6dyKjVhjr", "3 | Force proxy type : Governance", "4 | Call [1/4] : Propose spend", - "4 | Call [2/4]: EDG 0.000000000000000987", + "4 | Call [2/4] : EDG 0.000000000000000987", "4 | Call [3/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", "4 | Call [4/4] : ZVciuFgwe", "5 | Chain : Edgeware", From e0dad892835399dd274101d148a3d3ebeae7256c Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:53:01 +0530 Subject: [PATCH 30/37] test with force proxy type as staking --- tests/testcases_current.json | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 222ec1f..ed21608 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15154,5 +15154,42 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 809, + "name": "Proxy_Announced", + "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0103060000266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2e8ed73e0dd503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Staking", + "4 | Call [1/4] : Transfer", + "4 | Call [2/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [3/4] : ZVciuFgwe", + "4 | Call [4/4] : EDG 0.000000000055555555", + "5 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : Staking", + "4 | Call [1/4] : Transfer", + "4 | Call [2/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [3/4] : ZVciuFgwe", + "4 | Call [4/4] : EDG 0.000000000055555555", + "5 | Chain : Edgeware", + "6 | Nonce : 1", + "7 | Tip : EDG 0.000000000000000987", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From b897e5734524a3b541e7ab9d90e5e18918bf98cb Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:19:34 +0530 Subject: [PATCH 31/37] set force proxy type as none --- tests/testcases_current.json | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index ed21608..ef2154f 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15191,5 +15191,42 @@ "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 810, + "name": "Proxy_Announced", + "blob": "1b093ccf4e8f06004e01dafdda581d9d33a9fc1ef57a1d7923ce926d7d381758bb2adecd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef00060000266e29b15633c18b7fe73208d5899274986eb07422c496d903900cec4312fb2e8ed73e0dd5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : None", + "4 | Call [1/4] : Transfer", + "4 | Call [2/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [3/4] : ZVciuFgwe", + "4 | Call [4/4] : EDG 0.000000000055555555", + "5 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Proxy announced", + "1 | Delegate [1/2] : itMGQ4fPquMQqxN2i5i3UxKLjLYQNnDyLbPLMe", + "1 | Delegate [2/2] : rWMeyMVYL", + "2 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "2 | Real [2/2] : 6dyKjVhjr", + "3 | Force proxy type : None", + "4 | Call [1/4] : Transfer", + "4 | Call [2/4] : iP1MYabx8iyh9X8ZdhrVPk9S9Zp3u8H4nE48kx", + "4 | Call [3/4] : ZVciuFgwe", + "4 | Call [4/4] : EDG 0.000000000055555555", + "5 | Chain : Edgeware", + "6 | Nonce : 2339", + "7 | Tip : EDG 0.00000000123456789", + "8 | Era Phase : 61", + "9 | Era Period : 64", + "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 7ef0d56ba17eb9cf2eddda2dd9906fd24abed4e5 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:08:21 +0530 Subject: [PATCH 32/37] add test proxy remove announcement --- tests/testcases_current.json | 134 +++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index ef2154f..8f664ea 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15228,5 +15228,139 @@ "10 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "10 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 811, + "name": "Proxy_Remove_Announcement", + "blob": "1b07decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efc8724cd2096f58e0641319702a143469c27bcfc9890b3c37c1f1ef81224cae5ed5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : c8724cd2096f58e0641319702a143469c27bcf", + "2 | Call hash [2/2] : c9890b3c37c1f1ef81224cae5e", + "3 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Remove Announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : c8724cd2096f58e0641319702a143469c27bcf", + "2 | Call hash [2/2] : c9890b3c37c1f1ef81224cae5e", + "3 | Chain : Edgeware", + "4 | Nonce : 0", + "5 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "5 | Tip [2/2] : 456789", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 812, + "name": "Proxy_Remove_Announcement", + "blob": "1b07decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef5a8699ffd41bb469d40d9e36d837165c6935df5ac410f10ccd974747b4d81142d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 5a8699ffd41bb469d40d9e36d837165c6935df", + "2 | Call hash [2/2] : 5ac410f10ccd974747b4d81142", + "3 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : 5a8699ffd41bb469d40d9e36d837165c6935df", + "2 | Call hash [2/2] : 5ac410f10ccd974747b4d81142", + "3 | Chain : Edgeware", + "4 | Nonce : 50283", + "5 | Tip : EDG 0.000000000055555555", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 813, + "name": "Proxy_Remove_Announcement", + "blob": "1b07decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efc3578d24fccdac23a498d1f496ff307e3173bb76500f31e505cca9cfa058fbf0d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : c3578d24fccdac23a498d1f496ff307e3173bb", + "2 | Call hash [2/2] : 76500f31e505cca9cfa058fbf0" + ], + "output_expert": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : c3578d24fccdac23a498d1f496ff307e3173bb", + "2 | Call hash [2/2] : 76500f31e505cca9cfa058fbf0", + "3 | Chain : Edgeware", + "4 | Nonce : 100", + "5 | Era Phase : 61", + "6 | Era Period : 64", + "7 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "7 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 814, + "name": "Proxy_Remove_Announcement", + "blob": "1b07decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efad5cac23bd622ee932505e6f12e82be28977b38a08800c1c09b91a0f14864ae6d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : ad5cac23bd622ee932505e6f12e82be28977b3", + "2 | Call hash [2/2] : 8a08800c1c09b91a0f14864ae6", + "3 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : ad5cac23bd622ee932505e6f12e82be28977b3", + "2 | Call hash [2/2] : 8a08800c1c09b91a0f14864ae6", + "3 | Chain : Edgeware", + "4 | Nonce : 1", + "5 | Tip : EDG 0.000000000000000987", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 815, + "name": "Proxy_Remove_Announcement", + "blob": "1b07decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613efe27cd3c86fc272cbf3e58c67132f810bb6b5b9385ac0658408a51b13772ae688d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : e27cd3c86fc272cbf3e58c67132f810bb6b5b9", + "2 | Call hash [2/2] : 385ac0658408a51b13772ae688", + "3 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Remove announcement", + "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Real [2/2] : 6dyKjVhjr", + "2 | Call hash [1/2] : e27cd3c86fc272cbf3e58c67132f810bb6b5b9", + "2 | Call hash [2/2] : 385ac0658408a51b13772ae688", + "3 | Chain : Edgeware", + "4 | Nonce : 2339", + "5 | Tip : EDG 0.00000000123456789", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 277192b8a9d7a0cc011d46a5709dd665655736b3 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:22:27 +0530 Subject: [PATCH 33/37] swap case numbers and module idx --- app/src/substrate_dispatch_V2.c | 24 ++++++++++++------------ app/src/substrate_methods_V2.h | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/substrate_dispatch_V2.c b/app/src/substrate_dispatch_V2.c index 5695912..a0369be 100644 --- a/app/src/substrate_dispatch_V2.c +++ b/app/src/substrate_dispatch_V2.c @@ -1765,10 +1765,10 @@ parser_error_t _readMethod_V2( case 6918: /* module 27 call 6 */ CHECK_ERROR(_readMethod_proxy_announce_V2(c, &method->basic.proxy_announce_V2)) break; - case 6919: /* module 27 call 7 */ + case 6920: /* module 27 call 8 */ CHECK_ERROR(_readMethod_proxy_reject_announcement_V2(c, &method->basic.proxy_reject_announcement_V2)) break; - case 6920: /* module 27 call 8 */ + case 6919: /* module 27 call 7 */ CHECK_ERROR(_readMethod_proxy_remove_announcement_V2(c, &method->basic.proxy_remove_announcement_V2)) break; case 6921: /* module 27 call 9 */ @@ -2266,9 +2266,9 @@ const char *_getMethod_Name_V2_ParserFull(uint16_t callPrivIdx) return STR_ME_KILL_ANONYMOUS; case 6918: /* module 27 call 6 */ return STR_ME_ANNOUNCE; - case 6919: /* module 27 call 7 */ - return STR_ME_REJECT_ANNOUNCEMENT; case 6920: /* module 27 call 8 */ + return STR_ME_REJECT_ANNOUNCEMENT; + case 6919: /* module 27 call 7 */ return STR_ME_REMOVE_ANNOUNCEMENT; case 6921: /* module 27 call 9 */ return STR_ME_PROXY_ANNOUNCED; @@ -2634,10 +2634,10 @@ uint8_t _getMethod_NumItems_V2(uint8_t moduleIdx, uint8_t callIdx) return 5; case 6918: /* module 27 call 6 */ return 2; - case 6919: /* module 27 call 7 */ - return 2; case 6920: /* module 27 call 8 */ return 2; + case 6919: /* module 27 call 7 */ + return 2; case 6921: /* module 27 call 9 */ return 4; case 7680: /* module 30 call 0 */ @@ -3848,7 +3848,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 6919: /* module 27 call 7 */ + case 6920: /* module 27 call 8 */ switch (itemIdx) { case 0: @@ -3858,7 +3858,7 @@ const char *_getMethod_ItemName_V2(uint8_t moduleIdx, uint8_t callIdx, uint8_t i default: return NULL; } - case 6920: /* module 27 call 8 */ + case 6919: /* module 27 call 7 */ switch (itemIdx) { case 0: @@ -6084,7 +6084,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 6919: /* module 27 call 7 */ + case 6920: /* module 27 call 8 */ switch (itemIdx) { case 0: /* proxy_reject_announcement_V2 - delegate */; @@ -6100,7 +6100,7 @@ parser_error_t _getMethod_ItemValue_V2( default: return parser_no_data; } - case 6920: /* module 27 call 8 */ + case 6919: /* module 27 call 7 */ switch (itemIdx) { case 0: /* proxy_remove_announcement_V2 - real */; @@ -7230,8 +7230,8 @@ bool _getMethod_IsNestingSupported_V2(uint8_t moduleIdx, uint8_t callIdx) case 6916: // Proxy:Anonymous case 6917: // Proxy:Kill anonymous case 6918: // Proxy:announce - case 6919: // Proxy: Reject announcement - case 6920: // Proxy: Remove announcement + case 6920: // Proxy: Reject announcement + case 6919: // Proxy: Remove announcement case 6921: // Proxy:Proxy announced case 8192: // TreasuryReward:Set current payout case 8193: // TreasuryReward:Set minting interval diff --git a/app/src/substrate_methods_V2.h b/app/src/substrate_methods_V2.h index 23ae0af..a2458fa 100644 --- a/app/src/substrate_methods_V2.h +++ b/app/src/substrate_methods_V2.h @@ -852,13 +852,13 @@ typedef struct { pd_CallHashOf_V2_t call_hash; } pd_proxy_announce_V2_t; -#define PD_CALL_PROXY_REJECT_ANNOUNCEMENT_V2 7 +#define PD_CALL_PROXY_REJECT_ANNOUNCEMENT_V2 8 typedef struct { pd_AccountId_V2_t delegate; pd_CallHashOf_V2_t call_hash; } pd_proxy_reject_announcement_V2_t; -#define PD_CALL_PROXY_REMOVE_ANNOUNCEMENT_V2 8 +#define PD_CALL_PROXY_REMOVE_ANNOUNCEMENT_V2 7 typedef struct { pd_AccountId_V2_t real; pd_CallHashOf_V2_t call_hash; From 8f1245f58e3eceb9460c83e6952da289724cee00 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:24:10 +0530 Subject: [PATCH 34/37] minor fix --- tests/testcases_current.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 8f664ea..ca7980f 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15239,6 +15239,7 @@ "1 | Real [2/2] : 6dyKjVhjr", "2 | Call hash [1/2] : c8724cd2096f58e0641319702a143469c27bcf", "2 | Call hash [2/2] : c9890b3c37c1f1ef81224cae5e", + "3 | Tip [1/2] : EDG 123456789012345678901.234567890123", "3 | Tip [2/2] : 456789" ], "output_expert": [ From 6f2f12a6d6b48aad885cf8a66bed9132bcde6bc4 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:01:37 +0530 Subject: [PATCH 35/37] add test for remove proxies --- tests/testcases_current.json | 97 +++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index ca7980f..0374f26 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15243,7 +15243,7 @@ "3 | Tip [2/2] : 456789" ], "output_expert": [ - "0 | Proxy : Remove Announcement", + "0 | Proxy : Remove announcement", "1 | Real [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", "1 | Real [2/2] : 6dyKjVhjr", "2 | Call hash [1/2] : c8724cd2096f58e0641319702a143469c27bcf", @@ -15363,5 +15363,100 @@ "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 816, + "name": "Proxy_Remove_Proxies", + "blob": "1b03d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxies", + "1 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "1 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Remove proxies", + "1 | Chain : Edgeware", + "2 | Nonce : 0", + "3 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "3 | Tip [2/2] : 456789", + "4 | Era Phase : 61", + "5 | Era Period : 64", + "6 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "6 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 817, + "name": "Proxy_Remove_Proxies", + "blob": "1b03d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxies", + "1 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Remove proxies", + "1 | Chain : Edgeware", + "2 | Nonce : 50283", + "3 | Tip : EDG 0.000000000055555555", + "4 | Era Phase : 61", + "5 | Era Period : 64", + "6 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "6 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 818, + "name": "Proxy_Remove_Proxies", + "blob": "1b03d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxies" + ], + "output_expert": [ + "0 | Proxy : Remove proxies", + "1 | Chain : Edgeware", + "2 | Nonce : 100", + "3 | Era Phase : 61", + "4 | Era Period : 64", + "5 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "5 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 819, + "name": "Proxy_Remove_Proxies", + "blob": "1b03d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxies", + "1 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Remove proxies", + "1 | Chain : Edgeware", + "2 | Nonce : 1", + "3 | Tip : EDG 0.000000000000000987", + "4 | Era Phase : 61", + "5 | Era Period : 64", + "6 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "6 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 820, + "name": "Proxy_Remove_Proxies", + "blob": "1b03d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxies", + "1 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Remove proxies", + "1 | Chain : Edgeware", + "2 | Nonce : 2339", + "3 | Tip : EDG 0.00000000123456789", + "4 | Era Phase : 61", + "5 | Era Period : 64", + "6 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "6 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 1bf4b8f01933e0fee84485173429245af1fa0db7 Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:14:28 +0530 Subject: [PATCH 36/37] initial test remove proxy --- tests/testcases_current.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 0374f26..8366759 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15458,5 +15458,34 @@ "6 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "6 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 821, + "name": "Proxy_Remove_Proxy", + "blob": "1b02decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0000000000d5030033158139ae28a3dfaac5fe1560a5e9e05c3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Delay : 0", + "4 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "4 | Tip [2/2] : 456789" + ], + "output_expert": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Delay : 0", + "4 | Chain : Edgeware", + "5 | Nonce : 0", + "6 | Tip [1/2] : EDG 123456789012345678901.234567890123", + "6 | Tip [2/2] : 456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ] From 6c0851d62acc38190afbc9b92253d239a0a7a7ba Mon Sep 17 00:00:00 2001 From: Raj Raorane <41839716+Raj-RR1@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:01:43 +0530 Subject: [PATCH 37/37] final test remove proxy --- tests/testcases_current.json | 106 +++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/tests/testcases_current.json b/tests/testcases_current.json index 8366759..05e782b 100644 --- a/tests/testcases_current.json +++ b/tests/testcases_current.json @@ -15487,5 +15487,111 @@ "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" ] + }, + { + "index": 822, + "name": "Proxy_Remove_Proxy", + "blob": "1b02decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef017b000000d503ae1103008ed73e0d3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : NonTransfer", + "3 | Delay : 123", + "4 | Tip : EDG 0.000000000055555555" + ], + "output_expert": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : NonTransfer", + "3 | Delay : 123", + "4 | Chain : Edgeware", + "5 | Nonce : 50283", + "6 | Tip : EDG 0.000000000055555555", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 823, + "name": "Proxy_Remove_Proxy", + "blob": "1b02decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef0225010000d5039101003500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Governance", + "3 | Delay : 293" + ], + "output_expert": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Governance", + "3 | Delay : 293", + "4 | Chain : Edgeware", + "5 | Nonce : 100", + "6 | Era Phase : 61", + "7 | Era Period : 64", + "8 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "8 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 824, + "name": "Proxy_Remove_Proxy", + "blob": "1b02decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef03ac350000d503046d0f3500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Delay : 13740", + "4 | Tip : EDG 0.000000000000000987" + ], + "output_expert": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Staking", + "3 | Delay : 13740", + "4 | Chain : Edgeware", + "5 | Nonce : 1", + "6 | Tip : EDG 0.000000000000000987", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] + }, + { + "index": 825, + "name": "Proxy_Remove_Proxy", + "blob": "1b02decd3e78683cdb7568c3135cd412b54b57930e0b9c7ee4c7a64762ba1ed613ef00ac350000d5038d2403d20296493500000002000000742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b", + "output": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Delay : 13740", + "4 | Tip : EDG 0.00000000123456789" + ], + "output_expert": [ + "0 | Proxy : Remove proxy", + "1 | Delegate [1/2] : nYkQnG2wt4rPg6coxLF8U2ZdLYYW9L2Nkv1YC5", + "1 | Delegate [2/2] : 6dyKjVhjr", + "2 | Proxy type : Any", + "3 | Delay : 13740", + "4 | Chain : Edgeware", + "5 | Nonce : 2339", + "6 | Tip : EDG 0.00000000123456789", + "7 | Era Phase : 61", + "8 | Era Period : 64", + "9 | Block [1/2] : 742a2ca70c2fda6cee4f8df98d64c4c670a052", + "9 | Block [2/2] : d9568058982dad9d5a7a135c5b" + ] } ]