Skip to content

Commit 88949aa

Browse files
vdrgfrolic
andauthored
refactor(world-module-erc20): change erc20 module table names to pascal case (#3544)
Co-authored-by: Kevin Ingersoll <kingersoll@gmail.com>
1 parent 5d6fb1b commit 88949aa

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.changeset/ninety-beers-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/world-module-erc20": patch
3+
---
4+
5+
Updated table names to pascal case for consistency.

packages/world-module-erc20/src/experimental/Constants.sol

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ResourceId, WorldResourceIdLib } from "@latticexyz/world/src/WorldResou
66

77
library ModuleConstants {
88
bytes14 internal constant NAMESPACE = "erc20-module";
9-
bytes16 internal constant REGISTRY_TABLE_NAME = "ERC20_REGISTRY";
9+
bytes16 internal constant REGISTRY_TABLE_NAME = "ERC20Registry";
1010

1111
function namespaceId() internal pure returns (ResourceId) {
1212
return WorldResourceIdLib.encodeNamespace(NAMESPACE);
@@ -18,19 +18,19 @@ library ModuleConstants {
1818
}
1919

2020
library ERC20TableNames {
21-
bytes16 internal constant TOTAL_SUPPLY = "TOTAL_SUPPLY";
21+
bytes16 internal constant TOTAL_SUPPLY = "TotalSupply";
2222

23-
bytes16 internal constant BALANCES = "BALANCES";
23+
bytes16 internal constant BALANCES = "Balances";
2424

25-
bytes16 internal constant ALLOWANCES = "ALLOWANCES";
25+
bytes16 internal constant ALLOWANCES = "Allowances";
2626

27-
bytes16 internal constant METADATA = "METADATA";
27+
bytes16 internal constant METADATA = "Metadata";
2828
}
2929

3030
library OwnableTableNames {
31-
bytes16 internal constant OWNER = "OWNER";
31+
bytes16 internal constant OWNER = "Owner";
3232
}
3333

3434
library PausableTableNames {
35-
bytes16 internal constant PAUSED = "PAUSED";
35+
bytes16 internal constant PAUSED = "Paused";
3636
}

0 commit comments

Comments
 (0)