@latticexyz/world-modules 2.0.0-main-85218618 → 2.0.0-main-3086581a

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 (112) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +223 -223
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2611 -2611
  4. package/out/DecodeSlice.sol/DecodeSlice.json +3155 -3155
  5. package/out/DelegationControl.sol/DelegationControl.json +104 -104
  6. package/out/EncodeArray.sol/EncodeArray.json +3250 -3250
  7. package/out/FieldLayout.sol/FieldLayoutInstance.json +51 -51
  8. package/out/FieldLayout.sol/FieldLayoutLib.json +51 -51
  9. package/out/Hook.sol/HookInstance.json +16 -16
  10. package/out/Hook.sol/HookLib.json +16 -16
  11. package/out/Hooks.sol/Hooks.json +96 -96
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +61 -61
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
  14. package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
  16. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  17. package/out/IDelegationControl.sol/IDelegationControl.json +66 -66
  18. package/out/IModule.sol/IModule.json +78 -78
  19. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  20. package/out/IStore.sol/IStore.json +4 -4
  21. package/out/IStoreData.sol/IStoreData.json +4 -4
  22. package/out/IStoreHook.sol/IStoreHook.json +4 -4
  23. package/out/IStoreRead.sol/IStoreRead.json +4 -4
  24. package/out/IStoreRegistration.sol/IStoreRegistration.json +4 -4
  25. package/out/IStoreWrite.sol/IStoreWrite.json +4 -4
  26. package/out/ISystemHook.sol/ISystemHook.json +90 -90
  27. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  28. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +71 -71
  29. package/out/IWorldErrors.sol/IWorldErrors.json +150 -150
  30. package/out/IWorldKernel.sol/IWorldCall.json +156 -156
  31. package/out/IWorldKernel.sol/IWorldKernel.json +156 -156
  32. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
  33. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
  34. package/out/KeysInTable.sol/KeysInTable.json +10684 -10684
  35. package/out/KeysInTableHook.sol/KeysInTableHook.json +879 -879
  36. package/out/KeysInTableModule.sol/KeysInTableModule.json +542 -542
  37. package/out/KeysWithValue.sol/KeysWithValue.json +3844 -3844
  38. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1005 -1005
  39. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +431 -431
  40. package/out/Memory.sol/Memory.json +8 -8
  41. package/out/Module.sol/Module.json +93 -93
  42. package/out/ResourceIds.sol/ResourceIds.json +70 -70
  43. package/out/Schema.sol/SchemaInstance.json +76 -76
  44. package/out/Schema.sol/SchemaLib.json +76 -76
  45. package/out/SchemaType.sol/SchemaType.json +276 -276
  46. package/out/Slice.sol/SliceInstance.json +8 -8
  47. package/out/Slice.sol/SliceLib.json +8 -8
  48. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +308 -308
  49. package/out/Storage.sol/Storage.json +11 -11
  50. package/out/StoreCore.sol/StoreCore.json +59 -59
  51. package/out/StoreCore.sol/StoreCoreInternal.json +59 -59
  52. package/out/StoreHook.sol/StoreHook.json +362 -362
  53. package/out/StoreHooks.sol/StoreHooks.json +97 -97
  54. package/out/StoreSwitch.sol/StoreSwitch.json +16 -16
  55. package/out/System.sol/System.json +38 -38
  56. package/out/Tables.sol/Tables.json +98 -98
  57. package/out/TightCoder.sol/TightCoder.json +128 -128
  58. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +127 -127
  59. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +2002 -2002
  60. package/out/UniqueEntity.sol/UniqueEntity.json +1418 -1418
  61. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +332 -332
  62. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +101 -101
  63. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2738 -2738
  64. package/out/WorldContext.sol/WorldContextConsumer.json +382 -382
  65. package/out/WorldContext.sol/WorldContextProvider.json +382 -382
  66. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  67. package/out/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  68. package/out/constants.sol/LayoutOffsets.json +164 -140
  69. package/out/constants.sol/constants.json +115 -115
  70. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  71. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  72. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  73. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  74. package/out/hasKey.sol/hasKey.json +130 -130
  75. package/out/index.sol/index.json +53 -53
  76. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +142 -142
  77. package/out/leftMask.sol/leftMask.json +61 -61
  78. package/out/query.sol/query.json +1154 -1154
  79. package/out/revertWithBytes.sol/revertWithBytes.json +51 -51
  80. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  81. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +701 -701
  82. package/out/src/FieldLayout.sol/FieldLayoutLib.json +701 -701
  83. package/out/src/IStore.sol/IStore.json +57 -57
  84. package/out/src/IWorldKernel.sol/IWorldCall.json +157 -157
  85. package/out/src/IWorldKernel.sol/IWorldKernel.json +157 -157
  86. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +157 -157
  87. package/out/src/Memory.sol/Memory.json +93 -93
  88. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  89. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  90. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  91. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  92. package/out/src/Schema.sol/SchemaInstance.json +791 -791
  93. package/out/src/Schema.sol/SchemaLib.json +791 -791
  94. package/out/src/Slice.sol/SliceInstance.json +433 -433
  95. package/out/src/Slice.sol/SliceLib.json +433 -433
  96. package/out/src/StoreCore.sol/StoreCore.json +4471 -4471
  97. package/out/src/StoreCore.sol/StoreCoreInternal.json +4471 -4471
  98. package/out/src/StoreSwitch.sol/StoreSwitch.json +2470 -2470
  99. package/out/src/WorldContext.sol/WorldContextConsumer.json +382 -382
  100. package/out/src/WorldContext.sol/WorldContextProvider.json +382 -382
  101. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +480 -480
  102. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +480 -480
  103. package/out/storeHookTypes.sol/storeHookTypes.json +202 -202
  104. package/out/storeResourceTypes.sol/storeResourceTypes.json +21 -21
  105. package/out/tables/ResourceIds.sol/ResourceIds.json +1762 -1762
  106. package/out/tables/Tables.sol/Tables.json +7304 -7304
  107. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3250 -3250
  108. package/out/types.sol/types.json +39 -39
  109. package/out/version.sol/version.json +12 -12
  110. package/out/world/src/IERC165.sol/IERC165.json +28 -28
  111. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  112. package/package.json +8 -8
