{
  "abi": [
    {
      "inputs": [
        {
          "internalType": "contract IJBOperatorStore",
          "name": "_operatorStore",
          "type": "address"
        },
        {
          "internalType": "contract IJBProjects",
          "name": "_projects",
          "type": "address"
        },
        {
          "internalType": "contract IJBFundingCycleStore",
          "name": "_fundingCycleStore",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "_owner",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "inputs": [],
      "name": "DUPLICATE_TERMINALS",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "INVALID_PROJECT_ID_IN_DIRECTORY",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "SET_CONTROLLER_NOT_ALLOWED",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "SET_TERMINALS_NOT_ALLOWED",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "TOKEN_NOT_ACCEPTED",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UNAUTHORIZED",
      "type": "error"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "projectId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "contract IJBPaymentTerminal",
          "name": "terminal",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "caller",
          "type": "address"
        }
      ],
      "name": "AddTerminal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "projectId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "controller",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "caller",
          "type": "address"
        }
      ],
      "name": "SetController",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "addr",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "bool",
          "name": "flag",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "caller",
          "type": "address"
        }
      ],
      "name": "SetIsAllowedToSetFirstController",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "projectId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "token",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "contract IJBPaymentTerminal",
          "name": "terminal",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "caller",
          "type": "address"
        }
      ],
      "name": "SetPrimaryTerminal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "projectId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "contract IJBPaymentTerminal[]",
          "name": "terminals",
          "type": "address[]"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "caller",
          "type": "address"
        }
      ],
      "name": "SetTerminals",
      "type": "event"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "controllerOf",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "fundingCycleStore",
      "outputs": [
        {
          "internalType": "contract IJBFundingCycleStore",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "isAllowedToSetFirstController",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        },
        {
          "internalType": "contract IJBPaymentTerminal",
          "name": "_terminal",
          "type": "address"
        }
      ],
      "name": "isTerminalOf",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "operatorStore",
      "outputs": [
        {
          "internalType": "contract IJBOperatorStore",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "_token",
          "type": "address"
        }
      ],
      "name": "primaryTerminalOf",
      "outputs": [
        {
          "internalType": "contract IJBPaymentTerminal",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "projects",
      "outputs": [
        {
          "internalType": "contract IJBProjects",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "_controller",
          "type": "address"
        }
      ],
      "name": "setControllerOf",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_address",
          "type": "address"
        },
        {
          "internalType": "bool",
          "name": "_flag",
          "type": "bool"
        }
      ],
      "name": "setIsAllowedToSetFirstController",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "_token",
          "type": "address"
        },
        {
          "internalType": "contract IJBPaymentTerminal",
          "name": "_terminal",
          "type": "address"
        }
      ],
      "name": "setPrimaryTerminalOf",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        },
        {
          "internalType": "contract IJBPaymentTerminal[]",
          "name": "_terminals",
          "type": "address[]"
        }
      ],
      "name": "setTerminalsOf",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_projectId",
          "type": "uint256"
        }
      ],
      "name": "terminalsOf",
      "outputs": [
        {
          "internalType": "contract IJBPaymentTerminal[]",
          "name": "",
          "type": "address[]"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": {
    "object": "0x60e06040523480156200001157600080fd5b5060405162001ef638038062001ef68339810160408190526200003491620000d0565b606084901b6001600160601b031916608052620000513362000080565b6001600160601b0319606084811b821660a05283901b1660c052620000768162000080565b5050505062000151565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060808587031215620000e757600080fd5b8451620000f48162000138565b6020860151909450620001078162000138565b60408601519093506200011a8162000138565b60608601519092506200012d8162000138565b939692955090935050565b6001600160a01b03811681146200014e57600080fd5b50565b60805160601c60a05160601c60c05160601c611d20620001d66000396000818160ff0152818161080501528181610b0801526113580152600081816101ff015281816102fe015281816105ee015281816106ff0152610a0f0152600081816102570152818161117f0152818161125b0152818161157f015261165b0152611d206000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638620265011610097578063ad007d6311610066578063ad007d6314610252578063c5664e2114610279578063d17541531461029c578063f2fde38b146102bc57600080fd5b806386202650146101e75780638b79543c146101fa5780638da5cb5b14610221578063a1ed31751461023f57600080fd5b80636e49181f116100d35780636e49181f14610196578063714e7f32146101b9578063715018a6146101cc578063821b9fd8146101d457600080fd5b8063557e7155146100fa5780635dd8f6aa1461014b57806363d0850a14610181575b600080fd5b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101216101593660046119ce565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61019461018f366004611a25565b6102cf565b005b6101a96101a4366004611a00565b61051c565b6040519015158152602001610142565b6101946101c7366004611a00565b6105bf565b6101946109cc565b6101946101e2366004611a67565b6109e0565b6101216101f5366004611a00565b610d77565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff16610121565b61019461024d3660046118f8565b610f3b565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101a96102873660046118b7565b60046020526000908152604090205460ff1681565b6102af6102aa3660046119ce565b610fd0565b6040516101429190611b60565b6101946102ca3660046118b7565b611049565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b15801561035557600080fd5b505afa158015610369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038d91906118db565b83601061039b838383611105565b6040517fdf21a7dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820188905285169063df21a7dd9060440160206040518083038186803b15801561040957600080fd5b505afa15801561041d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104419190611931565b610477576040517f1f5522f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104818685611313565b600086815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8981168086529184529382902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001694891694851790559051338152909189917fc670a502bbb9f8a4315f95eca901a9f99b65f89a2eb5705a58050e5c00f9d672910160405180910390a4505050505050565b6000805b6000848152600160205260409020548110156105b3576000848152600160205260409020805473ffffffffffffffffffffffffffffffffffffffff851691908390811061056f5761056f611c8b565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156105a15760019150506105b9565b806105ab81611c23565b915050610520565b50600090505b92915050565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067d91906118db565b6000838152600360205260409020548390600e9073ffffffffffffffffffffffffffffffffffffffff163314806106f057503360009081526004602052604090205460ff1680156106f0575060008581526003602052604090205473ffffffffffffffffffffffffffffffffffffffff16155b6106fc848484846114fb565b857f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166306661abd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561076357600080fd5b505afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b91906119e7565b10156107d3576040517f945074a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018790526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b15801561085d57600080fd5b505afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610895919061194e565b60008881526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1633148015906108ef575060008781526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615155b8015610907575061010081015160091c600190811614155b1561093e576040517fa33db4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008781526003602090815260409182902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a16908117909155915133815289917f7f9a7dcb234c909a09de2f344661ad9e5b24067adb97c908647c2edcbb121c30910160405180910390a350505050505050565b6109d4611714565b6109de6000611795565b565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b158015610a6657600080fd5b505afa158015610a7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9e91906118db565b6000848152600360205260409020548490600f9073ffffffffffffffffffffffffffffffffffffffff163314610ad6848484846114fb565b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018890526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b158015610b6057600080fd5b505afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b98919061194e565b60008981526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff163314801590610bdb575061010081015160081c600190811614155b15610c12576040517febfde6be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000888152600160205260409020610c2b90888861180a565b506001861115610d315760005b86811015610d2f576000610c4d826001611c0b565b90505b87811015610d1c57888882818110610c6a57610c6a611c8b565b9050602002016020810190610c7f91906118b7565b73ffffffffffffffffffffffffffffffffffffffff16898984818110610ca757610ca7611c8b565b9050602002016020810190610cbc91906118b7565b73ffffffffffffffffffffffffffffffffffffffff161415610d0a576040517f7c70615600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80610d1481611c23565b915050610c50565b5080610d2781611c23565b915050610c38565b505b877fb648241d83df6540fc10f2acc641e4bf80a1e84e7ae2f1f6b0ad204b8fee635b888833604051610d6593929190611ae6565b60405180910390a25050505050505050565b600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff858116855292528220541615801590610dee5750600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8087168552925290912054610dee9185911661051c565b15610e2b5750600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8086168552925290912054166105b9565b60005b6000848152600160205260409020548110156105b3576000848152600160205260408120805483908110610e6457610e64611c8b565b6000918252602090912001546040517fdf21a7dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018890529091169150819063df21a7dd9060440160206040518083038186803b158015610ee257600080fd5b505afa158015610ef6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1a9190611931565b15610f285791506105b99050565b5080610f3381611c23565b915050610e2e565b610f43611714565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591513381529192917f11207664cc48b0fa81c8674795f1d8f642960f38d5d2d305ad813093bed85fab910160405180910390a35050565b60008181526001602090815260409182902080548351818402810184019094528084526060939283018282801561103d57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611012575b50505050509050919050565b611051611714565b73ffffffffffffffffffffffffffffffffffffffff81166110f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61110281611795565b50565b3373ffffffffffffffffffffffffffffffffffffffff8416148015906111fb57506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015260448201849052606482018390527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b1580156111c157600080fd5b505afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f99190611931565b155b80156112d757506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015260006044830152606482018390527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b15801561129d57600080fd5b505afa1580156112b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d59190611931565b155b1561130e576040517f075fd2b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61131d828261051c565b15611326575050565b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018390526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e8919061194e565b60008481526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16331480159061142b575061010081015160081c600190811614155b15611462576040517febfde6be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526001602081815260408084208054938401815584529281902090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616908117909155915133815285917f409bccc07b7cf7807930526a24318212d614c59f2dde05a017a41efee144e7c8910160405180910390a3505050565b8015801561151f57503373ffffffffffffffffffffffffffffffffffffffff851614155b80156115fb57506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015260448201859052606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b1580156115c157600080fd5b505afa1580156115d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f99190611931565b155b80156116d757506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015260006044830152606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b15801561169d57600080fd5b505afa1580156116b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d59190611931565b155b1561170e576040517f075fd2b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110f0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611882579160200282015b828111156118825781547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84351617825560209092019160019091019061182a565b5061188e929150611892565b5090565b5b8082111561188e5760008155600101611893565b80516118b281611cba565b919050565b6000602082840312156118c957600080fd5b81356118d481611cba565b9392505050565b6000602082840312156118ed57600080fd5b81516118d481611cba565b6000806040838503121561190b57600080fd5b823561191681611cba565b9150602083013561192681611cdc565b809150509250929050565b60006020828403121561194357600080fd5b81516118d481611cdc565b6000610120828403121561196157600080fd5b611969611bba565b825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201526119b560e084016118a7565b60e0820152610100928301519281019290925250919050565b6000602082840312156119e057600080fd5b5035919050565b6000602082840312156119f957600080fd5b5051919050565b60008060408385031215611a1357600080fd5b82359150602083013561192681611cba565b600080600060608486031215611a3a57600080fd5b833592506020840135611a4c81611cba565b91506040840135611a5c81611cba565b809150509250925092565b600080600060408486031215611a7c57600080fd5b83359250602084013567ffffffffffffffff80821115611a9b57600080fd5b818601915086601f830112611aaf57600080fd5b813581811115611abe57600080fd5b8760208260051b8501011115611ad357600080fd5b6020830194508093505050509250925092565b6040808252810183905260008460608301825b86811015611b36578235611b0c81611cba565b73ffffffffffffffffffffffffffffffffffffffff16825260209283019290910190600101611af9565b50809250505073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b6020808252825182820181905260009190848201906040850190845b81811015611bae57835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101611b7c565b50909695505050505050565b604051610120810167ffffffffffffffff81118282101715611c05577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b60008219821115611c1e57611c1e611c5c565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611c5557611c55611c5c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461110257600080fd5b801515811461110257600080fdfea264697066735822122059c12e725f9547b2b9235303f14a631047b8bd421bb2cc0df9f4ce65a08b4fbe64736f6c63430008060033",
    "sourceMap": "946:13071:60:-:0;;;6847:282;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2728:30:71;;;;;;;936:32:141;719:10:159;936:18:141;:32::i;:::-;-1:-1:-1;;7027:20:60;;;;;::::1;::::0;7053:38;;;;::::1;::::0;7098:26:::1;7117:6:::0;7098:18:::1;:26::i;:::-;6847:282:::0;;;;946:13071;;2433:187:141;2506:16;2525:6;;-1:-1:-1;2541:17:141;;-1:-1:-1;2541:17:141;;;;;;;;2573:40;;2525:6;;;2541:17;;2525:6;;2573:40;;;2496:124;2433:187;:::o;14:731:168:-;188:6;196;204;212;265:3;253:9;244:7;240:23;236:33;233:2;;;282:1;279;272:12;233:2;314:9;308:16;333:31;358:5;333:31;:::i;:::-;433:2;418:18;;412:25;383:5;;-1:-1:-1;446:33:168;412:25;446:33;:::i;:::-;550:2;535:18;;529:25;498:7;;-1:-1:-1;563:33:168;529:25;563:33;:::i;:::-;667:2;652:18;;646:25;615:7;;-1:-1:-1;680:33:168;646:25;680:33;:::i;:::-;223:522;;;;-1:-1:-1;223:522:168;;-1:-1:-1;;223:522:168:o;750:131::-;-1:-1:-1;825:31:168;;815:42;;805:2;;871:1;868;861:12;805:2;795:86;:::o;:::-;946:13071:60;;;;;;;;;;;;;;;;;;;;;;;;",
    "linkReferences": {}
  },
  "deployedBytecode": {
    "object": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638620265011610097578063ad007d6311610066578063ad007d6314610252578063c5664e2114610279578063d17541531461029c578063f2fde38b146102bc57600080fd5b806386202650146101e75780638b79543c146101fa5780638da5cb5b14610221578063a1ed31751461023f57600080fd5b80636e49181f116100d35780636e49181f14610196578063714e7f32146101b9578063715018a6146101cc578063821b9fd8146101d457600080fd5b8063557e7155146100fa5780635dd8f6aa1461014b57806363d0850a14610181575b600080fd5b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101216101593660046119ce565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61019461018f366004611a25565b6102cf565b005b6101a96101a4366004611a00565b61051c565b6040519015158152602001610142565b6101946101c7366004611a00565b6105bf565b6101946109cc565b6101946101e2366004611a67565b6109e0565b6101216101f5366004611a00565b610d77565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff16610121565b61019461024d3660046118f8565b610f3b565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101a96102873660046118b7565b60046020526000908152604090205460ff1681565b6102af6102aa3660046119ce565b610fd0565b6040516101429190611b60565b6101946102ca3660046118b7565b611049565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b15801561035557600080fd5b505afa158015610369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038d91906118db565b83601061039b838383611105565b6040517fdf21a7dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820188905285169063df21a7dd9060440160206040518083038186803b15801561040957600080fd5b505afa15801561041d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104419190611931565b610477576040517f1f5522f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104818685611313565b600086815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8981168086529184529382902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001694891694851790559051338152909189917fc670a502bbb9f8a4315f95eca901a9f99b65f89a2eb5705a58050e5c00f9d672910160405180910390a4505050505050565b6000805b6000848152600160205260409020548110156105b3576000848152600160205260409020805473ffffffffffffffffffffffffffffffffffffffff851691908390811061056f5761056f611c8b565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156105a15760019150506105b9565b806105ab81611c23565b915050610520565b50600090505b92915050565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067d91906118db565b6000838152600360205260409020548390600e9073ffffffffffffffffffffffffffffffffffffffff163314806106f057503360009081526004602052604090205460ff1680156106f0575060008581526003602052604090205473ffffffffffffffffffffffffffffffffffffffff16155b6106fc848484846114fb565b857f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166306661abd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561076357600080fd5b505afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b91906119e7565b10156107d3576040517f945074a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018790526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b15801561085d57600080fd5b505afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610895919061194e565b60008881526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff1633148015906108ef575060008781526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615155b8015610907575061010081015160091c600190811614155b1561093e576040517fa33db4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008781526003602090815260409182902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a16908117909155915133815289917f7f9a7dcb234c909a09de2f344661ad9e5b24067adb97c908647c2edcbb121c30910160405180910390a350505050505050565b6109d4611714565b6109de6000611795565b565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690636352211e9060240160206040518083038186803b158015610a6657600080fd5b505afa158015610a7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9e91906118db565b6000848152600360205260409020548490600f9073ffffffffffffffffffffffffffffffffffffffff163314610ad6848484846114fb565b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018890526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b158015610b6057600080fd5b505afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b98919061194e565b60008981526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff163314801590610bdb575061010081015160081c600190811614155b15610c12576040517febfde6be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000888152600160205260409020610c2b90888861180a565b506001861115610d315760005b86811015610d2f576000610c4d826001611c0b565b90505b87811015610d1c57888882818110610c6a57610c6a611c8b565b9050602002016020810190610c7f91906118b7565b73ffffffffffffffffffffffffffffffffffffffff16898984818110610ca757610ca7611c8b565b9050602002016020810190610cbc91906118b7565b73ffffffffffffffffffffffffffffffffffffffff161415610d0a576040517f7c70615600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80610d1481611c23565b915050610c50565b5080610d2781611c23565b915050610c38565b505b877fb648241d83df6540fc10f2acc641e4bf80a1e84e7ae2f1f6b0ad204b8fee635b888833604051610d6593929190611ae6565b60405180910390a25050505050505050565b600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff858116855292528220541615801590610dee5750600083815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8087168552925290912054610dee9185911661051c565b15610e2b5750600082815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8086168552925290912054166105b9565b60005b6000848152600160205260409020548110156105b3576000848152600160205260408120805483908110610e6457610e64611c8b565b6000918252602090912001546040517fdf21a7dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152602482018890529091169150819063df21a7dd9060440160206040518083038186803b158015610ee257600080fd5b505afa158015610ef6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1a9190611931565b15610f285791506105b99050565b5080610f3381611c23565b915050610e2e565b610f43611714565b73ffffffffffffffffffffffffffffffffffffffff821660008181526004602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591513381529192917f11207664cc48b0fa81c8674795f1d8f642960f38d5d2d305ad813093bed85fab910160405180910390a35050565b60008181526001602090815260409182902080548351818402810184019094528084526060939283018282801561103d57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611012575b50505050509050919050565b611051611714565b73ffffffffffffffffffffffffffffffffffffffff81166110f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61110281611795565b50565b3373ffffffffffffffffffffffffffffffffffffffff8416148015906111fb57506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015260448201849052606482018390527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b1580156111c157600080fd5b505afa1580156111d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f99190611931565b155b80156112d757506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015260006044830152606482018390527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b15801561129d57600080fd5b505afa1580156112b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d59190611931565b155b1561130e576040517f075fd2b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61131d828261051c565b15611326575050565b6040517f43a266c2000000000000000000000000000000000000000000000000000000008152600481018390526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906343a266c2906024016101206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e8919061194e565b60008481526003602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16331480159061142b575061010081015160081c600190811614155b15611462576040517febfde6be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526001602081815260408084208054938401815584529281902090910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616908117909155915133815285917f409bccc07b7cf7807930526a24318212d614c59f2dde05a017a41efee144e7c8910160405180910390a3505050565b8015801561151f57503373ffffffffffffffffffffffffffffffffffffffff851614155b80156115fb57506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015260448201859052606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b1580156115c157600080fd5b505afa1580156115d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f99190611931565b155b80156116d757506040517fc161c93f00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff858116602483015260006044830152606482018490527f0000000000000000000000000000000000000000000000000000000000000000169063c161c93f9060840160206040518083038186803b15801561169d57600080fd5b505afa1580156116b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d59190611931565b155b1561170e576040517f075fd2b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110f0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215611882579160200282015b828111156118825781547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84351617825560209092019160019091019061182a565b5061188e929150611892565b5090565b5b8082111561188e5760008155600101611893565b80516118b281611cba565b919050565b6000602082840312156118c957600080fd5b81356118d481611cba565b9392505050565b6000602082840312156118ed57600080fd5b81516118d481611cba565b6000806040838503121561190b57600080fd5b823561191681611cba565b9150602083013561192681611cdc565b809150509250929050565b60006020828403121561194357600080fd5b81516118d481611cdc565b6000610120828403121561196157600080fd5b611969611bba565b825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201526119b560e084016118a7565b60e0820152610100928301519281019290925250919050565b6000602082840312156119e057600080fd5b5035919050565b6000602082840312156119f957600080fd5b5051919050565b60008060408385031215611a1357600080fd5b82359150602083013561192681611cba565b600080600060608486031215611a3a57600080fd5b833592506020840135611a4c81611cba565b91506040840135611a5c81611cba565b809150509250925092565b600080600060408486031215611a7c57600080fd5b83359250602084013567ffffffffffffffff80821115611a9b57600080fd5b818601915086601f830112611aaf57600080fd5b813581811115611abe57600080fd5b8760208260051b8501011115611ad357600080fd5b6020830194508093505050509250925092565b6040808252810183905260008460608301825b86811015611b36578235611b0c81611cba565b73ffffffffffffffffffffffffffffffffffffffff16825260209283019290910190600101611af9565b50809250505073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b6020808252825182820181905260009190848201906040850190845b81811015611bae57835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101611b7c565b50909695505050505050565b604051610120810167ffffffffffffffff81118282101715611c05577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b60008219821115611c1e57611c1e611c5c565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611c5557611c55611c5c565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff8116811461110257600080fd5b801515811461110257600080fdfea264697066735822122059c12e725f9547b2b9235303f14a631047b8bd421bb2cc0df9f4ce65a08b4fbe64736f6c63430008060033",
    "sourceMap": "946:13071:60:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2764:64;;;;;;;;4860:42:168;4848:55;;;4830:74;;4818:2;4803:18;2764:64:60;;;;;;;;3259:56;;;;;;:::i;:::-;;;;;;;;;;;;;;;;11170:721;;;;;;:::i;:::-;;:::i;:::-;;6013:280;;;;;;:::i;:::-;;:::i;:::-;;;7943:14:168;;7936:22;7918:41;;7906:2;7891:18;6013:280:60;7873:92:168;7903:1218:60;;;;;;:::i;:::-;;:::i;1831:101:141:-;;;:::i;9381:1136:60:-;;;;;;:::i;:::-;;:::i;4632:811::-;;;;;;:::i;:::-;;:::i;2631:46::-;;;;;1201:85:141;1247:7;1273:6;;;1201:85;;12542:283:60;;;;;;:::i;:::-;;:::i;2308:56:71:-;;;;;3555:70:60;;;;;;:::i;:::-;;;;;;;;;;;;;;;;4071:162;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2081:198:141:-;;;;;;:::i;:::-;;:::i;11170:721:60:-;11330:28;;;;;;;;9913:25:168;;;11330:8:60;:16;;;;;9886:18:168;;11330:28:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11360:10;768:2:107;1316:55:71;1335:8;1345:7;1354:16;1316:18;:55::i;:::-;11502:42:60::1;::::0;;;;:22:::1;6065:55:168::0;;;11502:42:60::1;::::0;::::1;6047:74:168::0;6137:18;;;6130:34;;;11502:22:60;::::1;::::0;::::1;::::0;6020:18:168;;11502:42:60::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11497:76;;11553:20;;;;;;;;;;;;;;11497:76;11646:43;11667:10;11679:9;11646:20;:43::i;:::-;11763:30;::::0;;;:18:::1;:30;::::0;;;;;;;:38:::1;::::0;;::::1;::::0;;;;;;;;;;:50;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;11825:61;;11875:10:::1;4830:74:168::0;;11763:38:60;;:30;;11825:61:::1;::::0;4803:18:168;11825:61:60::1;;;;;;;11170:721:::0;;;;;;:::o;6013:280::-;6131:4;6150:10;6145:125;6167:24;;;;:12;:24;;;;;:31;6162:36;;6145:125;;;6216:24;;;;:12;:24;;;;;:28;;:41;;;;:24;6241:2;;6216:28;;;;;;:::i;:::-;;;;;;;;;;;;;:41;6212:58;;;6266:4;6259:11;;;;;6212:58;6200:4;;;;:::i;:::-;;;;6145:125;;;;6283:5;6276:12;;6013:280;;;;;:::o;7903:1218::-;8040:28;;;;;;;;9913:25:168;;;8040:8:60;:16;;;;;9886:18:168;;8040:28:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8152:24;;;;:12;:24;;;;;;;;669:2:107;;8152:24:60;;8130:10;:47;;:144;;-1:-1:-1;8220:10:60;8190:41;;;;:29;:41;;;;;;;;:83;;;;-1:-1:-1;8271:1:60;8235:24;;;:12;:24;;;;;;:38;:24;:38;8190:83;1911:82:71;1946:8;1956:7;1965:16;1983:9;1911:34;:82::i;:::-;8344:10:60::1;8325:8;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:29;8321:75;;;8363:33;;;;;;;;;;;;;;8321:75;8504:39;::::0;;;;::::1;::::0;::::1;9913:25:168::0;;;8466:35:60::1;::::0;8504:17:::1;:27;;::::0;::::1;::::0;9886:18:168;;8504:39:60::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8795:24;::::0;;;:12:::1;:24;::::0;;;;;8466:77;;-1:-1:-1;8795:24:60::1;;8773:10;:47;::::0;::::1;::::0;:95:::1;;-1:-1:-1::0;8866:1:60::1;8830:24:::0;;;:12:::1;:24;::::0;;;;;:38:::1;:24;:38:::0;::::1;8773:95;:163;;;;-1:-1:-1::0;8885:22:60::1;::::0;::::1;::::0;437:10:106;;446:1;436:16;;;435:23;8878:58:60::1;8773:163;8762:216;;;8950:28;;;;;;;;;;;;;;8762:216;9016:24;::::0;;;:12:::1;:24;::::0;;;;;;;;:38;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;9066:50;;9105:10:::1;4830:74:168::0;;9016:24:60;;9066:50:::1;::::0;4803:18:168;9066:50:60::1;;;;;;;8284:837;7903:1218:::0;;;;;;:::o;1831:101:141:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;9381:1136:60:-;9538:28;;;;;;;;9913:25:168;;;9538:8:60;:16;;;;;9886:18:168;;9538:28:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9648:24;;;;:12;:24;;;;;;;;715:2:107;;9648:24:60;;9626:10;:47;1911:82:71;1946:8;9648:24:60;715:2:107;9626:47:60;1911:34:71;:82::i;:::-;9789:39:60::1;::::0;;;;::::1;::::0;::::1;9913:25:168::0;;;9751:35:60::1;::::0;9789:17:::1;:27;;::::0;::::1;::::0;9886:18:168;;9789:39:60::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9952:24;::::0;;;:12:::1;:24;::::0;;;;;9751:77;;-1:-1:-1;9952:24:60::1;;9930:10;:47;::::0;::::1;::::0;:114:::1;;-1:-1:-1::0;9994:22:60::1;::::0;::::1;::::0;10020:1:::1;9994:27;334:1:106::0;326:9;;;325:16;9987:57:60::1;9930:114;9919:166;;;10058:27;;;;;;;;;;;;;;9919:166;10144:24;::::0;;;:12:::1;:24;::::0;;;;:37:::1;::::0;10171:10;;10144:37:::1;:::i;:::-;-1:-1:-1::0;10256:1:60::1;10236:21:::0;::::1;10232:220;;;10270:10;10265:187;10282:22:::0;;::::1;10265:187;;;10325:10;10338:6;:2:::0;10343:1:::1;10338:6;:::i;:::-;10325:19;;10320:132;10346:22:::0;;::::1;10320:132;;;10408:10;;10419:2;10408:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;10390:32;;:10;;10401:2;10390:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:32;;;10386:66;;;10431:21;;;;;;;;;;;;;;10386:66;10370:4:::0;::::1;::::0;::::1;:::i;:::-;;;;10320:132;;;-1:-1:-1::0;10306:4:60;::::1;::::0;::::1;:::i;:::-;;;;10265:187;;;;10232:220;10477:10;10464:48;10489:10;;10501;10464:48;;;;;;;;:::i;:::-;;;;;;;;9682:835;9381:1136:::0;;;;;;;:::o;4632:811::-;4743:18;4897:30;;;:18;:30;;;;;;;;:72;:38;;;;;;;;;;;:72;;;;:146;;-1:-1:-1;5004:30:60;;;;:18;:30;;;;;;;;:38;;;;;;;;;;;;4979:64;;4992:10;;5004:38;4979:12;:64::i;:::-;4886:209;;;-1:-1:-1;5057:30:60;;;;:18;:30;;;;;;;;:38;;;;;;;;;;;;;5050:45;;4886:209;5175:10;5170:207;5192:24;;;;:12;:24;;;;;:31;5187:36;;5170:207;;;5239:28;5270:24;;;:12;:24;;;;;:28;;5295:2;;5270:28;;;;;;:::i;:::-;;;;;;;;;;;5310:42;;;;;5270:28;6065:55:168;;;5310:42:60;;;6047:74:168;6137:18;;;6130:34;;;5270:28:60;;;;-1:-1:-1;5270:28:60;;5310:22;;6020:18:168;;5310:42:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5306:64;;;5361:9;-1:-1:-1;5354:16:60;;-1:-1:-1;5354:16:60;5306:64;-1:-1:-1;5225:4:60;;;;:::i;:::-;;;;5170:207;;12542:283;1094:13:141;:11;:13::i;:::-;12700:39:60::1;::::0;::::1;;::::0;;;:29:::1;:39;::::0;;;;;;;;:47;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;12759:61;;12809:10:::1;4830:74:168::0;;12700:47:60;;:39;12759:61:::1;::::0;4803:18:168;12759:61:60::1;;;;;;;12542:283:::0;;:::o;4071:162::-;4204:24;;;;:12;:24;;;;;;;;;4197:31;;;;;;;;;;;;;;;;;4160:27;;4197:31;;;4204:24;4197:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4071:162;;;:::o;2081:198:141:-;1094:13;:11;:13::i;:::-;2169:22:::1;::::0;::::1;2161:73;;;::::0;::::1;::::0;;9201:2:168;2161:73:141::1;::::0;::::1;9183:21:168::0;9240:2;9220:18;;;9213:30;9279:34;9259:18;;;9252:62;9350:8;9330:18;;;9323:36;9376:19;;2161:73:141::1;;;;;;;;;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;3359:359:71:-;3495:10;:22;;;;;;;:109;;-1:-1:-1;3528:76:71;;;;;3556:10;3528:76;;;5215:34:168;3528:27:71;5285:15:168;;;5265:18;;;5258:43;5317:18;;;5310:34;;;5360:18;;;5353:34;;;3528:13:71;:27;;;;5126:19:168;;3528:76:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3527:77;3495:109;:190;;;;-1:-1:-1;3615:70:71;;;;;3643:10;3615:70;;;5215:34:168;3615:27:71;5285:15:168;;;5265:18;;;5258:43;3665:1:71;5317:18:168;;;5310:34;5360:18;;;5353:34;;;3615:13:71;:27;;;;5126:19:168;;3615:70:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3614:71;3495:190;3484:229;;;3699:14;;;;;;;;;;;;;;3484:229;3359:359;;;:::o;13272:743:60:-;13429:35;13442:10;13454:9;13429:12;:35::i;:::-;13425:48;;;13272:743;;:::o;13425:48::-;13580:39;;;;;;;;9913:25:168;;;13542:35:60;;13580:17;:27;;;;;9886:18:168;;13580:39:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13743:24;;;;:12;:24;;;;;;13542:77;;-1:-1:-1;13743:24:60;;13721:10;:47;;;;:114;;-1:-1:-1;13785:22:60;;;;13811:1;13785:27;334:1:106;326:9;;;325:16;13778:57:60;13721:114;13710:166;;;13849:27;;;;;;;;;;;;;;13710:166;13912:24;;;;:12;:24;;;;;;;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13964:46;;13999:10;4830:74:168;;13912:24:60;;13964:46;;4803:18:168;13964:46:60;;;;;;;13360:655;13272:743;;:::o;4163:415:71:-;4336:9;4335:10;:42;;;;-1:-1:-1;4355:10:71;:22;;;;;4335:42;:129;;;;-1:-1:-1;4388:76:71;;;;;4416:10;4388:76;;;5215:34:168;4388:27:71;5285:15:168;;;5265:18;;;5258:43;5317:18;;;5310:34;;;5360:18;;;5353:34;;;4388:13:71;:27;;;;5126:19:168;;4388:76:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4387:77;4335:129;:210;;;;-1:-1:-1;4475:70:71;;;;;4503:10;4475:70;;;5215:34:168;4475:27:71;5285:15:168;;;5265:18;;;5258:43;4525:1:71;5317:18:168;;;5310:34;5360:18;;;5353:34;;;4475:13:71;:27;;;;5126:19:168;;4475:70:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4474:71;4335:210;4324:249;;;4559:14;;;;;;;;;;;;;;4324:249;4163:415;;;;:::o;1359:130:141:-;1247:7;1273:6;1422:23;1273:6;719:10:159;1422:23:141;1414:68;;;;;;;9608:2:168;1414:68:141;;;9590:21:168;;;9627:18;;;9620:30;9686:34;9666:18;;;9659:62;9738:18;;1414:68:141;9580:182:168;2433:187:141;2506:16;2525:6;;;2541:17;;;;;;;;;;2573:40;;2525:6;;;;;;;2573:40;;2506:16;2573:40;2496:124;2433:187;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:161:168;116:13;;138:31;116:13;138:31;:::i;:::-;97:78;;;:::o;180:247::-;239:6;292:2;280:9;271:7;267:23;263:32;260:2;;;308:1;305;298:12;260:2;347:9;334:23;366:31;391:5;366:31;:::i;:::-;416:5;250:177;-1:-1:-1;;;250:177:168:o;432:251::-;502:6;555:2;543:9;534:7;530:23;526:32;523:2;;;571:1;568;561:12;523:2;603:9;597:16;622:31;647:5;622:31;:::i;688:382::-;753:6;761;814:2;802:9;793:7;789:23;785:32;782:2;;;830:1;827;820:12;782:2;869:9;856:23;888:31;913:5;888:31;:::i;:::-;938:5;-1:-1:-1;995:2:168;980:18;;967:32;1008:30;967:32;1008:30;:::i;:::-;1057:7;1047:17;;;772:298;;;;;:::o;1075:245::-;1142:6;1195:2;1183:9;1174:7;1170:23;1166:32;1163:2;;;1211:1;1208;1201:12;1163:2;1243:9;1237:16;1262:28;1284:5;1262:28;:::i;1605:827::-;1708:6;1761:3;1749:9;1740:7;1736:23;1732:33;1729:2;;;1778:1;1775;1768:12;1729:2;1804:17;;:::i;:::-;1850:9;1844:16;1837:5;1830:31;1914:2;1903:9;1899:18;1893:25;1888:2;1881:5;1877:14;1870:49;1972:2;1961:9;1957:18;1951:25;1946:2;1939:5;1935:14;1928:49;2030:2;2019:9;2015:18;2009:25;2004:2;1997:5;1993:14;1986:49;2089:3;2078:9;2074:19;2068:26;2062:3;2055:5;2051:15;2044:51;2149:3;2138:9;2134:19;2128:26;2122:3;2115:5;2111:15;2104:51;2209:3;2198:9;2194:19;2188:26;2182:3;2175:5;2171:15;2164:51;2248:73;2316:3;2305:9;2301:19;2248:73;:::i;:::-;2242:3;2231:15;;2224:98;2341:3;2382:18;;;2376:25;2360:14;;;2353:49;;;;-1:-1:-1;2235:5:168;1719:713;-1:-1:-1;1719:713:168:o;2437:180::-;2496:6;2549:2;2537:9;2528:7;2524:23;2520:32;2517:2;;;2565:1;2562;2555:12;2517:2;-1:-1:-1;2588:23:168;;2507:110;-1:-1:-1;2507:110:168:o;2622:184::-;2692:6;2745:2;2733:9;2724:7;2720:23;2716:32;2713:2;;;2761:1;2758;2751:12;2713:2;-1:-1:-1;2784:16:168;;2703:103;-1:-1:-1;2703:103:168:o;2811:315::-;2879:6;2887;2940:2;2928:9;2919:7;2915:23;2911:32;2908:2;;;2956:1;2953;2946:12;2908:2;2992:9;2979:23;2969:33;;3052:2;3041:9;3037:18;3024:32;3065:31;3090:5;3065:31;:::i;3131:484::-;3236:6;3244;3252;3305:2;3293:9;3284:7;3280:23;3276:32;3273:2;;;3321:1;3318;3311:12;3273:2;3357:9;3344:23;3334:33;;3417:2;3406:9;3402:18;3389:32;3430:31;3455:5;3430:31;:::i;:::-;3480:5;-1:-1:-1;3537:2:168;3522:18;;3509:32;3550:33;3509:32;3550:33;:::i;:::-;3602:7;3592:17;;;3263:352;;;;;:::o;3620:711::-;3743:6;3751;3759;3812:2;3800:9;3791:7;3787:23;3783:32;3780:2;;;3828:1;3825;3818:12;3780:2;3864:9;3851:23;3841:33;;3925:2;3914:9;3910:18;3897:32;3948:18;3989:2;3981:6;3978:14;3975:2;;;4005:1;4002;3995:12;3975:2;4043:6;4032:9;4028:22;4018:32;;4088:7;4081:4;4077:2;4073:13;4069:27;4059:2;;4110:1;4107;4100:12;4059:2;4150;4137:16;4176:2;4168:6;4165:14;4162:2;;;4192:1;4189;4182:12;4162:2;4245:7;4240:2;4230:6;4227:1;4223:14;4219:2;4215:23;4211:32;4208:45;4205:2;;;4266:1;4263;4256:12;4205:2;4297;4293;4289:11;4279:21;;4319:6;4309:16;;;;;3770:561;;;;;:::o;6175:884::-;6431:2;6443:21;;;6416:18;;6499:22;;;6383:4;6578:6;6552:2;6537:18;;6383:4;6612:327;6626:6;6623:1;6620:13;6612:327;;;6701:6;6688:20;6721:31;6746:5;6721:31;:::i;:::-;6788:42;6777:54;6765:67;;6855:4;6914:15;;;;6879:12;;;;6648:1;6641:9;6612:327;;;6616:3;6956;6948:11;;;;7009:42;7001:6;6997:55;6990:4;6979:9;6975:20;6968:85;6392:667;;;;;;:::o;7064:709::-;7263:2;7315:21;;;7385:13;;7288:18;;;7407:22;;;7234:4;;7263:2;7486:15;;;;7460:2;7445:18;;;7234:4;7529:218;7543:6;7540:1;7537:13;7529:218;;;7608:13;;7623:42;7604:62;7592:75;;7722:15;;;;7687:12;;;;7565:1;7558:9;7529:218;;;-1:-1:-1;7764:3:168;;7243:530;-1:-1:-1;;;;;;7243:530:168:o;9949:401::-;10016:2;10010:9;10058:3;10046:16;;10092:18;10077:34;;10113:22;;;10074:62;10071:2;;;10169:77;10166:1;10159:88;10270:4;10267:1;10260:15;10298:4;10295:1;10288:15;10071:2;10329;10322:22;9990:360;:::o;10355:128::-;10395:3;10426:1;10422:6;10419:1;10416:13;10413:2;;;10432:18;;:::i;:::-;-1:-1:-1;10468:9:168;;10403:80::o;10488:195::-;10527:3;10558:66;10551:5;10548:77;10545:2;;;10628:18;;:::i;:::-;-1:-1:-1;10675:1:168;10664:13;;10535:148::o;10688:184::-;10740:77;10737:1;10730:88;10837:4;10834:1;10827:15;10861:4;10858:1;10851:15;10877:184;10929:77;10926:1;10919:88;11026:4;11023:1;11016:15;11050:4;11047:1;11040:15;11066:154;11152:42;11145:5;11141:54;11134:5;11131:65;11121:2;;11210:1;11207;11200:12;11225:118;11311:5;11304:13;11297:21;11290:5;11287:32;11277:2;;11333:1;11330;11323:12",
    "linkReferences": {},
    "immutableReferences": {
      "14001": [
        {
          "start": 511,
          "length": 32
        },
        {
          "start": 766,
          "length": 32
        },
        {
          "start": 1518,
          "length": 32
        },
        {
          "start": 1791,
          "length": 32
        },
        {
          "start": 2575,
          "length": 32
        }
      ],
      "14006": [
        {
          "start": 255,
          "length": 32
        },
        {
          "start": 2053,
          "length": 32
        },
        {
          "start": 2824,
          "length": 32
        },
        {
          "start": 4952,
          "length": 32
        }
      ],
      "20055": [
        {
          "start": 599,
          "length": 32
        },
        {
          "start": 4479,
          "length": 32
        },
        {
          "start": 4699,
          "length": 32
        },
        {
          "start": 5503,
          "length": 32
        },
        {
          "start": 5723,
          "length": 32
        }
      ]
    }
  },
  "methodIdentifiers": {
    "controllerOf(uint256)": "5dd8f6aa",
    "fundingCycleStore()": "557e7155",
    "isAllowedToSetFirstController(address)": "c5664e21",
    "isTerminalOf(uint256,address)": "6e49181f",
    "operatorStore()": "ad007d63",
    "owner()": "8da5cb5b",
    "primaryTerminalOf(uint256,address)": "86202650",
    "projects()": "8b79543c",
    "renounceOwnership()": "715018a6",
    "setControllerOf(uint256,address)": "714e7f32",
    "setIsAllowedToSetFirstController(address,bool)": "a1ed3175",
    "setPrimaryTerminalOf(uint256,address,address)": "63d0850a",
    "setTerminalsOf(uint256,address[])": "821b9fd8",
    "terminalsOf(uint256)": "d1754153",
    "transferOwnership(address)": "f2fde38b"
  },
  "rawMetadata": "{\"compiler\":{\"version\":\"0.8.6+commit.11564f7e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IJBOperatorStore\",\"name\":\"_operatorStore\",\"type\":\"address\"},{\"internalType\":\"contract IJBProjects\",\"name\":\"_projects\",\"type\":\"address\"},{\"internalType\":\"contract IJBFundingCycleStore\",\"name\":\"_fundingCycleStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DUPLICATE_TERMINALS\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"INVALID_PROJECT_ID_IN_DIRECTORY\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SET_CONTROLLER_NOT_ALLOWED\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SET_TERMINALS_NOT_ALLOWED\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TOKEN_NOT_ACCEPTED\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UNAUTHORIZED\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contract IJBPaymentTerminal\",\"name\":\"terminal\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"AddTerminal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"SetController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bool\",\"name\":\"flag\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"SetIsAllowedToSetFirstController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contract IJBPaymentTerminal\",\"name\":\"terminal\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"SetPrimaryTerminal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contract IJBPaymentTerminal[]\",\"name\":\"terminals\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"SetTerminals\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"controllerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fundingCycleStore\",\"outputs\":[{\"internalType\":\"contract IJBFundingCycleStore\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAllowedToSetFirstController\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"contract IJBPaymentTerminal\",\"name\":\"_terminal\",\"type\":\"address\"}],\"name\":\"isTerminalOf\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operatorStore\",\"outputs\":[{\"internalType\":\"contract IJBOperatorStore\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"primaryTerminalOf\",\"outputs\":[{\"internalType\":\"contract IJBPaymentTerminal\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"projects\",\"outputs\":[{\"internalType\":\"contract IJBProjects\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"name\":\"setControllerOf\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_flag\",\"type\":\"bool\"}],\"name\":\"setIsAllowedToSetFirstController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"contract IJBPaymentTerminal\",\"name\":\"_terminal\",\"type\":\"address\"}],\"name\":\"setPrimaryTerminalOf\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"contract IJBPaymentTerminal[]\",\"name\":\"_terminals\",\"type\":\"address[]\"}],\"name\":\"setTerminalsOf\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"}],\"name\":\"terminalsOf\",\"outputs\":[{\"internalType\":\"contract IJBPaymentTerminal[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Adheres to - IJBDirectory: General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.Inherits from - JBOperatable: Includes convenience functionality for checking a message sender's permissions before executing certain transactions. Ownable: Includes convenience functionality for checking a message sender's permissions before executing certain transactions.\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_fundingCycleStore\":\"A contract storing all funding cycle configurations.\",\"_operatorStore\":\"A contract storing operator assignments.\",\"_owner\":\"The address that will own the contract.\",\"_projects\":\"A contract which mints ERC-721's that represent project ownership and transfers.\"}},\"isTerminalOf(uint256,address)\":{\"params\":{\"_projectId\":\"The ID of the project to check within.\",\"_terminal\":\"The address of the terminal to check for.\"},\"returns\":{\"_0\":\"A flag indicating whether or not the specified terminal is a terminal of the specified project.\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"primaryTerminalOf(uint256,address)\":{\"details\":\"The zero address is returned if a terminal isn't found for the specified token.\",\"params\":{\"_projectId\":\"The ID of the project to get a terminal for.\",\"_token\":\"The token the terminal accepts.\"},\"returns\":{\"_0\":\"The primary terminal for the project for the specified token.\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setControllerOf(uint256,address)\":{\"details\":\"A controller can be set if: - the message sender is the project owner or an operator having the correct authorization. - the message sender is the project's current controller. - or, an allowedlisted address is setting a controller for a project that doesn't already have a controller.\",\"params\":{\"_controller\":\"The new controller to set.\",\"_projectId\":\"The ID of the project to set a new controller for.\"}},\"setIsAllowedToSetFirstController(address,bool)\":{\"details\":\"The owner can add addresses which are allowed to change projects' first controllers.  These addresses are known and vetted controllers as well as contracts designed to launch new projects.  A project can set its own controller without it being on the allow list.If you would like an address/contract allowlisted, please reach out to the contract owner.\",\"params\":{\"_address\":\"The address to allow or revoke allowance from.\",\"_flag\":\"Whether allowance is being added or revoked.\"}},\"setPrimaryTerminalOf(uint256,address,address)\":{\"details\":\"The terminal will be set as the primary terminal where ecosystem contracts should route tokens.If setting a newly added terminal and the funding cycle doesn't allow new terminals, the caller must be the current controller.\",\"params\":{\"_projectId\":\"The ID of the project for which a primary token is being set.\",\"_terminal\":\"The terminal to make primary.\",\"_token\":\"The token to set the primary terminal of.\"}},\"setTerminalsOf(uint256,address[])\":{\"details\":\"Only a project owner, an operator, or its controller can set its terminals.\",\"params\":{\"_projectId\":\"The ID of the project having terminals set.\",\"_terminals\":\"The terminal to set.\"}},\"terminalsOf(uint256)\":{\"params\":{\"_projectId\":\"The ID of the project to get terminals of.\"},\"returns\":{\"_0\":\"An array of terminal addresses.\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"controllerOf(uint256)\":{\"notice\":\" For each project ID, the controller that manages how terminals interact with tokens and funding cycles. _projectId The ID of the project to get the controller of.\"},\"fundingCycleStore()\":{\"notice\":\"The contract storing all funding cycle configurations.\"},\"isAllowedToSetFirstController(address)\":{\"notice\":\"Addresses that can set a project's first controller on their behalf. These addresses/contracts have been vetted and verified by this contract's owner. _address The address that is either allowed or not.\"},\"isTerminalOf(uint256,address)\":{\"notice\":\"Whether or not a specified terminal is a terminal of the specified project.\"},\"operatorStore()\":{\"notice\":\" A contract storing operator assignments.\"},\"primaryTerminalOf(uint256,address)\":{\"notice\":\"The primary terminal that is managing funds for a project for a specified token.\"},\"projects()\":{\"notice\":\"Mints ERC-721's that represent project ownership and transfers.\"},\"setControllerOf(uint256,address)\":{\"notice\":\"Update the controller that manages how terminals interact with the ecosystem.\"},\"setIsAllowedToSetFirstController(address,bool)\":{\"notice\":\" Set a contract to the list of trusted addresses that can set a first controller for any project.\\t\"},\"setPrimaryTerminalOf(uint256,address,address)\":{\"notice\":\"Project's can set which terminal should be their primary for a particular token. This is useful in case a project has several terminals connected for a particular token.\"},\"setTerminalsOf(uint256,address[])\":{\"notice\":\" Set a project's terminals.\"},\"terminalsOf(uint256)\":{\"notice\":\"For each project ID, the terminals that are currently managing its funds.\"}},\"notice\":\"Keeps a reference of which terminal contracts each project is currently accepting funds through, and which controller contract is managing each project's tokens and funding cycles.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/juice-contracts-v2/contracts/JBDirectory.sol\":\"JBDirectory\"},\"evmVersion\":\"berlin\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":10000000},\"remappings\":[\":@chainlink/=lib/juice-contracts-v2/lib/chainlink/\",\":@jbx-protocol-v1/=lib/juice-contracts-v1/\",\":@jbx-protocol-v2/=lib/juice-contracts-v2/\",\":@jbx-protocol-v3/=lib/juice-contracts-v3/\",\":@juicebox/=lib/juice-contracts-v2/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@paulrberg/contracts/math/=lib/juice-contracts-v2/lib/prb-math/contracts/\",\":chainlink/=lib/juice-contracts-v2/lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":juice-contracts-v1/=lib/juice-contracts-v1/contracts/\",\":juice-contracts-v2/=lib/juice-contracts-v2/contracts/\",\":juice-contracts-v3/=lib/juice-contracts-v3/contracts/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\",\":openzeppelin-contracts/contracts/=lib/juice-contracts-v2/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/juice-contracts-v2/lib/prb-math/\"]},\"sources\":{\"lib/juice-contracts-v2/contracts/JBDirectory.sol\":{\"keccak256\":\"0x59c725d38ae024782e7eaca057d897f2371b495bced6010d1c0aa792c6da438a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://515da708b4de9e347c141489aa0907e57325ca2d364c7de38049504f2a135717\",\"dweb:/ipfs/Qma8nYQ3mrTa9tTDKe8oXtZAhtiYKsjJ9yQn8jWedRbJ28\"]},\"lib/juice-contracts-v2/contracts/abstract/JBOperatable.sol\":{\"keccak256\":\"0x9a5781d40c6b8013249653253369cda2047aa35329a1fcd4dc6353cd2dde30a6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1adb7facf833740d5cfe469d7e2172d73ee1424b518583fc6210955820c9f156\",\"dweb:/ipfs/QmbLoiFcmLnqjQJ5JPyWRrrrg3Q79Vp2mLQcEngWTrAbXn\"]},\"lib/juice-contracts-v2/contracts/enums/JBBallotState.sol\":{\"keccak256\":\"0x891fcac63470398b3a11239da7feba6b07d640809fcefd2404303b823d7378f8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e6adfceaf284b669a8c1cbcf2da7f18ab31a2d1066f9db8bc914349e7401de7\",\"dweb:/ipfs/QmXLHVRPPZdXUkgAHQbHUtEzAvCJk1P6rJ7wrwfTcfW6fw\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBDirectory.sol\":{\"keccak256\":\"0x715321646db00514d1355ed43c40cd3f01e94959552fd07797b315d9c49cdb1d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c34c9e1c727ffc63dd42fb6e6ffb3116c8ba15d6a322a300f10f29478974768d\",\"dweb:/ipfs/QmYToaGrbMyyWAuyepYcDd8M6KcmosY8AWhT3uJmPM6Pvy\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleBallot.sol\":{\"keccak256\":\"0x151c7f0cfd067492e6d43fb2388daaf1e4dc2490b096fed9ee4db87bbbc6217d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5d2916495d4485fb8df71d0223068c1a4b58807fa1793a46d0d8d2bb4f88d8f0\",\"dweb:/ipfs/QmSgfwzUYv87SMN2eZEgXPNXymT6stNkKodBEiT5BUsQsw\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleDataSource.sol\":{\"keccak256\":\"0x5fe51a930632af4f16465a55c17bedf78bcc64869ab95f7e08b51b816f2b857d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ec33a418365381483155fe70fad9cbd791723a6019b61e22204aece6452c1b3b\",\"dweb:/ipfs/Qmayreo16omq8LHvKxh4WX2RfwMXrXWviko2XD1ST2pLLa\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleStore.sol\":{\"keccak256\":\"0xaead823851433be0c2ddc8f8086813e6cd647de3a1bc0f7570a5d6b38c378b5a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7f11fd52ba9ef67b40811d8a2298ae8b69447d2565b3f1069cbb8f0f13bc65e7\",\"dweb:/ipfs/QmVbBzpTxZWar9xvj6x1vW91hJDv2iPVq7aG6waMxaHUPQ\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBOperatable.sol\":{\"keccak256\":\"0x09a55a91c6ce3625379334271d236cfa47bf36522a91568b406bf06f7239407e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c4e0058ff862925a9070f88bec5c53e8aaa5d3ac75952285b1e7ca67ecbe1d3b\",\"dweb:/ipfs/QmVowtkRjGePcpaGjivvFyWTjQBGCtJQqoXFtxX6qhkx56\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBOperatorStore.sol\":{\"keccak256\":\"0x17f4929812a356984795fafed8cb2be816a025c9a0771d85595ac0b5ff3cffc5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4379909df832d51d25ac6f863c12e5271c96f01c4fd399eaeb16be3db8786e4c\",\"dweb:/ipfs/QmTeGMNaf3KPT2A54sQ6HoZiBwfGRNqMZtvvci4oAN4z2s\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBPayDelegate.sol\":{\"keccak256\":\"0x75defc0a7e830a46dcf40d79fe8d048102fd02d2d4e1970a454e3212746f9808\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a191f17806de317ce13bceee1bc8bfe8acf3d48f8a0729081f3997cdd8958aae\",\"dweb:/ipfs/QmRf5hnSszH31W7WACv6Q8iMpDq81H89ZtGBf3p2FMhVYh\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBPaymentTerminal.sol\":{\"keccak256\":\"0xb7826f5ed609359ce322c09e83236c47ba385df1c3cad3607e56fd0a2e00eee2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cbb0de0e73f73a04fcfc8f08cab3588b6d608cf5268af737cff6a530f6062c95\",\"dweb:/ipfs/QmPGb8aEbZNHNnrCvuGH52RLvV3kjL3agxQiFrjHoLHaup\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBProjects.sol\":{\"keccak256\":\"0x7cfc021d0bd7e73b1ba8f4845d7d35e3419d6a14d3d25ca3a8010e7f91062fe4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ff265e13e60da56b93104260ed69ab01153437ec2af9d453781f22ca295eaef9\",\"dweb:/ipfs/QmfGCSLX2Wy26ojf4U12udsdtjSSacbLcZGwCjTw7MjWF8\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBRedemptionDelegate.sol\":{\"keccak256\":\"0xc9d3db9f3069a7ce71fabd775330bd3ce084210b3e03157b26791ba3a9eed766\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3a2a775406e7e1904d779065a778618afe21cad2aac918c3da7c79eafa5dbce5\",\"dweb:/ipfs/QmSA24ByUAT3tcfDkHRMNhdsr1G1CMDHBWtuGYPt2ePR31\"]},\"lib/juice-contracts-v2/contracts/interfaces/IJBTokenUriResolver.sol\":{\"keccak256\":\"0xd267fd8ca7c21c2c71794acdb9a98314c33a35fc559e0bf0897a6686d196d174\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://aa7053d4300ed1374f3f993e6e2163d0a05ee780e4e99eb007b55eabc93c724e\",\"dweb:/ipfs/QmYZAUn7VCwqpDWYZNCXLNYMRQpD334YgPRiGCfxQApzuT\"]},\"lib/juice-contracts-v2/contracts/libraries/JBConstants.sol\":{\"keccak256\":\"0x98544ffc26d20606979ede34ea69e552254e54d0e9d1ac44a3035da04aa7e179\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9c3556e0ae8b9ede7ac3d3f4d6d93d76d19a312ab5c2c42708edabb376de36e8\",\"dweb:/ipfs/Qmb1bHJM8HwcSMUQFvUwiu8tuvvoGUaVb2UNWxrkPfa6NU\"]},\"lib/juice-contracts-v2/contracts/libraries/JBGlobalFundingCycleMetadataResolver.sol\":{\"keccak256\":\"0x1c17fb92f5fe5045ab74b4d6d7ea36f13ec98ce9dd8699bdab1b7b07b847712d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://de5e36ed47e15ace426c26606d304b2d24608a3cc08bad15ca27ced38458d0eb\",\"dweb:/ipfs/QmeXtWa4GkAEXeuvBkahmt1JfcvLkVcrPhUtqd95V6kawi\"]},\"lib/juice-contracts-v2/contracts/libraries/JBOperations.sol\":{\"keccak256\":\"0x79c3bd02aba425ad90cc3af3350f150fe325477ccabff54059ff682f1d978e49\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f08f3923f689374b88915b2de168131a3091fbf16be62801702b01054999ff44\",\"dweb:/ipfs/QmWaTHGwmQSyWQvNwb5rmRmBABWfwvecXLnevxh3ijAQhU\"]},\"lib/juice-contracts-v2/contracts/structs/JBDidPayData.sol\":{\"keccak256\":\"0x4a0c3ab3a5526b9261982bfb0788cb893666ccc02058fded75575ca64798d536\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://aa3c8dff5c0a1cb0f5f0ee49b4d3495ef9aa99ea282bfbe85ca0ff2eadf515c0\",\"dweb:/ipfs/QmSU3FxcgqiJgvQUddugWpk3s45Ahu4tTzwQUP7kZsoBRx\"]},\"lib/juice-contracts-v2/contracts/structs/JBDidRedeemData.sol\":{\"keccak256\":\"0x6ed3aa03a3c983f2dadc85107625707b20334afa6ed7fb51dff0e33ed018dbcd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://98f1c65f54b4763202d25bbec7d7185318d1125ca16a405ad2e7601180e77729\",\"dweb:/ipfs/QmSNsZSsZgYMvr4FBsiU2vm6otbWFPn81CEXK58LDAka9w\"]},\"lib/juice-contracts-v2/contracts/structs/JBFundingCycle.sol\":{\"keccak256\":\"0xcdd3ac9b6fa67e62ada88d09b73bc35ade1cd77d43db712289266a788928b4c2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ba0be407022bbeb0e9272884653209ee262b8a4e00ffbba1298c3b119feccba\",\"dweb:/ipfs/QmbtLQzSN3hut4jYVsYPiYDfRkDdGkZmTWBnV2wJKrdM3K\"]},\"lib/juice-contracts-v2/contracts/structs/JBFundingCycleData.sol\":{\"keccak256\":\"0x2aa6368bf4dfc5797e8b02a978293de0c777fae2658de2c825a103587240f3b0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2d7a980ab9b67ad1569d4407b747903cab668a332214117f5ad44feb50af0a3a\",\"dweb:/ipfs/QmSuEzmrmDSihrTKYCk8miq7VQi7WD6jmQePkjDyzt7UpC\"]},\"lib/juice-contracts-v2/contracts/structs/JBFundingCycleMetadata.sol\":{\"keccak256\":\"0x2aab9b62985dc475862d34d71fef0fa9b5d4b7597452ccaa126235c8cffe9987\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc1e54b509345daf48d9c0f16124f6c844ae32f660a88548dca08c975fd81571\",\"dweb:/ipfs/QmZWtc4VZzqFo7Mw6oqd1Wy71KVK2TiEhXkRiyR8k2FDRh\"]},\"lib/juice-contracts-v2/contracts/structs/JBGlobalFundingCycleMetadata.sol\":{\"keccak256\":\"0xff35fac669c1a91919999529bbf6b4d1c355e7def9a58bf3c4a4eb61093c12b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a3557432087754dac599437bd0f45f79d78c839204b7493d7ed493a34abbf554\",\"dweb:/ipfs/QmVnFBo3thTyevFfTa7PX3cjtQf6iPWJNoDWWga63YnNth\"]},\"lib/juice-contracts-v2/contracts/structs/JBOperatorData.sol\":{\"keccak256\":\"0x3b85be7b69515976ee10770776283911666aceca820b0cf4e201ea4dbffeb6f0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1a18afb385759e5440c645f2a5c581e42a7ac357c73c376fb34dbb5d5fd8f9af\",\"dweb:/ipfs/QmZziN5ixwUXpk185YrcneBEVq91gVqYoBD7MrbvTTpALP\"]},\"lib/juice-contracts-v2/contracts/structs/JBPayParamsData.sol\":{\"keccak256\":\"0x05007b26feb5d9a026b883c6d734a341b5a49ef7b8215fb40507882e2c14e24d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://52ef2d3c61f06243aead9afcb043299f362ff9f7b259386a88c4454b429436c0\",\"dweb:/ipfs/QmVpCJ1NyBGBDgNQpmojhjPmqx2gryzopGLgawHE26mwPr\"]},\"lib/juice-contracts-v2/contracts/structs/JBProjectMetadata.sol\":{\"keccak256\":\"0x90ad7b1014c0a9f945fe7a2efde9d5de41e40574fa27969070b1d2ff52033ea0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1fafc65a9fd74605b7d6c6f0a92b3237a8e3efdd160affb8c117bad00dcf9494\",\"dweb:/ipfs/QmQkcVt11WLqrxHVrcDCF6dNxzg2kKHEghAgSbfLF6CHkt\"]},\"lib/juice-contracts-v2/contracts/structs/JBRedeemParamsData.sol\":{\"keccak256\":\"0x39f589b047aa763076ed1ed9c3b5088c9cb767ff0e9eddf09919828d508b62b9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45fd3e5c888043ef06d5c14bf22cbcea16e79f68822ff48214a5d48e7861823a\",\"dweb:/ipfs/QmYJGYXTwekUphC6K2SrZQdAbt67KZ8FapovzbvVUnZzbM\"]},\"lib/juice-contracts-v2/contracts/structs/JBTokenAmount.sol\":{\"keccak256\":\"0x4a778e779ba257ba5638c5469e07a4d21b55a3128d56db5a0fdfacb1f3301c51\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fdb8302e06c5b4e1e91d204ed735d8d5db5bb3648200c144d7c545678010a44d\",\"dweb:/ipfs/QmTpffbt3FShkk8LDjsonVGnecbbNMUL8QHYQM7AFcMa54\"]},\"lib/openzeppelin-contracts/contracts/access/Ownable.sol\":{\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://40fb1b5102468f783961d0af743f91b9980cf66b50d1d12009f6bb1869cea4d2\",\"dweb:/ipfs/QmYqEbJML4jB1GHbzD4cUZDtJg5wVwNm3vDJq1GbyDus8y\"]},\"lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56\",\"dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3\"]},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]}},\"version\":1}",
  "metadata": {
    "compiler": {
      "version": "0.8.6+commit.11564f7e"
    },
    "language": "Solidity",
    "output": {
      "abi": [
        {
          "inputs": [
            {
              "internalType": "contract IJBOperatorStore",
              "name": "_operatorStore",
              "type": "address"
            },
            {
              "internalType": "contract IJBProjects",
              "name": "_projects",
              "type": "address"
            },
            {
              "internalType": "contract IJBFundingCycleStore",
              "name": "_fundingCycleStore",
              "type": "address"
            },
            {
              "internalType": "address",
              "name": "_owner",
              "type": "address"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "constructor"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "DUPLICATE_TERMINALS"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "INVALID_PROJECT_ID_IN_DIRECTORY"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "SET_CONTROLLER_NOT_ALLOWED"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "SET_TERMINALS_NOT_ALLOWED"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "TOKEN_NOT_ACCEPTED"
        },
        {
          "inputs": [],
          "type": "error",
          "name": "UNAUTHORIZED"
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "projectId",
              "type": "uint256",
              "indexed": true
            },
            {
              "internalType": "contract IJBPaymentTerminal",
              "name": "terminal",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "caller",
              "type": "address",
              "indexed": false
            }
          ],
          "type": "event",
          "name": "AddTerminal",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "address",
              "name": "previousOwner",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "newOwner",
              "type": "address",
              "indexed": true
            }
          ],
          "type": "event",
          "name": "OwnershipTransferred",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "projectId",
              "type": "uint256",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "controller",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "caller",
              "type": "address",
              "indexed": false
            }
          ],
          "type": "event",
          "name": "SetController",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "address",
              "name": "addr",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "bool",
              "name": "flag",
              "type": "bool",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "caller",
              "type": "address",
              "indexed": false
            }
          ],
          "type": "event",
          "name": "SetIsAllowedToSetFirstController",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "projectId",
              "type": "uint256",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "token",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "contract IJBPaymentTerminal",
              "name": "terminal",
              "type": "address",
              "indexed": true
            },
            {
              "internalType": "address",
              "name": "caller",
              "type": "address",
              "indexed": false
            }
          ],
          "type": "event",
          "name": "SetPrimaryTerminal",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "projectId",
              "type": "uint256",
              "indexed": true
            },
            {
              "internalType": "contract IJBPaymentTerminal[]",
              "name": "terminals",
              "type": "address[]",
              "indexed": false
            },
            {
              "internalType": "address",
              "name": "caller",
              "type": "address",
              "indexed": false
            }
          ],
          "type": "event",
          "name": "SetTerminals",
          "anonymous": false
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "",
              "type": "uint256"
            }
          ],
          "stateMutability": "view",
          "type": "function",
          "name": "controllerOf",
          "outputs": [
            {
              "internalType": "address",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [],
          "stateMutability": "view",
          "type": "function",
          "name": "fundingCycleStore",
          "outputs": [
            {
              "internalType": "contract IJBFundingCycleStore",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [
            {
              "internalType": "address",
              "name": "",
              "type": "address"
            }
          ],
          "stateMutability": "view",
          "type": "function",
          "name": "isAllowedToSetFirstController",
          "outputs": [
            {
              "internalType": "bool",
              "name": "",
              "type": "bool"
            }
          ]
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            },
            {
              "internalType": "contract IJBPaymentTerminal",
              "name": "_terminal",
              "type": "address"
            }
          ],
          "stateMutability": "view",
          "type": "function",
          "name": "isTerminalOf",
          "outputs": [
            {
              "internalType": "bool",
              "name": "",
              "type": "bool"
            }
          ]
        },
        {
          "inputs": [],
          "stateMutability": "view",
          "type": "function",
          "name": "operatorStore",
          "outputs": [
            {
              "internalType": "contract IJBOperatorStore",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [],
          "stateMutability": "view",
          "type": "function",
          "name": "owner",
          "outputs": [
            {
              "internalType": "address",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "_token",
              "type": "address"
            }
          ],
          "stateMutability": "view",
          "type": "function",
          "name": "primaryTerminalOf",
          "outputs": [
            {
              "internalType": "contract IJBPaymentTerminal",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [],
          "stateMutability": "view",
          "type": "function",
          "name": "projects",
          "outputs": [
            {
              "internalType": "contract IJBProjects",
              "name": "",
              "type": "address"
            }
          ]
        },
        {
          "inputs": [],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "renounceOwnership"
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "_controller",
              "type": "address"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "setControllerOf"
        },
        {
          "inputs": [
            {
              "internalType": "address",
              "name": "_address",
              "type": "address"
            },
            {
              "internalType": "bool",
              "name": "_flag",
              "type": "bool"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "setIsAllowedToSetFirstController"
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "_token",
              "type": "address"
            },
            {
              "internalType": "contract IJBPaymentTerminal",
              "name": "_terminal",
              "type": "address"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "setPrimaryTerminalOf"
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            },
            {
              "internalType": "contract IJBPaymentTerminal[]",
              "name": "_terminals",
              "type": "address[]"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "setTerminalsOf"
        },
        {
          "inputs": [
            {
              "internalType": "uint256",
              "name": "_projectId",
              "type": "uint256"
            }
          ],
          "stateMutability": "view",
          "type": "function",
          "name": "terminalsOf",
          "outputs": [
            {
              "internalType": "contract IJBPaymentTerminal[]",
              "name": "",
              "type": "address[]"
            }
          ]
        },
        {
          "inputs": [
            {
              "internalType": "address",
              "name": "newOwner",
              "type": "address"
            }
          ],
          "stateMutability": "nonpayable",
          "type": "function",
          "name": "transferOwnership"
        }
      ],
      "devdoc": {
        "kind": "dev",
        "methods": {
          "constructor": {
            "params": {
              "_fundingCycleStore": "A contract storing all funding cycle configurations.",
              "_operatorStore": "A contract storing operator assignments.",
              "_owner": "The address that will own the contract.",
              "_projects": "A contract which mints ERC-721's that represent project ownership and transfers."
            }
          },
          "isTerminalOf(uint256,address)": {
            "params": {
              "_projectId": "The ID of the project to check within.",
              "_terminal": "The address of the terminal to check for."
            },
            "returns": {
              "_0": "A flag indicating whether or not the specified terminal is a terminal of the specified project."
            }
          },
          "owner()": {
            "details": "Returns the address of the current owner."
          },
          "primaryTerminalOf(uint256,address)": {
            "details": "The zero address is returned if a terminal isn't found for the specified token.",
            "params": {
              "_projectId": "The ID of the project to get a terminal for.",
              "_token": "The token the terminal accepts."
            },
            "returns": {
              "_0": "The primary terminal for the project for the specified token."
            }
          },
          "renounceOwnership()": {
            "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
          },
          "setControllerOf(uint256,address)": {
            "details": "A controller can be set if: - the message sender is the project owner or an operator having the correct authorization. - the message sender is the project's current controller. - or, an allowedlisted address is setting a controller for a project that doesn't already have a controller.",
            "params": {
              "_controller": "The new controller to set.",
              "_projectId": "The ID of the project to set a new controller for."
            }
          },
          "setIsAllowedToSetFirstController(address,bool)": {
            "details": "The owner can add addresses which are allowed to change projects' first controllers.  These addresses are known and vetted controllers as well as contracts designed to launch new projects.  A project can set its own controller without it being on the allow list.If you would like an address/contract allowlisted, please reach out to the contract owner.",
            "params": {
              "_address": "The address to allow or revoke allowance from.",
              "_flag": "Whether allowance is being added or revoked."
            }
          },
          "setPrimaryTerminalOf(uint256,address,address)": {
            "details": "The terminal will be set as the primary terminal where ecosystem contracts should route tokens.If setting a newly added terminal and the funding cycle doesn't allow new terminals, the caller must be the current controller.",
            "params": {
              "_projectId": "The ID of the project for which a primary token is being set.",
              "_terminal": "The terminal to make primary.",
              "_token": "The token to set the primary terminal of."
            }
          },
          "setTerminalsOf(uint256,address[])": {
            "details": "Only a project owner, an operator, or its controller can set its terminals.",
            "params": {
              "_projectId": "The ID of the project having terminals set.",
              "_terminals": "The terminal to set."
            }
          },
          "terminalsOf(uint256)": {
            "params": {
              "_projectId": "The ID of the project to get terminals of."
            },
            "returns": {
              "_0": "An array of terminal addresses."
            }
          },
          "transferOwnership(address)": {
            "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
          }
        },
        "version": 1
      },
      "userdoc": {
        "kind": "user",
        "methods": {
          "controllerOf(uint256)": {
            "notice": " For each project ID, the controller that manages how terminals interact with tokens and funding cycles. _projectId The ID of the project to get the controller of."
          },
          "fundingCycleStore()": {
            "notice": "The contract storing all funding cycle configurations."
          },
          "isAllowedToSetFirstController(address)": {
            "notice": "Addresses that can set a project's first controller on their behalf. These addresses/contracts have been vetted and verified by this contract's owner. _address The address that is either allowed or not."
          },
          "isTerminalOf(uint256,address)": {
            "notice": "Whether or not a specified terminal is a terminal of the specified project."
          },
          "operatorStore()": {
            "notice": " A contract storing operator assignments."
          },
          "primaryTerminalOf(uint256,address)": {
            "notice": "The primary terminal that is managing funds for a project for a specified token."
          },
          "projects()": {
            "notice": "Mints ERC-721's that represent project ownership and transfers."
          },
          "setControllerOf(uint256,address)": {
            "notice": "Update the controller that manages how terminals interact with the ecosystem."
          },
          "setIsAllowedToSetFirstController(address,bool)": {
            "notice": " Set a contract to the list of trusted addresses that can set a first controller for any project.\t"
          },
          "setPrimaryTerminalOf(uint256,address,address)": {
            "notice": "Project's can set which terminal should be their primary for a particular token. This is useful in case a project has several terminals connected for a particular token."
          },
          "setTerminalsOf(uint256,address[])": {
            "notice": " Set a project's terminals."
          },
          "terminalsOf(uint256)": {
            "notice": "For each project ID, the terminals that are currently managing its funds."
          }
        },
        "version": 1
      }
    },
    "settings": {
      "remappings": [
        ":@chainlink/=lib/juice-contracts-v2/lib/chainlink/",
        ":@jbx-protocol-v1/=lib/juice-contracts-v1/",
        ":@jbx-protocol-v2/=lib/juice-contracts-v2/",
        ":@jbx-protocol-v3/=lib/juice-contracts-v3/",
        ":@juicebox/=lib/juice-contracts-v2/contracts/",
        ":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
        ":@paulrberg/contracts/math/=lib/juice-contracts-v2/lib/prb-math/contracts/",
        ":chainlink/=lib/juice-contracts-v2/lib/chainlink/",
        ":ds-test/=lib/forge-std/lib/ds-test/src/",
        ":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
        ":forge-std/=lib/forge-std/src/",
        ":juice-contracts-v1/=lib/juice-contracts-v1/contracts/",
        ":juice-contracts-v2/=lib/juice-contracts-v2/contracts/",
        ":juice-contracts-v3/=lib/juice-contracts-v3/contracts/",
        ":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
        ":openzeppelin-contracts/contracts/=lib/juice-contracts-v2/lib/openzeppelin-contracts/contracts/",
        ":prb-math/=lib/juice-contracts-v2/lib/prb-math/"
      ],
      "optimizer": {
        "enabled": true,
        "runs": 10000000
      },
      "metadata": {
        "bytecodeHash": "ipfs"
      },
      "compilationTarget": {
        "lib/juice-contracts-v2/contracts/JBDirectory.sol": "JBDirectory"
      },
      "libraries": {}
    },
    "sources": {
      "lib/juice-contracts-v2/contracts/JBDirectory.sol": {
        "keccak256": "0x59c725d38ae024782e7eaca057d897f2371b495bced6010d1c0aa792c6da438a",
        "urls": [
          "bzz-raw://515da708b4de9e347c141489aa0907e57325ca2d364c7de38049504f2a135717",
          "dweb:/ipfs/Qma8nYQ3mrTa9tTDKe8oXtZAhtiYKsjJ9yQn8jWedRbJ28"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/abstract/JBOperatable.sol": {
        "keccak256": "0x9a5781d40c6b8013249653253369cda2047aa35329a1fcd4dc6353cd2dde30a6",
        "urls": [
          "bzz-raw://1adb7facf833740d5cfe469d7e2172d73ee1424b518583fc6210955820c9f156",
          "dweb:/ipfs/QmbLoiFcmLnqjQJ5JPyWRrrrg3Q79Vp2mLQcEngWTrAbXn"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/enums/JBBallotState.sol": {
        "keccak256": "0x891fcac63470398b3a11239da7feba6b07d640809fcefd2404303b823d7378f8",
        "urls": [
          "bzz-raw://6e6adfceaf284b669a8c1cbcf2da7f18ab31a2d1066f9db8bc914349e7401de7",
          "dweb:/ipfs/QmXLHVRPPZdXUkgAHQbHUtEzAvCJk1P6rJ7wrwfTcfW6fw"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBDirectory.sol": {
        "keccak256": "0x715321646db00514d1355ed43c40cd3f01e94959552fd07797b315d9c49cdb1d",
        "urls": [
          "bzz-raw://c34c9e1c727ffc63dd42fb6e6ffb3116c8ba15d6a322a300f10f29478974768d",
          "dweb:/ipfs/QmYToaGrbMyyWAuyepYcDd8M6KcmosY8AWhT3uJmPM6Pvy"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleBallot.sol": {
        "keccak256": "0x151c7f0cfd067492e6d43fb2388daaf1e4dc2490b096fed9ee4db87bbbc6217d",
        "urls": [
          "bzz-raw://5d2916495d4485fb8df71d0223068c1a4b58807fa1793a46d0d8d2bb4f88d8f0",
          "dweb:/ipfs/QmSgfwzUYv87SMN2eZEgXPNXymT6stNkKodBEiT5BUsQsw"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleDataSource.sol": {
        "keccak256": "0x5fe51a930632af4f16465a55c17bedf78bcc64869ab95f7e08b51b816f2b857d",
        "urls": [
          "bzz-raw://ec33a418365381483155fe70fad9cbd791723a6019b61e22204aece6452c1b3b",
          "dweb:/ipfs/Qmayreo16omq8LHvKxh4WX2RfwMXrXWviko2XD1ST2pLLa"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBFundingCycleStore.sol": {
        "keccak256": "0xaead823851433be0c2ddc8f8086813e6cd647de3a1bc0f7570a5d6b38c378b5a",
        "urls": [
          "bzz-raw://7f11fd52ba9ef67b40811d8a2298ae8b69447d2565b3f1069cbb8f0f13bc65e7",
          "dweb:/ipfs/QmVbBzpTxZWar9xvj6x1vW91hJDv2iPVq7aG6waMxaHUPQ"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBOperatable.sol": {
        "keccak256": "0x09a55a91c6ce3625379334271d236cfa47bf36522a91568b406bf06f7239407e",
        "urls": [
          "bzz-raw://c4e0058ff862925a9070f88bec5c53e8aaa5d3ac75952285b1e7ca67ecbe1d3b",
          "dweb:/ipfs/QmVowtkRjGePcpaGjivvFyWTjQBGCtJQqoXFtxX6qhkx56"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBOperatorStore.sol": {
        "keccak256": "0x17f4929812a356984795fafed8cb2be816a025c9a0771d85595ac0b5ff3cffc5",
        "urls": [
          "bzz-raw://4379909df832d51d25ac6f863c12e5271c96f01c4fd399eaeb16be3db8786e4c",
          "dweb:/ipfs/QmTeGMNaf3KPT2A54sQ6HoZiBwfGRNqMZtvvci4oAN4z2s"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBPayDelegate.sol": {
        "keccak256": "0x75defc0a7e830a46dcf40d79fe8d048102fd02d2d4e1970a454e3212746f9808",
        "urls": [
          "bzz-raw://a191f17806de317ce13bceee1bc8bfe8acf3d48f8a0729081f3997cdd8958aae",
          "dweb:/ipfs/QmRf5hnSszH31W7WACv6Q8iMpDq81H89ZtGBf3p2FMhVYh"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBPaymentTerminal.sol": {
        "keccak256": "0xb7826f5ed609359ce322c09e83236c47ba385df1c3cad3607e56fd0a2e00eee2",
        "urls": [
          "bzz-raw://cbb0de0e73f73a04fcfc8f08cab3588b6d608cf5268af737cff6a530f6062c95",
          "dweb:/ipfs/QmPGb8aEbZNHNnrCvuGH52RLvV3kjL3agxQiFrjHoLHaup"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBProjects.sol": {
        "keccak256": "0x7cfc021d0bd7e73b1ba8f4845d7d35e3419d6a14d3d25ca3a8010e7f91062fe4",
        "urls": [
          "bzz-raw://ff265e13e60da56b93104260ed69ab01153437ec2af9d453781f22ca295eaef9",
          "dweb:/ipfs/QmfGCSLX2Wy26ojf4U12udsdtjSSacbLcZGwCjTw7MjWF8"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBRedemptionDelegate.sol": {
        "keccak256": "0xc9d3db9f3069a7ce71fabd775330bd3ce084210b3e03157b26791ba3a9eed766",
        "urls": [
          "bzz-raw://3a2a775406e7e1904d779065a778618afe21cad2aac918c3da7c79eafa5dbce5",
          "dweb:/ipfs/QmSA24ByUAT3tcfDkHRMNhdsr1G1CMDHBWtuGYPt2ePR31"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/interfaces/IJBTokenUriResolver.sol": {
        "keccak256": "0xd267fd8ca7c21c2c71794acdb9a98314c33a35fc559e0bf0897a6686d196d174",
        "urls": [
          "bzz-raw://aa7053d4300ed1374f3f993e6e2163d0a05ee780e4e99eb007b55eabc93c724e",
          "dweb:/ipfs/QmYZAUn7VCwqpDWYZNCXLNYMRQpD334YgPRiGCfxQApzuT"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/libraries/JBConstants.sol": {
        "keccak256": "0x98544ffc26d20606979ede34ea69e552254e54d0e9d1ac44a3035da04aa7e179",
        "urls": [
          "bzz-raw://9c3556e0ae8b9ede7ac3d3f4d6d93d76d19a312ab5c2c42708edabb376de36e8",
          "dweb:/ipfs/Qmb1bHJM8HwcSMUQFvUwiu8tuvvoGUaVb2UNWxrkPfa6NU"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/libraries/JBGlobalFundingCycleMetadataResolver.sol": {
        "keccak256": "0x1c17fb92f5fe5045ab74b4d6d7ea36f13ec98ce9dd8699bdab1b7b07b847712d",
        "urls": [
          "bzz-raw://de5e36ed47e15ace426c26606d304b2d24608a3cc08bad15ca27ced38458d0eb",
          "dweb:/ipfs/QmeXtWa4GkAEXeuvBkahmt1JfcvLkVcrPhUtqd95V6kawi"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/libraries/JBOperations.sol": {
        "keccak256": "0x79c3bd02aba425ad90cc3af3350f150fe325477ccabff54059ff682f1d978e49",
        "urls": [
          "bzz-raw://f08f3923f689374b88915b2de168131a3091fbf16be62801702b01054999ff44",
          "dweb:/ipfs/QmWaTHGwmQSyWQvNwb5rmRmBABWfwvecXLnevxh3ijAQhU"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBDidPayData.sol": {
        "keccak256": "0x4a0c3ab3a5526b9261982bfb0788cb893666ccc02058fded75575ca64798d536",
        "urls": [
          "bzz-raw://aa3c8dff5c0a1cb0f5f0ee49b4d3495ef9aa99ea282bfbe85ca0ff2eadf515c0",
          "dweb:/ipfs/QmSU3FxcgqiJgvQUddugWpk3s45Ahu4tTzwQUP7kZsoBRx"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBDidRedeemData.sol": {
        "keccak256": "0x6ed3aa03a3c983f2dadc85107625707b20334afa6ed7fb51dff0e33ed018dbcd",
        "urls": [
          "bzz-raw://98f1c65f54b4763202d25bbec7d7185318d1125ca16a405ad2e7601180e77729",
          "dweb:/ipfs/QmSNsZSsZgYMvr4FBsiU2vm6otbWFPn81CEXK58LDAka9w"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBFundingCycle.sol": {
        "keccak256": "0xcdd3ac9b6fa67e62ada88d09b73bc35ade1cd77d43db712289266a788928b4c2",
        "urls": [
          "bzz-raw://8ba0be407022bbeb0e9272884653209ee262b8a4e00ffbba1298c3b119feccba",
          "dweb:/ipfs/QmbtLQzSN3hut4jYVsYPiYDfRkDdGkZmTWBnV2wJKrdM3K"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBFundingCycleData.sol": {
        "keccak256": "0x2aa6368bf4dfc5797e8b02a978293de0c777fae2658de2c825a103587240f3b0",
        "urls": [
          "bzz-raw://2d7a980ab9b67ad1569d4407b747903cab668a332214117f5ad44feb50af0a3a",
          "dweb:/ipfs/QmSuEzmrmDSihrTKYCk8miq7VQi7WD6jmQePkjDyzt7UpC"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBFundingCycleMetadata.sol": {
        "keccak256": "0x2aab9b62985dc475862d34d71fef0fa9b5d4b7597452ccaa126235c8cffe9987",
        "urls": [
          "bzz-raw://bc1e54b509345daf48d9c0f16124f6c844ae32f660a88548dca08c975fd81571",
          "dweb:/ipfs/QmZWtc4VZzqFo7Mw6oqd1Wy71KVK2TiEhXkRiyR8k2FDRh"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBGlobalFundingCycleMetadata.sol": {
        "keccak256": "0xff35fac669c1a91919999529bbf6b4d1c355e7def9a58bf3c4a4eb61093c12b2",
        "urls": [
          "bzz-raw://a3557432087754dac599437bd0f45f79d78c839204b7493d7ed493a34abbf554",
          "dweb:/ipfs/QmVnFBo3thTyevFfTa7PX3cjtQf6iPWJNoDWWga63YnNth"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBOperatorData.sol": {
        "keccak256": "0x3b85be7b69515976ee10770776283911666aceca820b0cf4e201ea4dbffeb6f0",
        "urls": [
          "bzz-raw://1a18afb385759e5440c645f2a5c581e42a7ac357c73c376fb34dbb5d5fd8f9af",
          "dweb:/ipfs/QmZziN5ixwUXpk185YrcneBEVq91gVqYoBD7MrbvTTpALP"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBPayParamsData.sol": {
        "keccak256": "0x05007b26feb5d9a026b883c6d734a341b5a49ef7b8215fb40507882e2c14e24d",
        "urls": [
          "bzz-raw://52ef2d3c61f06243aead9afcb043299f362ff9f7b259386a88c4454b429436c0",
          "dweb:/ipfs/QmVpCJ1NyBGBDgNQpmojhjPmqx2gryzopGLgawHE26mwPr"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBProjectMetadata.sol": {
        "keccak256": "0x90ad7b1014c0a9f945fe7a2efde9d5de41e40574fa27969070b1d2ff52033ea0",
        "urls": [
          "bzz-raw://1fafc65a9fd74605b7d6c6f0a92b3237a8e3efdd160affb8c117bad00dcf9494",
          "dweb:/ipfs/QmQkcVt11WLqrxHVrcDCF6dNxzg2kKHEghAgSbfLF6CHkt"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBRedeemParamsData.sol": {
        "keccak256": "0x39f589b047aa763076ed1ed9c3b5088c9cb767ff0e9eddf09919828d508b62b9",
        "urls": [
          "bzz-raw://45fd3e5c888043ef06d5c14bf22cbcea16e79f68822ff48214a5d48e7861823a",
          "dweb:/ipfs/QmYJGYXTwekUphC6K2SrZQdAbt67KZ8FapovzbvVUnZzbM"
        ],
        "license": "MIT"
      },
      "lib/juice-contracts-v2/contracts/structs/JBTokenAmount.sol": {
        "keccak256": "0x4a778e779ba257ba5638c5469e07a4d21b55a3128d56db5a0fdfacb1f3301c51",
        "urls": [
          "bzz-raw://fdb8302e06c5b4e1e91d204ed735d8d5db5bb3648200c144d7c545678010a44d",
          "dweb:/ipfs/QmTpffbt3FShkk8LDjsonVGnecbbNMUL8QHYQM7AFcMa54"
        ],
        "license": "MIT"
      },
      "lib/openzeppelin-contracts/contracts/access/Ownable.sol": {
        "keccak256": "0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673",
        "urls": [
          "bzz-raw://40fb1b5102468f783961d0af743f91b9980cf66b50d1d12009f6bb1869cea4d2",
          "dweb:/ipfs/QmYqEbJML4jB1GHbzD4cUZDtJg5wVwNm3vDJq1GbyDus8y"
        ],
        "license": "MIT"
      },
      "lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol": {
        "keccak256": "0xab28a56179c1db258c9bf5235b382698cb650debecb51b23d12be9e241374b68",
        "urls": [
          "bzz-raw://daae589a9d6fa7e55f99f86c0a16796ca490f243fb3693632c3711c0646c1d56",
          "dweb:/ipfs/QmR3zpd7wNw3rcUdekwiv6FYHJqksuTCXLVioTxu6Fbxk3"
        ],
        "license": "MIT"
      },
      "lib/openzeppelin-contracts/contracts/utils/Context.sol": {
        "keccak256": "0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7",
        "urls": [
          "bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92",
          "dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3"
        ],
        "license": "MIT"
      },
      "lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol": {
        "keccak256": "0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1",
        "urls": [
          "bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f",
          "dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy"
        ],
        "license": "MIT"
      }
    },
    "version": 1
  },
  "ast": {
    "absolutePath": "lib/juice-contracts-v2/contracts/JBDirectory.sol",
    "id": 14547,
    "exportedSymbols": {
      "Context": [
        38890
      ],
      "IERC165": [
        38868
      ],
      "IERC721": [
        37612
      ],
      "IJBDirectory": [
        31924
      ],
      "IJBFundingCycleBallot": [
        40432
      ],
      "IJBFundingCycleDataSource": [
        38673
      ],
      "IJBFundingCycleStore": [
        38633
      ],
      "IJBOperatable": [
        22636
      ],
      "IJBOperatorStore": [
        22704
      ],
      "IJBPayDelegate": [
        38522
      ],
      "IJBPaymentTerminal": [
        31994
      ],
      "IJBProjects": [
        38202
      ],
      "IJBRedemptionDelegate": [
        38537
      ],
      "IJBTokenUriResolver": [
        62435
      ],
      "JBBallotState": [
        62441
      ],
      "JBConstants": [
        35765
      ],
      "JBDidPayData": [
        35788
      ],
      "JBDidRedeemData": [
        35809
      ],
      "JBDirectory": [
        14546
      ],
      "JBFundingCycle": [
        35849
      ],
      "JBFundingCycleData": [
        35862
      ],
      "JBFundingCycleMetadata": [
        35902
      ],
      "JBGlobalFundingCycleMetadata": [
        38681
      ],
      "JBGlobalFundingCycleMetadataResolver": [
        24080
      ],
      "JBOperatable": [
        20151
      ],
      "JBOperations": [
        24137
      ],
      "JBOperatorData": [
        24167
      ],
      "JBPayParamsData": [
        35939
      ],
      "JBProjectMetadata": [
        35946
      ],
      "JBRedeemParamsData": [
        35979
      ],
      "JBTokenAmount": [
        38507
      ],
      "Ownable": [
        36382
      ]
    },
    "nodeType": "SourceUnit",
    "src": "32:13986:60",
    "nodes": [
      {
        "id": 13956,
        "nodeType": "PragmaDirective",
        "src": "32:22:60",
        "nodes": [],
        "literals": [
          "solidity",
          "0.8",
          ".6"
        ]
      },
      {
        "id": 13957,
        "nodeType": "ImportDirective",
        "src": "56:52:60",
        "nodes": [],
        "absolutePath": "lib/openzeppelin-contracts/contracts/access/Ownable.sol",
        "file": "@openzeppelin/contracts/access/Ownable.sol",
        "nameLocation": "-1:-1:-1",
        "scope": 14547,
        "sourceUnit": 36383,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 13958,
        "nodeType": "ImportDirective",
        "src": "109:37:60",
        "nodes": [],
        "absolutePath": "lib/juice-contracts-v2/contracts/abstract/JBOperatable.sol",
        "file": "./abstract/JBOperatable.sol",
        "nameLocation": "-1:-1:-1",
        "scope": 14547,
        "sourceUnit": 20152,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 13959,
        "nodeType": "ImportDirective",
        "src": "147:39:60",
        "nodes": [],
        "absolutePath": "lib/juice-contracts-v2/contracts/interfaces/IJBDirectory.sol",
        "file": "./interfaces/IJBDirectory.sol",
        "nameLocation": "-1:-1:-1",
        "scope": 14547,
        "sourceUnit": 31925,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 13960,
        "nodeType": "ImportDirective",
        "src": "187:62:60",
        "nodes": [],
        "absolutePath": "lib/juice-contracts-v2/contracts/libraries/JBGlobalFundingCycleMetadataResolver.sol",
        "file": "./libraries/JBGlobalFundingCycleMetadataResolver.sol",
        "nameLocation": "-1:-1:-1",
        "scope": 14547,
        "sourceUnit": 24081,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 13961,
        "nodeType": "ImportDirective",
        "src": "250:38:60",
        "nodes": [],
        "absolutePath": "lib/juice-contracts-v2/contracts/libraries/JBOperations.sol",
        "file": "./libraries/JBOperations.sol",
        "nameLocation": "-1:-1:-1",
        "scope": 14547,
        "sourceUnit": 24138,
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "id": 14546,
        "nodeType": "ContractDefinition",
        "src": "946:13071:60",
        "nodes": [
          {
            "id": 13971,
            "nodeType": "UsingForDirective",
            "src": "1097:53:60",
            "nodes": [],
            "libraryName": {
              "id": 13969,
              "name": "JBGlobalFundingCycleMetadataResolver",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 24080,
              "src": "1103:36:60"
            },
            "typeName": {
              "id": 13970,
              "name": "uint8",
              "nodeType": "ElementaryTypeName",
              "src": "1144:5:60",
              "typeDescriptions": {
                "typeIdentifier": "t_uint8",
                "typeString": "uint8"
              }
            }
          },
          {
            "id": 13973,
            "nodeType": "ErrorDefinition",
            "src": "1382:28:60",
            "nodes": [],
            "name": "DUPLICATE_TERMINALS",
            "nameLocation": "1388:19:60",
            "parameters": {
              "id": 13972,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1407:2:60"
            }
          },
          {
            "id": 13975,
            "nodeType": "ErrorDefinition",
            "src": "1413:40:60",
            "nodes": [],
            "name": "INVALID_PROJECT_ID_IN_DIRECTORY",
            "nameLocation": "1419:31:60",
            "parameters": {
              "id": 13974,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1450:2:60"
            }
          },
          {
            "id": 13977,
            "nodeType": "ErrorDefinition",
            "src": "1456:35:60",
            "nodes": [],
            "name": "SET_CONTROLLER_NOT_ALLOWED",
            "nameLocation": "1462:26:60",
            "parameters": {
              "id": 13976,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1488:2:60"
            }
          },
          {
            "id": 13979,
            "nodeType": "ErrorDefinition",
            "src": "1494:34:60",
            "nodes": [],
            "name": "SET_TERMINALS_NOT_ALLOWED",
            "nameLocation": "1500:25:60",
            "parameters": {
              "id": 13978,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1525:2:60"
            }
          },
          {
            "id": 13981,
            "nodeType": "ErrorDefinition",
            "src": "1531:27:60",
            "nodes": [],
            "name": "TOKEN_NOT_ACCEPTED",
            "nameLocation": "1537:18:60",
            "parameters": {
              "id": 13980,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1555:2:60"
            }
          },
          {
            "id": 13988,
            "nodeType": "VariableDeclaration",
            "src": "1951:61:60",
            "nodes": [],
            "constant": false,
            "documentation": {
              "id": 13982,
              "nodeType": "StructuredDocumentation",
              "src": "1791:157:60",
              "text": "@notice\nFor each project ID, the terminals that are currently managing its funds.\n_projectId The ID of the project to get terminals of."
            },
            "mutability": "mutable",
            "name": "_terminalsOf",
            "nameLocation": "2000:12:60",
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
              "typeString": "mapping(uint256 => contract IJBPaymentTerminal[])"
            },
            "typeName": {
              "id": 13987,
              "keyType": {
                "id": 13983,
                "name": "uint256",
                "nodeType": "ElementaryTypeName",
                "src": "1959:7:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                }
              },
              "nodeType": "Mapping",
              "src": "1951:40:60",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                "typeString": "mapping(uint256 => contract IJBPaymentTerminal[])"
              },
              "valueType": {
                "baseType": {
                  "id": 13985,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 13984,
                    "name": "IJBPaymentTerminal",
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 31994,
                    "src": "1970:18:60"
                  },
                  "referencedDeclaration": 31994,
                  "src": "1970:18:60",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  }
                },
                "id": 13986,
                "nodeType": "ArrayTypeName",
                "src": "1970:20:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_ptr",
                  "typeString": "contract IJBPaymentTerminal[]"
                }
              }
            },
            "visibility": "private"
          },
          {
            "id": 13996,
            "nodeType": "VariableDeclaration",
            "src": "2221:85:60",
            "nodes": [],
            "constant": false,
            "documentation": {
              "id": 13989,
              "nodeType": "StructuredDocumentation",
              "src": "2017:201:60",
              "text": "@notice\nThe project's primary terminal for a token.\n_projectId The ID of the project to get the primary terminal of.\n_token The token to get the project's primary terminal of."
            },
            "mutability": "mutable",
            "name": "_primaryTerminalOf",
            "nameLocation": "2288:18:60",
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
              "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
            },
            "typeName": {
              "id": 13995,
              "keyType": {
                "id": 13990,
                "name": "uint256",
                "nodeType": "ElementaryTypeName",
                "src": "2229:7:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                }
              },
              "nodeType": "Mapping",
              "src": "2221:58:60",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
                "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
              },
              "valueType": {
                "id": 13994,
                "keyType": {
                  "id": 13991,
                  "name": "address",
                  "nodeType": "ElementaryTypeName",
                  "src": "2248:7:60",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  }
                },
                "nodeType": "Mapping",
                "src": "2240:38:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$",
                  "typeString": "mapping(address => contract IJBPaymentTerminal)"
                },
                "valueType": {
                  "id": 13993,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 13992,
                    "name": "IJBPaymentTerminal",
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 31994,
                    "src": "2259:18:60"
                  },
                  "referencedDeclaration": 31994,
                  "src": "2259:18:60",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  }
                }
              }
            },
            "visibility": "private"
          },
          {
            "id": 14001,
            "nodeType": "VariableDeclaration",
            "src": "2631:46:60",
            "nodes": [],
            "baseFunctions": [
              31841
            ],
            "constant": false,
            "documentation": {
              "id": 13997,
              "nodeType": "StructuredDocumentation",
              "src": "2540:88:60",
              "text": "@notice\nMints ERC-721's that represent project ownership and transfers."
            },
            "functionSelector": "8b79543c",
            "mutability": "immutable",
            "name": "projects",
            "nameLocation": "2669:8:60",
            "overrides": {
              "id": 14000,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2660:8:60"
            },
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IJBProjects_$38202",
              "typeString": "contract IJBProjects"
            },
            "typeName": {
              "id": 13999,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 13998,
                "name": "IJBProjects",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 38202,
                "src": "2631:11:60"
              },
              "referencedDeclaration": 38202,
              "src": "2631:11:60",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IJBProjects_$38202",
                "typeString": "contract IJBProjects"
              }
            },
            "visibility": "public"
          },
          {
            "id": 14006,
            "nodeType": "VariableDeclaration",
            "src": "2764:64:60",
            "nodes": [],
            "baseFunctions": [
              31847
            ],
            "constant": false,
            "documentation": {
              "id": 14002,
              "nodeType": "StructuredDocumentation",
              "src": "2682:79:60",
              "text": "@notice\nThe contract storing all funding cycle configurations."
            },
            "functionSelector": "557e7155",
            "mutability": "immutable",
            "name": "fundingCycleStore",
            "nameLocation": "2811:17:60",
            "overrides": {
              "id": 14005,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2802:8:60"
            },
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
              "typeString": "contract IJBFundingCycleStore"
            },
            "typeName": {
              "id": 14004,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 14003,
                "name": "IJBFundingCycleStore",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 38633,
                "src": "2764:20:60"
              },
              "referencedDeclaration": 38633,
              "src": "2764:20:60",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                "typeString": "contract IJBFundingCycleStore"
              }
            },
            "visibility": "public"
          },
          {
            "id": 14012,
            "nodeType": "VariableDeclaration",
            "src": "3259:56:60",
            "nodes": [],
            "baseFunctions": [
              31854
            ],
            "constant": false,
            "documentation": {
              "id": 14007,
              "nodeType": "StructuredDocumentation",
              "src": "3062:194:60",
              "text": "@notice \nFor each project ID, the controller that manages how terminals interact with tokens and funding cycles.\n_projectId The ID of the project to get the controller of."
            },
            "functionSelector": "5dd8f6aa",
            "mutability": "mutable",
            "name": "controllerOf",
            "nameLocation": "3303:12:60",
            "overrides": {
              "id": 14011,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "3294:8:60"
            },
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
              "typeString": "mapping(uint256 => address)"
            },
            "typeName": {
              "id": 14010,
              "keyType": {
                "id": 14008,
                "name": "uint256",
                "nodeType": "ElementaryTypeName",
                "src": "3267:7:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                }
              },
              "nodeType": "Mapping",
              "src": "3259:27:60",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                "typeString": "mapping(uint256 => address)"
              },
              "valueType": {
                "id": 14009,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "3278:7:60",
                "stateMutability": "nonpayable",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              }
            },
            "visibility": "public"
          },
          {
            "id": 14018,
            "nodeType": "VariableDeclaration",
            "src": "3555:70:60",
            "nodes": [],
            "baseFunctions": [
              31861
            ],
            "constant": false,
            "documentation": {
              "id": 14013,
              "nodeType": "StructuredDocumentation",
              "src": "3320:232:60",
              "text": "@notice\nAddresses that can set a project's first controller on their behalf. These addresses/contracts have been vetted and verified by this contract's owner.\n_address The address that is either allowed or not."
            },
            "functionSelector": "c5664e21",
            "mutability": "mutable",
            "name": "isAllowedToSetFirstController",
            "nameLocation": "3596:29:60",
            "overrides": {
              "id": 14017,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "3587:8:60"
            },
            "scope": 14546,
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
              "typeString": "mapping(address => bool)"
            },
            "typeName": {
              "id": 14016,
              "keyType": {
                "id": 14014,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "3563:7:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "3555:24:60",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                "typeString": "mapping(address => bool)"
              },
              "valueType": {
                "id": 14015,
                "name": "bool",
                "nodeType": "ElementaryTypeName",
                "src": "3574:4:60",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                }
              }
            },
            "visibility": "public"
          },
          {
            "id": 14034,
            "nodeType": "FunctionDefinition",
            "src": "4071:162:60",
            "nodes": [],
            "body": {
              "id": 14033,
              "nodeType": "Block",
              "src": "4191:42:60",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "baseExpression": {
                      "id": 14029,
                      "name": "_terminalsOf",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 13988,
                      "src": "4204:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                        "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                      }
                    },
                    "id": 14031,
                    "indexExpression": {
                      "id": 14030,
                      "name": "_projectId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14021,
                      "src": "4217:10:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "IndexAccess",
                    "src": "4204:24:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                      "typeString": "contract IJBPaymentTerminal[] storage ref"
                    }
                  },
                  "functionReturnParameters": 14028,
                  "id": 14032,
                  "nodeType": "Return",
                  "src": "4197:31:60"
                }
              ]
            },
            "baseFunctions": [
              31870
            ],
            "documentation": {
              "id": 14019,
              "nodeType": "StructuredDocumentation",
              "src": "3859:209:60",
              "text": "@notice\nFor each project ID, the terminals that are currently managing its funds.\n@param _projectId The ID of the project to get terminals of.\n@return An array of terminal addresses."
            },
            "functionSelector": "d1754153",
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "terminalsOf",
            "nameLocation": "4080:11:60",
            "overrides": {
              "id": 14023,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "4138:8:60"
            },
            "parameters": {
              "id": 14022,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14021,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "4100:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14034,
                  "src": "4092:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14020,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4092:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4091:20:60"
            },
            "returnParameters": {
              "id": 14028,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14027,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 14034,
                  "src": "4160:27:60",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_memory_ptr",
                    "typeString": "contract IJBPaymentTerminal[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 14025,
                      "nodeType": "UserDefinedTypeName",
                      "pathNode": {
                        "id": 14024,
                        "name": "IJBPaymentTerminal",
                        "nodeType": "IdentifierPath",
                        "referencedDeclaration": 31994,
                        "src": "4160:18:60"
                      },
                      "referencedDeclaration": 31994,
                      "src": "4160:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      }
                    },
                    "id": 14026,
                    "nodeType": "ArrayTypeName",
                    "src": "4160:20:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_ptr",
                      "typeString": "contract IJBPaymentTerminal[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4159:29:60"
            },
            "scope": 14546,
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14113,
            "nodeType": "FunctionDefinition",
            "src": "4632:811:60",
            "nodes": [],
            "body": {
              "id": 14112,
              "nodeType": "Block",
              "src": "4765:678:60",
              "nodes": [],
              "statements": [
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 14066,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      },
                      "id": 14057,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "baseExpression": {
                          "baseExpression": {
                            "id": 14046,
                            "name": "_primaryTerminalOf",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 13996,
                            "src": "4897:18:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
                              "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
                            }
                          },
                          "id": 14048,
                          "indexExpression": {
                            "id": 14047,
                            "name": "_projectId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14037,
                            "src": "4916:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "4897:30:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$",
                            "typeString": "mapping(address => contract IJBPaymentTerminal)"
                          }
                        },
                        "id": 14050,
                        "indexExpression": {
                          "id": 14049,
                          "name": "_token",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14039,
                          "src": "4928:6:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "4897:38:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "arguments": [
                          {
                            "arguments": [
                              {
                                "hexValue": "30",
                                "id": 14054,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": true,
                                "kind": "number",
                                "lValueRequested": false,
                                "nodeType": "Literal",
                                "src": "4966:1:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                },
                                "value": "0"
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_0_by_1",
                                  "typeString": "int_const 0"
                                }
                              ],
                              "id": 14053,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "4958:7:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": {
                                "id": 14052,
                                "name": "address",
                                "nodeType": "ElementaryTypeName",
                                "src": "4958:7:60",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 14055,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "4958:10:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 14051,
                          "name": "IJBPaymentTerminal",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 31994,
                          "src": "4939:18:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_contract$_IJBPaymentTerminal_$31994_$",
                            "typeString": "type(contract IJBPaymentTerminal)"
                          }
                        },
                        "id": 14056,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "4939:30:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      "src": "4897:72:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "arguments": [
                        {
                          "id": 14059,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14037,
                          "src": "4992:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "baseExpression": {
                            "baseExpression": {
                              "id": 14060,
                              "name": "_primaryTerminalOf",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 13996,
                              "src": "5004:18:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
                                "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
                              }
                            },
                            "id": 14062,
                            "indexExpression": {
                              "id": 14061,
                              "name": "_projectId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14037,
                              "src": "5023:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "5004:30:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$",
                              "typeString": "mapping(address => contract IJBPaymentTerminal)"
                            }
                          },
                          "id": 14064,
                          "indexExpression": {
                            "id": 14063,
                            "name": "_token",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14039,
                            "src": "5035:6:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "5004:38:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                            "typeString": "contract IJBPaymentTerminal"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                            "typeString": "contract IJBPaymentTerminal"
                          }
                        ],
                        "id": 14058,
                        "name": "isTerminalOf",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14151,
                        "src": "4979:12:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_contract$_IJBPaymentTerminal_$31994_$returns$_t_bool_$",
                          "typeString": "function (uint256,contract IJBPaymentTerminal) view returns (bool)"
                        }
                      },
                      "id": 14065,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4979:64:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4897:146:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14073,
                  "nodeType": "IfStatement",
                  "src": "4886:209:60",
                  "trueBody": {
                    "expression": {
                      "baseExpression": {
                        "baseExpression": {
                          "id": 14067,
                          "name": "_primaryTerminalOf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 13996,
                          "src": "5057:18:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
                            "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
                          }
                        },
                        "id": 14069,
                        "indexExpression": {
                          "id": 14068,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14037,
                          "src": "5076:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "5057:30:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$",
                          "typeString": "mapping(address => contract IJBPaymentTerminal)"
                        }
                      },
                      "id": 14071,
                      "indexExpression": {
                        "id": 14070,
                        "name": "_token",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14039,
                        "src": "5088:6:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "IndexAccess",
                      "src": "5057:38:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      }
                    },
                    "functionReturnParameters": 14045,
                    "id": 14072,
                    "nodeType": "Return",
                    "src": "5050:45:60"
                  }
                },
                {
                  "body": {
                    "id": 14103,
                    "nodeType": "Block",
                    "src": "5231:146:60",
                    "statements": [
                      {
                        "assignments": [
                          14088
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 14088,
                            "mutability": "mutable",
                            "name": "_terminal",
                            "nameLocation": "5258:9:60",
                            "nodeType": "VariableDeclaration",
                            "scope": 14103,
                            "src": "5239:28:60",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                              "typeString": "contract IJBPaymentTerminal"
                            },
                            "typeName": {
                              "id": 14087,
                              "nodeType": "UserDefinedTypeName",
                              "pathNode": {
                                "id": 14086,
                                "name": "IJBPaymentTerminal",
                                "nodeType": "IdentifierPath",
                                "referencedDeclaration": 31994,
                                "src": "5239:18:60"
                              },
                              "referencedDeclaration": 31994,
                              "src": "5239:18:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                                "typeString": "contract IJBPaymentTerminal"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 14094,
                        "initialValue": {
                          "baseExpression": {
                            "baseExpression": {
                              "id": 14089,
                              "name": "_terminalsOf",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 13988,
                              "src": "5270:12:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                                "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                              }
                            },
                            "id": 14091,
                            "indexExpression": {
                              "id": 14090,
                              "name": "_projectId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14037,
                              "src": "5283:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "5270:24:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                              "typeString": "contract IJBPaymentTerminal[] storage ref"
                            }
                          },
                          "id": 14093,
                          "indexExpression": {
                            "id": 14092,
                            "name": "_i",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14075,
                            "src": "5295:2:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "5270:28:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                            "typeString": "contract IJBPaymentTerminal"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "5239:59:60"
                      },
                      {
                        "condition": {
                          "arguments": [
                            {
                              "id": 14097,
                              "name": "_token",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14039,
                              "src": "5333:6:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            },
                            {
                              "id": 14098,
                              "name": "_projectId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14037,
                              "src": "5341:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            ],
                            "expression": {
                              "id": 14095,
                              "name": "_terminal",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14088,
                              "src": "5310:9:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                                "typeString": "contract IJBPaymentTerminal"
                              }
                            },
                            "id": 14096,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "acceptsToken",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": 31938,
                            "src": "5310:22:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_external_view$_t_address_$_t_uint256_$returns$_t_bool_$",
                              "typeString": "function (address,uint256) view external returns (bool)"
                            }
                          },
                          "id": 14099,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "5310:42:60",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "id": 14102,
                        "nodeType": "IfStatement",
                        "src": "5306:64:60",
                        "trueBody": {
                          "expression": {
                            "id": 14100,
                            "name": "_terminal",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14088,
                            "src": "5361:9:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                              "typeString": "contract IJBPaymentTerminal"
                            }
                          },
                          "functionReturnParameters": 14045,
                          "id": 14101,
                          "nodeType": "Return",
                          "src": "5354:16:60"
                        }
                      }
                    ]
                  },
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 14082,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 14077,
                      "name": "_i",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14075,
                      "src": "5187:2:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "expression": {
                        "baseExpression": {
                          "id": 14078,
                          "name": "_terminalsOf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 13988,
                          "src": "5192:12:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                            "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                          }
                        },
                        "id": 14080,
                        "indexExpression": {
                          "id": 14079,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14037,
                          "src": "5205:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "5192:24:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                          "typeString": "contract IJBPaymentTerminal[] storage ref"
                        }
                      },
                      "id": 14081,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "src": "5192:31:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "5187:36:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14104,
                  "initializationExpression": {
                    "assignments": [
                      14075
                    ],
                    "declarations": [
                      {
                        "constant": false,
                        "id": 14075,
                        "mutability": "mutable",
                        "name": "_i",
                        "nameLocation": "5183:2:60",
                        "nodeType": "VariableDeclaration",
                        "scope": 14104,
                        "src": "5175:10:60",
                        "stateVariable": false,
                        "storageLocation": "default",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "typeName": {
                          "id": 14074,
                          "name": "uint256",
                          "nodeType": "ElementaryTypeName",
                          "src": "5175:7:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "visibility": "internal"
                      }
                    ],
                    "id": 14076,
                    "nodeType": "VariableDeclarationStatement",
                    "src": "5175:10:60"
                  },
                  "loopExpression": {
                    "expression": {
                      "id": 14084,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "5225:4:60",
                      "subExpression": {
                        "id": 14083,
                        "name": "_i",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14075,
                        "src": "5225:2:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 14085,
                    "nodeType": "ExpressionStatement",
                    "src": "5225:4:60"
                  },
                  "nodeType": "ForStatement",
                  "src": "5170:207:60"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "hexValue": "30",
                            "id": 14108,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "5435:1:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            },
                            "value": "0"
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_rational_0_by_1",
                              "typeString": "int_const 0"
                            }
                          ],
                          "id": 14107,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "5427:7:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 14106,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "5427:7:60",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 14109,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "5427:10:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14105,
                      "name": "IJBPaymentTerminal",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31994,
                      "src": "5408:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_IJBPaymentTerminal_$31994_$",
                        "typeString": "type(contract IJBPaymentTerminal)"
                      }
                    },
                    "id": 14110,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "typeConversion",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5408:30:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "functionReturnParameters": 14045,
                  "id": 14111,
                  "nodeType": "Return",
                  "src": "5401:37:60"
                }
              ]
            },
            "baseFunctions": [
              31890
            ],
            "documentation": {
              "id": 14035,
              "nodeType": "StructuredDocumentation",
              "src": "4237:392:60",
              "text": "@notice\nThe primary terminal that is managing funds for a project for a specified token.\n@dev\nThe zero address is returned if a terminal isn't found for the specified token.\n@param _projectId The ID of the project to get a terminal for.\n@param _token The token the terminal accepts.\n@return The primary terminal for the project for the specified token."
            },
            "functionSelector": "86202650",
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "primaryTerminalOf",
            "nameLocation": "4641:17:60",
            "overrides": {
              "id": 14041,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "4721:8:60"
            },
            "parameters": {
              "id": 14040,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14037,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "4667:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14113,
                  "src": "4659:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14036,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4659:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14039,
                  "mutability": "mutable",
                  "name": "_token",
                  "nameLocation": "4687:6:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14113,
                  "src": "4679:14:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 14038,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "4679:7:60",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4658:36:60"
            },
            "returnParameters": {
              "id": 14045,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14044,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 14113,
                  "src": "4743:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  },
                  "typeName": {
                    "id": 14043,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14042,
                      "name": "IJBPaymentTerminal",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 31994,
                      "src": "4743:18:60"
                    },
                    "referencedDeclaration": 31994,
                    "src": "4743:18:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4742:20:60"
            },
            "scope": 14546,
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14151,
            "nodeType": "FunctionDefinition",
            "src": "6013:280:60",
            "nodes": [],
            "body": {
              "id": 14150,
              "nodeType": "Block",
              "src": "6139:154:60",
              "nodes": [],
              "statements": [
                {
                  "body": {
                    "condition": {
                      "commonType": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      },
                      "id": 14143,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "baseExpression": {
                          "baseExpression": {
                            "id": 14137,
                            "name": "_terminalsOf",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 13988,
                            "src": "6216:12:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                              "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                            }
                          },
                          "id": 14139,
                          "indexExpression": {
                            "id": 14138,
                            "name": "_projectId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14116,
                            "src": "6229:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "6216:24:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                            "typeString": "contract IJBPaymentTerminal[] storage ref"
                          }
                        },
                        "id": 14141,
                        "indexExpression": {
                          "id": 14140,
                          "name": "_i",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14126,
                          "src": "6241:2:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6216:28:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "==",
                      "rightExpression": {
                        "id": 14142,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14119,
                        "src": "6248:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      "src": "6216:41:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "id": 14146,
                    "nodeType": "IfStatement",
                    "src": "6212:58:60",
                    "trueBody": {
                      "expression": {
                        "hexValue": "74727565",
                        "id": 14144,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "bool",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "6266:4:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "value": "true"
                      },
                      "functionReturnParameters": 14124,
                      "id": 14145,
                      "nodeType": "Return",
                      "src": "6259:11:60"
                    }
                  },
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 14133,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "id": 14128,
                      "name": "_i",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14126,
                      "src": "6162:2:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "expression": {
                        "baseExpression": {
                          "id": 14129,
                          "name": "_terminalsOf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 13988,
                          "src": "6167:12:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                            "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                          }
                        },
                        "id": 14131,
                        "indexExpression": {
                          "id": 14130,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14116,
                          "src": "6180:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "6167:24:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                          "typeString": "contract IJBPaymentTerminal[] storage ref"
                        }
                      },
                      "id": 14132,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "src": "6167:31:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "6162:36:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14147,
                  "initializationExpression": {
                    "assignments": [
                      14126
                    ],
                    "declarations": [
                      {
                        "constant": false,
                        "id": 14126,
                        "mutability": "mutable",
                        "name": "_i",
                        "nameLocation": "6158:2:60",
                        "nodeType": "VariableDeclaration",
                        "scope": 14147,
                        "src": "6150:10:60",
                        "stateVariable": false,
                        "storageLocation": "default",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "typeName": {
                          "id": 14125,
                          "name": "uint256",
                          "nodeType": "ElementaryTypeName",
                          "src": "6150:7:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "visibility": "internal"
                      }
                    ],
                    "id": 14127,
                    "nodeType": "VariableDeclarationStatement",
                    "src": "6150:10:60"
                  },
                  "loopExpression": {
                    "expression": {
                      "id": 14135,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "++",
                      "prefix": false,
                      "src": "6200:4:60",
                      "subExpression": {
                        "id": 14134,
                        "name": "_i",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14126,
                        "src": "6200:2:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 14136,
                    "nodeType": "ExpressionStatement",
                    "src": "6200:4:60"
                  },
                  "nodeType": "ForStatement",
                  "src": "6145:125:60"
                },
                {
                  "expression": {
                    "hexValue": "66616c7365",
                    "id": 14148,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "bool",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "6283:5:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "value": "false"
                  },
                  "functionReturnParameters": 14124,
                  "id": 14149,
                  "nodeType": "Return",
                  "src": "6276:12:60"
                }
              ]
            },
            "baseFunctions": [
              31880
            ],
            "documentation": {
              "id": 14114,
              "nodeType": "StructuredDocumentation",
              "src": "5676:334:60",
              "text": "@notice\nWhether or not a specified terminal is a terminal of the specified project.\n@param _projectId The ID of the project to check within.\n@param _terminal The address of the terminal to check for.\n@return A flag indicating whether or not the specified terminal is a terminal of the specified project."
            },
            "functionSelector": "6e49181f",
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "isTerminalOf",
            "nameLocation": "6022:12:60",
            "overrides": {
              "id": 14121,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "6109:8:60"
            },
            "parameters": {
              "id": 14120,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14116,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "6043:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14151,
                  "src": "6035:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14115,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6035:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14119,
                  "mutability": "mutable",
                  "name": "_terminal",
                  "nameLocation": "6074:9:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14151,
                  "src": "6055:28:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  },
                  "typeName": {
                    "id": 14118,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14117,
                      "name": "IJBPaymentTerminal",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 31994,
                      "src": "6055:18:60"
                    },
                    "referencedDeclaration": 31994,
                    "src": "6055:18:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6034:50:60"
            },
            "returnParameters": {
              "id": 14124,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14123,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 14151,
                  "src": "6131:4:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 14122,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "6131:4:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6130:6:60"
            },
            "scope": 14546,
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "id": 14182,
            "nodeType": "FunctionDefinition",
            "src": "6847:282:60",
            "nodes": [],
            "body": {
              "id": 14181,
              "nodeType": "Block",
              "src": "7021:108:60",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 14171,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 14169,
                      "name": "projects",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14001,
                      "src": "7027:8:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBProjects_$38202",
                        "typeString": "contract IJBProjects"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14170,
                      "name": "_projects",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14158,
                      "src": "7038:9:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBProjects_$38202",
                        "typeString": "contract IJBProjects"
                      }
                    },
                    "src": "7027:20:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBProjects_$38202",
                      "typeString": "contract IJBProjects"
                    }
                  },
                  "id": 14172,
                  "nodeType": "ExpressionStatement",
                  "src": "7027:20:60"
                },
                {
                  "expression": {
                    "id": 14175,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 14173,
                      "name": "fundingCycleStore",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14006,
                      "src": "7053:17:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                        "typeString": "contract IJBFundingCycleStore"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14174,
                      "name": "_fundingCycleStore",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14161,
                      "src": "7073:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                        "typeString": "contract IJBFundingCycleStore"
                      }
                    },
                    "src": "7053:38:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                      "typeString": "contract IJBFundingCycleStore"
                    }
                  },
                  "id": 14176,
                  "nodeType": "ExpressionStatement",
                  "src": "7053:38:60"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 14178,
                        "name": "_owner",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14163,
                        "src": "7117:6:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14177,
                      "name": "_transferOwnership",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 36381,
                      "src": "7098:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 14179,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7098:26:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14180,
                  "nodeType": "ExpressionStatement",
                  "src": "7098:26:60"
                }
              ]
            },
            "documentation": {
              "id": 14152,
              "nodeType": "StructuredDocumentation",
              "src": "6526:318:60",
              "text": "@param _operatorStore A contract storing operator assignments.\n@param _projects A contract which mints ERC-721's that represent project ownership and transfers.\n@param _fundingCycleStore A contract storing all funding cycle configurations.\n@param _owner The address that will own the contract."
            },
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "id": 14166,
                    "name": "_operatorStore",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 14155,
                    "src": "7005:14:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBOperatorStore_$22704",
                      "typeString": "contract IJBOperatorStore"
                    }
                  }
                ],
                "id": 14167,
                "kind": "baseConstructorSpecifier",
                "modifierName": {
                  "id": 14165,
                  "name": "JBOperatable",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 20151,
                  "src": "6992:12:60"
                },
                "nodeType": "ModifierInvocation",
                "src": "6992:28:60"
              }
            ],
            "name": "",
            "nameLocation": "-1:-1:-1",
            "parameters": {
              "id": 14164,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14155,
                  "mutability": "mutable",
                  "name": "_operatorStore",
                  "nameLocation": "6881:14:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14182,
                  "src": "6864:31:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBOperatorStore_$22704",
                    "typeString": "contract IJBOperatorStore"
                  },
                  "typeName": {
                    "id": 14154,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14153,
                      "name": "IJBOperatorStore",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 22704,
                      "src": "6864:16:60"
                    },
                    "referencedDeclaration": 22704,
                    "src": "6864:16:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBOperatorStore_$22704",
                      "typeString": "contract IJBOperatorStore"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14158,
                  "mutability": "mutable",
                  "name": "_projects",
                  "nameLocation": "6913:9:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14182,
                  "src": "6901:21:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBProjects_$38202",
                    "typeString": "contract IJBProjects"
                  },
                  "typeName": {
                    "id": 14157,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14156,
                      "name": "IJBProjects",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 38202,
                      "src": "6901:11:60"
                    },
                    "referencedDeclaration": 38202,
                    "src": "6901:11:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBProjects_$38202",
                      "typeString": "contract IJBProjects"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14161,
                  "mutability": "mutable",
                  "name": "_fundingCycleStore",
                  "nameLocation": "6949:18:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14182,
                  "src": "6928:39:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                    "typeString": "contract IJBFundingCycleStore"
                  },
                  "typeName": {
                    "id": 14160,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14159,
                      "name": "IJBFundingCycleStore",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 38633,
                      "src": "6928:20:60"
                    },
                    "referencedDeclaration": 38633,
                    "src": "6928:20:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                      "typeString": "contract IJBFundingCycleStore"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14163,
                  "mutability": "mutable",
                  "name": "_owner",
                  "nameLocation": "6981:6:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14182,
                  "src": "6973:14:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 14162,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "6973:7:60",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6858:133:60"
            },
            "returnParameters": {
              "id": 14168,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7021:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "public"
          },
          {
            "id": 14289,
            "nodeType": "FunctionDefinition",
            "src": "7903:1218:60",
            "nodes": [],
            "body": {
              "id": 14288,
              "nodeType": "Block",
              "src": "8284:837:60",
              "nodes": [],
              "statements": [
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 14229,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "expression": {
                          "id": 14225,
                          "name": "projects",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14001,
                          "src": "8325:8:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IJBProjects_$38202",
                            "typeString": "contract IJBProjects"
                          }
                        },
                        "id": 14226,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "count",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 38162,
                        "src": "8325:14:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
                          "typeString": "function () view external returns (uint256)"
                        }
                      },
                      "id": 14227,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "8325:16:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "id": 14228,
                      "name": "_projectId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14185,
                      "src": "8344:10:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "8325:29:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14233,
                  "nodeType": "IfStatement",
                  "src": "8321:75:60",
                  "trueBody": {
                    "errorCall": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "id": 14230,
                        "name": "INVALID_PROJECT_ID_IN_DIRECTORY",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13975,
                        "src": "8363:31:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_error_pure$__$returns$__$",
                          "typeString": "function () pure"
                        }
                      },
                      "id": 14231,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "8363:33:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$__$",
                        "typeString": "tuple()"
                      }
                    },
                    "id": 14232,
                    "nodeType": "RevertStatement",
                    "src": "8356:40:60"
                  }
                },
                {
                  "assignments": [
                    14236
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 14236,
                      "mutability": "mutable",
                      "name": "_fundingCycle",
                      "nameLocation": "8488:13:60",
                      "nodeType": "VariableDeclaration",
                      "scope": 14288,
                      "src": "8466:35:60",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                        "typeString": "struct JBFundingCycle"
                      },
                      "typeName": {
                        "id": 14235,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 14234,
                          "name": "JBFundingCycle",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 35849,
                          "src": "8466:14:60"
                        },
                        "referencedDeclaration": 35849,
                        "src": "8466:14:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_JBFundingCycle_$35849_storage_ptr",
                          "typeString": "struct JBFundingCycle"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 14241,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 14239,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14185,
                        "src": "8532:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14237,
                        "name": "fundingCycleStore",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14006,
                        "src": "8504:17:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                          "typeString": "contract IJBFundingCycleStore"
                        }
                      },
                      "id": 14238,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "currentOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 38609,
                      "src": "8504:27:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_struct$_JBFundingCycle_$35849_memory_ptr_$",
                        "typeString": "function (uint256) view external returns (struct JBFundingCycle memory)"
                      }
                    },
                    "id": 14240,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8504:39:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                      "typeString": "struct JBFundingCycle memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "8466:77:60"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 14270,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "id": 14259,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 14250,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "expression": {
                            "id": 14242,
                            "name": "msg",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -15,
                            "src": "8773:3:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_message",
                              "typeString": "msg"
                            }
                          },
                          "id": 14243,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "sender",
                          "nodeType": "MemberAccess",
                          "src": "8773:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "arguments": [
                            {
                              "baseExpression": {
                                "id": 14246,
                                "name": "controllerOf",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 14012,
                                "src": "8795:12:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                                  "typeString": "mapping(uint256 => address)"
                                }
                              },
                              "id": 14248,
                              "indexExpression": {
                                "id": 14247,
                                "name": "_projectId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 14185,
                                "src": "8808:10:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "8795:24:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              }
                            ],
                            "id": 14245,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "8787:7:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": {
                              "id": 14244,
                              "name": "address",
                              "nodeType": "ElementaryTypeName",
                              "src": "8787:7:60",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 14249,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "8787:33:60",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "8773:47:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "&&",
                      "rightExpression": {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 14258,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "baseExpression": {
                            "id": 14251,
                            "name": "controllerOf",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14012,
                            "src": "8830:12:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                              "typeString": "mapping(uint256 => address)"
                            }
                          },
                          "id": 14253,
                          "indexExpression": {
                            "id": 14252,
                            "name": "_projectId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14185,
                            "src": "8843:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "8830:24:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "30",
                              "id": 14256,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "8866:1:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 14255,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "8858:7:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": {
                              "id": 14254,
                              "name": "address",
                              "nodeType": "ElementaryTypeName",
                              "src": "8858:7:60",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 14257,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "8858:10:60",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "8830:38:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "src": "8773:95:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "id": 14269,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "!",
                      "prefix": true,
                      "src": "8878:58:60",
                      "subExpression": {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "arguments": [
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 14265,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 14262,
                                    "name": "_fundingCycle",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 14236,
                                    "src": "8885:13:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                                      "typeString": "struct JBFundingCycle memory"
                                    }
                                  },
                                  "id": 14263,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "metadata",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 35848,
                                  "src": "8885:22:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": ">>",
                                "rightExpression": {
                                  "hexValue": "38",
                                  "id": 14264,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "8911:1:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_8_by_1",
                                    "typeString": "int_const 8"
                                  },
                                  "value": "8"
                                },
                                "src": "8885:27:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 14261,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "8879:5:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint8_$",
                                "typeString": "type(uint8)"
                              },
                              "typeName": {
                                "id": 14260,
                                "name": "uint8",
                                "nodeType": "ElementaryTypeName",
                                "src": "8879:5:60",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 14266,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8879:34:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "id": 14267,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "setControllerAllowed",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 24034,
                          "src": "8879:55:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_pure$_t_uint8_$returns$_t_bool_$bound_to$_t_uint8_$",
                            "typeString": "function (uint8) pure returns (bool)"
                          }
                        },
                        "id": 14268,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "8879:57:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "8773:163:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14274,
                  "nodeType": "IfStatement",
                  "src": "8762:216:60",
                  "trueBody": {
                    "errorCall": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "id": 14271,
                        "name": "SET_CONTROLLER_NOT_ALLOWED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13977,
                        "src": "8950:26:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_error_pure$__$returns$__$",
                          "typeString": "function () pure"
                        }
                      },
                      "id": 14272,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "8950:28:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$__$",
                        "typeString": "tuple()"
                      }
                    },
                    "id": 14273,
                    "nodeType": "RevertStatement",
                    "src": "8943:35:60"
                  }
                },
                {
                  "expression": {
                    "id": 14279,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "baseExpression": {
                        "id": 14275,
                        "name": "controllerOf",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14012,
                        "src": "9016:12:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                          "typeString": "mapping(uint256 => address)"
                        }
                      },
                      "id": 14277,
                      "indexExpression": {
                        "id": 14276,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14185,
                        "src": "9029:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "9016:24:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14278,
                      "name": "_controller",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14187,
                      "src": "9043:11:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "9016:38:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 14280,
                  "nodeType": "ExpressionStatement",
                  "src": "9016:38:60"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "id": 14282,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14185,
                        "src": "9080:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14283,
                        "name": "_controller",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14187,
                        "src": "9092:11:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "expression": {
                          "id": 14284,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "9105:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14285,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "9105:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14281,
                      "name": "SetController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31797,
                      "src": "9066:13:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_address_$returns$__$",
                        "typeString": "function (uint256,address,address)"
                      }
                    },
                    "id": 14286,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9066:50:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14287,
                  "nodeType": "EmitStatement",
                  "src": "9061:55:60"
                }
              ]
            },
            "baseFunctions": [
              31897
            ],
            "documentation": {
              "id": 14183,
              "nodeType": "StructuredDocumentation",
              "src": "7362:538:60",
              "text": "@notice\nUpdate the controller that manages how terminals interact with the ecosystem.\n@dev\nA controller can be set if:\n- the message sender is the project owner or an operator having the correct authorization.\n- the message sender is the project's current controller.\n- or, an allowedlisted address is setting a controller for a project that doesn't already have a controller.\n@param _projectId The ID of the project to set a new controller for.\n@param _controller The new controller to set."
            },
            "functionSelector": "714e7f32",
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "arguments": [
                      {
                        "id": 14193,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14185,
                        "src": "8057:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14191,
                        "name": "projects",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14001,
                        "src": "8040:8:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBProjects_$38202",
                          "typeString": "contract IJBProjects"
                        }
                      },
                      "id": 14192,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "ownerOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 37545,
                      "src": "8040:16:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_address_$",
                        "typeString": "function (uint256) view external returns (address)"
                      }
                    },
                    "id": 14194,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "8040:28:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  {
                    "id": 14195,
                    "name": "_projectId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 14185,
                    "src": "8076:10:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  {
                    "expression": {
                      "id": 14196,
                      "name": "JBOperations",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 24137,
                      "src": "8094:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_JBOperations_$24137_$",
                        "typeString": "type(library JBOperations)"
                      }
                    },
                    "id": 14197,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "SET_CONTROLLER",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 24124,
                    "src": "8094:27:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  {
                    "components": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 14221,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "commonType": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          "id": 14206,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "expression": {
                              "id": 14198,
                              "name": "msg",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -15,
                              "src": "8130:3:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_magic_message",
                                "typeString": "msg"
                              }
                            },
                            "id": 14199,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "sender",
                            "nodeType": "MemberAccess",
                            "src": "8130:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "arguments": [
                              {
                                "baseExpression": {
                                  "id": 14202,
                                  "name": "controllerOf",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 14012,
                                  "src": "8152:12:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                                    "typeString": "mapping(uint256 => address)"
                                  }
                                },
                                "id": 14204,
                                "indexExpression": {
                                  "id": 14203,
                                  "name": "_projectId",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 14185,
                                  "src": "8165:10:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "isConstant": false,
                                "isLValue": true,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "IndexAccess",
                                "src": "8152:24:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "id": 14201,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "8144:7:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_address_$",
                                "typeString": "type(address)"
                              },
                              "typeName": {
                                "id": 14200,
                                "name": "address",
                                "nodeType": "ElementaryTypeName",
                                "src": "8144:7:60",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 14205,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "8144:33:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "src": "8130:47:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "||",
                        "rightExpression": {
                          "components": [
                            {
                              "commonType": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              "id": 14219,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "leftExpression": {
                                "baseExpression": {
                                  "id": 14207,
                                  "name": "isAllowedToSetFirstController",
                                  "nodeType": "Identifier",
                                  "overloadedDeclarations": [],
                                  "referencedDeclaration": 14018,
                                  "src": "8190:29:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                                    "typeString": "mapping(address => bool)"
                                  }
                                },
                                "id": 14210,
                                "indexExpression": {
                                  "expression": {
                                    "id": 14208,
                                    "name": "msg",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": -15,
                                    "src": "8220:3:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_magic_message",
                                      "typeString": "msg"
                                    }
                                  },
                                  "id": 14209,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "sender",
                                  "nodeType": "MemberAccess",
                                  "src": "8220:10:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                "isConstant": false,
                                "isLValue": true,
                                "isPure": false,
                                "lValueRequested": false,
                                "nodeType": "IndexAccess",
                                "src": "8190:41:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "nodeType": "BinaryOperation",
                              "operator": "&&",
                              "rightExpression": {
                                "commonType": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                },
                                "id": 14218,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "baseExpression": {
                                    "id": 14211,
                                    "name": "controllerOf",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 14012,
                                    "src": "8235:12:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                                      "typeString": "mapping(uint256 => address)"
                                    }
                                  },
                                  "id": 14213,
                                  "indexExpression": {
                                    "id": 14212,
                                    "name": "_projectId",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 14185,
                                    "src": "8248:10:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_uint256",
                                      "typeString": "uint256"
                                    }
                                  },
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "nodeType": "IndexAccess",
                                  "src": "8235:24:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "==",
                                "rightExpression": {
                                  "arguments": [
                                    {
                                      "hexValue": "30",
                                      "id": 14216,
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "kind": "number",
                                      "lValueRequested": false,
                                      "nodeType": "Literal",
                                      "src": "8271:1:60",
                                      "typeDescriptions": {
                                        "typeIdentifier": "t_rational_0_by_1",
                                        "typeString": "int_const 0"
                                      },
                                      "value": "0"
                                    }
                                  ],
                                  "expression": {
                                    "argumentTypes": [
                                      {
                                        "typeIdentifier": "t_rational_0_by_1",
                                        "typeString": "int_const 0"
                                      }
                                    ],
                                    "id": 14215,
                                    "isConstant": false,
                                    "isLValue": false,
                                    "isPure": true,
                                    "lValueRequested": false,
                                    "nodeType": "ElementaryTypeNameExpression",
                                    "src": "8263:7:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_type$_t_address_$",
                                      "typeString": "type(address)"
                                    },
                                    "typeName": {
                                      "id": 14214,
                                      "name": "address",
                                      "nodeType": "ElementaryTypeName",
                                      "src": "8263:7:60",
                                      "typeDescriptions": {}
                                    }
                                  },
                                  "id": 14217,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "typeConversion",
                                  "lValueRequested": false,
                                  "names": [],
                                  "nodeType": "FunctionCall",
                                  "src": "8263:10:60",
                                  "tryCall": false,
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_address",
                                    "typeString": "address"
                                  }
                                },
                                "src": "8235:38:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              "src": "8190:83:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            }
                          ],
                          "id": 14220,
                          "isConstant": false,
                          "isInlineArray": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "TupleExpression",
                          "src": "8189:85:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "src": "8130:144:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      }
                    ],
                    "id": 14222,
                    "isConstant": false,
                    "isInlineArray": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "TupleExpression",
                    "src": "8129:146:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  }
                ],
                "id": 14223,
                "kind": "modifierInvocation",
                "modifierName": {
                  "id": 14190,
                  "name": "requirePermissionAllowingOverride",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 20050,
                  "src": "7999:33:60"
                },
                "nodeType": "ModifierInvocation",
                "src": "7999:282:60"
              }
            ],
            "name": "setControllerOf",
            "nameLocation": "7912:15:60",
            "overrides": {
              "id": 14189,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7986:8:60"
            },
            "parameters": {
              "id": 14188,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14185,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "7936:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14289,
                  "src": "7928:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14184,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7928:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14187,
                  "mutability": "mutable",
                  "name": "_controller",
                  "nameLocation": "7956:11:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14289,
                  "src": "7948:19:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 14186,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "7948:7:60",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7927:41:60"
            },
            "returnParameters": {
              "id": 14224,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "8284:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14405,
            "nodeType": "FunctionDefinition",
            "src": "9381:1136:60",
            "nodes": [],
            "body": {
              "id": 14404,
              "nodeType": "Block",
              "src": "9682:835:60",
              "nodes": [],
              "statements": [
                {
                  "assignments": [
                    14320
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 14320,
                      "mutability": "mutable",
                      "name": "_fundingCycle",
                      "nameLocation": "9773:13:60",
                      "nodeType": "VariableDeclaration",
                      "scope": 14404,
                      "src": "9751:35:60",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                        "typeString": "struct JBFundingCycle"
                      },
                      "typeName": {
                        "id": 14319,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 14318,
                          "name": "JBFundingCycle",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 35849,
                          "src": "9751:14:60"
                        },
                        "referencedDeclaration": 35849,
                        "src": "9751:14:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_JBFundingCycle_$35849_storage_ptr",
                          "typeString": "struct JBFundingCycle"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 14325,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 14323,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14292,
                        "src": "9817:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14321,
                        "name": "fundingCycleStore",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14006,
                        "src": "9789:17:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                          "typeString": "contract IJBFundingCycleStore"
                        }
                      },
                      "id": 14322,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "currentOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 38609,
                      "src": "9789:27:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_struct$_JBFundingCycle_$35849_memory_ptr_$",
                        "typeString": "function (uint256) view external returns (struct JBFundingCycle memory)"
                      }
                    },
                    "id": 14324,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9789:39:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                      "typeString": "struct JBFundingCycle memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "9751:77:60"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 14345,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "id": 14334,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "expression": {
                          "id": 14326,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "9930:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14327,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "9930:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "arguments": [
                          {
                            "baseExpression": {
                              "id": 14330,
                              "name": "controllerOf",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14012,
                              "src": "9952:12:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                                "typeString": "mapping(uint256 => address)"
                              }
                            },
                            "id": 14332,
                            "indexExpression": {
                              "id": 14331,
                              "name": "_projectId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14292,
                              "src": "9965:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "9952:24:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 14329,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "9944:7:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 14328,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "9944:7:60",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 14333,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "9944:33:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "src": "9930:47:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "id": 14344,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "!",
                      "prefix": true,
                      "src": "9987:57:60",
                      "subExpression": {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "arguments": [
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 14340,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 14337,
                                    "name": "_fundingCycle",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 14320,
                                    "src": "9994:13:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                                      "typeString": "struct JBFundingCycle memory"
                                    }
                                  },
                                  "id": 14338,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "metadata",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 35848,
                                  "src": "9994:22:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": ">>",
                                "rightExpression": {
                                  "hexValue": "38",
                                  "id": 14339,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "10020:1:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_8_by_1",
                                    "typeString": "int_const 8"
                                  },
                                  "value": "8"
                                },
                                "src": "9994:27:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 14336,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "9988:5:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint8_$",
                                "typeString": "type(uint8)"
                              },
                              "typeName": {
                                "id": 14335,
                                "name": "uint8",
                                "nodeType": "ElementaryTypeName",
                                "src": "9988:5:60",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 14341,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "9988:34:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "id": 14342,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "setTerminalsAllowed",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 24016,
                          "src": "9988:54:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_pure$_t_uint8_$returns$_t_bool_$bound_to$_t_uint8_$",
                            "typeString": "function (uint8) pure returns (bool)"
                          }
                        },
                        "id": 14343,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "9988:56:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "9930:114:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14349,
                  "nodeType": "IfStatement",
                  "src": "9919:166:60",
                  "trueBody": {
                    "errorCall": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "id": 14346,
                        "name": "SET_TERMINALS_NOT_ALLOWED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13979,
                        "src": "10058:25:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_error_pure$__$returns$__$",
                          "typeString": "function () pure"
                        }
                      },
                      "id": 14347,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "10058:27:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$__$",
                        "typeString": "tuple()"
                      }
                    },
                    "id": 14348,
                    "nodeType": "RevertStatement",
                    "src": "10051:34:60"
                  }
                },
                {
                  "expression": {
                    "id": 14354,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "baseExpression": {
                        "id": 14350,
                        "name": "_terminalsOf",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13988,
                        "src": "10144:12:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                          "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                        }
                      },
                      "id": 14352,
                      "indexExpression": {
                        "id": 14351,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14292,
                        "src": "10157:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "10144:24:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                        "typeString": "contract IJBPaymentTerminal[] storage ref"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14353,
                      "name": "_terminals",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14296,
                      "src": "10171:10:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                        "typeString": "contract IJBPaymentTerminal[] calldata"
                      }
                    },
                    "src": "10144:37:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                      "typeString": "contract IJBPaymentTerminal[] storage ref"
                    }
                  },
                  "id": 14355,
                  "nodeType": "ExpressionStatement",
                  "src": "10144:37:60"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 14359,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "expression": {
                        "id": 14356,
                        "name": "_terminals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14296,
                        "src": "10236:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                          "typeString": "contract IJBPaymentTerminal[] calldata"
                        }
                      },
                      "id": 14357,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "length",
                      "nodeType": "MemberAccess",
                      "src": "10236:17:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": ">",
                    "rightExpression": {
                      "hexValue": "31",
                      "id": 14358,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "10256:1:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_1_by_1",
                        "typeString": "int_const 1"
                      },
                      "value": "1"
                    },
                    "src": "10236:21:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14396,
                  "nodeType": "IfStatement",
                  "src": "10232:220:60",
                  "trueBody": {
                    "body": {
                      "body": {
                        "condition": {
                          "commonType": {
                            "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                            "typeString": "contract IJBPaymentTerminal"
                          },
                          "id": 14389,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "baseExpression": {
                              "id": 14383,
                              "name": "_terminals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14296,
                              "src": "10390:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                                "typeString": "contract IJBPaymentTerminal[] calldata"
                              }
                            },
                            "id": 14385,
                            "indexExpression": {
                              "id": 14384,
                              "name": "_i",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14361,
                              "src": "10401:2:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "10390:14:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                              "typeString": "contract IJBPaymentTerminal"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "==",
                          "rightExpression": {
                            "baseExpression": {
                              "id": 14386,
                              "name": "_terminals",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14296,
                              "src": "10408:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                                "typeString": "contract IJBPaymentTerminal[] calldata"
                              }
                            },
                            "id": 14388,
                            "indexExpression": {
                              "id": 14387,
                              "name": "_j",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14371,
                              "src": "10419:2:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "10408:14:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                              "typeString": "contract IJBPaymentTerminal"
                            }
                          },
                          "src": "10390:32:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "id": 14393,
                        "nodeType": "IfStatement",
                        "src": "10386:66:60",
                        "trueBody": {
                          "errorCall": {
                            "arguments": [],
                            "expression": {
                              "argumentTypes": [],
                              "id": 14390,
                              "name": "DUPLICATE_TERMINALS",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 13973,
                              "src": "10431:19:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_error_pure$__$returns$__$",
                                "typeString": "function () pure"
                              }
                            },
                            "id": 14391,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "10431:21:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$__$",
                              "typeString": "tuple()"
                            }
                          },
                          "id": 14392,
                          "nodeType": "RevertStatement",
                          "src": "10424:28:60"
                        }
                      },
                      "condition": {
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 14379,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "id": 14376,
                          "name": "_j",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14371,
                          "src": "10346:2:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "<",
                        "rightExpression": {
                          "expression": {
                            "id": 14377,
                            "name": "_terminals",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14296,
                            "src": "10351:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                              "typeString": "contract IJBPaymentTerminal[] calldata"
                            }
                          },
                          "id": 14378,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "length",
                          "nodeType": "MemberAccess",
                          "src": "10351:17:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "10346:22:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "id": 14394,
                      "initializationExpression": {
                        "assignments": [
                          14371
                        ],
                        "declarations": [
                          {
                            "constant": false,
                            "id": 14371,
                            "mutability": "mutable",
                            "name": "_j",
                            "nameLocation": "10333:2:60",
                            "nodeType": "VariableDeclaration",
                            "scope": 14394,
                            "src": "10325:10:60",
                            "stateVariable": false,
                            "storageLocation": "default",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            },
                            "typeName": {
                              "id": 14370,
                              "name": "uint256",
                              "nodeType": "ElementaryTypeName",
                              "src": "10325:7:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "visibility": "internal"
                          }
                        ],
                        "id": 14375,
                        "initialValue": {
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "id": 14374,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftExpression": {
                            "id": 14372,
                            "name": "_i",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14361,
                            "src": "10338:2:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "nodeType": "BinaryOperation",
                          "operator": "+",
                          "rightExpression": {
                            "hexValue": "31",
                            "id": 14373,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "kind": "number",
                            "lValueRequested": false,
                            "nodeType": "Literal",
                            "src": "10343:1:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_rational_1_by_1",
                              "typeString": "int_const 1"
                            },
                            "value": "1"
                          },
                          "src": "10338:6:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "VariableDeclarationStatement",
                        "src": "10325:19:60"
                      },
                      "loopExpression": {
                        "expression": {
                          "id": 14381,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "UnaryOperation",
                          "operator": "++",
                          "prefix": false,
                          "src": "10370:4:60",
                          "subExpression": {
                            "id": 14380,
                            "name": "_j",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14371,
                            "src": "10370:2:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "id": 14382,
                        "nodeType": "ExpressionStatement",
                        "src": "10370:4:60"
                      },
                      "nodeType": "ForStatement",
                      "src": "10320:132:60"
                    },
                    "condition": {
                      "commonType": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "id": 14366,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "id": 14363,
                        "name": "_i",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14361,
                        "src": "10282:2:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "<",
                      "rightExpression": {
                        "expression": {
                          "id": 14364,
                          "name": "_terminals",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14296,
                          "src": "10287:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                            "typeString": "contract IJBPaymentTerminal[] calldata"
                          }
                        },
                        "id": 14365,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "length",
                        "nodeType": "MemberAccess",
                        "src": "10287:17:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "src": "10282:22:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "id": 14395,
                    "initializationExpression": {
                      "assignments": [
                        14361
                      ],
                      "declarations": [
                        {
                          "constant": false,
                          "id": 14361,
                          "mutability": "mutable",
                          "name": "_i",
                          "nameLocation": "10278:2:60",
                          "nodeType": "VariableDeclaration",
                          "scope": 14395,
                          "src": "10270:10:60",
                          "stateVariable": false,
                          "storageLocation": "default",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "typeName": {
                            "id": 14360,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "10270:7:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "visibility": "internal"
                        }
                      ],
                      "id": 14362,
                      "nodeType": "VariableDeclarationStatement",
                      "src": "10270:10:60"
                    },
                    "loopExpression": {
                      "expression": {
                        "id": 14368,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "UnaryOperation",
                        "operator": "++",
                        "prefix": false,
                        "src": "10306:4:60",
                        "subExpression": {
                          "id": 14367,
                          "name": "_i",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14361,
                          "src": "10306:2:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "id": 14369,
                      "nodeType": "ExpressionStatement",
                      "src": "10306:4:60"
                    },
                    "nodeType": "ForStatement",
                    "src": "10265:187:60"
                  }
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "id": 14398,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14292,
                        "src": "10477:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14399,
                        "name": "_terminals",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14296,
                        "src": "10489:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                          "typeString": "contract IJBPaymentTerminal[] calldata"
                        }
                      },
                      {
                        "expression": {
                          "id": 14400,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "10501:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14401,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "10501:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                          "typeString": "contract IJBPaymentTerminal[] calldata"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14397,
                      "name": "SetTerminals",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31816,
                      "src": "10464:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_memory_ptr_$_t_address_$returns$__$",
                        "typeString": "function (uint256,contract IJBPaymentTerminal[] memory,address)"
                      }
                    },
                    "id": 14402,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "10464:48:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14403,
                  "nodeType": "EmitStatement",
                  "src": "10459:53:60"
                }
              ]
            },
            "baseFunctions": [
              31906
            ],
            "documentation": {
              "id": 14290,
              "nodeType": "StructuredDocumentation",
              "src": "9125:253:60",
              "text": "@notice \nSet a project's terminals.\n@dev\nOnly a project owner, an operator, or its controller can set its terminals.\n@param _projectId The ID of the project having terminals set.\n@param _terminals The terminal to set."
            },
            "functionSelector": "821b9fd8",
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "arguments": [
                      {
                        "id": 14302,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14292,
                        "src": "9555:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14300,
                        "name": "projects",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14001,
                        "src": "9538:8:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBProjects_$38202",
                          "typeString": "contract IJBProjects"
                        }
                      },
                      "id": 14301,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "ownerOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 37545,
                      "src": "9538:16:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_address_$",
                        "typeString": "function (uint256) view external returns (address)"
                      }
                    },
                    "id": 14303,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "9538:28:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  {
                    "id": 14304,
                    "name": "_projectId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 14292,
                    "src": "9574:10:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  {
                    "expression": {
                      "id": 14305,
                      "name": "JBOperations",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 24137,
                      "src": "9592:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_JBOperations_$24137_$",
                        "typeString": "type(library JBOperations)"
                      }
                    },
                    "id": 14306,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "SET_TERMINALS",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 24127,
                    "src": "9592:26:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  {
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 14315,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "expression": {
                        "id": 14307,
                        "name": "msg",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": -15,
                        "src": "9626:3:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_magic_message",
                          "typeString": "msg"
                        }
                      },
                      "id": 14308,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "sender",
                      "nodeType": "MemberAccess",
                      "src": "9626:10:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "arguments": [
                        {
                          "baseExpression": {
                            "id": 14311,
                            "name": "controllerOf",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14012,
                            "src": "9648:12:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                              "typeString": "mapping(uint256 => address)"
                            }
                          },
                          "id": 14313,
                          "indexExpression": {
                            "id": 14312,
                            "name": "_projectId",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 14292,
                            "src": "9661:10:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint256",
                              "typeString": "uint256"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "9648:24:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 14310,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "9640:7:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": {
                          "id": 14309,
                          "name": "address",
                          "nodeType": "ElementaryTypeName",
                          "src": "9640:7:60",
                          "typeDescriptions": {}
                        }
                      },
                      "id": 14314,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "9640:33:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "9626:47:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  }
                ],
                "id": 14316,
                "kind": "modifierInvocation",
                "modifierName": {
                  "id": 14299,
                  "name": "requirePermissionAllowingOverride",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 20050,
                  "src": "9497:33:60"
                },
                "nodeType": "ModifierInvocation",
                "src": "9497:182:60"
              }
            ],
            "name": "setTerminalsOf",
            "nameLocation": "9390:14:60",
            "overrides": {
              "id": 14298,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "9484:8:60"
            },
            "parameters": {
              "id": 14297,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14292,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "9413:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14405,
                  "src": "9405:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14291,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "9405:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14296,
                  "mutability": "mutable",
                  "name": "_terminals",
                  "nameLocation": "9455:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14405,
                  "src": "9425:40:60",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_calldata_ptr",
                    "typeString": "contract IJBPaymentTerminal[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 14294,
                      "nodeType": "UserDefinedTypeName",
                      "pathNode": {
                        "id": 14293,
                        "name": "IJBPaymentTerminal",
                        "nodeType": "IdentifierPath",
                        "referencedDeclaration": 31994,
                        "src": "9425:18:60"
                      },
                      "referencedDeclaration": 31994,
                      "src": "9425:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      }
                    },
                    "id": 14295,
                    "nodeType": "ArrayTypeName",
                    "src": "9425:20:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_ptr",
                      "typeString": "contract IJBPaymentTerminal[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "9404:62:60"
            },
            "returnParameters": {
              "id": 14317,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "9682:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14458,
            "nodeType": "FunctionDefinition",
            "src": "11170:721:60",
            "nodes": [],
            "body": {
              "id": 14457,
              "nodeType": "Block",
              "src": "11409:482:60",
              "nodes": [],
              "statements": [
                {
                  "condition": {
                    "id": 14431,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "nodeType": "UnaryOperation",
                    "operator": "!",
                    "prefix": true,
                    "src": "11501:43:60",
                    "subExpression": {
                      "arguments": [
                        {
                          "id": 14428,
                          "name": "_token",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14410,
                          "src": "11525:6:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 14429,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14408,
                          "src": "11533:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 14426,
                          "name": "_terminal",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14413,
                          "src": "11502:9:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                            "typeString": "contract IJBPaymentTerminal"
                          }
                        },
                        "id": 14427,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "acceptsToken",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 31938,
                        "src": "11502:22:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$_t_address_$_t_uint256_$returns$_t_bool_$",
                          "typeString": "function (address,uint256) view external returns (bool)"
                        }
                      },
                      "id": 14430,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "11502:42:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14435,
                  "nodeType": "IfStatement",
                  "src": "11497:76:60",
                  "trueBody": {
                    "errorCall": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "id": 14432,
                        "name": "TOKEN_NOT_ACCEPTED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13981,
                        "src": "11553:18:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_error_pure$__$returns$__$",
                          "typeString": "function () pure"
                        }
                      },
                      "id": 14433,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "11553:20:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$__$",
                        "typeString": "tuple()"
                      }
                    },
                    "id": 14434,
                    "nodeType": "RevertStatement",
                    "src": "11546:27:60"
                  }
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 14437,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14408,
                        "src": "11667:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14438,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14413,
                        "src": "11679:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      ],
                      "id": 14436,
                      "name": "_addTerminalIfNeeded",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14545,
                      "src": "11646:20:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_contract$_IJBPaymentTerminal_$31994_$returns$__$",
                        "typeString": "function (uint256,contract IJBPaymentTerminal)"
                      }
                    },
                    "id": 14439,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11646:43:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14440,
                  "nodeType": "ExpressionStatement",
                  "src": "11646:43:60"
                },
                {
                  "expression": {
                    "id": 14447,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "baseExpression": {
                        "baseExpression": {
                          "id": 14441,
                          "name": "_primaryTerminalOf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 13996,
                          "src": "11763:18:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_$",
                            "typeString": "mapping(uint256 => mapping(address => contract IJBPaymentTerminal))"
                          }
                        },
                        "id": 14444,
                        "indexExpression": {
                          "id": 14442,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14408,
                          "src": "11782:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "11763:30:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$",
                          "typeString": "mapping(address => contract IJBPaymentTerminal)"
                        }
                      },
                      "id": 14445,
                      "indexExpression": {
                        "id": 14443,
                        "name": "_token",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14410,
                        "src": "11794:6:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "11763:38:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14446,
                      "name": "_terminal",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14413,
                      "src": "11804:9:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                        "typeString": "contract IJBPaymentTerminal"
                      }
                    },
                    "src": "11763:50:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "id": 14448,
                  "nodeType": "ExpressionStatement",
                  "src": "11763:50:60"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "id": 14450,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14408,
                        "src": "11844:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14451,
                        "name": "_token",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14410,
                        "src": "11856:6:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "id": 14452,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14413,
                        "src": "11864:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      {
                        "expression": {
                          "id": 14453,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "11875:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14454,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "11875:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14449,
                      "name": "SetPrimaryTerminal",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31827,
                      "src": "11825:18:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_address_$_t_contract$_IJBPaymentTerminal_$31994_$_t_address_$returns$__$",
                        "typeString": "function (uint256,address,contract IJBPaymentTerminal,address)"
                      }
                    },
                    "id": 14455,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11825:61:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14456,
                  "nodeType": "EmitStatement",
                  "src": "11820:66:60"
                }
              ]
            },
            "baseFunctions": [
              31916
            ],
            "documentation": {
              "id": 14406,
              "nodeType": "StructuredDocumentation",
              "src": "10521:646:60",
              "text": "@notice\nProject's can set which terminal should be their primary for a particular token.\nThis is useful in case a project has several terminals connected for a particular token.\n@dev\nThe terminal will be set as the primary terminal where ecosystem contracts should route tokens.\n@dev\nIf setting a newly added terminal and the funding cycle doesn't allow new terminals, the caller must be the current controller.\n@param _projectId The ID of the project for which a primary token is being set.\n@param _token The token to set the primary terminal of.\n@param _terminal The terminal to make primary."
            },
            "functionSelector": "63d0850a",
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "arguments": [
                      {
                        "id": 14419,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14408,
                        "src": "11347:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14417,
                        "name": "projects",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14001,
                        "src": "11330:8:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBProjects_$38202",
                          "typeString": "contract IJBProjects"
                        }
                      },
                      "id": 14418,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "ownerOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 37545,
                      "src": "11330:16:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_address_$",
                        "typeString": "function (uint256) view external returns (address)"
                      }
                    },
                    "id": 14420,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "11330:28:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  {
                    "id": 14421,
                    "name": "_projectId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 14408,
                    "src": "11360:10:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  {
                    "expression": {
                      "id": 14422,
                      "name": "JBOperations",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 24137,
                      "src": "11372:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_contract$_JBOperations_$24137_$",
                        "typeString": "type(library JBOperations)"
                      }
                    },
                    "id": 14423,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "SET_PRIMARY_TERMINAL",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 24130,
                    "src": "11372:33:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  }
                ],
                "id": 14424,
                "kind": "modifierInvocation",
                "modifierName": {
                  "id": 14416,
                  "name": "requirePermission",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 20030,
                  "src": "11312:17:60"
                },
                "nodeType": "ModifierInvocation",
                "src": "11312:94:60"
              }
            ],
            "name": "setPrimaryTerminalOf",
            "nameLocation": "11179:20:60",
            "overrides": {
              "id": 14415,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "11299:8:60"
            },
            "parameters": {
              "id": 14414,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14408,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "11213:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14458,
                  "src": "11205:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14407,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "11205:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14410,
                  "mutability": "mutable",
                  "name": "_token",
                  "nameLocation": "11237:6:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14458,
                  "src": "11229:14:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 14409,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "11229:7:60",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14413,
                  "mutability": "mutable",
                  "name": "_terminal",
                  "nameLocation": "11268:9:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14458,
                  "src": "11249:28:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  },
                  "typeName": {
                    "id": 14412,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14411,
                      "name": "IJBPaymentTerminal",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 31994,
                      "src": "11249:18:60"
                    },
                    "referencedDeclaration": 31994,
                    "src": "11249:18:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "11199:82:60"
            },
            "returnParameters": {
              "id": 14425,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "11409:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14483,
            "nodeType": "FunctionDefinition",
            "src": "12542:283:60",
            "nodes": [],
            "body": {
              "id": 14482,
              "nodeType": "Block",
              "src": "12656:169:60",
              "nodes": [],
              "statements": [
                {
                  "expression": {
                    "id": 14473,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "baseExpression": {
                        "id": 14469,
                        "name": "isAllowedToSetFirstController",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14018,
                        "src": "12700:29:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                          "typeString": "mapping(address => bool)"
                        }
                      },
                      "id": 14471,
                      "indexExpression": {
                        "id": 14470,
                        "name": "_address",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14461,
                        "src": "12730:8:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "12700:39:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 14472,
                      "name": "_flag",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14463,
                      "src": "12742:5:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "12700:47:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14474,
                  "nodeType": "ExpressionStatement",
                  "src": "12700:47:60"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "id": 14476,
                        "name": "_address",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14461,
                        "src": "12792:8:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "id": 14477,
                        "name": "_flag",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14463,
                        "src": "12802:5:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "expression": {
                          "id": 14478,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "12809:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14479,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "12809:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14475,
                      "name": "SetIsAllowedToSetFirstController",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31835,
                      "src": "12759:32:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_bool_$_t_address_$returns$__$",
                        "typeString": "function (address,bool,address)"
                      }
                    },
                    "id": 14480,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "12759:61:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14481,
                  "nodeType": "EmitStatement",
                  "src": "12754:66:60"
                }
              ]
            },
            "baseFunctions": [
              31923
            ],
            "documentation": {
              "id": 14459,
              "nodeType": "StructuredDocumentation",
              "src": "11895:644:60",
              "text": "@notice\t\nSet a contract to the list of trusted addresses that can set a first controller for any project.\t\n@dev\nThe owner can add addresses which are allowed to change projects' first controllers. \nThese addresses are known and vetted controllers as well as contracts designed to launch new projects. \nA project can set its own controller without it being on the allow list.\n@dev\nIf you would like an address/contract allowlisted, please reach out to the contract owner.\n@param _address The address to allow or revoke allowance from.\n@param _flag Whether allowance is being added or revoked."
            },
            "functionSelector": "a1ed3175",
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "id": 14467,
                "kind": "modifierInvocation",
                "modifierName": {
                  "id": 14466,
                  "name": "onlyOwner",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 36301,
                  "src": "12644:9:60"
                },
                "nodeType": "ModifierInvocation",
                "src": "12644:9:60"
              }
            ],
            "name": "setIsAllowedToSetFirstController",
            "nameLocation": "12551:32:60",
            "overrides": {
              "id": 14465,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "12631:8:60"
            },
            "parameters": {
              "id": 14464,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14461,
                  "mutability": "mutable",
                  "name": "_address",
                  "nameLocation": "12592:8:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14483,
                  "src": "12584:16:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 14460,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "12584:7:60",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14463,
                  "mutability": "mutable",
                  "name": "_flag",
                  "nameLocation": "12607:5:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14483,
                  "src": "12602:10:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 14462,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "12602:4:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "12583:30:60"
            },
            "returnParameters": {
              "id": 14468,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "12656:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "id": 14545,
            "nodeType": "FunctionDefinition",
            "src": "13272:743:60",
            "nodes": [],
            "body": {
              "id": 14544,
              "nodeType": "Block",
              "src": "13360:655:60",
              "nodes": [],
              "statements": [
                {
                  "condition": {
                    "arguments": [
                      {
                        "id": 14493,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14486,
                        "src": "13442:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14494,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14489,
                        "src": "13454:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      ],
                      "id": 14492,
                      "name": "isTerminalOf",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 14151,
                      "src": "13429:12:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_contract$_IJBPaymentTerminal_$31994_$returns$_t_bool_$",
                        "typeString": "function (uint256,contract IJBPaymentTerminal) view returns (bool)"
                      }
                    },
                    "id": 14495,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13429:35:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14497,
                  "nodeType": "IfStatement",
                  "src": "13425:48:60",
                  "trueBody": {
                    "functionReturnParameters": 14491,
                    "id": 14496,
                    "nodeType": "Return",
                    "src": "13466:7:60"
                  }
                },
                {
                  "assignments": [
                    14500
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 14500,
                      "mutability": "mutable",
                      "name": "_fundingCycle",
                      "nameLocation": "13564:13:60",
                      "nodeType": "VariableDeclaration",
                      "scope": 14544,
                      "src": "13542:35:60",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                        "typeString": "struct JBFundingCycle"
                      },
                      "typeName": {
                        "id": 14499,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 14498,
                          "name": "JBFundingCycle",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 35849,
                          "src": "13542:14:60"
                        },
                        "referencedDeclaration": 35849,
                        "src": "13542:14:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_JBFundingCycle_$35849_storage_ptr",
                          "typeString": "struct JBFundingCycle"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 14505,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 14503,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14486,
                        "src": "13608:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 14501,
                        "name": "fundingCycleStore",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14006,
                        "src": "13580:17:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBFundingCycleStore_$38633",
                          "typeString": "contract IJBFundingCycleStore"
                        }
                      },
                      "id": 14502,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "currentOf",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 38609,
                      "src": "13580:27:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_uint256_$returns$_t_struct$_JBFundingCycle_$35849_memory_ptr_$",
                        "typeString": "function (uint256) view external returns (struct JBFundingCycle memory)"
                      }
                    },
                    "id": 14504,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13580:39:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                      "typeString": "struct JBFundingCycle memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "13542:77:60"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    },
                    "id": 14525,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "commonType": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "id": 14514,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "leftExpression": {
                        "expression": {
                          "id": 14506,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "13721:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14507,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "13721:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "nodeType": "BinaryOperation",
                      "operator": "!=",
                      "rightExpression": {
                        "arguments": [
                          {
                            "baseExpression": {
                              "id": 14510,
                              "name": "controllerOf",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14012,
                              "src": "13743:12:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_mapping$_t_uint256_$_t_address_$",
                                "typeString": "mapping(uint256 => address)"
                              }
                            },
                            "id": 14512,
                            "indexExpression": {
                              "id": 14511,
                              "name": "_projectId",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 14486,
                              "src": "13756:10:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                              }
                            },
                            "isConstant": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": false,
                            "nodeType": "IndexAccess",
                            "src": "13743:24:60",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "id": 14509,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "13735:7:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 14508,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "13735:7:60",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 14513,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "13735:33:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "src": "13721:47:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "&&",
                    "rightExpression": {
                      "id": 14524,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "nodeType": "UnaryOperation",
                      "operator": "!",
                      "prefix": true,
                      "src": "13778:57:60",
                      "subExpression": {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "expression": {
                            "arguments": [
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 14520,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 14517,
                                    "name": "_fundingCycle",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 14500,
                                    "src": "13785:13:60",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_JBFundingCycle_$35849_memory_ptr",
                                      "typeString": "struct JBFundingCycle memory"
                                    }
                                  },
                                  "id": 14518,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "metadata",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 35848,
                                  "src": "13785:22:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": ">>",
                                "rightExpression": {
                                  "hexValue": "38",
                                  "id": 14519,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": true,
                                  "kind": "number",
                                  "lValueRequested": false,
                                  "nodeType": "Literal",
                                  "src": "13811:1:60",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_rational_8_by_1",
                                    "typeString": "int_const 8"
                                  },
                                  "value": "8"
                                },
                                "src": "13785:27:60",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 14516,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "nodeType": "ElementaryTypeNameExpression",
                              "src": "13779:5:60",
                              "typeDescriptions": {
                                "typeIdentifier": "t_type$_t_uint8_$",
                                "typeString": "type(uint8)"
                              },
                              "typeName": {
                                "id": 14515,
                                "name": "uint8",
                                "nodeType": "ElementaryTypeName",
                                "src": "13779:5:60",
                                "typeDescriptions": {}
                              }
                            },
                            "id": 14521,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "typeConversion",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "13779:34:60",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_uint8",
                              "typeString": "uint8"
                            }
                          },
                          "id": 14522,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "setTerminalsAllowed",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": 24016,
                          "src": "13779:54:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_pure$_t_uint8_$returns$_t_bool_$bound_to$_t_uint8_$",
                            "typeString": "function (uint8) pure returns (bool)"
                          }
                        },
                        "id": 14523,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "13779:56:60",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "13721:114:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 14529,
                  "nodeType": "IfStatement",
                  "src": "13710:166:60",
                  "trueBody": {
                    "errorCall": {
                      "arguments": [],
                      "expression": {
                        "argumentTypes": [],
                        "id": 14526,
                        "name": "SET_TERMINALS_NOT_ALLOWED",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 13979,
                        "src": "13849:25:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_error_pure$__$returns$__$",
                          "typeString": "function () pure"
                        }
                      },
                      "id": 14527,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "13849:27:60",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$__$",
                        "typeString": "tuple()"
                      }
                    },
                    "id": 14528,
                    "nodeType": "RevertStatement",
                    "src": "13842:34:60"
                  }
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 14534,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14489,
                        "src": "13942:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      ],
                      "expression": {
                        "baseExpression": {
                          "id": 14530,
                          "name": "_terminalsOf",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 13988,
                          "src": "13912:12:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_mapping$_t_uint256_$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_$",
                            "typeString": "mapping(uint256 => contract IJBPaymentTerminal[] storage ref)"
                          }
                        },
                        "id": 14532,
                        "indexExpression": {
                          "id": 14531,
                          "name": "_projectId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 14486,
                          "src": "13925:10:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "isConstant": false,
                        "isLValue": true,
                        "isPure": false,
                        "lValueRequested": false,
                        "nodeType": "IndexAccess",
                        "src": "13912:24:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage",
                          "typeString": "contract IJBPaymentTerminal[] storage ref"
                        }
                      },
                      "id": 14533,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "push",
                      "nodeType": "MemberAccess",
                      "src": "13912:29:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_arraypush_nonpayable$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_ptr_$_t_contract$_IJBPaymentTerminal_$31994_$returns$__$bound_to$_t_array$_t_contract$_IJBPaymentTerminal_$31994_$dyn_storage_ptr_$",
                        "typeString": "function (contract IJBPaymentTerminal[] storage pointer,contract IJBPaymentTerminal)"
                      }
                    },
                    "id": 14535,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13912:40:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14536,
                  "nodeType": "ExpressionStatement",
                  "src": "13912:40:60"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "id": 14538,
                        "name": "_projectId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14486,
                        "src": "13976:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 14539,
                        "name": "_terminal",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 14489,
                        "src": "13988:9:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        }
                      },
                      {
                        "expression": {
                          "id": 14540,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": -15,
                          "src": "13999:3:60",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 14541,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "src": "13999:10:60",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                          "typeString": "contract IJBPaymentTerminal"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 14537,
                      "name": "AddTerminal",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 31806,
                      "src": "13964:11:60",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_contract$_IJBPaymentTerminal_$31994_$_t_address_$returns$__$",
                        "typeString": "function (uint256,contract IJBPaymentTerminal,address)"
                      }
                    },
                    "id": 14542,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "13964:46:60",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 14543,
                  "nodeType": "EmitStatement",
                  "src": "13959:51:60"
                }
              ]
            },
            "documentation": {
              "id": 14484,
              "nodeType": "StructuredDocumentation",
              "src": "13058:211:60",
              "text": "@notice\nAdd a terminal to a project's list of terminals if it hasn't been already.\n@param _projectId The ID of the project having a terminal added.\n@param _terminal The terminal to add."
            },
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_addTerminalIfNeeded",
            "nameLocation": "13281:20:60",
            "parameters": {
              "id": 14490,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 14486,
                  "mutability": "mutable",
                  "name": "_projectId",
                  "nameLocation": "13310:10:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14545,
                  "src": "13302:18:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 14485,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "13302:7:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 14489,
                  "mutability": "mutable",
                  "name": "_terminal",
                  "nameLocation": "13341:9:60",
                  "nodeType": "VariableDeclaration",
                  "scope": 14545,
                  "src": "13322:28:60",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                    "typeString": "contract IJBPaymentTerminal"
                  },
                  "typeName": {
                    "id": 14488,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 14487,
                      "name": "IJBPaymentTerminal",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 31994,
                      "src": "13322:18:60"
                    },
                    "referencedDeclaration": 31994,
                    "src": "13322:18:60",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IJBPaymentTerminal_$31994",
                      "typeString": "contract IJBPaymentTerminal"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "13301:50:60"
            },
            "returnParameters": {
              "id": 14491,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "13360:0:60"
            },
            "scope": 14546,
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "private"
          }
        ],
        "abstract": false,
        "baseContracts": [
          {
            "baseName": {
              "id": 13963,
              "name": "JBOperatable",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 20151,
              "src": "970:12:60"
            },
            "id": 13964,
            "nodeType": "InheritanceSpecifier",
            "src": "970:12:60"
          },
          {
            "baseName": {
              "id": 13965,
              "name": "Ownable",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 36382,
              "src": "984:7:60"
            },
            "id": 13966,
            "nodeType": "InheritanceSpecifier",
            "src": "984:7:60"
          },
          {
            "baseName": {
              "id": 13967,
              "name": "IJBDirectory",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 31924,
              "src": "993:12:60"
            },
            "id": 13968,
            "nodeType": "InheritanceSpecifier",
            "src": "993:12:60"
          }
        ],
        "contractDependencies": [],
        "contractKind": "contract",
        "documentation": {
          "id": 13962,
          "nodeType": "StructuredDocumentation",
          "src": "290:655:60",
          "text": "@notice\nKeeps a reference of which terminal contracts each project is currently accepting funds through, and which controller contract is managing each project's tokens and funding cycles.\n@dev\nAdheres to -\nIJBDirectory: General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.\n@dev\nInherits from -\nJBOperatable: Includes convenience functionality for checking a message sender's permissions before executing certain transactions.\nOwnable: Includes convenience functionality for checking a message sender's permissions before executing certain transactions."
        },
        "fullyImplemented": true,
        "linearizedBaseContracts": [
          14546,
          31924,
          36382,
          38890,
          20151,
          22636
        ],
        "name": "JBDirectory",
        "nameLocation": "955:11:60",
        "scope": 14547,
        "usedErrors": [
          13973,
          13975,
          13977,
          13979,
          13981,
          20013
        ]
      }
    ],
    "license": "MIT"
  },
  "id": 60
}