FirepitDestination
Inherits: Nonce, Owned
a contract for receiving crosschain messages. Validates messages and releases assets from the TokenJar
State Variables
allowableSource
the source contract that is allowed to originate messages to this contract i.e. FirepitSource
updatable by owner
address public allowableSource
allowableCallers
the local contract(s) that are allowed to call this contract, i.e. Message Relayers
updatable by owner
mapping(address callers => bool allowed) public allowableCallers
TOKEN_JAR
TokenJar public immutable TOKEN_JAR
MINIMUM_RELEASE_GAS
uint256 public constant MINIMUM_RELEASE_GAS = 100_000
Functions
constructor
constructor(address _owner, address _tokenJar) Owned(_owner);
onlyAllowed
modifier onlyAllowed() ;
claimTo
Calls Token Jar to release assets to a destination
only callable by the messenger via the authorized L1 source contract
function claimTo(uint256 _nonce, Currency[] calldata assets, address claimer)
external
onlyAllowed
handleNonce(_nonce);
setAllowableCallers
function setAllowableCallers(address callers, bool isAllowed) external onlyOwner;
setAllowableSource
function setAllowableSource(address source) external onlyOwner;
Events
FailedRelease
event FailedRelease(uint256 indexed _nonce, address indexed _claimer);