|
1 |
| -use pallet_evm::{ExitError, PrecompileFailure, PrecompileHandle, PrecompileResult}; |
| 1 | +use pallet_evm::{ |
| 2 | + AddressMapping, ExitError, HashedAddressMapping, PrecompileFailure, PrecompileHandle, |
| 3 | + PrecompileResult, |
| 4 | +}; |
2 | 5 |
|
3 | 6 | use crate::precompiles::{
|
4 |
| - contract_to_origin, get_method_id, get_pubkey, get_slice, parse_netuid, |
5 |
| - try_dispatch_runtime_call, |
| 7 | + get_method_id, get_pubkey, get_slice, parse_netuid, try_dispatch_runtime_call, |
6 | 8 | };
|
| 9 | +use crate::RawOrigin; |
| 10 | +use crate::{Runtime, RuntimeCall}; |
| 11 | +use sp_runtime::traits::BlakeTwo256; |
7 | 12 | use sp_runtime::AccountId32;
|
8 | 13 | use sp_std::vec;
|
9 |
| - |
10 |
| -use crate::{Runtime, RuntimeCall}; |
11 | 14 | pub const NEURON_PRECOMPILE_INDEX: u64 = 2052;
|
12 | 15 |
|
13 | 16 | // ss58 public key i.e., the contract sends funds it received to the destination address from the
|
14 | 17 | // method parameter.
|
| 18 | +#[allow(dead_code)] |
15 | 19 | const CONTRACT_ADDRESS_SS58: [u8; 32] = [
|
16 | 20 | 0xbc, 0x46, 0x35, 0x79, 0xbc, 0x99, 0xf9, 0xee, 0x7c, 0x59, 0xed, 0xee, 0x20, 0x61, 0xa3, 0x09,
|
17 | 21 | 0xd2, 0x1e, 0x68, 0xd5, 0x39, 0xb6, 0x40, 0xec, 0x66, 0x46, 0x90, 0x30, 0xab, 0x74, 0xc1, 0xdb,
|
|
0 commit comments