@settlemint/solidity-diamond-bond
Version:
Smart contract set to build an enterprise bond usecase in SettleMint
249 lines • 7.13 kB
JSON
{
"compiler": {
"version": "0.8.30+commit.73712a01"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "_functionSelector",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function",
"name": "facetAddress",
"outputs": [
{
"internalType": "address",
"name": "facetAddress_",
"type": "address"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "facetAddresses",
"outputs": [
{
"internalType": "address[]",
"name": "facetAddresses_",
"type": "address[]"
}
]
},
{
"inputs": [
{
"internalType": "address",
"name": "_facet",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"name": "facetFunctionSelectors",
"outputs": [
{
"internalType": "bytes4[]",
"name": "_facetFunctionSelectors",
"type": "bytes4[]"
}
]
},
{
"inputs": [],
"stateMutability": "view",
"type": "function",
"name": "facets",
"outputs": [
{
"internalType": "struct IDiamondLoupe.Facet[]",
"name": "facets_",
"type": "tuple[]",
"components": [
{
"internalType": "address",
"name": "facetAddress",
"type": "address"
},
{
"internalType": "bytes4[]",
"name": "functionSelectors",
"type": "bytes4[]"
}
]
}
]
},
{
"inputs": [],
"stateMutability": "pure",
"type": "function",
"name": "getSelectors",
"outputs": [
{
"internalType": "bytes4[]",
"name": "",
"type": "bytes4[]"
}
]
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceId",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function",
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
]
}
],
"devdoc": {
"kind": "dev",
"methods": {
"facetAddress(bytes4)": {
"details": "If facet is not found return address(0).",
"params": {
"_functionSelector": "The function selector."
},
"returns": {
"facetAddress_": "The facet address."
}
},
"facetAddresses()": {
"returns": {
"facetAddresses_": "facetAddresses_"
}
},
"facetFunctionSelectors(address)": {
"params": {
"_facet": "The facet address."
},
"returns": {
"_facetFunctionSelectors": "The selectors associated with a facet address."
}
},
"facets()": {
"returns": {
"facets_": "Facet"
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"facetAddress(bytes4)": {
"notice": "Gets the facet address that supports the given selector."
},
"facetAddresses()": {
"notice": "Get all the facet addresses used by a diamond."
},
"facetFunctionSelectors(address)": {
"notice": "Gets all the function selectors supported by a specific facet."
},
"facets()": {
"notice": "Gets all facets and their selectors."
}
},
"version": 1
}
},
"settings": {
"remappings": [
"@openzeppelin/=node_modules/@openzeppelin/",
"@prb/math/=node_modules/@prb/math/",
"forge-std/=lib/forge-std/src/",
"hardhat/=node_modules/hardhat/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"compilationTarget": {
"contracts/facets/DiamondLoupeFacet.sol": "DiamondLoupeFacet"
},
"evmVersion": "cancun",
"libraries": {},
"viaIR": true
},
"sources": {
"contracts/facets/DiamondLoupeFacet.sol": {
"keccak256": "0x54cff1f94130fcc0f31b9135f28d7e3170c1e3e2a2c55c5cc12e197aced36f26",
"urls": [
"bzz-raw://0aac32bd85969f3c25272171c9ab9665fa5e2c78e8ef06a0d0531d300d773295",
"dweb:/ipfs/QmSLFXBcWeMWJe3XQ1EyhKEqcZnNW9WuvpAF4YkcAuJ1Cb"
],
"license": "FSL-1.1-MIT"
},
"contracts/interfaces/IDiamond.sol": {
"keccak256": "0xe64a3e7835e76770dde0a4ebd76518adf3625bad068d7f1ebf67226c8b9f45bb",
"urls": [
"bzz-raw://ae31e558bc047906d9405946934b997f2422e89f90a7c401d14e6bed3288a7b3",
"dweb:/ipfs/QmRz2yxg5EU7bQfKjV5v2BoBioSg4b3jS3B2Q26HUinjNH"
],
"license": "FSL-1.1-MIT"
},
"contracts/interfaces/IDiamondCut.sol": {
"keccak256": "0xd5ceb83ab242c9121c7aaea777284a3f9a197fcf233c2f87a05894d3849a34c8",
"urls": [
"bzz-raw://fc6be88f47cd1f40e4c37b9bff8028836baf85c04862c810c92644030474da2a",
"dweb:/ipfs/QmRnNhYSUH3REeBJRgkNuEDPnFF34Dosae5BJaP7ZCCDBT"
],
"license": "FSL-1.1-MIT"
},
"contracts/interfaces/IDiamondLoupe.sol": {
"keccak256": "0x0442c55325dc04102d3b25ef6b1455911f467289d8ab729b50141c9fcde9d245",
"urls": [
"bzz-raw://50b769ea99837e824e4bd7c1e5686fc2dffd74f121a96853b272259e5a189289",
"dweb:/ipfs/QmejuJt72dTEXH9AXxwHeLnnND2CK5tDpoGUZDZYWHMvbK"
],
"license": "FSL-1.1-MIT"
},
"contracts/libraries/LibDiamond.sol": {
"keccak256": "0x3b1fb5d1225ab0ccf5ebb7b46ff0cf7b1e66157ade88e9b5282c1774c6ebcb42",
"urls": [
"bzz-raw://265d5b848f2f4216931cabd38544cedf47c00003867ac8d5088d475bde6fa5f3",
"dweb:/ipfs/QmSZTbb6BnCWJSfm3YtkoEJGHyhWSi3nwia7PjwsussBmM"
],
"license": "FSL-1.1-MIT"
},
"node_modules/@openzeppelin/contracts/interfaces/IERC165.sol": {
"keccak256": "0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc",
"urls": [
"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037",
"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"
],
"license": "MIT"
},
"node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol": {
"keccak256": "0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c",
"urls": [
"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617",
"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"
],
"license": "MIT"
}
},
"version": 1
}