@sfpro/sdk
Version:
TypeScript SDK for Superfluid Protocol - stream money every second
193 lines (192 loc) • 3.06 kB
JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "fluid",
"type": "address",
"internalType": "contract ISuperToken"
},
{
"name": "taxDistributionPool",
"type": "address",
"internalType": "contract ISuperfluidPool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "EARLY_END",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FLUID",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ISuperToken"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "TAX_DISTRIBUTION_POOL",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ISuperfluidPool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "endDate",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "unlockRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "targetUnlockFlowRate",
"type": "int96",
"internalType": "int96"
},
{
"name": "targetTaxFlowRate",
"type": "int96",
"internalType": "int96"
},
{
"name": "unlockPeriod",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "recipient",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "taxFlowRate",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint96",
"internalType": "uint96"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "terminateUnlock",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "unlockFlowRate",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint96",
"internalType": "uint96"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "error",
"name": "CANNOT_UNLOCK_TO_SUPERAPP",
"inputs": []
},
{
"type": "error",
"name": "CFA_INVALID_FLOW_RATE",
"inputs": []
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NOT_CONNECTED_LOCKER",
"inputs": []
},
{
"type": "error",
"name": "NO_ACTIVE_UNLOCK",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "TOO_EARLY_TO_TERMINATE_UNLOCK",
"inputs": []
}
]