@latticexyz/world-modules 2.2.17-7c3df691b30f031202ab184345cbb76bb113c2cd → 2.2.17-86f455c0a09d5d8af64d030669ebf30ffa71420b

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 (130) hide show
  1. package/dist/mud.config.d.ts +57 -1
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  5. package/out/Allowances.sol/Allowances.json +1 -1
  6. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  7. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  8. package/out/Balances.sol/Balances.json +1 -1
  9. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  10. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json +541 -0
  11. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json.d.ts +543 -0
  12. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.json +1 -0
  13. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.abi.json +1 -0
  14. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +1 -0
  15. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  16. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  17. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  18. package/out/ECDSA.sol/ECDSA.abi.json +29 -0
  19. package/out/ECDSA.sol/ECDSA.abi.json.d.ts +31 -0
  20. package/out/ECDSA.sol/ECDSA.json +1 -0
  21. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  22. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  23. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  24. package/out/ERC20Module.sol/ERC20ModuleRegistrationLib.json +1 -1
  25. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  26. package/out/ERC20System.sol/ERC20System.json +1 -1
  27. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  28. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  29. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  30. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  31. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  32. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  33. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  34. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  35. package/out/ERC721Module.sol/ERC721ModuleRegistrationLib.json +1 -1
  36. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  37. package/out/ERC721System.sol/ERC721System.json +1 -1
  38. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  39. package/out/GasReporter.sol/GasReporter.json +1 -1
  40. package/out/IERC1271.sol/IERC1271.abi.json +26 -0
  41. package/out/IERC1271.sol/IERC1271.abi.json.d.ts +28 -0
  42. package/out/IERC1271.sol/IERC1271.json +1 -0
  43. package/out/IERC20.sol/IERC20.json +1 -1
  44. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  45. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  46. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  47. package/out/IERC721.sol/IERC721.json +1 -1
  48. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  49. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  50. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  51. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  52. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  53. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json +7 -0
  54. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json.d.ts +9 -0
  55. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.json +1 -0
  56. package/out/InitModule.sol/InitModule.json +1 -1
  57. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  58. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  59. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  60. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  61. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  62. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  63. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  64. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  65. package/out/LibString.sol/LibString.json +1 -1
  66. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  67. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  68. package/out/Owners.sol/Owners.json +1 -1
  69. package/out/Puppet.sol/Puppet.json +1 -1
  70. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  71. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  72. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  73. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  74. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  75. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  76. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  77. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  78. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  79. package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
  80. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  81. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  82. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  83. package/out/StdError.sol/stdError.json +1 -1
  84. package/out/StoreRead.sol/StoreRead.json +1 -1
  85. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  86. package/out/System.sol/System.json +1 -1
  87. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  88. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  89. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  90. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  91. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  92. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  93. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  94. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  95. package/out/TokenURI.sol/TokenURI.json +1 -1
  96. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  97. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  98. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  99. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  100. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  101. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  102. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json +436 -0
  103. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json.d.ts +438 -0
  104. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.json +1 -0
  105. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json +183 -0
  106. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json.d.ts +185 -0
  107. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.json +1 -0
  108. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  109. package/out/World.sol/World.json +1 -1
  110. package/out/World.t.sol/EchoSystemHook.json +1 -1
  111. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  112. package/out/World.t.sol/RevertSystemHook.json +1 -1
  113. package/out/World.t.sol/WorldTest.json +1 -1
  114. package/out/World.t.sol/WorldTestSystem.json +1 -1
  115. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  116. package/out/build-info/{5adb61cced337bb5e7b3d4344c85094e.json → 168545c7409f2927f6e50ed7ce0d033c.json} +1 -1
  117. package/out/query.t.sol/QueryTest.json +1 -1
  118. package/out/test.sol/DSTest.json +1 -1
  119. package/package.json +9 -9
  120. package/src/codegen/index.sol +1 -0
  121. package/src/modules/callwithsignature/ECDSA.sol +174 -0
  122. package/src/modules/callwithsignature/IERC1271.sol +17 -0
  123. package/src/modules/callwithsignature/IUnstable_CallWithSignatureErrors.sol +9 -0
  124. package/src/modules/callwithsignature/SignatureChecker.sol +50 -0
  125. package/src/modules/callwithsignature/Unstable_CallWithSignatureModule.sol +48 -0
  126. package/src/modules/callwithsignature/Unstable_CallWithSignatureSystem.sol +36 -0
  127. package/src/modules/callwithsignature/constants.sol +10 -0
  128. package/src/modules/callwithsignature/getSignedMessageHash.sol +54 -0
  129. package/src/modules/callwithsignature/tables/CallWithSignatureNonces.sol +199 -0
  130. package/src/modules/callwithsignature/validateCallWithSignature.sol +31 -0
