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