@@ -10,17 +10,17 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/revertWithBytes.sol",
13
- "id": 24037,
13
+ "id": 24061,
14
14
  "exportedSymbols": {
15
15
  "revertWithBytes": [
16
- 24036
16
+ 24060
17
17
  ]
18
18
  },
19
19
  "nodeType": "SourceUnit",
20
- "src": "32:368:50",
20
+ "src": "32:687:50",
21
21
  "nodes": [
22
22
  {
23
- "id": 24028,
23
+ "id": 24052,
24
24
  "nodeType": "PragmaDirective",
25
25
  "src": "32:25:50",
26
26
  "nodes": [],
@@ -32,21 +32,21 @@
32
32
  ]
33
33
  },
34
34
  {
35
- "id": 24036,
35
+ "id": 24060,
36
36
  "nodeType": "FunctionDefinition",
37
- "src": "182:217:50",
37
+ "src": "501:217:50",
38
38
  "nodes": [],
39
39
  "body": {
40
- "id": 24035,
40
+ "id": 24059,
41
41
  "nodeType": "Block",
42
- "src": "233:166:50",
42
+ "src": "552:166:50",
43
43
  "nodes": [],
44
44
  "statements": [
45
45
  {
46
46
  "AST": {
47
- "nativeSrc": "246:151:50",
47
+ "nativeSrc": "565:151:50",
48
48
  "nodeType": "YulBlock",
49
- "src": "246:151:50",
49
+ "src": "565:151:50",
50
50
  "statements": [
51
51
  {
52
52
  "expression": {
@@ -55,112 +55,112 @@
55
55
  "arguments": [
56
56
  {
57
57
  "name": "reason",
58
- "nativeSrc": "364:6:50",
58
+ "nativeSrc": "683:6:50",
59
59
  "nodeType": "YulIdentifier",
60
- "src": "364:6:50"
60
+ "src": "683:6:50"
61
61
  },
62
62
  {
63
63
  "kind": "number",
64
- "nativeSrc": "372:4:50",
64
+ "nativeSrc": "691:4:50",
65
65
  "nodeType": "YulLiteral",
66
- "src": "372:4:50",
66
+ "src": "691:4:50",
67
67
  "type": "",
68
68
  "value": "0x20"
69
69
  }
70
70
  ],
71
71
  "functionName": {
72
72
  "name": "add",
73
- "nativeSrc": "360:3:50",
73
+ "nativeSrc": "679:3:50",
74
74
  "nodeType": "YulIdentifier",
75
- "src": "360:3:50"
75
+ "src": "679:3:50"
76
76
  },
77
- "nativeSrc": "360:17:50",
77
+ "nativeSrc": "679:17:50",
78
78
  "nodeType": "YulFunctionCall",
79
- "src": "360:17:50"
79
+ "src": "679:17:50"
80
80
  },
81
81
  {
82
82
  "arguments": [
83
83
  {
84
84
  "name": "reason",
85
- "nativeSrc": "385:6:50",
85
+ "nativeSrc": "704:6:50",
86
86
  "nodeType": "YulIdentifier",
87
- "src": "385:6:50"
87
+ "src": "704:6:50"
88
88
  }
89
89
  ],
90
90
  "functionName": {
91
91
  "name": "mload",
92
- "nativeSrc": "379:5:50",
92
+ "nativeSrc": "698:5:50",
93
93
  "nodeType": "YulIdentifier",
94
- "src": "379:5:50"
94
+ "src": "698:5:50"
95
95
  },
96
- "nativeSrc": "379:13:50",
96
+ "nativeSrc": "698:13:50",
97
97
  "nodeType": "YulFunctionCall",
98
- "src": "379:13:50"
98
+ "src": "698:13:50"
99
99
  }
100
100
  ],
101
101
  "functionName": {
102
102
  "name": "revert",
103
- "nativeSrc": "353:6:50",
103
+ "nativeSrc": "672:6:50",
104
104
  "nodeType": "YulIdentifier",
105
- "src": "353:6:50"
105
+ "src": "672:6:50"
106
106
  },
107
- "nativeSrc": "353:40:50",
107
+ "nativeSrc": "672:40:50",
108
108
  "nodeType": "YulFunctionCall",
109
- "src": "353:40:50"
109
+ "src": "672:40:50"
110
110
  },
111
- "nativeSrc": "353:40:50",
111
+ "nativeSrc": "672:40:50",
112
112
  "nodeType": "YulExpressionStatement",
113
- "src": "353:40:50"
113
+ "src": "672:40:50"
114
114
  }
115
115
  ]
116
116
  },
117
117
  "evmVersion": "paris",
118
118
  "externalReferences": [
119
119
  {
120
- "declaration": 24031,
120
+ "declaration": 24055,
121
121
  "isOffset": false,
122
122
  "isSlot": false,
123
- "src": "364:6:50",
123
+ "src": "683:6:50",
124
124
  "valueSize": 1
125
125
  },
126
126
  {
127
- "declaration": 24031,
127
+ "declaration": 24055,
128
128
  "isOffset": false,
129
129
  "isSlot": false,
130
- "src": "385:6:50",
130
+ "src": "704:6:50",
131
131
  "valueSize": 1
132
132
  }
133
133
  ],
134
- "id": 24034,
134
+ "id": 24058,
135
135
  "nodeType": "InlineAssembly",
136
- "src": "237:160:50"
136
+ "src": "556:160:50"
137
137
  }
138
138
  ]
