@flarenetwork/flare-periphery-contract-artifacts
Version:
Smart contract artifacts for all Flare chains
806 lines (805 loc) • 16.1 kB
JSON
[
{
"inputs": [
{
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
}
],
"name": "ComposerFeeNotSet",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "providedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredFee",
"type": "uint256"
}
],
"name": "InsufficientExecutorFee",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAddress",
"type": "error"
},
{
"inputs": [],
"name": "InvalidComposerFeePPM",
"type": "error"
},
{
"inputs": [],
"name": "InvalidComposerFeeRecipient",
"type": "error"
},
{
"inputs": [],
"name": "InvalidRedeemerAccountImplementation",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
}
],
"name": "InvalidSourceOApp",
"type": "error"
},
{
"inputs": [],
"name": "LengthMismatch",
"type": "error"
},
{
"inputs": [],
"name": "OnlyEndpoint",
"type": "error"
},
{
"inputs": [],
"name": "TimelockDurationTooLong",
"type": "error"
},
{
"inputs": [],
"name": "TimelockInvalidSelector",
"type": "error"
},
{
"inputs": [],
"name": "TimelockNotAllowedYet",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes",
"name": "encodedCall",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "encodedCallHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "allowedAfterTimestamp",
"type": "uint256"
}
],
"name": "CallTimelocked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "guid",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "composerFeeRecipient",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "composerFee",
"type": "uint256"
}
],
"name": "ComposerFeeCollected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "composerFeeRecipient",
"type": "address"
}
],
"name": "ComposerFeeRecipientSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
}
],
"name": "ComposerFeeRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "composerFeePPM",
"type": "uint256"
}
],
"name": "ComposerFeeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "defaultComposerFeePPM",
"type": "uint256"
}
],
"name": "DefaultComposerFeeSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "executor",
"type": "address"
}
],
"name": "DefaultExecutorSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "guid",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "redeemer",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "redeemerAccount",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountToRedeemUBA",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wrappedAmount",
"type": "uint256"
}
],
"name": "FAssetRedeemFailed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "guid",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "srcEid",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "redeemer",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "redeemerAccount",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountToRedeemUBA",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "redeemerUnderlyingAddress",
"type": "string"
},
{
"indexed": false,
"internalType": "bool",
"name": "redeemWithTag",
"type": "bool"
},
{
"indexed": false,
"internalType": "uint256",
"name": "destinationTag",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executorFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "redeemedAmountUBA",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wrappedAmount",
"type": "uint256"
}
],
"name": "FAssetRedeemed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "FAssetTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "redeemer",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "RedeemerAccountCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "RedeemerAccountImplementationSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "timelockDurationSeconds",
"type": "uint256"
}
],
"name": "TimelockDurationSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "encodedCallHash",
"type": "bytes32"
}
],
"name": "TimelockedCallCanceled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "encodedCallHash",
"type": "bytes32"
}
],
"name": "TimelockedCallExecuted",
"type": "event"
},
{
"inputs": [],
"name": "assetManager",
"outputs": [
{
"internalType": "contract IAssetManager",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_encodedCall",
"type": "bytes"
}
],
"name": "cancelTimelockedCall",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "composerFeeRecipient",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultComposerFeePPM",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultExecutor",
"outputs": [
{
"internalType": "address payable",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "endpoint",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_encodedCall",
"type": "bytes"
}
],
"name": "executeTimelockedCall",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "fAsset",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_account",
"type": "address"
}
],
"name": "getBalances",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
}
],
"internalType": "struct IFAssetRedeemComposer.TokenBalance",
"name": "fAsset",
"type": "tuple"
},
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
}
],
"internalType": "struct IFAssetRedeemComposer.TokenBalance",
"name": "stableCoin",
"type": "tuple"
},
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
}
],
"internalType": "struct IFAssetRedeemComposer.TokenBalance",
"name": "wNat",
"type": "tuple"
}
],
"internalType": "struct IFAssetRedeemComposer.AccountBalances",
"name": "_balances",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "_srcEid",
"type": "uint32"
}
],
"name": "getComposerFeePPM",
"outputs": [
{
"internalType": "uint256",
"name": "_composerFeePPM",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_encodedCall",
"type": "bytes"
}
],
"name": "getExecuteTimelockedCallTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "_allowedAfterTimestamp",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_redeemer",
"type": "address"
}
],
"name": "getRedeemerAccountAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTimelockDurationSeconds",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "implementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "isRedeemerAccount",
"outputs": [
{
"internalType": "bool",
"name": "_isRedeemerAccount",
"type": "bool"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_guid",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "_message",
"type": "bytes"
},
{
"internalType": "address",
"name": "_executor",
"type": "address"
},
{
"internalType": "bytes",
"name": "_extraData",
"type": "bytes"
}
],
"name": "lzCompose",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "redeemerAccountImplementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_timelockDurationSeconds",
"type": "uint256"
}
],
"name": "setTimelockDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "stableCoin",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "trustedSourceOApp",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "wNat",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]