@etherisc/gif-interface
Version:
This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.
1,612 lines (1,611 loc) • 74 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "adjustStakingRequirements",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "archive",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
}
],
"name": "createFeeSpecification",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "createRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "decline",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
}
],
"name": "deregister",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "release",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
}
],
"name": "deregisterInRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "principal",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "invalidateRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "newRelease",
"type": "bytes32"
}
],
"name": "prepareRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
}
],
"name": "register",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "release",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "contractName",
"type": "bytes32"
},
{
"internalType": "address",
"name": "contractAddress",
"type": "address"
}
],
"name": "registerInRelease",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "resume",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "resumeTreasury",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "principal",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpec",
"type": "tuple"
}
],
"name": "setCapitalFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "componentType",
"type": "uint16"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "setDefaultStaking",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "walletAddress",
"type": "address"
}
],
"name": "setInstanceWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "componentId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fixedFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "fractionalFee",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "feeCalculationData",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct ITreasury.FeeSpecification",
"name": "feeSpec",
"type": "tuple"
}
],
"name": "setPremiumFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "productId",
"type": "uint256"
},
{
"internalType": "address",
"name": "erc20Address",
"type": "address"
}
],
"name": "setProductToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "riskpoolId",
"type": "uint256"
},
{
"internalType": "address",
"name": "walletAddress",
"type": "address"
}
],
"name": "setRiskpoolWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "suspend",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "suspendTreasury",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"24": "contracts/services/IInstanceOperatorService.sol"
},
"ast": {
"absolutePath": "contracts/services/IInstanceOperatorService.sol",
"exportedSymbols": {
"IERC20": [
4956
],
"IInstanceOperatorService": [
3984
],
"ITreasury": [
3798
]
},
"id": 3985,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3835,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:24"
},
{
"absolutePath": "contracts/modules/ITreasury.sol",
"file": "../modules/ITreasury.sol",
"id": 3836,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 3985,
"sourceUnit": 3799,
"src": "63:34:24",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 3984,
"linearizedBaseContracts": [
3984
],
"name": "IInstanceOperatorService",
"nameLocation": "109:24:24",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "893917ea",
"id": 3841,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "prepareRelease",
"nameLocation": "166:14:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3839,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3838,
"mutability": "mutable",
"name": "newRelease",
"nameLocation": "189:10:24",
"nodeType": "VariableDeclaration",
"scope": 3841,
"src": "181:18:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3837,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "181:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "180:20:24"
},
"returnParameters": {
"id": 3840,
"nodeType": "ParameterList",
"parameters": [],
"src": "209:0:24"
},
"scope": 3984,
"src": "157:53:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d22057a9",
"id": 3848,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "register",
"nameLocation": "224:8:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3846,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3843,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "241:12:24",
"nodeType": "VariableDeclaration",
"scope": 3848,
"src": "233:20:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3842,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "233:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3845,
"mutability": "mutable",
"name": "contractAddress",
"nameLocation": "263:15:24",
"nodeType": "VariableDeclaration",
"scope": 3848,
"src": "255:23:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3844,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "255:7:24",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "232:47:24"
},
"returnParameters": {
"id": 3847,
"nodeType": "ParameterList",
"parameters": [],
"src": "288:0:24"
},
"scope": 3984,
"src": "215:74:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "20813154",
"id": 3853,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deregister",
"nameLocation": "303:10:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3851,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3850,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "322:12:24",
"nodeType": "VariableDeclaration",
"scope": 3853,
"src": "314:20:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3849,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "314:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "313:22:24"
},
"returnParameters": {
"id": 3852,
"nodeType": "ParameterList",
"parameters": [],
"src": "344:0:24"
},
"scope": 3984,
"src": "294:51:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1d5e7314",
"id": 3862,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "registerInRelease",
"nameLocation": "359:17:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3860,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3855,
"mutability": "mutable",
"name": "release",
"nameLocation": "385:7:24",
"nodeType": "VariableDeclaration",
"scope": 3862,
"src": "377:15:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3854,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "377:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3857,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "402:12:24",
"nodeType": "VariableDeclaration",
"scope": 3862,
"src": "394:20:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3856,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "394:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3859,
"mutability": "mutable",
"name": "contractAddress",
"nameLocation": "424:15:24",
"nodeType": "VariableDeclaration",
"scope": 3862,
"src": "416:23:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3858,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "416:7:24",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "376:64:24"
},
"returnParameters": {
"id": 3861,
"nodeType": "ParameterList",
"parameters": [],
"src": "449:0:24"
},
"scope": 3984,
"src": "350:100:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dc527b08",
"id": 3869,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deregisterInRelease",
"nameLocation": "464:19:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3867,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3864,
"mutability": "mutable",
"name": "release",
"nameLocation": "492:7:24",
"nodeType": "VariableDeclaration",
"scope": 3869,
"src": "484:15:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3863,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "484:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3866,
"mutability": "mutable",
"name": "contractName",
"nameLocation": "509:12:24",
"nodeType": "VariableDeclaration",
"scope": 3869,
"src": "501:20:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3865,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "501:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "483:39:24"
},
"returnParameters": {
"id": 3868,
"nodeType": "ParameterList",
"parameters": [],
"src": "531:0:24"
},
"scope": 3984,
"src": "455:77:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c42994a2",
"id": 3874,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createRole",
"nameLocation": "561:10:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3872,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3871,
"mutability": "mutable",
"name": "role",
"nameLocation": "580:4:24",
"nodeType": "VariableDeclaration",
"scope": 3874,
"src": "572:12:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3870,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "572:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "571:14:24"
},
"returnParameters": {
"id": 3873,
"nodeType": "ParameterList",
"parameters": [],
"src": "594:0:24"
},
"scope": 3984,
"src": "552:43:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d17d0233",
"id": 3879,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "invalidateRole",
"nameLocation": "609:14:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3877,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3876,
"mutability": "mutable",
"name": "role",
"nameLocation": "632:4:24",
"nodeType": "VariableDeclaration",
"scope": 3879,
"src": "624:12:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3875,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "624:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "623:14:24"
},
"returnParameters": {
"id": 3878,
"nodeType": "ParameterList",
"parameters": [],
"src": "646:0:24"
},
"scope": 3984,
"src": "600:47:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "2f2ff15d",
"id": 3886,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "grantRole",
"nameLocation": "661:9:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3884,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3881,
"mutability": "mutable",
"name": "role",
"nameLocation": "679:4:24",
"nodeType": "VariableDeclaration",
"scope": 3886,
"src": "671:12:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3880,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "671:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3883,
"mutability": "mutable",
"name": "principal",
"nameLocation": "693:9:24",
"nodeType": "VariableDeclaration",
"scope": 3886,
"src": "685:17:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3882,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "685:7:24",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "670:33:24"
},
"returnParameters": {
"id": 3885,
"nodeType": "ParameterList",
"parameters": [],
"src": "712:0:24"
},
"scope": 3984,
"src": "652:61:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d547741f",
"id": 3893,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "revokeRole",
"nameLocation": "727:10:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3891,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3888,
"mutability": "mutable",
"name": "role",
"nameLocation": "746:4:24",
"nodeType": "VariableDeclaration",
"scope": 3893,
"src": "738:12:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3887,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "738:7:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3890,
"mutability": "mutable",
"name": "principal",
"nameLocation": "760:9:24",
"nodeType": "VariableDeclaration",
"scope": 3893,
"src": "752:17:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3889,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "752:7:24",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "737:33:24"
},
"returnParameters": {
"id": 3892,
"nodeType": "ParameterList",
"parameters": [],
"src": "779:0:24"
},
"scope": 3984,
"src": "718:62:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b759f954",
"id": 3898,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nameLocation": "812:7:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3896,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3895,
"mutability": "mutable",
"name": "id",
"nameLocation": "828:2:24",
"nodeType": "VariableDeclaration",
"scope": 3898,
"src": "820:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3894,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "820:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "819:12:24"
},
"returnParameters": {
"id": 3897,
"nodeType": "ParameterList",
"parameters": [],
"src": "840:0:24"
},
"scope": 3984,
"src": "803:38:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a0355f4e",
"id": 3903,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decline",
"nameLocation": "855:7:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3901,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3900,
"mutability": "mutable",
"name": "id",
"nameLocation": "871:2:24",
"nodeType": "VariableDeclaration",
"scope": 3903,
"src": "863:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3899,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "863:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "862:12:24"
},
"returnParameters": {
"id": 3902,
"nodeType": "ParameterList",
"parameters": [],
"src": "883:0:24"
},
"scope": 3984,
"src": "846:38:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "4b865846",
"id": 3908,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "suspend",
"nameLocation": "898:7:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3906,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3905,
"mutability": "mutable",
"name": "id",
"nameLocation": "914:2:24",
"nodeType": "VariableDeclaration",
"scope": 3908,
"src": "906:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3904,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "906:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "905:12:24"
},
"returnParameters": {
"id": 3907,
"nodeType": "ParameterList",
"parameters": [],
"src": "926:0:24"
},
"scope": 3984,
"src": "889:38:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "414000b5",
"id": 3913,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "resume",
"nameLocation": "941:6:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3911,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3910,
"mutability": "mutable",
"name": "id",
"nameLocation": "956:2:24",
"nodeType": "VariableDeclaration",
"scope": 3913,
"src": "948:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3909,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "948:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "947:12:24"
},
"returnParameters": {
"id": 3912,
"nodeType": "ParameterList",
"parameters": [],
"src": "968:0:24"
},
"scope": 3984,
"src": "932:37:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "93c829fc",
"id": 3918,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "archive",
"nameLocation": "983:7:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3916,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3915,
"mutability": "mutable",
"name": "id",
"nameLocation": "999:2:24",
"nodeType": "VariableDeclaration",
"scope": 3918,
"src": "991:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3914,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "991:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "990:12:24"
},
"returnParameters": {
"id": 3917,
"nodeType": "ParameterList",
"parameters": [],
"src": "1011:0:24"
},
"scope": 3984,
"src": "974:38:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "394c78ba",
"id": 3925,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setDefaultStaking",
"nameLocation": "1054:17:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3923,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3920,
"mutability": "mutable",
"name": "componentType",
"nameLocation": "1079:13:24",
"nodeType": "VariableDeclaration",
"scope": 3925,
"src": "1072:20:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 3919,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1072:6:24",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3922,
"mutability": "mutable",
"name": "data",
"nameLocation": "1109:4:24",
"nodeType": "VariableDeclaration",
"scope": 3925,
"src": "1094:19:24",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 3921,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1094:5:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "1071:43:24"
},
"returnParameters": {
"id": 3924,
"nodeType": "ParameterList",
"parameters": [],
"src": "1123:0:24"
},
"scope": 3984,
"src": "1045:79:24",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "72beb6fb",
"id": 3932,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "adjustStakingRequirements",
"nameLocation": "1138:25:24",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3930,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3927,
"mutability": "mutable",
"name": "id",
"nameLocation": "1172:2:24",
"nodeType": "VariableDeclaration",
"scope": 3932,
"src": "1164:10:24",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3926,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1164:7:24",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3929,
"mutability": "mutable",
"name": "data",
"nameLocation": "1191:4:24",
"nodeType": "VariableDeclaration",
"scope": 3932,
"src": "1176:19:24",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 3928,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1176:5:24",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}