@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11
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/AccessControl.sol/AccessControl.abi.json +1 -0
- package/out/AccessControl.sol/AccessControl.json +1651 -0
- package/out/ArrayLib.sol/ArrayLib.json +477 -477
- package/out/Balances.sol/Balances.abi.json +1 -0
- package/out/Balances.sol/Balances.json +13002 -0
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
- package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
- package/out/DelegationControl.sol/DelegationControl.json +139 -139
- package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
- package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
- package/out/ISystemHook.sol/ISystemHook.json +16 -16
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +14 -14
- package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
- package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
- package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
- package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
- package/out/Module.sol/Module.json +119 -119
- package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
- package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
- package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
- package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
- 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 +729 -729
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
- package/out/StoreHook.sol/StoreHook.json +639 -639
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +32 -32
- package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
- package/out/SystemHooks.sol/SystemHooks.json +32460 -0
- package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
- package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
- package/out/Systems.sol/Systems.abi.json +1 -0
- package/out/Systems.sol/Systems.json +18508 -0
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
- package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
- package/out/constants.sol/constants.json +477 -194
- package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
- package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
- package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
- package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
- package/out/hasKey.sol/hasKey.json +215 -215
- package/out/index.sol/index.json +73 -73
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
- package/out/query.sol/query.json +1892 -1892
- package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
- package/out/src/Bytes.sol/Bytes.json +3766 -3766
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
- package/out/src/Hook.sol/HookInstance.abi.json +1 -0
- package/out/src/Hook.sol/HookInstance.json +2823 -0
- package/out/src/Hook.sol/HookLib.abi.json +1 -0
- package/out/src/Hook.sol/HookLib.json +2823 -0
- package/out/src/IStore.sol/IStore.json +73 -73
- package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
- package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
- package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
- package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
- package/out/src/Memory.sol/Memory.json +242 -242
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
- package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
- package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
- package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
- package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
- package/out/src/Schema.sol/SchemaLib.json +1351 -1351
- package/out/src/Slice.sol/SliceInstance.json +802 -802
- package/out/src/Slice.sol/SliceLib.json +802 -802
- package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
- package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
- package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
- package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
- package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
- package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
- package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
- package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
- package/out/tables/Tables.sol/Tables.json +12189 -12189
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
- package/out/types.sol/types.json +71 -71
- package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
- package/package.json +8 -8
- package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
- package/src/utils/SystemSwitch.sol +82 -0
@@ -0,0 +1,189 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "string",
|
6
|
+
"name": "resource",
|
7
|
+
"type": "string"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"internalType": "address",
|
11
|
+
"name": "caller",
|
12
|
+
"type": "address"
|
13
|
+
}
|
14
|
+
],
|
15
|
+
"name": "World_AccessDenied",
|
16
|
+
"type": "error"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"inputs": [],
|
20
|
+
"name": "World_AlreadyInitialized",
|
21
|
+
"type": "error"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"inputs": [
|
25
|
+
{
|
26
|
+
"internalType": "bytes4",
|
27
|
+
"name": "functionSelector",
|
28
|
+
"type": "bytes4"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"name": "World_CallbackNotAllowed",
|
32
|
+
"type": "error"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"inputs": [
|
36
|
+
{
|
37
|
+
"internalType": "address",
|
38
|
+
"name": "delegator",
|
39
|
+
"type": "address"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"internalType": "address",
|
43
|
+
"name": "delegatee",
|
44
|
+
"type": "address"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"name": "World_DelegationNotFound",
|
48
|
+
"type": "error"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"inputs": [
|
52
|
+
{
|
53
|
+
"internalType": "bytes4",
|
54
|
+
"name": "functionSelector",
|
55
|
+
"type": "bytes4"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
"name": "World_FunctionSelectorAlreadyExists",
|
59
|
+
"type": "error"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"inputs": [
|
63
|
+
{
|
64
|
+
"internalType": "bytes4",
|
65
|
+
"name": "functionSelector",
|
66
|
+
"type": "bytes4"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"name": "World_FunctionSelectorNotFound",
|
70
|
+
"type": "error"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"inputs": [
|
74
|
+
{
|
75
|
+
"internalType": "uint256",
|
76
|
+
"name": "balance",
|
77
|
+
"type": "uint256"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"internalType": "uint256",
|
81
|
+
"name": "amount",
|
82
|
+
"type": "uint256"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"name": "World_InsufficientBalance",
|
86
|
+
"type": "error"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"inputs": [
|
90
|
+
{
|
91
|
+
"internalType": "address",
|
92
|
+
"name": "contractAddress",
|
93
|
+
"type": "address"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"internalType": "bytes4",
|
97
|
+
"name": "interfaceId",
|
98
|
+
"type": "bytes4"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"name": "World_InterfaceNotSupported",
|
102
|
+
"type": "error"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"inputs": [
|
106
|
+
{
|
107
|
+
"internalType": "ResourceId",
|
108
|
+
"name": "resourceId",
|
109
|
+
"type": "bytes32"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"internalType": "string",
|
113
|
+
"name": "resourceIdString",
|
114
|
+
"type": "string"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"name": "World_InvalidResourceId",
|
118
|
+
"type": "error"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"inputs": [
|
122
|
+
{
|
123
|
+
"internalType": "bytes2",
|
124
|
+
"name": "expected",
|
125
|
+
"type": "bytes2"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"internalType": "ResourceId",
|
129
|
+
"name": "resourceId",
|
130
|
+
"type": "bytes32"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"internalType": "string",
|
134
|
+
"name": "resourceIdString",
|
135
|
+
"type": "string"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "World_InvalidResourceType",
|
139
|
+
"type": "error"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"inputs": [
|
143
|
+
{
|
144
|
+
"internalType": "ResourceId",
|
145
|
+
"name": "resourceId",
|
146
|
+
"type": "bytes32"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "string",
|
150
|
+
"name": "resourceIdString",
|
151
|
+
"type": "string"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "World_ResourceAlreadyExists",
|
155
|
+
"type": "error"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"inputs": [
|
159
|
+
{
|
160
|
+
"internalType": "ResourceId",
|
161
|
+
"name": "resourceId",
|
162
|
+
"type": "bytes32"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"internalType": "string",
|
166
|
+
"name": "resourceIdString",
|
167
|
+
"type": "string"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"name": "World_ResourceNotFound",
|
171
|
+
"type": "error"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"inputs": [
|
175
|
+
{
|
176
|
+
"internalType": "address",
|
177
|
+
"name": "system",
|
178
|
+
"type": "address"
|
179
|
+
}
|
180
|
+
],
|
181
|
+
"name": "World_SystemAlreadyExists",
|
182
|
+
"type": "error"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"inputs": [],
|
186
|
+
"name": "World_UnlimitedDelegationNotAllowed",
|
187
|
+
"type": "error"
|
188
|
+
}
|
189
|
+
]
|
@@ -0,0 +1,190 @@
|
|
1
|
+
declare const abi: [
|
2
|
+
{
|
3
|
+
inputs: [
|
4
|
+
{
|
5
|
+
internalType: "string";
|
6
|
+
name: "resource";
|
7
|
+
type: "string";
|
8
|
+
},
|
9
|
+
{
|
10
|
+
internalType: "address";
|
11
|
+
name: "caller";
|
12
|
+
type: "address";
|
13
|
+
}
|
14
|
+
];
|
15
|
+
name: "World_AccessDenied";
|
16
|
+
type: "error";
|
17
|
+
},
|
18
|
+
{
|
19
|
+
inputs: [];
|
20
|
+
name: "World_AlreadyInitialized";
|
21
|
+
type: "error";
|
22
|
+
},
|
23
|
+
{
|
24
|
+
inputs: [
|
25
|
+
{
|
26
|
+
internalType: "bytes4";
|
27
|
+
name: "functionSelector";
|
28
|
+
type: "bytes4";
|
29
|
+
}
|
30
|
+
];
|
31
|
+
name: "World_CallbackNotAllowed";
|
32
|
+
type: "error";
|
33
|
+
},
|
34
|
+
{
|
35
|
+
inputs: [
|
36
|
+
{
|
37
|
+
internalType: "address";
|
38
|
+
name: "delegator";
|
39
|
+
type: "address";
|
40
|
+
},
|
41
|
+
{
|
42
|
+
internalType: "address";
|
43
|
+
name: "delegatee";
|
44
|
+
type: "address";
|
45
|
+
}
|
46
|
+
];
|
47
|
+
name: "World_DelegationNotFound";
|
48
|
+
type: "error";
|
49
|
+
},
|
50
|
+
{
|
51
|
+
inputs: [
|
52
|
+
{
|
53
|
+
internalType: "bytes4";
|
54
|
+
name: "functionSelector";
|
55
|
+
type: "bytes4";
|
56
|
+
}
|
57
|
+
];
|
58
|
+
name: "World_FunctionSelectorAlreadyExists";
|
59
|
+
type: "error";
|
60
|
+
},
|
61
|
+
{
|
62
|
+
inputs: [
|
63
|
+
{
|
64
|
+
internalType: "bytes4";
|
65
|
+
name: "functionSelector";
|
66
|
+
type: "bytes4";
|
67
|
+
}
|
68
|
+
];
|
69
|
+
name: "World_FunctionSelectorNotFound";
|
70
|
+
type: "error";
|
71
|
+
},
|
72
|
+
{
|
73
|
+
inputs: [
|
74
|
+
{
|
75
|
+
internalType: "uint256";
|
76
|
+
name: "balance";
|
77
|
+
type: "uint256";
|
78
|
+
},
|
79
|
+
{
|
80
|
+
internalType: "uint256";
|
81
|
+
name: "amount";
|
82
|
+
type: "uint256";
|
83
|
+
}
|
84
|
+
];
|
85
|
+
name: "World_InsufficientBalance";
|
86
|
+
type: "error";
|
87
|
+
},
|
88
|
+
{
|
89
|
+
inputs: [
|
90
|
+
{
|
91
|
+
internalType: "address";
|
92
|
+
name: "contractAddress";
|
93
|
+
type: "address";
|
94
|
+
},
|
95
|
+
{
|
96
|
+
internalType: "bytes4";
|
97
|
+
name: "interfaceId";
|
98
|
+
type: "bytes4";
|
99
|
+
}
|
100
|
+
];
|
101
|
+
name: "World_InterfaceNotSupported";
|
102
|
+
type: "error";
|
103
|
+
},
|
104
|
+
{
|
105
|
+
inputs: [
|
106
|
+
{
|
107
|
+
internalType: "ResourceId";
|
108
|
+
name: "resourceId";
|
109
|
+
type: "bytes32";
|
110
|
+
},
|
111
|
+
{
|
112
|
+
internalType: "string";
|
113
|
+
name: "resourceIdString";
|
114
|
+
type: "string";
|
115
|
+
}
|
116
|
+
];
|
117
|
+
name: "World_InvalidResourceId";
|
118
|
+
type: "error";
|
119
|
+
},
|
120
|
+
{
|
121
|
+
inputs: [
|
122
|
+
{
|
123
|
+
internalType: "bytes2";
|
124
|
+
name: "expected";
|
125
|
+
type: "bytes2";
|
126
|
+
},
|
127
|
+
{
|
128
|
+
internalType: "ResourceId";
|
129
|
+
name: "resourceId";
|
130
|
+
type: "bytes32";
|
131
|
+
},
|
132
|
+
{
|
133
|
+
internalType: "string";
|
134
|
+
name: "resourceIdString";
|
135
|
+
type: "string";
|
136
|
+
}
|
137
|
+
];
|
138
|
+
name: "World_InvalidResourceType";
|
139
|
+
type: "error";
|
140
|
+
},
|
141
|
+
{
|
142
|
+
inputs: [
|
143
|
+
{
|
144
|
+
internalType: "ResourceId";
|
145
|
+
name: "resourceId";
|
146
|
+
type: "bytes32";
|
147
|
+
},
|
148
|
+
{
|
149
|
+
internalType: "string";
|
150
|
+
name: "resourceIdString";
|
151
|
+
type: "string";
|
152
|
+
}
|
153
|
+
];
|
154
|
+
name: "World_ResourceAlreadyExists";
|
155
|
+
type: "error";
|
156
|
+
},
|
157
|
+
{
|
158
|
+
inputs: [
|
159
|
+
{
|
160
|
+
internalType: "ResourceId";
|
161
|
+
name: "resourceId";
|
162
|
+
type: "bytes32";
|
163
|
+
},
|
164
|
+
{
|
165
|
+
internalType: "string";
|
166
|
+
name: "resourceIdString";
|
167
|
+
type: "string";
|
168
|
+
}
|
169
|
+
];
|
170
|
+
name: "World_ResourceNotFound";
|
171
|
+
type: "error";
|
172
|
+
},
|
173
|
+
{
|
174
|
+
inputs: [
|
175
|
+
{
|
176
|
+
internalType: "address";
|
177
|
+
name: "system";
|
178
|
+
type: "address";
|
179
|
+
}
|
180
|
+
];
|
181
|
+
name: "World_SystemAlreadyExists";
|
182
|
+
type: "error";
|
183
|
+
},
|
184
|
+
{
|
185
|
+
inputs: [];
|
186
|
+
name: "World_UnlimitedDelegationNotAllowed";
|
187
|
+
type: "error";
|
188
|
+
}
|
189
|
+
];
|
190
|
+
export default abi;
|