@latticexyz/world-modules 2.0.0-main-c07fa021 → 2.0.0-main-c4f49240

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 (104) hide show
  1. package/out/ArrayLib.sol/ArrayLib.json +255 -255
  2. package/out/Callbacks.sol/Callbacks.json +45 -45
  3. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +203 -203
  4. package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
  5. package/out/DelegationControl.sol/DelegationControl.json +83 -83
  6. package/out/Hooks.sol/Hooks.json +45 -45
  7. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
  8. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  9. package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
  10. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
  11. package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
  12. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
  13. package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
  14. package/out/IDelegationControl.sol/IDelegationControl.json +60 -60
  15. package/out/IModule.sol/IModule.json +76 -76
  16. package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
  17. package/out/ISystemHook.sol/ISystemHook.json +82 -82
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
  19. package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +67 -67
  20. package/out/IWorldErrors.sol/IWorldErrors.json +136 -136
  21. package/out/IWorldKernel.sol/IWorldCall.json +149 -149
  22. package/out/IWorldKernel.sol/IWorldKernel.json +149 -149
  23. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
  24. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +175 -175
  25. package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
  26. package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
  27. package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
  28. package/out/KeysInTableModule.sol/KeysInTableModule.json +534 -534
  29. package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
  30. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +996 -996
  31. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +423 -423
  32. package/out/Mixed.sol/Mixed.json +66 -66
  33. package/out/Module.sol/Module.json +73 -73
  34. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  35. package/out/Schema.sol/SchemaInstance.json +30 -30
  36. package/out/Schema.sol/SchemaLib.json +30 -30
  37. package/out/SchemaType.sol/SchemaType.json +276 -276
  38. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +300 -300
  39. package/out/StoreHook.sol/StoreHook.json +358 -358
  40. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  41. package/out/System.sol/System.json +18 -18
  42. package/out/Tables.sol/Tables.json +73 -73
  43. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +107 -107
  44. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
  45. package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
  46. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +324 -324
  47. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +81 -81
  48. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
  49. package/out/Vector2.sol/Vector2.json +52 -52
  50. package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
  51. package/out/WorldContext.sol/WorldContextProvider.json +28 -28
  52. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
  53. package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
  54. package/out/constants.sol/constants.json +85 -85
  55. package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
  56. package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
  57. package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
  58. package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
  59. package/out/hasKey.sol/hasKey.json +130 -130
  60. package/out/index.sol/index.json +53 -53
  61. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
  62. package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
  63. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +244 -171
  64. package/out/interfaces/IERC165.sol/IERC165.json +27 -27
  65. package/out/interfaces/IWorldKernel.sol/IWorldCall.json +151 -151
  66. package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +151 -151
  67. package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +151 -151
  68. package/out/query.sol/query.json +1154 -1154
  69. package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
  70. package/out/src/Bytes.sol/Bytes.json +1332 -1332
  71. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
  72. package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
  73. package/out/src/IStore.sol/IStore.json +886 -886
  74. package/out/src/IStore.sol/IStoreData.json +886 -886
  75. package/out/src/IStore.sol/IStoreRead.json +886 -886
  76. package/out/src/IStore.sol/IStoreRegistration.json +886 -886
  77. package/out/src/IStore.sol/IStoreWrite.json +886 -886
  78. package/out/src/Memory.sol/Memory.json +89 -89
  79. package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
  80. package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
  81. package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
  82. package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
  83. package/out/src/Schema.sol/SchemaInstance.json +787 -787
  84. package/out/src/Schema.sol/SchemaLib.json +787 -787
  85. package/out/src/Slice.sol/SliceInstance.json +429 -429
  86. package/out/src/Slice.sol/SliceLib.json +429 -429
  87. package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
  88. package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
  89. package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
  90. package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
  91. package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
  92. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
  93. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
  94. package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
  95. package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
  96. package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
  97. package/out/tables/Tables.sol/Tables.json +7288 -7288
  98. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
  99. package/out/types.sol/types.json +131 -23
  100. package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
  101. package/package.json +8 -8
  102. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
  103. package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
  104. package/out/ICallBatchSystem.sol/ICallBatchSystem.json +0 -334
@@ -3046,23 +3046,23 @@
3046
3046
  },
