@towns-protocol/generated
Version:
## How to generate contract types
315 lines (314 loc) • 6.11 kB
text/typescript
export default [
{
"type": "function",
"name": "__DiamondCut_init",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "diamondCut",
"inputs": [
{
"name": "facetCuts",
"type": "tuple[]",
"internalType": "struct IDiamond.FacetCut[]",
"components": [
{
"name": "facetAddress",
"type": "address",
"internalType": "address"
},
{
"name": "action",
"type": "uint8",
"internalType": "enum IDiamond.FacetCutAction"
},
{
"name": "functionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"name": "init",
"type": "address",
"internalType": "address"
},
{
"name": "initPayload",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "DiamondCut",
"inputs": [
{
"name": "facetCuts",
"type": "tuple[]",
"indexed": false,
"internalType": "struct IDiamond.FacetCut[]",
"components": [
{
"name": "facetAddress",
"type": "address",
"internalType": "address"
},
{
"name": "action",
"type": "uint8",
"internalType": "enum IDiamond.FacetCutAction"
},
{
"name": "functionSelectors",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
},
{
"name": "init",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "initPayload",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint32",
"indexed": false,
"internalType": "uint32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "InterfaceAdded",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"indexed": true,
"internalType": "bytes4"
}
],
"anonymous": false
},
{
"type": "event",
"name": "InterfaceRemoved",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"indexed": true,
"internalType": "bytes4"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressEmptyCode",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DiamondCut_FunctionAlreadyExists",
"inputs": [
{
"name": "selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "DiamondCut_FunctionDoesNotExist",
"inputs": [
{
"name": "facet",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DiamondCut_FunctionFromSameFacetAlreadyExists",
"inputs": [
{
"name": "selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "DiamondCut_ImmutableFacet",
"inputs": []
},
{
"type": "error",
"name": "DiamondCut_InvalidContract",
"inputs": [
{
"name": "init",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DiamondCut_InvalidFacet",
"inputs": [
{
"name": "facet",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DiamondCut_InvalidFacetCutAction",
"inputs": []
},
{
"type": "error",
"name": "DiamondCut_InvalidFacetCutLength",
"inputs": []
},
{
"type": "error",
"name": "DiamondCut_InvalidFacetRemoval",
"inputs": [
{
"name": "facet",
"type": "address",
"internalType": "address"
},
{
"name": "selector",
"type": "bytes4",
"internalType": "bytes4"
}
]
},
{
"type": "error",
"name": "DiamondCut_InvalidFacetSelectors",
"inputs": [
{
"name": "facet",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "DiamondCut_InvalidSelector",
"inputs": []
},
{
"type": "error",
"name": "FailedCall",
"inputs": []
},
{
"type": "error",
"name": "Initializable_AlreadyInitialized",
"inputs": [
{
"name": "version",
"type": "uint32",
"internalType": "uint32"
}
]
},
{
"type": "error",
"name": "Initializable_InInitializingState",
"inputs": []
},
{
"type": "error",
"name": "Initializable_NotInInitializingState",
"inputs": []
},
{
"type": "error",
"name": "Introspection_AlreadySupported",
"inputs": []
},
{
"type": "error",
"name": "Introspection_NotSupported",
"inputs": []
},
{
"type": "error",
"name": "Ownable__NotOwner",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "Ownable__ZeroAddress",
"inputs": []
}
] as const