@latticexyz/world-modules 2.0.2-main-2d2ebaae → 2.0.2-main-e86bd14d

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 (149) hide show
  1. package/dist/mud.config.d.ts +32 -0
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessControlLib.sol/AccessControlLib.json +1 -1
  5. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  6. package/out/AddressArray.sol/AddressArray.json +1 -1
  7. package/out/Allowances.sol/Allowances.json +1 -1
  8. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  9. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  10. package/out/Balances.sol/Balances.json +1 -1
  11. package/out/Base.sol/CommonBase.json +1 -1
  12. package/out/Base.sol/ScriptBase.json +1 -1
  13. package/out/Base.sol/TestBase.json +1 -1
  14. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  15. package/out/Bool.sol/Bool.json +1 -1
  16. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  17. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  18. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  19. package/out/DelegationWithSignatureModule.t.sol/Unstable_DelegationWithSignatureModuleTest.abi.json +541 -0
  20. package/out/DelegationWithSignatureModule.t.sol/Unstable_DelegationWithSignatureModuleTest.abi.json.d.ts +541 -0
  21. package/out/DelegationWithSignatureModule.t.sol/Unstable_DelegationWithSignatureModuleTest.json +1 -0
  22. package/out/ECDSA.sol/ECDSA.abi.json +29 -0
  23. package/out/ECDSA.sol/ECDSA.abi.json.d.ts +29 -0
  24. package/out/ECDSA.sol/ECDSA.json +1 -0
  25. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  26. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  27. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  28. package/out/ERC20Module.sol/ERC20ModuleRegistrationLibrary.json +1 -1
  29. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  30. package/out/ERC20System.sol/ERC20System.json +1 -1
  31. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  32. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  33. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  34. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  35. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  36. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  37. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  38. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  39. package/out/ERC721Module.sol/ERC721ModuleRegistrationLibrary.json +1 -1
  40. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  41. package/out/ERC721System.sol/ERC721System.json +1 -1
  42. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  43. package/out/GasReporter.sol/GasReporter.json +1 -1
  44. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  45. package/out/IERC20.sol/IERC20.json +1 -1
  46. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  47. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  48. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  49. package/out/IERC20System.sol/IERC20System.json +1 -1
  50. package/out/IERC721.sol/IERC721.json +1 -1
  51. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  52. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  53. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  54. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  55. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  56. package/out/IMulticall3.sol/IMulticall3.json +1 -1
  57. package/out/IPuppetFactorySystem.sol/IPuppetFactorySystem.json +1 -1
  58. package/out/IUnstable_DelegationWithSignatureSystem.sol/IUnstable_DelegationWithSignatureSystem.abi.json +46 -0
  59. package/out/IUnstable_DelegationWithSignatureSystem.sol/IUnstable_DelegationWithSignatureSystem.abi.json.d.ts +46 -0
  60. package/out/IUnstable_DelegationWithSignatureSystem.sol/IUnstable_DelegationWithSignatureSystem.json +1 -0
  61. package/out/InitModule.sol/InitModule.json +1 -1
  62. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  63. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  64. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  65. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  66. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  67. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  68. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  69. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  70. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  71. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  72. package/out/Owners.sol/Owners.json +1 -1
  73. package/out/Puppet.sol/Puppet.json +1 -1
  74. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  75. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  76. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  77. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  78. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  79. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  80. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  81. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  82. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  83. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  84. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  85. package/out/StdAssertions.sol/StdAssertions.json +1 -1
  86. package/out/StdChains.sol/StdChains.json +1 -1
  87. package/out/StdCheats.sol/StdCheats.json +1 -1
  88. package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
  89. package/out/StdError.sol/stdError.json +1 -1
  90. package/out/StdInvariant.sol/StdInvariant.json +1 -1
  91. package/out/StdJson.sol/stdJson.json +1 -1
  92. package/out/StdMath.sol/stdMath.json +1 -1
  93. package/out/StdStorage.sol/stdStorage.json +1 -1
  94. package/out/StdStorage.sol/stdStorageSafe.json +1 -1
  95. package/out/StdStyle.sol/StdStyle.json +1 -1
  96. package/out/StdUtils.sol/StdUtils.json +1 -1
  97. package/out/StoreRead.sol/StoreRead.json +1 -1
  98. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  99. package/out/System.sol/System.json +1 -1
  100. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  101. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  102. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  103. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  104. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  105. package/out/Test.sol/Test.json +1 -1
  106. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  107. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  108. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  109. package/out/TokenURI.sol/TokenURI.json +1 -1
  110. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  111. package/out/TwoFields.sol/TwoFields.json +1 -1
  112. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  113. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  114. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  115. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  116. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  117. package/out/Unstable_DelegationWithSignatureModule.sol/Unstable_DelegationWithSignatureModule.abi.json +436 -0
  118. package/out/Unstable_DelegationWithSignatureModule.sol/Unstable_DelegationWithSignatureModule.abi.json.d.ts +436 -0
  119. package/out/Unstable_DelegationWithSignatureModule.sol/Unstable_DelegationWithSignatureModule.json +1 -0
  120. package/out/Unstable_DelegationWithSignatureSystem.sol/Unstable_DelegationWithSignatureSystem.abi.json +231 -0
  121. package/out/Unstable_DelegationWithSignatureSystem.sol/Unstable_DelegationWithSignatureSystem.abi.json.d.ts +231 -0
  122. package/out/Unstable_DelegationWithSignatureSystem.sol/Unstable_DelegationWithSignatureSystem.json +1 -0
  123. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  124. package/out/UserDelegationNonces.sol/UserDelegationNonces.abi.json +1 -0
  125. package/out/UserDelegationNonces.sol/UserDelegationNonces.json +1 -0
  126. package/out/Vm.sol/Vm.json +1 -1
  127. package/out/Vm.sol/VmSafe.json +1 -1
  128. package/out/World.sol/World.json +1 -1
  129. package/out/World.t.sol/EchoSystemHook.json +1 -1
  130. package/out/World.t.sol/IWorldTestSystem.json +1 -1
  131. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  132. package/out/World.t.sol/RevertSystemHook.json +1 -1
  133. package/out/World.t.sol/WorldTest.json +1 -1
  134. package/out/World.t.sol/WorldTestSystem.json +1 -1
  135. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  136. package/out/console.sol/console.json +1 -1
  137. package/out/console2.sol/console2.json +1 -1
  138. package/out/query.t.sol/QueryTest.json +1 -1
  139. package/out/safeconsole.sol/safeconsole.json +1 -1
  140. package/out/test.sol/DSTest.json +1 -1
  141. package/package.json +8 -8
  142. package/src/index.sol +1 -0
  143. package/src/interfaces/IUnstable_DelegationWithSignatureSystem.sol +23 -0
  144. package/src/modules/delegation/ECDSA.sol +174 -0
  145. package/src/modules/delegation/Unstable_DelegationWithSignatureModule.sol +49 -0
  146. package/src/modules/delegation/Unstable_DelegationWithSignatureSystem.sol +47 -0
  147. package/src/modules/delegation/constants.sol +10 -0
  148. package/src/modules/delegation/getSignedMessageHash.sol +44 -0
  149. package/src/modules/delegation/tables/UserDelegationNonces.sol +199 -0
