datahaven/operator/pallets
Ahmad Kaouk 2b44f6af57
feat: Native Token Transfer to Ethereum (#88)
### Summary

- Implement native token transfers from DataHaven to Ethereum using
Snowbridge infrastructure
- Add comprehensive datahaven-native-transfer pallet with lock-and-mint
mechanism for cross-chain token representation

  ### Key Features

  **New Pallet: datahaven-native-transfer**

- Cross-chain transfers: Transfer DataHaven native tokens to Ethereum
addresses via `transfer_to_ethereum extrinsic`
- Token locking mechanism: Secure token storage in deterministic
Ethereum sovereign account during transfers
- Fee management: Required fees for all transfers to compensate relayers
and prevent spam
  - Emergency controls: Pause/unpause functionality
- Token registration: Integration with Snowbridge's token registration
for native token identification


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced the DataHaven Native Transfer pallet enabling secure
cross-chain transfers of DataHaven native tokens to and from Ethereum
via Snowbridge.
- Added token locking on DataHaven, minting on Ethereum, and mandatory
fee collection to cover gas costs and incentivize relayers.
- Implemented pause and unpause controls for emergency management of
token transfers.

- **Configuration**
- Integrated the new pallet into mainnet, stagenet, and testnet runtimes
with updated network, account, and treasury settings.
- Added Ethereum sovereign account constants and native token ID support
for optimized cross-chain operations.

- **Documentation**
- Added comprehensive README and inline documentation detailing pallet
features, extrinsics, events, errors, and security considerations.

- **Tests**
- Added extensive unit and integration tests covering token transfers,
native token registration, fee handling, pause functionality, and event
validation across all supported networks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
2025-06-12 00:07:36 +02:00
..
datahaven-native-transfer feat: Native Token Transfer to Ethereum (#88) 2025-06-12 00:07:36 +02:00
ethereum-client ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00
external-validators feat(operator): Add External Validators Rewards Pallet (#72) 2025-05-22 00:51:24 +00:00
external-validators-rewards feat(operator): Add External Validators Rewards Pallet (#72) 2025-05-22 00:51:24 +00:00
inbound-queue-v2 ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00
outbound-commitment-store ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00
outbound-queue-v2 ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00
system ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00
system-v2 ci: 🐳 Start Publishing Docker Images (#64) 2025-05-08 20:32:55 -03:00