Skip to content

Commit

Permalink
Contract skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraRingas committed Aug 29, 2024
1 parent 414389f commit 57a45b5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1,301 deletions.
22 changes: 10 additions & 12 deletions packages/world-module-erc20-external-store/src/ERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pragma solidity >=0.8.24;

import { IERC20Errors } from "./IERC20Errors.sol";
import { IERC20Events } from "./IERC20Events.sol";
import { Token } from "./codegen/tables/Token.sol";
import { Balances } from "./codegen/tables/Balances.sol";
import { Allowances } from "./codegen/tables/Allowances.sol";
//import { Token } from "./codegen/tables/Token.sol";
//import { Balances } from "./codegen/tables/Balances.sol";
//import { Allowances } from "./codegen/tables/Allowances.sol";

import { Store } from "@latticexyz/store/src/Store.sol";
import { Schema } from "@latticexyz/store/src/Schema.sol";
Expand All @@ -16,19 +16,17 @@ import { FieldLayout } from "@latticexyz/store/src/FieldLayout.sol";
import { EncodedLengths } from "@latticexyz/store/src/EncodedLengths.sol";

/**
* @title ERC20 Module with own Store
* @title ERC20 Module with external Store
* @author MUD (https://mud.dev) by Lattice (https://lattice.xyz)
* @dev Implementation of EIP-20 that has on instance of `Store` which enables built in indexing and storage packing.
*/
contract ERC20 is Store, IERC20Errors, IERC20Events {
contract ERC20 is IERC20Errors, IERC20Events {
constructor(string memory _name, string memory _symbol, address _owner, uint8 _decimals) {
StoreCore.registerInternalTables();

Token.register();
Balances.register();
Allowances.register();

Token.set(_decimals, 0, _owner, _name, _symbol);
// StoreCore.registerInternalTables();
// Token.register();
// Balances.register();
// Allowances.register();
// Token.set(_decimals, 0, _owner, _name, _symbol);
}

/**
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 57a45b5

Please sign in to comment.