@@ -0,0 +1,231 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "_msgSender",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "sender",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "_msgValue",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "value",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "pure"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "_world",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "registerDelegationWithSignature",
44
+ "inputs": [
45
+ {
46
+ "name": "delegatee",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "delegationControlId",
52
+ "type": "bytes32",
53
+ "internalType": "ResourceId"
54
+ },
55
+ {
56
+ "name": "initCallData",
57
+ "type": "bytes",
58
+ "internalType": "bytes"
59
+ },
60
+ {
61
+ "name": "delegator",
62
+ "type": "address",
63
+ "internalType": "address"
64
+ },
65
+ {
66
+ "name": "signature",
67
+ "type": "bytes",
68
+ "internalType": "bytes"
69
+ }
70
+ ],
71
+ "outputs": [],
72
+ "stateMutability": "nonpayable"
73
+ },
74
+ {
75
+ "type": "function",
76
+ "name": "supportsInterface",
77
+ "inputs": [
78
+ {
79
+ "name": "interfaceId",
80
+ "type": "bytes4",
81
+ "internalType": "bytes4"
82
+ }
83
+ ],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "bool",
88
+ "internalType": "bool"
89
+ }
90
+ ],
91
+ "stateMutability": "pure"
92
+ },
93
+ {
94
+ "type": "event",
95
+ "name": "Store_SpliceStaticData",
96
+ "inputs": [
97
+ {
98
+ "name": "tableId",
99
+ "type": "bytes32",
100
+ "indexed": true,
101
+ "internalType": "ResourceId"
102
+ },
103
+ {
104
+ "name": "keyTuple",
105
+ "type": "bytes32[]",
106
+ "indexed": false,
107
+ "internalType": "bytes32[]"
108
+ },
109
+ {
110
+ "name": "start",
111
+ "type": "uint48",
112
+ "indexed": false,
113
+ "internalType": "uint48"
114
+ },
115
+ {
116
+ "name": "data",
117
+ "type": "bytes",
118
+ "indexed": false,
119
+ "internalType": "bytes"
120
+ }
121
+ ],
122
+ "anonymous": false
123
+ },
124
+ {
125
+ "type": "error",
126
+ "name": "ECDSAInvalidSignature",
127
+ "inputs": []
128
+ },
129
+ {
130
+ "type": "error",
131
+ "name": "ECDSAInvalidSignatureLength",
132
+ "inputs": [
133
+ {
134
+ "name": "length",
135
+ "type": "uint256",
136
+ "internalType": "uint256"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "type": "error",
142
+ "name": "ECDSAInvalidSignatureS",
143
+ "inputs": [
144
+ {
145
+ "name": "s",
146
+ "type": "bytes32",
147
+ "internalType": "bytes32"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "error",
153
+ "name": "InvalidSignature",
154
+ "inputs": [
155
+ {
156
+ "name": "signer",
157
+ "type": "address",
158
+ "internalType": "address"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "type": "error",
164
+ "name": "Slice_OutOfBounds",
165
+ "inputs": [
166
+ {
167
+ "name": "data",
168
+ "type": "bytes",
169
+ "internalType": "bytes"
170
+ },
171
+ {
172
+ "name": "start",
173
+ "type": "uint256",
174
+ "internalType": "uint256"
175
+ },
176
+ {
177
+ "name": "end",
178
+ "type": "uint256",
179
+ "internalType": "uint256"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "type": "error",
185
+ "name": "World_AccessDenied",
186
+ "inputs": [
187
+ {
188
+ "name": "resource",
189
+ "type": "string",
190
+ "internalType": "string"
191
+ },
192
+ {
193
+ "name": "caller",
194
+ "type": "address",
195
+ "internalType": "address"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "type": "error",
201
+ "name": "World_InterfaceNotSupported",
202
+ "inputs": [
203
+ {
204
+ "name": "contractAddress",
205
+ "type": "address",
206
+ "internalType": "address"
207
+ },
208
+ {
209
+ "name": "interfaceId",
210
+ "type": "bytes4",
211
+ "internalType": "bytes4"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "type": "error",
217
+ "name": "World_ResourceNotFound",
218
+ "inputs": [
219
+ {
220
+ "name": "resourceId",
221
+ "type": "bytes32",
222
+ "internalType": "ResourceId"
223
+ },
224
+ {
225
+ "name": "resourceIdString",
226
+ "type": "string",
227
+ "internalType": "string"
228
+ }
229
+ ]
230
+ }
231
+ ]
@@ -0,0 +1,231 @@
1
+ declare const abi: [
2
+ {
3
+ "type": "function",
4
+ "name": "_msgSender",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "sender",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "_msgValue",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "value",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "pure"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "_world",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "registerDelegationWithSignature",
44
+ "inputs": [
45
+ {
46
+ "name": "delegatee",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "delegationControlId",
52
+ "type": "bytes32",
53
+ "internalType": "ResourceId"
54
+ },
55
+ {
56
+ "name": "initCallData",
57
+ "type": "bytes",
58
+ "internalType": "bytes"
59
+ },
60
+ {
61
+ "name": "delegator",
62
+ "type": "address",
63
+ "internalType": "address"
64
+ },
65
+ {
66
+ "name": "signature",
67
+ "type": "bytes",
68
+ "internalType": "bytes"
69
+ }
70
+ ],
71
+ "outputs": [],
72
+ "stateMutability": "nonpayable"
73
+ },
74
+ {
75
+ "type": "function",
76
+ "name": "supportsInterface",
77
+ "inputs": [
78
+ {
79
+ "name": "interfaceId",
80
+ "type": "bytes4",
81
+ "internalType": "bytes4"
82
+ }
83
+ ],
84
+ "outputs": [
85
+ {
86
+ "name": "",
87
+ "type": "bool",
88
+ "internalType": "bool"
89
+ }
90
+ ],
91
+ "stateMutability": "pure"
92
+ },
93
+ {
94
+ "type": "event",
95
+ "name": "Store_SpliceStaticData",
96
+ "inputs": [
97
+ {
98
+ "name": "tableId",
99
+ "type": "bytes32",
100
+ "indexed": true,
101
+ "internalType": "ResourceId"
102
+ },
103
+ {
104
+ "name": "keyTuple",
105
+ "type": "bytes32[]",
106
+ "indexed": false,
107
+ "internalType": "bytes32[]"
108
+ },
109
+ {
110
+ "name": "start",
111
+ "type": "uint48",
112
+ "indexed": false,
113
+ "internalType": "uint48"
114
+ },
115
+ {
116
+ "name": "data",
117
+ "type": "bytes",
118
+ "indexed": false,
119
+ "internalType": "bytes"
120
+ }
121
+ ],
122
+ "anonymous": false
123
+ },
124
+ {
125
+ "type": "error",
126
+ "name": "ECDSAInvalidSignature",
127
+ "inputs": []
128
+ },
129
+ {
130
+ "type": "error",
131
+ "name": "ECDSAInvalidSignatureLength",
132
+ "inputs": [
133
+ {
134
+ "name": "length",
135
+ "type": "uint256",
136
+ "internalType": "uint256"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "type": "error",
142
+ "name": "ECDSAInvalidSignatureS",
143
+ "inputs": [
144
+ {
145
+ "name": "s",
146
+ "type": "bytes32",
147
+ "internalType": "bytes32"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "error",
153
+ "name": "InvalidSignature",
154
+ "inputs": [
155
+ {
156
+ "name": "signer",
157
+ "type": "address",
158
+ "internalType": "address"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "type": "error",
164
+ "name": "Slice_OutOfBounds",
165
+ "inputs": [
166
+ {
167
+ "name": "data",
168
+ "type": "bytes",
169
+ "internalType": "bytes"
170
+ },
171
+ {
172
+ "name": "start",
173
+ "type": "uint256",
174
+ "internalType": "uint256"
175
+ },
176
+ {
177
+ "name": "end",
178
+ "type": "uint256",
179
+ "internalType": "uint256"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "type": "error",
185
+ "name": "World_AccessDenied",
186
+ "inputs": [
187
+ {
188
+ "name": "resource",
189
+ "type": "string",
190
+ "internalType": "string"
191
+ },
192
+ {
193
+ "name": "caller",
194
+ "type": "address",
195
+ "internalType": "address"
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "type": "error",
201
+ "name": "World_InterfaceNotSupported",
202
+ "inputs": [
203
+ {
204
+ "name": "contractAddress",
205
+ "type": "address",
206
+ "internalType": "address"
207
+ },
208
+ {
209
+ "name": "interfaceId",
210
+ "type": "bytes4",
211
+ "internalType": "bytes4"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "type": "error",
217
+ "name": "World_ResourceNotFound",
218
+ "inputs": [
219
+ {
220
+ "name": "resourceId",
221
+ "type": "bytes32",
222
+ "internalType": "ResourceId"
223
+ },
224
+ {
225
+ "name": "resourceIdString",
226
+ "type": "string",
227
+ "internalType": "string"
228
+ }
229
+ ]
230
+ }
231
+ ]; export default abi;