@@ -0,0 +1,183 @@
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": "callWithSignature",
44
+ "inputs": [
45
+ {
46
+ "name": "signer",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "systemId",
52
+ "type": "bytes32",
53
+ "internalType": "ResourceId"
54
+ },
55
+ {
56
+ "name": "callData",
57
+ "type": "bytes",
58
+ "internalType": "bytes"
59
+ },
60
+ {
61
+ "name": "signature",
62
+ "type": "bytes",
63
+ "internalType": "bytes"
64
+ }
65
+ ],
66
+ "outputs": [
67
+ {
68
+ "name": "",
69
+ "type": "bytes",
70
+ "internalType": "bytes"
71
+ }
72
+ ],
73
+ "stateMutability": "payable"
74
+ },
75
+ {
76
+ "type": "function",
77
+ "name": "supportsInterface",
78
+ "inputs": [
79
+ {
80
+ "name": "interfaceId",
81
+ "type": "bytes4",
82
+ "internalType": "bytes4"
83
+ }
84
+ ],
85
+ "outputs": [
86
+ {
87
+ "name": "",
88
+ "type": "bool",
89
+ "internalType": "bool"
90
+ }
91
+ ],
92
+ "stateMutability": "pure"
93
+ },
94
+ {
95
+ "type": "event",
96
+ "name": "Store_SpliceStaticData",
97
+ "inputs": [
98
+ {
99
+ "name": "tableId",
100
+ "type": "bytes32",
101
+ "indexed": true,
102
+ "internalType": "ResourceId"
103
+ },
104
+ {
105
+ "name": "keyTuple",
106
+ "type": "bytes32[]",
107
+ "indexed": false,
108
+ "internalType": "bytes32[]"
109
+ },
110
+ {
111
+ "name": "start",
112
+ "type": "uint48",
113
+ "indexed": false,
114
+ "internalType": "uint48"
115
+ },
116
+ {
117
+ "name": "data",
118
+ "type": "bytes",
119
+ "indexed": false,
120
+ "internalType": "bytes"
121
+ }
122
+ ],
123
+ "anonymous": false
124
+ },
125
+ {
126
+ "type": "error",
127
+ "name": "InvalidSignature",
128
+ "inputs": []
129
+ },
130
+ {
131
+ "type": "error",
132
+ "name": "Slice_OutOfBounds",
133
+ "inputs": [
134
+ {
135
+ "name": "data",
136
+ "type": "bytes",
137
+ "internalType": "bytes"
138
+ },
139
+ {
140
+ "name": "start",
141
+ "type": "uint256",
142
+ "internalType": "uint256"
143
+ },
144
+ {
145
+ "name": "end",
146
+ "type": "uint256",
147
+ "internalType": "uint256"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "error",
153
+ "name": "World_AccessDenied",
154
+ "inputs": [
155
+ {
156
+ "name": "resource",
157
+ "type": "string",
158
+ "internalType": "string"
159
+ },
160
+ {
161
+ "name": "caller",
162
+ "type": "address",
163
+ "internalType": "address"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "error",
169
+ "name": "World_ResourceNotFound",
170
+ "inputs": [
171
+ {
172
+ "name": "resourceId",
173
+ "type": "bytes32",
174
+ "internalType": "ResourceId"
175
+ },
176
+ {
177
+ "name": "resourceIdString",
178
+ "type": "string",
179
+ "internalType": "string"
180
+ }
181
+ ]
182
+ }
183
+ ]
@@ -0,0 +1,185 @@
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": "callWithSignature",
44
+ "inputs": [
45
+ {
46
+ "name": "signer",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "systemId",
52
+ "type": "bytes32",
53
+ "internalType": "ResourceId"
54
+ },
55
+ {
56
+ "name": "callData",
57
+ "type": "bytes",
58
+ "internalType": "bytes"
59
+ },
60
+ {
61
+ "name": "signature",
62
+ "type": "bytes",
63
+ "internalType": "bytes"
64
+ }
65
+ ],
66
+ "outputs": [
67
+ {
68
+ "name": "",
69
+ "type": "bytes",
70
+ "internalType": "bytes"
71
+ }
72
+ ],
73
+ "stateMutability": "payable"
74
+ },
75
+ {
76
+ "type": "function",
77
+ "name": "supportsInterface",
78
+ "inputs": [
79
+ {
80
+ "name": "interfaceId",
81
+ "type": "bytes4",
82
+ "internalType": "bytes4"
83
+ }
84
+ ],
85
+ "outputs": [
86
+ {
87
+ "name": "",
88
+ "type": "bool",
89
+ "internalType": "bool"
90
+ }
91
+ ],
92
+ "stateMutability": "pure"
93
+ },
94
+ {
95
+ "type": "event",
96
+ "name": "Store_SpliceStaticData",
97
+ "inputs": [
98
+ {
99
+ "name": "tableId",
100
+ "type": "bytes32",
101
+ "indexed": true,
102
+ "internalType": "ResourceId"
103
+ },
104
+ {
105
+ "name": "keyTuple",
106
+ "type": "bytes32[]",
107
+ "indexed": false,
108
+ "internalType": "bytes32[]"
109
+ },
110
+ {
111
+ "name": "start",
112
+ "type": "uint48",
113
+ "indexed": false,
114
+ "internalType": "uint48"
115
+ },
116
+ {
117
+ "name": "data",
118
+ "type": "bytes",
119
+ "indexed": false,
120
+ "internalType": "bytes"
121
+ }
122
+ ],
123
+ "anonymous": false
124
+ },
125
+ {
126
+ "type": "error",
127
+ "name": "InvalidSignature",
128
+ "inputs": []
129
+ },
130
+ {
131
+ "type": "error",
132
+ "name": "Slice_OutOfBounds",
133
+ "inputs": [
134
+ {
135
+ "name": "data",
136
+ "type": "bytes",
137
+ "internalType": "bytes"
138
+ },
139
+ {
140
+ "name": "start",
141
+ "type": "uint256",
142
+ "internalType": "uint256"
143
+ },
144
+ {
145
+ "name": "end",
146
+ "type": "uint256",
147
+ "internalType": "uint256"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "error",
153
+ "name": "World_AccessDenied",
154
+ "inputs": [
155
+ {
156
+ "name": "resource",
157
+ "type": "string",
158
+ "internalType": "string"
159
+ },
160
+ {
161
+ "name": "caller",
162
+ "type": "address",
163
+ "internalType": "address"
164
+ }
165
+ ]
166
+ },
167
+ {
168
+ "type": "error",
169
+ "name": "World_ResourceNotFound",
170
+ "inputs": [
171
+ {
172
+ "name": "resourceId",
173
+ "type": "bytes32",
174
+ "internalType": "ResourceId"
175
+ },
176
+ {
177
+ "name": "resourceIdString",
178
+ "type": "string",
179
+ "internalType": "string"
180
+ }
181
+ ]
182
+ }
183
+ ];
184
+
185
+ export default abi;