-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Logan Nguyen <[email protected]>
- Loading branch information
1 parent
b1c678e
commit f2391d5
Showing
151 changed files
with
38,533 additions
and
0 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
contracts-abi/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,103 @@ | ||
[ | ||
{ | ||
"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" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
contracts-abi/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,9 @@ | ||
[ | ||
{ | ||
"inputs": [], | ||
"name": "init", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
142 changes: 142 additions & 0 deletions
142
contracts-abi/contracts/diamond-pattern/facets/DiamondCutFacet.sol/DiamondCutFacet.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,142 @@ | ||
[ | ||
{ | ||
"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": [ | ||
{ | ||
"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" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facetAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "enum IDiamondCut.FacetCutAction", | ||
"name": "action", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "functionSelectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct IDiamondCut.FacetCut[]", | ||
"name": "_diamondCut", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_init", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "_calldata", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "diamondCut", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
97 changes: 97 additions & 0 deletions
97
contracts-abi/contracts/diamond-pattern/facets/DiamondLoupeFacet.sol/DiamondLoupeFacet.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,97 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes4", | ||
"name": "_functionSelector", | ||
"type": "bytes4" | ||
} | ||
], | ||
"name": "facetAddress", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facetAddress_", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "facetAddresses", | ||
"outputs": [ | ||
{ | ||
"internalType": "address[]", | ||
"name": "facetAddresses_", | ||
"type": "address[]" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_facet", | ||
"type": "address" | ||
} | ||
], | ||
"name": "facetFunctionSelectors", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "facetFunctionSelectors_", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "facets", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "facetAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes4[]", | ||
"name": "functionSelectors", | ||
"type": "bytes4[]" | ||
} | ||
], | ||
"internalType": "struct IDiamondLoupe.Facet[]", | ||
"name": "facets_", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes4", | ||
"name": "_interfaceId", | ||
"type": "bytes4" | ||
} | ||
], | ||
"name": "supportsInterface", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.