{ "_format": "hh-sol-artifact-1", "contractName": "TokenWrapperHandler", "sourceName": "contracts/handlers/TokenWrapperHandler.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": "0x60806040523480156200001157600080fd5b5060405162000c7038038062000c70833981016040819052620000349162000320565b8051825114620000cb5760405162461bcd60e51b815260206004820152605160248201527f546f6b656e5772617070657248616e646c65723a20696e697469616c5265736f60448201527f7572636549447320616e6420696e697469616c436f6e747261637441646472656064820152700e6e6cae640d8cadc40dad2e6dac2e8c6d607b1b608482015260a4015b60405180910390fd5b6001600160a01b0383166200013a5760405162461bcd60e51b815260206004820152602e60248201527f546f6b656e5772617070657248616e646c65723a20427269646765206164647260448201526d06573732063616e277420626520360941b6064820152608401620000c2565b600080546001600160a01b0319166001600160a01b0385161781555b8251811015620001bf57620001aa838281518110620001795762000179620003fb565b6020026020010151838381518110620001965762000196620003fb565b6020026020010151620001c960201b60201c565b80620001b68162000411565b91505062000156565b5050505062000439565b600082815260016020818152604080842080546001600160a01b039096166001600160a01b0319909616861790559383526002815283832094909455600390935220805460ff19169091179055565b80516001600160a01b03811681146200023057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000276576200027662000235565b604052919050565b60006001600160401b038211156200029a576200029a62000235565b5060051b60200190565b600082601f830112620002b657600080fd5b81516020620002cf620002c9836200027e565b6200024b565b82815260059290921b84018101918181019086841115620002ef57600080fd5b8286015b848110156200031557620003078162000218565b8352918301918301620002f3565b509695505050505050565b6000806000606084860312156200033657600080fd5b620003418462000218565b602085810151919450906001600160401b03808211156200036157600080fd5b818701915087601f8301126200037657600080fd5b815162000387620002c9826200027e565b81815260059190911b8301840190848101908a831115620003a757600080fd5b938501935b82851015620003c757845182529385019390850190620003ac565b60408a01519097509450505080831115620003e157600080fd5b5050620003f186828701620002a4565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200043257634e487b7160e01b600052601160045260246000fd5b5060010190565b61082780620004496000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063c54c2a111161005b578063c54c2a11146100fa578063d7f5b35914610123578063e248cff214610136578063ec97d3b41461014957600080fd5b8063318c136e146100825780637f79bea8146100b2578063b8fa3736146100e5575b600080fd5b600054610095906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d56100c0366004610634565b60036020526000908152604090205460ff1681565b60405190151581526020016100a9565b6100f86100f3366004610656565b610177565b005b610095610108366004610682565b6001602052600090815260409020546001600160a01b031681565b6100f8610131366004610634565b6101cf565b6100f861014436600461069b565b610266565b610169610157366004610634565b60026020526000908152604090205481565b6040519081526020016100a9565b61017f6105a5565b600082815260016020818152604080842080546001600160a01b0319166001600160a01b0387169081179091558452600282528084208690556003909152909120805460ff191690911790555050565b6101d76105a5565b6001600160a01b0381166102445760405162461bcd60e51b815260206004820152602960248201527f48616e646c657248656c706572733a20427269646765206164647265737320636044820152680616e277420626520360bc1b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61026e6105a5565b60008036816102806020828789610717565b61028991610741565b9350610299602460208789610717565b6102a291610760565b92506102b18560248189610717565b60008981526001602052604090205491935091506001600160a01b0316806301ea8dc760e51b6001600160e01b03198616016103935760006102f66004828688610717565b6102ff91610760565b60e01c90506000610314600660048789610717565b61031d91610790565b604051630615723960e51b815260f09190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063c2ae4720906044015b600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b50505050505061059a565b6301b42cd760e11b6001600160e01b03198616016104225760006103ba6004828688610717565b6103c391610760565b60e01c905060006103d8601860048789610717565b6103e1916107be565b604051637e4bd32960e11b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063fc97a6529060440161035a565b6371daf5e560e11b6001600160e01b03198616016104b15760006104496004828688610717565b61045291610760565b60e01c90506000610467601860048789610717565b610470916107be565b604051630e250a1b60e11b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b03841690631c4a14369060440161035a565b633e39ec3960e21b6001600160e01b03198616016105405760006104d86004828688610717565b6104e191610760565b60e01c905060006104f6601860048789610717565b6104ff916107be565b6040516301c613c760e21b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b038416906307184f1c9060440161035a565b60405162461bcd60e51b815260206004820152602960248201527f546f6b656e5772617070657248616e646c65723a20496e76616c69642066756e6044820152686374696f6e2073696760b81b606482015260840161023b565b505050505050505050565b6000546001600160a01b031633146106165760405162461bcd60e51b815260206004820152602e60248201527f48616e646c657248656c706572733a2073656e646572206d757374206265206260448201526d1c9a5919d94818dbdb9d1c9858dd60921b606482015260840161023b565b565b80356001600160a01b038116811461062f57600080fd5b919050565b60006020828403121561064657600080fd5b61064f82610618565b9392505050565b6000806040838503121561066957600080fd5b8235915061067960208401610618565b90509250929050565b60006020828403121561069457600080fd5b5035919050565b6000806000604084860312156106b057600080fd5b83359250602084013567ffffffffffffffff808211156106cf57600080fd5b818601915086601f8301126106e357600080fd5b8135818111156106f257600080fd5b87602082850101111561070457600080fd5b6020830194508093505050509250925092565b6000808585111561072757600080fd5b8386111561073457600080fd5b5050820193919092039150565b8035602083101561075a57600019602084900360031b1b165b92915050565b6001600160e01b031981358181169160048510156107885780818660040360031b1b83161692505b505092915050565b6001600160f01b031981358181169160028510156107885760029490940360031b84901b1690921692915050565b6bffffffffffffffffffffffff1981358181169160148510156107885760149490940360031b84901b169092169291505056fea264697066735822122094b87e64164d0196bb5baacdd3fb65d6f339c391e2bc3c4ff112e0996116e9a264736f6c63430008120033", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063c54c2a111161005b578063c54c2a11146100fa578063d7f5b35914610123578063e248cff214610136578063ec97d3b41461014957600080fd5b8063318c136e146100825780637f79bea8146100b2578063b8fa3736146100e5575b600080fd5b600054610095906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100d56100c0366004610634565b60036020526000908152604090205460ff1681565b60405190151581526020016100a9565b6100f86100f3366004610656565b610177565b005b610095610108366004610682565b6001602052600090815260409020546001600160a01b031681565b6100f8610131366004610634565b6101cf565b6100f861014436600461069b565b610266565b610169610157366004610634565b60026020526000908152604090205481565b6040519081526020016100a9565b61017f6105a5565b600082815260016020818152604080842080546001600160a01b0319166001600160a01b0387169081179091558452600282528084208690556003909152909120805460ff191690911790555050565b6101d76105a5565b6001600160a01b0381166102445760405162461bcd60e51b815260206004820152602960248201527f48616e646c657248656c706572733a20427269646765206164647265737320636044820152680616e277420626520360bc1b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61026e6105a5565b60008036816102806020828789610717565b61028991610741565b9350610299602460208789610717565b6102a291610760565b92506102b18560248189610717565b60008981526001602052604090205491935091506001600160a01b0316806301ea8dc760e51b6001600160e01b03198616016103935760006102f66004828688610717565b6102ff91610760565b60e01c90506000610314600660048789610717565b61031d91610790565b604051630615723960e51b815260f09190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063c2ae4720906044015b600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b50505050505061059a565b6301b42cd760e11b6001600160e01b03198616016104225760006103ba6004828688610717565b6103c391610760565b60e01c905060006103d8601860048789610717565b6103e1916107be565b604051637e4bd32960e11b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b0384169063fc97a6529060440161035a565b6371daf5e560e11b6001600160e01b03198616016104b15760006104496004828688610717565b61045291610760565b60e01c90506000610467601860048789610717565b610470916107be565b604051630e250a1b60e11b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b03841690631c4a14369060440161035a565b633e39ec3960e21b6001600160e01b03198616016105405760006104d86004828688610717565b6104e191610760565b60e01c905060006104f6601860048789610717565b6104ff916107be565b6040516301c613c760e21b815260609190911c6004820181905263ffffffff8416602483015291506001600160a01b038416906307184f1c9060440161035a565b60405162461bcd60e51b815260206004820152602960248201527f546f6b656e5772617070657248616e646c65723a20496e76616c69642066756e6044820152686374696f6e2073696760b81b606482015260840161023b565b505050505050505050565b6000546001600160a01b031633146106165760405162461bcd60e51b815260206004820152602e60248201527f48616e646c657248656c706572733a2073656e646572206d757374206265206260448201526d1c9a5919d94818dbdb9d1c9858dd60921b606482015260840161023b565b565b80356001600160a01b038116811461062f57600080fd5b919050565b60006020828403121561064657600080fd5b61064f82610618565b9392505050565b6000806040838503121561066957600080fd5b8235915061067960208401610618565b90509250929050565b60006020828403121561069457600080fd5b5035919050565b6000806000604084860312156106b057600080fd5b83359250602084013567ffffffffffffffff808211156106cf57600080fd5b818601915086601f8301126106e357600080fd5b8135818111156106f257600080fd5b87602082850101111561070457600080fd5b6020830194508093505050509250925092565b6000808585111561072757600080fd5b8386111561073457600080fd5b5050820193919092039150565b8035602083101561075a57600019602084900360031b1b165b92915050565b6001600160e01b031981358181169160048510156107885780818660040360031b1b83161692505b505092915050565b6001600160f01b031981358181169160028510156107885760029490940360031b84901b1690921692915050565b6bffffffffffffffffffffffff1981358181169160148510156107885760149490940360031b84901b169092169291505056fea264697066735822122094b87e64164d0196bb5baacdd3fb65d6f339c391e2bc3c4ff112e0996116e9a264736f6c63430008120033", "linkReferences": {}, "deployedLinkReferences": {} }