@latticexyz/world-modules 2.0.0-main-251170e1 → 2.0.0-main-5741d53d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/mud.config.js +1 -1
  2. package/dist/mud.config.js.map +1 -1
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Callbacks.sol/Callbacks.json +45 -45
  5. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +350 -350
  6. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  7. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  8. package/out/Hooks.sol/Hooks.json +45 -45
  9. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +111 -111
  10. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +96 -96
  11. package/out/IBaseWorld.sol/IBaseWorld.abi.json +0 -13
  12. package/out/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +0 -13
  13. package/out/IBaseWorld.sol/IBaseWorld.json +81 -161
  14. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  16. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  17. package/out/ICoreSystem.sol/ICoreSystem.json +15 -15
  18. package/out/IDelegationControl.sol/IDelegationControl.json +100 -100
  19. package/out/IModule.sol/IModule.json +139 -139
  20. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +58 -58
  21. package/out/ISystemHook.sol/ISystemHook.json +141 -141
  22. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +2 -2
  23. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +2 -2
  24. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +37 -37
  25. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +118 -118
  26. package/out/IWorldErrors.sol/IWorldErrors.json +257 -257
  27. package/out/IWorldKernel.sol/IWorldCall.json +251 -251
  28. package/out/IWorldKernel.sol/IWorldKernel.json +251 -251
  29. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +251 -251
  30. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +321 -321
  31. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  32. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  33. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  34. package/out/KeysInTableModule.sol/KeysInTableModule.json +885 -885
  35. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  36. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1604 -1604
  37. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +700 -700
  38. package/out/Mixed.sol/Mixed.json +66 -66
  39. package/out/Module.sol/Module.json +73 -73
  40. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  41. package/out/Schema.sol/SchemaInstance.json +30 -30
  42. package/out/Schema.sol/SchemaLib.json +30 -30
  43. package/out/SchemaType.sol/SchemaType.json +276 -276
  44. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +495 -495
  45. package/out/StoreHook.sol/StoreHook.json +358 -358
  46. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  47. package/out/System.sol/System.json +19 -19
  48. package/out/Tables.sol/Tables.json +73 -73
  49. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +183 -183
  50. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  51. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  52. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +529 -529
  53. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
  54. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4588 -4588
  55. package/out/Vector2.sol/Vector2.json +52 -52
  56. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  57. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  58. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  59. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  60. package/out/constants.sol/constants.json +142 -142
  61. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  62. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  63. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  64. package/out/getUniqueEntity.sol/getUniqueEntity.json +149 -149
  65. package/out/hasKey.sol/hasKey.json +215 -215
  66. package/out/index.sol/index.json +73 -73
  67. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  69. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +326 -253
  70. package/out/interfaces/IERC165.sol/IERC165.json +50 -50
  71. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +149 -149
  72. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +149 -149
  73. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  74. package/out/query.sol/query.json +1892 -1892
  75. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  76. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  77. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  78. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  79. package/out/src/IStore.sol/IStore.json +885 -885
  80. package/out/src/IStore.sol/IStoreData.json +885 -885
  81. package/out/src/IStore.sol/IStoreRead.json +885 -885
  82. package/out/src/IStore.sol/IStoreRegistration.json +885 -885
  83. package/out/src/IStore.sol/IStoreWrite.json +885 -885
  84. package/out/src/Memory.sol/Memory.json +89 -89
  85. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  86. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  87. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  88. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  89. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  90. package/out/src/Schema.sol/SchemaLib.json +787 -787
  91. package/out/src/Slice.sol/SliceInstance.json +429 -429
  92. package/out/src/Slice.sol/SliceLib.json +429 -429
  93. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  94. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  95. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  96. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  97. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  98. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  99. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  100. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  101. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  102. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  103. package/out/tables/Tables.sol/Tables.json +7288 -7288
  104. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  105. package/out/types.sol/types.json +131 -23
  106. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  107. package/package.json +8 -8
  108. package/src/interfaces/IBaseWorld.sol +1 -3
  109. package/src/interfaces/IUniqueEntitySystem.sol +2 -3
  110. package/src/modules/keysintable/KeysInTableModule.sol +1 -1
  111. package/src/modules/keyswithvalue/KeysWithValueHook.sol +1 -1
  112. package/src/modules/keyswithvalue/KeysWithValueModule.sol +1 -1
  113. package/src/modules/std-delegations/StandardDelegationsModule.sol +1 -1
  114. package/src/modules/uniqueentity/UniqueEntityModule.sol +1 -1
  115. package/src/modules/uniqueentity/getUniqueEntity.sol +2 -2
  116. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  117. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  118. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
  119. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +0 -15
  120. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json.d.ts +0 -16
  121. package/out/interfaces/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +0 -197
