@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
@@ -485,74 +485,6 @@
485
485
  ],
486
486
  "anonymous": false
487
487
  },
488
- {
489
- "type": "event",
490
- "name": "Store_SetRecord",
491
- "inputs": [
492
- {
493
- "name": "tableId",
494
- "type": "bytes32",
495
- "indexed": true,
496
- "internalType": "ResourceId"
497
- },
498
- {
499
- "name": "keyTuple",
500
- "type": "bytes32[]",
501
- "indexed": false,
502
- "internalType": "bytes32[]"
503
- },
504
- {
505
- "name": "staticData",
506
- "type": "bytes",
507
- "indexed": false,
508
- "internalType": "bytes"
509
- },
510
- {
511
- "name": "encodedLengths",
512
- "type": "bytes32",
513
- "indexed": false,
514
- "internalType": "EncodedLengths"
515
- },
516
- {
517
- "name": "dynamicData",
518
- "type": "bytes",
519
- "indexed": false,
520
- "internalType": "bytes"
521
- }
522
- ],
523
- "anonymous": false
524
- },
525
- {
526
- "type": "event",
527
- "name": "Store_SpliceStaticData",
528
- "inputs": [
529
- {
530
- "name": "tableId",
531
- "type": "bytes32",
532
- "indexed": true,
533
- "internalType": "ResourceId"
534
- },
535
- {
536
- "name": "keyTuple",
537
- "type": "bytes32[]",
538
- "indexed": false,
539
- "internalType": "bytes32[]"
540
- },
541
- {
542
- "name": "start",
543
- "type": "uint48",
544
- "indexed": false,
545
- "internalType": "uint48"
546
- },
547
- {
548
- "name": "data",
549
- "type": "bytes",
550
- "indexed": false,
551
- "internalType": "bytes"
552
- }
553
- ],
554
- "anonymous": false
555
- },
556
488
  {
557
489
  "type": "event",
558
490
  "name": "Transfer",
@@ -1027,261 +959,5 @@
1027
959
  "internalType": "address"
1028
960
  }
1029
961
  ]