3047
3047
  "ast": {
3048
3048
  "absolutePath": "src/interfaces/IBaseWorld.sol",
3049
- "id": 49437,
3049
+ "id": 49456,
3050
3050
  "exportedSymbols": {
3051
3051
  "IBaseWorld": [
3052
- 49436
3052
+ 49455
3053
3053
  ],
3054
3054
  "IStore": [
3055
- 35684
3055
+ 35703
3056
3056
  ],
3057
3057
  "IWorldKernel": [
3058
- 49363
3058
+ 49382
3059
3059
  ]
3060
3060
  },
3061
3061
  "nodeType": "SourceUnit",
3062
3062
  "src": "32:386:111",
3063
3063
  "nodes": [
3064
3064
  {
3065
- "id": 49426,
3065
+ "id": 49445,
3066
3066
  "nodeType": "PragmaDirective",
3067
3067
  "src": "32:25:111",
3068
3068
  "nodes": [],
@@ -3074,23 +3074,23 @@
3074
3074
  ]
3075
3075
  },
3076
3076
  {
3077
- "id": 49428,
3077
+ "id": 49447,
3078
3078
  "nodeType": "ImportDirective",
3079
3079
  "src": "108:58:111",
3080
3080
  "nodes": [],
3081
3081
  "absolutePath": "node_modules/@latticexyz/store/src/IStore.sol",
3082
3082
  "file": "@latticexyz/store/src/IStore.sol",
3083
3083
  "nameLocation": "-1:-1:-1",
3084
- "scope": 49437,
3085
- "sourceUnit": 35685,
3084
+ "scope": 49456,
3085
+ "sourceUnit": 35704,
3086
3086
  "symbolAliases": [
3087
3087
  {
3088
3088
  "foreign": {
3089
- "id": 49427,
3089
+ "id": 49446,
3090
3090
  "name": "IStore",
3091
3091
  "nodeType": "Identifier",
3092
3092
  "overloadedDeclarations": [],
3093
- "referencedDeclaration": 35684,
3093
+ "referencedDeclaration": 35703,
3094
3094
  "src": "117:6:111",
3095
3095
  "typeDescriptions": {}
3096
3096
  },
@@ -3100,23 +3100,23 @@
3100
3100
  "unitAlias": ""
3101
3101
  },
3102
3102
  {
3103
- "id": 49430,
3103
+ "id": 49449,
3104
3104
  "nodeType": "ImportDirective",
3105
3105
  "src": "167:81:111",
3106
3106
  "nodes": [],
3107
3107
  "absolutePath": "node_modules/@latticexyz/world/src/interfaces/IWorldKernel.sol",
3108
3108
  "file": "@latticexyz/world/src/interfaces/IWorldKernel.sol",
3109
3109
  "nameLocation": "-1:-1:-1",
3110
- "scope": 49437,
3111
- "sourceUnit": 49364,
3110
+ "scope": 49456,
3111
+ "sourceUnit": 49383,
3112
3112
  "symbolAliases": [
3113
3113
  {
3114
3114
  "foreign": {
3115
- "id": 49429,
3115
+ "id": 49448,
3116
3116
  "name": "IWorldKernel",
3117
3117
  "nodeType": "Identifier",
3118
3118
  "overloadedDeclarations": [],
3119
- "referencedDeclaration": 49363,
3119
+ "referencedDeclaration": 49382,
3120
3120
  "src": "176:12:111",
3121
3121
  "typeDescriptions": {}
3122
3122
  },
@@ -3126,7 +3126,7 @@
3126
3126
  "unitAlias": ""
3127
3127
  },
3128
3128
  {
3129
- "id": 49436,
3129
+ "id": 49455,
3130
3130
  "nodeType": "ContractDefinition",
3131
3131
  "src": "368:49:111",
3132
3132
  "nodes": [],
@@ -3134,31 +3134,31 @@
3134
3134
  "baseContracts": [
3135
3135
  {
3136
3136
  "baseName": {
3137
- "id": 49432,
3137
+ "id": 49451,
3138
3138
  "name": "IStore",
3139
3139
  "nameLocations": [
3140
3140
  "392:6:111"
3141
3141
  ],
3142
3142
  "nodeType": "IdentifierPath",
3143
- "referencedDeclaration": 35684,
3143
+ "referencedDeclaration": 35703,
3144
3144
  "src": "392:6:111"
3145
3145
  },
3146
- "id": 49433,
3146
+ "id": 49452,
3147
3147
  "nodeType": "InheritanceSpecifier",
3148
3148
  "src": "392:6:111"
3149
3149
  },
3150
3150
  {
3151
3151
  "baseName": {
3152
- "id": 49434,
3152
+ "id": 49453,
3153
3153
  "name": "IWorldKernel",
3154
3154
  "nameLocations": [
3155
3155
  "400:12:111"
3156
3156
  ],
3157
3157
  "nodeType": "IdentifierPath",
3158
- "referencedDeclaration": 49363,
3158
+ "referencedDeclaration": 49382,
3159
3159
  "src": "400:12:111"
3160
3160
  },
3161
- "id": 49435,
3161
+ "id": 49454,
3162
3162
  "nodeType": "InheritanceSpecifier",
3163
3163
  "src": "400:12:111"
3164
3164
  }
@@ -3167,60 +3167,60 @@
3167
3167
  "contractDependencies": [],
3168
3168
  "contractKind": "interface",
3169
3169
  "documentation": {
3170
- "id": 49431,
3170
+ "id": 49450,
3171
3171
  "nodeType": "StructuredDocumentation",
3172
3172
  "src": "250:117:111",
3173
3173
  "text": " The IBaseWorld interface includes all systems dynamically added to the World\n during the deploy process."
3174
3174
  },
3175
3175
  "fullyImplemented": false,
3176
3176
  "linearizedBaseContracts": [
3177
- 49436,
3178
- 49363,
3179
- 71178,
3180
- 49332,
3181
- 49307,
3182
- 35684,
3183
- 67651,
3184
- 35677,
3185
- 35634,
3186
- 35628,
3187
- 35436
3177
+ 49455,
3178
+ 49382,
3179
+ 71208,
3180
+ 49351,
3181
+ 49326,
3182
+ 35703,
3183
+ 67670,
3184
+ 35696,
3185
+ 35653,
3186
+ 35647,
3187
+ 35455
3188
3188
  ],
3189
3189
  "name": "IBaseWorld",
3190
3190
  "nameLocation": "378:10:111",
3191
- "scope": 49437,
3191
+ "scope": 49456,
3192
3192
  "usedErrors": [
3193
- 67596,
3194
- 67603,
3195
- 67612,
3196
- 67618,
3197
- 67624,
3198
- 67630,
3199
- 67636,
3200
- 67642,
3201
- 67650,
3202
- 71105,
3203
- 71112,
3204
- 71119,
3205
- 71125,
3206
- 71132,
3207
- 71136,
3208
- 71140,
3209
- 71144,
3210
- 71150,
3211
- 71152,
3212
- 71158,
3213
- 71164,
3214
- 71173,
3215
- 71177
3193
+ 67615,
3194
+ 67622,
3195
+ 67631,
3196
+ 67637,
3197
+ 67643,
3198
+ 67649,
3199
+ 67655,
3200
+ 67661,
3201
+ 67669,
3202
+ 71135,
3203
+ 71142,
3204
+ 71149,
3205
+ 71155,
3206
+ 71162,
3207
+ 71166,
3208
+ 71170,
3209
+ 71174,
3210
+ 71180,
3211
+ 71182,
3212
+ 71188,
3213
+ 71194,
3214
+ 71203,
3215
+ 71207
3216
3216
  ],
3217
3217
  "usedEvents": [
3218
- 35241,
3219
- 35451,
3220
- 35463,
3221
- 35480,
3222
- 35488,
3223
- 49343
3218
+ 35260,
3219
+ 35470,
3220
+ 35482,
3221
+ 35499,
3222
+ 35507,
3223
+ 49362
3224
3224
  ]
3225
3225
  }
3226
3226
  ],
@@ -0,0 +1,69 @@
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": "batchCall",
23
+ "outputs": [
24
+ {
25
+ "internalType": "bytes[]",
26
+ "name": "returnDatas",
27
+ "type": "bytes[]"
28
+ }
29
+ ],
30
+ "stateMutability": "nonpayable",
31
+ "type": "function"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "components": [
37
+ {
38
+ "internalType": "address",
39
+ "name": "from",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "internalType": "ResourceId",
44
+ "name": "systemId",
45
+ "type": "bytes32"
46
+ },
47
+ {
48
+ "internalType": "bytes",
49
+ "name": "callData",
50
+ "type": "bytes"
51
+ }
52
+ ],
53
+ "internalType": "struct SystemCallFromData[]",
54
+ "name": "systemCalls",
55
+ "type": "tuple[]"
56
+ }
57
+ ],
58
+ "name": "batchCallFrom",
59
+ "outputs": [
60
+ {
61
+ "internalType": "bytes[]",
62
+ "name": "returnDatas",
63
+ "type": "bytes[]"
64
+ }
65
+ ],
66
+ "stateMutability": "nonpayable",
67
+ "type": "function"
68
+ }
69
+ ]
@@ -0,0 +1,70 @@
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: "batchCall";
23
+ outputs: [
24
+ {
25
+ internalType: "bytes[]";
26
+ name: "returnDatas";
27
+ type: "bytes[]";
28
+ }
29
+ ];
30
+ stateMutability: "nonpayable";
31
+ type: "function";
32
+ },
33
+ {
34
+ inputs: [
35
+ {
36
+ components: [
37
+ {
38
+ internalType: "address";
39
+ name: "from";
40
+ type: "address";
41
+ },
42
+ {
43
+ internalType: "ResourceId";
44
+ name: "systemId";
45
+ type: "bytes32";
46
+ },
47
+ {
48
+ internalType: "bytes";
49
+ name: "callData";
50
+ type: "bytes";
51
+ }
52
+ ];
53
+ internalType: "struct SystemCallFromData[]";
54
+ name: "systemCalls";
55
+ type: "tuple[]";
56
+ }
57
+ ];
58
+ name: "batchCallFrom";
59
+ outputs: [
60
+ {
61
+ internalType: "bytes[]";
62
+ name: "returnDatas";
63
+ type: "bytes[]";
64
+ }
65
+ ];
66
+ stateMutability: "nonpayable";
67
+ type: "function";
68
+ }
69
+ ];
70
+ export default abi;