@towns-protocol/generated
Version:
## How to generate contract types
137 lines (136 loc) • 2.7 kB
text/typescript
export default [
{
"type": "event",
"name": "FeeDistribution",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "protocol",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "poster",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "protocolAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "posterAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Swap",
"inputs": [
{
"name": "router",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenIn",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amountIn",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SwapRouterInitialized",
"inputs": [
{
"name": "spaceFactory",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "SwapRouter__InsufficientOutput",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__InvalidAmount",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__InvalidBps",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__InvalidRouter",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__RecipientRequired",
"inputs": []
},
{
"type": "error",
"name": "SwapRouter__UnexpectedETH",
"inputs": []
}
] as const