187 lines
7.1 KiB
JSON
187 lines
7.1 KiB
JSON
{
|
|
"_format": "hh-sol-artifact-1",
|
|
"contractName": "CommodityHandler",
|
|
"sourceName": "contracts/registry/handlers/CommodityHandler.sol",
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "custodians",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getDefaultLimits",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "min",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "max",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "getRequiredCompliance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "enum UniversalAssetRegistry.ComplianceLevel",
|
|
"name": "",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "postTransferHook",
|
|
"outputs": [],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "preTransferHook",
|
|
"outputs": [],
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "certificateHash",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "registerCertificate",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "custodian",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "registerCustodian",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "validCertificates",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "validateAsset",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"bytecode": "0x6080806040523461001657610339908161001c8239f35b600080fdfe6080604090808252600436101561001557600080fd5b600090813560e01c90816315886a551461023f575080634665975d146101eb5780634829861e146101d65780639240d299146101a7578063a9d9c1a414610163578063f2b2b06014610113578063f41b6ce7146100f7578063ff0acf4d146100b85763ff0e3ad31461008657600080fd5b346100b557806003193601126100b55750805166038d7ea4c68000815269d3c21bcecceda10000006020820152f35b80fd5b5090346100f35760203660031901126100f3576020916001600160a01b03908290826100e2610286565b168152600185522054169051908152f35b5080fd5b5090346100f357816003193601126100f3576020905160018152f35b5090346100f357610123366102a1565b9150501561012f575080f35b5162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606490fd5b5090346100f357806003193601126100f3576001600160a01b03610185610286565b1682528160205280822060243583526020528120600160ff1982541617905580f35b5090346100f35760203660031901126100f3576020906101cd6101c8610286565b6102d6565b90519015158152f35b50346100b5576101e5366102a1565b50505080f35b5090346100f357806003193601126100f357610205610286565b6001600160a01b0360243581811693929084900361023b571683526001602052822080546001600160a01b031916909117905580f35b8480fd5b9050823461028257806003193601126102825760209260ff91906001600160a01b03610269610286565b1681528085528181206024358252855220541615158152f35b8280fd5b600435906001600160a01b038216820361029c57565b600080fd5b606090600319011261029c576001600160a01b0390600435828116810361029c5791602435908116810361029c579060443590565b803b156102fd576001600160a01b0390811660009081526001602052604090205416151590565b5060009056fea264697066735822122071e67ce7221f6d7343b7fd7342ba8498e93e596372245fe71778c4c59f55627864736f6c63430008160033",
|
|
"deployedBytecode": "0x6080604090808252600436101561001557600080fd5b600090813560e01c90816315886a551461023f575080634665975d146101eb5780634829861e146101d65780639240d299146101a7578063a9d9c1a414610163578063f2b2b06014610113578063f41b6ce7146100f7578063ff0acf4d146100b85763ff0e3ad31461008657600080fd5b346100b557806003193601126100b55750805166038d7ea4c68000815269d3c21bcecceda10000006020820152f35b80fd5b5090346100f35760203660031901126100f3576020916001600160a01b03908290826100e2610286565b168152600185522054169051908152f35b5080fd5b5090346100f357816003193601126100f3576020905160018152f35b5090346100f357610123366102a1565b9150501561012f575080f35b5162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606490fd5b5090346100f357806003193601126100f3576001600160a01b03610185610286565b1682528160205280822060243583526020528120600160ff1982541617905580f35b5090346100f35760203660031901126100f3576020906101cd6101c8610286565b6102d6565b90519015158152f35b50346100b5576101e5366102a1565b50505080f35b5090346100f357806003193601126100f357610205610286565b6001600160a01b0360243581811693929084900361023b571683526001602052822080546001600160a01b031916909117905580f35b8480fd5b9050823461028257806003193601126102825760209260ff91906001600160a01b03610269610286565b1681528085528181206024358252855220541615158152f35b8280fd5b600435906001600160a01b038216820361029c57565b600080fd5b606090600319011261029c576001600160a01b0390600435828116810361029c5791602435908116810361029c579060443590565b803b156102fd576001600160a01b0390811660009081526001602052604090205416151590565b5060009056fea264697066735822122071e67ce7221f6d7343b7fd7342ba8498e93e596372245fe71778c4c59f55627864736f6c63430008160033",
|
|
"linkReferences": {},
|
|
"deployedLinkReferences": {}
|
|
}
|