From 93dac5d98dcc7b4cce7560355fc35e39e51ebbce Mon Sep 17 00:00:00 2001 From: Jeremy Liu <31809888+NotJeremyLiu@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:54:09 -0700 Subject: [PATCH] update schemas --- contracts/entry-point/tests/test_error_handling.rs | 12 ++++++------ schema/raw/execute.json | 4 ++-- schema/skip-api-entry-point.json | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/contracts/entry-point/tests/test_error_handling.rs b/contracts/entry-point/tests/test_error_handling.rs index 1735100d..c7ac722e 100644 --- a/contracts/entry-point/tests/test_error_handling.rs +++ b/contracts/entry-point/tests/test_error_handling.rs @@ -19,8 +19,8 @@ pub struct Params { expected_error: Option, } -// Helper function for all SWAP_AND_ACTION msgs -pub fn test_execute_swap_and_action(params: Params) { +// Helper function for all SwapAndActionWithRecover tests +pub fn test_execute_swap_and_action_with_recover(params: Params) { // Create mock dependencies let mut deps = mock_dependencies_with_balances(&[( "entry_point", @@ -119,9 +119,9 @@ pub fn test_execute_swap_and_action(params: Params) { } } -// Test new ExecuteMsg::AxelarSwapAndAction msg and verify it correctly sends the ExecuteMsg::SwapAndAction +// Test new ExecuteMsg::SwapAndActionWithRecover msg and verify it correctly sends the ExecuteMsg::SwapAndAction #[test] -pub fn successful_swap_and_action() { +pub fn successful_swap_and_action_with_recover() { let params = Params { info_funds: vec![Coin::new(1_000_000, "untrn")], user_swap: Swap::SwapExactCoinIn(SwapExactCoinIn { @@ -167,7 +167,7 @@ pub fn successful_swap_and_action() { expected_error: None, }; - test_execute_swap_and_action(params); + test_execute_swap_and_action_with_recover(params); } // Error should be handled with reply message so it should not return an Timeout contract error as it would if you called ExecuteMsg::SwapAndAction @@ -218,5 +218,5 @@ pub fn timeout_error_passes() { expected_error: None, }; - test_execute_swap_and_action(params); + test_execute_swap_and_action_with_recover(params); } diff --git a/schema/raw/execute.json b/schema/raw/execute.json index ab06f198..a58b6618 100644 --- a/schema/raw/execute.json +++ b/schema/raw/execute.json @@ -6,10 +6,10 @@ { "type": "object", "required": [ - "axelar_swap_and_action" + "swap_and_action_with_recover" ], "properties": { - "axelar_swap_and_action": { + "swap_and_action_with_recover": { "type": "object", "required": [ "affiliates", diff --git a/schema/skip-api-entry-point.json b/schema/skip-api-entry-point.json index b079d62a..5b2fb85e 100644 --- a/schema/skip-api-entry-point.json +++ b/schema/skip-api-entry-point.json @@ -51,10 +51,10 @@ { "type": "object", "required": [ - "axelar_swap_and_action" + "swap_and_action_with_recover" ], "properties": { - "axelar_swap_and_action": { + "swap_and_action_with_recover": { "type": "object", "required": [ "affiliates",