1030
- },
1031
- {
1032
- "type": "error",
1033
- "name": "FieldLayout_Empty",
1034
- "inputs": []
1035
- },
1036
- {
1037
- "type": "error",
1038
- "name": "FieldLayout_InvalidStaticDataLength",
1039
- "inputs": [
1040
- {
1041
- "name": "staticDataLength",
1042
- "type": "uint256",
1043
- "internalType": "uint256"
1044
- },
1045
- {
1046
- "name": "computedStaticDataLength",
1047
- "type": "uint256",
1048
- "internalType": "uint256"
1049
- }
1050
- ]
1051
- },
1052
- {
1053
- "type": "error",
1054
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
1055
- "inputs": [
1056
- {
1057
- "name": "index",
1058
- "type": "uint256",
1059
- "internalType": "uint256"
1060
- }
1061
- ]
1062
- },
1063
- {
1064
- "type": "error",
1065
- "name": "FieldLayout_StaticLengthIsNotZero",
1066
- "inputs": [
1067
- {
1068
- "name": "index",
1069
- "type": "uint256",
1070
- "internalType": "uint256"
1071
- }
1072
- ]
1073
- },
1074
- {
1075
- "type": "error",
1076
- "name": "FieldLayout_StaticLengthIsZero",
1077
- "inputs": [
1078
- {
1079
- "name": "index",
1080
- "type": "uint256",
1081
- "internalType": "uint256"
1082
- }
1083
- ]
1084
- },
1085
- {
1086
- "type": "error",
1087
- "name": "FieldLayout_TooManyDynamicFields",
1088
- "inputs": [
1089
- {
1090
- "name": "numFields",
1091
- "type": "uint256",
1092
- "internalType": "uint256"
1093
- },
1094
- {
1095
- "name": "maxFields",
1096
- "type": "uint256",
1097
- "internalType": "uint256"
1098
- }
1099
- ]
1100
- },
1101
- {
1102
- "type": "error",
1103
- "name": "FieldLayout_TooManyFields",
1104
- "inputs": [
1105
- {
1106
- "name": "numFields",
1107
- "type": "uint256",
1108
- "internalType": "uint256"
1109
- },
1110
- {
1111
- "name": "maxFields",
1112
- "type": "uint256",
1113
- "internalType": "uint256"
1114
- }
1115
- ]
1116
- },
1117
- {
1118
- "type": "error",
1119
- "name": "Schema_InvalidLength",
1120
- "inputs": [
1121
- {
1122
- "name": "length",
1123
- "type": "uint256",
1124
- "internalType": "uint256"
1125
- }
1126
- ]
1127
- },
1128
- {
1129
- "type": "error",
1130
- "name": "Schema_StaticTypeAfterDynamicType",
1131
- "inputs": []
1132
- },
1133
- {
1134
- "type": "error",
1135
- "name": "Slice_OutOfBounds",
1136
- "inputs": [
1137
- {
1138
- "name": "data",
1139
- "type": "bytes",
1140
- "internalType": "bytes"
1141
- },
1142
- {
1143
- "name": "start",
1144
- "type": "uint256",
1145
- "internalType": "uint256"
1146
- },
1147
- {
1148
- "name": "end",
1149
- "type": "uint256",
1150
- "internalType": "uint256"
1151
- }
1152
- ]
1153
- },
1154
- {
1155
- "type": "error",
1156
- "name": "Store_InvalidFieldNamesLength",
1157
- "inputs": [
1158
- {
1159
- "name": "expected",
1160
- "type": "uint256",
1161
- "internalType": "uint256"
1162
- },
1163
- {
1164
- "name": "received",
1165
- "type": "uint256",
1166
- "internalType": "uint256"
1167
- }
1168
- ]
1169
- },
1170
- {
1171
- "type": "error",
1172
- "name": "Store_InvalidKeyNamesLength",
1173
- "inputs": [
1174
- {
1175
- "name": "expected",
1176
- "type": "uint256",
1177
- "internalType": "uint256"
1178
- },
1179
- {
1180
- "name": "received",
1181
- "type": "uint256",
1182
- "internalType": "uint256"
1183
- }
1184
- ]
1185
- },
1186
- {
1187
- "type": "error",
1188
- "name": "Store_InvalidResourceType",
1189
- "inputs": [
1190
- {
1191
- "name": "expected",
1192
- "type": "bytes2",
1193
- "internalType": "bytes2"
1194
- },
1195
- {
1196
- "name": "resourceId",
1197
- "type": "bytes32",
1198
- "internalType": "ResourceId"
1199
- },
1200
- {
1201
- "name": "resourceIdString",
1202
- "type": "string",
1203
- "internalType": "string"
1204
- }
1205
- ]
1206
- },
1207
- {
1208
- "type": "error",
1209
- "name": "Store_InvalidStaticDataLength",
1210
- "inputs": [
1211
- {
1212
- "name": "expected",
1213
- "type": "uint256",
1214
- "internalType": "uint256"
1215
- },
1216
- {
1217
- "name": "received",
1218
- "type": "uint256",
1219
- "internalType": "uint256"
1220
- }
1221
- ]
1222
- },
1223
- {
1224
- "type": "error",
1225
- "name": "Store_InvalidValueSchemaDynamicLength",
1226
- "inputs": [
1227
- {
1228
- "name": "expected",
1229
- "type": "uint256",
1230
- "internalType": "uint256"
1231
- },
1232
- {
1233
- "name": "received",
1234
- "type": "uint256",
1235
- "internalType": "uint256"
1236
- }
1237
- ]
1238
- },
1239
- {
1240
- "type": "error",
1241
- "name": "Store_InvalidValueSchemaLength",
1242
- "inputs": [
1243
- {
1244
- "name": "expected",
1245
- "type": "uint256",
1246
- "internalType": "uint256"
1247
- },
1248
- {
1249
- "name": "received",
1250
- "type": "uint256",
1251
- "internalType": "uint256"
1252
- }
1253
- ]
1254
- },
1255
- {
1256
- "type": "error",
1257
- "name": "Store_InvalidValueSchemaStaticLength",
1258
- "inputs": [
1259
- {
1260
- "name": "expected",
1261
- "type": "uint256",
1262
- "internalType": "uint256"
1263
- },
1264
- {
1265
- "name": "received",
1266
- "type": "uint256",
1267
- "internalType": "uint256"
1268
- }
1269
- ]
1270
- },
1271
- {
1272
- "type": "error",
1273
- "name": "Store_TableAlreadyExists",
1274
- "inputs": [
1275
- {
1276
- "name": "tableId",
1277
- "type": "bytes32",
1278
- "internalType": "ResourceId"
1279
- },
1280
- {
1281
- "name": "tableIdString",
1282
- "type": "string",
1283
- "internalType": "string"
1284
- }
1285
- ]
1286
962
  }
1287
963
  ]
@@ -485,74 +485,6 @@ declare const abi: [
485
485
  ],
