@latticexyz/world-modules 2.0.0-main-87235a21 → 2.0.0-main-85218618

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 (89) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +264 -227
  3. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  4. package/out/DelegationControl.sol/DelegationControl.json +193 -143
  5. package/out/Hooks.sol/Hooks.json +45 -45
  6. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +64 -64
  7. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
  8. package/out/IBaseWorld.sol/IBaseWorld.json +136 -91
  9. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
  10. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  11. package/out/IDelegationControl.sol/IDelegationControl.json +138 -108
  12. package/out/IModule.sol/IModule.json +181 -151
  13. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +34 -34
  14. package/out/ISystemHook.sol/ISystemHook.json +192 -152
  15. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  16. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +172 -124
  17. package/out/IWorldErrors.sol/IWorldErrors.json +346 -256
  18. package/out/IWorldKernel.sol/IWorldCall.json +312 -272
  19. package/out/IWorldKernel.sol/IWorldKernel.json +339 -276
  20. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +297 -271
  21. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +201 -201
  22. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  23. package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
  24. package/out/KeysInTableModule.sol/KeysInTableModule.json +607 -558
  25. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  26. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1014 -1014
  27. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +496 -447
  28. package/out/Module.sol/Module.json +192 -125
  29. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  30. package/out/Schema.sol/SchemaInstance.json +30 -30
  31. package/out/Schema.sol/SchemaLib.json +30 -30
  32. package/out/SchemaType.sol/SchemaType.json +276 -276
  33. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +372 -329
  34. package/out/StoreHook.sol/StoreHook.json +358 -358
  35. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  36. package/out/System.sol/System.json +84 -41
  37. package/out/Tables.sol/Tables.json +73 -73
  38. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +168 -131
  39. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  40. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  41. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +393 -350
  42. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +138 -102
  43. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
  44. package/out/WorldContext.sol/WorldContextConsumer.json +780 -683
  45. package/out/WorldContext.sol/WorldContextProvider.json +743 -683
  46. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
  47. package/out/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
  48. package/out/constants.sol/constants.json +115 -115
  49. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  50. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  51. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  52. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  53. package/out/hasKey.sol/hasKey.json +130 -130
  54. package/out/index.sol/index.json +53 -53
  55. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +205 -160
  56. package/out/query.sol/query.json +1154 -1154
  57. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  58. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  59. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  60. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  61. package/out/src/IStore.sol/IStore.json +53 -53
  62. package/out/src/IWorldKernel.sol/IWorldCall.json +313 -273
  63. package/out/src/IWorldKernel.sol/IWorldKernel.json +340 -277
  64. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +298 -272
  65. package/out/src/Memory.sol/Memory.json +89 -89
  66. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  67. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  68. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  69. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  70. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  71. package/out/src/Schema.sol/SchemaLib.json +787 -787
  72. package/out/src/Slice.sol/SliceInstance.json +429 -429
  73. package/out/src/Slice.sol/SliceLib.json +429 -429
  74. package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
  75. package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
  76. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  77. package/out/src/WorldContext.sol/WorldContextConsumer.json +780 -683
  78. package/out/src/WorldContext.sol/WorldContextProvider.json +743 -683
  79. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +777 -765
  80. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +777 -765
  81. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  82. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  83. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  84. package/out/tables/Tables.sol/Tables.json +7288 -7288
  85. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  86. package/out/types.sol/types.json +39 -39
  87. package/out/world/src/IERC165.sol/IERC165.json +63 -57
  88. package/out/worldResourceTypes.sol/worldResourceTypes.json +87 -87
  89. package/package.json +8 -8
@@ -105,7 +105,7 @@
105
105
  "supportsInterface(bytes4)": "01ffc9a7",
106
106
  "verify(address,bytes32,bytes)": "1a86b550"
107
107
  },
