{
    "$schema": "../../../../contract.schema.json",
    "released": false,
    "contractName": "RouterProxyFactory",
    "version": "2.0.1-0",
    "networkAddresses": {
        "80001": {
            "primaryAddress": "0xaA1f5A0313D3AE6E1B9AA94229630679a1ffd3f2",
            "allAddresses": [
                {
                    "address": "0xaA1f5A0313D3AE6E1B9AA94229630679a1ffd3f2",
                    "dependencies": [
                        {
                            "name": "Mangrove",
                            "address": "0x80cd6Ef14c23dD3957FD5629141a9d7028557c39"
                        }
                    ]
                }
            ]
        }
    },
    "abi": [
        {
            "type": "function",
            "name": "computeProxyAddress",
            "inputs": [
                { "name": "owner", "type": "address", "internalType": "address" },
                {
                    "name": "routerImplementation",
                    "type": "address",
                    "internalType": "contract AbstractRouter"
                }
            ],
            "outputs": [
                { "name": "", "type": "address", "internalType": "address payable" }
            ],
            "stateMutability": "view"
        },
        {
            "type": "function",
            "name": "deployProxy",
            "inputs": [
                { "name": "owner", "type": "address", "internalType": "address" },
                {
                    "name": "routerImplementation",
                    "type": "address",
                    "internalType": "contract AbstractRouter"
                }
            ],
            "outputs": [
                {
                    "name": "proxy",
                    "type": "address",
                    "internalType": "contract RouterProxy"
                }
            ],
            "stateMutability": "nonpayable"
        },
        {
            "type": "function",
            "name": "instantiate",
            "inputs": [
                { "name": "owner", "type": "address", "internalType": "address" },
                {
                    "name": "routerImplementation",
                    "type": "address",
                    "internalType": "contract AbstractRouter"
                }
            ],
            "outputs": [
                {
                    "name": "proxy",
                    "type": "address",
                    "internalType": "contract RouterProxy"
                },
                { "name": "created", "type": "bool", "internalType": "bool" }
            ],
            "stateMutability": "nonpayable"
        },
        {
            "type": "event",
            "name": "ProxyDeployed",
            "inputs": [
                {
                    "name": "proxy",
                    "type": "address",
                    "indexed": false,
                    "internalType": "contract RouterProxy"
                },
                {
                    "name": "owner",
                    "type": "address",
                    "indexed": true,
                    "internalType": "address"
                },
                {
                    "name": "implementation",
                    "type": "address",
                    "indexed": true,
                    "internalType": "contract AbstractRouter"
                }
            ],
            "anonymous": false
        }
    ]
}