486
486
  "anonymous": false
487
487
  },
488
- {
489
- "type": "event",
490
- "name": "Store_SetRecord",
491
- "inputs": [
492
- {
493
- "name": "tableId",
494
- "type": "bytes32",
495
- "indexed": true,
496
- "internalType": "ResourceId"
497
- },
498
- {
499
- "name": "keyTuple",
500
- "type": "bytes32[]",
501
- "indexed": false,
502
- "internalType": "bytes32[]"
503
- },
504
- {
505
- "name": "staticData",
506
- "type": "bytes",
507
- "indexed": false,
508
- "internalType": "bytes"
509
- },
510
- {
511
- "name": "encodedLengths",
512
- "type": "bytes32",
513
- "indexed": false,
514
- "internalType": "EncodedLengths"
515
- },
516
- {
517
- "name": "dynamicData",
518
- "type": "bytes",
519
- "indexed": false,
520
- "internalType": "bytes"
521
- }
522
- ],
523
- "anonymous": false
524
- },
525
- {
526
- "type": "event",
527
- "name": "Store_SpliceStaticData",
528
- "inputs": [
529
- {
530
- "name": "tableId",
531
- "type": "bytes32",
532
- "indexed": true,
533
- "internalType": "ResourceId"
534
- },
535
- {
536
- "name": "keyTuple",
537
- "type": "bytes32[]",
538
- "indexed": false,
539
- "internalType": "bytes32[]"
540
- },
541
- {
542
- "name": "start",
543
- "type": "uint48",
544
- "indexed": false,
545
- "internalType": "uint48"
546
- },
547
- {
548
- "name": "data",
549
- "type": "bytes",
550
- "indexed": false,
551
- "internalType": "bytes"
552
- }
553
- ],
554
- "anonymous": false
555
- },
556
488
  {
557
489
  "type": "event",
558
490
  "name": "Transfer",
@@ -1027,262 +959,6 @@ declare const abi: [
1027
959
  "internalType": "address"
1028
960
  }
1029
961
  ]