108
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"_msgSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_msgValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_world\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"ResourceId\",\"name\":\"systemId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"supportsInterface(bytes4)\":{\"details\":\"Interface identification is specified in ERC-165. This function uses less than 30,000 gas.\",\"params\":{\"interfaceID\":\"The interface identifier, as specified in ERC-165\"},\"returns\":{\"_0\":\"`true` if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, `false` otherwise\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"supportsInterface(bytes4)\":{\"notice\":\"Query if a contract implements an interface\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol\":\"IDelegationControl\"},\"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/IDelegationControl.sol\":{\"keccak256\":\"0x1db433cdddb08f152ca2f59d4858b34943a448f2af609efd5a68d3d5256b3d1a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0d1776cbc6193d963d4925bc6345b4ffa75e4e12655b9b0088916fc4b0a2c813\",\"dweb:/ipfs/QmUdgUbbqRisUmqpJ3i2AH9WcSBdCZmdFSGuHyby6du51C\"]},\"/home/runner/work/mud/mud/packages/world/src/IERC165.sol\":{\"keccak256\":\"0x1a113ae394de69ca1db7e9acb1886eaee3967dcfed46fc78497e77bc26dd778f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://091e04dc9e8d5b3a492d1d39a6d06fd5b4bad3c282bd4c06a38d92bec3422513\",\"dweb:/ipfs/QmbfMi1bH9RAs4JMDxKmhVqpAoyoVgN9nd7o11SakJC1zQ\"]},\"/home/runner/work/mud/mud/packages/world/src/IWorldContextConsumer.sol\":{\"keccak256\":\"0x0c0f9eba3a700d97a3b87678bbf12d4bbd8a80490e9b3a5841d049ebc1a89f93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a56466e8ddcaf10b9109bfbc581563f5e9eefcaff1963a6954ccd093859ef6d2\",\"dweb:/ipfs/QmNk6FvWzmLT3vnsUuzqr9MYMfaQRa7yLuNM7DVvpkuytf\"]},\"/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol\":{\"keccak256\":\"0x979e418af3d0d3a1866240bed58d2792f0718cc1803a1476ec8c93af5577cae3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c68cfe48ce67fe83f4b000c954891821d1fae31bfdd36de37a12637c8a1864f7\",\"dweb:/ipfs/QmUX9tHSMTeScbiacKX2T16gLV6aPKDU1Q3eDiNxqmVNa1\"]},\"/home/runner/work/mud/mud/packages/world/src/constants.sol\":{\"keccak256\":\"0x36c772d51a5da46fcddf88831194d6d331083b8c8246fa79107c4b697c258d77\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2d2656374c398a2b075d5f26d2ab2c3ea315c99912e52d8030d50f5f8fdda8ac\",\"dweb:/ipfs/QmSG8uJr2ZbFVnht5cTG6xb6XbB6f3kvnznks4BdeAMYET\"]},\"/home/runner/work/mud/mud/packages/world/src/worldResourceTypes.sol\":{\"keccak256\":\"0x88f844f2c43757c819c8f140b30254f07c3484e12cce573879d43b2ee6a23f8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://55a9095094c2b7b1043020681696380cfc3cffd1f264a70bacb44fccd0fc0a8a\",\"dweb:/ipfs/QmfPdLPr9hfV8X8yfHhEf2HmEWAnA4d1c6EHEjHMdeM7ML\"]},\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0xb36724e0369ad053579ec04b9b51707dd8dcc4a72b38404cebdf018ce40bf202\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d8745e1632b7ee94f128600837a36ae53fabaf73c506b0c6d1cae70ea2e9b086\",\"dweb:/ipfs/QmXuMqmybWjEPqWEx91DTM7KAUyxAmDcsj7riBfCfA427N\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6\",\"dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs\"]},\"node_modules/@latticexyz/store/src/storeResourceTypes.sol\":{\"keccak256\":\"0xb2c27c7b8f974f1e3c70dd82c92f35f5bbd2887e16afe454e6dbc38300a51feb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6cbdbcc95835f67030eebdebeaf0bfd6faa612381179e7f7be8b9d3c00b20878\",\"dweb:/ipfs/QmNeZU5MmRQqhcLxN6BA2BQvgEst8yg67F4VQoPJEEK6kg\"]}},\"version\":1}",
108
+ "rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"_msgSender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_msgValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_world\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"ResourceId\",\"name\":\"systemId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for managing and verifying delegations within the context of a world. Inherits functionalities from IWorldContextConsumer.\",\"kind\":\"dev\",\"methods\":{\"_msgSender()\":{\"returns\":{\"_0\":\"The address of the `msg.sender` that called the World contract before the World routed the call to the WorldContextConsumer contract.\"}},\"_msgValue()\":{\"returns\":{\"_0\":\"The `msg.value` in the call to the World contract before the World routed the call to the WorldContextConsumer contract.\"}},\"_world()\":{\"returns\":{\"_0\":\"The address of the World contract that routed the call to this WorldContextConsumer.\"}},\"supportsInterface(bytes4)\":{\"details\":\"Interface identification is specified in ERC-165. This function uses less than 30,000 gas.\",\"params\":{\"interfaceID\":\"The interface identifier, as specified in ERC-165.\"},\"returns\":{\"_0\":\"True if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, false otherwise.\"}}},\"title\":\"IDelegationControl\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"_msgSender()\":{\"notice\":\"Extract the `msg.sender` from the context appended to the calldata.\"},\"_msgValue()\":{\"notice\":\"Extract the `msg.value` from the context appended to the calldata.\"},\"_world()\":{\"notice\":\"Get the address of the World contract that routed the call to this WorldContextConsumer.\"},\"supportsInterface(bytes4)\":{\"notice\":\"Query if a contract implements an interface.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol\":\"IDelegationControl\"},\"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/IDelegationControl.sol\":{\"keccak256\":\"0xbf3da1c6ab38b3db62a4f4dd0235280d1fb07d8d465a145d6fd9eaf4bb4c3553\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://30205a69d660ed8de5bf34ee73ec9033737d544bc7572130c439b2467606469d\",\"dweb:/ipfs/QmUWTNdSW1bxXjaQzMUCLqBBoLYYre7CgDko4Qy12DaRNS\"]},\"/home/runner/work/mud/mud/packages/world/src/IERC165.sol\":{\"keccak256\":\"0x7997ebbdee6a2493f28e7032c7a8b906ade40f807d95734e2653c8f1b023ff47\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c8ca41bb2619bf27e5bf886d1322f0e2dffd096c49f7ae6e716541dd1e1ddce5\",\"dweb:/ipfs/Qmb8zATUWWTtiWaSLjbAe6PGnJPes9ANvEyk7pYoWR3P3Y\"]},\"/home/runner/work/mud/mud/packages/world/src/IWorldContextConsumer.sol\":{\"keccak256\":\"0x22b8cb3ffcc21cb1657d57fc8ac929d2d6fdd199328e6f43ad2cb54f53dcd500\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://47c001f6b7c6d6e453c340618d23b1532078abb7d0fd7283405071e4e8ff8d2d\",\"dweb:/ipfs/QmRW3femBhqQCPwDEj4Jop2Dnd3EU21ufg7GDVwN4joCQu\"]},\"/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol\":{\"keccak256\":\"0xb7bfae2890004001221b3902d185c14cfea0e606d16914f6b7f81cf112aa9417\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://acfd0d09166fc1bf16a8a5c80fbae1bd42426b2fcbab3c492bc836ea5c0375fb\",\"dweb:/ipfs/QmTzZWHVBkx8hipFVpgEwAbZpr4c6hfr7yf7R71JojT3NK\"]},\"/home/runner/work/mud/mud/packages/world/src/constants.sol\":{\"keccak256\":\"0x36c772d51a5da46fcddf88831194d6d331083b8c8246fa79107c4b697c258d77\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2d2656374c398a2b075d5f26d2ab2c3ea315c99912e52d8030d50f5f8fdda8ac\",\"dweb:/ipfs/QmSG8uJr2ZbFVnht5cTG6xb6XbB6f3kvnznks4BdeAMYET\"]},\"/home/runner/work/mud/mud/packages/world/src/worldResourceTypes.sol\":{\"keccak256\":\"0xe31ee781596541f60ed71ef327c9d26ffc899e7fb3f4991c67406518bfc00746\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f7b864fea8c77833a322b16c4673f110d5065d0cafcedecd07895699cf4258c2\",\"dweb:/ipfs/QmRkzXVjMLwQFWxjEjgfdXVPAp6SU4zfxPo4NJcmz8HwH9\"]},\"node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0xb36724e0369ad053579ec04b9b51707dd8dcc4a72b38404cebdf018ce40bf202\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d8745e1632b7ee94f128600837a36ae53fabaf73c506b0c6d1cae70ea2e9b086\",\"dweb:/ipfs/QmXuMqmybWjEPqWEx91DTM7KAUyxAmDcsj7riBfCfA427N\"]},\"node_modules/@latticexyz/store/src/ResourceId.sol\":{\"keccak256\":\"0x4a61aefe72d6035b1e9aca7841aab44ebd26f8706bdbb447f382046fa94753b6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f715743739e4f8f8a98d78397025a92299ecb3b5dde88cc53bc1ab72bf531fa6\",\"dweb:/ipfs/QmVsYAupGWZUemE4t6xjLqztGHadQ8cyo9E4mT5ZDKUmTs\"]},\"node_modules/@latticexyz/store/src/storeResourceTypes.sol\":{\"keccak256\":\"0xb2c27c7b8f974f1e3c70dd82c92f35f5bbd2887e16afe454e6dbc38300a51feb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6cbdbcc95835f67030eebdebeaf0bfd6faa612381179e7f7be8b9d3c00b20878\",\"dweb:/ipfs/QmNeZU5MmRQqhcLxN6BA2BQvgEst8yg67F4VQoPJEEK6kg\"]}},\"version\":1}",
109
109
  "metadata": {
110
110
  "compiler": {
111
111
  "version": "0.8.21+commit.d9974bed"
@@ -204,13 +204,28 @@
204
204
  "devdoc": {
205
205
  "kind": "dev",
206
206
  "methods": {
207
+ "_msgSender()": {
208
+ "returns": {
209
+ "_0": "The address of the `msg.sender` that called the World contract before the World routed the call to the WorldContextConsumer contract."
210
+ }
211
+ },
212
+ "_msgValue()": {
213
+ "returns": {
214
+ "_0": "The `msg.value` in the call to the World contract before the World routed the call to the WorldContextConsumer contract."
215
+ }
216
+ },
217
+ "_world()": {
218
+ "returns": {
219
+ "_0": "The address of the World contract that routed the call to this WorldContextConsumer."
220
+ }
221
+ },
207
222
  "supportsInterface(bytes4)": {
208
- "details": "Interface identification is specified in ERC-165. This function uses less than 30,000 gas.",
223
+ "details": "Interface identification is specified in ERC-165. This function uses less than 30,000 gas.",
209
224
  "params": {
210
- "interfaceID": "The interface identifier, as specified in ERC-165"
225
+ "interfaceID": "The interface identifier, as specified in ERC-165."
211
226
  },
212
227
  "returns": {
213
- "_0": "`true` if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, `false` otherwise"
228
+ "_0": "True if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, false otherwise."
214
229
  }
215
230
  }
216
231
  },
@@ -219,8 +234,17 @@
219
234
  "userdoc": {
220
235
  "kind": "user",
221
236
  "methods": {
237
+ "_msgSender()": {
238
+ "notice": "Extract the `msg.sender` from the context appended to the calldata."
239
+ },
240
+ "_msgValue()": {
241
+ "notice": "Extract the `msg.value` from the context appended to the calldata."
242
+ },
243
+ "_world()": {
244
+ "notice": "Get the address of the World contract that routed the call to this WorldContextConsumer."
245
+ },
222
246
  "supportsInterface(bytes4)": {
223
- "notice": "Query if a contract implements an interface"
247
+ "notice": "Query if a contract implements an interface."
224
248
  }
225
249
  },
226
250
  "version": 1
@@ -246,34 +270,34 @@
246
270
  },
247
271
  "sources": {
248
272
  "/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol": {
249
- "keccak256": "0x1db433cdddb08f152ca2f59d4858b34943a448f2af609efd5a68d3d5256b3d1a",
273
+ "keccak256": "0xbf3da1c6ab38b3db62a4f4dd0235280d1fb07d8d465a145d6fd9eaf4bb4c3553",
250
274
  "urls": [
251
- "bzz-raw://0d1776cbc6193d963d4925bc6345b4ffa75e4e12655b9b0088916fc4b0a2c813",
252
- "dweb:/ipfs/QmUdgUbbqRisUmqpJ3i2AH9WcSBdCZmdFSGuHyby6du51C"
275
+ "bzz-raw://30205a69d660ed8de5bf34ee73ec9033737d544bc7572130c439b2467606469d",
276
+ "dweb:/ipfs/QmUWTNdSW1bxXjaQzMUCLqBBoLYYre7CgDko4Qy12DaRNS"
253
277
  ],
254
278
  "license": "MIT"
255
279
  },
256
280
  "/home/runner/work/mud/mud/packages/world/src/IERC165.sol": {
257
- "keccak256": "0x1a113ae394de69ca1db7e9acb1886eaee3967dcfed46fc78497e77bc26dd778f",
281
+ "keccak256": "0x7997ebbdee6a2493f28e7032c7a8b906ade40f807d95734e2653c8f1b023ff47",
258
282
  "urls": [
259
- "bzz-raw://091e04dc9e8d5b3a492d1d39a6d06fd5b4bad3c282bd4c06a38d92bec3422513",
260
- "dweb:/ipfs/QmbfMi1bH9RAs4JMDxKmhVqpAoyoVgN9nd7o11SakJC1zQ"
283
+ "bzz-raw://c8ca41bb2619bf27e5bf886d1322f0e2dffd096c49f7ae6e716541dd1e1ddce5",
284
+ "dweb:/ipfs/Qmb8zATUWWTtiWaSLjbAe6PGnJPes9ANvEyk7pYoWR3P3Y"
261
285
  ],
262
286
  "license": "MIT"
263
287
  },
264
288
  "/home/runner/work/mud/mud/packages/world/src/IWorldContextConsumer.sol": {
265
- "keccak256": "0x0c0f9eba3a700d97a3b87678bbf12d4bbd8a80490e9b3a5841d049ebc1a89f93",
289
+ "keccak256": "0x22b8cb3ffcc21cb1657d57fc8ac929d2d6fdd199328e6f43ad2cb54f53dcd500",
266
290
  "urls": [
267
- "bzz-raw://a56466e8ddcaf10b9109bfbc581563f5e9eefcaff1963a6954ccd093859ef6d2",
268
- "dweb:/ipfs/QmNk6FvWzmLT3vnsUuzqr9MYMfaQRa7yLuNM7DVvpkuytf"
291
+ "bzz-raw://47c001f6b7c6d6e453c340618d23b1532078abb7d0fd7283405071e4e8ff8d2d",
292
+ "dweb:/ipfs/QmRW3femBhqQCPwDEj4Jop2Dnd3EU21ufg7GDVwN4joCQu"
269
293
  ],
270
294
  "license": "MIT"
271
295
  },
272
296
  "/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol": {
273
- "keccak256": "0x979e418af3d0d3a1866240bed58d2792f0718cc1803a1476ec8c93af5577cae3",
297
+ "keccak256": "0xb7bfae2890004001221b3902d185c14cfea0e606d16914f6b7f81cf112aa9417",
274
298
  "urls": [
275
- "bzz-raw://c68cfe48ce67fe83f4b000c954891821d1fae31bfdd36de37a12637c8a1864f7",
276
- "dweb:/ipfs/QmUX9tHSMTeScbiacKX2T16gLV6aPKDU1Q3eDiNxqmVNa1"
299
+ "bzz-raw://acfd0d09166fc1bf16a8a5c80fbae1bd42426b2fcbab3c492bc836ea5c0375fb",
300
+ "dweb:/ipfs/QmTzZWHVBkx8hipFVpgEwAbZpr4c6hfr7yf7R71JojT3NK"
277
301
  ],
278
302
  "license": "MIT"
279
303
  },
@@ -286,10 +310,10 @@
286
310
  "license": "MIT"
287
311
  },
288
312
  "/home/runner/work/mud/mud/packages/world/src/worldResourceTypes.sol": {
289
- "keccak256": "0x88f844f2c43757c819c8f140b30254f07c3484e12cce573879d43b2ee6a23f8b",
313
+ "keccak256": "0xe31ee781596541f60ed71ef327c9d26ffc899e7fb3f4991c67406518bfc00746",
290
314
  "urls": [
291
- "bzz-raw://55a9095094c2b7b1043020681696380cfc3cffd1f264a70bacb44fccd0fc0a8a",
292
- "dweb:/ipfs/QmfPdLPr9hfV8X8yfHhEf2HmEWAnA4d1c6EHEjHMdeM7ML"
315
+ "bzz-raw://f7b864fea8c77833a322b16c4673f110d5065d0cafcedecd07895699cf4258c2",
316
+ "dweb:/ipfs/QmRkzXVjMLwQFWxjEjgfdXVPAp6SU4zfxPo4NJcmz8HwH9"
293
317
  ],
294
318
  "license": "MIT"
295
319
  },
@@ -322,26 +346,26 @@
322
346
  },
323
347
  "ast": {
324
348
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/IDelegationControl.sol",
325
- "id": 22918,
349
+ "id": 22920,
326
350
  "exportedSymbols": {
327
351
  "DELEGATION_CONTROL_INTERFACE_ID": [
328
- 22902
352
+ 22903
329
353
  ],
330
354
  "IDelegationControl": [
331
- 22917
355
+ 22919
332
356
  ],
333
357
  "IWorldContextConsumer": [
334
- 23057
358
+ 23073
335
359
  ],
336
360
  "ResourceId": [
337
- 26191
361
+ 26238
338
362
  ],
339
363
  "WORLD_CONTEXT_CONSUMER_INTERFACE_ID": [
340
- 23039
364
+ 23051
341
365
  ]
342
366
  },
343
367
  "nodeType": "SourceUnit",
344
- "src": "32:546:33",
368
+ "src": "32:847:33",
345
369
  "nodes": [
346
370
  {
347
371
  "id": 22890,
@@ -363,8 +387,8 @@
363
387
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/IWorldContextConsumer.sol",
364
388
  "file": "./IWorldContextConsumer.sol",
365
389
  "nameLocation": "-1:-1:-1",
366
- "scope": 22918,
367
- "sourceUnit": 23058,
390
+ "scope": 22920,
391
+ "sourceUnit": 23074,
368
392
  "symbolAliases": [
369
393
  {
370
394
  "foreign": {
@@ -372,7 +396,7 @@
372
396
  "name": "IWorldContextConsumer",
373
397
  "nodeType": "Identifier",
374
398
  "overloadedDeclarations": [],
375
- "referencedDeclaration": 23057,
399
+ "referencedDeclaration": 23073,
376
400
  "src": "68:21:33",
377
401
  "typeDescriptions": {}
378
402
  },
@@ -384,7 +408,7 @@
384
408
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
385
409
  "nodeType": "Identifier",
386
410
  "overloadedDeclarations": [],
387
- "referencedDeclaration": 23039,
411
+ "referencedDeclaration": 23051,
388
412
  "src": "91:35:33",
389
413
  "typeDescriptions": {}
390
414
  },
@@ -401,8 +425,8 @@
401
425
  "absolutePath": "/home/runner/work/mud/mud/packages/world/src/WorldResourceId.sol",
402
426
  "file": "./WorldResourceId.sol",
403
427
  "nameLocation": "-1:-1:-1",
404
- "scope": 22918,
405
- "sourceUnit": 23713,
428
+ "scope": 22920,
429
+ "sourceUnit": 23759,
406
430
  "symbolAliases": [
407
431
  {
408
432
  "foreign": {
@@ -410,7 +434,7 @@
410
434
  "name": "ResourceId",
411
435
  "nodeType": "Identifier",
412
436
  "overloadedDeclarations": [],
413
- "referencedDeclaration": 26191,
437
+ "referencedDeclaration": 26238,
414
438
  "src": "174:10:33",
415
439
  "typeDescriptions": {}
416
440
  },
@@ -420,15 +444,15 @@
420
444
  "unitAlias": ""
421
445
  },
422
446
  {
423
- "id": 22902,
447
+ "id": 22903,
424
448
  "nodeType": "VariableDeclaration",
425
- "src": "287:124:33",
449
+ "src": "407:124:33",
426
450
  "nodes": [],
427
451
  "constant": true,
428
452
  "mutability": "constant",
429
453
  "name": "DELEGATION_CONTROL_INTERFACE_ID",
430
- "nameLocation": "303:31:33",
431
- "scope": 22918,
454
+ "nameLocation": "423:31:33",
455
+ "scope": 22920,
432
456
  "stateVariable": false,
433
457
  "storageLocation": "default",
434
458
  "typeDescriptions": {
@@ -436,10 +460,10 @@
436
460
  "typeString": "bytes4"
437
461
  },
438
462
  "typeName": {
439
- "id": 22896,
463
+ "id": 22897,
440
464
  "name": "bytes4",
441
465
  "nodeType": "ElementaryTypeName",
442
- "src": "287:6:33",
466
+ "src": "407:6:33",
443
467
  "typeDescriptions": {
444
468
  "typeIdentifier": "t_bytes4",
445
469
  "typeString": "bytes4"
@@ -450,7 +474,7 @@
450
474
  "typeIdentifier": "t_bytes4",
451
475
  "typeString": "bytes4"
452
476
  },
453
- "id": 22901,
477
+ "id": 22902,
454
478
  "isConstant": false,
455
479
  "isLValue": false,
456
480
  "isPure": true,
@@ -458,41 +482,41 @@
458
482
  "leftExpression": {
459
483
  "expression": {
460
484
  "expression": {
461
- "id": 22897,
485
+ "id": 22898,
462
486
  "name": "IDelegationControl",
463
487
  "nodeType": "Identifier",
464
488
  "overloadedDeclarations": [],
465
- "referencedDeclaration": 22917,
466
- "src": "337:18:33",
489
+ "referencedDeclaration": 22919,
490
+ "src": "457:18:33",
467
491
  "typeDescriptions": {
468
- "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$22917_$",
492
+ "typeIdentifier": "t_type$_t_contract$_IDelegationControl_$22919_$",
469
493
  "typeString": "type(contract IDelegationControl)"
470
494
  }
471
495
  },
472
- "id": 22898,
496
+ "id": 22899,
473
497
  "isConstant": false,
474
498
  "isLValue": false,
475
499
  "isPure": true,
476
500
  "lValueRequested": false,
477
- "memberLocation": "356:6:33",
501
+ "memberLocation": "476:6:33",
478
502
  "memberName": "verify",
479
503
  "nodeType": "MemberAccess",
480
- "referencedDeclaration": 22916,
481
- "src": "337:25:33",
504
+ "referencedDeclaration": 22918,
505
+ "src": "457:25:33",
482
506
  "typeDescriptions": {
483
- "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26191_$_t_bytes_memory_ptr_$returns$_t_bool_$",
507
+ "typeIdentifier": "t_function_declaration_nonpayable$_t_address_$_t_userDefinedValueType$_ResourceId_$26238_$_t_bytes_memory_ptr_$returns$_t_bool_$",
484
508
  "typeString": "function IDelegationControl.verify(address,ResourceId,bytes memory) returns (bool)"
485
509
  }
486
510
  },
487
- "id": 22899,
511
+ "id": 22900,
488
512
  "isConstant": false,
489
513
  "isLValue": false,
490
514
  "isPure": true,
491
515
  "lValueRequested": false,
492
- "memberLocation": "363:8:33",
516
+ "memberLocation": "483:8:33",
493
517
  "memberName": "selector",
494
518
  "nodeType": "MemberAccess",
495
- "src": "337:34:33",
519
+ "src": "457:34:33",
496
520
  "typeDescriptions": {
497
521
  "typeIdentifier": "t_bytes4",
498
522
  "typeString": "bytes4"
@@ -501,18 +525,18 @@
501
525
  "nodeType": "BinaryOperation",
502
526
  "operator": "^",
503
527
  "rightExpression": {
504
- "id": 22900,
528
+ "id": 22901,
505
529
  "name": "WORLD_CONTEXT_CONSUMER_INTERFACE_ID",
506
530
  "nodeType": "Identifier",
507
531
  "overloadedDeclarations": [],
508
- "referencedDeclaration": 23039,
509
- "src": "376:35:33",
532
+ "referencedDeclaration": 23051,
533
+ "src": "496:35:33",
510
534
  "typeDescriptions": {
511
535
  "typeIdentifier": "t_bytes4",
512
536
  "typeString": "bytes4"
513
537
  }
514
538
  },
515
- "src": "337:74:33",
539
+ "src": "457:74:33",
516
540
  "typeDescriptions": {
517
541
  "typeIdentifier": "t_bytes4",
518
542
  "typeString": "bytes4"
@@ -521,34 +545,34 @@
521
545
  "visibility": "internal"
522
546
  },
523
547
  {
524
- "id": 22917,
548
+ "id": 22919,
525
549
  "nodeType": "ContractDefinition",
526
- "src": "414:163:33",
550
+ "src": "715:163:33",
527
551
  "nodes": [
528
552
  {
529
- "id": 22916,
553
+ "id": 22918,
530
554
  "nodeType": "FunctionDefinition",
531
- "src": "472:103:33",
555
+ "src": "773:103:33",
532
556
  "nodes": [],
533
557
  "functionSelector": "1a86b550",
534
558
  "implemented": false,
535
559
  "kind": "function",
536
560
  "modifiers": [],
537
561
  "name": "verify",
538
- "nameLocation": "481:6:33",
562
+ "nameLocation": "782:6:33",
539
563
  "parameters": {
540
- "id": 22912,
564
+ "id": 22914,
541
565
  "nodeType": "ParameterList",
542
566
  "parameters": [
543
567
  {
544
568
  "constant": false,
545
- "id": 22906,
569
+ "id": 22908,
546
570
  "mutability": "mutable",
547
571
  "name": "delegator",
548
- "nameLocation": "496:9:33",
572
+ "nameLocation": "797:9:33",
549
573
  "nodeType": "VariableDeclaration",
550
- "scope": 22916,
551
- "src": "488:17:33",
574
+ "scope": 22918,
575
+ "src": "789:17:33",
552
576
  "stateVariable": false,
553
577
  "storageLocation": "default",
554
578
  "typeDescriptions": {
@@ -556,10 +580,10 @@
556
580
  "typeString": "address"
557
581
  },
558
582
  "typeName": {
559
- "id": 22905,
583
+ "id": 22907,
560
584
  "name": "address",
561
585
  "nodeType": "ElementaryTypeName",
562
- "src": "488:7:33",
586
+ "src": "789:7:33",
563
587
  "stateMutability": "nonpayable",
564
588
  "typeDescriptions": {
565
589
  "typeIdentifier": "t_address",
@@ -570,36 +594,36 @@
570
594
  },
571
595
  {
572
596
  "constant": false,
573
- "id": 22909,
597
+ "id": 22911,
574
598
  "mutability": "mutable",
575
599
  "name": "systemId",
576
- "nameLocation": "518:8:33",
600
+ "nameLocation": "819:8:33",
577
601
  "nodeType": "VariableDeclaration",
578
- "scope": 22916,
579
- "src": "507:19:33",
602
+ "scope": 22918,
603
+ "src": "808:19:33",
580
604
  "stateVariable": false,
581
605
  "storageLocation": "default",
582
606
  "typeDescriptions": {
583
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26191",
607
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
584
608
  "typeString": "ResourceId"
585
609
  },
586
610
  "typeName": {
587
- "id": 22908,
611
+ "id": 22910,
588
612
  "nodeType": "UserDefinedTypeName",
589
613
  "pathNode": {
590
- "id": 22907,
614
+ "id": 22909,
591
615
  "name": "ResourceId",
592
616
  "nameLocations": [
593
- "507:10:33"
617
+ "808:10:33"
594
618
  ],
595
619
  "nodeType": "IdentifierPath",
596
- "referencedDeclaration": 26191,
597
- "src": "507:10:33"
620
+ "referencedDeclaration": 26238,
621
+ "src": "808:10:33"
598
622
  },
599
- "referencedDeclaration": 26191,
600
- "src": "507:10:33",
623
+ "referencedDeclaration": 26238,
624
+ "src": "808:10:33",
601
625
  "typeDescriptions": {
602
- "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26191",
626
+ "typeIdentifier": "t_userDefinedValueType$_ResourceId_$26238",
603
627
  "typeString": "ResourceId"
604
628
  }
605
629
  },
@@ -607,13 +631,13 @@
607
631
  },
608
632
  {
609
633
  "constant": false,
610
- "id": 22911,
634
+ "id": 22913,
611
635
  "mutability": "mutable",
612
636
  "name": "callData",
613
- "nameLocation": "541:8:33",
637
+ "nameLocation": "842:8:33",
614
638
  "nodeType": "VariableDeclaration",
615
- "scope": 22916,
616
- "src": "528:21:33",
639
+ "scope": 22918,
640
+ "src": "829:21:33",
617
641
  "stateVariable": false,
618
642
  "storageLocation": "memory",
619
643
  "typeDescriptions": {
@@ -621,10 +645,10 @@
621
645
  "typeString": "bytes"
622
646
  },
623
647
  "typeName": {
624
- "id": 22910,
648
+ "id": 22912,
625
649
  "name": "bytes",
626
650
  "nodeType": "ElementaryTypeName",
627
- "src": "528:5:33",
651
+ "src": "829:5:33",
628
652
  "typeDescriptions": {
629
653
  "typeIdentifier": "t_bytes_storage_ptr",
630
654
  "typeString": "bytes"
@@ -633,21 +657,21 @@
633
657
  "visibility": "internal"
634
658
  }
635
659
  ],
636
- "src": "487:63:33"
660
+ "src": "788:63:33"
637
661
  },
638
662
  "returnParameters": {
639
- "id": 22915,
663
+ "id": 22917,
640
664
  "nodeType": "ParameterList",
641
665
  "parameters": [
642
666
  {
643
667
  "constant": false,
644
- "id": 22914,
668
+ "id": 22916,
645
669
  "mutability": "mutable",
646
670
  "name": "",
647
671
  "nameLocation": "-1:-1:-1",
648
672
  "nodeType": "VariableDeclaration",
649
- "scope": 22916,
650
- "src": "569:4:33",
673
+ "scope": 22918,
674
+ "src": "870:4:33",
651
675
  "stateVariable": false,
652
676
  "storageLocation": "default",
653
677
  "typeDescriptions": {
@@ -655,10 +679,10 @@
655
679
  "typeString": "bool"
656
680
  },
657
681
  "typeName": {
658
- "id": 22913,
682
+ "id": 22915,
659
683
  "name": "bool",
660
684
  "nodeType": "ElementaryTypeName",
661
- "src": "569:4:33",
685
+ "src": "870:4:33",
662
686
  "typeDescriptions": {
663
687
  "typeIdentifier": "t_bool",
664
688
  "typeString": "bool"
@@ -667,9 +691,9 @@
667
691
  "visibility": "internal"
668
692
  }
669
693
  ],
670
- "src": "568:6:33"
694
+ "src": "869:6:33"
671
695
  },
672
- "scope": 22917,
696
+ "scope": 22919,
673
697
  "stateMutability": "nonpayable",
674
698
  "virtual": false,
675
699
  "visibility": "external"
@@ -679,32 +703,38 @@
679
703
  "baseContracts": [
680
704
  {
681
705
  "baseName": {
682
- "id": 22903,
706
+ "id": 22905,
683
707
  "name": "IWorldContextConsumer",
684
708
  "nameLocations": [
685
- "446:21:33"
709
+ "747:21:33"
686
710
  ],
687
711
  "nodeType": "IdentifierPath",
688
- "referencedDeclaration": 23057,
689
- "src": "446:21:33"
712
+ "referencedDeclaration": 23073,
713
+ "src": "747:21:33"
690
714
  },
691
- "id": 22904,
715
+ "id": 22906,
692
716
  "nodeType": "InheritanceSpecifier",
693
- "src": "446:21:33"
717
+ "src": "747:21:33"
694
718
  }
695
719
  ],
696
720
  "canonicalName": "IDelegationControl",
697
721
  "contractDependencies": [],
698
722
  "contractKind": "interface",
723
+ "documentation": {
724
+ "id": 22904,
725
+ "nodeType": "StructuredDocumentation",
726
+ "src": "534:180:33",
727
+ "text": " @title IDelegationControl\n @dev Interface for managing and verifying delegations within the context of a world.\n Inherits functionalities from IWorldContextConsumer."
728
+ },
699
729
  "fullyImplemented": false,
700
730
  "linearizedBaseContracts": [
701
- 22917,
702
- 23057,
703
- 22933
731
+ 22919,
732
+ 23073,
733
+ 22937
704
734
  ],
705
735
  "name": "IDelegationControl",
706
- "nameLocation": "424:18:33",
707
- "scope": 22918,
736
+ "nameLocation": "725:18:33",
737
+ "scope": 22920,
708
738
  "usedErrors": [],
709
739
  "usedEvents": []
710
740
  }