@@ -1,8 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity >=0.8.21;
3
3
 
4
- /* Autogenerated file. Do not edit manually. */
5
-
4
+ // TODO allow overriding namespace per-system (or a separate config for modules?)
6
5
  interface IUniqueEntitySystem {
7
- function getUniqueEntity() external returns (bytes32);
6
+ function uniqueEntity_system_getUniqueEntity() external returns (bytes32 uniqueEntity);
8
7
  }
@@ -6,7 +6,7 @@ import { ResourceIds } from "@latticexyz/store/src/codegen/tables/ResourceIds.so
6
6
 
7
7
  import { Module } from "@latticexyz/world/src/Module.sol";
8
8
 
9
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
9
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
10
10
 
11
11
  import { ResourceId, WorldResourceIdInstance } from "@latticexyz/world/src/WorldResourceId.sol";
12
12
  import { revertWithBytes } from "@latticexyz/world/src/revertWithBytes.sol";
@@ -7,7 +7,7 @@ import { FieldLayout } from "@latticexyz/store/src/FieldLayout.sol";
7
7
  import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
8
8
  import { PackedCounter } from "@latticexyz/store/src/PackedCounter.sol";
9
9
  import { Tables } from "@latticexyz/store/src/codegen/tables/Tables.sol";
10
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
10
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
11
11
 
12
12
  import { ResourceId, WorldResourceIdInstance } from "@latticexyz/world/src/WorldResourceId.sol";
13
13
 
@@ -4,7 +4,7 @@ import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
4
4
  import { BEFORE_SET_RECORD, BEFORE_SPLICE_STATIC_DATA, AFTER_SPLICE_STATIC_DATA, BEFORE_SPLICE_DYNAMIC_DATA, AFTER_SPLICE_DYNAMIC_DATA, BEFORE_DELETE_RECORD } from "@latticexyz/store/src/storeHookTypes.sol";
5
5
  import { Module } from "@latticexyz/world/src/Module.sol";
6
6
 
7
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
7
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
8
8
 
9
9
  import { WorldContextConsumer } from "@latticexyz/world/src/WorldContext.sol";
10
10
  import { ResourceId, WorldResourceIdInstance } from "@latticexyz/world/src/WorldResourceId.sol";
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity >=0.8.21;
3
3
 
4
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
4
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
5
5
 
6
6
  import { Module } from "@latticexyz/world/src/Module.sol";
7
7
  import { WorldContextConsumer } from "@latticexyz/world/src/WorldContext.sol";
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity >=0.8.21;
3
3
 
4
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
4
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
5
5
 
6
6
  import { Module } from "@latticexyz/world/src/Module.sol";
7
7
  import { WorldContextConsumer } from "@latticexyz/world/src/WorldContext.sol";
@@ -2,9 +2,9 @@
2
2
  pragma solidity >=0.8.21;
3
3
 
4
4
  import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
5
+ import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
5
6
 
6
- import { IBaseWorld } from "@latticexyz/world/src/interfaces/IBaseWorld.sol";
7
- import { IUniqueEntitySystem } from "@latticexyz/world/src/interfaces/IUniqueEntitySystem.sol";
7
+ import { IUniqueEntitySystem } from "../../interfaces/IUniqueEntitySystem.sol";
8
8
 
