git.delta.rocks / unique-network / refs/commits / 4fa2a1bb0fae

difftreelog

test fix unit tests

Yaroslav Bolyukin2021-07-27parent: #18b08e8.patch.diff
in: master

3 files changed

modifiedcrates/evm-coder/tests/a.rsdiffbeforeafterboth
77
8#[solidity_interface(name = "OurInterface")]8#[solidity_interface(name = "OurInterface")]
9impl Impls {9impl Impls {
10 fn fn_a(&self, input: uint256) -> Result<bool> {10 fn fn_a(&self, _input: uint256) -> Result<bool> {
11 todo!()11 todo!()
12 }12 }
13}13}
1414
15#[solidity_interface(name = "OurInterface1")]15#[solidity_interface(name = "OurInterface1")]
16impl Impls {16impl Impls {
17 fn fn_b(&self, input: uint128) -> Result<uint32> {17 fn fn_b(&self, _input: uint128) -> Result<uint32> {
18 todo!()18 todo!()
19 }19 }
20}20}
27)]27)]
28impl Impls {28impl Impls {
29 #[solidity(rename_selector = "fnK")]29 #[solidity(rename_selector = "fnK")]
30 fn fn_c(&self, input: uint32) -> Result<uint8> {30 fn fn_c(&self, _input: uint32) -> Result<uint8> {
31 todo!()31 todo!()
32 }32 }
33 fn fn_d(&self, value: uint32) -> Result<uint32> {33 fn fn_d(&self, _value: uint32) -> Result<uint32> {
34 todo!()34 todo!()
35 }35 }
3636
37 fn caller_sensitive(&self, caller: caller) -> Result<uint8> {37 fn caller_sensitive(&self, _caller: caller) -> Result<uint8> {
38 todo!()38 todo!()
39 }39 }
40 fn payable(&mut self, value: value) -> Result<uint8> {40 fn payable(&mut self, _value: value) -> Result<uint8> {
41 todo!()41 todo!()
42 }42 }
43}43}
65 fn decimals(&self) -> Result<uint8> {65 fn decimals(&self) -> Result<uint8> {
66 todo!()66 todo!()
67 }67 }
68 fn balance_of(&self, owner: address) -> Result<uint256> {68 fn balance_of(&self, _owner: address) -> Result<uint256> {
69 todo!()69 todo!()
70 }70 }
71 fn transfer(&mut self, caller: caller, to: address, value: uint256) -> Result<bool> {71 fn transfer(&mut self, _caller: caller, _to: address, _value: uint256) -> Result<bool> {
72 todo!()72 todo!()
73 }73 }
74 fn transfer_from(74 fn transfer_from(
75 &mut self,75 &mut self,
76 caller: caller,76 _caller: caller,
77 from: address,77 _from: address,
78 to: address,78 _to: address,
79 value: uint256,79 _value: uint256,
80 ) -> Result<bool> {80 ) -> Result<bool> {
81 todo!()81 todo!()
82 }82 }
83 fn approve(&mut self, caller: caller, spender: address, value: uint256) -> Result<bool> {83 fn approve(&mut self, _caller: caller, _spender: address, _value: uint256) -> Result<bool> {
84 todo!()84 todo!()
85 }85 }
86 fn allowance(&self, owner: address, spender: address) -> Result<uint256> {86 fn allowance(&self, _owner: address, _spender: address) -> Result<uint256> {
87 todo!()87 todo!()
88 }88 }
89}89}
modifiedpallets/evm-coder-substrate/src/lib.rsdiffbeforeafterboth
38 }38 }
3939
40 #[pallet::config]40 #[pallet::config]
41 pub trait Config: frame_system::Config + pallet_evm::Config {41 pub trait Config: frame_system::Config {
42 type EthereumTransactionSender: pallet_ethereum::EthereumTransactionSender;42 type EthereumTransactionSender: pallet_ethereum::EthereumTransactionSender;
43 }43 }
4444
modifiedpallets/nft/src/mock.rsdiffbeforeafterboth
6use sp_runtime::{6use sp_runtime::{
7 traits::{BlakeTwo256, IdentityLookup},7 traits::{BlakeTwo256, IdentityLookup},
8 testing::Header,8 testing::Header,
9 Perbill,
10};9};
11use pallet_transaction_payment::{CurrencyAdapter};10use pallet_transaction_payment::{CurrencyAdapter};
12use frame_system as system;11use frame_system as system;
99 type WeightInfo = ();98 type WeightInfo = ();
100}99}
101
102type Timestamp = pallet_timestamp::Pallet<Test>;
103type Randomness = pallet_randomness_collective_flip::Pallet<Test>;
104100
105parameter_types! {101parameter_types! {
106 pub const CollectionCreationPrice: u32 = 0;102 pub const CollectionCreationPrice: u32 = 0;
151 }147 }
152}148}
149
150impl pallet_evm_coder_substrate::Config for Test {
151 type EthereumTransactionSender = TestEtheremTransactionSender;
152}
153153
154impl pallet_template::Config for Test {154impl pallet_template::Config for Test {
155 type Event = ();155 type Event = ();
160 type EvmAddressMapping = TestEvmAddressMapping;160 type EvmAddressMapping = TestEvmAddressMapping;
161 type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;161 type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;
162 type CrossAccountId = TestCrossAccountId;162 type CrossAccountId = TestCrossAccountId;
163 type EthereumTransactionSender = TestEtheremTransactionSender;
164}163}
165164
166// Build genesis storage according to the mock runtime.165// Build genesis storage according to the mock runtime.