@etherisc/terraguard-poc-contracts
Version:
Etherisc's smart contracts for the terraguard poc
1,470 lines • 49.1 kB
JSON
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "release",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
}
],
"name": "LogContractDeregistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "release",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "contractAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "isNew",
"type": "bool"
}
],
"name": "LogContractRegistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "release",
"type": "bytes32"
}
],
"name": "LogReleasePrepared",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "idx",
"type": "uint256"
}
],
"name": "contractName",
"outputs": [
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "contracts",
"outputs": [
{
"internalType": "uint256",
"name": "_numberOfContracts",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"name": "deregister",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_release",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"name": "deregisterInRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"name": "ensureSender",
"outputs": [
{
"internalType": "bool",
"name": "_senderMatches",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"name": "getContract",
"outputs": [
{
"internalType": "address",
"name": "_contractAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_release",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
}
],
"name": "getContractInRelease",
"outputs": [
{
"internalType": "address",
"name": "_contractAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRelease",
"outputs": [
{
"internalType": "bytes32",
"name": "_release",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_newRelease",
"type": "bytes32"
}
],
"name": "prepareRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_contractAddress",
"type": "address"
}
],
"name": "register",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_release",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_contractName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "_contractAddress",
"type": "address"
}
],
"name": "registerInRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol"
},
"ast": {
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"exportedSymbols": {
"IRegistry": [
7009
]
},
"id": 7010,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6913,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:21"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 7009,
"linearizedBaseContracts": [
7009
],
"name": "IRegistry",
"nameLocation": "73:9:21",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 6923,
"name": "LogContractRegistered",
"nameLocation": "96:21:21",
"nodeType": "EventDefinition",
"parameters": {
"id": 6922,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6915,
"indexed": false,
"mutability": "mutable",
"name": "release",
"nameLocation": "135:7:21",
"nodeType": "VariableDeclaration",
"scope": 6923,
"src": "127:15:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6914,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "127:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6917,
"indexed": false,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "160:12:21",
"nodeType": "VariableDeclaration",
"scope": 6923,
"src": "152:20:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6916,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "152:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6919,
"indexed": false,
"mutability": "mutable",
"name": "contractAddress",
"nameLocation": "190:15:21",
"nodeType": "VariableDeclaration",
"scope": 6923,
"src": "182:23:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6918,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "182:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6921,
"indexed": false,
"mutability": "mutable",
"name": "isNew",
"nameLocation": "220:5:21",
"nodeType": "VariableDeclaration",
"scope": 6923,
"src": "215:10:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 6920,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "215:4:21",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "117:114:21"
},
"src": "90:142:21"
},
{
"anonymous": false,
"id": 6929,
"name": "LogContractDeregistered",
"nameLocation": "244:23:21",
"nodeType": "EventDefinition",
"parameters": {
"id": 6928,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6925,
"indexed": false,
"mutability": "mutable",
"name": "release",
"nameLocation": "276:7:21",
"nodeType": "VariableDeclaration",
"scope": 6929,
"src": "268:15:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6924,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "268:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6927,
"indexed": false,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "293:12:21",
"nodeType": "VariableDeclaration",
"scope": 6929,
"src": "285:20:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6926,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "285:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "267:39:21"
},
"src": "238:69:21"
},
{
"anonymous": false,
"id": 6933,
"name": "LogReleasePrepared",
"nameLocation": "319:18:21",
"nodeType": "EventDefinition",
"parameters": {
"id": 6932,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6931,
"indexed": false,
"mutability": "mutable",
"name": "release",
"nameLocation": "346:7:21",
"nodeType": "VariableDeclaration",
"scope": 6933,
"src": "338:15:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6930,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "338:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "337:17:21"
},
"src": "313:42:21"
},
{
"functionSelector": "1d5e7314",
"id": 6942,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "registerInRelease",
"nameLocation": "370:17:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6940,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6935,
"mutability": "mutable",
"name": "_release",
"nameLocation": "405:8:21",
"nodeType": "VariableDeclaration",
"scope": 6942,
"src": "397:16:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6934,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "397:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6937,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "431:13:21",
"nodeType": "VariableDeclaration",
"scope": 6942,
"src": "423:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6936,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "423:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6939,
"mutability": "mutable",
"name": "_contractAddress",
"nameLocation": "462:16:21",
"nodeType": "VariableDeclaration",
"scope": 6942,
"src": "454:24:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6938,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "454:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "387:97:21"
},
"returnParameters": {
"id": 6941,
"nodeType": "ParameterList",
"parameters": [],
"src": "493:0:21"
},
"scope": 7009,
"src": "361:133:21",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d22057a9",
"id": 6949,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "register",
"nameLocation": "509:8:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6947,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6944,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "526:13:21",
"nodeType": "VariableDeclaration",
"scope": 6949,
"src": "518:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6943,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "518:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6946,
"mutability": "mutable",
"name": "_contractAddress",
"nameLocation": "549:16:21",
"nodeType": "VariableDeclaration",
"scope": 6949,
"src": "541:24:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6945,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "541:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "517:49:21"
},
"returnParameters": {
"id": 6948,
"nodeType": "ParameterList",
"parameters": [],
"src": "575:0:21"
},
"scope": 7009,
"src": "500:76:21",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dc527b08",
"id": 6956,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deregisterInRelease",
"nameLocation": "591:19:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6954,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6951,
"mutability": "mutable",
"name": "_release",
"nameLocation": "619:8:21",
"nodeType": "VariableDeclaration",
"scope": 6956,
"src": "611:16:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6950,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "611:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6953,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "637:13:21",
"nodeType": "VariableDeclaration",
"scope": 6956,
"src": "629:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6952,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "629:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "610:41:21"
},
"returnParameters": {
"id": 6955,
"nodeType": "ParameterList",
"parameters": [],
"src": "668:0:21"
},
"scope": 7009,
"src": "582:87:21",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "20813154",
"id": 6961,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deregister",
"nameLocation": "684:10:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6959,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6958,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "703:13:21",
"nodeType": "VariableDeclaration",
"scope": 6961,
"src": "695:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6957,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "695:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "694:23:21"
},
"returnParameters": {
"id": 6960,
"nodeType": "ParameterList",
"parameters": [],
"src": "726:0:21"
},
"scope": 7009,
"src": "675:52:21",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "893917ea",
"id": 6966,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "prepareRelease",
"nameLocation": "742:14:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6964,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6963,
"mutability": "mutable",
"name": "_newRelease",
"nameLocation": "765:11:21",
"nodeType": "VariableDeclaration",
"scope": 6966,
"src": "757:19:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6962,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "757:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "756:21:21"
},
"returnParameters": {
"id": 6965,
"nodeType": "ParameterList",
"parameters": [],
"src": "786:0:21"
},
"scope": 7009,
"src": "733:54:21",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b0ef18a0",
"id": 6975,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getContractInRelease",
"nameLocation": "802:20:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6971,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6968,
"mutability": "mutable",
"name": "_release",
"nameLocation": "831:8:21",
"nodeType": "VariableDeclaration",
"scope": 6975,
"src": "823:16:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6967,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "823:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6970,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "849:13:21",
"nodeType": "VariableDeclaration",
"scope": 6975,
"src": "841:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6969,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "841:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "822:41:21"
},
"returnParameters": {
"id": 6974,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6973,
"mutability": "mutable",
"name": "_contractAddress",
"nameLocation": "919:16:21",
"nodeType": "VariableDeclaration",
"scope": 6975,
"src": "911:24:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6972,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "911:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "910:26:21"
},
"scope": 7009,
"src": "793:144:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "e16c7d98",
"id": 6982,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getContract",
"nameLocation": "952:11:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6978,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6977,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "972:13:21",
"nodeType": "VariableDeclaration",
"scope": 6982,
"src": "964:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6976,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "964:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "963:23:21"
},
"returnParameters": {
"id": 6981,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6980,
"mutability": "mutable",
"name": "_contractAddress",
"nameLocation": "1042:16:21",
"nodeType": "VariableDeclaration",
"scope": 6982,
"src": "1034:24:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6979,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1034:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1033:26:21"
},
"scope": 7009,
"src": "943:117:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "76b707b7",
"id": 6987,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getRelease",
"nameLocation": "1075:10:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6983,
"nodeType": "ParameterList",
"parameters": [],
"src": "1085:2:21"
},
"returnParameters": {
"id": 6986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6985,
"mutability": "mutable",
"name": "_release",
"nameLocation": "1119:8:21",
"nodeType": "VariableDeclaration",
"scope": 6987,
"src": "1111:16:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6984,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1111:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1110:18:21"
},
"scope": 7009,
"src": "1066:63:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "2ca65a79",
"id": 6996,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "ensureSender",
"nameLocation": "1144:12:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6992,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6989,
"mutability": "mutable",
"name": "sender",
"nameLocation": "1165:6:21",
"nodeType": "VariableDeclaration",
"scope": 6996,
"src": "1157:14:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6988,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1157:7:21",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6991,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "1181:13:21",
"nodeType": "VariableDeclaration",
"scope": 6996,
"src": "1173:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6990,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1173:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1156:39:21"
},
"returnParameters": {
"id": 6995,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6994,
"mutability": "mutable",
"name": "_senderMatches",
"nameLocation": "1223:14:21",
"nodeType": "VariableDeclaration",
"scope": 6996,
"src": "1218:19:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 6993,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1218:4:21",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1217:21:21"
},
"scope": 7009,
"src": "1135:104:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6c0f79b6",
"id": 7001,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "contracts",
"nameLocation": "1254:9:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6997,
"nodeType": "ParameterList",
"parameters": [],
"src": "1263:2:21"
},
"returnParameters": {
"id": 7000,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6999,
"mutability": "mutable",
"name": "_numberOfContracts",
"nameLocation": "1297:18:21",
"nodeType": "VariableDeclaration",
"scope": 7001,
"src": "1289:26:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6998,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1289:7:21",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1288:28:21"
},
"scope": 7009,
"src": "1245:72:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f6b3e7d0",
"id": 7008,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "contractName",
"nameLocation": "1332:12:21",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7004,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7003,
"mutability": "mutable",
"name": "idx",
"nameLocation": "1353:3:21",
"nodeType": "VariableDeclaration",
"scope": 7008,
"src": "1345:11:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7002,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1345:7:21",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1344:13:21"
},
"returnParameters": {
"id": 7007,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7006,
"mutability": "mutable",
"name": "_contractName",
"nameLocation": "1389:13:21",
"nodeType": "VariableDeclaration",
"scope": 7008,
"src": "1381:21:21",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 7005,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1381:7:21",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1380:23:21"
},
"scope": 7009,
"src": "1323:81:21",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 7010,
"src": "63:1344:21"
}
],
"src": "39:1369:21"
},
"bytecode": "",
"bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"compiler": {
"evm_version": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"version": "0.8.2+commit.661d1103"
},
"contractName": "IRegistry",
"coverageMap": {
"branches": {},
"statements": {}
},
"dependencies": [],
"deployedBytecode": "",
"deployedSourceMap": "",
"language": "Solidity",
"natspec": {
"kind": "dev",
"methods": {},
"version": 1
},
"offset": [
63,
1407
],
"opcodes": "",
"pcMap": {},
"sha1": "ca3c0112cfc6cba765d5f2014fc36aee8385a4e3",
"source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\ninterface IRegistry {\n\n event LogContractRegistered(\n bytes32 release,\n bytes32 contractName,\n address contractAddress,\n bool isNew\n );\n\n event LogContractDeregistered(bytes32 release, bytes32 contractName);\n\n event LogReleasePrepared(bytes32 release);\n\n function registerInRelease(\n bytes32 _release,\n bytes32 _contractName,\n address _contractAddress\n ) external;\n\n function register(bytes32 _contractName, address _contractAddress) external;\n\n function deregisterInRelease(bytes32 _release, bytes32 _contractName)\n external;\n\n function deregister(bytes32 _contractName) external;\n\n function prepareRelease(bytes32 _newRelease) external;\n\n function getContractInRelease(bytes32 _release, bytes32 _contractName)\n external\n view\n returns (address _contractAddress);\n\n function getContract(bytes32 _contractName)\n external\n view\n returns (address _contractAddress);\n\n function getRelease() external view returns (bytes32 _release);\n\n function ensureSender(address sender, bytes32 _contractName) external view returns(bool _senderMatches);\n\n function contracts() external view returns (uint256 _numberOfContracts);\n\n function contractName(uint256 idx) external view returns (bytes32 _contractName);\n\n}\n",
"sourceMap": "",
"sourcePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"type": "interface"
}