FirepitSource

Last modified:

Git Source

Inherits: ResourceManager, Nonce

State Variables

DEFAULT_BRIDGE_ID

uint256 public constant DEFAULT_BRIDGE_ID = 0

Functions

constructor

The constructor initializes the threshold and ownership context for cross-domain releases.

constructor(address _owner, address _resource)
  ResourceManager(_resource, 69_420, _owner, address(0xdead));

_sendReleaseMessage

function _sendReleaseMessage(
  uint256 bridgeId,
  uint256 destinationNonce,
  Currency[] calldata assets,
  address claimer,
  bytes memory addtlData
) internal virtual;

release

Torches the RESOURCE by sending it to the burn address and sends a cross-domain message to release the assets

function release(uint256 _nonce, Currency[] calldata assets, address claimer, uint32 l2GasLimit)
  external
  handleNonce(_nonce);