139
139
  },
140
140
  "documentation": {
141
- "id": 24029,
141
+ "id": 24053,
142
142
  "nodeType": "StructuredDocumentation",
143
- "src": "59:122:50",
144
- "text": " Utility function to revert with raw bytes (eg. coming from a low level call or from a previously encoded error)"
143
+ "src": "287:213:50",
144
+ "text": " @notice Reverts the transaction using the provided raw bytes as the revert reason.\n @dev Uses assembly to perform the revert operation with the raw bytes.\n @param reason The raw bytes revert reason."
145
145
  },
146
146
  "implemented": true,
147
147
  "kind": "freeFunction",
148
148
  "modifiers": [],
149
149
  "name": "revertWithBytes",
150
- "nameLocation": "191:15:50",
150
+ "nameLocation": "510:15:50",
151
151
  "parameters": {
152
- "id": 24032,
152
+ "id": 24056,
153
153
  "nodeType": "ParameterList",
154
154
  "parameters": [
155
155
  {
156
156
  "constant": false,
157
- "id": 24031,
157
+ "id": 24055,
158
158
  "mutability": "mutable",
159
159
  "name": "reason",
160
- "nameLocation": "220:6:50",
160
+ "nameLocation": "539:6:50",
161
161
  "nodeType": "VariableDeclaration",
162
- "scope": 24036,
163
- "src": "207:19:50",
162
+ "scope": 24060,
163
+ "src": "526:19:50",
164
164
  "stateVariable": false,
165
165
  "storageLocation": "memory",
166
166
  "typeDescriptions": {
@@ -168,10 +168,10 @@
168
168
  "typeString": "bytes"
169
169
  },
170
170
  "typeName": {
171
- "id": 24030,
171
+ "id": 24054,
172
172
  "name": "bytes",
173
173
  "nodeType": "ElementaryTypeName",
174
- "src": "207:5:50",
174
+ "src": "526:5:50",
175
175
  "typeDescriptions": {
176
176
  "typeIdentifier": "t_bytes_storage_ptr",
177
177
  "typeString": "bytes"
@@ -180,15 +180,15 @@
180
180
  "visibility": "internal"
181
181
  }
182
182
  ],
183
- "src": "206:21:50"
183
+ "src": "525:21:50"
184
184
  },
185
185
  "returnParameters": {
186
- "id": 24033,
186
+ "id": 24057,
187
187
  "nodeType": "ParameterList",
188
188
  "parameters": [],
189
- "src": "233:0:50"
189
+ "src": "552:0:50"
190
190
  },
191
- "scope": 24037,
191
+ "scope": 24061,
192
192
  "stateMutability": "pure",
193
193
  "virtual": false,
194
194
  "visibility": "internal"