Repository: multiversx/mx-bridge-eth-sc-rs
Pull request #284: Revert storage camel case to snake case
Author: login: CostinCarabas
Created: 2025-03-03T11:37:29Z | Merged: 2025-03-06T17:06:40Z



Diff:
diff --git a/bridge-proxy/src/config.rs b/bridge-proxy/src/config.rs
index 0da6985c..401ee8b7 100644
--- a/bridge-proxy/src/config.rs
+++ b/bridge-proxy/src/config.rs
@@ -4,7 +4,7 @@ use transaction::EthTransaction;
 
 #[multiversx_sc::module]
 pub trait ConfigModule {
-    #[storage_mapper("pendingTransactions")]
+    #[storage_mapper("pending_transactions")]
     fn pending_transactions(&self) -> MapMapper<usize, EthTransaction<Self::Api>>;
 
     #[view(refundTransactions)]
@@ -14,11 +14,11 @@ pub trait ConfigModule {
     #[storage_mapper("payments")]
     fn payments(&self, tx_id: usize) -> SingleValueMapper<EsdtTokenPayment<Self::Api>>;
 
-    #[storage_mapper("batchId")]
+    #[storage_mapper("batch_id")]
     fn batch_id(&self, tx_id: usize) -> SingleValueMapper<u64>;
 
     #[view(highestTxId)]
-    #[storage_mapper("highestTxId")]
+    #[storage_mapper("highest_tx_id")]
     fn highest_tx_id(&self) -> SingleValueMapper<usize>;
 
     #[storage_mapper("ongoingExecution")]
diff --git a/bridge-proxy/tests/bridge_proxy_blackbox_test.rs b/bridge-proxy/tests/bridge_proxy_blackbox_test.rs
index 96174b23..522fabb3 100644
--- a/bridge-proxy/tests/bridge_proxy_blackbox_test.rs
+++ b/bridge-proxy/tests/bridge_proxy_blackbox_test.rs
@@ -609,8 +609,8 @@ fn bridge_proxy_wrong_formatting_sc_call_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage("str:payments|u32:1", "nested:str:BRIDGE-123456|u64:0|biguint:500");
 }
 
@@ -688,8 +688,8 @@ fn bridge_proxy_wrong_endpoint_sc_call_test() {
     .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
     .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
     .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-    .check_storage("str:batchId|u32:1", "1")
-    .check_storage("str:highestTxId", "1")
+    .check_storage("str:batch_id|u32:1", "1")
+    .check_storage("str:highest_tx_id", "1")
     .check_storage("str:payments|u32:1", "nested:str:BRIDGE-123456|u64:0|biguint:500");
 }
 
@@ -770,8 +770,8 @@ fn bridge_proxy_wrong_args_sc_call_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage("str:payments|u32:1", "nested:str:BRIDGE-123456|u64:0|biguint:500");
 }
 
@@ -845,8 +845,8 @@ fn bridge_proxy_too_small_gas_sc_call_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage("str:payments|u32:1", "nested:str:BRIDGE-123456|u64:0|biguint:500");
 }
 