9
9
  /**
10
10
  * Increment and get an entity nonce.
@@ -1,33 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "components": [
6
- {
7
- "internalType": "ResourceId",
8
- "name": "systemId",
9
- "type": "bytes32"
10
- },
11
- {
12
- "internalType": "bytes",
13
- "name": "callData",
14
- "type": "bytes"
15
- }
16
- ],
17
- "internalType": "struct SystemCallData[]",
18
- "name": "systemCalls",
19
- "type": "tuple[]"
20
- }
21
- ],
22
- "name": "callBatch",
23
- "outputs": [
24
- {
25
- "internalType": "bytes[]",
26
- "name": "returnDatas",
27
- "type": "bytes[]"
28
- }
29
- ],
30
- "stateMutability": "nonpayable",
31
- "type": "function"
32
- }
33
- ]
@@ -1,34 +0,0 @@
1
- declare const abi: [
2
- {
3
- inputs: [
4
- {
5
- components: [
6
- {
7
- internalType: "ResourceId";
8
- name: "systemId";
9
- type: "bytes32";
10
- },
11
- {
12
- internalType: "bytes";
13
- name: "callData";
14
- type: "bytes";
15
- }
16
- ];
17
- internalType: "struct SystemCallData[]";
18
- name: "systemCalls";
19
- type: "tuple[]";
20
- }
21
- ];
22
- name: "callBatch";
23
- outputs: [
24
- {
25
- internalType: "bytes[]";
26
- name: "returnDatas";
27
- type: "bytes[]";
28
- }
29
- ];
30
- stateMutability: "nonpayable";
31
- type: "function";
32
- }
33
- ];
34
- export default abi;
@@ -1,334 +0,0 @@
1
- {
2
- "abi": [
3
- {
4
- "inputs": [
5
- {
6
- "components": [
7
- {
8
- "internalType": "ResourceId",
9
- "name": "systemId",
10
- "type": "bytes32"
11
- },
12
- {
13
- "internalType": "bytes",
14
- "name": "callData",
15
- "type": "bytes"
16
- }
17
- ],
18
- "internalType": "struct SystemCallData[]",
19
- "name": "systemCalls",
20
- "type": "tuple[]"
21
- }
22
- ],
23
- "name": "callBatch",
24
- "outputs": [
25
- {
26
- "internalType": "bytes[]",
27
- "name": "returnDatas",
28
- "type": "bytes[]"
29
- }
30
- ],
31
- "stateMutability": "nonpayable",
32
- "type": "function"
33
- }
34
- ],
35
- "bytecode": {
36
- "object": "0x",
37
- "sourceMap": "",
38
- "linkReferences": {}
39
- },
40
- "deployedBytecode": {
41
- "object": "0x",
42
- "sourceMap": "",
43
- "linkReferences": {}
44
- },
45
- "methodIdentifiers": {
46
- "callBatch((bytes32,bytes)[])": "0ca89978"
47
- },
48
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"ResourceId\",\"name\":\"systemId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct SystemCallData[]\",\"name\":\"systemCalls\",\"type\":\"tuple[]\"}],\"name\":\"callBatch\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returnDatas\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/mud/mud/packages/world/src/interfaces/ICallBatchSystem.sol\":\"ICallBatchSystem\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=node_modules/@latticexyz/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"/home/runner/work/mud/mud/packages/world/src/interfaces/ICallBatchSystem.sol\":{\"keccak256\":\"0xe70d140fe918dccc918dace547eea7f2f0cde25c686567f38b5c331b1ced1beb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://66121db75ef999468f78f711ff36456b9dc6be55486be1ca1d1b8d309e798aa7\",\"dweb:/ipfs/QmUgSKrjrKcrkwFN3GjsGkzBtcem3bsDYds2trzzxcYKEg\"]},\"/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol\":{\"keccak256\":\"0x551f7814c1905dcfdd1165598cc1f721dcb599c7e64e076917c6e4abeef012f3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3c61ae32a9f62f967549424425dd72abc9a70b2c3c19d02926e011529d3628fe\",\"dweb:/ipfs/QmacLTFt3fHr6dvGH42bB3pkEK7prmtYyrhAvJzKMqcxYy\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6\",\"dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs\"]}},\"version\":1}",
49
- "metadata": {
50
- "compiler": {
51
- "version": "0.8.21+commit.d9974bed"
52
- },
53
- "language": "Solidity",
54
- "output": {
55
- "abi": [
56
- {
57
- "inputs": [
58
- {
59
- "internalType": "struct SystemCallData[]",
60
- "name": "systemCalls",
61
- "type": "tuple[]",
62
- "components": [
63
- {
64
- "internalType": "ResourceId",
65
- "name": "systemId",
66
- "type": "bytes32"
67
- },
68
- {
69
- "internalType": "bytes",
70
- "name": "callData",
71
- "type": "bytes"
72
- }
73
- ]
74
- }
75
- ],
76
- "stateMutability": "nonpayable",
77
- "type": "function",
78
- "name": "callBatch",
79
- "outputs": [
80
- {
81
- "internalType": "bytes[]",
82
- "name": "returnDatas",
83
- "type": "bytes[]"
84
- }
85
- ]
86
- }
87
- ],
88
- "devdoc": {
89
- "kind": "dev",
90
- "methods": {},
91
- "version": 1
92
- },
93
- "userdoc": {
94
- "kind": "user",
95
- "methods": {},
96
- "version": 1
97
- }
98
- },
99
- "settings": {
100
- "remappings": [
101
- "@latticexyz/=node_modules/@latticexyz/",
102
- "ds-test/=node_modules/ds-test/src/",
103
- "forge-std/=node_modules/forge-std/src/"
104
- ],
105
- "optimizer": {
106
- "enabled": true,
107
- "runs": 3000
108
- },
109
- "metadata": {
110
- "bytecodeHash": "none"
111
- },
112
- "compilationTarget": {
113
- "/home/runner/work/mud/mud/packages/world/src/interfaces/ICallBatchSystem.sol": "ICallBatchSystem"
114
- },
115
- "libraries": {}
116
- },
117
- "sources": {
118
- "/home/runner/work/mud/mud/packages/world/src/interfaces/ICallBatchSystem.sol": {
119
- "keccak256": "0xe70d140fe918dccc918dace547eea7f2f0cde25c686567f38b5c331b1ced1beb",
120
- "urls": [
121
- "bzz-raw://66121db75ef999468f78f711ff36456b9dc6be55486be1ca1d1b8d309e798aa7",
122
- "dweb:/ipfs/QmUgSKrjrKcrkwFN3GjsGkzBtcem3bsDYds2trzzxcYKEg"
123
- ],
124
- "license": "MIT"
125
- },
126
- "/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol": {
127
- "keccak256": "0x551f7814c1905dcfdd1165598cc1f721dcb599c7e64e076917c6e4abeef012f3",
128
- "urls": [
129
- "bzz-raw://3c61ae32a9f62f967549424425dd72abc9a70b2c3c19d02926e011529d3628fe",
130
- "dweb:/ipfs/QmacLTFt3fHr6dvGH42bB3pkEK7prmtYyrhAvJzKMqcxYy"
131
- ],
132
- "license": "MIT"
133
- },
134
- "node_modules/@latticexyz/store/src/ResourceId.sol": {
135
- "keccak256": "0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6",
136
- "urls": [
137
- "bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6",
138
- "dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs"
139
- ],
140
- "license": "MIT"
141
- }
142
- },
143
- "version": 1
144
- },
145
- "ast": {
146
- "absolutePath": "/home/runner/work/mud/mud/packages/world/src/interfaces/ICallBatchSystem.sol",
147
- "id": 33272,
148
- "exportedSymbols": {
149
- "ICallBatchSystem": [
150
- 33271
151
- ],
152
- "SystemCallData": [
153
- 33708
154
- ]
155
- },
156
- "nodeType": "SourceUnit",
157
- "src": "32:277:38",
158
- "nodes": [
159
- {
160
- "id": 33258,
161
- "nodeType": "PragmaDirective",
162
- "src": "32:25:38",
163
- "nodes": [],
164
- "literals": [
165
- "solidity",
166
- ">=",
167
- "0.8",
168
- ".21"
169
- ]
170
- },
171
- {
172
- "id": 33260,
173
- "nodeType": "ImportDirective",
174
- "src": "108:61:38",
175
- "nodes": [],
176
- "absolutePath": "/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol",
177
- "file": "./../modules/core/types.sol",
178
- "nameLocation": "-1:-1:-1",
179
- "scope": 33272,
180
- "sourceUnit": 33709,
181
- "symbolAliases": [
182
- {
183
- "foreign": {
184
- "id": 33259,
185
- "name": "SystemCallData",
186
- "nodeType": "Identifier",
187
- "overloadedDeclarations": [],
188
- "referencedDeclaration": 33708,
189
- "src": "117:14:38",
190
- "typeDescriptions": {}
191
- },
192
- "nameLocation": "-1:-1:-1"
193
- }
194
- ],
195
- "unitAlias": ""
196
- },
197
- {
198
- "id": 33271,
199
- "nodeType": "ContractDefinition",
200
- "src": "171:137:38",
201
- "nodes": [
202
- {
203
- "id": 33270,
204
- "nodeType": "FunctionDefinition",
205
- "src": "202:104:38",
206
- "nodes": [],
207
- "functionSelector": "0ca89978",
208
- "implemented": false,
209
- "kind": "function",
210
- "modifiers": [],
211
- "name": "callBatch",
212
- "nameLocation": "211:9:38",
213
- "parameters": {
214
- "id": 33265,
215
- "nodeType": "ParameterList",
216
- "parameters": [
217
- {
218
- "constant": false,
219
- "id": 33264,
220
- "mutability": "mutable",
221
- "name": "systemCalls",
222
- "nameLocation": "247:11:38",
223
- "nodeType": "VariableDeclaration",
224
- "scope": 33270,
225
- "src": "221:37:38",
226
- "stateVariable": false,
227
- "storageLocation": "calldata",
228
- "typeDescriptions": {
229
- "typeIdentifier": "t_array$_t_struct$_SystemCallData_$33708_calldata_ptr_$dyn_calldata_ptr",
230
- "typeString": "struct SystemCallData[]"
231
- },
232
- "typeName": {
233
- "baseType": {
234
- "id": 33262,
235
- "nodeType": "UserDefinedTypeName",
236
- "pathNode": {
237
- "id": 33261,
238
- "name": "SystemCallData",
239
- "nameLocations": [
240
- "221:14:38"
241
- ],
242
- "nodeType": "IdentifierPath",
243
- "referencedDeclaration": 33708,
244
- "src": "221:14:38"
245
- },
246
- "referencedDeclaration": 33708,
247
- "src": "221:14:38",
248
- "typeDescriptions": {
249
- "typeIdentifier": "t_struct$_SystemCallData_$33708_storage_ptr",
250
- "typeString": "struct SystemCallData"
251
- }
252
- },
253
- "id": 33263,
254
- "nodeType": "ArrayTypeName",
255
- "src": "221:16:38",
256
- "typeDescriptions": {
257
- "typeIdentifier": "t_array$_t_struct$_SystemCallData_$33708_storage_$dyn_storage_ptr",
258
- "typeString": "struct SystemCallData[]"
259
- }
260
- },
261
- "visibility": "internal"
262
- }
263
- ],
264
- "src": "220:39:38"
265
- },
266
- "returnParameters": {
267
- "id": 33269,
268
- "nodeType": "ParameterList",
269
- "parameters": [
270
- {
271
- "constant": false,
272
- "id": 33268,
273
- "mutability": "mutable",
274
- "name": "returnDatas",
275
- "nameLocation": "293:11:38",
276
- "nodeType": "VariableDeclaration",
277
- "scope": 33270,
278
- "src": "278:26:38",
279
- "stateVariable": false,
280
- "storageLocation": "memory",
281
- "typeDescriptions": {
282
- "typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
283
- "typeString": "bytes[]"
284
- },
285
- "typeName": {
286
- "baseType": {
287
- "id": 33266,
288
- "name": "bytes",
289
- "nodeType": "ElementaryTypeName",
290
- "src": "278:5:38",
291
- "typeDescriptions": {
292
- "typeIdentifier": "t_bytes_storage_ptr",
293
- "typeString": "bytes"
294
- }
295
- },
296
- "id": 33267,
297
- "nodeType": "ArrayTypeName",
298
- "src": "278:7:38",
299
- "typeDescriptions": {
300
- "typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
301
- "typeString": "bytes[]"
302
- }
303
- },
304
- "visibility": "internal"
305
- }
306
- ],
307
- "src": "277:28:38"
308
- },
309
- "scope": 33271,
310
- "stateMutability": "nonpayable",
311
- "virtual": false,
312
- "visibility": "external"
313
- }
314
- ],
315
- "abstract": false,
316
- "baseContracts": [],
317
- "canonicalName": "ICallBatchSystem",
318
- "contractDependencies": [],
319
- "contractKind": "interface",
320
- "fullyImplemented": false,
321
- "linearizedBaseContracts": [
322
- 33271
323
- ],
324
- "name": "ICallBatchSystem",
325
- "nameLocation": "181:16:38",
326
- "scope": 33272,
327
- "usedErrors": [],
328
- "usedEvents": []
329
- }
330
- ],
331
- "license": "MIT"
332
- },
333
- "id": 38
334
- }
@@ -1,15 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "uniqueEntity_system_getUniqueEntity",
5
- "outputs": [
6
- {
7
- "internalType": "bytes32",
8
- "name": "uniqueEntity",
9
- "type": "bytes32"
10
- }
11
- ],
12
- "stateMutability": "nonpayable",
13
- "type": "function"
14
- }
15
- ]
@@ -1,16 +0,0 @@
1
- declare const abi: [
2
- {
3
- inputs: [];
4
- name: "uniqueEntity_system_getUniqueEntity";
5
- outputs: [
6
- {
7
- internalType: "bytes32";
8
- name: "uniqueEntity";
9
- type: "bytes32";
10
- }
11
- ];
12
- stateMutability: "nonpayable";
13
- type: "function";
14
- }
15
- ];
16
- export default abi;