{ "_format": "hh-sol-artifact-1", "contractName": "AnchorHandler", "sourceName": "contracts/handlers/AnchorHandler.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "bridgeAddress", "type": "address" }, { "internalType": "bytes32[]", "name": "initialResourceIDs", "type": "bytes32[]" }, { "internalType": "address[]", "name": "initialContractAddresses", "type": "address[]" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "_bridgeAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "_contractAddressToResourceID", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "_contractWhitelist", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "_resourceIDToContractAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "resourceID", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "executeProposal", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newBridge", "type": "address" } ], "name": "migrateBridge", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "resourceID", "type": "bytes32" }, { "internalType": "address", "name": "contractAddress", "type": "address" } ], "name": "setResource", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x60806040523480156200001157600080fd5b5060405162000d8b38038062000d8b833981016040819052620000349162000314565b8051825114620000c55760405162461bcd60e51b815260206004820152604b60248201527f416e63686f7248616e646c65723a20696e697469616c5265736f75726365494460448201527f7320616e6420696e697469616c436f6e7472616374416464726573736573206c60648201526a0cadc40dad2e6dac2e8c6d60ab1b608482015260a4015b60405180910390fd5b6001600160a01b0383166200012e5760405162461bcd60e51b815260206004820152602860248201527f416e63686f7248616e646c65723a20427269646765204164647265737320636160448201526706e277420626520360c41b6064820152608401620000bc565b600080546001600160a01b0319166001600160a01b0385161781555b8251811015620001b3576200019e8382815181106200016d576200016d620003ef565b60200260200101518383815181106200018a576200018a620003ef565b6020026020010151620001bd60201b60201c565b80620001aa8162000405565b9150506200014a565b505050506200042d565b600082815260016020818152604080842080546001600160a01b039096166001600160a01b0319909616861790559383526002815283832094909455600390935220805460ff19169091179055565b80516001600160a01b03811681146200022457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200026a576200026a62000229565b604052919050565b60006001600160401b038211156200028e576200028e62000229565b5060051b60200190565b600082601f830112620002aa57600080fd5b81516020620002c3620002bd8362000272565b6200023f565b82815260059290921b84018101918181019086841115620002e357600080fd5b8286015b848110156200030957620002fb816200020c565b8352918301918301620002e7565b509695505050505050565b6000806000606084860312156200032a57600080fd5b62000335846200020c565b602085810151919450906001600160401b03808211156200035557600080fd5b818701915087601f8301126200036a57600080fd5b81516200037b620002bd8262000272565b81815260059190911b8301840190848101908a8311156200039b57600080fd5b938501935b82851015620003bb57845182529385019390850190620003a0565b60408a01519097509450505080831115620003d557600080fd5b5050620003e58682870162000298565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200042657634e487b7160e01b600052601160045260246000fd5b5060010190565b61094e806200043d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063c54c2a111161005b578063c54c2a11146100fa578063d7f5b35914610123578063e248cff214610136578063ec97d3b41461014957600080fd5b8063318c136e146100825780637f79bea8146100b2578063b8fa3736146100e5575b600080fd5b600054610095906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d56100c0366004610789565b60036020526000908152604090205460ff1681565b60405190151581526020016100a9565b6100f86100f33660046107ab565b610177565b005b6100956101083660046107d7565b6001602052600090815260409020546001600160a01b031681565b6100f8610131366004610789565b6101cf565b6100f86101443660046107f0565b610266565b610169610157366004610789565b60026020526000908152604090205481565b6040519081526020016100a9565b61017f6106fa565b600082815260016020818152604080842080546001600160a01b0319166001600160a01b0387169081179091558452600282528084208690556003909152909120805460ff191690911790555050565b6101d76106fa565b6001600160a01b0381166102445760405162461bcd60e51b815260206004820152602960248201527f48616e646c657248656c706572733a20427269646765206164647265737320636044820152680616e277420626520360bc1b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61026e6106fa565b6000803681610280602082878961086c565b61028991610896565b935061029960246020878961086c565b6102a2916108b5565b92506102b1856024818961086c565b6000898152600160209081526040808320546001600160a01b03168084526003909252909120549294509092509060ff166103545760405162461bcd60e51b815260206004820152603760248201527f416e63686f7248616e646c65723a2070726f766964656420746f6b656e41646460448201527f72657373206973206e6f742077686974656c6973746564000000000000000000606482015260840161023b565b638d3e52fd60e01b6001600160e01b031985160161041857600061037b600482858761086c565b610384916108b5565b60e01c9050600061039960186004868861086c565b6103a2916108e5565b6040516372c1ad0360e01b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b038416906372c1ad03906044015b600060405180830381600087803b1580156103f957600080fd5b505af115801561040d573d6000803e3d6000fd5b5050505050506106f0565b635f2e6d0b60e01b6001600160e01b03198516016104a757600061043f600482858761086c565b610448916108b5565b60e01c9050600061045d60186004868861086c565b610466916108e5565b60405163a0d192f560e01b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063a0d192f5906044016103df565b631f36e83160e11b6001600160e01b03198516016105885760006104ce600482858761086c565b6104d7916108b5565b60e01c905060006104ec60246004868861086c565b6104f591610896565b9050600061050760446024878961086c565b61051091610896565b6040516360c917cf60e11b81526004810184905263ffffffff85166024820152604481018290529091506001600160a01b0385169063c1922f9e90606401600060405180830381600087803b15801561056857600080fd5b505af115801561057c573d6000803e3d6000fd5b505050505050506106f0565b63e080660960e01b6001600160e01b03198516016106125760006105af600482858761086c565b6105b8916108b5565b60e01c905060006105cd60246004868861086c565b6105d691610896565b604051631f7f99f760e01b81526004810182905263ffffffff841660248201529091506001600160a01b03841690631f7f99f7906044016103df565b63737cd4ed60e01b6001600160e01b031985160161069c576000610639600482858761086c565b610642916108b5565b60e01c9050600061065760246004868861086c565b61066091610896565b604051638c832b1360e01b81526004810182905263ffffffff841660248201529091506001600160a01b03841690638c832b13906044016103df565b60405162461bcd60e51b815260206004820152602360248201527f416e63686f7248616e646c65723a20496e76616c69642066756e6374696f6e2060448201526273696760e81b606482015260840161023b565b5050505050505050565b6000546001600160a01b0316331461076b5760405162461bcd60e51b815260206004820152602e60248201527f48616e646c657248656c706572733a2073656e646572206d757374206265206260448201526d1c9a5919d94818dbdb9d1c9858dd60921b606482015260840161023b565b565b80356001600160a01b038116811461078457600080fd5b919050565b60006020828403121561079b57600080fd5b6107a48261076d565b9392505050565b600080604083850312156107be57600080fd5b823591506107ce6020840161076d565b90509250929050565b6000602082840312156107e957600080fd5b5035919050565b60008060006040848603121561080557600080fd5b83359250602084013567ffffffffffffffff8082111561082457600080fd5b818601915086601f83011261083857600080fd5b81358181111561084757600080fd5b87602082850101111561085957600080fd5b6020830194508093505050509250925092565b6000808585111561087c57600080fd5b8386111561088957600080fd5b5050820193919092039150565b803560208310156108af57600019602084900360031b1b165b92915050565b6001600160e01b031981358181169160048510156108dd5780818660040360031b1b83161692505b505092915050565b6bffffffffffffffffffffffff1981358181169160148510156108dd5760149490940360031b84901b169092169291505056fea26469706673582212207b3634587d49cffe9d5f0dbb74d4984249592a4bb25d4d4b1214eedd1d077e2964736f6c63430008120033", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063c54c2a111161005b578063c54c2a11146100fa578063d7f5b35914610123578063e248cff214610136578063ec97d3b41461014957600080fd5b8063318c136e146100825780637f79bea8146100b2578063b8fa3736146100e5575b600080fd5b600054610095906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d56100c0366004610789565b60036020526000908152604090205460ff1681565b60405190151581526020016100a9565b6100f86100f33660046107ab565b610177565b005b6100956101083660046107d7565b6001602052600090815260409020546001600160a01b031681565b6100f8610131366004610789565b6101cf565b6100f86101443660046107f0565b610266565b610169610157366004610789565b60026020526000908152604090205481565b6040519081526020016100a9565b61017f6106fa565b600082815260016020818152604080842080546001600160a01b0319166001600160a01b0387169081179091558452600282528084208690556003909152909120805460ff191690911790555050565b6101d76106fa565b6001600160a01b0381166102445760405162461bcd60e51b815260206004820152602960248201527f48616e646c657248656c706572733a20427269646765206164647265737320636044820152680616e277420626520360bc1b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61026e6106fa565b6000803681610280602082878961086c565b61028991610896565b935061029960246020878961086c565b6102a2916108b5565b92506102b1856024818961086c565b6000898152600160209081526040808320546001600160a01b03168084526003909252909120549294509092509060ff166103545760405162461bcd60e51b815260206004820152603760248201527f416e63686f7248616e646c65723a2070726f766964656420746f6b656e41646460448201527f72657373206973206e6f742077686974656c6973746564000000000000000000606482015260840161023b565b638d3e52fd60e01b6001600160e01b031985160161041857600061037b600482858761086c565b610384916108b5565b60e01c9050600061039960186004868861086c565b6103a2916108e5565b6040516372c1ad0360e01b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b038416906372c1ad03906044015b600060405180830381600087803b1580156103f957600080fd5b505af115801561040d573d6000803e3d6000fd5b5050505050506106f0565b635f2e6d0b60e01b6001600160e01b03198516016104a757600061043f600482858761086c565b610448916108b5565b60e01c9050600061045d60186004868861086c565b610466916108e5565b60405163a0d192f560e01b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063a0d192f5906044016103df565b631f36e83160e11b6001600160e01b03198516016105885760006104ce600482858761086c565b6104d7916108b5565b60e01c905060006104ec60246004868861086c565b6104f591610896565b9050600061050760446024878961086c565b61051091610896565b6040516360c917cf60e11b81526004810184905263ffffffff85166024820152604481018290529091506001600160a01b0385169063c1922f9e90606401600060405180830381600087803b15801561056857600080fd5b505af115801561057c573d6000803e3d6000fd5b505050505050506106f0565b63e080660960e01b6001600160e01b03198516016106125760006105af600482858761086c565b6105b8916108b5565b60e01c905060006105cd60246004868861086c565b6105d691610896565b604051631f7f99f760e01b81526004810182905263ffffffff841660248201529091506001600160a01b03841690631f7f99f7906044016103df565b63737cd4ed60e01b6001600160e01b031985160161069c576000610639600482858761086c565b610642916108b5565b60e01c9050600061065760246004868861086c565b61066091610896565b604051638c832b1360e01b81526004810182905263ffffffff841660248201529091506001600160a01b03841690638c832b13906044016103df565b60405162461bcd60e51b815260206004820152602360248201527f416e63686f7248616e646c65723a20496e76616c69642066756e6374696f6e2060448201526273696760e81b606482015260840161023b565b5050505050505050565b6000546001600160a01b0316331461076b5760405162461bcd60e51b815260206004820152602e60248201527f48616e646c657248656c706572733a2073656e646572206d757374206265206260448201526d1c9a5919d94818dbdb9d1c9858dd60921b606482015260840161023b565b565b80356001600160a01b038116811461078457600080fd5b919050565b60006020828403121561079b57600080fd5b6107a48261076d565b9392505050565b600080604083850312156107be57600080fd5b823591506107ce6020840161076d565b90509250929050565b6000602082840312156107e957600080fd5b5035919050565b60008060006040848603121561080557600080fd5b83359250602084013567ffffffffffffffff8082111561082457600080fd5b818601915086601f83011261083857600080fd5b81358181111561084757600080fd5b87602082850101111561085957600080fd5b6020830194508093505050509250925092565b6000808585111561087c57600080fd5b8386111561088957600080fd5b5050820193919092039150565b803560208310156108af57600019602084900360031b1b165b92915050565b6001600160e01b031981358181169160048510156108dd5780818660040360031b1b83161692505b505092915050565b6bffffffffffffffffffffffff1981358181169160148510156108dd5760149490940360031b84901b169092169291505056fea26469706673582212207b3634587d49cffe9d5f0dbb74d4984249592a4bb25d4d4b1214eedd1d077e2964736f6c63430008120033", "linkReferences": {}, "deployedLinkReferences": {} }