@chainlink/contracts
Version:
Chainlink smart contracts
796 lines (795 loc) • 16 kB
JSON
[
{
"inputs": [
{
"internalType": "string",
"name": "msg",
"type": "string"
}
],
"name": "NotAuthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "oldAdmin",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newAdmin",
"type": "address"
}
],
"name": "NewAdmin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "stateTransitionManager",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "chainGovernance",
"type": "address"
}
],
"name": "NewChain",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "oldPendingAdmin",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newPendingAdmin",
"type": "address"
}
],
"name": "NewPendingAdmin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "message",
"type": "bytes"
}
],
"name": "SentMessage",
"type": "event"
},
{
"inputs": [],
"name": "acceptAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stateTransitionManager",
"type": "address"
}
],
"name": "addStateTransitionManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
}
],
"name": "addToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
}
],
"name": "baseToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"name": "baseTokens",
"outputs": [
{
"internalType": "address",
"name": "baseToken",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_stateTransitionManager",
"type": "address"
},
{
"internalType": "address",
"name": "_baseToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "createNewChain",
"outputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
}
],
"name": "getHyperchain",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"name": "hyperchains",
"outputs": [
{
"internalType": "address",
"name": "hyperChain",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "l2TransactionBaseCost",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "pendingAdmin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "",
"type": "uint16"
},
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
},
{
"internalType": "enum TxStatus",
"name": "",
"type": "uint8"
}
],
"name": "proveL1ToL2TransactionStatus",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint8",
"name": "l2ShardId",
"type": "uint8"
},
{
"internalType": "bool",
"name": "isService",
"type": "bool"
},
{
"internalType": "uint16",
"name": "txNumberInBatch",
"type": "uint16"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "value",
"type": "bytes32"
}
],
"internalType": "struct L2Log",
"name": "",
"type": "tuple"
},
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"name": "proveL2LogInclusion",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint16",
"name": "txNumberInBatch",
"type": "uint16"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct L2Message",
"name": "",
"type": "tuple"
},
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"name": "proveL2MessageInclusion",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "stateTransitionManager",
"type": "address"
}
],
"name": "registeredStateTransitionManagers",
"outputs": [
{
"internalType": "bool",
"name": "stateTransitionManagerIsRegistered",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "baseToken",
"type": "address"
}
],
"name": "registeredTokens",
"outputs": [
{
"internalType": "bool",
"name": "tokenIsRegistered",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stateTransitionManager",
"type": "address"
}
],
"name": "removeStateTransitionManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mintValue",
"type": "uint256"
},
{
"internalType": "address",
"name": "l2Contract",
"type": "address"
},
{
"internalType": "uint256",
"name": "l2Value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "l2Calldata",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "l2GasLimit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "l2GasPerPubdataByteLimit",
"type": "uint256"
},
{
"internalType": "bytes[]",
"name": "factoryDeps",
"type": "bytes[]"
},
{
"internalType": "address",
"name": "refundRecipient",
"type": "address"
}
],
"internalType": "struct L2TransactionRequestDirect",
"name": "txRequest",
"type": "tuple"
}
],
"name": "requestL2TransactionDirect",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mintValue",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "l2Value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "l2GasLimit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "l2GasPerPubdataByteLimit",
"type": "uint256"
},
{
"internalType": "address",
"name": "refundRecipient",
"type": "address"
},
{
"internalType": "address",
"name": "secondBridgeAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "secondBridgeValue",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "secondBridgeCalldata",
"type": "bytes"
}
],
"internalType": "struct L2TransactionRequestTwoBridgesOuter",
"name": "",
"type": "tuple"
}
],
"name": "requestL2TransactionTwoBridges",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newPendingAdmin",
"type": "address"
}
],
"name": "setPendingAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_sharedBridgeAddr",
"type": "address"
}
],
"name": "setSharedBridge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "sharedBridge",
"outputs": [
{
"internalType": "contract IL1SharedBridge",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "sharedBridgeAddr",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
}
],
"name": "stateTransitionManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stateTransitionManager",
"type": "address"
}
],
"name": "stateTransitionManagerIsRegistered",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"name": "stateTransitionManagers",
"outputs": [
{
"internalType": "address",
"name": "stateTransitionManagerAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_baseToken",
"type": "address"
}
],
"name": "tokenIsRegistered",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]