From 3547c8334db4cfa2504d39e8dbbeecd1d18281a6 Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Fri, 24 Nov 2023 15:19:29 +0100 Subject: [PATCH 1/2] Renamed noop to request_license --- moat-core/src/citadel_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moat-core/src/citadel_types.rs b/moat-core/src/citadel_types.rs index 60d7d2d..e018a62 100644 --- a/moat-core/src/citadel_types.rs +++ b/moat-core/src/citadel_types.rs @@ -17,7 +17,7 @@ pub const MAX_REQUEST_SIZE: usize = 8192; pub const MAX_LICENSE_SIZE: usize = 16384; // license contract method names -pub const NOOP_METHOD_NAME: &str = "noop"; +pub const NOOP_METHOD_NAME: &str = "request_license"; pub const ISSUE_LICENSE_METHOD_NAME: &str = "issue_license"; pub const USE_LICENSE_METHOD_NAME: &str = "use_license"; pub const GET_LICENSES_METHOD_NAME: &str = "get_licenses"; From 5046c78558a6e68b6dd8d4879174b4a43d136dcc Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Fri, 24 Nov 2023 15:52:50 +0100 Subject: [PATCH 2/2] Fixed tests --- .../blockchain_payloads/payload_extractor.rs | 6 +++--- .../src/citadel_requests/request_sender.rs | 6 ++++-- moat-core/src/citadel_types.rs | 2 +- moat-core/tests/tx/transactions.json | 18 +++++++++--------- moat-core/tests/tx/transactions_lp.json | 18 +++++++++--------- moat-core/tests/tx/tx_bad_payload.json | 2 +- moat-core/tests/tx/tx_with_request.json | 2 +- 7 files changed, 28 insertions(+), 26 deletions(-) diff --git a/moat-core/src/blockchain_payloads/payload_extractor.rs b/moat-core/src/blockchain_payloads/payload_extractor.rs index 8d44678..93e3268 100644 --- a/moat-core/src/blockchain_payloads/payload_extractor.rs +++ b/moat-core/src/blockchain_payloads/payload_extractor.rs @@ -9,7 +9,7 @@ use rkyv::{check_archived_root, Archive, Deserialize, Infallible}; use crate::bc_types::Tx; use crate::error::Error; use crate::Error::PayloadNotPresent; -use crate::NOOP_METHOD_NAME; +use crate::REQUEST_LICENSE_METHOD_NAME; use bytecheck::CheckBytes; use rkyv::validation::validators::DefaultValidator; @@ -23,9 +23,9 @@ impl PayloadExtractor { + for<'b> CheckBytes>, { if let Some(call_info) = tx.call_data.as_ref() { - if call_info.fn_name != NOOP_METHOD_NAME { + if call_info.fn_name != REQUEST_LICENSE_METHOD_NAME { return Err(Error::PayloadNotPresent( - "fn name not noop".into(), + "fn name not request license".into(), )); } } diff --git a/moat-core/src/citadel_requests/request_sender.rs b/moat-core/src/citadel_requests/request_sender.rs index 614b3f4..643f44d 100644 --- a/moat-core/src/citadel_requests/request_sender.rs +++ b/moat-core/src/citadel_requests/request_sender.rs @@ -5,7 +5,9 @@ // Copyright (c) DUSK NETWORK. All rights reserved. use crate::wallet_accessor::{BlockchainAccessConfig, Password}; -use crate::{Error, PayloadSender, LICENSE_CONTRACT_ID, NOOP_METHOD_NAME}; +use crate::{ + Error, PayloadSender, LICENSE_CONTRACT_ID, REQUEST_LICENSE_METHOD_NAME, +}; use dusk_bls12_381::BlsScalar; use dusk_wallet::WalletPath; use zk_citadel::license::Request; @@ -29,7 +31,7 @@ impl RequestSender { gas_limit, gas_price, LICENSE_CONTRACT_ID, - NOOP_METHOD_NAME, + REQUEST_LICENSE_METHOD_NAME, ) .await?; Ok(tx_id) diff --git a/moat-core/src/citadel_types.rs b/moat-core/src/citadel_types.rs index e018a62..d042aea 100644 --- a/moat-core/src/citadel_types.rs +++ b/moat-core/src/citadel_types.rs @@ -17,7 +17,7 @@ pub const MAX_REQUEST_SIZE: usize = 8192; pub const MAX_LICENSE_SIZE: usize = 16384; // license contract method names -pub const NOOP_METHOD_NAME: &str = "request_license"; +pub const REQUEST_LICENSE_METHOD_NAME: &str = "request_license"; pub const ISSUE_LICENSE_METHOD_NAME: &str = "issue_license"; pub const USE_LICENSE_METHOD_NAME: &str = "use_license"; pub const GET_LICENSES_METHOD_NAME: &str = "get_licenses"; diff --git a/moat-core/tests/tx/transactions.json b/moat-core/tests/tx/transactions.json index c8f3688..77dee72 100644 --- a/moat-core/tests/tx/transactions.json +++ b/moat-core/tests/tx/transactions.json @@ -3,7 +3,7 @@ { "id": "f6169643578a158d3d838ff01cce73ac1ad7fc74f520fedb0000bab9e9cae60d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data":"7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -12,7 +12,7 @@ { "id": "9fa57f54bf2aa77bbfbfff5d16bbe3f9954a408bc9ec5b6e64425afdd35baa07", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -21,7 +21,7 @@ { "id": "721df4ff385b0ccdef8d5c075b7ccf6b2573ca25e6be1181fca8f3f0f8b81204", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -30,7 +30,7 @@ { "id": "2600d54c97b74afc4e826a5666f5aab2edf5211aeba9e712d987bf1760712800", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -39,7 +39,7 @@ { "id": "94c2440ff1c4d468e53406904ae8a8fcf38434ac1da3caaec9a7bc0c45f5c10f", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -48,7 +48,7 @@ { "id": "7d41af12acad0673dea0bcc663d0f3e07be03d433ba06b47279266b231401a0b", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -57,7 +57,7 @@ { "id": "66409583a5ed10840619608549ec0340f87e8ca645b1798e747a255c7657c208", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -66,7 +66,7 @@ { "id": "798dae0637c7a7a6d88010ebfe953568a6c89cb158d74f16f7a6ac7939d80a09", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -75,7 +75,7 @@ { "id": "9ed97797e895706db4a025cf5a4e1d831014c530c511eead202100a46babc40d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, diff --git a/moat-core/tests/tx/transactions_lp.json b/moat-core/tests/tx/transactions_lp.json index db4eccd..506f638 100644 --- a/moat-core/tests/tx/transactions_lp.json +++ b/moat-core/tests/tx/transactions_lp.json @@ -3,7 +3,7 @@ { "id": "f6169643578a158d3d838ff01cce73ac1ad7fc74f520fedb0000bab9e9cae60d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data":"7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -12,7 +12,7 @@ { "id": "9fa57f54bf2aa77bbfbfff5d16bbe3f9954a408bc9ec5b6e64425afdd35baa07", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -21,7 +21,7 @@ { "id": "721df4ff385b0ccdef8d5c075b7ccf6b2573ca25e6be1181fca8f3f0f8b81204", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -30,7 +30,7 @@ { "id": "2600d54c97b74afc4e826a5666f5aab2edf5211aeba9e712d987bf1760712800", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -39,7 +39,7 @@ { "id": "94c2440ff1c4d468e53406904ae8a8fcf38434ac1da3caaec9a7bc0c45f5c10f", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -48,7 +48,7 @@ { "id": "7d41af12acad0673dea0bcc663d0f3e07be03d433ba06b47279266b231401a0b", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -57,7 +57,7 @@ { "id": "66409583a5ed10840619608549ec0340f87e8ca645b1798e747a255c7657c208", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, @@ -66,7 +66,7 @@ { "id": "798dae0637c7a7a6d88010ebfe953568a6c89cb158d74f16f7a6ac7939d80a09", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f552327ac75c4aba87513dc54e4a5c2e2e36835828113ef92fea59dbf2457575903bf3156016acac7a44a1d6b546f4199bba7b24966c739ddc433a521ee5a776148349a0a53a6cd16d1cd20e13120bd404fd23a752a8f3facd53b78d360d3f3a03e57bf726eed5f1d8d4c530cd187919796fbb4cdc4dceb809f3839bcb453ae7022ae10a0f7ee7f4355e9d74fbf55d3221bb0beb1bf9ae1f6927e9d3cce9f24581640d55c7bf2cd4b6f130ef439a20b990223bb9022446b7e02e502619b4dd3f80d31e6ca8a4c8785453c9a4886d5e9159bcd1974030e70d1cdd008f3408845871c4cbfb0554963f5f47b91a81a0d1f7370be7c072d77a9e03489921981f503ec2f29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df31256fac5c58b056a49ffe0c23e8e583944e0252529b1c8438fbd22be0d89d5838bc023097bb353188a830dc1a280a0d36ad045d0691354f4a3cdf06724101be6bc23a3f90ad62b7eb699b215644326e61c546068bb46871cc5007e81aa117c1538a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117a7e8542930b0d81da721a28e246a451c995bcc2f6a1961b56c6e0c030563068b32b6a97b404c884d9430e60d070354accd59c9e4e01f816c149898241f7f42e8724c0af7e5e84b28c9d830add2ab94c78dc474e06ca84d444267d37c86697615396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df42" }, @@ -75,7 +75,7 @@ { "id": "9ed97797e895706db4a025cf5a4e1d831014c530c511eead202100a46babc40d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f552327ac75c4aba87513dc54e4a5c2e2e36835828113ef92fea59dbf2457575903bf3156016acac7a44a1d6b546f4199bba7b24966c739ddc433a521ee5a776148349a0a53a6cd16d1cd20e13120bd404fd23a752a8f3facd53b78d360d3f3a03e57bf726eed5f1d8d4c530cd187919796fbb4cdc4dceb809f3839bcb453ae7022ae10a0f7ee7f4355e9d74fbf55d3221bb0beb1bf9ae1f6927e9d3cce9f24581640d55c7bf2cd4b6f130ef439a20b990223bb9022446b7e02e502619b4dd3f80d31e6ca8a4c8785453c9a4886d5e9159bcd1974030e70d1cdd008f3408845871c4cbfb0554963f5f47b91a81a0d1f7370be7c072d77a9e03489921981f503ec2f29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df31256fac5c58b056a49ffe0c23e8e583944e0252529b1c8438fbd22be0d89d5838bc023097bb353188a830dc1a280a0d36ad045d0691354f4a3cdf06724101be6bc23a3f90ad62b7eb699b215644326e61c546068bb46871cc5007e81aa117c1538a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117a7e8542930b0d81da721a28e246a451c995bcc2f6a1961b56c6e0c030563068b32b6a97b404c884d9430e60d070354accd59c9e4e01f816c149898241f7f42e8724c0af7e5e84b28c9d830add2ab94c78dc474e06ca84d444267d37c86697615396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df42" }, diff --git a/moat-core/tests/tx/tx_bad_payload.json b/moat-core/tests/tx/tx_bad_payload.json index 5d873b5..0a167e1 100644 --- a/moat-core/tests/tx/tx_bad_payload.json +++ b/moat-core/tests/tx/tx_bad_payload.json @@ -2,7 +2,7 @@ "id": "634fd079ddb0170707844727b229a3fefca60680852a6ab09aa4bacbce322e0d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "abc7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" }, diff --git a/moat-core/tests/tx/tx_with_request.json b/moat-core/tests/tx/tx_with_request.json index 3162743..5e2e50b 100644 --- a/moat-core/tests/tx/tx_with_request.json +++ b/moat-core/tests/tx/tx_with_request.json @@ -2,7 +2,7 @@ "id": "634fd079ddb0170707844727b229a3fefca60680852a6ab09aa4bacbce322e0d", "call_data": { - "fn_name": "noop", + "fn_name": "request_license", "contract_id": "0100000000000000000000000000000000000000000000000000000000000000", "data": "7aaa96c657582d963de258f184da3d7c95042920db92a2b2591c181466ea5a5311b5ef84f135b3d567120eaae941f35f8d5d62a8f42c8c9dacd2c78cc6f02e558d0d18fc4e78997967851fef237755ee6ee490036925c7fb100eefdbec1c033b8332252314a8fd0c05a01f9a8b87372381ee179818e8ffff36dc94a411c0d75e9ded4fcdf533fd58fc80c8dae586d783ed32168744d0f952dee4f02ce4e25f55f49bcbb6a59bd0baa1e1c0854b94881187f0d3c18446ac27eefcda5c7bc224432e960f8b7f82b99e45ed36186599fa8e35a1844c86c33b9b3448dc0d2d34e7340b22475160969109d5b17d38cfc4b05cd890da210d1f931f25af10cc4f6d8031b9be435c2069b269edafa4db85e54bacdf3f187023e019ffcf00c2de0032c80c65e49101ffaf0a01ba7671f6234ac65ee75db5879633ebc4c6d8f58248bfcb147c9ccef50619983501b6209e1daba3ebd081d2b2378c25bcf772d028183d35324c3e94698074d429dd705cac5302595fe2abc1f5f6a6e5ef7f432f99c3c6304424073a65fd7b8218cd56bbe3773cd1734b4b83db47657b423a79aaae8794ca2a29a07829b2b4f9f285e2ff0d50378d59b12ad2fb8386001e561c3c3c5e66df3118f72811ee8fe4615b7a0e9a3de512da5c22abea12f8d3ac6e897e3538e8c414a48eca7135fe1b7443707c4e316ad53d6425101bacb937217ad60f3cb5b9a24ee126c518f5543f670dcfcafa128b42570a2469594c104d8c6817cdb978d983328a9297e803ff05b1f631d15791d5f3e179718a3a752649ef7c13f4e03f0390117f21cf488ada2dfdb75aa77fb081790e71f9d39d14dd325e11af78e47fc74a3ae0fc60b8bf3db4c4653ce095da46c33b91063cf632889b4c8b6d12ec0045fc0d4427d550e6b7f4b06793b7bd8692123a77b3ba6a546eed123a05475dc7cf56545396cd4c74e95815fafd25e0f96ea952a9d2de0fbb646e83bf25147ed597df420100000000000000feffffff0100000002480300fab78458f54fbcecef4f8c996f05c5ac59b12418" },