@latticexyz/world-modules 2.0.12-type-resolutions-d4eea91b → 2.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/world-modules",
3
- "version": "2.0.12-type-resolutions-d4eea91b",
3
+ "version": "2.0.12",
4
4
  "description": "World modules",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,19 +13,25 @@
13
13
  "./internal/mud.config": "./dist/mud.config.js",
14
14
  "./out/*": "./out/*"
15
15
  },
16
+ "typesVersions": {
17
+ "*": {
18
+ "internal/mud.config": [
19
+ "./dist/mud.config.d.ts"
20
+ ]
21
+ }
22
+ },
16
23
  "files": [
17
24
  "dist",
18
25
  "out",
19
- "foundry.toml",
20
26
  "src"
21
27
  ],
22
28
  "dependencies": {
23
29
  "zod": "^3.22.2",
24
- "@latticexyz/config": "2.0.12-type-resolutions-d4eea91b",
25
- "@latticexyz/schema-type": "2.0.12-type-resolutions-d4eea91b",
26
- "@latticexyz/common": "2.0.12-type-resolutions-d4eea91b",
27
- "@latticexyz/world": "2.0.12-type-resolutions-d4eea91b",
28
- "@latticexyz/store": "2.0.12-type-resolutions-d4eea91b"
30
+ "@latticexyz/common": "2.0.12",
31
+ "@latticexyz/config": "2.0.12",
32
+ "@latticexyz/schema-type": "2.0.12",
33
+ "@latticexyz/store": "2.0.12",
34
+ "@latticexyz/world": "2.0.12"
29
35
  },
30
36
  "devDependencies": {
31
37
  "@types/ejs": "^3.1.1",
@@ -39,8 +45,8 @@
39
45
  "tsup": "^6.7.0",
40
46
  "tsx": "^3.12.6",
41
47
  "vitest": "0.34.6",
42
- "@latticexyz/abi-ts": "2.0.12-type-resolutions-d4eea91b",
43
- "@latticexyz/gas-report": "2.0.12-type-resolutions-d4eea91b"
48
+ "@latticexyz/abi-ts": "2.0.12",
49
+ "@latticexyz/gas-report": "2.0.12"
44
50
  },
45
51
  "publishConfig": {
46
52
  "access": "public"
@@ -13,11 +13,12 @@ import { createPuppet } from "../puppet/createPuppet.sol";
13
13
  import { Balances } from "../tokens/tables/Balances.sol";
14
14
 
15
15
  import { MODULE_NAMESPACE, MODULE_NAMESPACE_ID, ERC20_REGISTRY_TABLE_ID } from "./constants.sol";
16
- import { _allowancesTableId, _balancesTableId, _metadataTableId, _erc20SystemId } from "./utils.sol";
16
+ import { _allowancesTableId, _balancesTableId, _metadataTableId, _totalSupplyTableId, _erc20SystemId } from "./utils.sol";
17
17
  import { ERC20System } from "./ERC20System.sol";
18
18
 
19
19
  import { ERC20Registry } from "./tables/ERC20Registry.sol";
20
20
  import { Allowances } from "./tables/Allowances.sol";
21
+ import { TotalSupply } from "./tables/TotalSupply.sol";
21
22
  import { ERC20Metadata, ERC20MetadataData } from "./tables/ERC20Metadata.sol";
22
23
 
23
24
  contract ERC20Module is Module {
@@ -80,6 +81,7 @@ contract ERC20ModuleRegistrationLibrary {
80
81
  // Register the tables
81
82
  Allowances.register(_allowancesTableId(namespace));
82
83
  Balances.register(_balancesTableId(namespace));
84
+ TotalSupply.register(_totalSupplyTableId(namespace));
83
85
  ERC20Metadata.register(_metadataTableId(namespace));
84
86
 
85
87
  // Register a new ERC20System
package/foundry.toml DELETED
@@ -1,15 +0,0 @@
1
- [profile.default]
2
- solc = "0.8.24"
3
- ffi = false
4
- fuzz_runs = 256
5
- optimizer = true
6
- optimizer_runs = 3000
7
- verbosity = 2
8
- allow_paths = ["../../node_modules", "../"]
9
- src = "src"
10
- out = "out"
11
- bytecode_hash = "none"
12
- extra_output_files = [
13
- "abi",
14
- "evm.bytecode"
15
- ]