UNPKG

@etherisc/depeg-contracts

Version:

Etherisc's smart contracts for a depeg insurance for stable coins.

1,977 lines (1,976 loc) 1.22 MB
{ "abi": [ { "inputs": [ { "internalType": "address", "name": "dipAddress", "type": "address" }, { "internalType": "address", "name": "usdtAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint96", "name": "nftId", "type": "uint96" }, { "indexed": false, "internalType": "uint256", "name": "lifetimeExtension", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" } ], "name": "LogMockBundleLifetimeExtended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "indexed": false, "internalType": "uint8", "name": "objectType", "type": "uint8" }, { "indexed": false, "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" } ], "name": "LogMockBundleRegistered", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "indexed": false, "internalType": "uint8", "name": "objectType", "type": "uint8" }, { "indexed": false, "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" } ], "name": "LogMockComponentRegistered", "type": "event" }, { "inputs": [], "name": "BUNDLE", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CHAIN", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "EXP", "outputs": [ { "internalType": "int8", "name": "", "type": "int8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INSTANCE", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MULTIPLIER", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "NAME", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ORACLE", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "POLICY", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PRODUCT", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "REGISTRY", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RISKPOOL", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "STAKE", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SYMBOL", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TOKEN", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UNDEFINED", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "targetNftId", "type": "uint96" } ], "name": "capitalSupport", "outputs": [ { "internalType": "uint256", "name": "capitalAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "name": "decodeBundleData", "outputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "displayName", "type": "string" }, { "internalType": "uint256", "name": "expiryAt", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "name": "decodeComponentData", "outputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "componentId", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "name": "decodeStakeData", "outputs": [ { "internalType": "uint96", "name": "target", "type": "uint96" }, { "internalType": "uint8", "name": "targetType", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "string", "name": "displayName", "type": "string" }, { "internalType": "uint256", "name": "expiryAt", "type": "uint256" } ], "name": "encodeBundleData", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "exists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "tokenId", "type": "uint96" } ], "name": "exists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" }, { "internalType": "uint256", "name": "lifetimeExtension", "type": "uint256" } ], "name": "extendBundleLifetime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "getBundleNftId", "outputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "getComponentNftId", "outputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getDip", "outputs": [ { "internalType": "contract IERC20Metadata", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" } ], "name": "getInstanceNftId", "outputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getNft", "outputs": [ { "internalType": "contract IChainNftFacade", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "internalType": "uint8", "name": "objectType", "type": "uint8" }, { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getNftId", "outputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "name": "getNftInfo", "outputs": [ { "components": [ { "internalType": "uint96", "name": "id", "type": "uint96" }, { "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "internalType": "uint8", "name": "objectType", "type": "uint8" }, { "internalType": "enum IChainRegistryFacadeExt.ObjectState", "name": "state", "type": "uint8" }, { "internalType": "string", "name": "uri", "type": "string" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint32", "name": "mintedIn", "type": "uint32" }, { "internalType": "uint32", "name": "updatedIn", "type": "uint32" }, { "internalType": "uint48", "name": "version", "type": "uint48" } ], "internalType": "struct IChainRegistryFacadeExt.NftInfo", "name": "info", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRegistry", "outputs": [ { "internalType": "contract IChainRegistryFacade", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getStakingWallet", "outputs": [ { "internalType": "address", "name": "stakingWallet", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "implementsIStaking", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "maxRewardRate", "outputs": [ { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "string", "name": "uri", "type": "string" } ], "name": "mint", "outputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" } ], "name": "mockRegisterRiskpool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "internalType": "uint8", "name": "objectType", "type": "uint8" } ], "name": "objects", "outputs": [ { "internalType": "uint256", "name": "numberOfObjects", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "type": "uint96" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "nftOwner", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rateDecimals", "outputs": [ { "internalType": "uint256", "name": "decimals", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "string", "name": "displayName", "type": "string" }, { "internalType": "uint256", "name": "expiryAt", "type": "uint256" } ], "name": "registerBundle", "outputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "string", "name": "uri", "type": "string" } ], "name": "registerComponent", "outputs": [ { "internalType": "uint96", "name": "nftId", "type": "uint96" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "rewardBalance", "outputs": [ { "internalType": "uint256", "name": "dipAmount", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "rewardRate", "outputs": [ { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "rewardReserves", "outputs": [ { "internalType": "uint256", "name": "dipAmount", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "dipAmount", "type": "uint256" } ], "name": "setStakeBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "targetNftId", "type": "uint96" }, { "internalType": "uint256", "name": "dipAmount", "type": "uint256" } ], "name": "setStakedDip", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "name": "setStakingRate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "stakeBalance", "outputs": [ { "internalType": "uint256", "name": "dipAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" }, { "internalType": "address", "name": "token", "type": "address" } ], "name": "stakingRate", "outputs": [ { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "chainId", "type": "uint256" } ], "name": "toChain", "outputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "int8", "name": "exp", "type": "int8" } ], "name": "toRate", "outputs": [ { "internalType": "uint256", "name": "rate", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "totalMinted", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "uint48", "name": "", "type": "uint48" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "versionParts", "outputs": [ { "internalType": "uint16", "name": "major", "type": "uint16" }, { "internalType": "uint16", "name": "minor", "type": "uint16" }, { "internalType": "uint16", "name": "patch", "type": "uint16" } ], "stateMutability": "pure", "type": "function" } ], "allSourcePaths": { "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "5": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/extensions/IERC20Metadata.sol", "59": "contracts/registry/IChainNftFacade.sol", "60": "contracts/registry/IChainRegistryFacade.sol", "61": "contracts/registry/IChainRegistryFacadeExt.sol", "62": "contracts/staking/IStakingFacade.sol", "65": "contracts/test/MockRegistryStaking.sol" }, "ast": { "absolutePath": "contracts/test/MockRegistryStaking.sol", "exportedSymbols": { "IChainNftFacade": [ 7342 ], "IChainRegistryFacade": [ 7497 ], "IChainRegistryFacadeExt": [ 7550 ], "IERC20Metadata": [ 9510 ], "IStakingFacade": [ 7660 ], "MockRegistryStaking": [ 9109 ] }, "id": 9110, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 7857, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:65" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/extensions/IERC20Metadata.sol", "file": "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol", "id": 7859, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9110, "sourceUnit": 9511, "src": "63:97:65", "symbolAliases": [ { "foreign": { "id": 7858, "name": "IERC20Metadata", "nodeType": "Identifier", "overloadedDeclarations": [], "src": "71:14:65", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "absolutePath": "contracts/registry/IChainNftFacade.sol", "file": "../registry/IChainNftFacade.sol", "id": 7861, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9110, "sourceUnit": 7343, "src": "162:64:65", "symbolAliases": [ { "foreign": { "id": 7860, "name": "IChainNftFacade", "nodeType": "Identifier", "overloadedDeclarations": [], "src": "170:15:65", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "absolutePath": "contracts/registry/IChainRegistryFacade.sol", "file": "../registry/IChainRegistryFacade.sol", "id": 7863, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9110, "sourceUnit": 7498, "src": "227:74:65", "symbolAliases": [ { "foreign": { "id": 7862, "name": "IChainRegistryFacade", "nodeType": "Identifier", "overloadedDeclarations": [], "src": "235:20:65", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "absolutePath": "contracts/registry/IChainRegistryFacadeExt.sol", "file": "../registry/IChainRegistryFacadeExt.sol", "id": 7865, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9110, "sourceUnit": 7551, "src": "302:80:65", "symbolAliases": [ { "foreign": { "id": 7864, "name": "IChainRegistryFacadeExt", "nodeType": "Identifier", "overloadedDeclarations": [], "src": "310:23:65", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "absolutePath": "contracts/staking/IStakingFacade.sol", "file": "../staking/IStakingFacade.sol", "id": 7867, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 9110, "sourceUnit": 7661, "src": "383:61:65", "symbolAliases": [ { "foreign": { "id": 7866, "name": "IStakingFacade", "nodeType": "Identifier", "overloadedDeclarations": [], "src": "391:14:65", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 7868, "name": "IChainNftFacade", "nodeType": "IdentifierPath", "referencedDeclaration": 7342, "src": "528:15:65" }, "id": 7869, "nodeType": "InheritanceSpecifier", "src": "528:15:65" }, { "baseName": { "id": 7870, "name": "IChainRegistryFacadeExt", "nodeType": "IdentifierPath", "referencedDeclaration": 7550, "src": "549:23:65" }, "id": 7871, "nodeType": "InheritanceSpecifier", "src": "549:23:65" }, { "baseName": { "id": 7872, "name": "IStakingFacade", "nodeType": "IdentifierPath", "referencedDeclaration": 7660, "src": "578:14:65" }, "id": 7873, "nodeType": "InheritanceSpecifier", "src": "578:14:65" } ], "contractDependencies": [ 7342, 7497, 7550, 7660 ], "contractKind": "contract", "fullyImplemented": true, "id": 9109, "linearizedBaseContracts": [ 9109, 7660, 7550, 7497, 7342 ], "name": "MockRegistryStaking", "nameLocation": "501:19:65", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "functionSelector": "a3f4df7e", "id": 7876, "mutability": "constant", "name": "NAME", "nameLocation": "639:4:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "616:80:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7874, "name": "string", "nodeType": "ElementaryTypeName", "src": "616:6:65", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "hexValue": "44657a656e7472616c697a656420496e737572616e63652050726f746f636f6c20526567697374727920284d4f434b29", "id": 7875, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "646:50:65", "typeDescriptions": { "typeIdentifier": "t_stringliteral_55e7e98e59125d3ef2fd8caa73e74fd23b7469dead653cdb98aa013364bfa1a3", "typeString": "literal_string \"Dezentralized Insurance Protocol Registry (MOCK)\"" }, "value": "Dezentralized Insurance Protocol Registry (MOCK)" }, "visibility": "public" }, { "constant": true, "functionSelector": "f76f8d78", "id": 7879, "mutability": "constant", "name": "SYMBOL", "nameLocation": "725:6:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "702:38:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 7877, "name": "string", "nodeType": "ElementaryTypeName", "src": "702:6:65", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "hexValue": "44495052", "id": 7878, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "734:6:65", "typeDescriptions": { "typeIdentifier": "t_stringliteral_10d272bd79797ed977c59af24288b18d45b050c503dd8a40cb7a9696a5018ccb", "typeString": "literal_string \"DIPR\"" }, "value": "DIPR" }, "visibility": "public" }, { "constant": true, "functionSelector": "adc2fc75", "id": 7885, "mutability": "constant", "name": "UNDEFINED", "nameLocation": "794:9:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "772:42:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 7880, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "772:5:65", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": { "arguments": [ { "hexValue": "30", "id": 7883, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "812:1:65", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" } ], "id": 7882, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "806:5:65", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint8_$", "typeString": "type(uint8)" }, "typeName": { "id": 7881, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "806:5:65", "typeDescriptions": {} } }, "id": 7884, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "806:8:65", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "public" }, { "constant": true, "functionSelector": "43ee8213", "id": 7891, "mutability": "constant", "name": "CHAIN", "nameLocation": "842:5:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "820:38:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 7886, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "820:5:65", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": { "arguments": [ { "hexValue": "32", "id": 7889, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "856:1:65", "typeDescriptions": { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" }, "value": "2" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_2_by_1", "typeString": "int_const 2" } ], "id": 7888, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "850:5:65", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint8_$", "typeString": "type(uint8)" }, "typeName": { "id": 7887, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "850:5:65", "typeDescriptions": {} } }, "id": 7890, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "850:8:65", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "public" }, { "constant": true, "functionSelector": "06433b1b", "id": 7897, "mutability": "constant", "name": "REGISTRY", "nameLocation": "886:8:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "864:41:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 7892, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "864:5:65", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": { "arguments": [ { "hexValue": "33", "id": 7895, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "903:1:65", "typeDescriptions": { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" }, "value": "3" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_3_by_1", "typeString": "int_const 3" } ], "id": 7894, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "897:5:65", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint8_$", "typeString": "type(uint8)" }, "typeName": { "id": 7893, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "897:5:65", "typeDescriptions": {} } }, "id": 7896, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "897:8:65", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "public" }, { "constant": true, "functionSelector": "82bfefc8", "id": 7903, "mutability": "constant", "name": "TOKEN", "nameLocation": "933:5:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "911:38:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 7898, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "911:5:65", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": { "arguments": [ { "hexValue": "34", "id": 7901, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "947:1:65", "typeDescriptions": { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" }, "value": "4" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_4_by_1", "typeString": "int_const 4" } ], "id": 7900, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "941:5:65", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint8_$", "typeString": "type(uint8)" }, "typeName": { "id": 7899, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "941:5:65", "typeDescriptions": {} } }, "id": 7902, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "941:8:65", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "public" }, { "constant": true, "functionSelector": "125fdbbc", "id": 7909, "mutability": "constant", "name": "STAKE", "nameLocation": "977:5:65", "nodeType": "VariableDeclaration", "scope": 9109, "src": "955:39:65", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 7904, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "955:5:65", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": { "arguments": [ { "hexValue": "3130", "id": 7907, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "991:2:65", "typeDescriptions": { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" }, "value": "10" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_rational_10_by_1", "typeString": "int_const 10" } ], "id": 7906, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "985:5:65", "typeDescriptions": { "typeIdentifier": "t_type$_t_uint8_$", "typeString": "type(uint8)" }, "typeName": { "id": 7905, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "985:5:65", "typeDescriptions": {} } }, "id": 7908, "isConstant": false, "isLValue": false, "isPure": true, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "985:9:65", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "public" }, { "constant": true, "functionSelector": "d15db8b4", "id": 7915, "mutability": "constant", "name": "INSTANCE", "nameLocation": "1022:8:65", "nodeType": "VariableDeclaration", "scope": 9109,