Skip to content

Commit

Permalink
FractionTokenのテストコードをコントラクトに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
aowheel committed Oct 24, 2024
1 parent 662c707 commit f9cb14b
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 218 deletions.
2 changes: 1 addition & 1 deletion pkgs/contract/contracts/fractiontoken/FractionToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract FractionToken is ERC1155Upgradeable, ERC2771ContextUpgradeable{
require(
amount <= TOKEN_SUPPLY,
"Amount exceeds token supply"
)
);

require(
_hasHatAuthority(hatId),
Expand Down
6 changes: 5 additions & 1 deletion pkgs/contract/contracts/fractiontoken/IFractionToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

interface IFractionToken is IERC1155 {
function mint(string memory hatId, address account) external;
function mintInitialSupply(
string memory hatId,
address account,
uint256 amount
) external;

function burn(
address from,
Expand Down
20 changes: 1 addition & 19 deletions pkgs/contract/gas-report.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,7 @@
··············|··········|··············|·············|·············|···············|··············
| Deployments · · % of limit · │
·························|··············|·············|·············|···············|··············
| BigBang · - · - · 1248128 · 4.2 % · - │
·························|··············|·············|·············|···············|··············
| FractionToken · - · - · 2859199 · 9.5 % · - │
| FractionToken · - · - · 3076626 · 10.3 % · - │
·························|··············|·············|·············|···············|··············
| Hats · - · - · 7032431 · 23.4 % · - │
·························|··············|·············|·············|···············|··············
| HatsModule · - · - · 754132 · 2.5 % · - │
·························|··············|·············|·············|···············|··············
| HatsModuleFactory · - · - · 1101122 · 3.7 % · - │
·························|··············|·············|·············|···············|··············
| HatsTimeFrameModule · - · - · 1287099 · 4.3 % · - │
·························|··············|·············|·············|···············|··············
| PullSplitFactory · - · - · 4535827 · 15.1 % · - │
·························|··············|·············|·············|···············|··············
| PushSplitFactory · - · - · 4483113 · 14.9 % · - │
·························|··············|·············|·············|···············|··············
| SplitsCreator · - · - · 1487532 · 5 % · - │
·························|··············|·············|·············|···············|··············
| SplitsCreatorFactory · - · - · 526836 · 1.8 % · - │
·························|··············|·············|·············|···············|··············
| SplitsWarehouse · - · - · 3934655 · 13.1 % · - │
·------------------------|--------------|-------------|-------------|---------------|-------------·
152 changes: 0 additions & 152 deletions pkgs/contract/test/Burn.ts

This file was deleted.

Loading

0 comments on commit f9cb14b

Please sign in to comment.