@latticexyz/world-module-erc20 2.2.21-041031d271b62a7f41f7c6dc0098c1c0ae222bd5 → 2.2.21-581228bd857077023efdb496a9a44fa62ff89936

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 (68) hide show
  1. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  2. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  3. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  4. package/out/Constants.sol/ERC20TableNames.json +1 -1
  5. package/out/Constants.sol/ModuleConstants.json +1 -1
  6. package/out/Constants.sol/OwnableTableNames.abi.json +1 -0
  7. package/out/Constants.sol/OwnableTableNames.json +1 -0
  8. package/out/Constants.sol/PausableTableNames.json +1 -1
  9. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json +0 -324
  10. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.abi.json.d.ts +0 -324
  11. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  12. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json +0 -324
  13. package/out/ERC20BaseTest.t.sol/ERC20Test.abi.json.d.ts +0 -324
  14. package/out/ERC20BaseTest.t.sol/ERC20Test.json +1 -1
  15. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +280 -21
  16. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +280 -21
  17. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  18. package/out/ERC20BaseTest.t.sol/TestConstants.abi.json +1 -0
  19. package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -0
  20. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +317 -8
  21. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +317 -8
  22. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  23. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json +0 -324
  24. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.abi.json.d.ts +0 -324
  25. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  26. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json +279 -25
  27. package/out/ERC20Burnable.t.sol/MockERC20Burnable.abi.json.d.ts +279 -25
  28. package/out/ERC20Burnable.t.sol/MockERC20Burnable.json +1 -1
  29. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  30. package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -0
  31. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  32. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  33. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +317 -8
  34. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +317 -8
  35. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  36. package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json → ERC20PausableBehaviorTest.abi.json} +0 -324
  37. package/out/ERC20Pausable.t.sol/{ERC20PausableTest.abi.json.d.ts → ERC20PausableBehaviorTest.abi.json.d.ts} +0 -324
  38. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -0
  39. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +279 -25
  40. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +279 -25
  41. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  42. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json +284 -50
  43. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.abi.json.d.ts +284 -50
  44. package/out/ERC20PausableBurnable.sol/ERC20PausableBurnable.json +1 -1
  45. package/out/InitModule.sol/InitModule.json +1 -1
  46. package/out/MUDERC20.sol/MUDERC20.abi.json +317 -8
  47. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +317 -8
  48. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  49. package/out/Pausable.sol/Pausable.abi.json +369 -8
  50. package/out/Pausable.sol/Pausable.abi.json.d.ts +369 -8
  51. package/out/Pausable.sol/Pausable.json +1 -1
  52. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  53. package/out/World.sol/World.json +1 -1
  54. package/out/WorldConsumer.sol/WorldConsumer.abi.json +45 -8
  55. package/out/WorldConsumer.sol/WorldConsumer.abi.json.d.ts +45 -8
  56. package/out/WorldConsumer.sol/WorldConsumer.json +1 -1
  57. package/out/build-info/{5dec426f2d87057b9b49f18296a28057.json → 575e1001b22e51590748b4ce55e7c596.json} +1 -1
  58. package/package.json +8 -8
  59. package/src/examples/ERC20PausableBurnable.sol +8 -21
  60. package/src/experimental/Constants.sol +4 -0
  61. package/src/experimental/ERC20Module.sol +9 -46
  62. package/src/experimental/ERC20Pausable.sol +0 -3
  63. package/src/experimental/MUDERC20.sol +29 -24
  64. package/src/experimental/Pausable.sol +15 -15
  65. package/out/ERC20Module.sol/ERC20ModuleLib.json +0 -1
  66. package/out/ERC20Pausable.t.sol/ERC20PausableTest.json +0 -1
  67. /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json → ERC20RegistryLib.abi.json} +0 -0
  68. /package/out/ERC20Module.sol/{ERC20ModuleLib.abi.json.d.ts → ERC20RegistryLib.abi.json.d.ts} +0 -0
@@ -478,74 +478,6 @@
478
478
  ],
479
479
  "anonymous": false
480
480
  },
