datahaven/operator/precompiles
Gonza Montiel 82c581d495
feat: Add datahaven native transfer precompile (#309)
## DataHaven Native Transfer Precompile

Implements EVM precompile at address
`0x00000000000000000000000000000007F5` (2073) to expose
`pallet-datahaven-native-transfer` functionality to the EVM layer.

### Features
- **Transfer to Ethereum**: Locks native tokens and sends them via
Snowbridge to Ethereum addresses
- **Pause/Unpause**: Admin controls to halt/resume transfers
- **View Functions**: Query paused state, total locked balance, and
sovereign account address

### Implementation
- Precompile using `#[precompile_utils::precompile]` macro with proper
gas accounting
- 15+ test cases covering success/failure scenarios
- Solidity interface with NatSpec documentation for contract integration

Enables seamless cross-chain transfers of DataHaven native tokens to
Ethereum L1.

---------

Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com>
2025-12-02 13:57:40 +01:00
..
batch feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
call-permit fix: change pallet_evm alias to EVM to fix eth_getCode (#213) 2025-10-10 17:48:52 +00:00
collective feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
conviction-voting feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
datahaven-native-transfer feat: Add datahaven native transfer precompile (#309) 2025-12-02 13:57:40 +01:00
erc20-balances feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
identity feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
precompile-registry feat: Add CI license check (#269) 2025-11-02 23:32:59 +02:00
preimage feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
proxy feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00
referenda feat: set POV gas limit ratio to zero for solo chain (#313) 2025-11-27 11:14:41 +01:00