@@ -920,8 +920,8 @@ fn bridge_proxy_empty_endpoint_with_args_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage(
             "str:payments|u32:1",
             "nested:str:BRIDGE-123456|u64:0|biguint:500",
@@ -997,8 +997,8 @@ fn bridge_proxy_empty_endpoint_with_gas_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage(
             "str:payments|u32:1",
             "nested:str:BRIDGE-123456|u64:0|biguint:500",
@@ -1075,8 +1075,8 @@ fn bridge_proxy_refund_tx_test() {
         .check_storage("str:refundTransactions.node_id|u32:1", "0x01")
         .check_storage("str:refundTransactions.info", "0x00000001000000010000000100000001")
         .check_storage("str:refundTransactions.node_links|u32:1", "0x0000000000000000")
-        .check_storage("str:batchId|u32:1", "1")
-        .check_storage("str:highestTxId", "1")
+        .check_storage("str:batch_id|u32:1", "1")
+        .check_storage("str:highest_tx_id", "1")
         .check_storage(
             "str:payments|u32:1",
             "nested:str:BRIDGE-123456|u64:0|biguint:500",
@@ -1104,7 +1104,7 @@ fn bridge_proxy_refund_tx_test() {
 
     test.world
         .check_account(BRIDGE_PROXY_ADDRESS)
-        .check_storage("str:highestTxId", "1");
+        .check_storage("str:highest_tx_id", "1");
 }
 
 #[test]
diff --git a/bridged-tokens-wrapper/scenarios/add_wrapped_token.scen.json b/bridged-tokens-wrapper/scenarios/add_wrapped_token.scen.json
index 851a9ca4..a393686f 100644
--- a/bridged-tokens-wrapper/scenarios/add_wrapped_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/add_wrapped_token.scen.json
@@ -120,7 +120,7 @@
                         "str:universalBridgedTokenIds.len": "1",
                         "str:universalBridgedTokenIds.index|nested:str:WUSDC-abcdef": "1",
                         "str:universalBridgedTokenIds.item|u32:1": "str:WUSDC-abcdef",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/scenarios/blacklist_token.scen.json b/bridged-tokens-wrapper/scenarios/blacklist_token.scen.json
index 5604d551..b30f3855 100644
--- a/bridged-tokens-wrapper/scenarios/blacklist_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/blacklist_token.scen.json
@@ -89,9 +89,9 @@
                         "str:universalBridgedTokenIds.item|u32:1": "str:WUSDC-abcdef",
                         "str:tokenLiquidity|nested:str:USDC-aaaaaa": "300000000000000",
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/scenarios/remove_wrapped_token.scen.json b/bridged-tokens-wrapper/scenarios/remove_wrapped_token.scen.json
index b0366a74..461f18d8 100644
--- a/bridged-tokens-wrapper/scenarios/remove_wrapped_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/remove_wrapped_token.scen.json
@@ -105,10 +105,10 @@
                         "str:universalBridgedTokenIds.item|u32:2": "str:WUSDC-uvwxyz",
                         "str:tokenLiquidity|nested:str:USDC-aaaaaa": "300000000000000",
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-uvwxyz": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:WUSDC-uvwxyz": "18",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18",
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
                         "str:chainSpecificToUniversalMapping|nested:str:USDC-cccccc": "str:WUSDC-abcdef",
                         "str:chainSpecificToUniversalMapping|nested:str:USDC-aaaaaa": "str:WUSDC-abcdef",
                         "str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.len": "2",
diff --git a/bridged-tokens-wrapper/scenarios/setup.scen.json b/bridged-tokens-wrapper/scenarios/setup.scen.json
index ad7c5348..2cdb8039 100644
--- a/bridged-tokens-wrapper/scenarios/setup.scen.json
+++ b/bridged-tokens-wrapper/scenarios/setup.scen.json
@@ -105,10 +105,10 @@
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
                         "str:tokenLiquidity|nested:str:USDC-eeeeee": "400000000000000",
                         "str:tokenLiquidity|nested:str:USDC-ffffff": "400000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-ghijkl": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:WUSDC-ghijkl": "6",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
@@ -218,10 +218,10 @@
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
                         "str:tokenLiquidity|nested:str:USDC-eeeeee": "400000000000000",
                         "str:tokenLiquidity|nested:str:USDC-ffffff": "400000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-ghijkl": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:WUSDC-ghijkl": "6",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/scenarios/unwrap_token.scen.json b/bridged-tokens-wrapper/scenarios/unwrap_token.scen.json
index f3b9e7f6..88ccbb22 100644
--- a/bridged-tokens-wrapper/scenarios/unwrap_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/unwrap_token.scen.json
@@ -209,10 +209,10 @@
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
                         "str:tokenLiquidity|nested:str:USDC-eeeeee": "400000000000000",
                         "str:tokenLiquidity|nested:str:USDC-ffffff": "400000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-ghijkl": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:WUSDC-ghijkl": "6",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/scenarios/whitelist_token.scen.json b/bridged-tokens-wrapper/scenarios/whitelist_token.scen.json
index 2d85e971..4fb58fcf 100644
--- a/bridged-tokens-wrapper/scenarios/whitelist_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/whitelist_token.scen.json
@@ -127,9 +127,9 @@
                         "str:universalBridgedTokenIds.len": "1",
                         "str:universalBridgedTokenIds.index|nested:str:WUSDC-abcdef": "1",
                         "str:universalBridgedTokenIds.item|u32:1": "str:WUSDC-abcdef",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/scenarios/wrap_token.scen.json b/bridged-tokens-wrapper/scenarios/wrap_token.scen.json
index 8ab688c4..c9116aff 100644
--- a/bridged-tokens-wrapper/scenarios/wrap_token.scen.json
+++ b/bridged-tokens-wrapper/scenarios/wrap_token.scen.json
@@ -144,9 +144,9 @@
                         "str:universalBridgedTokenIds.item|u32:1": "str:WUSDC-abcdef",
                         "str:tokenLiquidity|nested:str:USDC-aaaaaa": "300000000000000",
                         "str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
-                        "str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
-                        "str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18",
-                        "str:tokenDecimalsNum|nested:str:USDC-cccccc": "18"
+                        "str:token_decimals_num|nested:str:WUSDC-abcdef": "6",
+                        "str:token_decimals_num|nested:str:USDC-aaaaaa": "18",
+                        "str:token_decimals_num|nested:str:USDC-cccccc": "18"
                     },
                     "code": "file:../output/bridged-tokens-wrapper.wasm",
                     "owner": "address:owner"
diff --git a/bridged-tokens-wrapper/src/lib.rs b/bridged-tokens-wrapper/src/lib.rs
index 184a4eda..c245d3db 100644
--- a/bridged-tokens-wrapper/src/lib.rs
+++ b/bridged-tokens-wrapper/src/lib.rs
@@ -333,6 +333,6 @@ pub trait BridgedTokensWrapper:
         universal_token_id: &TokenIdentifier,
     ) -> UnorderedSetMapper<TokenIdentifier>;
 
-    #[storage_mapper("tokenDecimalsNum")]
+    #[storage_mapper("token_decimals_num")]
     fn token_decimals_num(&self, token: &TokenIdentifier) -> SingleValueMapper<u32>;
 }
diff --git a/multisig/scenarios/execute_multiversx_to_ethereum_tx_batch.scen.json b/multisig/scenarios/execute_multiversx_to_ethereum_tx_batch.scen.json
index a71e0268..053282b4 100644
--- a/multisig/scenarios/execute_multiversx_to_ethereum_tx_batch.scen.json
+++ b/multisig/scenarios/execute_multiversx_to_ethereum_tx_batch.scen.json
@@ -38,7 +38,7 @@
                     "nonce": "*",
                     "balance": "*",
                     "storage": {
-                        "str:actionData.item|u32:1": {
+                        "str:action_data.item|u32:1": {
                             "1-action_type": "u8:1",
                             "2-batch_id": "u64:1",
                             "3-tx_batch_status_len": "u32:2",
diff --git a/multisig/scenarios/reject_multiversx_to_ethereum_tx_batch.scen.json b/multisig/scenarios/reject_multiversx_to_ethereum_tx_batch.scen.json
index 033bd8ab..51d0f3d0 100644
--- a/multisig/scenarios/reject_multiversx_to_ethereum_tx_batch.scen.json
+++ b/multisig/scenarios/reject_multiversx_to_ethereum_tx_batch.scen.json
@@ -38,7 +38,7 @@
                     "nonce": "*",
                     "balance": "*",
                     "storage": {
-                        "str:actionData.item|u32:1": {
+                        "str:action_data.item|u32:1": {
                             "1-action_type": "u8:1",
                             "2-batch_id": "u64:1",
                             "3-tx_batch_status_len": "u32:2",
diff --git a/multisig/scenarios/setup.scen.json b/multisig/scenarios/setup.scen.json
index e96de844..023d14a9 100644
--- a/multisig/scenarios/setup.scen.json
+++ b/multisig/scenarios/setup.scen.json
@@ -170,12 +170,12 @@
                         "str:proxyAddress": "sc:bridge_proxy",
                         "str:bridgedTokensWrapperAddress": "sc:bridged_tokens_wrapper",
                         "str:feeEstimatorAddress": "sc:price_aggregator",
-                        "str:numBoardMembers": "2",
+                        "str:num_board_members": "2",
                         "str:quorum": "2",
                         "str:requiredStakeAmount": "1000",
                         "str:slashAmount": "500",
-                        "str:userRole|u32:1": "1",
-                        "str:userRole|u32:2": "1",
+                        "str:user_role|u32:1": "1",
+                        "str:user_role|u32:2": "1",
                         "str:user_address_to_id|address:relayer1": "1",
                         "str:user_address_to_id|address:relayer2": "2",
                         "str:user_count": "2",
diff --git a/multisig/scenarios/unstake.scen.json b/multisig/scenarios/unstake.scen.json
index af19caaf..3d91b296 100644
--- a/multisig/scenarios/unstake.scen.json
+++ b/multisig/scenarios/unstake.scen.json
@@ -191,9 +191,9 @@
                     "balance": "3000",
                     "storage": {
                         "str:quorum": "2",
-                        "str:user_role|u32:1": "0",
+                        "str:user_role|u32:1": "1",
                         "str:user_role|u32:2": "0",
-                        "str:user_role|u32:3": "0",
+                        "str:user_role|u32:3": "1",
                         "+": ""
                     },
                     "code": "*"
@@ -258,9 +258,9 @@
                     "balance": "2000",
                     "storage": {
                         "str:quorum": "2",
-                        "str:user_role|u32:1": "0",
+                        "str:user_role|u32:1": "1",
                         "str:user_role|u32:2": "0",
-                        "str:user_role|u32:3": "0",
+                        "str:user_role|u32:3": "1",
                         "+": ""
                     },
                     "code": "*"
diff --git a/multisig/src/storage.rs b/multisig/src/storage.rs
index 1f3478b8..ed0fd3dd 100644
--- a/multisig/src/storage.rs
+++ b/multisig/src/storage.rs
@@ -18,19 +18,19 @@ pub trait StorageModule {
     #[storage_mapper("user")]
     fn user_mapper(&self) -> UserMapper;
 
-    #[storage_mapper("userRole")]
+    #[storage_mapper("user_role")]
     fn user_id_to_role(&self, user_id: usize) -> SingleValueMapper<UserRole>;
 
     /// Denormalized board member count.
     /// It is kept in sync with the user list by the contract.
     #[view(getNumBoardMembers)]
-    #[storage_mapper("numBoardMembers")]
+    #[storage_mapper("num_board_members")]
     fn num_board_members(&self) -> SingleValueMapper<usize>;
 
-    #[storage_mapper("actionData")]
+    #[storage_mapper("action_data")]
     fn action_mapper(&self) -> VecMapper<Action<Self::Api>>;
 
-    #[storage_mapper("actionSignerIds")]
+    #[storage_mapper("action_signer_ids")]
     fn action_signer_ids(&self, action_id: usize) -> UnorderedSetMapper<usize>;
 
     /// The required amount to stake for accepting relayer position


Reviews:
user: login: andreiblt1304
state: DISMISSED
author_association: NONE
submitted_at: 2025-03-03T11:57:59Z
user: login: iulianpascalau
state: CHANGES_REQUESTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-03T12:13:27Z
user: login: CostinCarabas
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-03T14:42:29Z
user: login: andreiblt1304
state: APPROVED
author_association: NONE
submitted_at: 2025-03-05T14:54:05Z
user: login: iulianpascalau
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-03-06T10:52:58Z

Review comments:
diff_hunk: @@ -24,13 +24,13 @@ pub trait StorageModule {
     /// Denormalized board member count.
     /// It is kept in sync with the user list by the contract.
     #[view(getNumBoardMembers)]
-    #[storage_mapper("numBoardMembers")]
+    #[storage_mapper("num_board_members")]
path: multisig/src/storage.rs
user: login: iulianpascalau
body: missing change on L21. 
Before feat/v3.1:
```
#[storage_mapper("user_role")]
```
created_at: 2025-03-03T12:12:28Z
author_association: CONTRIBUTOR
diff_hunk: @@ -24,13 +24,13 @@ pub trait StorageModule {
     /// Denormalized board member count.
     /// It is kept in sync with the user list by the contract.
     #[view(getNumBoardMembers)]
-    #[storage_mapper("numBoardMembers")]
+    #[storage_mapper("num_board_members")]
path: multisig/src/storage.rs
user: login: CostinCarabas
body: fixed
created_at: 2025-03-03T14:42:29Z
author_association: CONTRIBUTOR

PR comments:
user: login: github-actions[bot]
created_at: 2025-03-03T11:38:39Z
body: # Coverage Summary

## Totals
| | Count | Covered | % |
|---|---|---|---|
| Lines | 13146 | 11155 | 84.85 |
| Regions | 1682 | 1245 | 74.02 |
| Functions | 940 | 667 | 70.96 |
| Instantiations | 4975 | 1633 | 32.82 |

## Files
<details><summary>Expand</summary>

| File | Lines | Regions | Functions | Instantiations |
|---|---|---|---|---|
| /home/runner/.cargo/git/checkouts/mx-sdk-rs-cdb4dd89271084b6/bafea45/contracts/examples/crowdfunding-esdt/src/crowdfunding_esdt.rs | 53.12% | 60.00% | 88.89% | 68.00% |
| /home/runner/.cargo/git/checkouts/mx-sdk-rs-cdb4dd89271084b6/bafea45/contracts/examples/crowdfunding-esdt/src/crowdfunding_esdt_proxy.rs | 100.00% | 100.00% | 100.00% | 100.00% |
| /bridge-proxy/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /bridge-proxy/src/bridge-proxy.rs | 77.78% | 80.00% | 88.24% | 24.09% |
| /bridge-proxy/src/config.rs | 50.00% | 50.00% | 50.00% | 20.27% |
| /bridge-proxy/src/events.rs | 50.00% | 50.00% | 50.00% | 5.88% |
| /bridge-proxy/tests/bridge_proxy_blackbox_test.rs | 97.64% | 93.75% | 86.36% | 86.36% |
| /bridged-tokens-wrapper/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /bridged-tokens-wrapper/src/dfp_big_uint.rs | 50.00% | 45.45% | 100.00% | 40.00% |
| /bridged-tokens-wrapper/src/events.rs | 50.00% | 50.00% | 50.00% | 9.68% |
| /bridged-tokens-wrapper/src/lib.rs | 100.00% | 100.00% | 100.00% | 23.68% |
| /bridged-tokens-wrapper/tests/bridged_tokens_wrapper_whitebox_test.rs | 89.24% | 90.32% | 89.66% | 89.66% |
| /bridged-tokens-wrapper/tests/scenario_go_test.rs | 100.00% | 100.00% | 100.00% | 100.00% |
| /common/eth-address/src/lib.rs | 64.29% | 37.50% | 37.50% | 18.82% |
| /common/fee-estimator-module/src/lib.rs | 97.50% | 92.86% | 90.00% | 32.95% |
| /common/fee-estimator-module/src/price_aggregator_proxy.rs | 6.14% | 6.67% | 6.67% | 13.89% |
| /common/max-bridged-amount-module/src/lib.rs | 92.86% | 85.71% | 80.00% | 30.99% |
| /common/mock-contracts/mock-bridge-proxy/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-bridge-proxy/src/mock_bridge_proxy.rs | 50.00% | 50.00% | 50.00% | 7.14% |
| /common/mock-contracts/mock-bridged-tokens-wrapper/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-bridged-tokens-wrapper/src/mock_bridged_tokens_wrapper.rs | 50.00% | 50.00% | 50.00% | 10.00% |
| /common/mock-contracts/mock-esdt-safe/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-esdt-safe/src/mock_esdt_safe.rs | 25.00% | 25.00% | 25.00% | 18.33% |
| /common/mock-contracts/mock-multi-transfer-esdt/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-multi-transfer-esdt/src/mock_multi_transfer_esdt.rs | 100.00% | 100.00% | 100.00% | 23.08% |
| /common/mock-contracts/mock-multisig/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-multisig/src/mock_multisig.rs | 100.00% | 100.00% | 100.00% | 33.33% |
| /common/mock-contracts/mock-price-aggregator/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/mock-contracts/mock-price-aggregator/src/mock_price_aggregator.rs | 50.00% | 50.00% | 50.00% | 25.00% |
| /common/mock-proxies/src/mock_multisig_proxy.rs | 72.41% | 62.50% | 62.50% | 55.56% |
| /common/sc-proxies/src/bridge_proxy_contract_proxy.rs | 73.72% | 73.33% | 73.33% | 56.25% |
| /common/sc-proxies/src/bridged_tokens_wrapper_proxy.rs | 48.04% | 47.37% | 47.37% | 35.09% |
| /common/sc-proxies/src/crowdfunding_esdt_proxy.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/sc-proxies/src/esdt_safe_proxy.rs | 85.22% | 74.55% | 74.55% | 50.26% |
| /common/sc-proxies/src/multi_transfer_esdt_proxy.rs | 76.59% | 75.00% | 75.00% | 45.76% |
| /common/sc-proxies/src/multisig_proxy.rs | 69.69% | 60.00% | 60.00% | 40.56% |
| /common/storage-module/src/lib.rs | 92.86% | 77.78% | 77.78% | 41.25% |
| /common/token-module/src/lib.rs | 88.21% | 81.18% | 76.19% | 33.42% |
| /common/transaction/src/lib.rs | 68.00% | 23.81% | 23.81% | 13.11% |
| /common/transaction/src/transaction_status.rs | 20.00% | 20.00% | 20.00% | 4.55% |
| /common/tx-batch-module/src/batch_status.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /common/tx-batch-module/src/lib.rs | 96.55% | 90.54% | 94.12% | 34.12% |
| /common/tx-batch-module/src/tx_batch_mapper.rs | 97.14% | 93.10% | 100.00% | 56.25% |
| /esdt-safe/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /esdt-safe/src/lib.rs | 82.94% | 68.79% | 75.00% | 28.51% |
| /esdt-safe/tests/esdt_safe_blackbox_test.rs | 99.06% | 80.60% | 100.00% | 100.00% |
| /esdt-safe/tests/esdt_safe_scenario_rs_test.rs | 100.00% | 100.00% | 100.00% | 100.00% |
| /esdt-safe/tests/scenario_go_test.rs | 100.00% | 100.00% | 100.00% | 100.00% |
| /helper-contract/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /helper-contract/src/helper_contract.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /multi-transfer-esdt/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /multi-transfer-esdt/src/lib.rs | 81.70% | 77.03% | 81.82% | 24.07% |
| /multi-transfer-esdt/tests/multi_transfer_blackbox_test.rs | 93.03% | 70.97% | 83.33% | 83.33% |
| /multi-transfer-esdt/tests/multi_transfer_esdt_scenario_rs_test.rs | 57.14% | 30.00% | 30.00% | 30.00% |
| /multi-transfer-esdt/tests/scenario_go_test.rs | 30.00% | 30.00% | 30.00% | 30.00% |
| /multisig/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /multisig/src/action.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /multisig/src/events.rs | 50.00% | 50.00% | 50.00% | 22.58% |
| /multisig/src/lib.rs | 85.52% | 79.07% | 87.50% | 34.30% |
| /multisig/src/multisig_general.rs | 96.08% | 80.00% | 88.89% | 48.48% |
| /multisig/src/queries.rs | 65.22% | 64.52% | 55.00% | 15.07% |
| /multisig/src/setup.rs | 98.75% | 92.16% | 96.43% | 31.22% |
| /multisig/src/storage.rs | 50.00% | 50.00% | 50.00% | 32.47% |
| /multisig/src/user_role.rs | 60.00% | 66.67% | 33.33% | 16.67% |
| /multisig/src/util.rs | 92.73% | 83.87% | 77.78% | 46.43% |
| /multisig/tests/multisig_blackbox_test.rs | 90.75% | 94.19% | 95.16% | 95.16% |
| /multisig/tests/multisig_scenario_rs_test.rs | 82.69% | 72.73% | 72.73% | 72.73% |
| /multisig/tests/scenario_go_test.rs | 70.00% | 70.00% | 70.00% | 70.00% |
| /test-caller/meta/src/main.rs | 0.00% | 0.00% | 0.00% | 0.00% |
| /test-caller/src/test-caller.rs | 0.00% | 0.00% | 0.00% | 0.00% |
</details>

author_association: NONE
user: login: github-actions[bot]
created_at: 2025-03-03T11:52:36Z
body: Contract comparison - from 89eb01a4100252304afc5c22f0937f24585f2752 to 255dd235d467ba9be5c628c0782a39aa715f43ea
| Path                                                         |                                     size |                  has-allocator |                     has-format |
| :-- | --: | --: | --: |
| bridged-tokens-wrapper.wasm | 10281 :arrow_right: 10284 :red_circle: (+3) | false | None |
| multisig.wasm | 31461 :arrow_right: 31467 :red_circle: (+6) | false | without message |
| bridge-proxy.wasm | 15511 :arrow_right: 15515 :red_circle: (+4) | false | without message |
| esdt-safe.wasm | 29170 | false | without message |
| test-caller.wasm | 5287 | false | without message |
| mock-bridge-proxy.wasm | 241 | false | None |
| mock-multi-transfer-esdt.wasm | 521 | false | None |
| mock-bridged-tokens-wrapper.wasm | 1148 | false | None |
| mock-esdt-safe.wasm | 2117 | false | without message |
| mock-price-aggregator.wasm | 1146 | false | None |
| mock-multisig.wasm | 2183 | false | None |
| multi-transfer-esdt.wasm | 24172 | false | without message |
| helper-contract.wasm | 4820 | false | without message |
author_association: NONE