1234567891011121314151617#![allow(dead_code)] 1819use evm_coder::{20 abi::AbiType, ToLog, execution::Result, solidity_interface, types::*, solidity, weight,21};2223pub struct Impls;2425#[solidity_interface(name = OurInterface)]26impl Impls {27 fn fn_a(&self, _input: uint256) -> Result<bool> {28 unreachable!()29 }30}3132#[solidity_interface(name = OurInterface1)]33impl Impls {34 fn fn_b(&self, _input: uint128) -> Result<uint32> {35 unreachable!()36 }37}3839#[derive(ToLog)]40enum OurEvents {41 Event1 {42 field1: uint32,43 },44 Event2 {45 field1: uint32,46 #[indexed]47 field2: uint32,48 },49}5051#[solidity_interface(52 name = OurInterface2,53 is(OurInterface),54 inline_is(OurInterface1),55 events(OurEvents)56)]57impl Impls {58 #[solidity(rename_selector = "fnK")]59 fn fn_c(&self, _input: uint32) -> Result<uint8> {60 unreachable!()61 }62 fn fn_d(&self, _value: uint32) -> Result<uint32> {63 unreachable!()64 }6566 fn caller_sensitive(&self, _caller: caller) -> Result<uint8> {67 unreachable!()68 }69 fn payable(&mut self, _value: value) -> Result<uint8> {70 unreachable!()71 }7273 #[weight(*_weight)]74 fn with_weight(&self, _weight: uint64) -> Result<void> {75 unreachable!()76 }7778 79 fn with_doc(&self) -> Result<void> {80 unreachable!()81 }82}8384#[solidity_interface(85 name = ValidSelector,86 expect_selector = 0x00000000,87)]88impl Impls {}