diff --git a/lib/dvf/discovery.rs b/lib/dvf/discovery.rs index 0b2107e..aa1a77b 100644 --- a/lib/dvf/discovery.rs +++ b/lib/dvf/discovery.rs @@ -268,7 +268,7 @@ pub fn discover_storage_and_events( // Event discovery logic if params.event_topics.is_none() { print_progress("Obtaining past events.", params.pc, params.progress_mode); - seen_events = web3::get_eth_events( + seen_events = web3::get_eth_events_paginated( params.config, params.address, params.start_block_num, diff --git a/lib/web3.rs b/lib/web3.rs index a548f69..3fe9fb3 100644 --- a/lib/web3.rs +++ b/lib/web3.rs @@ -1317,42 +1317,69 @@ pub struct Web3Event { // Fetches events, does multiple calls if necessary // Inclusive for from_block and to_block -pub fn get_eth_events( +pub fn get_eth_events_paginated( config: &DVFConfig, address: &Address, from_block: u64, to_block: u64, topics: &Vec, ) -> Result, ValidationError> { - if to_block - from_block > config.max_blocks_per_event_query { - let pb = ProgressBar::new(to_block - from_block); - if to_block - from_block > LARGE_BLOCK_RANGE { - let mut num_events = String::new(); - if topics.is_empty() { - num_events.push_str("all"); - } else { - num_events.push_str(&topics.len().to_string()); - } - info!( - "You are querying {} event(s) for a range of {} blocks. This will take some time.", - num_events, - to_block - from_block + 1 - ); - } - let mut last_block = from_block + config.max_blocks_per_event_query; - let mut events = get_eth_events(config, address, from_block, last_block, topics)?; - while last_block < to_block { - let next_last_block = - std::cmp::min(last_block + config.max_blocks_per_event_query - 1, to_block); - let mut next_events = - get_eth_events(config, address, last_block + 1, next_last_block, topics)?; - last_block = next_last_block; - pb.set_position(next_last_block - from_block); - events.append(&mut next_events); + let mut events = Vec::new(); + + // If the range is small enough, just make a single request + if to_block - from_block <= config.max_blocks_per_event_query { + return get_eth_events(config, address, from_block, to_block, topics); + } + + // Otherwise, if the range is larger than the maximum allowed for one request, paginate + let pb = ProgressBar::new(to_block - from_block); + + // Inform user if the block range is large + if to_block - from_block > LARGE_BLOCK_RANGE { + let mut num_events = String::new(); + if topics.is_empty() { + num_events.push_str("all"); + } else { + num_events.push_str(&topics.len().to_string()); } - pb.finish_and_clear(); - return Ok(events); + info!( + "You are querying {} event(s) for a range of {} blocks. This will take some time.", + num_events, + to_block - from_block + 1 + ); + } + + let mut current_from = from_block; + while current_from <= to_block { + // Calculate the end of this chunk (either the max allowed or the to_block) + let current_to = std::cmp::min( + current_from + config.max_blocks_per_event_query - 1, + to_block, + ); + + let mut chunk_events = get_eth_events(config, address, current_from, current_to, topics)?; + events.append(&mut chunk_events); + + pb.set_position(current_to - from_block + 1); + + // Move the starting point to the next block after the current range + current_from = current_to + 1; } + + pb.finish_and_clear(); + + Ok(events) +} + +// Fetches events, in a single call, does NOT paginate the block range. +pub fn get_eth_events( + config: &DVFConfig, + address: &Address, + from_block: u64, + to_block: u64, + topics: &Vec, +) -> Result, ValidationError> { + println!("Querying events from {} to {}", from_block, to_block); let from_block_hex = format!("{:#x}", from_block); let to_block_hex = format!("{:#x}", to_block); let request_body = json!({ diff --git a/src/cached_proxy.rs b/src/cached_proxy.rs index 59455e2..2815b98 100644 --- a/src/cached_proxy.rs +++ b/src/cached_proxy.rs @@ -60,6 +60,7 @@ async fn generic_function( // If we are running in test mode, answer no non-cached queries if url.len() < 2 { + println!("This RPC request is not cached and the proxy is running in cache-only mode!"); return web::Json("".into()); } @@ -164,6 +165,7 @@ async fn generic_path_function + std::fmt::Display>( // If we are running in test mode, answer no non-cached queries if url.len() < 2 { + println!("This RPC request is not cached and the proxy is running in cache-only mode!"); return web::Json("".into()); } diff --git a/src/dvf.rs b/src/dvf.rs index 9422bd3..433c30c 100644 --- a/src/dvf.rs +++ b/src/dvf.rs @@ -197,53 +197,80 @@ fn validate_dvf( // Validate events print_progress("Validating Critical Events.", &mut pc, &progress_mode); let pb = ProgressBar::new(filled.critical_events.len().try_into().unwrap()); + let start_block = filled.deployment_block_num; + let end_block = validation_block_num; + for critical_event in &filled.critical_events { - let seen_events = web3::get_eth_events( - config, - &filled.address, - filled.deployment_block_num, - validation_block_num, - &vec![critical_event.topic0], - )?; - if seen_events.len() != critical_event.occurrences.len() { - return Err(ValidationError::Invalid(format!( - "Found {} occurrences of event {}, but expected {}.", - seen_events.len(), - critical_event.sig, - critical_event.occurrences.len() - ))); - } + let mut num_occurrences = 0; + let num_occurrences_expected = critical_event.occurrences.len(); + + let mut current_from = start_block; + while current_from <= end_block { + let current_to = std::cmp::min( + current_from + config.max_blocks_per_event_query - 1, + end_block, + ); + let seen_events = web3::get_eth_events( + config, + &filled.address, + current_from, + current_to, + &vec![critical_event.topic0], + )?; - #[allow(clippy::needless_range_loop)] - for i in 0..seen_events.len() { - let log_inner = &seen_events[i].inner; - if log_inner.topics() != critical_event.occurrences[i].topics { - let message = format!( - "Mismatching topics for event occurrence {} of {}.", - i, critical_event.sig - ); - if continue_on_mismatch { - mismatch_found = true; - println!("{}", message); - } else { - return Err(ValidationError::Invalid(message)); - } + if num_occurrences + seen_events.len() > num_occurrences_expected { + return Err(ValidationError::Invalid(format!( + "Found more occurrences of event {} than expected ({}).", + critical_event.sig, num_occurrences_expected + ))); } - if log_inner.data.data != critical_event.occurrences[i].data { - let message = format!( - "Mismatching data for event occurrence {} of {}.", - i, critical_event.sig - ); - if continue_on_mismatch { - mismatch_found = true; - println!("{}", message); - } else { - return Err(ValidationError::Invalid(message)); + + for event in seen_events { + let expected = &critical_event.occurrences[num_occurrences]; + let log_inner = &event.inner; + + if log_inner.topics() != expected.topics { + let message = format!( + "Mismatching topics for event occurrence {} of {}.", + num_occurrences, critical_event.sig + ); + if continue_on_mismatch { + mismatch_found = true; + println!("{}", message); + } else { + return Err(ValidationError::Invalid(message)); + } + } + + if log_inner.data.data != expected.data { + let message = format!( + "Mismatching data for event occurrence {} of {}.", + num_occurrences, critical_event.sig + ); + if continue_on_mismatch { + mismatch_found = true; + println!("{}", message); + } else { + return Err(ValidationError::Invalid(message)); + } } + + num_occurrences += 1; } + + current_from = current_to + 1; + } + + if num_occurrences < num_occurrences_expected { + return Err(ValidationError::Invalid(format!( + "Found less occurrences of event {} than expected ({}).", + critical_event.sig, num_occurrences_expected + ))); } + pb.inc(1); } + pb.finish_and_clear(); if mismatch_found { @@ -281,7 +308,7 @@ fn validate_dvf( registry, seen_ids, allow_untrusted, - false, + continue_on_mismatch, Some(reference.contract_name.clone()), )); } diff --git a/tests/cachedrpc/0a2a35c2c728c70e21b6ff193ad413d2e35428dae50a303cebbf1b170079436a b/tests/cachedrpc/0a2a35c2c728c70e21b6ff193ad413d2e35428dae50a303cebbf1b170079436a new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/0a2a35c2c728c70e21b6ff193ad413d2e35428dae50a303cebbf1b170079436a @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/13285d6eb37e79061cfc571a62232661c9148879c9b6226dbe3d7bf45993e523 b/tests/cachedrpc/13285d6eb37e79061cfc571a62232661c9148879c9b6226dbe3d7bf45993e523 new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/13285d6eb37e79061cfc571a62232661c9148879c9b6226dbe3d7bf45993e523 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/156916f3ceb9c306fdf4c1a7a31ab42b57784347369540213d0a168d756f6aec b/tests/cachedrpc/156916f3ceb9c306fdf4c1a7a31ab42b57784347369540213d0a168d756f6aec new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/156916f3ceb9c306fdf4c1a7a31ab42b57784347369540213d0a168d756f6aec @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/1837ef53c077f10e317c6e9d6407d42cefb8fdbffc83a05b037e581ab6e565ac b/tests/cachedrpc/1837ef53c077f10e317c6e9d6407d42cefb8fdbffc83a05b037e581ab6e565ac new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/1837ef53c077f10e317c6e9d6407d42cefb8fdbffc83a05b037e581ab6e565ac @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/41aa27ae5b69108be55cd3f15cac2e08bbbd994f2c406afdb03da679c7f15e20 b/tests/cachedrpc/41aa27ae5b69108be55cd3f15cac2e08bbbd994f2c406afdb03da679c7f15e20 new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/41aa27ae5b69108be55cd3f15cac2e08bbbd994f2c406afdb03da679c7f15e20 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/51c302989b0147a93f276a79a931948cfb9a6edd34f989a62298c276838dfce9 b/tests/cachedrpc/51c302989b0147a93f276a79a931948cfb9a6edd34f989a62298c276838dfce9 new file mode 100644 index 0000000..6473bf8 --- /dev/null +++ b/tests/cachedrpc/51c302989b0147a93f276a79a931948cfb9a6edd34f989a62298c276838dfce9 @@ -0,0 +1 @@ +{"status":"1","message":"OK","result":[{"contractAddress":"0x43506849d7c04f9138d1a2050bbf3a0c054402dd","contractCreator":"0x2ba937d2c71d0fbbeda8ce3bf02a8b88727961ec","txHash":"0x8240d79c3cbdc9347c602def2a433e006ddd5cbd065963a8f67050bb8d8102e2","blockNumber":"18921498","timestamp":"1704220343","contractFactory":"","creationBytecode":"0x60806040526001805460ff60a01b191690556000600b553480156200002357600080fd5b506200002f3362000035565b62000057565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b615ba880620000676000396000f3fe608060405234801561001057600080fd5b506004361061036d5760003560e01c80638456cb59116101d3578063b7b7289911610104578063e3ee160e116100a2578063ef55bec61161007c578063ef55bec614611122578063f2fde38b1461118e578063f9f92be4146111c1578063fe575a87146111f45761036d565b8063e3ee160e14611075578063e5a6b10f146110e1578063e94a0102146110e95761036d565b8063d505accf116100de578063d505accf14610f64578063d608ea6414610fc2578063d916948714611032578063dd62ed3e1461103a5761036d565b8063b7b7289914610db0578063bd10243014610e78578063cf09299514610e805761036d565b8063a0cc6a6811610171578063aa20e1e41161014b578063aa20e1e414610cd4578063aa271e1a14610d07578063ad38bf2214610d3a578063b2118a8d14610d6d5761036d565b8063a0cc6a6814610c5a578063a457c2d714610c62578063a9059cbb14610c9b5761036d565b80638da5cb5b116101ad5780638da5cb5b14610b6a57806395d89b4114610b725780639fd0506d14610b7a5780639fd5a6cf14610b825761036d565b80638456cb5914610a4b57806388b7ab6314610a535780638a6db9c314610b375761036d565b806338a63183116102ad57806354fd4d501161024b5780635c975abb116102255780635c975abb146109d557806370a08231146109dd5780637ecebe0014610a105780637f2eecc314610a435761036d565b806354fd4d501461094c578063554bab3c146109545780635a049a70146109875761036d565b806340c10f191161028757806340c10f19146107fb57806342966c6814610834578063430239b4146108515780634e44d956146109135761036d565b806338a63183146107b257806339509351146107ba5780633f4ba83a146107f35761036d565b80632fc81e091161031a578063313ce567116102f4578063313ce5671461056f5780633357162b1461058d57806335d99f35146107795780633644e515146107aa5761036d565b80632fc81e09146105015780633092afd51461053457806330adf81f146105675761036d565b80631a8952661161034b5780631a8952661461045657806323b872dd1461048b5780632ab60045146104ce5761036d565b806306fdde0314610372578063095ea7b3146103ef57806318160ddd1461043c575b600080fd5b61037a611227565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103b457818101518382015260200161039c565b50505050905090810190601f1680156103e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104286004803603604081101561040557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356112d3565b604080519115158252519081900360200190f35b610444611374565b60408051918252519081900360200190f35b6104896004803603602081101561046c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661137a565b005b610428600480360360608110156104a157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611437565b610489600480360360208110156104e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166116f2565b6104896004803603602081101561051757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611853565b6104286004803603602081101561054a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118bb565b6104446119b4565b6105776119d8565b6040805160ff9092168252519081900360200190f35b61048960048036036101008110156105a457600080fd5b8101906020810181356401000000008111156105bf57600080fd5b8201836020820111156105d157600080fd5b803590602001918460018302840111640100000000831117156105f357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561064657600080fd5b82018360208201111561065857600080fd5b8035906020019184600183028401116401000000008311171561067a57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156106cd57600080fd5b8201836020820111156106df57600080fd5b8035906020019184600183028401116401000000008311171561070157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050813560ff16925050602081013573ffffffffffffffffffffffffffffffffffffffff908116916040810135821691606082013581169160800135166119e1565b610781611d23565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610444611d3f565b610781611d4e565b610428600480360360408110156107d057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611d6a565b610489611e02565b6104286004803603604081101561081157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611ec5565b6104896004803603602081101561084a57600080fd5b5035612296565b6104896004803603604081101561086757600080fd5b81019060208101813564010000000081111561088257600080fd5b82018360208201111561089457600080fd5b803590602001918460208302840111640100000000831117156108b657600080fd5b9193909290916020810190356401000000008111156108d457600080fd5b8201836020820111156108e657600080fd5b8035906020019184600183028401116401000000008311171561090857600080fd5b509092509050612538565b6104286004803603604081101561092957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356126ef565b61037a612882565b6104896004803603602081101561096a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166128b9565b610489600480360360a081101561099d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060ff6040820135169060608101359060800135612a20565b610428612abe565b610444600480360360208110156109f357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612adf565b61044460048036036020811015610a2657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612af0565b610444612b18565b610489612b3c565b610489600480360360e0811015610a6957600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135640100000000811115610ac257600080fd5b820183602082011115610ad457600080fd5b80359060200191846001830284011164010000000083111715610af657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612c16945050505050565b61044460048036036020811015610b4d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612d7a565b610781612da2565b61037a612dbe565b610781612e37565b610489600480360360a0811015610b9857600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359181019060a081016080820135640100000000811115610be557600080fd5b820183602082011115610bf757600080fd5b80359060200191846001830284011164010000000083111715610c1957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612e53945050505050565b610444612eea565b61042860048036036040811015610c7857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612f0e565b61042860048036036040811015610cb157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612fa6565b61048960048036036020811015610cea57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613109565b61042860048036036020811015610d1d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613270565b61048960048036036020811015610d5057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661329b565b61048960048036036060811015610d8357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135613402565b61048960048036036060811015610dc657600080fd5b73ffffffffffffffffffffffffffffffffffffffff82351691602081013591810190606081016040820135640100000000811115610e0357600080fd5b820183602082011115610e1557600080fd5b80359060200191846001830284011164010000000083111715610e3757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613498945050505050565b61078161352d565b610489600480360360e0811015610e9657600080fd5b73ffffffffffffffffffffffffffffffffffffffff823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135640100000000811115610eef57600080fd5b820183602082011115610f0157600080fd5b80359060200191846001830284011164010000000083111715610f2357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613549945050505050565b610489600480360360e0811015610f7a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356136a2565b61048960048036036020811015610fd857600080fd5b810190602081018135640100000000811115610ff357600080fd5b82018360208201111561100557600080fd5b8035906020019184600183028401116401000000008311171561102757600080fd5b509092509050613744565b61044461382d565b6104446004803603604081101561105057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516613851565b610489600480360361012081101561108c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e0810135906101000135613889565b61037a6139f1565b610428600480360360408110156110ff57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135613a6a565b610489600480360361012081101561113957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e0810135906101000135613aa2565b610489600480360360208110156111a457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613bfd565b610489600480360360208110156111d757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613d50565b6104286004803603602081101561120a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16613e0d565b6004805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156112cb5780601f106112a0576101008083540402835291602001916112cb565b820191906000526020600020905b8154815290600101906020018083116112ae57829003601f168201915b505050505081565b60015460009074010000000000000000000000000000000000000000900460ff161561136057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61136b338484613e18565b50600192915050565b600b5490565b60025473ffffffffffffffffffffffffffffffffffffffff1633146113ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615824602c913960400191505060405180910390fd5b6113f381613f5f565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e90600090a250565b60015460009074010000000000000000000000000000000000000000900460ff16156114c457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b336114ce81613f6a565b15611524576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8461152e81613f6a565b15611584576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8461158e81613f6a565b156115e4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff87166000908152600a6020908152604080832033845290915290205485111561166d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806159146028913960400191505060405180910390fd5b611678878787613f98565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600a602090815260408083203384529091529020546116b39086614163565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600a60209081526040808320338452909152902055600193505050509392505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461177857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166117e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061575d602a913960400191505060405180910390fd5b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fe475e580d85111348e40d8ca33cfdd74c30fe1655c2d8537a13abc10065ffa5a90600090a250565b60125460ff1660011461186557600080fd5b6000611870306141da565b9050801561188357611883308383613f98565b61188c30614224565b5050601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166002179055565b60085460009073ffffffffffffffffffffffffffffffffffffffff16331461192e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806157fb6029913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166000818152600c6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600d909152808220829055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a2506001919050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60065460ff1681565b60085474010000000000000000000000000000000000000000900460ff1615611a55576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061598f602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611ac1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806158c1602f913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8316611b2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806157346029913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216611b99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061593c602e913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116611c05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180615a7c6028913960400191505060405180910390fd5b8751611c189060049060208b01906154cd565b508651611c2c9060059060208a01906154cd565b508551611c409060079060208901906154cd565b50600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff8716179055600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff8781169190911790925560018054821686841617905560028054909116918416919091179055611cda8161422f565b5050600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050505050565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b6000611d49614276565b905090565b600e5473ffffffffffffffffffffffffffffffffffffffff1690565b60015460009074010000000000000000000000000000000000000000900460ff1615611df757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61136b33848461436b565b60015473ffffffffffffffffffffffffffffffffffffffff163314611e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615a306022913960400191505060405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b60015460009074010000000000000000000000000000000000000000900460ff1615611f5257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b336000908152600c602052604090205460ff16611fba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806158a06021913960400191505060405180910390fd5b33611fc481613f6a565b1561201a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8361202481613f6a565b1561207a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff85166120e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806156c96023913960400191505060405180910390fd5b6000841161213f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806157ac6029913960400191505060405180910390fd5b336000908152600d6020526040902054808511156121a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615a02602e913960400191505060405180910390fd5b600b546121b590866143b5565b600b556121d4866121cf876121c9836141da565b906143b5565b614430565b6121de8186614163565b336000818152600d6020908152604091829020939093558051888152905173ffffffffffffffffffffffffffffffffffffffff8a16937fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8928290030190a360408051868152905173ffffffffffffffffffffffffffffffffffffffff8816916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600195945050505050565b60015474010000000000000000000000000000000000000000900460ff161561232057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b336000908152600c602052604090205460ff16612388576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806158a06021913960400191505060405180910390fd5b3361239281613f6a565b156123e8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b60006123f3336141da565b90506000831161244e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806156a06029913960400191505060405180910390fd5b828110156124a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061587a6026913960400191505060405180910390fd5b600b546124b49084614163565b600b556124c5336121cf8386614163565b60408051848152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a260408051848152905160009133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60125460ff1660021461254a57600080fd5b6125566005838361554b565b5060005b83811015612698576003600086868481811061257257fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff168352508101919091526040016000205460ff166125fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806155ed603d913960400191505060405180910390fd5b61262b85858381811061260957fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16614224565b6003600086868481811061263b57fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff1683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560010161255a565b506126a230614224565b505030600090815260036020819052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091556012805490911690911790555050565b60015460009074010000000000000000000000000000000000000000900460ff161561277c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b60085473ffffffffffffffffffffffffffffffffffffffff1633146127ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806157fb6029913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000818152600c6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600d825291829020859055815185815291517f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d209281900390910190a250600192915050565b60408051808201909152600181527f3200000000000000000000000000000000000000000000000000000000000000602082015290565b60005473ffffffffffffffffffffffffffffffffffffffff16331461293f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166129ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061564d6028913960400191505060405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83811691909117918290556040519116907fb80482a293ca2e013eda8683c9bd7fc8347cfdaeea5ede58cba46df502c2a60490600090a250565b60015474010000000000000000000000000000000000000000900460ff1615612aaa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b612ab78585858585614531565b5050505050565b60015474010000000000000000000000000000000000000000900460ff1681565b6000612aea826141da565b92915050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526011602052604090205490565b7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b60015473ffffffffffffffffffffffffffffffffffffffff163314612bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615a306022913960400191505060405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b60015474010000000000000000000000000000000000000000900460ff1615612ca057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b86612caa81613f6a565b15612d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b86612d0a81613f6a565b15612d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b612d6f89898989898989614571565b505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156112cb5780601f106112a0576101008083540402835291602001916112cb565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60015474010000000000000000000000000000000000000000900460ff1615612edd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b612ab78585858585614692565b7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b60015460009074010000000000000000000000000000000000000000900460ff1615612f9b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61136b338484614956565b60015460009074010000000000000000000000000000000000000000900460ff161561303357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b3361303d81613f6a565b15613093576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8361309d81613f6a565b156130f3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b6130fe338686613f98565b506001949350505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461318f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166131fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806158c1602f913960400191505060405180910390fd5b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83811691909117918290556040519116907fdb66dfa9c6b8f5226fe9aac7e51897ae8ee94ac31dc70bb6c9900b2574b707e690600090a250565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205460ff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331461332157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661338d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180615ad26032913960400191505060405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83811691909117918290556040519116907fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b600e5473ffffffffffffffffffffffffffffffffffffffff163314613472576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806158f06024913960400191505060405180910390fd5b61349373ffffffffffffffffffffffffffffffffffffffff841683836149b2565b505050565b60015474010000000000000000000000000000000000000000900460ff161561352257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b613493838383614a3f565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60015474010000000000000000000000000000000000000000900460ff16156135d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b866135dd81613f6a565b15613633576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8661363d81613f6a565b15613693576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b612d6f89898989898989614b49565b60015474010000000000000000000000000000000000000000900460ff161561372c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61373b87878787878787614be7565b50505050505050565b60085474010000000000000000000000000000000000000000900460ff168015613771575060125460ff16155b61377a57600080fd5b6137866004838361554b565b506137fb82828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152600181527f320000000000000000000000000000000000000000000000000000000000000060208201529150614c299050565b600f555050601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b73ffffffffffffffffffffffffffffffffffffffff9182166000908152600a6020908152604080832093909416825291909152205490565b60015474010000000000000000000000000000000000000000900460ff161561391357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b8861391d81613f6a565b15613973576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b8861397d81613f6a565b156139d3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b6139e48b8b8b8b8b8b8b8b8b614c3f565b5050505050505050505050565b6007805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156112cb5780601f106112a0576101008083540402835291602001916112cb565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152601060209081526040808320938352929052205460ff1690565b60015474010000000000000000000000000000000000000000900460ff1615613b2c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b88613b3681613f6a565b15613b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b88613b9681613f6a565b15613bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b046025913960400191505060405180910390fd5b6139e48b8b8b8b8b8b8b8b8b614c83565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c8357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116613cef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806156ec6026913960400191505060405180910390fd5b6000546040805173ffffffffffffffffffffffffffffffffffffffff9283168152918316602083015280517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09281900390910190a1613d4d8161422f565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314613dc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615824602c913960400191505060405180910390fd5b613dc981614224565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85590600090a250565b6000612aea82613f6a565b73ffffffffffffffffffffffffffffffffffffffff8316613e84576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806159de6024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216613ef0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806157126022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8084166000818152600a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b613d4d816000614cc7565b73ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205460ff1c60011490565b73ffffffffffffffffffffffffffffffffffffffff8316614004576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806159b96025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216614070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061562a6023913960400191505060405180910390fd5b614079836141da565b8111156140d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806157d56026913960400191505060405180910390fd5b6140e8836121cf836140e2876141da565b90614163565b6140f9826121cf836121c9866141da565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000828211156141d457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b73ffffffffffffffffffffffffffffffffffffffff166000908152600960205260409020547f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690565b613d4d816001614cc7565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6004805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f8101849004840282018401909252818152600093611d4993919290918301828280156143235780601f106142f857610100808354040283529160200191614323565b820191906000526020600020905b81548152906001019060200180831161430657829003601f168201915b50505050506040518060400160405280600181526020017f3200000000000000000000000000000000000000000000000000000000000000815250614366614d50565b614d54565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600a602090815260408083209386168352929052205461349390849084906143b090856143b5565b613e18565b60008282018381101561442957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8111156144a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615850602a913960400191505060405180910390fd5b6144b282613f6a565b15614508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806157876025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff909116600090815260096020526040902055565b612ab78585848487604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614a3f565b73ffffffffffffffffffffffffffffffffffffffff861633146145df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061596a6025913960400191505060405180910390fd5b6145eb87838686614dc8565b604080517fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de860208083019190915273ffffffffffffffffffffffffffffffffffffffff808b1683850152891660608301526080820188905260a0820187905260c0820186905260e080830186905283518084039091018152610100909201909252805191012061467d90889083614e88565b6146878783615006565b61373b878787613f98565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214806146c05750428210155b61472b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f46696174546f6b656e56323a207065726d697420697320657870697265640000604482015290519081900360640190fd5b60006147d3614738614276565b73ffffffffffffffffffffffffffffffffffffffff80891660008181526011602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938b166060840152608083018a905260a083019390935260c08083018990528151808403909101815260e09092019052805191012061508b565b905073800c32eaa2a6c93cf4cb51794450ed77fbfbb172636ccea6528783856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614860578181015183820152602001614848565b50505050905090810190601f16801561488d5780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b1580156148ac57600080fd5b505af41580156148c0573d6000803e3d6000fd5b505050506040513d60208110156148d657600080fd5b505161494357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f454950323631323a20696e76616c6964207369676e6174757265000000000000604482015290519081900360640190fd5b61494e868686613e18565b505050505050565b61349383836143b084604051806060016040528060258152602001615b4e6025913973ffffffffffffffffffffffffffffffffffffffff808a166000908152600a60209081526040808320938c168352929052205491906150c5565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052613493908490615176565b614a49838361524e565b614ac3837f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960001b8585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506040516020818303038152906040528051906020012083614e88565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260106020908152604080832086845290915280822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055518492917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050565b614b5587838686614dc8565b604080517f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226760208083019190915273ffffffffffffffffffffffffffffffffffffffff808b1683850152891660608301526080820188905260a0820187905260c0820186905260e080830186905283518084039091018152610100909201909252805191012061467d90889083614e88565b61373b87878787868689604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614692565b600046614c37848483614d54565b949350505050565b612d6f89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614b49565b612d6f89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614571565b80614cda57614cd5826141da565b614d23565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960205260409020547f8000000000000000000000000000000000000000000000000000000000000000175b73ffffffffffffffffffffffffffffffffffffffff90921660009081526009602052604090209190915550565b4690565b8251602093840120825192840192909220604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8187015280820194909452606084019190915260808301919091523060a0808401919091528151808403909101815260c09092019052805191012090565b814211614e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615675602b913960400191505060405180910390fd5b804210614e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615b296025913960400191505060405180910390fd5b614e82848461524e565b50505050565b73800c32eaa2a6c93cf4cb51794450ed77fbfbb172636ccea65284614eb4614eae614276565b8661508b565b846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614f23578181015183820152602001614f0b565b50505050905090810190601f168015614f505780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b158015614f6f57600080fd5b505af4158015614f83573d6000803e3d6000fd5b505050506040513d6020811015614f9957600080fd5b505161349357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f46696174546f6b656e56323a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600081815260106020908152604080832085845290915280822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055518392917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a35050565b6040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000818484111561516e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561513357818101518382015260200161511b565b50505050905090810190601f1680156151605780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606151d8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166152dc9092919063ffffffff16565b805190915015613493578080602001905160208110156151f757600080fd5b5051613493576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615a52602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260106020908152604080832084845290915290205460ff16156152d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615aa4602e913960400191505060405180910390fd5b5050565b6060614c378484600085856152f085615447565b61535b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106153c557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101615388565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615427576040519150601f19603f3d011682016040523d82523d6000602084013e61542c565b606091505b509150915061543c82828661544d565b979650505050505050565b3b151590565b6060831561545c575081614429565b82511561546c5782518084602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815284516024840152845185939192839260440191908501908083836000831561513357818101518382015260200161511b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061550e57805160ff191683800117855561553b565b8280016001018555821561553b579182015b8281111561553b578251825591602001919060010190615520565b506155479291506155d7565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106155aa578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561553b565b8280016001018555821561553b579182015b8281111561553b5782358255916020019190600101906155bc565b5b8082111561554757600081556001016155d856fe46696174546f6b656e56325f323a20426c61636b6c697374696e672070726576696f75736c7920756e626c61636b6c6973746564206163636f756e742145524332303a207472616e7366657220746f20746865207a65726f20616464726573735061757361626c653a206e65772070617573657220697320746865207a65726f206164647265737346696174546f6b656e56323a20617574686f72697a6174696f6e206973206e6f74207965742076616c696446696174546f6b656e3a206275726e20616d6f756e74206e6f742067726561746572207468616e203046696174546f6b656e3a206d696e7420746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737346696174546f6b656e3a206e65772070617573657220697320746865207a65726f2061646472657373526573637561626c653a206e6577207265736375657220697320746865207a65726f206164647265737346696174546f6b656e56325f323a204163636f756e7420697320626c61636b6c697374656446696174546f6b656e3a206d696e7420616d6f756e74206e6f742067726561746572207468616e203045524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636546696174546f6b656e3a2063616c6c6572206973206e6f7420746865206d61737465724d696e746572426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686520626c61636b6c697374657246696174546f6b656e56325f323a2042616c616e636520657863656564732028325e323535202d20312946696174546f6b656e3a206275726e20616d6f756e7420657863656564732062616c616e636546696174546f6b656e3a2063616c6c6572206973206e6f742061206d696e74657246696174546f6b656e3a206e6577206d61737465724d696e74657220697320746865207a65726f2061646472657373526573637561626c653a2063616c6c6572206973206e6f7420746865207265736375657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636546696174546f6b656e3a206e657720626c61636b6c697374657220697320746865207a65726f206164647265737346696174546f6b656e56323a2063616c6c6572206d7573742062652074686520706179656546696174546f6b656e3a20636f6e747261637420697320616c726561647920696e697469616c697a656445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737346696174546f6b656e3a206d696e7420616d6f756e742065786365656473206d696e746572416c6c6f77616e63655061757361626c653a2063616c6c6572206973206e6f7420746865207061757365725361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656446696174546f6b656e3a206e6577206f776e657220697320746865207a65726f206164647265737346696174546f6b656e56323a20617574686f72697a6174696f6e2069732075736564206f722063616e63656c6564426c61636b6c69737461626c653a206e657720626c61636b6c697374657220697320746865207a65726f2061646472657373426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c697374656446696174546f6b656e56323a20617574686f72697a6174696f6e206973206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122005677c3919f4b149e065a5983baa9e2fb099cab5463ccd06429f70b32d8d9bdf64736f6c634300060c0033"}]} \ No newline at end of file diff --git a/tests/cachedrpc/54f1daa3bcd13a4303fccf7b4b1df72b4f11cc6fc1ae31fb46920501e9232d6f b/tests/cachedrpc/54f1daa3bcd13a4303fccf7b4b1df72b4f11cc6fc1ae31fb46920501e9232d6f new file mode 100644 index 0000000..d99db06 --- /dev/null +++ b/tests/cachedrpc/54f1daa3bcd13a4303fccf7b4b1df72b4f11cc6fc1ae31fb46920501e9232d6f @@ -0,0 +1 @@ +{"status":"1","message":"OK","result":[{"SourceCode":"{{\r\n \"language\": \"Solidity\",\r\n \"sources\": {\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/FiatTokenV2_2.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { EIP712Domain } from \\\"./EIP712Domain.sol\\\"; // solhint-disable-line no-unused-import\\nimport { Blacklistable } from \\\"../v1/Blacklistable.sol\\\"; // solhint-disable-line no-unused-import\\nimport { FiatTokenV1 } from \\\"../v1/FiatTokenV1.sol\\\"; // solhint-disable-line no-unused-import\\nimport { FiatTokenV2 } from \\\"./FiatTokenV2.sol\\\"; // solhint-disable-line no-unused-import\\nimport { FiatTokenV2_1 } from \\\"./FiatTokenV2_1.sol\\\";\\nimport { EIP712 } from \\\"../util/EIP712.sol\\\";\\n\\n// solhint-disable func-name-mixedcase\\n\\n/**\\n * @title FiatToken V2.2\\n * @notice ERC20 Token backed by fiat reserves, version 2.2\\n */\\ncontract FiatTokenV2_2 is FiatTokenV2_1 {\\n /**\\n * @notice Initialize v2.2\\n * @param accountsToBlacklist A list of accounts to migrate from the old blacklist\\n * @param newSymbol New token symbol\\n * data structure to the new blacklist data structure.\\n */\\n function initializeV2_2(\\n address[] calldata accountsToBlacklist,\\n string calldata newSymbol\\n ) external {\\n // solhint-disable-next-line reason-string\\n require(_initializedVersion == 2);\\n\\n // Update fiat token symbol\\n symbol = newSymbol;\\n\\n // Add previously blacklisted accounts to the new blacklist data structure\\n // and remove them from the old blacklist data structure.\\n for (uint256 i = 0; i < accountsToBlacklist.length; i++) {\\n require(\\n _deprecatedBlacklisted[accountsToBlacklist[i]],\\n \\\"FiatTokenV2_2: Blacklisting previously unblacklisted account!\\\"\\n );\\n _blacklist(accountsToBlacklist[i]);\\n delete _deprecatedBlacklisted[accountsToBlacklist[i]];\\n }\\n _blacklist(address(this));\\n delete _deprecatedBlacklisted[address(this)];\\n\\n _initializedVersion = 3;\\n }\\n\\n /**\\n * @dev Internal function to get the current chain id.\\n * @return The current chain id.\\n */\\n function _chainId() internal virtual view returns (uint256) {\\n uint256 chainId;\\n assembly {\\n chainId := chainid()\\n }\\n return chainId;\\n }\\n\\n /**\\n * @inheritdoc EIP712Domain\\n */\\n function _domainSeparator() internal override view returns (bytes32) {\\n return EIP712.makeDomainSeparator(name, \\\"2\\\", _chainId());\\n }\\n\\n /**\\n * @notice Update allowance with a signed permit\\n * @dev EOA wallet signatures should be packed in the order of r, s, v.\\n * @param owner Token owner's address (Authorizer)\\n * @param spender Spender's address\\n * @param value Amount of allowance\\n * @param deadline The time at which the signature expires (unix time), or max uint256 value to signal no expiration\\n * @param signature Signature bytes signed by an EOA wallet or a contract wallet\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n bytes memory signature\\n ) external whenNotPaused {\\n _permit(owner, spender, value, deadline, signature);\\n }\\n\\n /**\\n * @notice Execute a transfer with a signed authorization\\n * @dev EOA wallet signatures should be packed in the order of r, s, v.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param signature Signature bytes signed by an EOA wallet or a contract wallet\\n */\\n function transferWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n bytes memory signature\\n ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n _transferWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n signature\\n );\\n }\\n\\n /**\\n * @notice Receive a transfer with a signed authorization from the payer\\n * @dev This has an additional check to ensure that the payee's address\\n * matches the caller of this function to prevent front-running attacks.\\n * EOA wallet signatures should be packed in the order of r, s, v.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param signature Signature bytes signed by an EOA wallet or a contract wallet\\n */\\n function receiveWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n bytes memory signature\\n ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n _receiveWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n signature\\n );\\n }\\n\\n /**\\n * @notice Attempt to cancel an authorization\\n * @dev Works only if the authorization is not yet used.\\n * EOA wallet signatures should be packed in the order of r, s, v.\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @param signature Signature bytes signed by an EOA wallet or a contract wallet\\n */\\n function cancelAuthorization(\\n address authorizer,\\n bytes32 nonce,\\n bytes memory signature\\n ) external whenNotPaused {\\n _cancelAuthorization(authorizer, nonce, signature);\\n }\\n\\n /**\\n * @dev Helper method that sets the blacklist state of an account on balanceAndBlacklistStates.\\n * If _shouldBlacklist is true, we apply a (1 << 255) bitmask with an OR operation on the\\n * account's balanceAndBlacklistState. This flips the high bit for the account to 1,\\n * indicating that the account is blacklisted.\\n *\\n * If _shouldBlacklist if false, we reset the account's balanceAndBlacklistStates to their\\n * balances. This clears the high bit for the account, indicating that the account is unblacklisted.\\n * @param _account The address of the account.\\n * @param _shouldBlacklist True if the account should be blacklisted, false if the account should be unblacklisted.\\n */\\n function _setBlacklistState(address _account, bool _shouldBlacklist)\\n internal\\n override\\n {\\n balanceAndBlacklistStates[_account] = _shouldBlacklist\\n ? balanceAndBlacklistStates[_account] | (1 << 255)\\n : _balanceOf(_account);\\n }\\n\\n /**\\n * @dev Helper method that sets the balance of an account on balanceAndBlacklistStates.\\n * Since balances are stored in the last 255 bits of the balanceAndBlacklistStates value,\\n * we need to ensure that the updated balance does not exceed (2^255 - 1).\\n * Since blacklisted accounts' balances cannot be updated, the method will also\\n * revert if the account is blacklisted\\n * @param _account The address of the account.\\n * @param _balance The new fiat token balance of the account (max: (2^255 - 1)).\\n */\\n function _setBalance(address _account, uint256 _balance) internal override {\\n require(\\n _balance <= ((1 << 255) - 1),\\n \\\"FiatTokenV2_2: Balance exceeds (2^255 - 1)\\\"\\n );\\n require(\\n !_isBlacklisted(_account),\\n \\\"FiatTokenV2_2: Account is blacklisted\\\"\\n );\\n\\n balanceAndBlacklistStates[_account] = _balance;\\n }\\n\\n /**\\n * @inheritdoc Blacklistable\\n */\\n function _isBlacklisted(address _account)\\n internal\\n override\\n view\\n returns (bool)\\n {\\n return balanceAndBlacklistStates[_account] >> 255 == 1;\\n }\\n\\n /**\\n * @dev Helper method to obtain the balance of an account. Since balances\\n * are stored in the last 255 bits of the balanceAndBlacklistStates value,\\n * we apply a ((1 << 255) - 1) bit bitmask with an AND operation on the\\n * balanceAndBlacklistState to obtain the balance.\\n * @param _account The address of the account.\\n * @return The fiat token balance of the account.\\n */\\n function _balanceOf(address _account)\\n internal\\n override\\n view\\n returns (uint256)\\n {\\n return balanceAndBlacklistStates[_account] & ((1 << 255) - 1);\\n }\\n\\n /**\\n * @inheritdoc FiatTokenV1\\n */\\n function approve(address spender, uint256 value)\\n external\\n override\\n whenNotPaused\\n returns (bool)\\n {\\n _approve(msg.sender, spender, value);\\n return true;\\n }\\n\\n /**\\n * @inheritdoc FiatTokenV2\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external override whenNotPaused {\\n _permit(owner, spender, value, deadline, v, r, s);\\n }\\n\\n /**\\n * @inheritdoc FiatTokenV2\\n */\\n function increaseAllowance(address spender, uint256 increment)\\n external\\n override\\n whenNotPaused\\n returns (bool)\\n {\\n _increaseAllowance(msg.sender, spender, increment);\\n return true;\\n }\\n\\n /**\\n * @inheritdoc FiatTokenV2\\n */\\n function decreaseAllowance(address spender, uint256 decrement)\\n external\\n override\\n whenNotPaused\\n returns (bool)\\n {\\n _decreaseAllowance(msg.sender, spender, decrement);\\n return true;\\n }\\n}\\n\"\r\n },\r\n \"@openzeppelin/contracts/utils/Address.sol\": {\r\n \"content\": \"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.2 <0.8.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\"\r\n },\r\n \"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\": {\r\n \"content\": \"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n // solhint-disable-next-line max-line-length\\n require((value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\"\r\n },\r\n \"@openzeppelin/contracts/token/ERC20/IERC20.sol\": {\r\n \"content\": \"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\"\r\n },\r\n \"@openzeppelin/contracts/math/SafeMath.sol\": {\r\n \"content\": \"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/FiatTokenV2_1.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { FiatTokenV2 } from \\\"./FiatTokenV2.sol\\\";\\n\\n// solhint-disable func-name-mixedcase\\n\\n/**\\n * @title FiatToken V2.1\\n * @notice ERC20 Token backed by fiat reserves, version 2.1\\n */\\ncontract FiatTokenV2_1 is FiatTokenV2 {\\n /**\\n * @notice Initialize v2.1\\n * @param lostAndFound The address to which the locked funds are sent\\n */\\n function initializeV2_1(address lostAndFound) external {\\n // solhint-disable-next-line reason-string\\n require(_initializedVersion == 1);\\n\\n uint256 lockedAmount = _balanceOf(address(this));\\n if (lockedAmount > 0) {\\n _transfer(address(this), lostAndFound, lockedAmount);\\n }\\n _blacklist(address(this));\\n\\n _initializedVersion = 2;\\n }\\n\\n /**\\n * @notice Version string for the EIP712 domain separator\\n * @return Version string\\n */\\n function version() external pure returns (string memory) {\\n return \\\"2\\\";\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/FiatTokenV2.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { FiatTokenV1_1 } from \\\"../v1.1/FiatTokenV1_1.sol\\\";\\nimport { EIP712 } from \\\"../util/EIP712.sol\\\";\\nimport { EIP3009 } from \\\"./EIP3009.sol\\\";\\nimport { EIP2612 } from \\\"./EIP2612.sol\\\";\\n\\n/**\\n * @title FiatToken V2\\n * @notice ERC20 Token backed by fiat reserves, version 2\\n */\\ncontract FiatTokenV2 is FiatTokenV1_1, EIP3009, EIP2612 {\\n uint8 internal _initializedVersion;\\n\\n /**\\n * @notice Initialize v2\\n * @param newName New token name\\n */\\n function initializeV2(string calldata newName) external {\\n // solhint-disable-next-line reason-string\\n require(initialized && _initializedVersion == 0);\\n name = newName;\\n _DEPRECATED_CACHED_DOMAIN_SEPARATOR = EIP712.makeDomainSeparator(\\n newName,\\n \\\"2\\\"\\n );\\n _initializedVersion = 1;\\n }\\n\\n /**\\n * @notice Increase the allowance by a given increment\\n * @param spender Spender's address\\n * @param increment Amount of increase in allowance\\n * @return True if successful\\n */\\n function increaseAllowance(address spender, uint256 increment)\\n external\\n virtual\\n whenNotPaused\\n notBlacklisted(msg.sender)\\n notBlacklisted(spender)\\n returns (bool)\\n {\\n _increaseAllowance(msg.sender, spender, increment);\\n return true;\\n }\\n\\n /**\\n * @notice Decrease the allowance by a given decrement\\n * @param spender Spender's address\\n * @param decrement Amount of decrease in allowance\\n * @return True if successful\\n */\\n function decreaseAllowance(address spender, uint256 decrement)\\n external\\n virtual\\n whenNotPaused\\n notBlacklisted(msg.sender)\\n notBlacklisted(spender)\\n returns (bool)\\n {\\n _decreaseAllowance(msg.sender, spender, decrement);\\n return true;\\n }\\n\\n /**\\n * @notice Execute a transfer with a signed authorization\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function transferWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n _transferWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n v,\\n r,\\n s\\n );\\n }\\n\\n /**\\n * @notice Receive a transfer with a signed authorization from the payer\\n * @dev This has an additional check to ensure that the payee's address\\n * matches the caller of this function to prevent front-running attacks.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function receiveWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n _receiveWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n v,\\n r,\\n s\\n );\\n }\\n\\n /**\\n * @notice Attempt to cancel an authorization\\n * @dev Works only if the authorization is not yet used.\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function cancelAuthorization(\\n address authorizer,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external whenNotPaused {\\n _cancelAuthorization(authorizer, nonce, v, r, s);\\n }\\n\\n /**\\n * @notice Update allowance with a signed permit\\n * @param owner Token owner's address (Authorizer)\\n * @param spender Spender's address\\n * @param value Amount of allowance\\n * @param deadline The time at which the signature expires (unix time), or max uint256 value to signal no expiration\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n external\\n virtual\\n whenNotPaused\\n notBlacklisted(owner)\\n notBlacklisted(spender)\\n {\\n _permit(owner, spender, value, deadline, v, r, s);\\n }\\n\\n /**\\n * @dev Internal function to increase the allowance by a given increment\\n * @param owner Token owner's address\\n * @param spender Spender's address\\n * @param increment Amount of increase\\n */\\n function _increaseAllowance(\\n address owner,\\n address spender,\\n uint256 increment\\n ) internal override {\\n _approve(owner, spender, allowed[owner][spender].add(increment));\\n }\\n\\n /**\\n * @dev Internal function to decrease the allowance by a given decrement\\n * @param owner Token owner's address\\n * @param spender Spender's address\\n * @param decrement Amount of decrease\\n */\\n function _decreaseAllowance(\\n address owner,\\n address spender,\\n uint256 decrement\\n ) internal override {\\n _approve(\\n owner,\\n spender,\\n allowed[owner][spender].sub(\\n decrement,\\n \\\"ERC20: decreased allowance below zero\\\"\\n )\\n );\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/EIP712Domain.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\n// solhint-disable func-name-mixedcase\\n\\n/**\\n * @title EIP712 Domain\\n */\\ncontract EIP712Domain {\\n // was originally DOMAIN_SEPARATOR\\n // but that has been moved to a method so we can override it in V2_2+\\n bytes32 internal _DEPRECATED_CACHED_DOMAIN_SEPARATOR;\\n\\n /**\\n * @notice Get the EIP712 Domain Separator.\\n * @return The bytes32 EIP712 domain separator.\\n */\\n function DOMAIN_SEPARATOR() external view returns (bytes32) {\\n return _domainSeparator();\\n }\\n\\n /**\\n * @dev Internal method to get the EIP712 Domain Separator.\\n * @return The bytes32 EIP712 domain separator.\\n */\\n function _domainSeparator() internal virtual view returns (bytes32) {\\n return _DEPRECATED_CACHED_DOMAIN_SEPARATOR;\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/EIP3009.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { AbstractFiatTokenV2 } from \\\"./AbstractFiatTokenV2.sol\\\";\\nimport { EIP712Domain } from \\\"./EIP712Domain.sol\\\";\\nimport { SignatureChecker } from \\\"../util/SignatureChecker.sol\\\";\\nimport { MessageHashUtils } from \\\"../util/MessageHashUtils.sol\\\";\\n\\n/**\\n * @title EIP-3009\\n * @notice Provide internal implementation for gas-abstracted transfers\\n * @dev Contracts that inherit from this must wrap these with publicly\\n * accessible functions, optionally adding modifiers where necessary\\n */\\nabstract contract EIP3009 is AbstractFiatTokenV2, EIP712Domain {\\n // keccak256(\\\"TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)\\\")\\n bytes32\\n public constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH = 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267;\\n\\n // keccak256(\\\"ReceiveWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)\\\")\\n bytes32\\n public constant RECEIVE_WITH_AUTHORIZATION_TYPEHASH = 0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8;\\n\\n // keccak256(\\\"CancelAuthorization(address authorizer,bytes32 nonce)\\\")\\n bytes32\\n public constant CANCEL_AUTHORIZATION_TYPEHASH = 0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429;\\n\\n /**\\n * @dev authorizer address => nonce => bool (true if nonce is used)\\n */\\n mapping(address => mapping(bytes32 => bool)) private _authorizationStates;\\n\\n event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);\\n event AuthorizationCanceled(\\n address indexed authorizer,\\n bytes32 indexed nonce\\n );\\n\\n /**\\n * @notice Returns the state of an authorization\\n * @dev Nonces are randomly generated 32-byte data unique to the\\n * authorizer's address\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @return True if the nonce is used\\n */\\n function authorizationState(address authorizer, bytes32 nonce)\\n external\\n view\\n returns (bool)\\n {\\n return _authorizationStates[authorizer][nonce];\\n }\\n\\n /**\\n * @notice Execute a transfer with a signed authorization\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function _transferWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n _transferWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n abi.encodePacked(r, s, v)\\n );\\n }\\n\\n /**\\n * @notice Execute a transfer with a signed authorization\\n * @dev EOA wallet signatures should be packed in the order of r, s, v.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param signature Signature byte array produced by an EOA wallet or a contract wallet\\n */\\n function _transferWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n bytes memory signature\\n ) internal {\\n _requireValidAuthorization(from, nonce, validAfter, validBefore);\\n _requireValidSignature(\\n from,\\n keccak256(\\n abi.encode(\\n TRANSFER_WITH_AUTHORIZATION_TYPEHASH,\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce\\n )\\n ),\\n signature\\n );\\n\\n _markAuthorizationAsUsed(from, nonce);\\n _transfer(from, to, value);\\n }\\n\\n /**\\n * @notice Receive a transfer with a signed authorization from the payer\\n * @dev This has an additional check to ensure that the payee's address\\n * matches the caller of this function to prevent front-running attacks.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function _receiveWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n _receiveWithAuthorization(\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce,\\n abi.encodePacked(r, s, v)\\n );\\n }\\n\\n /**\\n * @notice Receive a transfer with a signed authorization from the payer\\n * @dev This has an additional check to ensure that the payee's address\\n * matches the caller of this function to prevent front-running attacks.\\n * EOA wallet signatures should be packed in the order of r, s, v.\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param signature Signature byte array produced by an EOA wallet or a contract wallet\\n */\\n function _receiveWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n bytes memory signature\\n ) internal {\\n require(to == msg.sender, \\\"FiatTokenV2: caller must be the payee\\\");\\n _requireValidAuthorization(from, nonce, validAfter, validBefore);\\n _requireValidSignature(\\n from,\\n keccak256(\\n abi.encode(\\n RECEIVE_WITH_AUTHORIZATION_TYPEHASH,\\n from,\\n to,\\n value,\\n validAfter,\\n validBefore,\\n nonce\\n )\\n ),\\n signature\\n );\\n\\n _markAuthorizationAsUsed(from, nonce);\\n _transfer(from, to, value);\\n }\\n\\n /**\\n * @notice Attempt to cancel an authorization\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function _cancelAuthorization(\\n address authorizer,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n _cancelAuthorization(authorizer, nonce, abi.encodePacked(r, s, v));\\n }\\n\\n /**\\n * @notice Attempt to cancel an authorization\\n * @dev EOA wallet signatures should be packed in the order of r, s, v.\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @param signature Signature byte array produced by an EOA wallet or a contract wallet\\n */\\n function _cancelAuthorization(\\n address authorizer,\\n bytes32 nonce,\\n bytes memory signature\\n ) internal {\\n _requireUnusedAuthorization(authorizer, nonce);\\n _requireValidSignature(\\n authorizer,\\n keccak256(\\n abi.encode(CANCEL_AUTHORIZATION_TYPEHASH, authorizer, nonce)\\n ),\\n signature\\n );\\n\\n _authorizationStates[authorizer][nonce] = true;\\n emit AuthorizationCanceled(authorizer, nonce);\\n }\\n\\n /**\\n * @notice Validates that signature against input data struct\\n * @param signer Signer's address\\n * @param dataHash Hash of encoded data struct\\n * @param signature Signature byte array produced by an EOA wallet or a contract wallet\\n */\\n function _requireValidSignature(\\n address signer,\\n bytes32 dataHash,\\n bytes memory signature\\n ) private view {\\n require(\\n SignatureChecker.isValidSignatureNow(\\n signer,\\n MessageHashUtils.toTypedDataHash(_domainSeparator(), dataHash),\\n signature\\n ),\\n \\\"FiatTokenV2: invalid signature\\\"\\n );\\n }\\n\\n /**\\n * @notice Check that an authorization is unused\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n */\\n function _requireUnusedAuthorization(address authorizer, bytes32 nonce)\\n private\\n view\\n {\\n require(\\n !_authorizationStates[authorizer][nonce],\\n \\\"FiatTokenV2: authorization is used or canceled\\\"\\n );\\n }\\n\\n /**\\n * @notice Check that authorization is valid\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n */\\n function _requireValidAuthorization(\\n address authorizer,\\n bytes32 nonce,\\n uint256 validAfter,\\n uint256 validBefore\\n ) private view {\\n require(\\n now > validAfter,\\n \\\"FiatTokenV2: authorization is not yet valid\\\"\\n );\\n require(now < validBefore, \\\"FiatTokenV2: authorization is expired\\\");\\n _requireUnusedAuthorization(authorizer, nonce);\\n }\\n\\n /**\\n * @notice Mark an authorization as used\\n * @param authorizer Authorizer's address\\n * @param nonce Nonce of the authorization\\n */\\n function _markAuthorizationAsUsed(address authorizer, bytes32 nonce)\\n private\\n {\\n _authorizationStates[authorizer][nonce] = true;\\n emit AuthorizationUsed(authorizer, nonce);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/EIP2612.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { AbstractFiatTokenV2 } from \\\"./AbstractFiatTokenV2.sol\\\";\\nimport { EIP712Domain } from \\\"./EIP712Domain.sol\\\";\\nimport { MessageHashUtils } from \\\"../util/MessageHashUtils.sol\\\";\\nimport { SignatureChecker } from \\\"../util/SignatureChecker.sol\\\";\\n\\n/**\\n * @title EIP-2612\\n * @notice Provide internal implementation for gas-abstracted approvals\\n */\\nabstract contract EIP2612 is AbstractFiatTokenV2, EIP712Domain {\\n // keccak256(\\\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\\\")\\n bytes32\\n public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;\\n\\n mapping(address => uint256) private _permitNonces;\\n\\n /**\\n * @notice Nonces for permit\\n * @param owner Token owner's address (Authorizer)\\n * @return Next nonce\\n */\\n function nonces(address owner) external view returns (uint256) {\\n return _permitNonces[owner];\\n }\\n\\n /**\\n * @notice Verify a signed approval permit and execute if valid\\n * @param owner Token owner's address (Authorizer)\\n * @param spender Spender's address\\n * @param value Amount of allowance\\n * @param deadline The time at which the signature expires (unix time), or max uint256 value to signal no expiration\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function _permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n _permit(owner, spender, value, deadline, abi.encodePacked(r, s, v));\\n }\\n\\n /**\\n * @notice Verify a signed approval permit and execute if valid\\n * @dev EOA wallet signatures should be packed in the order of r, s, v.\\n * @param owner Token owner's address (Authorizer)\\n * @param spender Spender's address\\n * @param value Amount of allowance\\n * @param deadline The time at which the signature expires (unix time), or max uint256 value to signal no expiration\\n * @param signature Signature byte array signed by an EOA wallet or a contract wallet\\n */\\n function _permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n bytes memory signature\\n ) internal {\\n require(\\n deadline == type(uint256).max || deadline >= now,\\n \\\"FiatTokenV2: permit is expired\\\"\\n );\\n\\n bytes32 typedDataHash = MessageHashUtils.toTypedDataHash(\\n _domainSeparator(),\\n keccak256(\\n abi.encode(\\n PERMIT_TYPEHASH,\\n owner,\\n spender,\\n value,\\n _permitNonces[owner]++,\\n deadline\\n )\\n )\\n );\\n require(\\n SignatureChecker.isValidSignatureNow(\\n owner,\\n typedDataHash,\\n signature\\n ),\\n \\\"EIP2612: invalid signature\\\"\\n );\\n\\n _approve(owner, spender, value);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/AbstractFiatTokenV2.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { AbstractFiatTokenV1 } from \\\"../v1/AbstractFiatTokenV1.sol\\\";\\n\\nabstract contract AbstractFiatTokenV2 is AbstractFiatTokenV1 {\\n function _increaseAllowance(\\n address owner,\\n address spender,\\n uint256 increment\\n ) internal virtual;\\n\\n function _decreaseAllowance(\\n address owner,\\n address spender,\\n uint256 decrement\\n ) internal virtual;\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1/Pausable.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: MIT\\n *\\n * Copyright (c) 2016 Smart Contract Solutions, Inc.\\n * Copyright (c) 2018-2020 CENTRE SECZ\\n *\\n * Permission is hereby granted, free of charge, to any person obtaining a copy\\n * of this software and associated documentation files (the \\\"Software\\\"), to deal\\n * in the Software without restriction, including without limitation the rights\\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\n * copies of the Software, and to permit persons to whom the Software is\\n * furnished to do so, subject to the following conditions:\\n *\\n * The above copyright notice and this permission notice shall be included in\\n * copies or substantial portions of the Software.\\n *\\n * THE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\n * SOFTWARE.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { Ownable } from \\\"./Ownable.sol\\\";\\n\\n/**\\n * @notice Base contract which allows children to implement an emergency stop\\n * mechanism\\n * @dev Forked from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/feb665136c0dae9912e08397c1a21c4af3651ef3/contracts/lifecycle/Pausable.sol\\n * Modifications:\\n * 1. Added pauser role, switched pause/unpause to be onlyPauser (6/14/2018)\\n * 2. Removed whenNotPause/whenPaused from pause/unpause (6/14/2018)\\n * 3. Removed whenPaused (6/14/2018)\\n * 4. Switches ownable library to use ZeppelinOS (7/12/18)\\n * 5. Remove constructor (7/13/18)\\n * 6. Reformat, conform to Solidity 0.6 syntax and add error messages (5/13/20)\\n * 7. Make public functions external (5/27/20)\\n */\\ncontract Pausable is Ownable {\\n event Pause();\\n event Unpause();\\n event PauserChanged(address indexed newAddress);\\n\\n address public pauser;\\n bool public paused = false;\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused, \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev throws if called by any account other than the pauser\\n */\\n modifier onlyPauser() {\\n require(msg.sender == pauser, \\\"Pausable: caller is not the pauser\\\");\\n _;\\n }\\n\\n /**\\n * @dev called by the owner to pause, triggers stopped state\\n */\\n function pause() external onlyPauser {\\n paused = true;\\n emit Pause();\\n }\\n\\n /**\\n * @dev called by the owner to unpause, returns to normal state\\n */\\n function unpause() external onlyPauser {\\n paused = false;\\n emit Unpause();\\n }\\n\\n /**\\n * @notice Updates the pauser address.\\n * @param _newPauser The address of the new pauser.\\n */\\n function updatePauser(address _newPauser) external onlyOwner {\\n require(\\n _newPauser != address(0),\\n \\\"Pausable: new pauser is the zero address\\\"\\n );\\n pauser = _newPauser;\\n emit PauserChanged(pauser);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1/Ownable.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: MIT\\n *\\n * Copyright (c) 2018 zOS Global Limited.\\n * Copyright (c) 2018-2020 CENTRE SECZ\\n *\\n * Permission is hereby granted, free of charge, to any person obtaining a copy\\n * of this software and associated documentation files (the \\\"Software\\\"), to deal\\n * in the Software without restriction, including without limitation the rights\\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\n * copies of the Software, and to permit persons to whom the Software is\\n * furnished to do so, subject to the following conditions:\\n *\\n * The above copyright notice and this permission notice shall be included in\\n * copies or substantial portions of the Software.\\n *\\n * THE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\n * SOFTWARE.\\n */\\n\\npragma solidity 0.6.12;\\n\\n/**\\n * @notice The Ownable contract has an owner address, and provides basic\\n * authorization control functions\\n * @dev Forked from https://github.com/OpenZeppelin/openzeppelin-labs/blob/3887ab77b8adafba4a26ace002f3a684c1a3388b/upgradeability_ownership/contracts/ownership/Ownable.sol\\n * Modifications:\\n * 1. Consolidate OwnableStorage into this contract (7/13/18)\\n * 2. Reformat, conform to Solidity 0.6 syntax, and add error messages (5/13/20)\\n * 3. Make public functions external (5/27/20)\\n */\\ncontract Ownable {\\n // Owner of the contract\\n address private _owner;\\n\\n /**\\n * @dev Event to show ownership has been transferred\\n * @param previousOwner representing the address of the previous owner\\n * @param newOwner representing the address of the new owner\\n */\\n event OwnershipTransferred(address previousOwner, address newOwner);\\n\\n /**\\n * @dev The constructor sets the original owner of the contract to the sender account.\\n */\\n constructor() public {\\n setOwner(msg.sender);\\n }\\n\\n /**\\n * @dev Tells the address of the owner\\n * @return the address of the owner\\n */\\n function owner() external view returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Sets a new owner address\\n */\\n function setOwner(address newOwner) internal {\\n _owner = newOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(msg.sender == _owner, \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\\n * @param newOwner The address to transfer ownership to.\\n */\\n function transferOwnership(address newOwner) external onlyOwner {\\n require(\\n newOwner != address(0),\\n \\\"Ownable: new owner is the zero address\\\"\\n );\\n emit OwnershipTransferred(_owner, newOwner);\\n setOwner(newOwner);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1/FiatTokenV1.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { SafeMath } from \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport { AbstractFiatTokenV1 } from \\\"./AbstractFiatTokenV1.sol\\\";\\nimport { Ownable } from \\\"./Ownable.sol\\\";\\nimport { Pausable } from \\\"./Pausable.sol\\\";\\nimport { Blacklistable } from \\\"./Blacklistable.sol\\\";\\n\\n/**\\n * @title FiatToken\\n * @dev ERC20 Token backed by fiat reserves\\n */\\ncontract FiatTokenV1 is AbstractFiatTokenV1, Ownable, Pausable, Blacklistable {\\n using SafeMath for uint256;\\n\\n string public name;\\n string public symbol;\\n uint8 public decimals;\\n string public currency;\\n address public masterMinter;\\n bool internal initialized;\\n\\n /// @dev A mapping that stores the balance and blacklist states for a given address.\\n /// The first bit defines whether the address is blacklisted (1 if blacklisted, 0 otherwise).\\n /// The last 255 bits define the balance for the address.\\n mapping(address => uint256) internal balanceAndBlacklistStates;\\n mapping(address => mapping(address => uint256)) internal allowed;\\n uint256 internal totalSupply_ = 0;\\n mapping(address => bool) internal minters;\\n mapping(address => uint256) internal minterAllowed;\\n\\n event Mint(address indexed minter, address indexed to, uint256 amount);\\n event Burn(address indexed burner, uint256 amount);\\n event MinterConfigured(address indexed minter, uint256 minterAllowedAmount);\\n event MinterRemoved(address indexed oldMinter);\\n event MasterMinterChanged(address indexed newMasterMinter);\\n\\n /**\\n * @notice Initializes the fiat token contract.\\n * @param tokenName The name of the fiat token.\\n * @param tokenSymbol The symbol of the fiat token.\\n * @param tokenCurrency The fiat currency that the token represents.\\n * @param tokenDecimals The number of decimals that the token uses.\\n * @param newMasterMinter The masterMinter address for the fiat token.\\n * @param newPauser The pauser address for the fiat token.\\n * @param newBlacklister The blacklister address for the fiat token.\\n * @param newOwner The owner of the fiat token.\\n */\\n function initialize(\\n string memory tokenName,\\n string memory tokenSymbol,\\n string memory tokenCurrency,\\n uint8 tokenDecimals,\\n address newMasterMinter,\\n address newPauser,\\n address newBlacklister,\\n address newOwner\\n ) public {\\n require(!initialized, \\\"FiatToken: contract is already initialized\\\");\\n require(\\n newMasterMinter != address(0),\\n \\\"FiatToken: new masterMinter is the zero address\\\"\\n );\\n require(\\n newPauser != address(0),\\n \\\"FiatToken: new pauser is the zero address\\\"\\n );\\n require(\\n newBlacklister != address(0),\\n \\\"FiatToken: new blacklister is the zero address\\\"\\n );\\n require(\\n newOwner != address(0),\\n \\\"FiatToken: new owner is the zero address\\\"\\n );\\n\\n name = tokenName;\\n symbol = tokenSymbol;\\n currency = tokenCurrency;\\n decimals = tokenDecimals;\\n masterMinter = newMasterMinter;\\n pauser = newPauser;\\n blacklister = newBlacklister;\\n setOwner(newOwner);\\n initialized = true;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than a minter.\\n */\\n modifier onlyMinters() {\\n require(minters[msg.sender], \\\"FiatToken: caller is not a minter\\\");\\n _;\\n }\\n\\n /**\\n * @notice Mints fiat tokens to an address.\\n * @param _to The address that will receive the minted tokens.\\n * @param _amount The amount of tokens to mint. Must be less than or equal\\n * to the minterAllowance of the caller.\\n * @return True if the operation was successful.\\n */\\n function mint(address _to, uint256 _amount)\\n external\\n whenNotPaused\\n onlyMinters\\n notBlacklisted(msg.sender)\\n notBlacklisted(_to)\\n returns (bool)\\n {\\n require(_to != address(0), \\\"FiatToken: mint to the zero address\\\");\\n require(_amount > 0, \\\"FiatToken: mint amount not greater than 0\\\");\\n\\n uint256 mintingAllowedAmount = minterAllowed[msg.sender];\\n require(\\n _amount <= mintingAllowedAmount,\\n \\\"FiatToken: mint amount exceeds minterAllowance\\\"\\n );\\n\\n totalSupply_ = totalSupply_.add(_amount);\\n _setBalance(_to, _balanceOf(_to).add(_amount));\\n minterAllowed[msg.sender] = mintingAllowedAmount.sub(_amount);\\n emit Mint(msg.sender, _to, _amount);\\n emit Transfer(address(0), _to, _amount);\\n return true;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the masterMinter\\n */\\n modifier onlyMasterMinter() {\\n require(\\n msg.sender == masterMinter,\\n \\\"FiatToken: caller is not the masterMinter\\\"\\n );\\n _;\\n }\\n\\n /**\\n * @notice Gets the minter allowance for an account.\\n * @param minter The address to check.\\n * @return The remaining minter allowance for the account.\\n */\\n function minterAllowance(address minter) external view returns (uint256) {\\n return minterAllowed[minter];\\n }\\n\\n /**\\n * @notice Checks if an account is a minter.\\n * @param account The address to check.\\n * @return True if the account is a minter, false if the account is not a minter.\\n */\\n function isMinter(address account) external view returns (bool) {\\n return minters[account];\\n }\\n\\n /**\\n * @notice Gets the remaining amount of fiat tokens a spender is allowed to transfer on\\n * behalf of the token owner.\\n * @param owner The token owner's address.\\n * @param spender The spender's address.\\n * @return The remaining allowance.\\n */\\n function allowance(address owner, address spender)\\n external\\n override\\n view\\n returns (uint256)\\n {\\n return allowed[owner][spender];\\n }\\n\\n /**\\n * @notice Gets the totalSupply of the fiat token.\\n * @return The totalSupply of the fiat token.\\n */\\n function totalSupply() external override view returns (uint256) {\\n return totalSupply_;\\n }\\n\\n /**\\n * @notice Gets the fiat token balance of an account.\\n * @param account The address to check.\\n * @return balance The fiat token balance of the account.\\n */\\n function balanceOf(address account)\\n external\\n override\\n view\\n returns (uint256)\\n {\\n return _balanceOf(account);\\n }\\n\\n /**\\n * @notice Sets a fiat token allowance for a spender to spend on behalf of the caller.\\n * @param spender The spender's address.\\n * @param value The allowance amount.\\n * @return True if the operation was successful.\\n */\\n function approve(address spender, uint256 value)\\n external\\n virtual\\n override\\n whenNotPaused\\n notBlacklisted(msg.sender)\\n notBlacklisted(spender)\\n returns (bool)\\n {\\n _approve(msg.sender, spender, value);\\n return true;\\n }\\n\\n /**\\n * @dev Internal function to set allowance.\\n * @param owner Token owner's address.\\n * @param spender Spender's address.\\n * @param value Allowance amount.\\n */\\n function _approve(\\n address owner,\\n address spender,\\n uint256 value\\n ) internal override {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n allowed[owner][spender] = value;\\n emit Approval(owner, spender, value);\\n }\\n\\n /**\\n * @notice Transfers tokens from an address to another by spending the caller's allowance.\\n * @dev The caller must have some fiat token allowance on the payer's tokens.\\n * @param from Payer's address.\\n * @param to Payee's address.\\n * @param value Transfer amount.\\n * @return True if the operation was successful.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 value\\n )\\n external\\n override\\n whenNotPaused\\n notBlacklisted(msg.sender)\\n notBlacklisted(from)\\n notBlacklisted(to)\\n returns (bool)\\n {\\n require(\\n value <= allowed[from][msg.sender],\\n \\\"ERC20: transfer amount exceeds allowance\\\"\\n );\\n _transfer(from, to, value);\\n allowed[from][msg.sender] = allowed[from][msg.sender].sub(value);\\n return true;\\n }\\n\\n /**\\n * @notice Transfers tokens from the caller.\\n * @param to Payee's address.\\n * @param value Transfer amount.\\n * @return True if the operation was successful.\\n */\\n function transfer(address to, uint256 value)\\n external\\n override\\n whenNotPaused\\n notBlacklisted(msg.sender)\\n notBlacklisted(to)\\n returns (bool)\\n {\\n _transfer(msg.sender, to, value);\\n return true;\\n }\\n\\n /**\\n * @dev Internal function to process transfers.\\n * @param from Payer's address.\\n * @param to Payee's address.\\n * @param value Transfer amount.\\n */\\n function _transfer(\\n address from,\\n address to,\\n uint256 value\\n ) internal override {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n require(\\n value <= _balanceOf(from),\\n \\\"ERC20: transfer amount exceeds balance\\\"\\n );\\n\\n _setBalance(from, _balanceOf(from).sub(value));\\n _setBalance(to, _balanceOf(to).add(value));\\n emit Transfer(from, to, value);\\n }\\n\\n /**\\n * @notice Adds or updates a new minter with a mint allowance.\\n * @param minter The address of the minter.\\n * @param minterAllowedAmount The minting amount allowed for the minter.\\n * @return True if the operation was successful.\\n */\\n function configureMinter(address minter, uint256 minterAllowedAmount)\\n external\\n whenNotPaused\\n onlyMasterMinter\\n returns (bool)\\n {\\n minters[minter] = true;\\n minterAllowed[minter] = minterAllowedAmount;\\n emit MinterConfigured(minter, minterAllowedAmount);\\n return true;\\n }\\n\\n /**\\n * @notice Removes a minter.\\n * @param minter The address of the minter to remove.\\n * @return True if the operation was successful.\\n */\\n function removeMinter(address minter)\\n external\\n onlyMasterMinter\\n returns (bool)\\n {\\n minters[minter] = false;\\n minterAllowed[minter] = 0;\\n emit MinterRemoved(minter);\\n return true;\\n }\\n\\n /**\\n * @notice Allows a minter to burn some of its own tokens.\\n * @dev The caller must be a minter, must not be blacklisted, and the amount to burn\\n * should be less than or equal to the account's balance.\\n * @param _amount the amount of tokens to be burned.\\n */\\n function burn(uint256 _amount)\\n external\\n whenNotPaused\\n onlyMinters\\n notBlacklisted(msg.sender)\\n {\\n uint256 balance = _balanceOf(msg.sender);\\n require(_amount > 0, \\\"FiatToken: burn amount not greater than 0\\\");\\n require(balance >= _amount, \\\"FiatToken: burn amount exceeds balance\\\");\\n\\n totalSupply_ = totalSupply_.sub(_amount);\\n _setBalance(msg.sender, balance.sub(_amount));\\n emit Burn(msg.sender, _amount);\\n emit Transfer(msg.sender, address(0), _amount);\\n }\\n\\n /**\\n * @notice Updates the master minter address.\\n * @param _newMasterMinter The address of the new master minter.\\n */\\n function updateMasterMinter(address _newMasterMinter) external onlyOwner {\\n require(\\n _newMasterMinter != address(0),\\n \\\"FiatToken: new masterMinter is the zero address\\\"\\n );\\n masterMinter = _newMasterMinter;\\n emit MasterMinterChanged(masterMinter);\\n }\\n\\n /**\\n * @inheritdoc Blacklistable\\n */\\n function _blacklist(address _account) internal override {\\n _setBlacklistState(_account, true);\\n }\\n\\n /**\\n * @inheritdoc Blacklistable\\n */\\n function _unBlacklist(address _account) internal override {\\n _setBlacklistState(_account, false);\\n }\\n\\n /**\\n * @dev Helper method that sets the blacklist state of an account.\\n * @param _account The address of the account.\\n * @param _shouldBlacklist True if the account should be blacklisted, false if the account should be unblacklisted.\\n */\\n function _setBlacklistState(address _account, bool _shouldBlacklist)\\n internal\\n virtual\\n {\\n _deprecatedBlacklisted[_account] = _shouldBlacklist;\\n }\\n\\n /**\\n * @dev Helper method that sets the balance of an account.\\n * @param _account The address of the account.\\n * @param _balance The new fiat token balance of the account.\\n */\\n function _setBalance(address _account, uint256 _balance) internal virtual {\\n balanceAndBlacklistStates[_account] = _balance;\\n }\\n\\n /**\\n * @inheritdoc Blacklistable\\n */\\n function _isBlacklisted(address _account)\\n internal\\n virtual\\n override\\n view\\n returns (bool)\\n {\\n return _deprecatedBlacklisted[_account];\\n }\\n\\n /**\\n * @dev Helper method to obtain the balance of an account.\\n * @param _account The address of the account.\\n * @return The fiat token balance of the account.\\n */\\n function _balanceOf(address _account)\\n internal\\n virtual\\n view\\n returns (uint256)\\n {\\n return balanceAndBlacklistStates[_account];\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1/Blacklistable.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { Ownable } from \\\"./Ownable.sol\\\";\\n\\n/**\\n * @title Blacklistable Token\\n * @dev Allows accounts to be blacklisted by a \\\"blacklister\\\" role\\n */\\nabstract contract Blacklistable is Ownable {\\n address public blacklister;\\n mapping(address => bool) internal _deprecatedBlacklisted;\\n\\n event Blacklisted(address indexed _account);\\n event UnBlacklisted(address indexed _account);\\n event BlacklisterChanged(address indexed newBlacklister);\\n\\n /**\\n * @dev Throws if called by any account other than the blacklister.\\n */\\n modifier onlyBlacklister() {\\n require(\\n msg.sender == blacklister,\\n \\\"Blacklistable: caller is not the blacklister\\\"\\n );\\n _;\\n }\\n\\n /**\\n * @dev Throws if argument account is blacklisted.\\n * @param _account The address to check.\\n */\\n modifier notBlacklisted(address _account) {\\n require(\\n !_isBlacklisted(_account),\\n \\\"Blacklistable: account is blacklisted\\\"\\n );\\n _;\\n }\\n\\n /**\\n * @notice Checks if account is blacklisted.\\n * @param _account The address to check.\\n * @return True if the account is blacklisted, false if the account is not blacklisted.\\n */\\n function isBlacklisted(address _account) external view returns (bool) {\\n return _isBlacklisted(_account);\\n }\\n\\n /**\\n * @notice Adds account to blacklist.\\n * @param _account The address to blacklist.\\n */\\n function blacklist(address _account) external onlyBlacklister {\\n _blacklist(_account);\\n emit Blacklisted(_account);\\n }\\n\\n /**\\n * @notice Removes account from blacklist.\\n * @param _account The address to remove from the blacklist.\\n */\\n function unBlacklist(address _account) external onlyBlacklister {\\n _unBlacklist(_account);\\n emit UnBlacklisted(_account);\\n }\\n\\n /**\\n * @notice Updates the blacklister address.\\n * @param _newBlacklister The address of the new blacklister.\\n */\\n function updateBlacklister(address _newBlacklister) external onlyOwner {\\n require(\\n _newBlacklister != address(0),\\n \\\"Blacklistable: new blacklister is the zero address\\\"\\n );\\n blacklister = _newBlacklister;\\n emit BlacklisterChanged(blacklister);\\n }\\n\\n /**\\n * @dev Checks if account is blacklisted.\\n * @param _account The address to check.\\n * @return true if the account is blacklisted, false otherwise.\\n */\\n function _isBlacklisted(address _account)\\n internal\\n virtual\\n view\\n returns (bool);\\n\\n /**\\n * @dev Helper method that blacklists an account.\\n * @param _account The address to blacklist.\\n */\\n function _blacklist(address _account) internal virtual;\\n\\n /**\\n * @dev Helper method that unblacklists an account.\\n * @param _account The address to unblacklist.\\n */\\n function _unBlacklist(address _account) internal virtual;\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1/AbstractFiatTokenV1.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\nabstract contract AbstractFiatTokenV1 is IERC20 {\\n function _approve(\\n address owner,\\n address spender,\\n uint256 value\\n ) internal virtual;\\n\\n function _transfer(\\n address from,\\n address to,\\n uint256 value\\n ) internal virtual;\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1.1/Rescuable.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { Ownable } from \\\"../v1/Ownable.sol\\\";\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport { SafeERC20 } from \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\n\\ncontract Rescuable is Ownable {\\n using SafeERC20 for IERC20;\\n\\n address private _rescuer;\\n\\n event RescuerChanged(address indexed newRescuer);\\n\\n /**\\n * @notice Returns current rescuer\\n * @return Rescuer's address\\n */\\n function rescuer() external view returns (address) {\\n return _rescuer;\\n }\\n\\n /**\\n * @notice Revert if called by any account other than the rescuer.\\n */\\n modifier onlyRescuer() {\\n require(msg.sender == _rescuer, \\\"Rescuable: caller is not the rescuer\\\");\\n _;\\n }\\n\\n /**\\n * @notice Rescue ERC20 tokens locked up in this contract.\\n * @param tokenContract ERC20 token contract address\\n * @param to Recipient address\\n * @param amount Amount to withdraw\\n */\\n function rescueERC20(\\n IERC20 tokenContract,\\n address to,\\n uint256 amount\\n ) external onlyRescuer {\\n tokenContract.safeTransfer(to, amount);\\n }\\n\\n /**\\n * @notice Updates the rescuer address.\\n * @param newRescuer The address of the new rescuer.\\n */\\n function updateRescuer(address newRescuer) external onlyOwner {\\n require(\\n newRescuer != address(0),\\n \\\"Rescuable: new rescuer is the zero address\\\"\\n );\\n _rescuer = newRescuer;\\n emit RescuerChanged(newRescuer);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v1.1/FiatTokenV1_1.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { FiatTokenV1 } from \\\"../v1/FiatTokenV1.sol\\\";\\nimport { Rescuable } from \\\"./Rescuable.sol\\\";\\n\\n/**\\n * @title FiatTokenV1_1\\n * @dev ERC20 Token backed by fiat reserves\\n */\\ncontract FiatTokenV1_1 is FiatTokenV1, Rescuable {\\n\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/util/SignatureChecker.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\nimport { ECRecover } from \\\"./ECRecover.sol\\\";\\nimport { IERC1271 } from \\\"../interface/IERC1271.sol\\\";\\n\\n/**\\n * @dev Signature verification helper that can be used instead of `ECRecover.recover` to seamlessly support both ECDSA\\n * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets.\\n *\\n * Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/SignatureChecker.sol\\n */\\nlibrary SignatureChecker {\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the\\n * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECRecover.recover`.\\n * @param signer Address of the claimed signer\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n */\\n function isValidSignatureNow(\\n address signer,\\n bytes32 digest,\\n bytes memory signature\\n ) external view returns (bool) {\\n if (!isContract(signer)) {\\n return ECRecover.recover(digest, signature) == signer;\\n }\\n return isValidERC1271SignatureNow(signer, digest, signature);\\n }\\n\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated\\n * against the signer smart contract using ERC1271.\\n * @param signer Address of the claimed signer\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n *\\n * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus\\n * change through time. It could return true at block N and false at block N+1 (or the opposite).\\n */\\n function isValidERC1271SignatureNow(\\n address signer,\\n bytes32 digest,\\n bytes memory signature\\n ) internal view returns (bool) {\\n (bool success, bytes memory result) = signer.staticcall(\\n abi.encodeWithSelector(\\n IERC1271.isValidSignature.selector,\\n digest,\\n signature\\n )\\n );\\n return (success &&\\n result.length >= 32 &&\\n abi.decode(result, (bytes32)) ==\\n bytes32(IERC1271.isValidSignature.selector));\\n }\\n\\n /**\\n * @dev Checks if the input address is a smart contract.\\n */\\n function isContract(address addr) internal view returns (bool) {\\n uint256 size;\\n assembly {\\n size := extcodesize(addr)\\n }\\n return size > 0;\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/util/MessageHashUtils.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n * Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/MessageHashUtils.sol\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * @param domainSeparator Domain separator\\n * @param structHash Hashed EIP-712 data struct\\n * @return digest The keccak256 digest of an EIP-712 typed data\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash)\\n internal\\n pure\\n returns (bytes32 digest)\\n {\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, \\\"\\\\x19\\\\x01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/util/EIP712.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\n/**\\n * @title EIP712\\n * @notice A library that provides EIP712 helper functions\\n */\\nlibrary EIP712 {\\n /**\\n * @notice Make EIP712 domain separator\\n * @param name Contract name\\n * @param version Contract version\\n * @param chainId Blockchain ID\\n * @return Domain separator\\n */\\n function makeDomainSeparator(\\n string memory name,\\n string memory version,\\n uint256 chainId\\n ) internal view returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n // keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\")\\n 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f,\\n keccak256(bytes(name)),\\n keccak256(bytes(version)),\\n chainId,\\n address(this)\\n )\\n );\\n }\\n\\n /**\\n * @notice Make EIP712 domain separator\\n * @param name Contract name\\n * @param version Contract version\\n * @return Domain separator\\n */\\n function makeDomainSeparator(string memory name, string memory version)\\n internal\\n view\\n returns (bytes32)\\n {\\n uint256 chainId;\\n assembly {\\n chainId := chainid()\\n }\\n return makeDomainSeparator(name, version, chainId);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/util/ECRecover.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\n/**\\n * @title ECRecover\\n * @notice A library that provides a safe ECDSA recovery function\\n */\\nlibrary ECRecover {\\n /**\\n * @notice Recover signer's address from a signed message\\n * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/65e4ffde586ec89af3b7e9140bdc9235d1254853/contracts/cryptography/ECDSA.sol\\n * Modifications: Accept v, r, and s as separate arguments\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n * @return Signer address\\n */\\n function recover(\\n bytes32 digest,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (\\n uint256(s) >\\n 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0\\n ) {\\n revert(\\\"ECRecover: invalid signature 's' value\\\");\\n }\\n\\n if (v != 27 && v != 28) {\\n revert(\\\"ECRecover: invalid signature 'v' value\\\");\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(digest, v, r, s);\\n require(signer != address(0), \\\"ECRecover: invalid signature\\\");\\n\\n return signer;\\n }\\n\\n /**\\n * @notice Recover signer's address from a signed message\\n * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/0053ee040a7ff1dbc39691c9e67a69f564930a88/contracts/utils/cryptography/ECDSA.sol\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n * @return Signer address\\n */\\n function recover(bytes32 digest, bytes memory signature)\\n internal\\n pure\\n returns (address)\\n {\\n require(signature.length == 65, \\\"ECRecover: invalid signature length\\\");\\n\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return recover(digest, v, r, s);\\n }\\n}\\n\"\r\n },\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/interface/IERC1271.sol\": {\r\n \"content\": \"/**\\n * SPDX-License-Identifier: Apache-2.0\\n *\\n * Copyright (c) 2023, Circle Internet Financial, LLC.\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity 0.6.12;\\n\\n/**\\n * @dev Interface of the ERC1271 standard signature validation method for\\n * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].\\n */\\ninterface IERC1271 {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param hash Hash of the data to be signed\\n * @param signature Signature byte array associated with the provided data hash\\n * @return magicValue bytes4 magic value 0x1626ba7e when function passes\\n */\\n function isValidSignature(bytes32 hash, bytes memory signature)\\n external\\n view\\n returns (bytes4 magicValue);\\n}\\n\"\r\n }\r\n },\r\n \"settings\": {\r\n \"remappings\": [],\r\n \"optimizer\": {\r\n \"enabled\": true,\r\n \"runs\": 10000000\r\n },\r\n \"evmVersion\": \"istanbul\",\r\n \"libraries\": {\r\n \"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/util/SignatureChecker.sol\": {\r\n \"SignatureChecker\": \"0x800C32EaA2a6c93cF4CB51794450ED77fBfbB172\"\r\n }\r\n },\r\n \"outputSelection\": {\r\n \"*\": {\r\n \"*\": [\r\n \"evm.bytecode\",\r\n \"evm.deployedBytecode\",\r\n \"devdoc\",\r\n \"userdoc\",\r\n \"metadata\",\r\n \"abi\"\r\n ]\r\n }\r\n }\r\n }\r\n}}","ABI":"[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"}],\"name\":\"AuthorizationCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"}],\"name\":\"AuthorizationUsed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"Blacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newBlacklister\",\"type\":\"address\"}],\"name\":\"BlacklisterChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"burner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newMasterMinter\",\"type\":\"address\"}],\"name\":\"MasterMinterChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minterAllowedAmount\",\"type\":\"uint256\"}],\"name\":\"MinterConfigured\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldMinter\",\"type\":\"address\"}],\"name\":\"MinterRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Pause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"PauserChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newRescuer\",\"type\":\"address\"}],\"name\":\"RescuerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"UnBlacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Unpause\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CANCEL_AUTHORIZATION_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RECEIVE_WITH_AUTHORIZATION_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFER_WITH_AUTHORIZATION_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"}],\"name\":\"authorizationState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"blacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blacklister\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"cancelAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"authorizer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"cancelAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minterAllowedAmount\",\"type\":\"uint256\"}],\"name\":\"configureMinter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currency\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"decrement\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"increment\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenSymbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"tokenCurrency\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"newMasterMinter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newPauser\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newBlacklister\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newName\",\"type\":\"string\"}],\"name\":\"initializeV2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lostAndFound\",\"type\":\"address\"}],\"name\":\"initializeV2_1\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accountsToBlacklist\",\"type\":\"address[]\"},{\"internalType\":\"string\",\"name\":\"newSymbol\",\"type\":\"string\"}],\"name\":\"initializeV2_2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"isBlacklisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isMinter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"masterMinter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"}],\"name\":\"minterAllowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauser\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"receiveWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"receiveWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"}],\"name\":\"removeMinter\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"tokenContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rescuer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"transferWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nonce\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"transferWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"}],\"name\":\"unBlacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newBlacklister\",\"type\":\"address\"}],\"name\":\"updateBlacklister\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newMasterMinter\",\"type\":\"address\"}],\"name\":\"updateMasterMinter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newPauser\",\"type\":\"address\"}],\"name\":\"updatePauser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newRescuer\",\"type\":\"address\"}],\"name\":\"updateRescuer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]","ContractName":"FiatTokenV2_2","CompilerVersion":"v0.6.12+commit.27d51765","CompilerType":"solc-j","OptimizationUsed":"1","Runs":"10000000","ConstructorArguments":"","EVMVersion":"istanbul","Library":"","ContractFileName":"/Users/aloysius.chan/Repositories/circlefin/stablecoin-evm-private-eurc-mainnet-eth/contracts/v2/FiatTokenV2_2.sol","LicenseType":"","Proxy":"1","Implementation":"0x800c32eaa2a6c93cf4cb51794450ed77fbfbb172","SwarmSource":"","SimilarMatch":""}]} \ No newline at end of file diff --git a/tests/cachedrpc/5ac8748be5e26edbbc1435dd2ce256969135e370b8dcf0b437d196640c88bec6 b/tests/cachedrpc/5ac8748be5e26edbbc1435dd2ce256969135e370b8dcf0b437d196640c88bec6 new file mode 100644 index 0000000..8838dcf --- /dev/null +++ b/tests/cachedrpc/5ac8748be5e26edbbc1435dd2ce256969135e370b8dcf0b437d196640c88bec6 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe04","transactionHash":"0x4254dd24f8b5f9626ef36fcc8fa5942e799a101a31805b055cfff4c96abc3a02","transactionIndex":"0x3a","blockHash":"0x58389e7a967d7a21c788d7ade8dda06d7dab444cbaf6cf5ecc4072311f019fcc","logIndex":"0x5f","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe04","transactionHash":"0x4254dd24f8b5f9626ef36fcc8fa5942e799a101a31805b055cfff4c96abc3a02","transactionIndex":"0x3a","blockHash":"0x58389e7a967d7a21c788d7ade8dda06d7dab444cbaf6cf5ecc4072311f019fcc","logIndex":"0x60","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x87","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x88","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xeffe2e","transactionHash":"0xbf88046d7c09142ab075ba98a41a9f5df5fa64fe0806cbdb5e4c1689a9141e30","transactionIndex":"0x58","blockHash":"0x7fd46db75c931331680a7f5b4a9791a745931f138e9c16cd68fc472fbc242ee9","logIndex":"0x89","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c"],"data":"0x000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f270000000000000000000000008306300ffd616049fd7e4b0354a64da835c1a81c","blockNumber":"0xefff11","transactionHash":"0xab1e412c7757938bde78c46288091fd1ae46b5d8bde8fdfcd868416eadd34222","transactionIndex":"0x3f","blockHash":"0x82db4ee665687982a96e944e69b3edadc35cc6d3a234d014d44365e539dd54d3","logIndex":"0x8a","removed":false}]} diff --git a/tests/cachedrpc/691d45d26b0a1bb56842c84ad985b33351e7486991ebc638875ab0428c0db110 b/tests/cachedrpc/691d45d26b0a1bb56842c84ad985b33351e7486991ebc638875ab0428c0db110 new file mode 100644 index 0000000..e9f82bc --- /dev/null +++ b/tests/cachedrpc/691d45d26b0a1bb56842c84ad985b33351e7486991ebc638875ab0428c0db110 @@ -0,0 +1 @@ +{"status":"1","message":"OK","result":[{"contractAddress":"0x5d3a536e4d6dbd6114cc1ead35777bab948e3643","contractCreator":"0xa7ff0d561cd15ed525e31bbe0af3fe34ac2059f6","txHash":"0x090ce7d33359e5d288ce169f41bb3d2cb55ac17b026a10cf80b3fc4f0c85c827","blockNumber":"8983575","timestamp":"1574471013","contractFactory":"","creationBytecode":"0x60806040523480156200001157600080fd5b50604051620025803803806200258083398181016040526101408110156200003857600080fd5b81516020830151604080850151606086015160808701805193519597949692959194919392820192846401000000008211156200007457600080fd5b9083019060208201858111156200008a57600080fd5b8251640100000000811182820188101715620000a557600080fd5b82525081516020918201929091019080838360005b83811015620000d4578181015183820152602001620000ba565b50505050905090810190601f168015620001025780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200012657600080fd5b9083019060208201858111156200013c57600080fd5b82516401000000008111828201881017156200015757600080fd5b82525081516020918201929091019080838360005b83811015620001865781810151838201526020016200016c565b50505050905090810190601f168015620001b45780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160608401516080909401805192969195919284640100000000821115620001e957600080fd5b908301906020820185811115620001ff57600080fd5b82516401000000008111828201881017156200021a57600080fd5b82525081516020918201929091019080838360005b83811015620002495781810151838201526020016200022f565b50505050905090810190601f168015620002775780820380516001836020036101000a031916815260200191505b5060405250505033600360016101000a8154816001600160a01b0302191690836001600160a01b031602179055506200043d828b8b8b8b8b8b8b60405160240180886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b0316815260200185815260200180602001806020018460ff1660ff168152602001838103835286818151815260200191508051906020019080838360005b838110156200035157818101518382015260200162000337565b50505050905090810190601f1680156200037f5780820380516001836020036101000a031916815260200191505b50838103825285518152855160209182019187019080838360005b83811015620003b45781810151838201526020016200039a565b50505050905090810190601f168015620003e25780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081167f1a31d4650000000000000000000000000000000000000000000000000000000017909152909a506200048b1698505050505050505050565b5062000455826000836001600160e01b036200055216565b5050600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055506200077f95505050505050565b606060006060846001600160a01b0316846040518082805190602001908083835b60208310620004cd5780518252601f199092019160209182019101620004ac565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146200052f576040519150601f19603f3d011682016040523d82523d6000602084013e62000534565b606091505b509150915060008214156200054a573d60208201fd5b949350505050565b60035461010090046001600160a01b03163314620005bc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526039815260200180620025476039913960400191505060405180910390fd5b811562000617576040805160048152602481019091526020810180516001600160e01b039081167f153ab50500000000000000000000000000000000000000000000000000000000179091526200061591906200075516565b505b601280546001600160a01b038581166001600160a01b0319831617909255604051602060248201818152855160448401528551949093169362000706938693909283926064909201919085019080838360005b83811015620006845781810151838201526020016200066a565b50505050905090810190601f168015620006b25780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b039081167f56e6772800000000000000000000000000000000000000000000000000000000179091529093506200075516915050565b50601254604080516001600160a01b038085168252909216602083015280517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a9281900390910190a150505050565b60125460609062000779906001600160a01b0316836001600160e01b036200048b16565b92915050565b611db8806200078f6000396000f3fe6080604052600436106102c95760003560e01c806373acee9811610175578063bd6d894d116100dc578063f2b3abbd11610095578063f851a4401161006f578063f851a44014610cce578063f8f9da2814610ce3578063fca7820b14610cf8578063fe9c44ae14610d22576102c9565b8063f2b3abbd14610c43578063f3fdb15a14610c76578063f5e3c46214610c8b576102c9565b8063bd6d894d14610b31578063c37f68e214610b46578063c5ebeaec14610b9f578063db006a7514610bc9578063dd62ed3e14610bf3578063e9c714f214610c2e576102c9565b8063a6afed951161012e578063a6afed9514610a43578063a9059cbb14610a58578063aa5af0fd14610a91578063ae9d70b014610aa6578063b2a02ff114610abb578063b71d1a0c14610afe576102c9565b806373acee981461097d578063852a12e3146109925780638f840ddd146109bc57806395d89b41146109d157806395dd9193146109e6578063a0712d6814610a19576102c9565b80633af9e66911610234578063555bcc40116101ed578063601a0bf1116101c7578063601a0bf1146108f65780636c540baf146109205780636f307dc31461093557806370a082311461094a576102c9565b8063555bcc40146108025780635c60da1b146108cc5780635fe3b567146108e1576102c9565b80633af9e669146106975780633b1d21a2146106ca5780633e941010146106df5780634487152f146107095780634576b5db146107ba57806347bd3718146107ed576102c9565b806318160ddd1161028657806318160ddd14610595578063182df0f5146105aa57806323b872dd146105bf5780632608f81814610602578063267822471461063b578063313ce5671461066c576102c9565b806306fdde03146103895780630933c1ed14610413578063095ea7b3146104c45780630e75270214610511578063173b99041461054d57806317bfdfbc14610562575b34156103065760405162461bcd60e51b8152600401808060200182810382526037815260200180611d146037913960400191505060405180910390fd5b6012546040516000916001600160a01b031690829036908083838082843760405192019450600093509091505080830381855af49150503d8060008114610369576040519150601f19603f3d011682016040523d82523d6000602084013e61036e565b606091505b505090506040513d6000823e818015610385573d82f35b3d82fd5b34801561039557600080fd5b5061039e610d37565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d85781810151838201526020016103c0565b50505050905090810190601f1680156104055780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041f57600080fd5b5061039e6004803603602081101561043657600080fd5b810190602081018135600160201b81111561045057600080fd5b82018360208201111561046257600080fd5b803590602001918460018302840111600160201b8311171561048357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610dc4945050505050565b3480156104d057600080fd5b506104fd600480360360408110156104e757600080fd5b506001600160a01b038135169060200135610de3565b604080519115158252519081900360200190f35b34801561051d57600080fd5b5061053b6004803603602081101561053457600080fd5b5035610e5a565b60408051918252519081900360200190f35b34801561055957600080fd5b5061053b610ec1565b34801561056e57600080fd5b5061053b6004803603602081101561058557600080fd5b50356001600160a01b0316610ec7565b3480156105a157600080fd5b5061053b610f19565b3480156105b657600080fd5b5061053b610f1f565b3480156105cb57600080fd5b506104fd600480360360608110156105e257600080fd5b506001600160a01b03813581169160208101359091169060400135610f76565b34801561060e57600080fd5b5061053b6004803603604081101561062557600080fd5b506001600160a01b038135169060200135610ff6565b34801561064757600080fd5b5061065061104c565b604080516001600160a01b039092168252519081900360200190f35b34801561067857600080fd5b5061068161105b565b6040805160ff9092168252519081900360200190f35b3480156106a357600080fd5b5061053b600480360360208110156106ba57600080fd5b50356001600160a01b0316611064565b3480156106d657600080fd5b5061053b6110b6565b3480156106eb57600080fd5b5061053b6004803603602081101561070257600080fd5b50356110ee565b34801561071557600080fd5b5061039e6004803603602081101561072c57600080fd5b810190602081018135600160201b81111561074657600080fd5b82018360208201111561075857600080fd5b803590602001918460018302840111600160201b8311171561077957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611135945050505050565b3480156107c657600080fd5b5061053b600480360360208110156107dd57600080fd5b50356001600160a01b0316611354565b3480156107f957600080fd5b5061053b6113a6565b34801561080e57600080fd5b506108ca6004803603606081101561082557600080fd5b6001600160a01b03823516916020810135151591810190606081016040820135600160201b81111561085657600080fd5b82018360208201111561086857600080fd5b803590602001918460018302840111600160201b8311171561088957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506113ac945050505050565b005b3480156108d857600080fd5b5061065061154f565b3480156108ed57600080fd5b5061065061155e565b34801561090257600080fd5b5061053b6004803603602081101561091957600080fd5b503561156d565b34801561092c57600080fd5b5061053b6115b4565b34801561094157600080fd5b506106506115ba565b34801561095657600080fd5b5061053b6004803603602081101561096d57600080fd5b50356001600160a01b03166115c9565b34801561098957600080fd5b5061053b61161b565b34801561099e57600080fd5b5061053b600480360360208110156109b557600080fd5b5035611653565b3480156109c857600080fd5b5061053b61169a565b3480156109dd57600080fd5b5061039e6116a0565b3480156109f257600080fd5b5061053b60048036036020811015610a0957600080fd5b50356001600160a01b03166116f8565b348015610a2557600080fd5b5061053b60048036036020811015610a3c57600080fd5b503561174a565b348015610a4f57600080fd5b5061053b611791565b348015610a6457600080fd5b506104fd60048036036040811015610a7b57600080fd5b506001600160a01b0381351690602001356117c9565b348015610a9d57600080fd5b5061053b61181f565b348015610ab257600080fd5b5061053b611825565b348015610ac757600080fd5b5061053b60048036036060811015610ade57600080fd5b506001600160a01b0381358116916020810135909116906040013561185d565b348015610b0a57600080fd5b5061053b60048036036020811015610b2157600080fd5b50356001600160a01b03166118bb565b348015610b3d57600080fd5b5061053b61190d565b348015610b5257600080fd5b50610b7960048036036020811015610b6957600080fd5b50356001600160a01b0316611945565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610bab57600080fd5b5061053b60048036036020811015610bc257600080fd5b50356119d7565b348015610bd557600080fd5b5061053b60048036036020811015610bec57600080fd5b5035611a1e565b348015610bff57600080fd5b5061053b60048036036040811015610c1657600080fd5b506001600160a01b0381358116916020013516611a65565b348015610c3a57600080fd5b5061053b611abf565b348015610c4f57600080fd5b5061053b60048036036020811015610c6657600080fd5b50356001600160a01b0316611af7565b348015610c8257600080fd5b50610650611b49565b348015610c9757600080fd5b5061053b60048036036060811015610cae57600080fd5b506001600160a01b03813581169160208101359160409091013516611b58565b348015610cda57600080fd5b50610650611bb9565b348015610cef57600080fd5b5061053b611bcd565b348015610d0457600080fd5b5061053b60048036036020811015610d1b57600080fd5b5035611c05565b348015610d2e57600080fd5b506104fd611c4c565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dbc5780601f10610d9157610100808354040283529160200191610dbc565b820191906000526020600020905b815481529060010190602001808311610d9f57829003601f168201915b505050505081565b601254606090610ddd906001600160a01b031683611c51565b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052600090606090610e3990610dc4565b9050808060200190516020811015610e5057600080fd5b5051949350505050565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663073a938160e11b179052600090606090610ea190610dc4565b9050808060200190516020811015610eb857600080fd5b50519392505050565b60085481565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166305eff7ef60e21b179052600090606090610ea190610dc4565b600d5481565b6040805160048152602481019091526020810180516001600160e01b031663182df0f560e01b179052600090606090610f5790611135565b9050808060200190516020811015610f6e57600080fd5b505191505090565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052600090606090610fd490610dc4565b9050808060200190516020811015610feb57600080fd5b505195945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03166304c11f0360e31b179052600090606090610e3990610dc4565b6004546001600160a01b031681565b60035460ff1681565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b0316633af9e66960e01b179052600090606090610ea190610dc4565b6040805160048152602481019091526020810180516001600160e01b0316631d8e90d160e11b179052600090606090610f5790611135565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b03166303e9410160e41b179052600090606090610ea190610dc4565b606060006060306001600160a01b0316846040516024018080602001828103825283818151815260200191508051906020019080838360005b8381101561118657818101518382015260200161116e565b50505050905090810190601f1680156111b35780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b0316630933c1ed60e01b178152905182519295509350839250908083835b6020831061120e5780518252601f1990920191602091820191016111ef565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461126e576040519150601f19603f3d011682016040523d82523d6000602084013e611273565b606091505b50915091506000821415611288573d60208201fd5b80806020019051602081101561129d57600080fd5b8101908080516040519392919084600160201b8211156112bc57600080fd5b9083019060208201858111156112d157600080fd5b8251600160201b8111828201881017156112ea57600080fd5b82525081516020918201929091019080838360005b838110156113175781810151838201526020016112ff565b50505050905090810190601f1680156113445780820380516001836020036101000a031916815260200191505b5060405250505092505050919050565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b0316634576b5db60e01b179052600090606090610ea190610dc4565b600b5481565b60035461010090046001600160a01b031633146113fa5760405162461bcd60e51b8152600401808060200182810382526039815260200180611d4b6039913960400191505060405180910390fd5b8115611434576040805160048152602481019091526020810180516001600160e01b031663153ab50560e01b17905261143290610dc4565b505b601280546001600160a01b038581166001600160a01b03198316179092556040516020602482018181528551604484015285519490931693611500938693909283926064909201919085019080838360005b8381101561149e578181015183820152602001611486565b50505050905090810190601f1680156114cb5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529190526020810180516001600160e01b0316630adccee560e31b1790529250610dc4915050565b50601254604080516001600160a01b038085168252909216602083015280517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a9281900390910190a150505050565b6012546001600160a01b031681565b6005546001600160a01b031681565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663601a0bf160e01b179052600090606090610ea190610dc4565b60095481565b6011546001600160a01b031681565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166370a0823160e01b179052600090606090610ea190611135565b6040805160048152602481019091526020810180516001600160e01b0316630e759dd360e31b179052600090606090610f5790610dc4565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663852a12e360e01b179052600090606090610ea190610dc4565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610dbc5780601f10610d9157610100808354040283529160200191610dbc565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166395dd919360e01b179052600090606090610ea190611135565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663140e25ad60e31b179052600090606090610ea190610dc4565b6040805160048152602481019091526020810180516001600160e01b031663a6afed9560e01b179052600090606090610f5790610dc4565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052600090606090610e3990610dc4565b600a5481565b6040805160048152602481019091526020810180516001600160e01b0316630ae9d70b60e41b179052600090606090610f5790611135565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b031663b2a02ff160e01b179052600090606090610fd490610dc4565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b0316632dc7468360e21b179052600090606090610ea190610dc4565b6040805160048152602481019091526020810180516001600160e01b031663bd6d894d60e01b179052600090606090610f5790610dc4565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166361bfb47160e11b17905260009081908190819060609061199d90611135565b90508080602001905160808110156119b457600080fd5b508051602082015160408301516060909301519199909850919650945092505050565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663317afabb60e21b179052600090606090610ea190610dc4565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663db006a7560e01b179052600090606090610ea190610dc4565b604080516001600160a01b03808516602483015283166044808301919091528251808303909101815260649091019091526020810180516001600160e01b0316636eb1769f60e11b179052600090606090610e3990611135565b6040805160048152602481019091526020810180516001600160e01b03166374e38a7960e11b179052600090606090610f5790610dc4565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b031663f2b3abbd60e01b179052600090606090610ea190610dc4565b6006546001600160a01b031681565b604080516001600160a01b0380861660248301526044820185905283166064808301919091528251808303909101815260849091019091526020810180516001600160e01b0316637af1e23160e11b179052600090606090610fd490610dc4565b60035461010090046001600160a01b031681565b6040805160048152602481019091526020810180516001600160e01b0316631f1f3b4560e31b179052600090606090610f5790611135565b6040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b031663fca7820b60e01b179052600090606090610ea190610dc4565b600181565b606060006060846001600160a01b0316846040518082805190602001908083835b60208310611c915780518252601f199092019160209182019101611c72565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114611cf1576040519150601f19603f3d011682016040523d82523d6000602084013e611cf6565b606091505b50915091506000821415611d0b573d60208201fd5b94935050505056fe43457263323044656c656761746f723a66616c6c6261636b3a2063616e6e6f742073656e642076616c756520746f2066616c6c6261636b43457263323044656c656761746f723a3a5f736574496d706c656d656e746174696f6e3a2043616c6c6572206d7573742062652061646d696ea265627a7a72315820cbe9fd14af4c84788f56d371977db525a55a420bdb2210e071a3686e9739091c64736f6c634300050c003243457263323044656c656761746f723a3a5f736574496d706c656d656e746174696f6e3a2043616c6c6572206d7573742062652061646d696e0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b0000000000000000000000005562024784cc914069d67d89a28e3201bf7b57e7000000000000000000000000000000000000000000a56fa5b99019a5c80000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000080000000000000000000000006d903f6003cca6255d85cca4d3b5e5146dc3392500000000000000000000000099ee778b9a6205657dd03b2b91415c8646d521ec00000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000c436f6d706f756e642044616900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004634441490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000"}]} \ No newline at end of file diff --git a/tests/cachedrpc/8839e451ddd93b7813b8da22b6f97d02dc1b5cf5b73b13c4a9f362d39f1b838d b/tests/cachedrpc/8839e451ddd93b7813b8da22b6f97d02dc1b5cf5b73b13c4a9f362d39f1b838d new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/8839e451ddd93b7813b8da22b6f97d02dc1b5cf5b73b13c4a9f362d39f1b838d @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/a68f2ee07f4fc88d0846cc7999b7d39cc986809c45cafae02144f4268de0a5e1 b/tests/cachedrpc/a68f2ee07f4fc88d0846cc7999b7d39cc986809c45cafae02144f4268de0a5e1 new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/a68f2ee07f4fc88d0846cc7999b7d39cc986809c45cafae02144f4268de0a5e1 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/bc0acad67d193fbbde0b3ab0170773f3ea24c140a18965800cbb33d6efd48eb8 b/tests/cachedrpc/bc0acad67d193fbbde0b3ab0170773f3ea24c140a18965800cbb33d6efd48eb8 new file mode 100644 index 0000000..655083a --- /dev/null +++ b/tests/cachedrpc/bc0acad67d193fbbde0b3ab0170773f3ea24c140a18965800cbb33d6efd48eb8 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27","blockNumber":"0xef599e","transactionHash":"0x8b36720344797ed57f2e22cf2aa56a09662165567a6ade701259cde560cc4a9d","transactionIndex":"0x14","blockHash":"0xd7ed5e920920b64f5efbcc91a032dd0378d506088a00bba2fb1c66cd0dbae25b","logIndex":"0x34","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6"],"data":"0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","blockNumber":"0xef5a6b","transactionHash":"0x198e6d0873d4521837bd014dacc4329b11297dd79a0f879d5049753f9f89e82b","transactionIndex":"0x12","blockHash":"0x768feaea2f3bf3d6a7627b3383902c032804427c65042e32fcc0de15d41296c8","logIndex":"0x1e","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x188","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x189","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18b","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000000000000000000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18d","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockNumber":"0xef5a90","transactionHash":"0x9601f827bb4459bb7f636c844dede00786c5a076bce99516429fe50e3163ba93","transactionIndex":"0xbb","blockHash":"0x61bcedce14b858f9ce637263340a263bdc6f8c8a89c92773f14d3d03718f0b33","logIndex":"0x18e","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000000000000000000000000000000000000000000000","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a98","transactionHash":"0x1488af0b2eb93b6c0e82de337d978781c8e5996eaecc653abf392d06ebe75c08","transactionIndex":"0x24","blockHash":"0x9383c3f7717b6ef88523f5a0f9ff69a492a43bdbf26adf40239b39e11d2c5438","logIndex":"0x81","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6","0x000000000000000000000000bafa44efe7901e04e39dad13167d089c559c1138","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a98","transactionHash":"0x1488af0b2eb93b6c0e82de337d978781c8e5996eaecc653abf392d06ebe75c08","transactionIndex":"0x24","blockHash":"0x9383c3f7717b6ef88523f5a0f9ff69a492a43bdbf26adf40239b39e11d2c5438","logIndex":"0x82","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x0000000000000000000000005180db0237291a6449dda9ed33ad90a38787621c","0x000000000000000000000000ac3e018457b222d93114458476f3e3416abbe38f"],"data":"0x00000000000000000000000000000000000000000000000000038d7ea4c68000","blockNumber":"0xef5a9e","transactionHash":"0x1d2add7b30b4d411ef95b948af5b6a13a60ec91dadbcbd87b6da5da8bc16a91b","transactionIndex":"0x4b","blockHash":"0xc836180c9370f03266774891a320275b87276b7a74fe937db3c848fbaf2c7df6","logIndex":"0xbb","removed":false},{"address":"0x5e8422345238f34275888049021821e8e08caa1f","topics":["0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22"],"data":"0x0000000000000000000000008306300ffd616049fd7e4b0354a64da835c1a81c","blockNumber":"0xef6ed1","transactionHash":"0xa5ab72433014588d5a41e73554c2915a483124d54321a8e6acf1912132c7718c","transactionIndex":"0x44","blockHash":"0x702b9dbae3879a1071e0c3443ef6c05d81874e42fa1170f003e98ad01c1234cb","logIndex":"0x29","removed":false}]} diff --git a/tests/cachedrpc/ee50d9de4aee5ce8328b308ff68d2d16692d0a5c3bd9b9904cf7644339c07461 b/tests/cachedrpc/ee50d9de4aee5ce8328b308ff68d2d16692d0a5c3bd9b9904cf7644339c07461 new file mode 100644 index 0000000..112d71a --- /dev/null +++ b/tests/cachedrpc/ee50d9de4aee5ce8328b308ff68d2d16692d0a5c3bd9b9904cf7644339c07461 @@ -0,0 +1 @@ +{"jsonrpc":"2.0","id":1,"result":[]} diff --git a/tests/cachedrpc/f10fdf2d1fb15e56674124c8cc4324fb6764c926ae0022ca10e776892ab299a3 b/tests/cachedrpc/f10fdf2d1fb15e56674124c8cc4324fb6764c926ae0022ca10e776892ab299a3 new file mode 100644 index 0000000..2eef9f7 --- /dev/null +++ b/tests/cachedrpc/f10fdf2d1fb15e56674124c8cc4324fb6764c926ae0022ca10e776892ab299a3 @@ -0,0 +1 @@ +{"status":"1","message":"OK","result":[{"contractAddress":"0x5e8422345238f34275888049021821e8e08caa1f","contractCreator":"0x4600d3b12c39af925c2c07c487d31d17c1e32a35","txHash":"0x8b36720344797ed57f2e22cf2aa56a09662165567a6ade701259cde560cc4a9d","blockNumber":"15686046","timestamp":"1665022895","contractFactory":"","creationBytecode":"0x6101406040523480156200001257600080fd5b5060405162001e9138038062001e9183398101604081905262000035916200024a565b81816040518060400160405280600a815260200169233930bc1022ba3432b960b11b815250604051806040016040528060068152602001650cce4f08aa8960d31b815250838280604051806040016040528060018152602001603160f81b81525085858160039081620000a9919062000327565b506004620000b8828262000327565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250506001600160a01b038116620001a65760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640160405180910390fd5b600780546001600160a01b0319166001600160a01b038316908117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a15050600980546001600160a01b0319166001600160a01b03939093169290921790915550620003f392505050565b80516001600160a01b03811681146200024557600080fd5b919050565b600080604083850312156200025e57600080fd5b62000269836200022d565b915062000279602084016200022d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002ad57607f821691505b602082108103620002ce57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032257600081815260208120601f850160051c81016020861015620002fd5750805b601f850160051c820191505b818110156200031e5782815560010162000309565b5050505b505050565b81516001600160401b0381111562000343576200034362000282565b6200035b8162000354845462000298565b84620002d4565b602080601f8311600181146200039357600084156200037a5750858301515b600019600386901b1c1916600185901b1785556200031e565b600085815260208120601f198616915b82811015620003c457888601518255948401946001909101908401620003a3565b5085821015620003e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051611a4e620004436000396000611235015260006112840152600061125f015260006111b8015260006111e20152600061120c0152611a4e6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806379ba5097116100f9578063a9059cbb11610097578063d73ced0411610071578063d73ced04146103b6578063dc6663c7146103c9578063dd62ed3e146103dc578063f46eccc4146103ef57600080fd5b8063a9059cbb1461037d578063bdacb30314610390578063d505accf146103a357600080fd5b80638da5cb5b116100d35780638da5cb5b1461033c57806395d89b411461034f578063983b2d5614610357578063a457c2d71461036a57600080fd5b806379ba50971461030e57806379cc6790146103165780637ecebe001461032957600080fd5b80633644e5151161016657806353a47bb71161014057806353a47bb7146102945780636a257ebc146102bf57806370a08231146102d25780637941bc89146102fb57600080fd5b80633644e51514610266578063395093511461026e57806342966c681461028157600080fd5b806318160ddd116101a257806318160ddd1461021f57806323b872dd146102315780633092afd514610244578063313ce5671461025757600080fd5b806306fdde03146101c9578063095ea7b3146101e75780631627540c1461020a575b600080fd5b6101d1610412565b6040516101de9190611767565b60405180910390f35b6101fa6101f53660046117d1565b6104a4565b60405190151581526020016101de565b61021d6102183660046117fb565b6104be565b005b6002545b6040519081526020016101de565b6101fa61023f36600461181d565b61058a565b61021d6102523660046117fb565b6105ae565b604051601281526020016101de565b61022361076c565b6101fa61027c3660046117d1565b61077b565b61021d61028f366004611859565b61079d565b6008546102a7906001600160a01b031681565b6040516001600160a01b0390911681526020016101de565b61021d6102cd3660046117d1565b6107aa565b6102236102e03660046117fb565b6001600160a01b031660009081526020819052604090205490565b61021d6103093660046117d1565b61084c565b61021d6108e6565b61021d6103243660046117d1565b6109d0565b6102236103373660046117fb565b6109e9565b6007546102a7906001600160a01b031681565b6101d1610a07565b61021d6103653660046117fb565b610a16565b6101fa6103783660046117d1565b610b73565b6101fa61038b3660046117d1565b610bee565b61021d61039e3660046117fb565b610bfc565b61021d6103b1366004611872565b610caf565b6102a76103c4366004611859565b610e13565b6009546102a7906001600160a01b031681565b6102236103ea3660046118e5565b610e3d565b6101fa6103fd3660046117fb565b600b6020526000908152604090205460ff1681565b60606003805461042190611918565b80601f016020809104026020016040519081016040528092919081815260200182805461044d90611918565b801561049a5780601f1061046f5761010080835404028352916020019161049a565b820191906000526020600020905b81548152906001019060200180831161047d57829003601f168201915b5050505050905090565b6000336104b2818585610e68565b60019150505b92915050565b6007546001600160a01b031633146105355760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b60648201526084015b60405180910390fd5b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b600033610598858285610f8d565b6105a3858585611007565b506001949350505050565b6009546001600160a01b03163314806105d157506007546001600160a01b031633145b6105ed5760405162461bcd60e51b815260040161052c9061194c565b6001600160a01b0381166106135760405162461bcd60e51b815260040161052c9061197b565b6001600160a01b0381166000908152600b602052604090205460ff1615156001146106765760405162461bcd60e51b81526020600482015260136024820152721059191c995cdcc81b9bdb995e1a5cdd185b9d606a1b604482015260640161052c565b6001600160a01b0381166000908152600b60205260408120805460ff191690555b600a5481101561073257816001600160a01b0316600a82815481106106be576106be6119aa565b6000918252602090912001546001600160a01b031603610720576000600a82815481106106ed576106ed6119aa565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610732565b8061072a816119d6565b915050610697565b506040516001600160a01b03821681527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929060200161057f565b60006107766111ab565b905090565b6000336104b281858561078e8383610e3d565b61079891906119ef565b610e68565b6107a733826112d2565b50565b336000908152600b602052604090205460ff1615156001146107fd5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79206d696e7465727360a01b604482015260640161052c565b61080782826113fc565b6040518181526001600160a01b0383169033907fe0dcb47e0eb67e20e87f3e34aab31c669ecec7466e8b7fb329d586dadebac6b6906020015b60405180910390a35050565b336000908152600b602052604090205460ff16151560011461089f5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79206d696e7465727360a01b604482015260640161052c565b6108a982826109d0565b60405181815233906001600160a01b038416907fdc7fd22bc401e7c6b9be2c2736286a2a42ea0c6307bc97ff0fb12bd0abd2c74790602001610840565b6008546001600160a01b0316331461095e5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b606482015260840161052c565b600754600854604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160088054600780546001600160a01b03199081166001600160a01b03841617909155169055565b6109db823383610f8d565b6109e582826112d2565b5050565b6001600160a01b0381166000908152600560205260408120546104b8565b60606004805461042190611918565b6009546001600160a01b0316331480610a3957506007546001600160a01b031633145b610a555760405162461bcd60e51b815260040161052c9061194c565b6001600160a01b038116610a7b5760405162461bcd60e51b815260040161052c9061197b565b6001600160a01b0381166000908152600b602052604090205460ff1615610add5760405162461bcd60e51b81526020600482015260166024820152754164647265737320616c72656164792065786973747360501b604482015260640161052c565b6001600160a01b0381166000818152600b60209081526040808320805460ff19166001908117909155600a805491820181559093527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a890920180546001600160a01b0319168417905590519182527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6910161057f565b60003381610b818286610e3d565b905083811015610be15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161052c565b6105a38286868403610e68565b6000336104b2818585611007565b6009546001600160a01b0316331480610c1f57506007546001600160a01b031633145b610c3b5760405162461bcd60e51b815260040161052c9061194c565b6001600160a01b038116610c615760405162461bcd60e51b815260040161052c9061197b565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527ff02fdf7b40fb25784d39342249bbb15cee2bc0288f75ded1cf8ad2e63d4d91aa9060200161057f565b83421115610cff5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161052c565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610d2e8c6114bb565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610d89826114e3565b90506000610d9982878787611531565b9050896001600160a01b0316816001600160a01b031614610dfc5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161052c565b610e078a8a8a610e68565b50505050505050505050565b600a8181548110610e2357600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610eca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052c565b6001600160a01b038216610f2b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610f998484610e3d565b905060001981146110015781811015610ff45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161052c565b6110018484848403610e68565b50505050565b6001600160a01b03831661106b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052c565b6001600160a01b0382166110cd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052c565b6001600160a01b038316600090815260208190526040902054818110156111455760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161052c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611001565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561120457507f000000000000000000000000000000000000000000000000000000000000000046145b1561122e57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b0382166113325760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161052c565b6001600160a01b038216600090815260208190526040902054818110156113a65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161052c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610f80565b6001600160a01b0382166114525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161052c565b806002600082825461146491906119ef565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006104b86114f06111ab565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061154287878787611559565b9150915061154f8161161d565b5095945050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156115905750600090506003611614565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156115e4573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661160d57600060019250925050611614565b9150600090505b94509492505050565b600081600481111561163157611631611a02565b036116395750565b600181600481111561164d5761164d611a02565b0361169a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161052c565b60028160048111156116ae576116ae611a02565b036116fb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161052c565b600381600481111561170f5761170f611a02565b036107a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161052c565b600060208083528351808285015260005b8181101561179457858101830151858201604001528201611778565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146117cc57600080fd5b919050565b600080604083850312156117e457600080fd5b6117ed836117b5565b946020939093013593505050565b60006020828403121561180d57600080fd5b611816826117b5565b9392505050565b60008060006060848603121561183257600080fd5b61183b846117b5565b9250611849602085016117b5565b9150604084013590509250925092565b60006020828403121561186b57600080fd5b5035919050565b600080600080600080600060e0888a03121561188d57600080fd5b611896886117b5565b96506118a4602089016117b5565b95506040880135945060608801359350608088013560ff811681146118c857600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156118f857600080fd5b611901836117b5565b915061190f602084016117b5565b90509250929050565b600181811c9082168061192c57607f821691505b6020821081036114dd57634e487b7160e01b600052602260045260246000fd5b6020808252601590820152744e6f74206f776e6572206f722074696d656c6f636b60581b604082015260600190565b60208082526015908201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016119e8576119e86119c0565b5060010190565b808201808211156104b8576104b86119c0565b634e487b7160e01b600052602160045260246000fdfea26469706673582212202b216e0eb771386708485627ef8b6f0d1d2b013ff3310226e959cf4f5525993764736f6c63430008100033000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f270000000000000000000000008412ebf45bac1b340bbe8f318b928c466c4e39ca"}]} \ No newline at end of file diff --git a/tests/ci_tests.sh b/tests/ci_tests.sh index aa5fb02..bddd580 100755 --- a/tests/ci_tests.sh +++ b/tests/ci_tests.sh @@ -42,9 +42,12 @@ cd tests/Contracts && forge build && cd - cd tests/with_metadata && forge build && cd - cd tests/hardhat && yarn install -y && npx hardhat compile && cd - cd tests/hardhat_2_0 && yarn install -y && npx hardhat compile && cd - + RUST_BACKTRACE=1 cargo test + envsubst < tests/config.json > /tmp/eval_config.json envsubst < tests/config_localsim.json > /tmp/eval_localsim_config.json + cargo run --bin fetch-from-etherscan -- -c /tmp/eval_config.json --address 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f --project /tmp/uni-factory cargo run --bin dv -- --config /tmp/eval_config.json init --address 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f --project /tmp/uni-factory --chainid 1 --factory --zerovalue --contractname UniswapV2Factory --initblock 10008355 UniswapV2Factory_0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f.dvf.json cargo run --bin dv -- --config /tmp/eval_localsim_config.json init --address 0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f --project /tmp/uni-factory --chainid 1 --factory --zerovalue --contractname UniswapV2Factory --initblock 10008355 UniswapV2Factory_0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f_localsim.dvf.json diff --git a/tests/expected_dvfs/Deploy_3_wrong_event_Anvil.dvf.json b/tests/expected_dvfs/Deploy_3_wrong_event_Anvil.dvf.json new file mode 100644 index 0000000..787ac87 --- /dev/null +++ b/tests/expected_dvfs/Deploy_3_wrong_event_Anvil.dvf.json @@ -0,0 +1,118 @@ +{ + "version": "0.9.1", + "id": "0x7bacfebc44215371ee7305a45ff0faad48cde0f1de062748c6299953b9ddcb5b", + "contract_name": "StructInEvent", + "address": "0x5fbdb2315678afecb367f032d93f642f64180aa3", + "chain_id": 31337, + "deployment_block_num": 2, + "init_block_num": 4, + "deployment_tx": "0x6e3482192028814aaf7d25796faf2cae5dc51e34f8cab42633f330b6b76e35b7", + "codehash": "0x5948787aac497637d2b6ede7bb077e2b1a14822d661e2fcf5cee4b79c4a81898", + "insecure": false, + "immutables": [], + "constructor_args": [], + "critical_storage_variables": [ + { + "slot": "0x0", + "offset": 0, + "var_name": "x", + "var_type": "t_uint256", + "value": "0x00000000000000000000000000000000000000000000000000000000000001c8", + "value_hint": "456", + "comparison_operator": "Equal" + }, + { + "slot": "0x1", + "offset": 0, + "var_name": "S.A", + "var_type": "t_uint256", + "value": "0x0000000000000000000000000000000000000000000000000000000000000040", + "value_hint": "64", + "comparison_operator": "Equal" + }, + { + "slot": "0x2", + "offset": 0, + "var_name": "S.B", + "var_type": "t_address", + "value": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", + "comparison_operator": "Equal" + }, + { + "slot": "0x2", + "offset": 20, + "var_name": "S.C", + "var_type": "t_bool", + "value": "0x01", + "value_hint": "true", + "comparison_operator": "Equal" + }, + { + "slot": "0x3", + "offset": 8, + "var_name": "S.D[1]", + "var_type": "t_uint64", + "value": "0x000000000000002a", + "value_hint": "42", + "comparison_operator": "Equal" + }, + { + "slot": "0x3", + "offset": 24, + "var_name": "S.D[3]", + "var_type": "t_uint64", + "value": "0x0000000000000003", + "value_hint": "3", + "comparison_operator": "Equal" + }, + { + "slot": "0x4", + "offset": 8, + "var_name": "S.D[5]", + "var_type": "t_uint64", + "value": "0x000000000000007c", + "value_hint": "124", + "comparison_operator": "Equal" + }, + { + "slot": "0x5", + "offset": 0, + "var_name": "S.E", + "var_type": "t_uint128", + "value": "0x00000000000000000000000000000080", + "value_hint": "128", + "comparison_operator": "Equal" + } + ], + "critical_events": [ + { + "sig": "Huh((uint256,address,bool,uint64[6],uint128))", + "topic0": "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a", + "occurrences": [ + { + "topics": [ + "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000004100000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007c0000000000000000000000000000000000000000000000000000000000000080" + }, + { + "topics": [ + "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007c0000000000000000000000000000000000000000000000000000000000000080" + } + ] + } + ], + "unvalidated_metadata": { + "author_name": "Author", + "description": "System Description", + "hardfork": [ + "paris", + "shanghai" + ], + "audit_report": "https://example.org/report.pdf", + "source_url": "https://github.com/source/code", + "security_contact": "security@example.org" + } +} \ No newline at end of file diff --git a/tests/expected_dvfs/Deploy_3_wrong_event_Geth.dvf.json b/tests/expected_dvfs/Deploy_3_wrong_event_Geth.dvf.json new file mode 100644 index 0000000..15c972c --- /dev/null +++ b/tests/expected_dvfs/Deploy_3_wrong_event_Geth.dvf.json @@ -0,0 +1,118 @@ +{ + "version": "0.9.1", + "id": "0x009bdee503b84bcd749edcde8e7a9041434e77c1ccec8041ea449a9a1a8288c6", + "contract_name": "StructInEvent", + "address": "0x5fbdb2315678afecb367f032d93f642f64180aa3", + "chain_id": 1337, + "deployment_block_num": 2, + "init_block_num": 4, + "deployment_tx": "0x6e3482192028814aaf7d25796faf2cae5dc51e34f8cab42633f330b6b76e35b7", + "codehash": "0x5948787aac497637d2b6ede7bb077e2b1a14822d661e2fcf5cee4b79c4a81898", + "insecure": false, + "immutables": [], + "constructor_args": [], + "critical_storage_variables": [ + { + "slot": "0x0", + "offset": 0, + "var_name": "x", + "var_type": "t_uint256", + "value": "0x00000000000000000000000000000000000000000000000000000000000001c8", + "value_hint": "456", + "comparison_operator": "Equal" + }, + { + "slot": "0x1", + "offset": 0, + "var_name": "S.A", + "var_type": "t_uint256", + "value": "0x0000000000000000000000000000000000000000000000000000000000000040", + "value_hint": "64", + "comparison_operator": "Equal" + }, + { + "slot": "0x2", + "offset": 0, + "var_name": "S.B", + "var_type": "t_address", + "value": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", + "comparison_operator": "Equal" + }, + { + "slot": "0x2", + "offset": 20, + "var_name": "S.C", + "var_type": "t_bool", + "value": "0x01", + "value_hint": "true", + "comparison_operator": "Equal" + }, + { + "slot": "0x3", + "offset": 8, + "var_name": "S.D[1]", + "var_type": "t_uint64", + "value": "0x000000000000002a", + "value_hint": "42", + "comparison_operator": "Equal" + }, + { + "slot": "0x3", + "offset": 24, + "var_name": "S.D[3]", + "var_type": "t_uint64", + "value": "0x0000000000000003", + "value_hint": "3", + "comparison_operator": "Equal" + }, + { + "slot": "0x4", + "offset": 8, + "var_name": "S.D[5]", + "var_type": "t_uint64", + "value": "0x000000000000007c", + "value_hint": "124", + "comparison_operator": "Equal" + }, + { + "slot": "0x5", + "offset": 0, + "var_name": "S.E", + "var_type": "t_uint128", + "value": "0x00000000000000000000000000000080", + "value_hint": "128", + "comparison_operator": "Equal" + } + ], + "critical_events": [ + { + "sig": "Huh((uint256,address,bool,uint64[6],uint128))", + "topic0": "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a", + "occurrences": [ + { + "topics": [ + "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000004100000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007c0000000000000000000000000000000000000000000000000000000000000080" + }, + { + "topics": [ + "0x5958d02c6f25c2638c5ceaf6c12d534c7ba06054374767984e828e32ddd5927a" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007c0000000000000000000000000000000000000000000000000000000000000080" + } + ] + } + ], + "unvalidated_metadata": { + "author_name": "Author", + "description": "System Description", + "hardfork": [ + "paris", + "shanghai" + ], + "audit_report": "https://example.org/report.pdf", + "source_url": "https://github.com/source/code", + "security_contact": "security@example.org" + } +} \ No newline at end of file diff --git a/tests/test_end_to_end.rs b/tests/test_end_to_end.rs index 38d4489..af2a524 100644 --- a/tests/test_end_to_end.rs +++ b/tests/test_end_to_end.rs @@ -1329,6 +1329,75 @@ mod tests { } } + #[test] + fn test_e2e_failing_validate_events() { + let port = 8551u16; + let config_file = match DVFConfig::test_config_file(Some(port)) { + Ok(config) => config, + Err(err) => { + println!("{}", err); + assert!(false); + return; + } + }; + + let url = format!("http://localhost:{}", port).to_string(); + + for client_type in LocalClientType::iterator() { + let mut testcases: Vec = vec![]; + testcases.push(TestCaseE2E { + script: String::from("script/Deploy_3.s.sol"), + contract: String::from("StructInEvent"), + expected: format!( + "tests/expected_dvfs/Deploy_3_wrong_event_{}.dvf.json", + client_type.to_string() + ), + }); + for testcase in testcases { + let local_client = start_local_client(client_type.clone(), port); + + let mut forge_cmd = Command::new("forge"); + forge_cmd.current_dir("tests/Contracts"); + let forge_assert = forge_cmd + .args(&[ + "script", + &testcase.script, + "--rpc-url", + &url, + "--broadcast", + "--slow", + ]) + .assert() + .success(); + println!( + "{}", + &String::from_utf8_lossy(&forge_assert.get_output().stdout) + ); + + // Validate + let mut dvf_cmd = Command::cargo_bin("dv").unwrap(); + let dvf_assert = dvf_cmd + .args(&[ + "--config", + &config_file.path().to_string_lossy(), + "validate", + "--validationblock", + "4", + "--allowuntrusted", + &testcase.expected, + ]) + .assert() + .failure(); + + let output = String::from_utf8_lossy(&dvf_assert.get_output().stdout); + println!("{}", &output); + + assert!(output.contains("Deployment invalid: Found more occurrences of event Huh((uint256,address,bool,uint64[6],uint128)) than expected (2).")); + drop(local_client); + } + } + } + #[test] fn test_e2e_failing_factory() { let port = 8552u16;