{
  "contractName": "UpgradeScheme",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "parameters",
      "outputs": [
        {
          "name": "voteParams",
          "type": "bytes32"
        },
        {
          "name": "intVote",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        },
        {
          "name": "_scheme",
          "type": "address"
        },
        {
          "name": "_params",
          "type": "bytes32"
        }
      ],
      "name": "proposeChangeUpgradingScheme",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        },
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "organizationsProposals",
      "outputs": [
        {
          "name": "upgradeContract",
          "type": "address"
        },
        {
          "name": "params",
          "type": "bytes32"
        },
        {
          "name": "proposalType",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "_voteParams",
          "type": "bytes32"
        },
        {
          "name": "_intVote",
          "type": "address"
        }
      ],
      "name": "getParametersHash",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_hashedParameters",
          "type": "bytes32"
        }
      ],
      "name": "updateParameters",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "name": "_avatar",
          "type": "address"
        },
        {
          "name": "_param",
          "type": "int256"
        }
      ],
      "name": "execute",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_voteParams",
          "type": "bytes32"
        },
        {
          "name": "_intVote",
          "type": "address"
        }
      ],
      "name": "setParameters",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        },
        {
          "name": "_newController",
          "type": "address"
        }
      ],
      "name": "proposeUpgrade",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "hashedParameters",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_avatar",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_intVoteInterface",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_newController",
          "type": "address"
        }
      ],
      "name": "NewUpgradeProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_avatar",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_intVoteInterface",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "newUpgradeScheme",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_params",
          "type": "bytes32"
        }
      ],
      "name": "ChangeUpgradeSchemeProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_avatar",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "ProposalExecuted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_avatar",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_proposalId",
          "type": "bytes32"
        }
      ],
      "name": "ProposalDeleted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "name": "proposalId",
          "type": "bytes32"
        }
      ],
      "name": "NewProposal",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    }
  ],
  "bytecode": "0x6060604052341561000f57600080fd5b60008054600160a060020a033316600160a060020a0319909116179055610df48061003b6000396000f3006060604052600436106100955763ffffffff60e060020a60003504166302506804811461009a578063049a8170146100d157806306e3a9781461010b5780632453732a1461015b5780632ac2af531461017d578063310ce4e21461019557806368e14dac146101ce578063887fbd1c146101f05780638da5cb5b14610215578063f2fde38b14610244578063f98e87ba14610263575b600080fd5b34156100a557600080fd5b6100b0600435610276565b604051918252600160a060020a031660208201526040908101905180910390f35b34156100dc57600080fd5b6100f9600160a060020a0360043581169060243516604435610298565b60405190815260200160405180910390f35b341561011657600080fd5b61012d600160a060020a0360043516602435610530565b604051600160a060020a03909316835260208301919091526040808301919091526060909101905180910390f35b341561016657600080fd5b6100f9600435600160a060020a0360243516610564565b341561018857600080fd5b61019360043561059e565b005b34156101a057600080fd5b6101ba600435600160a060020a03602435166044356105be565b604051901515815260200160405180910390f35b34156101d957600080fd5b6100f9600435600160a060020a036024351661098a565b34156101fb57600080fd5b6100f9600160a060020a03600435811690602435166109df565b341561022057600080fd5b610228610c00565b604051600160a060020a03909116815260200160405180910390f35b341561024f57600080fd5b610193600160a060020a0360043516610c0f565b341561026e57600080fd5b6100f9610caa565b60036020526000908152604090208054600190910154600160a060020a031682565b60006102a2610d91565b6000806102ad610da8565b600360006102ba8a610cb0565b81526020810191909152604090810160002090805190810160405281548152600190910154600160a060020a031660208201908152909450519250600160a060020a038316630905c9f9600286518b303360006040516020015260405160e060020a63ffffffff881602815260048101959095526024850193909352600160a060020a0391821660448501528116606484015216608482015260a401602060405180830381600087803b151561036f57600080fd5b6102c65a03f1151561038057600080fd5b5050506040518051600160a060020a038a16600090815260026020818152604080842085855290915290912001549093501590506103bd57600080fd5b60606040519081016040908152600160a060020a03808a16835260208084018a90526002838501819052918c16600090815291815282822086835290522090915081908151815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391909116178155602082015160018201556040820151600290910155506020840151600160a060020a0316826000191689600160a060020a03167fa7fae9696194133d49db2024f63bc78c615866be90477c9b2c6ea54c8153893d8a8a604051600160a060020a03909216825260208201526040908101905180910390a482600160a060020a031663339e23d18360013360006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a03166044820152606401602060405180830381600087803b151561050957600080fd5b6102c65a03f1151561051a57600080fd5b5050506040518051509198975050505050505050565b60026020818152600093845260408085209091529183529120805460018201549190920154600160a060020a039092169183565b60008282604051918252600160a060020a03166c010000000000000000000000000260208201526034016040518091039020905092915050565b60005433600160a060020a039081169116146105b957600080fd5b600155565b60006105c8610da8565b60008033600160a060020a0316600360006105e289610cb0565b8152602081019190915260400160002060010154600160a060020a03161461060957600080fd5b600160a060020a03861660009081526002602090815260408083208a845290915290819020906060905190810160409081528254600160a060020a03908116835260018085015460208086019190915260029586015484860152918b1660009081528583528381208d8252909252918120805473ffffffffffffffffffffffffffffffffffffffff1916815580830182905590930192909255935085141561097d5785600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156106f157600080fd5b6102c65a03f1151561070257600080fd5b50505060405180519250506040830151600114156107a057600160a060020a0382166342427bf884518860006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561077a57600080fd5b6102c65a03f1151561078b57600080fd5b5050506040518051905015156107a057600080fd5b82604001516002141561097d5781600160a060020a0316639b51e35a308860006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561080c57600080fd5b6102c65a03f1151561081d57600080fd5b5050506040518051915050600160a060020a03821663e869d45f84518560200151848a60006040516020015260405160e060020a63ffffffff8716028152600160a060020a03948516600482015260248101939093527fffffffff0000000000000000000000000000000000000000000000000000000090911660448301529091166064820152608401602060405180830381600087803b15156108c057600080fd5b6102c65a03f115156108d157600080fd5b5050506040518051905015156108e657600080fd5b600160a060020a0330168351600160a060020a03161461097d5781600160a060020a0316636c525b138760006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561095757600080fd5b6102c65a03f1151561096857600080fd5b50505060405180519050151561097d57600080fd5b5060019695505050505050565b6000806109978484610564565b60008181526003602052604090208581556001018054600160a060020a03861673ffffffffffffffffffffffffffffffffffffffff1990911617905591508190505092915050565b60006109e9610d91565b6000600360006109f887610cb0565b81526020810191909152604090810160002090805190810160405281548152600190910154600160a060020a03166020820190815290925051600160a060020a0316630905c9f96002845188303360006040516020015260405160e060020a63ffffffff881602815260048101959095526024850193909352600160a060020a0391821660448501528116606484015216608482015260a401602060405180830381600087803b1515610aaa57600080fd5b6102c65a03f11515610abb57600080fd5b5050506040518051600160a060020a0387811660009081526002602081815260408084208685528252909220600191810191909155805473ffffffffffffffffffffffffffffffffffffffff1916928916929092179091559092508301905051600160a060020a0316816000191686600160a060020a03167fb0a346e68cf44757c17c633968bb9f5aa57386c65a96244b1f9ce192414a0e6087604051600160a060020a03909116815260200160405180910390a48160200151600160a060020a031663339e23d18260013360006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a03166044820152606401602060405180830381600087803b1515610bdc57600080fd5b6102c65a03f11515610bed57600080fd5b5050506040518051509095945050505050565b600054600160a060020a031681565b60005433600160a060020a03908116911614610c2a57600080fd5b600160a060020a0381161515610c3f57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60015481565b600081600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610cf857600080fd5b6102c65a03f11515610d0957600080fd5b50505060405180519050600160a060020a0316631c4d5608308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b1515610d7157600080fd5b6102c65a03f11515610d8257600080fd5b50505060405180519392505050565b604080519081016040526000808252602082015290565b6060604051908101604090815260008083526020830181905290820152905600a165627a7a72305820b8e9b1934f741ef1afcba98d303f6420fe885790b8f7dea1be274c0066d721190029",
  "deployedBytecode": "0x6060604052600436106100955763ffffffff60e060020a60003504166302506804811461009a578063049a8170146100d157806306e3a9781461010b5780632453732a1461015b5780632ac2af531461017d578063310ce4e21461019557806368e14dac146101ce578063887fbd1c146101f05780638da5cb5b14610215578063f2fde38b14610244578063f98e87ba14610263575b600080fd5b34156100a557600080fd5b6100b0600435610276565b604051918252600160a060020a031660208201526040908101905180910390f35b34156100dc57600080fd5b6100f9600160a060020a0360043581169060243516604435610298565b60405190815260200160405180910390f35b341561011657600080fd5b61012d600160a060020a0360043516602435610530565b604051600160a060020a03909316835260208301919091526040808301919091526060909101905180910390f35b341561016657600080fd5b6100f9600435600160a060020a0360243516610564565b341561018857600080fd5b61019360043561059e565b005b34156101a057600080fd5b6101ba600435600160a060020a03602435166044356105be565b604051901515815260200160405180910390f35b34156101d957600080fd5b6100f9600435600160a060020a036024351661098a565b34156101fb57600080fd5b6100f9600160a060020a03600435811690602435166109df565b341561022057600080fd5b610228610c00565b604051600160a060020a03909116815260200160405180910390f35b341561024f57600080fd5b610193600160a060020a0360043516610c0f565b341561026e57600080fd5b6100f9610caa565b60036020526000908152604090208054600190910154600160a060020a031682565b60006102a2610d91565b6000806102ad610da8565b600360006102ba8a610cb0565b81526020810191909152604090810160002090805190810160405281548152600190910154600160a060020a031660208201908152909450519250600160a060020a038316630905c9f9600286518b303360006040516020015260405160e060020a63ffffffff881602815260048101959095526024850193909352600160a060020a0391821660448501528116606484015216608482015260a401602060405180830381600087803b151561036f57600080fd5b6102c65a03f1151561038057600080fd5b5050506040518051600160a060020a038a16600090815260026020818152604080842085855290915290912001549093501590506103bd57600080fd5b60606040519081016040908152600160a060020a03808a16835260208084018a90526002838501819052918c16600090815291815282822086835290522090915081908151815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391909116178155602082015160018201556040820151600290910155506020840151600160a060020a0316826000191689600160a060020a03167fa7fae9696194133d49db2024f63bc78c615866be90477c9b2c6ea54c8153893d8a8a604051600160a060020a03909216825260208201526040908101905180910390a482600160a060020a031663339e23d18360013360006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a03166044820152606401602060405180830381600087803b151561050957600080fd5b6102c65a03f1151561051a57600080fd5b5050506040518051509198975050505050505050565b60026020818152600093845260408085209091529183529120805460018201549190920154600160a060020a039092169183565b60008282604051918252600160a060020a03166c010000000000000000000000000260208201526034016040518091039020905092915050565b60005433600160a060020a039081169116146105b957600080fd5b600155565b60006105c8610da8565b60008033600160a060020a0316600360006105e289610cb0565b8152602081019190915260400160002060010154600160a060020a03161461060957600080fd5b600160a060020a03861660009081526002602090815260408083208a845290915290819020906060905190810160409081528254600160a060020a03908116835260018085015460208086019190915260029586015484860152918b1660009081528583528381208d8252909252918120805473ffffffffffffffffffffffffffffffffffffffff1916815580830182905590930192909255935085141561097d5785600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156106f157600080fd5b6102c65a03f1151561070257600080fd5b50505060405180519250506040830151600114156107a057600160a060020a0382166342427bf884518860006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561077a57600080fd5b6102c65a03f1151561078b57600080fd5b5050506040518051905015156107a057600080fd5b82604001516002141561097d5781600160a060020a0316639b51e35a308860006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b151561080c57600080fd5b6102c65a03f1151561081d57600080fd5b5050506040518051915050600160a060020a03821663e869d45f84518560200151848a60006040516020015260405160e060020a63ffffffff8716028152600160a060020a03948516600482015260248101939093527fffffffff0000000000000000000000000000000000000000000000000000000090911660448301529091166064820152608401602060405180830381600087803b15156108c057600080fd5b6102c65a03f115156108d157600080fd5b5050506040518051905015156108e657600080fd5b600160a060020a0330168351600160a060020a03161461097d5781600160a060020a0316636c525b138760006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561095757600080fd5b6102c65a03f1151561096857600080fd5b50505060405180519050151561097d57600080fd5b5060019695505050505050565b6000806109978484610564565b60008181526003602052604090208581556001018054600160a060020a03861673ffffffffffffffffffffffffffffffffffffffff1990911617905591508190505092915050565b60006109e9610d91565b6000600360006109f887610cb0565b81526020810191909152604090810160002090805190810160405281548152600190910154600160a060020a03166020820190815290925051600160a060020a0316630905c9f96002845188303360006040516020015260405160e060020a63ffffffff881602815260048101959095526024850193909352600160a060020a0391821660448501528116606484015216608482015260a401602060405180830381600087803b1515610aaa57600080fd5b6102c65a03f11515610abb57600080fd5b5050506040518051600160a060020a0387811660009081526002602081815260408084208685528252909220600191810191909155805473ffffffffffffffffffffffffffffffffffffffff1916928916929092179091559092508301905051600160a060020a0316816000191686600160a060020a03167fb0a346e68cf44757c17c633968bb9f5aa57386c65a96244b1f9ce192414a0e6087604051600160a060020a03909116815260200160405180910390a48160200151600160a060020a031663339e23d18260013360006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a03166044820152606401602060405180830381600087803b1515610bdc57600080fd5b6102c65a03f11515610bed57600080fd5b5050506040518051509095945050505050565b600054600160a060020a031681565b60005433600160a060020a03908116911614610c2a57600080fd5b600160a060020a0381161515610c3f57600080fd5b600054600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60015481565b600081600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610cf857600080fd5b6102c65a03f11515610d0957600080fd5b50505060405180519050600160a060020a0316631c4d5608308460006040516020015260405160e060020a63ffffffff8516028152600160a060020a03928316600482015291166024820152604401602060405180830381600087803b1515610d7157600080fd5b6102c65a03f11515610d8257600080fd5b50505060405180519392505050565b604080519081016040526000808252602082015290565b6060604051908101604090815260008083526020830181905290820152905600a165627a7a72305820b8e9b1934f741ef1afcba98d303f6420fe885790b8f7dea1be274c0066d721190029",
  "sourceMap": "272:6229:29:-;;;1699:34;;;;;;;;501:5:35;:18;;-1:-1:-1;;;;;509:10:35;501:18;-1:-1:-1;;;;;;501:18:35;;;;;;272:6229:29;;;;;;",
  "deployedSourceMap": "272:6229:29:-;;;;;;;;;-1:-1:-1;;;272:6229:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1608:46;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1608:46:29;;;;;;;;;;;;;;;;3680:1061;;;;;;;;;;-1:-1:-1;;;;;3680:1061:29;;;;;;;;;;;;;;;;;;;;;;;;;;;1324:81;;;;;;;;;;-1:-1:-1;;;;;1324:81:29;;;;;;;;;;-1:-1:-1;;;;;1324:81:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2240:189;;;;;;;;;;;;-1:-1:-1;;;;;2240:189:29;;;;;452:157:27;;;;;;;;;;;;;;;;5056:1443:29;;;;;;;;;;;;-1:-1:-1;;;;;5056:1443:29;;;;;;;;;;;;;;;;;;;;;;;;1836:334;;;;;;;;;;;;-1:-1:-1;;;;;1836:334:29;;;;;2692:717;;;;;;;;;;-1:-1:-1;;;;;2692:717:29;;;;;;;;;;238:20:35;;;;;;;;;;;;;;;-1:-1:-1;;;;;238:20:35;;;;;;;;;;;;;;834:169;;;;;;;;;;-1:-1:-1;;;;;834:169:35;;;;;345:31:27;;;;;;;;;;;;1608:46:29;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1608:46:29;;:::o;3680:1061::-;3829:7;3852:24;;:::i;:::-;3937;3988:18;4213:31;;:::i;:::-;3879:10;:48;3890:36;3918:7;3890:27;:36::i;:::-;3879:48;;;;;;;;;;;;;;;;;3852:75;;;;;;;;;;;;;;;-1:-1:-1;;;;;3852:75:29;;;;;;;;;-1:-1:-1;3964:14:29;3937:41;-1:-1:-1;;;;;;4009:15:29;;;4025:1;4028:6;:17;4047:7;4076:4;4082:10;4009:84;;;;;;;;-1:-1:-1;;;4009:84:29;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4009:84:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4107:31:29;;;;;;:22;:31;;;;;;;;:43;;;;;;;;;:56;;4009:84;;-1:-1:-1;4107:61:29;;-1:-1:-1;4103:100:29;;4184:8;;;4103:100;4247:123;;;;;;;;;;-1:-1:-1;;;;;4247:123:29;;;;;;;;;;;;4291:1;4247:123;;;;;;4380:31;;;4247:123;4380:31;;;;;;;;;:43;;;;;;4247:123;;-1:-1:-1;4247:123:29;;;4380:54;;;-1:-1:-1;;4380:54:29;-1:-1:-1;;;;;4380:54:29;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4531:14:29;;;;-1:-1:-1;;;;;4445:152:29;4507:10;4445:152;;;4486:7;-1:-1:-1;;;;;4445:152:29;;4559:7;4580;4445:152;;-1:-1:-1;;;;;4445:152:29;;;;;;;;;;;;;;;;;;;;4607:7;-1:-1:-1;;;;;4607:17:29;;4625:10;4637:1;4640:10;4607:44;;;;;;;;-1:-1:-1;;;4607:44:29;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4607:44:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4724:10:29;;3680:1061;-1:-1:-1;;;;;;;;3680:1061:29:o;1324:81::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1324:81:29;;;;;:::o;2240:189::-;2357:7;2399:11;2412:8;2389:32;;;;;-1:-1:-1;;;;;2389:32:29;;;;;;;;;;;;;;;;2380:42;;2240:189;;;;:::o;452:157:27:-;654:5:35;;640:10;-1:-1:-1;;;;;640:19:35;;;654:5;;640:19;632:28;;;;;;566:16:27;:36;452:157::o;5056:1443:29:-;5138:4;5309:31;;:::i;:::-;5580:30;5992:18;5288:10;-1:-1:-1;;;;;5220:78:29;:10;:56;5231:44;5266:7;5231:27;:44::i;:::-;5220:56;;;;;;;;;;;;;:64;;;-1:-1:-1;;;;;5220:64:29;:78;5212:87;;;;;;-1:-1:-1;;;;;5343:31:29;;;;;;:22;:31;;;;;;;;:44;;;;;;;;;;;5309:78;;;;;;;;;;;;-1:-1:-1;;;;;5309:78:29;;;;;;;;;;;;;;;;;;;;;;;;;;;5404:31;;;5309:78;5404:31;;;;;;;;;:44;;;;;;;;;5397:51;;-1:-1:-1;;5397:51:29;;;;;;;;;;;;;;;;5309:78;-1:-1:-1;5503:11:29;;5499:972;;;5640:7;-1:-1:-1;;;;;5633:21:29;;:23;;;;;;;;;;;-1:-1:-1;;;5633:23:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5708:21:29;;;;5733:1;5708:26;5704:188;;;-1:-1:-1;;;;;5759:28:29;;;5788:8;:24;5813:7;5759:62;;;;;;;;-1:-1:-1;;;5759:62:29;;;;;;-1:-1:-1;;;;;5759:62:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5758:63;5754:120;;;5845:8;;;5754:120;5946:8;:21;;;5971:1;5946:26;5942:511;;;6013:10;-1:-1:-1;;;;;6013:31:29;;6045:4;6050:7;6013:45;;;;;;;;-1:-1:-1;;;6013:45:29;;;;;;-1:-1:-1;;;;;6013:45:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;6082:25:29;;;6108:8;:24;6134:8;:15;;;6151:11;6163:7;6082:89;;;;;;;;-1:-1:-1;;;6082:89:29;;;;;;-1:-1:-1;;;;;6082:89:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6081:90;6077:147;;;6195:8;;;6077:147;-1:-1:-1;;;;;6281:4:29;6245:41;:8;:24;-1:-1:-1;;;;;6245:41:29;;6241:192;;6316:10;-1:-1:-1;;;;;6316:25:29;;6342:7;6316:34;;;;;;;;-1:-1:-1;;;6316:34:29;;;;;;-1:-1:-1;;;;;6316:34:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6315:35;6311:100;;;6378:8;;;6311:100;-1:-1:-1;6488:4:29;;5056:1443;-1:-1:-1;;;;;;5056:1443:29:o;1836:334::-;1944:7;1967:18;1988:40;2006:11;2019:8;1988:17;:40::i;:::-;2038:22;;;;:10;:22;;;;;:47;;;2095:30;;:41;;-1:-1:-1;;;;;2095:41:29;;-1:-1:-1;;2095:41:29;;;;;;1967:61;-1:-1:-1;1967:61:29;;-1:-1:-1;1836:334:29;;;;;:::o;2692:717::-;2787:7;2810:24;;:::i;:::-;2895:18;2837:10;:48;2848:36;2876:7;2848:27;:36::i;:::-;2837:48;;;;;;;;;;;;;;;;;2810:75;;;;;;;;;;;;;;;-1:-1:-1;;;;;2810:75:29;;;;;;;;;-1:-1:-1;2916:14:29;-1:-1:-1;;;;;2916:22:29;;2939:1;2942:6;:17;2961:7;2990:4;2996:10;2916:91;;;;;;;;-1:-1:-1;;;2916:91:29;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2916:91:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3017:31:29;;;;;;;:22;:31;;;;;;;;:43;;;;;;;;3076:1;3017:56;;;:60;;;;3087:76;;-1:-1:-1;;3087:76:29;;;;;;;;;;;3017:43;;-1:-1:-1;3213:14:29;;;-1:-1:-1;3213:14:29;-1:-1:-1;;;;;3173:71:29;3201:10;3173:71;;;3192:7;-1:-1:-1;;;;;3173:71:29;;3229:14;3173:71;;-1:-1:-1;;;;;3173:71:29;;;;;;;;;;;;;;3254:6;:14;;;-1:-1:-1;;;;;3254:24:29;;3279:10;3291:1;3294:10;3254:51;;;;;;;;-1:-1:-1;;;3254:51:29;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3254:51:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3392:10:29;;2692:717;-1:-1:-1;;;;;2692:717:29:o;238:20:35:-;;;-1:-1:-1;;;;;238:20:35;;:::o;834:169::-;654:5;;640:10;-1:-1:-1;;;;;640:19:35;;;654:5;;640:19;632:28;;;;;;-1:-1:-1;;;;;910:22:35;;;;902:31;;;;;;960:5;;-1:-1:-1;;;;;939:37:35;;;;960:5;939:37;;;;;;;;;;982:5;:16;;-1:-1:-1;;982:16:35;-1:-1:-1;;;;;982:16:35;;;;;;;;;;834:169::o;345:31:27:-;;;;:::o;704:191::-;783:7;829;-1:-1:-1;;;;;829:13:27;;:15;;;;;;;;;;;-1:-1:-1;;;829:15:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;809:56:27;;866:4;879:7;809:79;;;;;;;;-1:-1:-1;;;809:79:27;;;;;;-1:-1:-1;;;;;809:79:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;704:191;-1:-1:-1;;;704:191:27:o;272:6229:29:-;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
  "source": "pragma solidity ^0.4.18;\n\nimport \"../VotingMachines/IntVoteInterface.sol\";\nimport \"./UniversalScheme.sol\";\n\n\n/**\n * @title A scheme to manage the upgrade of an organization.\n * @dev The scheme is used to upgrade the controller of an organization to a new controller.\n */\n\ncontract UpgradeScheme is UniversalScheme, ExecutableInterface {\n    event NewUpgradeProposal(\n        address indexed _avatar,\n        bytes32 indexed _proposalId,\n        address indexed _intVoteInterface,\n        address _newController\n    );\n    event ChangeUpgradeSchemeProposal(\n        address indexed _avatar,\n        bytes32 indexed _proposalId,\n        address indexed _intVoteInterface,\n        address newUpgradeScheme,\n        bytes32 _params\n    );\n    event ProposalExecuted(address indexed _avatar, bytes32 indexed _proposalId);\n    event ProposalDeleted(address indexed _avatar, bytes32 indexed _proposalId);\n\n    // Details of an upgrade proposal:\n    struct UpgradeProposal {\n        address upgradeContract; // Either the new controller we upgrade to, or the new upgrading scheme.\n        bytes32 params; // Params for the new upgrading scheme.\n        uint proposalType; // 1: Upgrade controller, 2: change upgrade scheme.\n    }\n\n    // A mapping from the organization's (Avatar) address to the saved data of the organization:\n    mapping(address=>mapping(bytes32=>UpgradeProposal)) public organizationsProposals;\n\n    // A mapping from hashes to parameters (use to store a particular configuration on the controller)\n    struct Parameters {\n        bytes32 voteParams;\n        IntVoteInterface intVote;\n    }\n\n    mapping(bytes32=>Parameters) public parameters;\n\n    /**\n    * @dev Constructor\n    */\n    function UpgradeScheme() public {}\n\n    /**\n    * @dev hash the parameters, save them if necessary, and return the hash value\n    */\n    function setParameters(\n        bytes32 _voteParams,\n        IntVoteInterface _intVote\n    ) public returns(bytes32)\n    {\n        bytes32 paramsHash = getParametersHash(_voteParams, _intVote);\n        parameters[paramsHash].voteParams = _voteParams;\n        parameters[paramsHash].intVote = _intVote;\n        return paramsHash;\n    }\n\n    /**\n    * @dev return a hash of the given parameters\n    */\n    function getParametersHash(\n        bytes32 _voteParams,\n        IntVoteInterface _intVote\n    ) public pure returns(bytes32)\n    {\n        return  (keccak256(_voteParams, _intVote));\n    }\n\n    /**\n    * @dev propose an upgrade of the organization's controller\n    * @param _avatar avatar of the organization\n    * @param _newController address of the new controller that is being proposed\n    * @return an id which represents the proposal\n    */\n    function proposeUpgrade(Avatar _avatar, address _newController)\n        public\n        returns(bytes32)\n    {\n        Parameters memory params = parameters[getParametersFromController(_avatar)];\n        bytes32 proposalId = params.intVote.propose(2, params.voteParams, _avatar, ExecutableInterface(this),msg.sender);\n        organizationsProposals[_avatar][proposalId].proposalType = 1;\n        organizationsProposals[_avatar][proposalId].upgradeContract = _newController;\n        NewUpgradeProposal(_avatar, proposalId, params.intVote, _newController);\n        params.intVote.ownerVote(proposalId, 1, msg.sender); // Automatically votes `yes` in the name of the proposal submitter.*/\n        return proposalId;\n    }\n\n    /**\n    * @dev propose to replace this scheme by another upgrading scheme\n    * @param _avatar avatar of the organization\n    * @param _scheme address of the new upgrading scheme\n    * @param _params ???\n    * @return an id which represents the proposal\n    */\n    function proposeChangeUpgradingScheme(\n        Avatar _avatar,\n        address _scheme,\n        bytes32 _params\n    )\n        public\n        returns(bytes32)\n    {\n        Parameters memory params = parameters[getParametersFromController(_avatar)];\n        IntVoteInterface intVote = params.intVote;\n        bytes32 proposalId = intVote.propose(2, params.voteParams, _avatar, ExecutableInterface(this),msg.sender);\n        if (organizationsProposals[_avatar][proposalId].proposalType != 0) {\n            revert();\n        }\n\n        UpgradeProposal memory proposal = UpgradeProposal({\n            proposalType: 2,\n            upgradeContract: _scheme,\n            params: _params\n        });\n        organizationsProposals[_avatar][proposalId] = proposal;\n\n        ChangeUpgradeSchemeProposal(\n            _avatar,\n            proposalId,\n            params.intVote,\n            _scheme,\n            _params\n        );\n        intVote.ownerVote(proposalId, 1, msg.sender); // Automatically votes `yes` in the name of the opener.\n        return proposalId;\n    }\n\n    /**\n    * @dev execution of proposals, can only be called by the voting machine in which the vote is held.\n    * @param _proposalId the ID of the voting in the voting machine\n    * @param _avatar address of the controller\n    * @param _param a parameter of the voting result, 0 is no and 1 is yes.\n    */\n    function execute(bytes32 _proposalId, address _avatar, int _param) public returns(bool) {\n        // Check the caller is indeed the voting machine:\n        require(parameters[getParametersFromController(Avatar(_avatar))].intVote == msg.sender);\n        UpgradeProposal memory proposal = organizationsProposals[_avatar][_proposalId];\n        delete organizationsProposals[_avatar][_proposalId];\n        // Check if vote was successful:\n        if (_param == 1) {\n\n        // Define controller and get the params:\n            ControllerInterface controller = ControllerInterface(Avatar(_avatar).owner());\n        // Upgrading controller:\n            if (proposal.proposalType == 1) {\n                if (!controller.upgradeController(proposal.upgradeContract,_avatar)) {\n                    revert();\n                  }\n                }\n\n        // Changing upgrade scheme:\n            if (proposal.proposalType == 2) {\n                bytes4 permissions = controller.getSchemePermissions(this,_avatar);\n\n                if (!controller.registerScheme(proposal.upgradeContract, proposal.params, permissions,_avatar)) {\n                    revert();\n                  }\n                if (proposal.upgradeContract != address(this) ) {\n                    if (!controller.unregisterSelf(_avatar)) {\n                        revert();\n                      }\n                    }\n                  }\n                }\n\n        return true;\n    }\n}\n",
  "sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/universalSchemes/UpgradeScheme.sol",
  "ast": {
    "attributes": {
      "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/universalSchemes/UpgradeScheme.sol",
      "exportedSymbols": {
        "UpgradeScheme": [
          10007
        ]
      }
    },
    "children": [
      {
        "attributes": {
          "literals": [
            "solidity",
            "^",
            "0.4",
            ".18"
          ]
        },
        "id": 9606,
        "name": "PragmaDirective",
        "src": "0:24:29"
      },
      {
        "attributes": {
          "SourceUnit": 3460,
          "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/VotingMachines/IntVoteInterface.sol",
          "file": "../VotingMachines/IntVoteInterface.sol",
          "scope": 10008,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 9607,
        "name": "ImportDirective",
        "src": "26:48:29"
      },
      {
        "attributes": {
          "SourceUnit": 9586,
          "absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/universalSchemes/UniversalScheme.sol",
          "file": "./UniversalScheme.sol",
          "scope": 10008,
          "symbolAliases": [
            null
          ],
          "unitAlias": ""
        },
        "id": 9608,
        "name": "ImportDirective",
        "src": "75:31:29"
      },
      {
        "attributes": {
          "contractDependencies": [
            8021,
            9585,
            9604,
            11445
          ],
          "contractKind": "contract",
          "documentation": "@title A scheme to manage the upgrade of an organization.\n@dev The scheme is used to upgrade the controller of an organization to a new controller.",
          "fullyImplemented": true,
          "linearizedBaseContracts": [
            10007,
            8021,
            9585,
            9604,
            11445
          ],
          "name": "UpgradeScheme",
          "scope": 10008
        },
        "children": [
          {
            "attributes": {
              "arguments": [
                null
              ]
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "UniversalScheme",
                  "referencedDeclaration": 9585,
                  "type": "contract UniversalScheme"
                },
                "id": 9609,
                "name": "UserDefinedTypeName",
                "src": "298:15:29"
              }
            ],
            "id": 9610,
            "name": "InheritanceSpecifier",
            "src": "298:15:29"
          },
          {
            "attributes": {
              "arguments": [
                null
              ]
            },
            "children": [
              {
                "attributes": {
                  "contractScope": null,
                  "name": "ExecutableInterface",
                  "referencedDeclaration": 8021,
                  "type": "contract ExecutableInterface"
                },
                "id": 9611,
                "name": "UserDefinedTypeName",
                "src": "315:19:29"
              }
            ],
            "id": 9612,
            "name": "InheritanceSpecifier",
            "src": "315:19:29"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "NewUpgradeProposal"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_avatar",
                      "scope": 9622,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9613,
                        "name": "ElementaryTypeName",
                        "src": "375:7:29"
                      }
                    ],
                    "id": 9614,
                    "name": "VariableDeclaration",
                    "src": "375:23:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_proposalId",
                      "scope": 9622,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9615,
                        "name": "ElementaryTypeName",
                        "src": "408:7:29"
                      }
                    ],
                    "id": 9616,
                    "name": "VariableDeclaration",
                    "src": "408:27:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_intVoteInterface",
                      "scope": 9622,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9617,
                        "name": "ElementaryTypeName",
                        "src": "445:7:29"
                      }
                    ],
                    "id": 9618,
                    "name": "VariableDeclaration",
                    "src": "445:33:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_newController",
                      "scope": 9622,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9619,
                        "name": "ElementaryTypeName",
                        "src": "488:7:29"
                      }
                    ],
                    "id": 9620,
                    "name": "VariableDeclaration",
                    "src": "488:22:29"
                  }
                ],
                "id": 9621,
                "name": "ParameterList",
                "src": "365:151:29"
              }
            ],
            "id": 9622,
            "name": "EventDefinition",
            "src": "341:176:29"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "ChangeUpgradeSchemeProposal"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_avatar",
                      "scope": 9634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9623,
                        "name": "ElementaryTypeName",
                        "src": "565:7:29"
                      }
                    ],
                    "id": 9624,
                    "name": "VariableDeclaration",
                    "src": "565:23:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_proposalId",
                      "scope": 9634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9625,
                        "name": "ElementaryTypeName",
                        "src": "598:7:29"
                      }
                    ],
                    "id": 9626,
                    "name": "VariableDeclaration",
                    "src": "598:27:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_intVoteInterface",
                      "scope": 9634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9627,
                        "name": "ElementaryTypeName",
                        "src": "635:7:29"
                      }
                    ],
                    "id": 9628,
                    "name": "VariableDeclaration",
                    "src": "635:33:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "newUpgradeScheme",
                      "scope": 9634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9629,
                        "name": "ElementaryTypeName",
                        "src": "678:7:29"
                      }
                    ],
                    "id": 9630,
                    "name": "VariableDeclaration",
                    "src": "678:24:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": false,
                      "name": "_params",
                      "scope": 9634,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9631,
                        "name": "ElementaryTypeName",
                        "src": "712:7:29"
                      }
                    ],
                    "id": 9632,
                    "name": "VariableDeclaration",
                    "src": "712:15:29"
                  }
                ],
                "id": 9633,
                "name": "ParameterList",
                "src": "555:178:29"
              }
            ],
            "id": 9634,
            "name": "EventDefinition",
            "src": "522:212:29"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "ProposalExecuted"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_avatar",
                      "scope": 9640,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9635,
                        "name": "ElementaryTypeName",
                        "src": "762:7:29"
                      }
                    ],
                    "id": 9636,
                    "name": "VariableDeclaration",
                    "src": "762:23:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_proposalId",
                      "scope": 9640,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9637,
                        "name": "ElementaryTypeName",
                        "src": "787:7:29"
                      }
                    ],
                    "id": 9638,
                    "name": "VariableDeclaration",
                    "src": "787:27:29"
                  }
                ],
                "id": 9639,
                "name": "ParameterList",
                "src": "761:54:29"
              }
            ],
            "id": 9640,
            "name": "EventDefinition",
            "src": "739:77:29"
          },
          {
            "attributes": {
              "anonymous": false,
              "name": "ProposalDeleted"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_avatar",
                      "scope": 9646,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9641,
                        "name": "ElementaryTypeName",
                        "src": "843:7:29"
                      }
                    ],
                    "id": 9642,
                    "name": "VariableDeclaration",
                    "src": "843:23:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "indexed": true,
                      "name": "_proposalId",
                      "scope": 9646,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9643,
                        "name": "ElementaryTypeName",
                        "src": "868:7:29"
                      }
                    ],
                    "id": 9644,
                    "name": "VariableDeclaration",
                    "src": "868:27:29"
                  }
                ],
                "id": 9645,
                "name": "ParameterList",
                "src": "842:54:29"
              }
            ],
            "id": 9646,
            "name": "EventDefinition",
            "src": "821:76:29"
          },
          {
            "attributes": {
              "canonicalName": "UpgradeScheme.UpgradeProposal",
              "name": "UpgradeProposal",
              "scope": 10007,
              "visibility": "public"
            },
            "children": [
              {
                "attributes": {
                  "constant": false,
                  "name": "upgradeContract",
                  "scope": 9653,
                  "stateVariable": false,
                  "storageLocation": "default",
                  "type": "address",
                  "value": null,
                  "visibility": "internal"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "address",
                      "type": "address"
                    },
                    "id": 9647,
                    "name": "ElementaryTypeName",
                    "src": "975:7:29"
                  }
                ],
                "id": 9648,
                "name": "VariableDeclaration",
                "src": "975:23:29"
              },
              {
                "attributes": {
                  "constant": false,
                  "name": "params",
                  "scope": 9653,
                  "stateVariable": false,
                  "storageLocation": "default",
                  "type": "bytes32",
                  "value": null,
                  "visibility": "internal"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "bytes32",
                      "type": "bytes32"
                    },
                    "id": 9649,
                    "name": "ElementaryTypeName",
                    "src": "1081:7:29"
                  }
                ],
                "id": 9650,
                "name": "VariableDeclaration",
                "src": "1081:14:29"
              },
              {
                "attributes": {
                  "constant": false,
                  "name": "proposalType",
                  "scope": 9653,
                  "stateVariable": false,
                  "storageLocation": "default",
                  "type": "uint256",
                  "value": null,
                  "visibility": "internal"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "uint",
                      "type": "uint256"
                    },
                    "id": 9651,
                    "name": "ElementaryTypeName",
                    "src": "1145:4:29"
                  }
                ],
                "id": 9652,
                "name": "VariableDeclaration",
                "src": "1145:17:29"
              }
            ],
            "id": 9653,
            "name": "StructDefinition",
            "src": "942:279:29"
          },
          {
            "attributes": {
              "constant": false,
              "name": "organizationsProposals",
              "scope": 10007,
              "stateVariable": true,
              "storageLocation": "default",
              "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
              "value": null,
              "visibility": "public"
            },
            "children": [
              {
                "attributes": {
                  "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "address",
                      "type": "address"
                    },
                    "id": 9654,
                    "name": "ElementaryTypeName",
                    "src": "1332:7:29"
                  },
                  {
                    "attributes": {
                      "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9655,
                        "name": "ElementaryTypeName",
                        "src": "1349:7:29"
                      },
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "UpgradeProposal",
                          "referencedDeclaration": 9653,
                          "type": "struct UpgradeScheme.UpgradeProposal storage pointer"
                        },
                        "id": 9656,
                        "name": "UserDefinedTypeName",
                        "src": "1358:15:29"
                      }
                    ],
                    "id": 9657,
                    "name": "Mapping",
                    "src": "1341:33:29"
                  }
                ],
                "id": 9658,
                "name": "Mapping",
                "src": "1324:51:29"
              }
            ],
            "id": 9659,
            "name": "VariableDeclaration",
            "src": "1324:81:29"
          },
          {
            "attributes": {
              "canonicalName": "UpgradeScheme.Parameters",
              "name": "Parameters",
              "scope": 10007,
              "visibility": "public"
            },
            "children": [
              {
                "attributes": {
                  "constant": false,
                  "name": "voteParams",
                  "scope": 9664,
                  "stateVariable": false,
                  "storageLocation": "default",
                  "type": "bytes32",
                  "value": null,
                  "visibility": "internal"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "bytes32",
                      "type": "bytes32"
                    },
                    "id": 9660,
                    "name": "ElementaryTypeName",
                    "src": "1543:7:29"
                  }
                ],
                "id": 9661,
                "name": "VariableDeclaration",
                "src": "1543:18:29"
              },
              {
                "attributes": {
                  "constant": false,
                  "name": "intVote",
                  "scope": 9664,
                  "stateVariable": false,
                  "storageLocation": "default",
                  "type": "contract IntVoteInterface",
                  "value": null,
                  "visibility": "internal"
                },
                "children": [
                  {
                    "attributes": {
                      "contractScope": null,
                      "name": "IntVoteInterface",
                      "referencedDeclaration": 3459,
                      "type": "contract IntVoteInterface"
                    },
                    "id": 9662,
                    "name": "UserDefinedTypeName",
                    "src": "1571:16:29"
                  }
                ],
                "id": 9663,
                "name": "VariableDeclaration",
                "src": "1571:24:29"
              }
            ],
            "id": 9664,
            "name": "StructDefinition",
            "src": "1515:87:29"
          },
          {
            "attributes": {
              "constant": false,
              "name": "parameters",
              "scope": 10007,
              "stateVariable": true,
              "storageLocation": "default",
              "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
              "value": null,
              "visibility": "public"
            },
            "children": [
              {
                "attributes": {
                  "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)"
                },
                "children": [
                  {
                    "attributes": {
                      "name": "bytes32",
                      "type": "bytes32"
                    },
                    "id": 9665,
                    "name": "ElementaryTypeName",
                    "src": "1616:7:29"
                  },
                  {
                    "attributes": {
                      "contractScope": null,
                      "name": "Parameters",
                      "referencedDeclaration": 9664,
                      "type": "struct UpgradeScheme.Parameters storage pointer"
                    },
                    "id": 9666,
                    "name": "UserDefinedTypeName",
                    "src": "1625:10:29"
                  }
                ],
                "id": 9667,
                "name": "Mapping",
                "src": "1608:28:29"
              }
            ],
            "id": 9668,
            "name": "VariableDeclaration",
            "src": "1608:46:29"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": true,
              "modifiers": [
                null
              ],
              "name": "UpgradeScheme",
              "payable": false,
              "scope": 10007,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 9669,
                "name": "ParameterList",
                "src": "1721:2:29"
              },
              {
                "attributes": {
                  "parameters": [
                    null
                  ]
                },
                "children": [],
                "id": 9670,
                "name": "ParameterList",
                "src": "1731:0:29"
              },
              {
                "attributes": {
                  "statements": [
                    null
                  ]
                },
                "children": [],
                "id": 9671,
                "name": "Block",
                "src": "1731:2:29"
              }
            ],
            "id": 9672,
            "name": "FunctionDefinition",
            "src": "1699:34:29"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "setParameters",
              "payable": false,
              "scope": 10007,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_voteParams",
                      "scope": 9705,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9673,
                        "name": "ElementaryTypeName",
                        "src": "1868:7:29"
                      }
                    ],
                    "id": 9674,
                    "name": "VariableDeclaration",
                    "src": "1868:19:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_intVote",
                      "scope": 9705,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract IntVoteInterface",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "IntVoteInterface",
                          "referencedDeclaration": 3459,
                          "type": "contract IntVoteInterface"
                        },
                        "id": 9675,
                        "name": "UserDefinedTypeName",
                        "src": "1897:16:29"
                      }
                    ],
                    "id": 9676,
                    "name": "VariableDeclaration",
                    "src": "1897:25:29"
                  }
                ],
                "id": 9677,
                "name": "ParameterList",
                "src": "1858:70:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 9705,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9678,
                        "name": "ElementaryTypeName",
                        "src": "1944:7:29"
                      }
                    ],
                    "id": 9679,
                    "name": "VariableDeclaration",
                    "src": "1944:7:29"
                  }
                ],
                "id": 9680,
                "name": "ParameterList",
                "src": "1943:9:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "assignments": [
                        9682
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "paramsHash",
                          "scope": 9705,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bytes32",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bytes32",
                              "type": "bytes32"
                            },
                            "id": 9681,
                            "name": "ElementaryTypeName",
                            "src": "1967:7:29"
                          }
                        ],
                        "id": 9682,
                        "name": "VariableDeclaration",
                        "src": "1967:18:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bytes32",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_contract$_IntVoteInterface_$3459",
                                  "typeString": "contract IntVoteInterface"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9721,
                              "type": "function (bytes32,contract IntVoteInterface) pure returns (bytes32)",
                              "value": "getParametersHash"
                            },
                            "id": 9683,
                            "name": "Identifier",
                            "src": "1988:17:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9674,
                              "type": "bytes32",
                              "value": "_voteParams"
                            },
                            "id": 9684,
                            "name": "Identifier",
                            "src": "2006:11:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9676,
                              "type": "contract IntVoteInterface",
                              "value": "_intVote"
                            },
                            "id": 9685,
                            "name": "Identifier",
                            "src": "2019:8:29"
                          }
                        ],
                        "id": 9686,
                        "name": "FunctionCall",
                        "src": "1988:40:29"
                      }
                    ],
                    "id": 9687,
                    "name": "VariableDeclarationStatement",
                    "src": "1967:61:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "bytes32"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "member_name": "voteParams",
                              "referencedDeclaration": 9661,
                              "type": "bytes32"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "struct UpgradeScheme.Parameters storage ref"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9668,
                                      "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
                                      "value": "parameters"
                                    },
                                    "id": 9688,
                                    "name": "Identifier",
                                    "src": "2038:10:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9682,
                                      "type": "bytes32",
                                      "value": "paramsHash"
                                    },
                                    "id": 9689,
                                    "name": "Identifier",
                                    "src": "2049:10:29"
                                  }
                                ],
                                "id": 9690,
                                "name": "IndexAccess",
                                "src": "2038:22:29"
                              }
                            ],
                            "id": 9691,
                            "name": "MemberAccess",
                            "src": "2038:33:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9674,
                              "type": "bytes32",
                              "value": "_voteParams"
                            },
                            "id": 9692,
                            "name": "Identifier",
                            "src": "2074:11:29"
                          }
                        ],
                        "id": 9693,
                        "name": "Assignment",
                        "src": "2038:47:29"
                      }
                    ],
                    "id": 9694,
                    "name": "ExpressionStatement",
                    "src": "2038:47:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "contract IntVoteInterface"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "member_name": "intVote",
                              "referencedDeclaration": 9663,
                              "type": "contract IntVoteInterface"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "struct UpgradeScheme.Parameters storage ref"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9668,
                                      "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
                                      "value": "parameters"
                                    },
                                    "id": 9695,
                                    "name": "Identifier",
                                    "src": "2095:10:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9682,
                                      "type": "bytes32",
                                      "value": "paramsHash"
                                    },
                                    "id": 9696,
                                    "name": "Identifier",
                                    "src": "2106:10:29"
                                  }
                                ],
                                "id": 9697,
                                "name": "IndexAccess",
                                "src": "2095:22:29"
                              }
                            ],
                            "id": 9698,
                            "name": "MemberAccess",
                            "src": "2095:30:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9676,
                              "type": "contract IntVoteInterface",
                              "value": "_intVote"
                            },
                            "id": 9699,
                            "name": "Identifier",
                            "src": "2128:8:29"
                          }
                        ],
                        "id": 9700,
                        "name": "Assignment",
                        "src": "2095:41:29"
                      }
                    ],
                    "id": 9701,
                    "name": "ExpressionStatement",
                    "src": "2095:41:29"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 9680
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 9682,
                          "type": "bytes32",
                          "value": "paramsHash"
                        },
                        "id": 9702,
                        "name": "Identifier",
                        "src": "2153:10:29"
                      }
                    ],
                    "id": 9703,
                    "name": "Return",
                    "src": "2146:17:29"
                  }
                ],
                "id": 9704,
                "name": "Block",
                "src": "1957:213:29"
              }
            ],
            "id": 9705,
            "name": "FunctionDefinition",
            "src": "1836:334:29"
          },
          {
            "attributes": {
              "constant": true,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "getParametersHash",
              "payable": false,
              "scope": 10007,
              "stateMutability": "pure",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_voteParams",
                      "scope": 9721,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9706,
                        "name": "ElementaryTypeName",
                        "src": "2276:7:29"
                      }
                    ],
                    "id": 9707,
                    "name": "VariableDeclaration",
                    "src": "2276:19:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_intVote",
                      "scope": 9721,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract IntVoteInterface",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "IntVoteInterface",
                          "referencedDeclaration": 3459,
                          "type": "contract IntVoteInterface"
                        },
                        "id": 9708,
                        "name": "UserDefinedTypeName",
                        "src": "2305:16:29"
                      }
                    ],
                    "id": 9709,
                    "name": "VariableDeclaration",
                    "src": "2305:25:29"
                  }
                ],
                "id": 9710,
                "name": "ParameterList",
                "src": "2266:70:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 9721,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9711,
                        "name": "ElementaryTypeName",
                        "src": "2357:7:29"
                      }
                    ],
                    "id": 9712,
                    "name": "VariableDeclaration",
                    "src": "2357:7:29"
                  }
                ],
                "id": 9713,
                "name": "ParameterList",
                "src": "2356:9:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "functionReturnParameters": 9713
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isInlineArray": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "type": "bytes32"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "bytes32",
                              "type_conversion": false
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_bytes32",
                                      "typeString": "bytes32"
                                    },
                                    {
                                      "typeIdentifier": "t_contract$_IntVoteInterface_$3459",
                                      "typeString": "contract IntVoteInterface"
                                    }
                                  ],
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12005,
                                  "type": "function () pure returns (bytes32)",
                                  "value": "keccak256"
                                },
                                "id": 9714,
                                "name": "Identifier",
                                "src": "2389:9:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9707,
                                  "type": "bytes32",
                                  "value": "_voteParams"
                                },
                                "id": 9715,
                                "name": "Identifier",
                                "src": "2399:11:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9709,
                                  "type": "contract IntVoteInterface",
                                  "value": "_intVote"
                                },
                                "id": 9716,
                                "name": "Identifier",
                                "src": "2412:8:29"
                              }
                            ],
                            "id": 9717,
                            "name": "FunctionCall",
                            "src": "2389:32:29"
                          }
                        ],
                        "id": 9718,
                        "name": "TupleExpression",
                        "src": "2388:34:29"
                      }
                    ],
                    "id": 9719,
                    "name": "Return",
                    "src": "2380:42:29"
                  }
                ],
                "id": 9720,
                "name": "Block",
                "src": "2370:59:29"
              }
            ],
            "id": 9721,
            "name": "FunctionDefinition",
            "src": "2240:189:29"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "proposeUpgrade",
              "payable": false,
              "scope": 10007,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_avatar",
                      "scope": 9794,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract Avatar",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "Avatar",
                          "referencedDeclaration": 3873,
                          "type": "contract Avatar"
                        },
                        "id": 9722,
                        "name": "UserDefinedTypeName",
                        "src": "2716:6:29"
                      }
                    ],
                    "id": 9723,
                    "name": "VariableDeclaration",
                    "src": "2716:14:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_newController",
                      "scope": 9794,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9724,
                        "name": "ElementaryTypeName",
                        "src": "2732:7:29"
                      }
                    ],
                    "id": 9725,
                    "name": "VariableDeclaration",
                    "src": "2732:22:29"
                  }
                ],
                "id": 9726,
                "name": "ParameterList",
                "src": "2715:40:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 9794,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9727,
                        "name": "ElementaryTypeName",
                        "src": "2787:7:29"
                      }
                    ],
                    "id": 9728,
                    "name": "VariableDeclaration",
                    "src": "2787:7:29"
                  }
                ],
                "id": 9729,
                "name": "ParameterList",
                "src": "2786:9:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "assignments": [
                        9731
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "params",
                          "scope": 9794,
                          "stateVariable": false,
                          "storageLocation": "memory",
                          "type": "struct UpgradeScheme.Parameters memory",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "contractScope": null,
                              "name": "Parameters",
                              "referencedDeclaration": 9664,
                              "type": "struct UpgradeScheme.Parameters storage pointer"
                            },
                            "id": 9730,
                            "name": "UserDefinedTypeName",
                            "src": "2810:10:29"
                          }
                        ],
                        "id": 9731,
                        "name": "VariableDeclaration",
                        "src": "2810:24:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "type": "struct UpgradeScheme.Parameters storage ref"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9668,
                              "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
                              "value": "parameters"
                            },
                            "id": 9732,
                            "name": "Identifier",
                            "src": "2837:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "bytes32",
                              "type_conversion": false
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_contract$_Avatar_$3873",
                                      "typeString": "contract Avatar"
                                    }
                                  ],
                                  "overloadedDeclarations": [
                                    9584
                                  ],
                                  "referencedDeclaration": 9584,
                                  "type": "function (contract Avatar) view returns (bytes32)",
                                  "value": "getParametersFromController"
                                },
                                "id": 9733,
                                "name": "Identifier",
                                "src": "2848:27:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9723,
                                  "type": "contract Avatar",
                                  "value": "_avatar"
                                },
                                "id": 9734,
                                "name": "Identifier",
                                "src": "2876:7:29"
                              }
                            ],
                            "id": 9735,
                            "name": "FunctionCall",
                            "src": "2848:36:29"
                          }
                        ],
                        "id": 9736,
                        "name": "IndexAccess",
                        "src": "2837:48:29"
                      }
                    ],
                    "id": 9737,
                    "name": "VariableDeclarationStatement",
                    "src": "2810:75:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        9739
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "proposalId",
                          "scope": 9794,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bytes32",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bytes32",
                              "type": "bytes32"
                            },
                            "id": 9738,
                            "name": "ElementaryTypeName",
                            "src": "2895:7:29"
                          }
                        ],
                        "id": 9739,
                        "name": "VariableDeclaration",
                        "src": "2895:18:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bytes32",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_contract$_Avatar_$3873",
                                  "typeString": "contract Avatar"
                                },
                                {
                                  "typeIdentifier": "t_contract$_ExecutableInterface_$8021",
                                  "typeString": "contract ExecutableInterface"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "propose",
                              "referencedDeclaration": 3371,
                              "type": "function (uint256,bytes32,address,contract ExecutableInterface,address) external returns (bytes32)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "member_name": "intVote",
                                  "referencedDeclaration": 9663,
                                  "type": "contract IntVoteInterface"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9731,
                                      "type": "struct UpgradeScheme.Parameters memory",
                                      "value": "params"
                                    },
                                    "id": 9740,
                                    "name": "Identifier",
                                    "src": "2916:6:29"
                                  }
                                ],
                                "id": 9741,
                                "name": "MemberAccess",
                                "src": "2916:14:29"
                              }
                            ],
                            "id": 9742,
                            "name": "MemberAccess",
                            "src": "2916:22:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "32",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 2",
                              "value": "2"
                            },
                            "id": 9743,
                            "name": "Literal",
                            "src": "2939:1:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "voteParams",
                              "referencedDeclaration": 9661,
                              "type": "bytes32"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9731,
                                  "type": "struct UpgradeScheme.Parameters memory",
                                  "value": "params"
                                },
                                "id": 9744,
                                "name": "Identifier",
                                "src": "2942:6:29"
                              }
                            ],
                            "id": 9745,
                            "name": "MemberAccess",
                            "src": "2942:17:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9723,
                              "type": "contract Avatar",
                              "value": "_avatar"
                            },
                            "id": 9746,
                            "name": "Identifier",
                            "src": "2961:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "contract ExecutableInterface",
                              "type_conversion": true
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_contract$_UpgradeScheme_$10007",
                                      "typeString": "contract UpgradeScheme"
                                    }
                                  ],
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 8021,
                                  "type": "type(contract ExecutableInterface)",
                                  "value": "ExecutableInterface"
                                },
                                "id": 9747,
                                "name": "Identifier",
                                "src": "2970:19:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12104,
                                  "type": "contract UpgradeScheme",
                                  "value": "this"
                                },
                                "id": 9748,
                                "name": "Identifier",
                                "src": "2990:4:29"
                              }
                            ],
                            "id": 9749,
                            "name": "FunctionCall",
                            "src": "2970:25:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "sender",
                              "referencedDeclaration": null,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12011,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 9750,
                                "name": "Identifier",
                                "src": "2996:3:29"
                              }
                            ],
                            "id": 9751,
                            "name": "MemberAccess",
                            "src": "2996:10:29"
                          }
                        ],
                        "id": 9752,
                        "name": "FunctionCall",
                        "src": "2916:91:29"
                      }
                    ],
                    "id": 9753,
                    "name": "VariableDeclarationStatement",
                    "src": "2895:112:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "uint256"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "member_name": "proposalType",
                              "referencedDeclaration": 9652,
                              "type": "uint256"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9659,
                                          "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                          "value": "organizationsProposals"
                                        },
                                        "id": 9754,
                                        "name": "Identifier",
                                        "src": "3017:22:29"
                                      },
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9723,
                                          "type": "contract Avatar",
                                          "value": "_avatar"
                                        },
                                        "id": 9755,
                                        "name": "Identifier",
                                        "src": "3040:7:29"
                                      }
                                    ],
                                    "id": 9757,
                                    "name": "IndexAccess",
                                    "src": "3017:31:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9739,
                                      "type": "bytes32",
                                      "value": "proposalId"
                                    },
                                    "id": 9756,
                                    "name": "Identifier",
                                    "src": "3049:10:29"
                                  }
                                ],
                                "id": 9758,
                                "name": "IndexAccess",
                                "src": "3017:43:29"
                              }
                            ],
                            "id": 9759,
                            "name": "MemberAccess",
                            "src": "3017:56:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "31",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 1",
                              "value": "1"
                            },
                            "id": 9760,
                            "name": "Literal",
                            "src": "3076:1:29"
                          }
                        ],
                        "id": 9761,
                        "name": "Assignment",
                        "src": "3017:60:29"
                      }
                    ],
                    "id": 9762,
                    "name": "ExpressionStatement",
                    "src": "3017:60:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "address"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "member_name": "upgradeContract",
                              "referencedDeclaration": 9648,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9659,
                                          "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                          "value": "organizationsProposals"
                                        },
                                        "id": 9763,
                                        "name": "Identifier",
                                        "src": "3087:22:29"
                                      },
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9723,
                                          "type": "contract Avatar",
                                          "value": "_avatar"
                                        },
                                        "id": 9764,
                                        "name": "Identifier",
                                        "src": "3110:7:29"
                                      }
                                    ],
                                    "id": 9766,
                                    "name": "IndexAccess",
                                    "src": "3087:31:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9739,
                                      "type": "bytes32",
                                      "value": "proposalId"
                                    },
                                    "id": 9765,
                                    "name": "Identifier",
                                    "src": "3119:10:29"
                                  }
                                ],
                                "id": 9767,
                                "name": "IndexAccess",
                                "src": "3087:43:29"
                              }
                            ],
                            "id": 9768,
                            "name": "MemberAccess",
                            "src": "3087:59:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9725,
                              "type": "address",
                              "value": "_newController"
                            },
                            "id": 9769,
                            "name": "Identifier",
                            "src": "3149:14:29"
                          }
                        ],
                        "id": 9770,
                        "name": "Assignment",
                        "src": "3087:76:29"
                      }
                    ],
                    "id": 9771,
                    "name": "ExpressionStatement",
                    "src": "3087:76:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "tuple()",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_Avatar_$3873",
                                  "typeString": "contract Avatar"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_contract$_IntVoteInterface_$3459",
                                  "typeString": "contract IntVoteInterface"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9622,
                              "type": "function (address,bytes32,address,address)",
                              "value": "NewUpgradeProposal"
                            },
                            "id": 9772,
                            "name": "Identifier",
                            "src": "3173:18:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9723,
                              "type": "contract Avatar",
                              "value": "_avatar"
                            },
                            "id": 9773,
                            "name": "Identifier",
                            "src": "3192:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9739,
                              "type": "bytes32",
                              "value": "proposalId"
                            },
                            "id": 9774,
                            "name": "Identifier",
                            "src": "3201:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "intVote",
                              "referencedDeclaration": 9663,
                              "type": "contract IntVoteInterface"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9731,
                                  "type": "struct UpgradeScheme.Parameters memory",
                                  "value": "params"
                                },
                                "id": 9775,
                                "name": "Identifier",
                                "src": "3213:6:29"
                              }
                            ],
                            "id": 9776,
                            "name": "MemberAccess",
                            "src": "3213:14:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9725,
                              "type": "address",
                              "value": "_newController"
                            },
                            "id": 9777,
                            "name": "Identifier",
                            "src": "3229:14:29"
                          }
                        ],
                        "id": 9778,
                        "name": "FunctionCall",
                        "src": "3173:71:29"
                      }
                    ],
                    "id": 9779,
                    "name": "ExpressionStatement",
                    "src": "3173:71:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bool",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "ownerVote",
                              "referencedDeclaration": 3398,
                              "type": "function (bytes32,uint256,address) external returns (bool)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "member_name": "intVote",
                                  "referencedDeclaration": 9663,
                                  "type": "contract IntVoteInterface"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9731,
                                      "type": "struct UpgradeScheme.Parameters memory",
                                      "value": "params"
                                    },
                                    "id": 9780,
                                    "name": "Identifier",
                                    "src": "3254:6:29"
                                  }
                                ],
                                "id": 9783,
                                "name": "MemberAccess",
                                "src": "3254:14:29"
                              }
                            ],
                            "id": 9784,
                            "name": "MemberAccess",
                            "src": "3254:24:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9739,
                              "type": "bytes32",
                              "value": "proposalId"
                            },
                            "id": 9785,
                            "name": "Identifier",
                            "src": "3279:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "31",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 1",
                              "value": "1"
                            },
                            "id": 9786,
                            "name": "Literal",
                            "src": "3291:1:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "sender",
                              "referencedDeclaration": null,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12011,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 9787,
                                "name": "Identifier",
                                "src": "3294:3:29"
                              }
                            ],
                            "id": 9788,
                            "name": "MemberAccess",
                            "src": "3294:10:29"
                          }
                        ],
                        "id": 9789,
                        "name": "FunctionCall",
                        "src": "3254:51:29"
                      }
                    ],
                    "id": 9790,
                    "name": "ExpressionStatement",
                    "src": "3254:51:29"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 9729
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 9739,
                          "type": "bytes32",
                          "value": "proposalId"
                        },
                        "id": 9791,
                        "name": "Identifier",
                        "src": "3392:10:29"
                      }
                    ],
                    "id": 9792,
                    "name": "Return",
                    "src": "3385:17:29"
                  }
                ],
                "id": 9793,
                "name": "Block",
                "src": "2800:609:29"
              }
            ],
            "id": 9794,
            "name": "FunctionDefinition",
            "src": "2692:717:29"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "proposeChangeUpgradingScheme",
              "payable": false,
              "scope": 10007,
              "stateMutability": "nonpayable",
              "superFunction": null,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_avatar",
                      "scope": 9883,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "contract Avatar",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "contractScope": null,
                          "name": "Avatar",
                          "referencedDeclaration": 3873,
                          "type": "contract Avatar"
                        },
                        "id": 9795,
                        "name": "UserDefinedTypeName",
                        "src": "3727:6:29"
                      }
                    ],
                    "id": 9796,
                    "name": "VariableDeclaration",
                    "src": "3727:14:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_scheme",
                      "scope": 9883,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9797,
                        "name": "ElementaryTypeName",
                        "src": "3751:7:29"
                      }
                    ],
                    "id": 9798,
                    "name": "VariableDeclaration",
                    "src": "3751:15:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_params",
                      "scope": 9883,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9799,
                        "name": "ElementaryTypeName",
                        "src": "3776:7:29"
                      }
                    ],
                    "id": 9800,
                    "name": "VariableDeclaration",
                    "src": "3776:15:29"
                  }
                ],
                "id": 9801,
                "name": "ParameterList",
                "src": "3717:80:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 9883,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9802,
                        "name": "ElementaryTypeName",
                        "src": "3829:7:29"
                      }
                    ],
                    "id": 9803,
                    "name": "VariableDeclaration",
                    "src": "3829:7:29"
                  }
                ],
                "id": 9804,
                "name": "ParameterList",
                "src": "3828:9:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "assignments": [
                        9806
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "params",
                          "scope": 9883,
                          "stateVariable": false,
                          "storageLocation": "memory",
                          "type": "struct UpgradeScheme.Parameters memory",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "contractScope": null,
                              "name": "Parameters",
                              "referencedDeclaration": 9664,
                              "type": "struct UpgradeScheme.Parameters storage pointer"
                            },
                            "id": 9805,
                            "name": "UserDefinedTypeName",
                            "src": "3852:10:29"
                          }
                        ],
                        "id": 9806,
                        "name": "VariableDeclaration",
                        "src": "3852:24:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "type": "struct UpgradeScheme.Parameters storage ref"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9668,
                              "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
                              "value": "parameters"
                            },
                            "id": 9807,
                            "name": "Identifier",
                            "src": "3879:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "bytes32",
                              "type_conversion": false
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_contract$_Avatar_$3873",
                                      "typeString": "contract Avatar"
                                    }
                                  ],
                                  "overloadedDeclarations": [
                                    9584
                                  ],
                                  "referencedDeclaration": 9584,
                                  "type": "function (contract Avatar) view returns (bytes32)",
                                  "value": "getParametersFromController"
                                },
                                "id": 9808,
                                "name": "Identifier",
                                "src": "3890:27:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9796,
                                  "type": "contract Avatar",
                                  "value": "_avatar"
                                },
                                "id": 9809,
                                "name": "Identifier",
                                "src": "3918:7:29"
                              }
                            ],
                            "id": 9810,
                            "name": "FunctionCall",
                            "src": "3890:36:29"
                          }
                        ],
                        "id": 9811,
                        "name": "IndexAccess",
                        "src": "3879:48:29"
                      }
                    ],
                    "id": 9812,
                    "name": "VariableDeclarationStatement",
                    "src": "3852:75:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        9814
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "intVote",
                          "scope": 9883,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "contract IntVoteInterface",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "contractScope": null,
                              "name": "IntVoteInterface",
                              "referencedDeclaration": 3459,
                              "type": "contract IntVoteInterface"
                            },
                            "id": 9813,
                            "name": "UserDefinedTypeName",
                            "src": "3937:16:29"
                          }
                        ],
                        "id": 9814,
                        "name": "VariableDeclaration",
                        "src": "3937:24:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "member_name": "intVote",
                          "referencedDeclaration": 9663,
                          "type": "contract IntVoteInterface"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9806,
                              "type": "struct UpgradeScheme.Parameters memory",
                              "value": "params"
                            },
                            "id": 9815,
                            "name": "Identifier",
                            "src": "3964:6:29"
                          }
                        ],
                        "id": 9816,
                        "name": "MemberAccess",
                        "src": "3964:14:29"
                      }
                    ],
                    "id": 9817,
                    "name": "VariableDeclarationStatement",
                    "src": "3937:41:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        9819
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "proposalId",
                          "scope": 9883,
                          "stateVariable": false,
                          "storageLocation": "default",
                          "type": "bytes32",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "name": "bytes32",
                              "type": "bytes32"
                            },
                            "id": 9818,
                            "name": "ElementaryTypeName",
                            "src": "3988:7:29"
                          }
                        ],
                        "id": 9819,
                        "name": "VariableDeclaration",
                        "src": "3988:18:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bytes32",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_rational_2_by_1",
                                  "typeString": "int_const 2"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_contract$_Avatar_$3873",
                                  "typeString": "contract Avatar"
                                },
                                {
                                  "typeIdentifier": "t_contract$_ExecutableInterface_$8021",
                                  "typeString": "contract ExecutableInterface"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "propose",
                              "referencedDeclaration": 3371,
                              "type": "function (uint256,bytes32,address,contract ExecutableInterface,address) external returns (bytes32)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9814,
                                  "type": "contract IntVoteInterface",
                                  "value": "intVote"
                                },
                                "id": 9820,
                                "name": "Identifier",
                                "src": "4009:7:29"
                              }
                            ],
                            "id": 9821,
                            "name": "MemberAccess",
                            "src": "4009:15:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "32",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 2",
                              "value": "2"
                            },
                            "id": 9822,
                            "name": "Literal",
                            "src": "4025:1:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "voteParams",
                              "referencedDeclaration": 9661,
                              "type": "bytes32"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9806,
                                  "type": "struct UpgradeScheme.Parameters memory",
                                  "value": "params"
                                },
                                "id": 9823,
                                "name": "Identifier",
                                "src": "4028:6:29"
                              }
                            ],
                            "id": 9824,
                            "name": "MemberAccess",
                            "src": "4028:17:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9796,
                              "type": "contract Avatar",
                              "value": "_avatar"
                            },
                            "id": 9825,
                            "name": "Identifier",
                            "src": "4047:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "isStructConstructorCall": false,
                              "lValueRequested": false,
                              "names": [
                                null
                              ],
                              "type": "contract ExecutableInterface",
                              "type_conversion": true
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": [
                                    {
                                      "typeIdentifier": "t_contract$_UpgradeScheme_$10007",
                                      "typeString": "contract UpgradeScheme"
                                    }
                                  ],
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 8021,
                                  "type": "type(contract ExecutableInterface)",
                                  "value": "ExecutableInterface"
                                },
                                "id": 9826,
                                "name": "Identifier",
                                "src": "4056:19:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12104,
                                  "type": "contract UpgradeScheme",
                                  "value": "this"
                                },
                                "id": 9827,
                                "name": "Identifier",
                                "src": "4076:4:29"
                              }
                            ],
                            "id": 9828,
                            "name": "FunctionCall",
                            "src": "4056:25:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "sender",
                              "referencedDeclaration": null,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12011,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 9829,
                                "name": "Identifier",
                                "src": "4082:3:29"
                              }
                            ],
                            "id": 9830,
                            "name": "MemberAccess",
                            "src": "4082:10:29"
                          }
                        ],
                        "id": 9831,
                        "name": "FunctionCall",
                        "src": "4009:84:29"
                      }
                    ],
                    "id": 9832,
                    "name": "VariableDeclarationStatement",
                    "src": "3988:105:29"
                  },
                  {
                    "attributes": {
                      "falseBody": null
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "!=",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "proposalType",
                              "referencedDeclaration": 9652,
                              "type": "uint256"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9659,
                                          "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                          "value": "organizationsProposals"
                                        },
                                        "id": 9833,
                                        "name": "Identifier",
                                        "src": "4107:22:29"
                                      },
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9796,
                                          "type": "contract Avatar",
                                          "value": "_avatar"
                                        },
                                        "id": 9834,
                                        "name": "Identifier",
                                        "src": "4130:7:29"
                                      }
                                    ],
                                    "id": 9835,
                                    "name": "IndexAccess",
                                    "src": "4107:31:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9819,
                                      "type": "bytes32",
                                      "value": "proposalId"
                                    },
                                    "id": 9836,
                                    "name": "Identifier",
                                    "src": "4139:10:29"
                                  }
                                ],
                                "id": 9837,
                                "name": "IndexAccess",
                                "src": "4107:43:29"
                              }
                            ],
                            "id": 9838,
                            "name": "MemberAccess",
                            "src": "4107:56:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "30",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 0",
                              "value": "0"
                            },
                            "id": 9839,
                            "name": "Literal",
                            "src": "4167:1:29"
                          }
                        ],
                        "id": 9840,
                        "name": "BinaryOperation",
                        "src": "4107:61:29"
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "arguments": [
                                    null
                                  ],
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "type": "tuple()",
                                  "type_conversion": false
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        null
                                      ],
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 12015,
                                      "type": "function () pure",
                                      "value": "revert"
                                    },
                                    "id": 9841,
                                    "name": "Identifier",
                                    "src": "4184:6:29"
                                  }
                                ],
                                "id": 9842,
                                "name": "FunctionCall",
                                "src": "4184:8:29"
                              }
                            ],
                            "id": 9843,
                            "name": "ExpressionStatement",
                            "src": "4184:8:29"
                          }
                        ],
                        "id": 9844,
                        "name": "Block",
                        "src": "4170:33:29"
                      }
                    ],
                    "id": 9845,
                    "name": "IfStatement",
                    "src": "4103:100:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        9847
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "proposal",
                          "scope": 9883,
                          "stateVariable": false,
                          "storageLocation": "memory",
                          "type": "struct UpgradeScheme.UpgradeProposal memory",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "contractScope": null,
                              "name": "UpgradeProposal",
                              "referencedDeclaration": 9653,
                              "type": "struct UpgradeScheme.UpgradeProposal storage pointer"
                            },
                            "id": 9846,
                            "name": "UserDefinedTypeName",
                            "src": "4213:15:29"
                          }
                        ],
                        "id": 9847,
                        "name": "VariableDeclaration",
                        "src": "4213:31:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": true,
                          "lValueRequested": false,
                          "names": [
                            "proposalType",
                            "upgradeContract",
                            "params"
                          ],
                          "type": "struct UpgradeScheme.UpgradeProposal memory",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9653,
                              "type": "type(struct UpgradeScheme.UpgradeProposal storage pointer)",
                              "value": "UpgradeProposal"
                            },
                            "id": 9848,
                            "name": "Identifier",
                            "src": "4247:15:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "32",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 2",
                              "value": "2"
                            },
                            "id": 9849,
                            "name": "Literal",
                            "src": "4291:1:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9798,
                              "type": "address",
                              "value": "_scheme"
                            },
                            "id": 9850,
                            "name": "Identifier",
                            "src": "4323:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9800,
                              "type": "bytes32",
                              "value": "_params"
                            },
                            "id": 9851,
                            "name": "Identifier",
                            "src": "4352:7:29"
                          }
                        ],
                        "id": 9852,
                        "name": "FunctionCall",
                        "src": "4247:123:29"
                      }
                    ],
                    "id": 9853,
                    "name": "VariableDeclarationStatement",
                    "src": "4213:157:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "=",
                          "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9659,
                                      "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                      "value": "organizationsProposals"
                                    },
                                    "id": 9854,
                                    "name": "Identifier",
                                    "src": "4380:22:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9796,
                                      "type": "contract Avatar",
                                      "value": "_avatar"
                                    },
                                    "id": 9855,
                                    "name": "Identifier",
                                    "src": "4403:7:29"
                                  }
                                ],
                                "id": 9857,
                                "name": "IndexAccess",
                                "src": "4380:31:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9819,
                                  "type": "bytes32",
                                  "value": "proposalId"
                                },
                                "id": 9856,
                                "name": "Identifier",
                                "src": "4412:10:29"
                              }
                            ],
                            "id": 9858,
                            "name": "IndexAccess",
                            "src": "4380:43:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9847,
                              "type": "struct UpgradeScheme.UpgradeProposal memory",
                              "value": "proposal"
                            },
                            "id": 9859,
                            "name": "Identifier",
                            "src": "4426:8:29"
                          }
                        ],
                        "id": 9860,
                        "name": "Assignment",
                        "src": "4380:54:29"
                      }
                    ],
                    "id": 9861,
                    "name": "ExpressionStatement",
                    "src": "4380:54:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "tuple()",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_contract$_Avatar_$3873",
                                  "typeString": "contract Avatar"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_contract$_IntVoteInterface_$3459",
                                  "typeString": "contract IntVoteInterface"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                },
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9634,
                              "type": "function (address,bytes32,address,address,bytes32)",
                              "value": "ChangeUpgradeSchemeProposal"
                            },
                            "id": 9862,
                            "name": "Identifier",
                            "src": "4445:27:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9796,
                              "type": "contract Avatar",
                              "value": "_avatar"
                            },
                            "id": 9863,
                            "name": "Identifier",
                            "src": "4486:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9819,
                              "type": "bytes32",
                              "value": "proposalId"
                            },
                            "id": 9864,
                            "name": "Identifier",
                            "src": "4507:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "intVote",
                              "referencedDeclaration": 9663,
                              "type": "contract IntVoteInterface"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9806,
                                  "type": "struct UpgradeScheme.Parameters memory",
                                  "value": "params"
                                },
                                "id": 9865,
                                "name": "Identifier",
                                "src": "4531:6:29"
                              }
                            ],
                            "id": 9866,
                            "name": "MemberAccess",
                            "src": "4531:14:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9798,
                              "type": "address",
                              "value": "_scheme"
                            },
                            "id": 9867,
                            "name": "Identifier",
                            "src": "4559:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9800,
                              "type": "bytes32",
                              "value": "_params"
                            },
                            "id": 9868,
                            "name": "Identifier",
                            "src": "4580:7:29"
                          }
                        ],
                        "id": 9869,
                        "name": "FunctionCall",
                        "src": "4445:152:29"
                      }
                    ],
                    "id": 9870,
                    "name": "ExpressionStatement",
                    "src": "4445:152:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "bool",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_rational_1_by_1",
                                  "typeString": "int_const 1"
                                },
                                {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              ],
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "ownerVote",
                              "referencedDeclaration": 3398,
                              "type": "function (bytes32,uint256,address) external returns (bool)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9814,
                                  "type": "contract IntVoteInterface",
                                  "value": "intVote"
                                },
                                "id": 9871,
                                "name": "Identifier",
                                "src": "4607:7:29"
                              }
                            ],
                            "id": 9873,
                            "name": "MemberAccess",
                            "src": "4607:17:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9819,
                              "type": "bytes32",
                              "value": "proposalId"
                            },
                            "id": 9874,
                            "name": "Identifier",
                            "src": "4625:10:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "31",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 1",
                              "value": "1"
                            },
                            "id": 9875,
                            "name": "Literal",
                            "src": "4637:1:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "member_name": "sender",
                              "referencedDeclaration": null,
                              "type": "address"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 12011,
                                  "type": "msg",
                                  "value": "msg"
                                },
                                "id": 9876,
                                "name": "Identifier",
                                "src": "4640:3:29"
                              }
                            ],
                            "id": 9877,
                            "name": "MemberAccess",
                            "src": "4640:10:29"
                          }
                        ],
                        "id": 9878,
                        "name": "FunctionCall",
                        "src": "4607:44:29"
                      }
                    ],
                    "id": 9879,
                    "name": "ExpressionStatement",
                    "src": "4607:44:29"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 9804
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "overloadedDeclarations": [
                            null
                          ],
                          "referencedDeclaration": 9819,
                          "type": "bytes32",
                          "value": "proposalId"
                        },
                        "id": 9880,
                        "name": "Identifier",
                        "src": "4724:10:29"
                      }
                    ],
                    "id": 9881,
                    "name": "Return",
                    "src": "4717:17:29"
                  }
                ],
                "id": 9882,
                "name": "Block",
                "src": "3842:899:29"
              }
            ],
            "id": 9883,
            "name": "FunctionDefinition",
            "src": "3680:1061:29"
          },
          {
            "attributes": {
              "constant": false,
              "implemented": true,
              "isConstructor": false,
              "modifiers": [
                null
              ],
              "name": "execute",
              "payable": false,
              "scope": 10007,
              "stateMutability": "nonpayable",
              "superFunction": 8020,
              "visibility": "public"
            },
            "children": [
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_proposalId",
                      "scope": 10006,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bytes32",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bytes32",
                          "type": "bytes32"
                        },
                        "id": 9884,
                        "name": "ElementaryTypeName",
                        "src": "5073:7:29"
                      }
                    ],
                    "id": 9885,
                    "name": "VariableDeclaration",
                    "src": "5073:19:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_avatar",
                      "scope": 10006,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "address",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "address",
                          "type": "address"
                        },
                        "id": 9886,
                        "name": "ElementaryTypeName",
                        "src": "5094:7:29"
                      }
                    ],
                    "id": 9887,
                    "name": "VariableDeclaration",
                    "src": "5094:15:29"
                  },
                  {
                    "attributes": {
                      "constant": false,
                      "name": "_param",
                      "scope": 10006,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "int256",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "int",
                          "type": "int256"
                        },
                        "id": 9888,
                        "name": "ElementaryTypeName",
                        "src": "5111:3:29"
                      }
                    ],
                    "id": 9889,
                    "name": "VariableDeclaration",
                    "src": "5111:10:29"
                  }
                ],
                "id": 9890,
                "name": "ParameterList",
                "src": "5072:50:29"
              },
              {
                "children": [
                  {
                    "attributes": {
                      "constant": false,
                      "name": "",
                      "scope": 10006,
                      "stateVariable": false,
                      "storageLocation": "default",
                      "type": "bool",
                      "value": null,
                      "visibility": "internal"
                    },
                    "children": [
                      {
                        "attributes": {
                          "name": "bool",
                          "type": "bool"
                        },
                        "id": 9891,
                        "name": "ElementaryTypeName",
                        "src": "5138:4:29"
                      }
                    ],
                    "id": 9892,
                    "name": "VariableDeclaration",
                    "src": "5138:4:29"
                  }
                ],
                "id": 9893,
                "name": "ParameterList",
                "src": "5137:6:29"
              },
              {
                "children": [
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "isStructConstructorCall": false,
                          "lValueRequested": false,
                          "names": [
                            null
                          ],
                          "type": "tuple()",
                          "type_conversion": false
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              ],
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 12014,
                              "type": "function (bool) pure",
                              "value": "require"
                            },
                            "id": 9894,
                            "name": "Identifier",
                            "src": "5212:7:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "commonType": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                              },
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": false,
                              "lValueRequested": false,
                              "operator": "==",
                              "type": "bool"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "member_name": "intVote",
                                  "referencedDeclaration": 9663,
                                  "type": "contract IntVoteInterface"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "type": "struct UpgradeScheme.Parameters storage ref"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9668,
                                          "type": "mapping(bytes32 => struct UpgradeScheme.Parameters storage ref)",
                                          "value": "parameters"
                                        },
                                        "id": 9895,
                                        "name": "Identifier",
                                        "src": "5220:10:29"
                                      },
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "type": "bytes32",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_contract$_Avatar_$3873",
                                                  "typeString": "contract Avatar"
                                                }
                                              ],
                                              "overloadedDeclarations": [
                                                9584
                                              ],
                                              "referencedDeclaration": 9584,
                                              "type": "function (contract Avatar) view returns (bytes32)",
                                              "value": "getParametersFromController"
                                            },
                                            "id": 9896,
                                            "name": "Identifier",
                                            "src": "5231:27:29"
                                          },
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "type": "contract Avatar",
                                              "type_conversion": true
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    }
                                                  ],
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 3873,
                                                  "type": "type(contract Avatar)",
                                                  "value": "Avatar"
                                                },
                                                "id": 9897,
                                                "name": "Identifier",
                                                "src": "5259:6:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9887,
                                                  "type": "address",
                                                  "value": "_avatar"
                                                },
                                                "id": 9898,
                                                "name": "Identifier",
                                                "src": "5266:7:29"
                                              }
                                            ],
                                            "id": 9899,
                                            "name": "FunctionCall",
                                            "src": "5259:15:29"
                                          }
                                        ],
                                        "id": 9900,
                                        "name": "FunctionCall",
                                        "src": "5231:44:29"
                                      }
                                    ],
                                    "id": 9901,
                                    "name": "IndexAccess",
                                    "src": "5220:56:29"
                                  }
                                ],
                                "id": 9902,
                                "name": "MemberAccess",
                                "src": "5220:64:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "member_name": "sender",
                                  "referencedDeclaration": null,
                                  "type": "address"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 12011,
                                      "type": "msg",
                                      "value": "msg"
                                    },
                                    "id": 9903,
                                    "name": "Identifier",
                                    "src": "5288:3:29"
                                  }
                                ],
                                "id": 9904,
                                "name": "MemberAccess",
                                "src": "5288:10:29"
                              }
                            ],
                            "id": 9905,
                            "name": "BinaryOperation",
                            "src": "5220:78:29"
                          }
                        ],
                        "id": 9906,
                        "name": "FunctionCall",
                        "src": "5212:87:29"
                      }
                    ],
                    "id": 9907,
                    "name": "ExpressionStatement",
                    "src": "5212:87:29"
                  },
                  {
                    "attributes": {
                      "assignments": [
                        9909
                      ]
                    },
                    "children": [
                      {
                        "attributes": {
                          "constant": false,
                          "name": "proposal",
                          "scope": 10006,
                          "stateVariable": false,
                          "storageLocation": "memory",
                          "type": "struct UpgradeScheme.UpgradeProposal memory",
                          "value": null,
                          "visibility": "internal"
                        },
                        "children": [
                          {
                            "attributes": {
                              "contractScope": null,
                              "name": "UpgradeProposal",
                              "referencedDeclaration": 9653,
                              "type": "struct UpgradeScheme.UpgradeProposal storage pointer"
                            },
                            "id": 9908,
                            "name": "UserDefinedTypeName",
                            "src": "5309:15:29"
                          }
                        ],
                        "id": 9909,
                        "name": "VariableDeclaration",
                        "src": "5309:31:29"
                      },
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9659,
                                  "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                  "value": "organizationsProposals"
                                },
                                "id": 9910,
                                "name": "Identifier",
                                "src": "5343:22:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9887,
                                  "type": "address",
                                  "value": "_avatar"
                                },
                                "id": 9911,
                                "name": "Identifier",
                                "src": "5366:7:29"
                              }
                            ],
                            "id": 9912,
                            "name": "IndexAccess",
                            "src": "5343:31:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9885,
                              "type": "bytes32",
                              "value": "_proposalId"
                            },
                            "id": 9913,
                            "name": "Identifier",
                            "src": "5375:11:29"
                          }
                        ],
                        "id": 9914,
                        "name": "IndexAccess",
                        "src": "5343:44:29"
                      }
                    ],
                    "id": 9915,
                    "name": "VariableDeclarationStatement",
                    "src": "5309:78:29"
                  },
                  {
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "delete",
                          "prefix": true,
                          "type": "tuple()"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": true,
                              "type": "struct UpgradeScheme.UpgradeProposal storage ref"
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "type": "mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref)"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9659,
                                      "type": "mapping(address => mapping(bytes32 => struct UpgradeScheme.UpgradeProposal storage ref))",
                                      "value": "organizationsProposals"
                                    },
                                    "id": 9916,
                                    "name": "Identifier",
                                    "src": "5404:22:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 9887,
                                      "type": "address",
                                      "value": "_avatar"
                                    },
                                    "id": 9917,
                                    "name": "Identifier",
                                    "src": "5427:7:29"
                                  }
                                ],
                                "id": 9918,
                                "name": "IndexAccess",
                                "src": "5404:31:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "overloadedDeclarations": [
                                    null
                                  ],
                                  "referencedDeclaration": 9885,
                                  "type": "bytes32",
                                  "value": "_proposalId"
                                },
                                "id": 9919,
                                "name": "Identifier",
                                "src": "5436:11:29"
                              }
                            ],
                            "id": 9920,
                            "name": "IndexAccess",
                            "src": "5404:44:29"
                          }
                        ],
                        "id": 9921,
                        "name": "UnaryOperation",
                        "src": "5397:51:29"
                      }
                    ],
                    "id": 9922,
                    "name": "ExpressionStatement",
                    "src": "5397:51:29"
                  },
                  {
                    "attributes": {
                      "falseBody": null
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "commonType": {
                            "typeIdentifier": "t_int256",
                            "typeString": "int256"
                          },
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "operator": "==",
                          "type": "bool"
                        },
                        "children": [
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "overloadedDeclarations": [
                                null
                              ],
                              "referencedDeclaration": 9889,
                              "type": "int256",
                              "value": "_param"
                            },
                            "id": 9923,
                            "name": "Identifier",
                            "src": "5503:6:29"
                          },
                          {
                            "attributes": {
                              "argumentTypes": null,
                              "hexvalue": "31",
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "lValueRequested": false,
                              "subdenomination": null,
                              "token": "number",
                              "type": "int_const 1",
                              "value": "1"
                            },
                            "id": 9924,
                            "name": "Literal",
                            "src": "5513:1:29"
                          }
                        ],
                        "id": 9925,
                        "name": "BinaryOperation",
                        "src": "5503:11:29"
                      },
                      {
                        "children": [
                          {
                            "attributes": {
                              "assignments": [
                                9927
                              ]
                            },
                            "children": [
                              {
                                "attributes": {
                                  "constant": false,
                                  "name": "controller",
                                  "scope": 10006,
                                  "stateVariable": false,
                                  "storageLocation": "default",
                                  "type": "contract ControllerInterface",
                                  "value": null,
                                  "visibility": "internal"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "contractScope": null,
                                      "name": "ControllerInterface",
                                      "referencedDeclaration": 5172,
                                      "type": "contract ControllerInterface"
                                    },
                                    "id": 9926,
                                    "name": "UserDefinedTypeName",
                                    "src": "5580:19:29"
                                  }
                                ],
                                "id": 9927,
                                "name": "VariableDeclaration",
                                "src": "5580:30:29"
                              },
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "isStructConstructorCall": false,
                                  "lValueRequested": false,
                                  "names": [
                                    null
                                  ],
                                  "type": "contract ControllerInterface",
                                  "type_conversion": true
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": [
                                        {
                                          "typeIdentifier": "t_address",
                                          "typeString": "address"
                                        }
                                      ],
                                      "overloadedDeclarations": [
                                        null
                                      ],
                                      "referencedDeclaration": 5172,
                                      "type": "type(contract ControllerInterface)",
                                      "value": "ControllerInterface"
                                    },
                                    "id": 9928,
                                    "name": "Identifier",
                                    "src": "5613:19:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "arguments": [
                                        null
                                      ],
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": false,
                                      "isStructConstructorCall": false,
                                      "lValueRequested": false,
                                      "names": [
                                        null
                                      ],
                                      "type": "address",
                                      "type_conversion": false
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": [
                                            null
                                          ],
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "member_name": "owner",
                                          "referencedDeclaration": 11393,
                                          "type": "function () view external returns (address)"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "type": "contract Avatar",
                                              "type_conversion": true
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    }
                                                  ],
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 3873,
                                                  "type": "type(contract Avatar)",
                                                  "value": "Avatar"
                                                },
                                                "id": 9929,
                                                "name": "Identifier",
                                                "src": "5633:6:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9887,
                                                  "type": "address",
                                                  "value": "_avatar"
                                                },
                                                "id": 9930,
                                                "name": "Identifier",
                                                "src": "5640:7:29"
                                              }
                                            ],
                                            "id": 9931,
                                            "name": "FunctionCall",
                                            "src": "5633:15:29"
                                          }
                                        ],
                                        "id": 9932,
                                        "name": "MemberAccess",
                                        "src": "5633:21:29"
                                      }
                                    ],
                                    "id": 9933,
                                    "name": "FunctionCall",
                                    "src": "5633:23:29"
                                  }
                                ],
                                "id": 9934,
                                "name": "FunctionCall",
                                "src": "5613:44:29"
                              }
                            ],
                            "id": 9935,
                            "name": "VariableDeclarationStatement",
                            "src": "5580:77:29"
                          },
                          {
                            "attributes": {
                              "falseBody": null
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "==",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "member_name": "proposalType",
                                      "referencedDeclaration": 9652,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9909,
                                          "type": "struct UpgradeScheme.UpgradeProposal memory",
                                          "value": "proposal"
                                        },
                                        "id": 9936,
                                        "name": "Identifier",
                                        "src": "5708:8:29"
                                      }
                                    ],
                                    "id": 9937,
                                    "name": "MemberAccess",
                                    "src": "5708:21:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "hexvalue": "31",
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "subdenomination": null,
                                      "token": "number",
                                      "type": "int_const 1",
                                      "value": "1"
                                    },
                                    "id": 9938,
                                    "name": "Literal",
                                    "src": "5733:1:29"
                                  }
                                ],
                                "id": 9939,
                                "name": "BinaryOperation",
                                "src": "5708:26:29"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "falseBody": null
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "!",
                                          "prefix": true,
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "type": "bool",
                                              "type_conversion": false
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    },
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    }
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "member_name": "upgradeController",
                                                  "referencedDeclaration": 5096,
                                                  "type": "function (address,address) external returns (bool)"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 9927,
                                                      "type": "contract ControllerInterface",
                                                      "value": "controller"
                                                    },
                                                    "id": 9940,
                                                    "name": "Identifier",
                                                    "src": "5759:10:29"
                                                  }
                                                ],
                                                "id": 9941,
                                                "name": "MemberAccess",
                                                "src": "5759:28:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "isConstant": false,
                                                  "isLValue": true,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "member_name": "upgradeContract",
                                                  "referencedDeclaration": 9648,
                                                  "type": "address"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 9909,
                                                      "type": "struct UpgradeScheme.UpgradeProposal memory",
                                                      "value": "proposal"
                                                    },
                                                    "id": 9942,
                                                    "name": "Identifier",
                                                    "src": "5788:8:29"
                                                  }
                                                ],
                                                "id": 9943,
                                                "name": "MemberAccess",
                                                "src": "5788:24:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9887,
                                                  "type": "address",
                                                  "value": "_avatar"
                                                },
                                                "id": 9944,
                                                "name": "Identifier",
                                                "src": "5813:7:29"
                                              }
                                            ],
                                            "id": 9945,
                                            "name": "FunctionCall",
                                            "src": "5759:62:29"
                                          }
                                        ],
                                        "id": 9946,
                                        "name": "UnaryOperation",
                                        "src": "5758:63:29"
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "arguments": [
                                                    null
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "isStructConstructorCall": false,
                                                  "lValueRequested": false,
                                                  "names": [
                                                    null
                                                  ],
                                                  "type": "tuple()",
                                                  "type_conversion": false
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": [
                                                        null
                                                      ],
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 12015,
                                                      "type": "function () pure",
                                                      "value": "revert"
                                                    },
                                                    "id": 9947,
                                                    "name": "Identifier",
                                                    "src": "5845:6:29"
                                                  }
                                                ],
                                                "id": 9948,
                                                "name": "FunctionCall",
                                                "src": "5845:8:29"
                                              }
                                            ],
                                            "id": 9949,
                                            "name": "ExpressionStatement",
                                            "src": "5845:8:29"
                                          }
                                        ],
                                        "id": 9950,
                                        "name": "Block",
                                        "src": "5823:51:29"
                                      }
                                    ],
                                    "id": 9951,
                                    "name": "IfStatement",
                                    "src": "5754:120:29"
                                  }
                                ],
                                "id": 9952,
                                "name": "Block",
                                "src": "5736:156:29"
                              }
                            ],
                            "id": 9953,
                            "name": "IfStatement",
                            "src": "5704:188:29"
                          },
                          {
                            "attributes": {
                              "falseBody": null
                            },
                            "children": [
                              {
                                "attributes": {
                                  "argumentTypes": null,
                                  "commonType": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  },
                                  "isConstant": false,
                                  "isLValue": false,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "operator": "==",
                                  "type": "bool"
                                },
                                "children": [
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "isConstant": false,
                                      "isLValue": true,
                                      "isPure": false,
                                      "lValueRequested": false,
                                      "member_name": "proposalType",
                                      "referencedDeclaration": 9652,
                                      "type": "uint256"
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "overloadedDeclarations": [
                                            null
                                          ],
                                          "referencedDeclaration": 9909,
                                          "type": "struct UpgradeScheme.UpgradeProposal memory",
                                          "value": "proposal"
                                        },
                                        "id": 9954,
                                        "name": "Identifier",
                                        "src": "5946:8:29"
                                      }
                                    ],
                                    "id": 9955,
                                    "name": "MemberAccess",
                                    "src": "5946:21:29"
                                  },
                                  {
                                    "attributes": {
                                      "argumentTypes": null,
                                      "hexvalue": "32",
                                      "isConstant": false,
                                      "isLValue": false,
                                      "isPure": true,
                                      "lValueRequested": false,
                                      "subdenomination": null,
                                      "token": "number",
                                      "type": "int_const 2",
                                      "value": "2"
                                    },
                                    "id": 9956,
                                    "name": "Literal",
                                    "src": "5971:1:29"
                                  }
                                ],
                                "id": 9957,
                                "name": "BinaryOperation",
                                "src": "5946:26:29"
                              },
                              {
                                "children": [
                                  {
                                    "attributes": {
                                      "assignments": [
                                        9959
                                      ]
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "constant": false,
                                          "name": "permissions",
                                          "scope": 10006,
                                          "stateVariable": false,
                                          "storageLocation": "default",
                                          "type": "bytes4",
                                          "value": null,
                                          "visibility": "internal"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "name": "bytes4",
                                              "type": "bytes4"
                                            },
                                            "id": 9958,
                                            "name": "ElementaryTypeName",
                                            "src": "5992:6:29"
                                          }
                                        ],
                                        "id": 9959,
                                        "name": "VariableDeclaration",
                                        "src": "5992:18:29"
                                      },
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "isStructConstructorCall": false,
                                          "lValueRequested": false,
                                          "names": [
                                            null
                                          ],
                                          "type": "bytes4",
                                          "type_conversion": false
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": [
                                                {
                                                  "typeIdentifier": "t_contract$_UpgradeScheme_$10007",
                                                  "typeString": "contract UpgradeScheme"
                                                },
                                                {
                                                  "typeIdentifier": "t_address",
                                                  "typeString": "address"
                                                }
                                              ],
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "getSchemePermissions",
                                              "referencedDeclaration": 5051,
                                              "type": "function (address,address) view external returns (bytes4)"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9927,
                                                  "type": "contract ControllerInterface",
                                                  "value": "controller"
                                                },
                                                "id": 9960,
                                                "name": "Identifier",
                                                "src": "6013:10:29"
                                              }
                                            ],
                                            "id": 9961,
                                            "name": "MemberAccess",
                                            "src": "6013:31:29"
                                          },
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 12104,
                                              "type": "contract UpgradeScheme",
                                              "value": "this"
                                            },
                                            "id": 9962,
                                            "name": "Identifier",
                                            "src": "6045:4:29"
                                          },
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "overloadedDeclarations": [
                                                null
                                              ],
                                              "referencedDeclaration": 9887,
                                              "type": "address",
                                              "value": "_avatar"
                                            },
                                            "id": 9963,
                                            "name": "Identifier",
                                            "src": "6050:7:29"
                                          }
                                        ],
                                        "id": 9964,
                                        "name": "FunctionCall",
                                        "src": "6013:45:29"
                                      }
                                    ],
                                    "id": 9965,
                                    "name": "VariableDeclarationStatement",
                                    "src": "5992:66:29"
                                  },
                                  {
                                    "attributes": {
                                      "falseBody": null
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "!",
                                          "prefix": true,
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "type": "bool",
                                              "type_conversion": false
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    },
                                                    {
                                                      "typeIdentifier": "t_bytes32",
                                                      "typeString": "bytes32"
                                                    },
                                                    {
                                                      "typeIdentifier": "t_bytes4",
                                                      "typeString": "bytes4"
                                                    },
                                                    {
                                                      "typeIdentifier": "t_address",
                                                      "typeString": "address"
                                                    }
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "member_name": "registerScheme",
                                                  "referencedDeclaration": 5008,
                                                  "type": "function (address,bytes32,bytes4,address) external returns (bool)"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 9927,
                                                      "type": "contract ControllerInterface",
                                                      "value": "controller"
                                                    },
                                                    "id": 9966,
                                                    "name": "Identifier",
                                                    "src": "6082:10:29"
                                                  }
                                                ],
                                                "id": 9967,
                                                "name": "MemberAccess",
                                                "src": "6082:25:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "isConstant": false,
                                                  "isLValue": true,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "member_name": "upgradeContract",
                                                  "referencedDeclaration": 9648,
                                                  "type": "address"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 9909,
                                                      "type": "struct UpgradeScheme.UpgradeProposal memory",
                                                      "value": "proposal"
                                                    },
                                                    "id": 9968,
                                                    "name": "Identifier",
                                                    "src": "6108:8:29"
                                                  }
                                                ],
                                                "id": 9969,
                                                "name": "MemberAccess",
                                                "src": "6108:24:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "isConstant": false,
                                                  "isLValue": true,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "member_name": "params",
                                                  "referencedDeclaration": 9650,
                                                  "type": "bytes32"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 9909,
                                                      "type": "struct UpgradeScheme.UpgradeProposal memory",
                                                      "value": "proposal"
                                                    },
                                                    "id": 9970,
                                                    "name": "Identifier",
                                                    "src": "6134:8:29"
                                                  }
                                                ],
                                                "id": 9971,
                                                "name": "MemberAccess",
                                                "src": "6134:15:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9959,
                                                  "type": "bytes4",
                                                  "value": "permissions"
                                                },
                                                "id": 9972,
                                                "name": "Identifier",
                                                "src": "6151:11:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9887,
                                                  "type": "address",
                                                  "value": "_avatar"
                                                },
                                                "id": 9973,
                                                "name": "Identifier",
                                                "src": "6163:7:29"
                                              }
                                            ],
                                            "id": 9974,
                                            "name": "FunctionCall",
                                            "src": "6082:89:29"
                                          }
                                        ],
                                        "id": 9975,
                                        "name": "UnaryOperation",
                                        "src": "6081:90:29"
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "arguments": [
                                                    null
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "isStructConstructorCall": false,
                                                  "lValueRequested": false,
                                                  "names": [
                                                    null
                                                  ],
                                                  "type": "tuple()",
                                                  "type_conversion": false
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": [
                                                        null
                                                      ],
                                                      "overloadedDeclarations": [
                                                        null
                                                      ],
                                                      "referencedDeclaration": 12015,
                                                      "type": "function () pure",
                                                      "value": "revert"
                                                    },
                                                    "id": 9976,
                                                    "name": "Identifier",
                                                    "src": "6195:6:29"
                                                  }
                                                ],
                                                "id": 9977,
                                                "name": "FunctionCall",
                                                "src": "6195:8:29"
                                              }
                                            ],
                                            "id": 9978,
                                            "name": "ExpressionStatement",
                                            "src": "6195:8:29"
                                          }
                                        ],
                                        "id": 9979,
                                        "name": "Block",
                                        "src": "6173:51:29"
                                      }
                                    ],
                                    "id": 9980,
                                    "name": "IfStatement",
                                    "src": "6077:147:29"
                                  },
                                  {
                                    "attributes": {
                                      "falseBody": null
                                    },
                                    "children": [
                                      {
                                        "attributes": {
                                          "argumentTypes": null,
                                          "commonType": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                          },
                                          "isConstant": false,
                                          "isLValue": false,
                                          "isPure": false,
                                          "lValueRequested": false,
                                          "operator": "!=",
                                          "type": "bool"
                                        },
                                        "children": [
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": true,
                                              "isPure": false,
                                              "lValueRequested": false,
                                              "member_name": "upgradeContract",
                                              "referencedDeclaration": 9648,
                                              "type": "address"
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 9909,
                                                  "type": "struct UpgradeScheme.UpgradeProposal memory",
                                                  "value": "proposal"
                                                },
                                                "id": 9981,
                                                "name": "Identifier",
                                                "src": "6245:8:29"
                                              }
                                            ],
                                            "id": 9982,
                                            "name": "MemberAccess",
                                            "src": "6245:24:29"
                                          },
                                          {
                                            "attributes": {
                                              "argumentTypes": null,
                                              "isConstant": false,
                                              "isLValue": false,
                                              "isPure": false,
                                              "isStructConstructorCall": false,
                                              "lValueRequested": false,
                                              "names": [
                                                null
                                              ],
                                              "type": "address",
                                              "type_conversion": true
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": [
                                                    {
                                                      "typeIdentifier": "t_contract$_UpgradeScheme_$10007",
                                                      "typeString": "contract UpgradeScheme"
                                                    }
                                                  ],
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": true,
                                                  "lValueRequested": false,
                                                  "type": "type(address)",
                                                  "value": "address"
                                                },
                                                "id": 9983,
                                                "name": "ElementaryTypeNameExpression",
                                                "src": "6273:7:29"
                                              },
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "overloadedDeclarations": [
                                                    null
                                                  ],
                                                  "referencedDeclaration": 12104,
                                                  "type": "contract UpgradeScheme",
                                                  "value": "this"
                                                },
                                                "id": 9984,
                                                "name": "Identifier",
                                                "src": "6281:4:29"
                                              }
                                            ],
                                            "id": 9985,
                                            "name": "FunctionCall",
                                            "src": "6273:13:29"
                                          }
                                        ],
                                        "id": 9986,
                                        "name": "BinaryOperation",
                                        "src": "6245:41:29"
                                      },
                                      {
                                        "children": [
                                          {
                                            "attributes": {
                                              "falseBody": null
                                            },
                                            "children": [
                                              {
                                                "attributes": {
                                                  "argumentTypes": null,
                                                  "isConstant": false,
                                                  "isLValue": false,
                                                  "isPure": false,
                                                  "lValueRequested": false,
                                                  "operator": "!",
                                                  "prefix": true,
                                                  "type": "bool"
                                                },
                                                "children": [
                                                  {
                                                    "attributes": {
                                                      "argumentTypes": null,
                                                      "isConstant": false,
                                                      "isLValue": false,
                                                      "isPure": false,
                                                      "isStructConstructorCall": false,
                                                      "lValueRequested": false,
                                                      "names": [
                                                        null
                                                      ],
                                                      "type": "bool",
                                                      "type_conversion": false
                                                    },
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": [
                                                            {
                                                              "typeIdentifier": "t_address",
                                                              "typeString": "address"
                                                            }
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": false,
                                                          "lValueRequested": false,
                                                          "member_name": "unregisterSelf",
                                                          "referencedDeclaration": 5024,
                                                          "type": "function (address) external returns (bool)"
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "argumentTypes": null,
                                                              "overloadedDeclarations": [
                                                                null
                                                              ],
                                                              "referencedDeclaration": 9927,
                                                              "type": "contract ControllerInterface",
                                                              "value": "controller"
                                                            },
                                                            "id": 9987,
                                                            "name": "Identifier",
                                                            "src": "6316:10:29"
                                                          }
                                                        ],
                                                        "id": 9988,
                                                        "name": "MemberAccess",
                                                        "src": "6316:25:29"
                                                      },
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": null,
                                                          "overloadedDeclarations": [
                                                            null
                                                          ],
                                                          "referencedDeclaration": 9887,
                                                          "type": "address",
                                                          "value": "_avatar"
                                                        },
                                                        "id": 9989,
                                                        "name": "Identifier",
                                                        "src": "6342:7:29"
                                                      }
                                                    ],
                                                    "id": 9990,
                                                    "name": "FunctionCall",
                                                    "src": "6316:34:29"
                                                  }
                                                ],
                                                "id": 9991,
                                                "name": "UnaryOperation",
                                                "src": "6315:35:29"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "attributes": {
                                                          "argumentTypes": null,
                                                          "arguments": [
                                                            null
                                                          ],
                                                          "isConstant": false,
                                                          "isLValue": false,
                                                          "isPure": false,
                                                          "isStructConstructorCall": false,
                                                          "lValueRequested": false,
                                                          "names": [
                                                            null
                                                          ],
                                                          "type": "tuple()",
                                                          "type_conversion": false
                                                        },
                                                        "children": [
                                                          {
                                                            "attributes": {
                                                              "argumentTypes": [
                                                                null
                                                              ],
                                                              "overloadedDeclarations": [
                                                                null
                                                              ],
                                                              "referencedDeclaration": 12015,
                                                              "type": "function () pure",
                                                              "value": "revert"
                                                            },
                                                            "id": 9992,
                                                            "name": "Identifier",
                                                            "src": "6378:6:29"
                                                          }
                                                        ],
                                                        "id": 9993,
                                                        "name": "FunctionCall",
                                                        "src": "6378:8:29"
                                                      }
                                                    ],
                                                    "id": 9994,
                                                    "name": "ExpressionStatement",
                                                    "src": "6378:8:29"
                                                  }
                                                ],
                                                "id": 9995,
                                                "name": "Block",
                                                "src": "6352:59:29"
                                              }
                                            ],
                                            "id": 9996,
                                            "name": "IfStatement",
                                            "src": "6311:100:29"
                                          }
                                        ],
                                        "id": 9997,
                                        "name": "Block",
                                        "src": "6289:144:29"
                                      }
                                    ],
                                    "id": 9998,
                                    "name": "IfStatement",
                                    "src": "6241:192:29"
                                  }
                                ],
                                "id": 9999,
                                "name": "Block",
                                "src": "5974:479:29"
                              }
                            ],
                            "id": 10000,
                            "name": "IfStatement",
                            "src": "5942:511:29"
                          }
                        ],
                        "id": 10001,
                        "name": "Block",
                        "src": "5516:955:29"
                      }
                    ],
                    "id": 10002,
                    "name": "IfStatement",
                    "src": "5499:972:29"
                  },
                  {
                    "attributes": {
                      "functionReturnParameters": 9893
                    },
                    "children": [
                      {
                        "attributes": {
                          "argumentTypes": null,
                          "hexvalue": "74727565",
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "subdenomination": null,
                          "token": "bool",
                          "type": "bool",
                          "value": "true"
                        },
                        "id": 10003,
                        "name": "Literal",
                        "src": "6488:4:29"
                      }
                    ],
                    "id": 10004,
                    "name": "Return",
                    "src": "6481:11:29"
                  }
                ],
                "id": 10005,
                "name": "Block",
                "src": "5144:1355:29"
              }
            ],
            "id": 10006,
            "name": "FunctionDefinition",
            "src": "5056:1443:29"
          }
        ],
        "id": 10007,
        "name": "ContractDefinition",
        "src": "272:6229:29"
      }
    ],
    "id": 10008,
    "name": "SourceUnit",
    "src": "0:6502:29"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.18+commit.9cf6e910.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "1.0.1",
  "updatedAt": "2018-02-04T21:57:39.067Z"
}