8 releases (4 breaking)

0.4.0 Apr 9, 2024
0.3.1 Mar 26, 2024
0.2.1 Mar 26, 2024
0.2.0 Feb 26, 2024
0.0.0 Jan 10, 2024

#1532 in Magic Beans

Download history 1/week @ 2024-01-05 52/week @ 2024-02-09 168/week @ 2024-02-16 281/week @ 2024-02-23 119/week @ 2024-03-01 56/week @ 2024-03-08 529/week @ 2024-03-15 710/week @ 2024-03-22 235/week @ 2024-03-29 402/week @ 2024-04-05

1,880 downloads per month
Used in 2 crates

Apache-2.0 and GPL-3.0-only

2.5MB
44K SLoC

Ethereum System

Contains management functions to manage functions on Ethereum. For example, creating agents and channels.


lib.rs:

Governance API for controlling the Ethereum side of the bridge

Extrinsics

Agents

Agents are smart contracts on Ethereum that act as proxies for consensus systems on Polkadot networks.

The create_agent extrinsic should be called via an XCM Transact instruction from the sibling parachain.

Channels

Each sibling parachain has its own dedicated messaging channel for sending and receiving messages. As a prerequisite to creating a channel, the sibling should have already created an agent using the create_agent extrinsic.

Governance

Only Polkadot governance itself can call these extrinsics. Delivery fees are waived.

Typically, Polkadot governance will use the force_transfer_native_from_agent and force_update_channel and extrinsics to manage agents and channels for system parachains.

Dependencies

~21–36MB
~599K SLoC