481
- {
482
- "type": "event",
483
- "name": "Store_SetRecord",
484
- "inputs": [
485
- {
486
- "name": "tableId",
487
- "type": "bytes32",
488
- "indexed": true,
489
- "internalType": "ResourceId"
490
- },
491
- {
492
- "name": "keyTuple",
493
- "type": "bytes32[]",
494
- "indexed": false,
495
- "internalType": "bytes32[]"
496
- },
497
- {
498
- "name": "staticData",
499
- "type": "bytes",
500
- "indexed": false,
501
- "internalType": "bytes"
502
- },
503
- {
504
- "name": "encodedLengths",
505
- "type": "bytes32",
506
- "indexed": false,
507
- "internalType": "EncodedLengths"
508
- },
509
- {
510
- "name": "dynamicData",
511
- "type": "bytes",
512
- "indexed": false,
513
- "internalType": "bytes"
514
- }
515
- ],
516
- "anonymous": false
517
- },
518
- {
519
- "type": "event",
520
- "name": "Store_SpliceStaticData",
521
- "inputs": [
522
- {
523
- "name": "tableId",
524
- "type": "bytes32",
525
- "indexed": true,
526
- "internalType": "ResourceId"
527
- },
528
- {
529
- "name": "keyTuple",
530
- "type": "bytes32[]",
531
- "indexed": false,
532
- "internalType": "bytes32[]"
533
- },
534
- {
535
- "name": "start",
536
- "type": "uint48",
537
- "indexed": false,
538
- "internalType": "uint48"
539
- },
540
- {
541
- "name": "data",
542
- "type": "bytes",
543
- "indexed": false,
544
- "internalType": "bytes"
545
- }
546
- ],
547
- "anonymous": false
548
- },
549
481
  {
550
482
  "type": "event",
551
483
  "name": "Transfer",
@@ -1020,261 +952,5 @@
1020
952
  "internalType": "address"
1021
953
  }
1022
954
  ]
