@latticexyz/world-modules 2.0.0-main-c07fa021 → 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.
- package/out/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/Callbacks.sol/Callbacks.json +45 -45
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +203 -203
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +83 -83
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +64 -64
- package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json +69 -0
- package/out/IBatchCallSystem.sol/IBatchCallSystem.abi.json.d.ts +70 -0
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +534 -0
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +60 -60
- package/out/IModule.sol/IModule.json +76 -76
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +27 -27
- package/out/ISystemHook.sol/ISystemHook.json +82 -82
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +67 -67
- package/out/IWorldErrors.sol/IWorldErrors.json +136 -136
- package/out/IWorldKernel.sol/IWorldCall.json +149 -149
- package/out/IWorldKernel.sol/IWorldKernel.json +149 -149
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +149 -149
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +175 -175
- package/out/KeyEncoding.sol/KeyEncoding.json +80 -80
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
- package/out/KeysInTableModule.sol/KeysInTableModule.json +534 -534
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +996 -996
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +423 -423
- package/out/Mixed.sol/Mixed.json +66 -66
- package/out/Module.sol/Module.json +73 -73
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +276 -276
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +300 -300
- package/out/StoreHook.sol/StoreHook.json +358 -358
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +18 -18
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +107 -107
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +324 -324
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +81 -81
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
- package/out/Vector2.sol/Vector2.json +52 -52
- package/out/WorldContext.sol/WorldContextConsumer.json +28 -28
- package/out/WorldContext.sol/WorldContextProvider.json +28 -28
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
- package/out/constants.sol/constants.json +85 -85
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json +51 -15
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.abi.json.d.ts +51 -15
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +244 -171
- package/out/interfaces/IERC165.sol/IERC165.json +27 -27
- package/out/interfaces/IWorldKernel.sol/IWorldCall.json +151 -151
- package/out/interfaces/IWorldKernel.sol/IWorldKernel.json +151 -151
- package/out/interfaces/IWorldKernel.sol/IWorldModuleInstallation.json +151 -151
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1332 -1332
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
- package/out/src/IStore.sol/IStore.json +886 -886
- package/out/src/IStore.sol/IStoreData.json +886 -886
- package/out/src/IStore.sol/IStoreRead.json +886 -886
- package/out/src/IStore.sol/IStoreRegistration.json +886 -886
- package/out/src/IStore.sol/IStoreWrite.json +886 -886
- package/out/src/Memory.sol/Memory.json +89 -89
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +787 -787
- package/out/src/Schema.sol/SchemaLib.json +787 -787
- package/out/src/Slice.sol/SliceInstance.json +429 -429
- package/out/src/Slice.sol/SliceLib.json +429 -429
- package/out/src/StoreCore.sol/StoreCore.json +4461 -4461
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4461 -4461
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
- package/out/src/WorldContext.sol/WorldContextConsumer.json +353 -353
- package/out/src/WorldContext.sol/WorldContextProvider.json +353 -353
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
- package/out/types.sol/types.json +131 -23
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
- package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json +0 -33
- package/out/ICallBatchSystem.sol/ICallBatchSystem.abi.json.d.ts +0 -34
- 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":
|
3049
|
+
"id": 49456,
|
3050
3050
|
"exportedSymbols": {
|
3051
3051
|
"IBaseWorld": [
|
3052
|
-
|
3052
|
+
49455
|
3053
3053
|
],
|
3054
3054
|
"IStore": [
|
3055
|
-
|
3055
|
+
35703
|
3056
3056
|
],
|
3057
3057
|
"IWorldKernel": [
|
3058
|
-
|
3058
|
+
49382
|
3059
3059
|
]
|
3060
3060
|
},
|
3061
3061
|
"nodeType": "SourceUnit",
|
3062
3062
|
"src": "32:386:111",
|
3063
3063
|
"nodes": [
|
3064
3064
|
{
|
3065
|
-
"id":
|
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":
|
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":
|
3085
|
-
"sourceUnit":
|
3084
|
+
"scope": 49456,
|
3085
|
+
"sourceUnit": 35704,
|
3086
3086
|
"symbolAliases": [
|
3087
3087
|
{
|
3088
3088
|
"foreign": {
|
3089
|
-
"id":
|
3089
|
+
"id": 49446,
|
3090
3090
|
"name": "IStore",
|
3091
3091
|
"nodeType": "Identifier",
|
3092
3092
|
"overloadedDeclarations": [],
|
3093
|
-
"referencedDeclaration":
|
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":
|
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":
|
3111
|
-
"sourceUnit":
|
3110
|
+
"scope": 49456,
|
3111
|
+
"sourceUnit": 49383,
|
3112
3112
|
"symbolAliases": [
|
3113
3113
|
{
|
3114
3114
|
"foreign": {
|
3115
|
-
"id":
|
3115
|
+
"id": 49448,
|
3116
3116
|
"name": "IWorldKernel",
|
3117
3117
|
"nodeType": "Identifier",
|
3118
3118
|
"overloadedDeclarations": [],
|
3119
|
-
"referencedDeclaration":
|
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":
|
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":
|
3137
|
+
"id": 49451,
|
3138
3138
|
"name": "IStore",
|
3139
3139
|
"nameLocations": [
|
3140
3140
|
"392:6:111"
|
3141
3141
|
],
|
3142
3142
|
"nodeType": "IdentifierPath",
|
3143
|
-
"referencedDeclaration":
|
3143
|
+
"referencedDeclaration": 35703,
|
3144
3144
|
"src": "392:6:111"
|
3145
3145
|
},
|
3146
|
-
"id":
|
3146
|
+
"id": 49452,
|
3147
3147
|
"nodeType": "InheritanceSpecifier",
|
3148
3148
|
"src": "392:6:111"
|
3149
3149
|
},
|
3150
3150
|
{
|
3151
3151
|
"baseName": {
|
3152
|
-
"id":
|
3152
|
+
"id": 49453,
|
3153
3153
|
"name": "IWorldKernel",
|
3154
3154
|
"nameLocations": [
|
3155
3155
|
"400:12:111"
|
3156
3156
|
],
|
3157
3157
|
"nodeType": "IdentifierPath",
|
3158
|
-
"referencedDeclaration":
|
3158
|
+
"referencedDeclaration": 49382,
|
3159
3159
|
"src": "400:12:111"
|
3160
3160
|
},
|
3161
|
-
"id":
|
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":
|
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
|
-
|
3178
|
-
|
3179
|
-
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3185
|
-
|
3186
|
-
|
3187
|
-
|
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":
|
3191
|
+
"scope": 49456,
|
3192
3192
|
"usedErrors": [
|
3193
|
-
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3205
|
-
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
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
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
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;
|