UNPKG

@etherisc/registry-contracts

Version:

Etherisc's smart contracts for the registry.

1,584 lines 79.1 kB
{ "abi": [ { "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": "uint96", "name": "id", "type": "uint96" } ], "name": "exists", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint96", "name": "id", "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": [ { "internalType": "bytes32", "name": "instanceId", "type": "bytes32" } ], "name": "getInstanceNftId", "outputs": [ { "internalType": "uint96", "name": "nftId", "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": "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": [ { "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": "uint256", "name": "chainId", "type": "uint256" } ], "name": "toChain", "outputs": [ { "internalType": "bytes5", "name": "chain", "type": "bytes5" } ], "stateMutability": "pure", "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": "view", "type": "function" } ], "allSourcePaths": { "35": "contracts/registry/IChainNftFacade.sol", "37": "contracts/registry/IChainRegistryFacade.sol" }, "ast": { "absolutePath": "contracts/registry/IChainRegistryFacade.sol", "exportedSymbols": { "IChainNftFacade": [ 3536 ], "IChainRegistryFacade": [ 4180 ] }, "id": 4181, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 4027, "literals": [ "solidity", "^", "0.8", ".19" ], "nodeType": "PragmaDirective", "src": "39:24:37" }, { "absolutePath": "contracts/registry/IChainNftFacade.sol", "file": "./IChainNftFacade.sol", "id": 4029, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 4181, "sourceUnit": 3537, "src": "542:54:37", "symbolAliases": [ { "foreign": { "id": 4028, "name": "IChainNftFacade", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3536, "src": "550:15:37", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IChainRegistryFacade", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 4180, "linearizedBaseContracts": [ 4180 ], "name": "IChainRegistryFacade", "nameLocation": "608:20:37", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "5b1cfdbd", "id": 4044, "implemented": false, "kind": "function", "modifiers": [], "name": "registerBundle", "nameLocation": "645:14:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4040, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4031, "mutability": "mutable", "name": "instanceId", "nameLocation": "677:10:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "669:18:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4030, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "669:7:37", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4033, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "705:10:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "697:18:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4032, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "697:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4035, "mutability": "mutable", "name": "bundleId", "nameLocation": "733:8:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "725:16:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4034, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "725:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4037, "mutability": "mutable", "name": "displayName", "nameLocation": "765:11:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "751:25:37", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 4036, "name": "string", "nodeType": "ElementaryTypeName", "src": "751:6:37", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 4039, "mutability": "mutable", "name": "expiryAt", "nameLocation": "794:8:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "786:16:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4038, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "786:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "659:149:37" }, "returnParameters": { "id": 4043, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4042, "mutability": "mutable", "name": "nftId", "nameLocation": "849:5:37", "nodeType": "VariableDeclaration", "scope": 4044, "src": "842:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4041, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "842:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "841:14:37" }, "scope": 4180, "src": "636:220:37", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "16f48f62", "id": 4051, "implemented": false, "kind": "function", "modifiers": [], "name": "extendBundleLifetime", "nameLocation": "871:20:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4049, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4046, "mutability": "mutable", "name": "id", "nameLocation": "899:2:37", "nodeType": "VariableDeclaration", "scope": 4051, "src": "892:9:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4045, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "892:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" }, { "constant": false, "id": 4048, "mutability": "mutable", "name": "lifetimeExtension", "nameLocation": "911:17:37", "nodeType": "VariableDeclaration", "scope": 4051, "src": "903:25:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4047, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "903:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "891:38:37" }, "returnParameters": { "id": 4050, "nodeType": "ParameterList", "parameters": [], "src": "938:0:37" }, "scope": 4180, "src": "862:77:37", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8da5cb5b", "id": 4056, "implemented": false, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "954:5:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4052, "nodeType": "ParameterList", "parameters": [], "src": "959:2:37" }, "returnParameters": { "id": 4055, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4054, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 4056, "src": "984:7:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4053, "name": "address", "nodeType": "ElementaryTypeName", "src": "984:7:37", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "983:9:37" }, "scope": 4180, "src": "945:48:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "ac513fb8", "id": 4062, "implemented": false, "kind": "function", "modifiers": [], "name": "getNft", "nameLocation": "1007:6:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4057, "nodeType": "ParameterList", "parameters": [], "src": "1013:2:37" }, "returnParameters": { "id": 4061, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4060, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 4062, "src": "1038:15:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IChainNftFacade_$3536", "typeString": "contract IChainNftFacade" }, "typeName": { "id": 4059, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 4058, "name": "IChainNftFacade", "nameLocations": [ "1038:15:37" ], "nodeType": "IdentifierPath", "referencedDeclaration": 3536, "src": "1038:15:37" }, "referencedDeclaration": 3536, "src": "1038:15:37", "typeDescriptions": { "typeIdentifier": "t_contract$_IChainNftFacade_$3536", "typeString": "contract IChainNftFacade" } }, "visibility": "internal" } ], "src": "1037:17:37" }, "scope": 4180, "src": "998:57:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "178156ca", "id": 4069, "implemented": false, "kind": "function", "modifiers": [], "name": "toChain", "nameLocation": "1069:7:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4065, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4064, "mutability": "mutable", "name": "chainId", "nameLocation": "1085:7:37", "nodeType": "VariableDeclaration", "scope": 4069, "src": "1077:15:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4063, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1077:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1076:17:37" }, "returnParameters": { "id": 4068, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4067, "mutability": "mutable", "name": "chain", "nameLocation": "1123:5:37", "nodeType": "VariableDeclaration", "scope": 4069, "src": "1116:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" }, "typeName": { "id": 4066, "name": "bytes5", "nodeType": "ElementaryTypeName", "src": "1116:6:37", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" } }, "visibility": "internal" } ], "src": "1115:14:37" }, "scope": 4180, "src": "1060:70:37", "stateMutability": "pure", "virtual": false, "visibility": "external" }, { "functionSelector": "d044a1ed", "id": 4078, "implemented": false, "kind": "function", "modifiers": [], "name": "objects", "nameLocation": "1145:7:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4074, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4071, "mutability": "mutable", "name": "chain", "nameLocation": "1160:5:37", "nodeType": "VariableDeclaration", "scope": 4078, "src": "1153:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" }, "typeName": { "id": 4070, "name": "bytes5", "nodeType": "ElementaryTypeName", "src": "1153:6:37", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" } }, "visibility": "internal" }, { "constant": false, "id": 4073, "mutability": "mutable", "name": "objectType", "nameLocation": "1173:10:37", "nodeType": "VariableDeclaration", "scope": 4078, "src": "1167:16:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4072, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1167:5:37", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" } ], "src": "1152:32:37" }, "returnParameters": { "id": 4077, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4076, "mutability": "mutable", "name": "numberOfObjects", "nameLocation": "1215:15:37", "nodeType": "VariableDeclaration", "scope": 4078, "src": "1207:23:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4075, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1207:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1206:25:37" }, "scope": 4180, "src": "1136:96:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "2b52487a", "id": 4089, "implemented": false, "kind": "function", "modifiers": [], "name": "getNftId", "nameLocation": "1246:8:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4085, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4080, "mutability": "mutable", "name": "chain", "nameLocation": "1262:5:37", "nodeType": "VariableDeclaration", "scope": 4089, "src": "1255:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" }, "typeName": { "id": 4079, "name": "bytes5", "nodeType": "ElementaryTypeName", "src": "1255:6:37", "typeDescriptions": { "typeIdentifier": "t_bytes5", "typeString": "bytes5" } }, "visibility": "internal" }, { "constant": false, "id": 4082, "mutability": "mutable", "name": "objectType", "nameLocation": "1275:10:37", "nodeType": "VariableDeclaration", "scope": 4089, "src": "1269:16:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 4081, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1269:5:37", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" }, { "constant": false, "id": 4084, "mutability": "mutable", "name": "idx", "nameLocation": "1295:3:37", "nodeType": "VariableDeclaration", "scope": 4089, "src": "1287:11:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4083, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1287:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1254:45:37" }, "returnParameters": { "id": 4088, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4087, "mutability": "mutable", "name": "nftId", "nameLocation": "1329:5:37", "nodeType": "VariableDeclaration", "scope": 4089, "src": "1322:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4086, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "1322:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "1321:14:37" }, "scope": 4180, "src": "1237:99:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "4f9c1c09", "id": 4096, "implemented": false, "kind": "function", "modifiers": [], "name": "exists", "nameLocation": "1350:6:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4092, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4091, "mutability": "mutable", "name": "id", "nameLocation": "1364:2:37", "nodeType": "VariableDeclaration", "scope": 4096, "src": "1357:9:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4090, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "1357:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "1356:11:37" }, "returnParameters": { "id": 4095, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4094, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 4096, "src": "1390:4:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4093, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1390:4:37", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1389:6:37" }, "scope": 4180, "src": "1341:55:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "38bb429a", "id": 4103, "implemented": false, "kind": "function", "modifiers": [], "name": "ownerOf", "nameLocation": "1410:7:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4099, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4098, "mutability": "mutable", "name": "id", "nameLocation": "1425:2:37", "nodeType": "VariableDeclaration", "scope": 4103, "src": "1418:9:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4097, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "1418:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "1417:11:37" }, "returnParameters": { "id": 4102, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4101, "mutability": "mutable", "name": "nftOwner", "nameLocation": "1459:8:37", "nodeType": "VariableDeclaration", "scope": 4103, "src": "1451:16:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4100, "name": "address", "nodeType": "ElementaryTypeName", "src": "1451:7:37", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1450:18:37" }, "scope": 4180, "src": "1401:68:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "c0759d0d", "id": 4110, "implemented": false, "kind": "function", "modifiers": [], "name": "getInstanceNftId", "nameLocation": "1484:16:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4106, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4105, "mutability": "mutable", "name": "instanceId", "nameLocation": "1509:10:37", "nodeType": "VariableDeclaration", "scope": 4110, "src": "1501:18:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4104, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1501:7:37", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1500:20:37" }, "returnParameters": { "id": 4109, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4108, "mutability": "mutable", "name": "nftId", "nameLocation": "1550:5:37", "nodeType": "VariableDeclaration", "scope": 4110, "src": "1543:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4107, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "1543:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "1542:14:37" }, "scope": 4180, "src": "1475:82:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "d91fc8c7", "id": 4119, "implemented": false, "kind": "function", "modifiers": [], "name": "getComponentNftId", "nameLocation": "1571:17:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4115, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4112, "mutability": "mutable", "name": "instanceId", "nameLocation": "1597:10:37", "nodeType": "VariableDeclaration", "scope": 4119, "src": "1589:18:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4111, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1589:7:37", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4114, "mutability": "mutable", "name": "componentId", "nameLocation": "1617:11:37", "nodeType": "VariableDeclaration", "scope": 4119, "src": "1609:19:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4113, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1609:7:37", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1588:41:37" }, "returnParameters": { "id": 4118, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4117, "mutability": "mutable", "name": "nftId", "nameLocation": "1659:5:37", "nodeType": "VariableDeclaration", "scope": 4119, "src": "1652:12:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" }, "typeName": { "id": 4116, "name": "uint96", "nodeType": "ElementaryTypeName", "src": "1652:6:37", "typeDescriptions": { "typeIdentifier": "t_uint96", "typeString": "uint96" } }, "visibility": "internal" } ], "src": "1651:14:37" }, "scope": 4180, "src": "1562:104:37", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "afb9128e", "id": 4128, "implemented": false, "kind": "function", "modifiers": [], "name": "getBundleNftId", "nameLocation": "1680:14:37", "nodeType": "FunctionDefinition", "parameters": { "id": 4124, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4121, "mutability": "mutable", "name": "instanceId", "nameLocation": "1703:10:37", "nodeType": "VariableDeclaration", "scope": 4128, "src": "1695:18:37", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4120, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1695:7:37", "typeDescriptions": { "typeIdentifier": "t_bytes3