1023
- },
1024
- {
1025
- "type": "error",
1026
- "name": "FieldLayout_Empty",
1027
- "inputs": []
1028
- },
1029
- {
1030
- "type": "error",
1031
- "name": "FieldLayout_InvalidStaticDataLength",
1032
- "inputs": [
1033
- {
1034
- "name": "staticDataLength",
1035
- "type": "uint256",
1036
- "internalType": "uint256"
1037
- },
1038
- {
1039
- "name": "computedStaticDataLength",
1040
- "type": "uint256",
1041
- "internalType": "uint256"
1042
- }
1043
- ]
1044
- },
1045
- {
1046
- "type": "error",
1047
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
1048
- "inputs": [
1049
- {
1050
- "name": "index",
1051
- "type": "uint256",
1052
- "internalType": "uint256"
1053
- }
1054
- ]
1055
- },
1056
- {
1057
- "type": "error",
1058
- "name": "FieldLayout_StaticLengthIsNotZero",
1059
- "inputs": [
1060
- {
1061
- "name": "index",
1062
- "type": "uint256",
1063
- "internalType": "uint256"
1064
- }
1065
- ]
1066
- },
1067
- {
1068
- "type": "error",
1069
- "name": "FieldLayout_StaticLengthIsZero",
1070
- "inputs": [
1071
- {
1072
- "name": "index",
1073
- "type": "uint256",
1074
- "internalType": "uint256"
1075
- }
1076
- ]
1077
- },
1078
- {
1079
- "type": "error",
1080
- "name": "FieldLayout_TooManyDynamicFields",
1081
- "inputs": [
1082
- {
1083
- "name": "numFields",
1084
- "type": "uint256",
1085
- "internalType": "uint256"
1086
- },
1087
- {
1088
- "name": "maxFields",
1089
- "type": "uint256",
1090
- "internalType": "uint256"
1091
- }
1092
- ]
1093
- },
1094
- {
1095
- "type": "error",
1096
- "name": "FieldLayout_TooManyFields",
1097
- "inputs": [
1098
- {
1099
- "name": "numFields",
1100
- "type": "uint256",
1101
- "internalType": "uint256"
1102
- },
1103
- {
1104
- "name": "maxFields",
1105
- "type": "uint256",
1106
- "internalType": "uint256"
1107
- }
1108
- ]
1109
- },
1110
- {
1111
- "type": "error",
1112
- "name": "Schema_InvalidLength",
1113
- "inputs": [
1114
- {
1115
- "name": "length",
1116
- "type": "uint256",
1117
- "internalType": "uint256"
1118
- }
1119
- ]
1120
- },
1121
- {
1122
- "type": "error",
1123
- "name": "Schema_StaticTypeAfterDynamicType",
1124
- "inputs": []
1125
- },
1126
- {
1127
- "type": "error",
1128
- "name": "Slice_OutOfBounds",
1129
- "inputs": [
1130
- {
1131
- "name": "data",
1132
- "type": "bytes",
1133
- "internalType": "bytes"
1134
- },
1135
- {
1136
- "name": "start",
1137
- "type": "uint256",
1138
- "internalType": "uint256"
1139
- },
1140
- {
1141
- "name": "end",
1142
- "type": "uint256",
1143
- "internalType": "uint256"
1144
- }
1145
- ]
1146
- },
1147
- {
1148
- "type": "error",
1149
- "name": "Store_InvalidFieldNamesLength",
1150
- "inputs": [
1151
- {
1152
- "name": "expected",
1153
- "type": "uint256",
1154
- "internalType": "uint256"
1155
- },
1156
- {
1157
- "name": "received",
1158
- "type": "uint256",
1159
- "internalType": "uint256"
1160
- }
1161
- ]
1162
- },
1163
- {
1164
- "type": "error",
1165
- "name": "Store_InvalidKeyNamesLength",
1166
- "inputs": [
1167
- {
1168
- "name": "expected",
1169
- "type": "uint256",
1170
- "internalType": "uint256"
1171
- },
1172
- {
1173
- "name": "received",
1174
- "type": "uint256",
1175
- "internalType": "uint256"
1176
- }
1177
- ]
1178
- },
1179
- {
1180
- "type": "error",
1181
- "name": "Store_InvalidResourceType",
1182
- "inputs": [
1183
- {
1184
- "name": "expected",
1185
- "type": "bytes2",
1186
- "internalType": "bytes2"
1187
- },
1188
- {
1189
- "name": "resourceId",
1190
- "type": "bytes32",
1191
- "internalType": "ResourceId"
1192
- },
1193
- {
1194
- "name": "resourceIdString",
1195
- "type": "string",
1196
- "internalType": "string"
1197
- }
1198
- ]
1199
- },
1200
- {
1201
- "type": "error",
1202
- "name": "Store_InvalidStaticDataLength",
1203
- "inputs": [
1204
- {
1205
- "name": "expected",
1206
- "type": "uint256",
1207
- "internalType": "uint256"
1208
- },
1209
- {
1210
- "name": "received",
1211
- "type": "uint256",
1212
- "internalType": "uint256"
1213
- }
1214
- ]
1215
- },
1216
- {
1217
- "type": "error",
1218
- "name": "Store_InvalidValueSchemaDynamicLength",
1219
- "inputs": [
1220
- {
1221
- "name": "expected",
1222
- "type": "uint256",
1223
- "internalType": "uint256"
1224
- },
1225
- {
1226
- "name": "received",
1227
- "type": "uint256",
1228
- "internalType": "uint256"
1229
- }
1230
- ]
1231
- },
1232
- {
1233
- "type": "error",
1234
- "name": "Store_InvalidValueSchemaLength",
1235
- "inputs": [
1236
- {
1237
- "name": "expected",
1238
- "type": "uint256",
1239
- "internalType": "uint256"
1240
- },
1241
- {
1242
- "name": "received",
1243
- "type": "uint256",
1244
- "internalType": "uint256"
1245
- }
1246
- ]
1247
- },
1248
- {
1249
- "type": "error",
1250
- "name": "Store_InvalidValueSchemaStaticLength",
1251
- "inputs": [
1252
- {
1253
- "name": "expected",
1254
- "type": "uint256",
1255
- "internalType": "uint256"
1256
- },
1257
- {
1258
- "name": "received",
1259
- "type": "uint256",
1260
- "internalType": "uint256"
1261
- }
1262
- ]
1263
- },
1264
- {
1265
- "type": "error",
1266
- "name": "Store_TableAlreadyExists",
1267
- "inputs": [
1268
- {
1269
- "name": "tableId",
1270
- "type": "bytes32",
1271
- "internalType": "ResourceId"
1272
- },
1273
- {
1274
- "name": "tableIdString",
1275
- "type": "string",
1276
- "internalType": "string"
1277
- }
1278
- ]
1279
955
  }
1280
956
  ]
@@ -478,74 +478,6 @@ declare const abi: [
478
478
  ],
479
479
  "anonymous": false
480
480
  },
