[
  {
    "type": "function",
    "name": "_msgSender",
    "inputs": [],
    "outputs": [
      {
        "name": "sender",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "_msgValue",
    "inputs": [],
    "outputs": [
      {
        "name": "value",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "type": "function",
    "name": "_world",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "aggression",
    "inputs": [
      {
        "name": "params",
        "type": "tuple",
        "internalType": "struct AggressionParams",
        "components": [
          {
            "name": "smartObjectId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "priorityQueue",
            "type": "tuple[]",
            "internalType": "struct TargetPriority[]",
            "components": [
              {
                "name": "target",
                "type": "tuple",
                "internalType": "struct SmartTurretTarget",
                "components": [
                  {
                    "name": "shipId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "shipTypeId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "characterId",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "hpRatio",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "shieldRatio",
                    "type": "uint256",
                    "internalType": "uint256"
                  },
                  {
                    "name": "armorRatio",
                    "type": "uint256",
                    "internalType": "uint256"
                  }
                ]
              },
              {
                "name": "weight",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "turret",
            "type": "tuple",
            "internalType": "struct Turret",
            "components": [
              {
                "name": "weaponTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "ammoTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "chargesLeft",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "aggressor",
            "type": "tuple",
            "internalType": "struct SmartTurretTarget",
            "components": [
              {
                "name": "shipId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shipTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "characterId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "hpRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shieldRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "armorRatio",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "victim",
            "type": "tuple",
            "internalType": "struct SmartTurretTarget",
            "components": [
              {
                "name": "shipId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shipTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "characterId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "hpRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shieldRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "armorRatio",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "updatedPriorityQueue",
        "type": "tuple[]",
        "internalType": "struct TargetPriority[]",
        "components": [
          {
            "name": "target",
            "type": "tuple",
            "internalType": "struct SmartTurretTarget",
            "components": [
              {
                "name": "shipId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shipTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "characterId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "hpRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shieldRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "armorRatio",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "weight",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "configureTurret",
    "inputs": [
      {
        "name": "smartObjectId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "systemId",
        "type": "bytes32",
        "internalType": "ResourceId"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "createAndAnchorTurret",
    "inputs": [
      {
        "name": "params",
        "type": "tuple",
        "internalType": "struct CreateAndAnchorParams",
        "components": [
          {
            "name": "smartObjectId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "assemblyType",
            "type": "string",
            "internalType": "string"
          },
          {
            "name": "entityRecordParams",
            "type": "tuple",
            "internalType": "struct EntityRecordParams",
            "components": [
              {
                "name": "tenantId",
                "type": "bytes32",
                "internalType": "bytes32"
              },
              {
                "name": "typeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "itemId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "volume",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "owner",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "locationData",
            "type": "tuple",
            "internalType": "struct LocationData",
            "components": [
              {
                "name": "solarSystemId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "x",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "y",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "z",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          }
        ]
      },
      {
        "name": "networkNodeId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "inProximity",
    "inputs": [
      {
        "name": "smartObjectId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "priorityQueue",
        "type": "tuple[]",
        "internalType": "struct TargetPriority[]",
        "components": [
          {
            "name": "target",
            "type": "tuple",
            "internalType": "struct SmartTurretTarget",
            "components": [
              {
                "name": "shipId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shipTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "characterId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "hpRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shieldRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "armorRatio",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "weight",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "turret",
        "type": "tuple",
        "internalType": "struct Turret",
        "components": [
          {
            "name": "weaponTypeId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "ammoTypeId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "chargesLeft",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "turretTarget",
        "type": "tuple",
        "internalType": "struct SmartTurretTarget",
        "components": [
          {
            "name": "shipId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "shipTypeId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "characterId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "hpRatio",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "shieldRatio",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "armorRatio",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "updatedPriorityQueue",
        "type": "tuple[]",
        "internalType": "struct TargetPriority[]",
        "components": [
          {
            "name": "target",
            "type": "tuple",
            "internalType": "struct SmartTurretTarget",
            "components": [
              {
                "name": "shipId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shipTypeId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "characterId",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "hpRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "shieldRatio",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "armorRatio",
                "type": "uint256",
                "internalType": "uint256"
              }
            ]
          },
          {
            "name": "weight",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "supportsInterface",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "type": "event",
    "name": "Store_SpliceStaticData",
    "inputs": [
      {
        "name": "tableId",
        "type": "bytes32",
        "indexed": true,
        "internalType": "ResourceId"
      },
      {
        "name": "keyTuple",
        "type": "bytes32[]",
        "indexed": false,
        "internalType": "bytes32[]"
      },
      {
        "name": "start",
        "type": "uint48",
        "indexed": false,
        "internalType": "uint48"
      },
      {
        "name": "data",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "type": "error",
    "name": "DeployableSystemLib_CallingFromRootSystem",
    "inputs": []
  },
  {
    "type": "error",
    "name": "Deployable_IncorrectState",
    "inputs": [
      {
        "name": "smartObjectId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "currentState",
        "type": "uint8",
        "internalType": "enum State"
      }
    ]
  },
  {
    "type": "error",
    "name": "SOF_CallTooDeep",
    "inputs": [
      {
        "name": "callCount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "type": "error",
    "name": "SOF_InvalidAccessLogic",
    "inputs": []
  },
  {
    "type": "error",
    "name": "SOF_InvalidCall",
    "inputs": []
  },
  {
    "type": "error",
    "name": "SOF_InvalidEntityType",
    "inputs": [
      {
        "name": "givenEntity",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "type": "error",
    "name": "SOF_UnscopedSystemCall",
    "inputs": [
      {
        "name": "entityId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "systemId",
        "type": "bytes32",
        "internalType": "ResourceId"
      }
    ]
  },
  {
    "type": "error",
    "name": "Slice_OutOfBounds",
    "inputs": [
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "start",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "end",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  }
]