@chainlink/contracts
Version:
Chainlink smart contracts
746 lines (745 loc) • 15.7 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "LINKAddress",
"type": "address"
},
{
"internalType": "contract IAutomationRegistryMaster2_3",
"name": "registry",
"type": "address"
},
{
"components": [
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"internalType": "enum AutomationRegistrar2_3.AutoApproveType",
"name": "autoApproveType",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "autoApproveMaxAllowed",
"type": "uint32"
}
],
"internalType": "struct AutomationRegistrar2_3.InitialTriggerConfig[]",
"name": "triggerConfigs",
"type": "tuple[]"
},
{
"internalType": "contract IERC20Metadata[]",
"name": "billingTokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "minRegistrationFees",
"type": "uint256[]"
},
{
"internalType": "contract IWrappedNative",
"name": "wrappedNativeToken",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "DuplicateEntry",
"type": "error"
},
{
"inputs": [],
"name": "HashMismatch",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientPayment",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAdminAddress",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBillingToken",
"type": "error"
},
{
"inputs": [],
"name": "InvalidDataLength",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAdminOrOwner",
"type": "error"
},
{
"inputs": [],
"name": "OnlyLink",
"type": "error"
},
{
"inputs": [],
"name": "RequestNotFound",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "TransferFailed",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "senderAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "allowed",
"type": "bool"
}
],
"name": "AutoApproveAllowedSenderSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "ConfigChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "OwnershipTransferRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "displayName",
"type": "string"
},
{
"indexed": true,
"internalType": "uint256",
"name": "upkeepId",
"type": "uint256"
}
],
"name": "RegistrationApproved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "RegistrationRejected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "bytes",
"name": "encryptedEmail",
"type": "bytes"
},
{
"indexed": true,
"internalType": "address",
"name": "upkeepContract",
"type": "address"
},
{
"indexed": false,
"internalType": "uint32",
"name": "gasLimit",
"type": "uint32"
},
{
"indexed": false,
"internalType": "address",
"name": "adminAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"indexed": false,
"internalType": "bytes",
"name": "triggerConfig",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "offchainConfig",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "checkData",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"indexed": false,
"internalType": "contract IERC20Metadata",
"name": "billingToken",
"type": "address"
}
],
"name": "RegistrationRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"indexed": false,
"internalType": "enum AutomationRegistrar2_3.AutoApproveType",
"name": "autoApproveType",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint32",
"name": "autoApproveMaxAllowed",
"type": "uint32"
}
],
"name": "TriggerConfigSet",
"type": "event"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "upkeepContract",
"type": "address"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
},
{
"internalType": "uint32",
"name": "gasLimit",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"internalType": "contract IERC20Metadata",
"name": "billingToken",
"type": "address"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bytes",
"name": "encryptedEmail",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "checkData",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "triggerConfig",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "offchainConfig",
"type": "bytes"
}
],
"internalType": "struct AutomationRegistrar2_3.RegistrationParams",
"name": "requestParams",
"type": "tuple"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "cancel",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "senderAddress",
"type": "address"
}
],
"name": "getAutoApproveAllowedSender",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20Metadata",
"name": "billingToken",
"type": "address"
}
],
"name": "getMinimumRegistrationAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "getPendingRequest",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRegistry",
"outputs": [
{
"internalType": "contract IAutomationRegistryMaster2_3",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
}
],
"name": "getTriggerRegistrationDetails",
"outputs": [
{
"components": [
{
"internalType": "enum AutomationRegistrar2_3.AutoApproveType",
"name": "autoApproveType",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "autoApproveMaxAllowed",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "approvedCount",
"type": "uint32"
}
],
"internalType": "struct AutomationRegistrar2_3.TriggerRegistrationStorage",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "i_LINK",
"outputs": [
{
"internalType": "contract LinkTokenInterface",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "i_WRAPPED_NATIVE_TOKEN",
"outputs": [
{
"internalType": "contract IWrappedNative",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "onTokenTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "upkeepContract",
"type": "address"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
},
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
},
{
"internalType": "uint32",
"name": "gasLimit",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"internalType": "contract IERC20Metadata",
"name": "billingToken",
"type": "address"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bytes",
"name": "encryptedEmail",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "checkData",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "triggerConfig",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "offchainConfig",
"type": "bytes"
}
],
"internalType": "struct AutomationRegistrar2_3.RegistrationParams",
"name": "requestParams",
"type": "tuple"
}
],
"name": "registerUpkeep",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "senderAddress",
"type": "address"
},
{
"internalType": "bool",
"name": "allowed",
"type": "bool"
}
],
"name": "setAutoApproveAllowedSender",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IAutomationRegistryMaster2_3",
"name": "registry",
"type": "address"
},
{
"internalType": "contract IERC20Metadata[]",
"name": "billingTokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "minBalances",
"type": "uint256[]"
}
],
"name": "setConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "triggerType",
"type": "uint8"
},
{
"internalType": "enum AutomationRegistrar2_3.AutoApproveType",
"name": "autoApproveType",
"type": "uint8"
},
{
"internalType": "uint32",
"name": "autoApproveMaxAllowed",
"type": "uint32"
}
],
"name": "setTriggerConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "typeAndVersion",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
]