481
- {
482
- "type": "event",
483
- "name": "Store_SetRecord",
484
- "inputs": [
485
- {
486
- "name": "tableId",
487
- "type": "bytes32",
488
- "indexed": true,
489
- "internalType": "ResourceId"
490
- },
491
- {
492
- "name": "keyTuple",
493
- "type": "bytes32[]",
494
- "indexed": false,
495
- "internalType": "bytes32[]"
496
- },
497
- {
498
- "name": "staticData",
499
- "type": "bytes",
500
- "indexed": false,
501
- "internalType": "bytes"
502
- },
503
- {
504
- "name": "encodedLengths",
505
- "type": "bytes32",
506
- "indexed": false,
507
- "internalType": "EncodedLengths"
508
- },
509
- {
510
- "name": "dynamicData",
511
- "type": "bytes",
512
- "indexed": false,
513
- "internalType": "bytes"
514
- }
515
- ],
516
- "anonymous": false
517
- },
518
- {
519
- "type": "event",
520
- "name": "Store_SpliceStaticData",
521
- "inputs": [
522
- {
523
- "name": "tableId",
524
- "type": "bytes32",
525
- "indexed": true,
526
- "internalType": "ResourceId"
527
- },
528
- {
529
- "name": "keyTuple",
530
- "type": "bytes32[]",
531
- "indexed": false,
532
- "internalType": "bytes32[]"
533
- },
534
- {
535
- "name": "start",
536
- "type": "uint48",
537
- "indexed": false,
538
- "internalType": "uint48"
539
- },
540
- {
541
- "name": "data",
542
- "type": "bytes",
543
- "indexed": false,
544
- "internalType": "bytes"
545
- }
546
- ],
547
- "anonymous": false
548
- },
549
481
  {
550
482
  "type": "event",
551
483
  "name": "Transfer",
@@ -1020,262 +952,6 @@ declare const abi: [
1020
952
  "internalType": "address"
1021
953
  }
1022
954
  ]
