-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d85a9ea
commit 62a483b
Showing
58 changed files
with
19,550 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
artifacts/contracts/diamond-pattern/Diamond.sol/Diamond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"_format": "hh-sol-artifact-1", | ||
"contractName": "Diamond", | ||
"sourceName": "contracts/diamond-pattern/Diamond.sol", | ||
"abi": [ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_contractOwner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_diamondCutFacet", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_initializationContractAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_calldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "InitializationFunctionReverted", | ||
"type": "error" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facetAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum IDiamondCut.FacetCutAction", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "functionSelectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"indexed": false, | ||
"internalType": "struct IDiamondCut.FacetCut[]", | ||
"name": "_diamondCut", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "_init", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "_calldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "DiamondCut", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "previousOwner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"stateMutability": "payable", | ||
"type": "fallback" | ||
}, | ||
{ | ||
"stateMutability": "payable", | ||
"type": "receive" | ||
} | ||
], | ||
"bytecode": "0x608060405260405161137c38038061137c83398101604081905261002291610f25565b61002b8261012e565b6040805160018082528183019092525f91816020015b60408051606080820183525f8083526020830152918101919091528152602001906001900390816100415750506040805160018082528183019092529192505f919060208083019080368337019050509050631f931c1c60e01b815f815181106100ad576100ad610f56565b6001600160e01b031990921660209283029190910182015260408051606081019091526001600160a01b03851681529081015f815260200182815250825f815181106100fb576100fb610f56565b6020026020010181905250610125825f60405180602001604052805f8152506101af60201b60201c565b505050506111ab565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080546001600160a01b031981166001600160a01b038481169182179093556040515f805160206112d0833981519152939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5b8351811015610386575f8482815181106101cd576101cd610f56565b60200260200101516020015190505f60028111156101ed576101ed610f6a565b8160028111156101ff576101ff610f6a565b036102525761024d85838151811061021957610219610f56565b60200260200101515f015186848151811061023657610236610f56565b6020026020010151604001516103d160201b60201c565b610373565b600181600281111561026657610266610f6a565b036102b45761024d85838151811061028057610280610f56565b60200260200101515f015186848151811061029d5761029d610f56565b60200260200101516040015161064060201b60201c565b60028160028111156102c8576102c8610f6a565b036103165761024d8583815181106102e2576102e2610f56565b60200260200101515f01518684815181106102ff576102ff610f56565b6020026020010151604001516108b860201b60201c565b60405162461bcd60e51b815260206004820152602760248201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756044820152663a20b1ba34b7b760c91b60648201526084015b60405180910390fd5b508061037e81610f92565b9150506101b1565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516103ba93929190610ff7565b60405180910390a16103cc8282610a09565b505050565b5f8151116104225760405162461bcd60e51b815260206004820152602b60248201525f8051602061135c83398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161036a565b5f805160206112d08339815191526001600160a01b0383166104885760405162461bcd60e51b815260206004820152602c60248201525f8051602061131883398151915260448201526b65206164647265737328302960a01b606482015260840161036a565b6001600160a01b0383165f908152600182016020526040812054906001600160601b03821690036104bd576104bd8285610acb565b5f5b8351811015610639575f8482815181106104db576104db610f56565b6020908102919091018101516001600160e01b031981165f908152918690526040909120549091506001600160a01b031680156105805760405162461bcd60e51b815260206004820152603560248201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f60448201527f6e207468617420616c7265616479206578697374730000000000000000000000606482015260840161036a565b6001600160e01b031982165f8181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b03191617905583610621816110f2565b9450505050808061063190610f92565b9150506104bf565b5050505050565b5f8151116106915760405162461bcd60e51b815260206004820152602b60248201525f8051602061135c83398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161036a565b5f805160206112d08339815191526001600160a01b0383166106f75760405162461bcd60e51b815260206004820152602c60248201525f8051602061131883398151915260448201526b65206164647265737328302960a01b606482015260840161036a565b6001600160a01b0383165f908152600182016020526040812054906001600160601b038216900361072c5761072c8285610acb565b5f5b8351811015610639575f84828151811061074a5761074a610f56565b6020908102919091018101516001600160e01b031981165f908152918690526040909120549091506001600160a01b0390811690871681036107f45760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000606482015260840161036a565b6107ff858284610b34565b6001600160e01b031982165f8181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b031916179055836108a0816110f2565b945050505080806108b090610f92565b91505061072e565b5f8151116109095760405162461bcd60e51b815260206004820152602b60248201525f8051602061135c83398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161036a565b5f805160206112d08339815191526001600160a01b038316156109945760405162461bcd60e51b815260206004820152603660248201527f4c69624469616d6f6e644375743a2052656d6f7665206661636574206164647260448201527f657373206d757374206265206164647265737328302900000000000000000000606482015260840161036a565b5f5b8251811015610a03575f8382815181106109b2576109b2610f56565b6020908102919091018101516001600160e01b031981165f908152918590526040909120549091506001600160a01b03166109ee848284610b34565b505080806109fb90610f92565b915050610996565b50505050565b6001600160a01b038216610a1b575050565b610a3d826040518060600160405280602881526020016112f060289139610ee9565b5f80836001600160a01b031683604051610a57919061111f565b5f60405180830381855af49150503d805f8114610a8f576040519150601f19603f3d011682016040523d82523d5f602084013e610a94565b606091505b509150915081610a0357805115610aae5780518082602001fd5b838360405163192105d760e01b815260040161036a92919061113a565b610aed8160405180606001604052806024815260200161133860249139610ee9565b6002820180546001600160a01b039092165f8181526001948501602090815260408220860185905594840183559182529290200180546001600160a01b0319169091179055565b6001600160a01b038216610bb05760405162461bcd60e51b815260206004820152603760248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360448201527f74696f6e207468617420646f65736e2774206578697374000000000000000000606482015260840161036a565b306001600160a01b03831603610c1f5760405162461bcd60e51b815260206004820152602e60248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560448201526d3a30b1363290333ab731ba34b7b760911b606482015260840161036a565b6001600160e01b031981165f90815260208481526040808320546001600160a01b0386168452600180880190935290832054600160a01b9091046001600160601b03169291610c6d91611165565b9050808214610d5c576001600160a01b0384165f9081526001860160205260408120805483908110610ca157610ca1610f56565b5f91825260208083206008830401546001600160a01b038916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610cf157610cf1610f56565b5f91825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b03199290921682528690526040902080546001600160a01b0316600160a01b6001600160601b038516021790555b6001600160a01b0384165f9081526001860160205260409020805480610d8457610d8461117e565b5f828152602080822060085f1990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b031985168252869052604081208190558190036106395760028501545f90610de490600190611165565b6001600160a01b0386165f908152600180890160205260409091200154909150808214610e8f575f876002018381548110610e2157610e21610f56565b5f918252602090912001546002890180546001600160a01b039092169250829184908110610e5157610e51610f56565b5f91825260208083209190910180546001600160a01b0319166001600160a01b03948516179055929091168152600189810190925260409020018190555b86600201805480610ea257610ea261117e565b5f828152602080822083015f1990810180546001600160a01b03191690559092019092556001600160a01b0388168252600189810190915260408220015550505050505050565b813b8181610a035760405162461bcd60e51b815260040161036a9190611192565b80516001600160a01b0381168114610f20575f80fd5b919050565b5f8060408385031215610f36575f80fd5b610f3f83610f0a565b9150610f4d60208401610f0a565b90509250929050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201610fa357610fa3610f7e565b5060010190565b5f5b83811015610fc4578181015183820152602001610fac565b50505f910152565b5f8151808452610fe3816020860160208601610faa565b601f01601f19169290920160200192915050565b5f6060808301818452808751808352608092508286019150828160051b8701016020808b015f5b848110156110c257898403607f19018652815180516001600160a01b0316855283810151898601906003811061106257634e487b7160e01b5f52602160045260245ffd5b868601526040918201519186018a9052815190819052908401905f90898701905b808310156110ad5783516001600160e01b0319168252928601926001929092019190860190611083565b5097850197955050509082019060010161101e565b50506001600160a01b038a169088015286810360408801526110e48189610fcc565b9a9950505050505050505050565b5f6001600160601b038281166002600160601b0319810161111557611115610f7e565b6001019392505050565b5f8251611130818460208701610faa565b9190910192915050565b6001600160a01b03831681526040602082018190525f9061115d90830184610fcc565b949350505050565b8181038181111561117857611178610f7e565b92915050565b634e487b7160e01b5f52603160045260245ffd5b602081525f6111a46020830184610fcc565b9392505050565b610118806111b85f395ff3fe608060405236600a57005b5f80357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff168060c55760405162461bcd60e51b815260206004820181905260248201527f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374604482015260640160405180910390fd5b365f80375f80365f845af43d5f803e80801560de573d5ff35b3d5ffdfea264697066735822122037c8cfea072fdc197048a0203e60f088610146402ce6469020d2f61b0f3303a164736f6c63430008140033c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c4c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a204164642066616365742063616e277420624c69624469616d6f6e644375743a204e657720666163657420686173206e6f20636f64654c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e2066", | ||
"deployedBytecode": "0x608060405236600a57005b5f80357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff168060c55760405162461bcd60e51b815260206004820181905260248201527f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374604482015260640160405180910390fd5b365f80375f80365f845af43d5f803e80801560de573d5ff35b3d5ffdfea264697066735822122037c8cfea072fdc197048a0203e60f088610146402ce6469020d2f61b0f3303a164736f6c63430008140033", | ||
"linkReferences": {}, | ||
"deployedLinkReferences": {} | ||
} |
18 changes: 18 additions & 0 deletions
18
artifacts/contracts/diamond-pattern/DiamondInit.sol/DiamondInit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"_format": "hh-sol-artifact-1", | ||
"contractName": "DiamondInit", | ||
"sourceName": "contracts/diamond-pattern/DiamondInit.sol", | ||
"abi": [ | ||
{ | ||
"inputs": [], | ||
"name": "init", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"bytecode": "0x608060405234801561000f575f80fd5b506101458061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063e1c7392a1461002d575b5f80fd5b61010d7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131f6020527f699d9daa71b280d05a152715774afa0a81a312594b2d731d6b0b2552b7d6f69f8054600160ff1991821681179092557ff97e938d8af42f52387bb74b8b526fda8f184cc2aa534340a8d75a88fbecc77580548216831790557f65d510a5d8f7ef134ec444f7f34ee808c8eeb5177cdfd16be0c40fe1ab43369580548216831790556307f5828d60e41b5f527f5622121b47b8cd0120c4efe45dd5483242f54a3d49bd7679be565d47694918c380549091169091179055565b00fea2646970667358221220c0ba3d803292c8acaed3cc8adea986c753dd92e96a1b10ac3e1ba8b352d9e20e64736f6c63430008140033", | ||
"deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063e1c7392a1461002d575b5f80fd5b61010d7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131f6020527f699d9daa71b280d05a152715774afa0a81a312594b2d731d6b0b2552b7d6f69f8054600160ff1991821681179092557ff97e938d8af42f52387bb74b8b526fda8f184cc2aa534340a8d75a88fbecc77580548216831790557f65d510a5d8f7ef134ec444f7f34ee808c8eeb5177cdfd16be0c40fe1ab43369580548216831790556307f5828d60e41b5f527f5622121b47b8cd0120c4efe45dd5483242f54a3d49bd7679be565d47694918c380549091169091179055565b00fea2646970667358221220c0ba3d803292c8acaed3cc8adea986c753dd92e96a1b10ac3e1ba8b352d9e20e64736f6c63430008140033", | ||
"linkReferences": {}, | ||
"deployedLinkReferences": {} | ||
} |
Oops, something went wrong.