@towns-protocol/generated
Version:
## How to generate contract types
400 lines (399 loc) • 8.01 kB
text/typescript
export default [
{
"type": "function",
"name": "accessDuration",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint48",
"internalType": "uint48"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "cancelOwnershipHandover",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "completeOwnershipHandover",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "executionManifest",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct ExecutionManifest",
"components": [
{
"name": "executionFunctions",
"type": "tuple[]",
"internalType": "struct ManifestExecutionFunction[]",
"components": [
{
"name": "executionSelector",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "skipRuntimeValidation",
"type": "bool",
"internalType": "bool"
},
{
"name": "allowGlobalValidation",
"type": "bool",
"internalType": "bool"
}
]
},
{
"name": "executionHooks",
"type": "tuple[]",
"internalType": "struct ManifestExecutionHook[]",
"components": [
{
"name": "executionSelector",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "entityId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "isPreHook",
"type": "bool",
"internalType": "bool"
},
{
"name": "isPostHook",
"type": "bool",
"internalType": "bool"
}
]
},
{
"name": "interfaceIds",
"type": "bytes4[]",
"internalType": "bytes4[]"
}
]
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "appId",
"type": "string",
"internalType": "string"
},
{
"name": "permissions",
"type": "bytes32[]",
"internalType": "bytes32[]"
},
{
"name": "installPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "accessDuration",
"type": "uint48",
"internalType": "uint48"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "installPrice",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "moduleId",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "moduleOwner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "onInstall",
"inputs": [
{
"name": "postInstallData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "onUninstall",
"inputs": [
{
"name": "postUninstallData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "result",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ownershipHandoverExpiresAt",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "result",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "requestOwnershipHandover",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "requiredPermissions",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32[]",
"internalType": "bytes32[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "updatePricing",
"inputs": [
{
"name": "installPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "accessDuration",
"type": "uint48",
"internalType": "uint48"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipHandoverCanceled",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipHandoverRequested",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "oldOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AlreadyInitialized",
"inputs": []
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NewOwnerIsZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "NoHandoverRequest",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "Unauthorized",
"inputs": []
}
] as const