1023
- },
1024
- {
1025
- "type": "error",
1026
- "name": "FieldLayout_Empty",
1027
- "inputs": []
1028
- },
1029
- {
1030
- "type": "error",
1031
- "name": "FieldLayout_InvalidStaticDataLength",
1032
- "inputs": [
1033
- {
1034
- "name": "staticDataLength",
1035
- "type": "uint256",
1036
- "internalType": "uint256"
1037
- },
1038
- {
1039
- "name": "computedStaticDataLength",
1040
- "type": "uint256",
1041
- "internalType": "uint256"
1042
- }
1043
- ]
1044
- },
1045
- {
1046
- "type": "error",
1047
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
1048
- "inputs": [
1049
- {
1050
- "name": "index",
1051
- "type": "uint256",
1052
- "internalType": "uint256"
1053
- }
1054
- ]
1055
- },
1056
- {
1057
- "type": "error",
1058
- "name": "FieldLayout_StaticLengthIsNotZero",
1059
- "inputs": [
1060
- {
1061
- "name": "index",
1062
- "type": "uint256",
1063
- "internalType": "uint256"
1064
- }
1065
- ]
1066
- },
1067
- {
1068
- "type": "error",
1069
- "name": "FieldLayout_StaticLengthIsZero",
1070
- "inputs": [
1071
- {
1072
- "name": "index",
1073
- "type": "uint256",
1074
- "internalType": "uint256"
1075
- }
1076
- ]
1077
- },
1078
- {
1079
- "type": "error",
1080
- "name": "FieldLayout_TooManyDynamicFields",
1081
- "inputs": [
1082
- {
1083
- "name": "numFields",
1084
- "type": "uint256",
1085
- "internalType": "uint256"
1086
- },
1087
- {
1088
- "name": "maxFields",
1089
- "type": "uint256",
1090
- "internalType": "uint256"
1091
- }
1092
- ]
1093
- },
1094
- {
1095
- "type": "error",
1096
- "name": "FieldLayout_TooManyFields",
1097
- "inputs": [
1098
- {
1099
- "name": "numFields",
1100
- "type": "uint256",
1101
- "internalType": "uint256"
1102
- },
1103
- {
1104
- "name": "maxFields",
1105
- "type": "uint256",
1106
- "internalType": "uint256"
1107
- }
1108
- ]
1109
- },
1110
- {
1111
- "type": "error",
1112
- "name": "Schema_InvalidLength",
1113
- "inputs": [
1114
- {
1115
- "name": "length",
1116
- "type": "uint256",
1117
- "internalType": "uint256"
1118
- }
1119
- ]
1120
- },
1121
- {
1122
- "type": "error",
1123
- "name": "Schema_StaticTypeAfterDynamicType",
1124
- "inputs": []
1125
- },
1126
- {
1127
- "type": "error",
1128
- "name": "Slice_OutOfBounds",
1129
- "inputs": [
1130
- {
1131
- "name": "data",
1132
- "type": "bytes",
1133
- "internalType": "bytes"
1134
- },
1135
- {
1136
- "name": "start",
1137
- "type": "uint256",
1138
- "internalType": "uint256"
1139
- },
1140
- {
1141
- "name": "end",
1142
- "type": "uint256",
1143
- "internalType": "uint256"
1144
- }
1145
- ]
1146
- },
1147
- {
1148
- "type": "error",
1149
- "name": "Store_InvalidFieldNamesLength",
1150
- "inputs": [
1151
- {
1152
- "name": "expected",
1153
- "type": "uint256",
1154
- "internalType": "uint256"
1155
- },
1156
- {
1157
- "name": "received",
1158
- "type": "uint256",
1159
- "internalType": "uint256"
1160
- }
1161
- ]
1162
- },
1163
- {
1164
- "type": "error",
1165
- "name": "Store_InvalidKeyNamesLength",
1166
- "inputs": [
1167
- {
1168
- "name": "expected",
1169
- "type": "uint256",
1170
- "internalType": "uint256"
1171
- },
1172
- {
1173
- "name": "received",
1174
- "type": "uint256",
1175
- "internalType": "uint256"
1176
- }
1177
- ]
1178
- },
1179
- {
1180
- "type": "error",
1181
- "name": "Store_InvalidResourceType",
1182
- "inputs": [
1183
- {
1184
- "name": "expected",
1185
- "type": "bytes2",
1186
- "internalType": "bytes2"
1187
- },
1188
- {
1189
- "name": "resourceId",
1190
- "type": "bytes32",
1191
- "internalType": "ResourceId"
1192
- },
1193
- {
1194
- "name": "resourceIdString",
1195
- "type": "string",
1196
- "internalType": "string"
1197
- }
1198
- ]
1199
- },
1200
- {
1201
- "type": "error",
1202
- "name": "Store_InvalidStaticDataLength",
1203
- "inputs": [
1204
- {
1205
- "name": "expected",
1206
- "type": "uint256",
1207
- "internalType": "uint256"
1208
- },
1209
- {
1210
- "name": "received",
1211
- "type": "uint256",
1212
- "internalType": "uint256"
1213
- }
1214
- ]
1215
- },
1216
- {
1217
- "type": "error",
1218
- "name": "Store_InvalidValueSchemaDynamicLength",
1219
- "inputs": [
1220
- {
1221
- "name": "expected",
1222
- "type": "uint256",
1223
- "internalType": "uint256"
1224
- },
1225
- {
1226
- "name": "received",
1227
- "type": "uint256",
1228
- "internalType": "uint256"
1229
- }
1230
- ]
1231
- },
1232
- {
1233
- "type": "error",
1234
- "name": "Store_InvalidValueSchemaLength",
1235
- "inputs": [
1236
- {
1237
- "name": "expected",
1238
- "type": "uint256",
1239
- "internalType": "uint256"
1240
- },
1241
- {
1242
- "name": "received",
1243
- "type": "uint256",
1244
- "internalType": "uint256"
1245
- }
1246
- ]
1247
- },
1248
- {
1249
- "type": "error",
1250
- "name": "Store_InvalidValueSchemaStaticLength",
1251
- "inputs": [
1252
- {
1253
- "name": "expected",
1254
- "type": "uint256",
1255
- "internalType": "uint256"
1256
- },
1257
- {
1258
- "name": "received",
1259
- "type": "uint256",
1260
- "internalType": "uint256"
1261
- }
1262
- ]
1263
- },
1264
- {
1265
- "type": "error",
1266
- "name": "Store_TableAlreadyExists",
1267
- "inputs": [
1268
- {
1269
- "name": "tableId",
1270
- "type": "bytes32",
1271
- "internalType": "ResourceId"
1272
- },
1273
- {
1274
- "name": "tableIdString",
1275
- "type": "string",
1276
- "internalType": "string"
1277
- }
1278
- ]
1279
955
  }
1280
956
  ];
1281
957