1030
- },
1031
- {
1032
- "type": "error",
1033
- "name": "FieldLayout_Empty",
1034
- "inputs": []
1035
- },
1036
- {
1037
- "type": "error",
1038
- "name": "FieldLayout_InvalidStaticDataLength",
1039
- "inputs": [
1040
- {
1041
- "name": "staticDataLength",
1042
- "type": "uint256",
1043
- "internalType": "uint256"
1044
- },
1045
- {
1046
- "name": "computedStaticDataLength",
1047
- "type": "uint256",
1048
- "internalType": "uint256"
1049
- }
1050
- ]
1051
- },
1052
- {
1053
- "type": "error",
1054
- "name": "FieldLayout_StaticLengthDoesNotFitInAWord",
1055
- "inputs": [
1056
- {
1057
- "name": "index",
1058
- "type": "uint256",
1059
- "internalType": "uint256"
1060
- }
1061
- ]
1062
- },
1063
- {
1064
- "type": "error",
1065
- "name": "FieldLayout_StaticLengthIsNotZero",
1066
- "inputs": [
1067
- {
1068
- "name": "index",
1069
- "type": "uint256",
1070
- "internalType": "uint256"
1071
- }
1072
- ]
1073
- },
1074
- {
1075
- "type": "error",
1076
- "name": "FieldLayout_StaticLengthIsZero",
1077
- "inputs": [
1078
- {
1079
- "name": "index",
1080
- "type": "uint256",
1081
- "internalType": "uint256"
1082
- }
1083
- ]
1084
- },
1085
- {
1086
- "type": "error",
1087
- "name": "FieldLayout_TooManyDynamicFields",
1088
- "inputs": [
1089
- {
1090
- "name": "numFields",
1091
- "type": "uint256",
1092
- "internalType": "uint256"
1093
- },
1094
- {
1095
- "name": "maxFields",
1096
- "type": "uint256",
1097
- "internalType": "uint256"
1098
- }
1099
- ]
1100
- },
1101
- {
1102
- "type": "error",
1103
- "name": "FieldLayout_TooManyFields",
1104
- "inputs": [
1105
- {
1106
- "name": "numFields",
1107
- "type": "uint256",
1108
- "internalType": "uint256"
1109
- },
1110
- {
1111
- "name": "maxFields",
1112
- "type": "uint256",
1113
- "internalType": "uint256"
1114
- }
1115
- ]
1116
- },
1117
- {
1118
- "type": "error",
1119
- "name": "Schema_InvalidLength",
1120
- "inputs": [
1121
- {
1122
- "name": "length",
1123
- "type": "uint256",
1124
- "internalType": "uint256"
1125
- }
1126
- ]
1127
- },
1128
- {
1129
- "type": "error",
1130
- "name": "Schema_StaticTypeAfterDynamicType",
1131
- "inputs": []
1132
- },
1133
- {
1134
- "type": "error",
1135
- "name": "Slice_OutOfBounds",
1136
- "inputs": [
1137
- {
1138
- "name": "data",
1139
- "type": "bytes",
1140
- "internalType": "bytes"
1141
- },
1142
- {
1143
- "name": "start",
1144
- "type": "uint256",
1145
- "internalType": "uint256"
1146
- },
1147
- {
1148
- "name": "end",
1149
- "type": "uint256",
1150
- "internalType": "uint256"
1151
- }
1152
- ]
1153
- },
1154
- {
1155
- "type": "error",
1156
- "name": "Store_InvalidFieldNamesLength",
1157
- "inputs": [
1158
- {
1159
- "name": "expected",
1160
- "type": "uint256",
1161
- "internalType": "uint256"
1162
- },
1163
- {
1164
- "name": "received",
1165
- "type": "uint256",
1166
- "internalType": "uint256"
1167
- }
1168
- ]
1169
- },
1170
- {
1171
- "type": "error",
1172
- "name": "Store_InvalidKeyNamesLength",
1173
- "inputs": [
1174
- {
1175
- "name": "expected",
1176
- "type": "uint256",
1177
- "internalType": "uint256"
1178
- },
1179
- {
1180
- "name": "received",
1181
- "type": "uint256",
1182
- "internalType": "uint256"
1183
- }
1184
- ]
1185
- },
1186
- {
1187
- "type": "error",
1188
- "name": "Store_InvalidResourceType",
1189
- "inputs": [
1190
- {
1191
- "name": "expected",
1192
- "type": "bytes2",
1193
- "internalType": "bytes2"
1194
- },
1195
- {
1196
- "name": "resourceId",
1197
- "type": "bytes32",
1198
- "internalType": "ResourceId"
1199
- },
1200
- {
1201
- "name": "resourceIdString",
1202
- "type": "string",
1203
- "internalType": "string"
1204
- }
1205
- ]
1206
- },
1207
- {
1208
- "type": "error",
1209
- "name": "Store_InvalidStaticDataLength",
1210
- "inputs": [
1211
- {
1212
- "name": "expected",
1213
- "type": "uint256",
1214
- "internalType": "uint256"
1215
- },
1216
- {
1217
- "name": "received",
1218
- "type": "uint256",
1219
- "internalType": "uint256"
1220
- }
1221
- ]
1222
- },
1223
- {
1224
- "type": "error",
1225
- "name": "Store_InvalidValueSchemaDynamicLength",
1226
- "inputs": [
1227
- {
1228
- "name": "expected",
1229
- "type": "uint256",
1230
- "internalType": "uint256"
1231
- },
1232
- {
1233
- "name": "received",
1234
- "type": "uint256",
1235
- "internalType": "uint256"
1236
- }
1237
- ]
1238
- },
1239
- {
1240
- "type": "error",
1241
- "name": "Store_InvalidValueSchemaLength",
1242
- "inputs": [
1243
- {
1244
- "name": "expected",
1245
- "type": "uint256",
1246
- "internalType": "uint256"
1247
- },
1248
- {
1249
- "name": "received",
1250
- "type": "uint256",
1251
- "internalType": "uint256"
1252
- }
1253
- ]
1254
- },
1255
- {
1256
- "type": "error",
1257
- "name": "Store_InvalidValueSchemaStaticLength",
1258
- "inputs": [
1259
- {
1260
- "name": "expected",
1261
- "type": "uint256",
1262
- "internalType": "uint256"
1263
- },
1264
- {
1265
- "name": "received",
1266
- "type": "uint256",
1267
- "internalType": "uint256"
1268
- }
1269
- ]
1270
- },
1271
- {
1272
- "type": "error",
1273
- "name": "Store_TableAlreadyExists",
1274
- "inputs": [
1275
- {
1276
- "name": "tableId",
1277
- "type": "bytes32",
1278
- "internalType": "ResourceId"
1279
- },
1280
- {
1281
- "name": "tableIdString",
1282
- "type": "string",
1283
- "internalType": "string"
1284
- }
1285
- ]
1286
962
  }
1287
963
  ];
1288
964