Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Jan 9, 2025
2 parents a62a41f + dd94c29 commit 5749bc1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
1 change: 1 addition & 0 deletions pkgs/contract/.solhintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
contracts/hats/module/
contracts/**/mock/**
2 changes: 1 addition & 1 deletion pkgs/contract/contracts/bigbang/mock/BigBang_Mock_v2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/O
/**
* Upgradableになっている確認するための検証用BigBangコントラクト
*/
contract BigBangMockV2 is OwnableUpgradeable {
contract BigBang_Mock_v2 is OwnableUpgradeable {
IHats public Hats;

IHatsModuleFactory public HatsModuleFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MulticallUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import { IHats } from "../../hats/src/Interfaces/IHats.sol";

contract FractionTokenMockV2 is
contract FractionToken_Mock_v2 is
ERC1155Upgradeable,
ERC1155SupplyUpgradeable,
MulticallUpgradeable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SplitsCreator } from "../SplitsCreator.sol";
import { ISplitsCreator } from "../ISplitsCreator.sol";
import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";

contract SplitsCreatorFactoryMockV2 is OwnableUpgradeable {
contract SplitsCreatorFactory_Mock_v2 is OwnableUpgradeable {
event SplitCreatorCreated(
address indexed creator,
address indexed splitCreator,
Expand All @@ -18,7 +18,7 @@ contract SplitsCreatorFactoryMockV2 is OwnableUpgradeable {
);

address public SPLITS_CREATOR_IMPLEMENTATION;

address public BIG_BANG;

function initialize(
Expand Down
10 changes: 8 additions & 2 deletions pkgs/contract/test/BigBang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ describe("BigBang", () => {
describe("Upgrade Test", () => {
it("upgrde", async () => {
// BigBangをアップグレード
const newBigBang = await upgradeBigBang(BigBang.address, "BigBangMockV2");
const newBigBang = await upgradeBigBang(
BigBang.address,
"BigBang_Mock_v2",
);

// upgrade後にしかないメソッドを実行
const result = await newBigBang.read.testUpgradeFunction();
Expand All @@ -316,7 +319,10 @@ describe("BigBang", () => {

it("should execute bigbang after upgrade", async () => {
// BigBangをアップグレード
const newBigBang = await upgradeBigBang(BigBang.address, "BigBangMockV2");
const newBigBang = await upgradeBigBang(
BigBang.address,
"BigBang_Mock_v2",
);

// SplitsCreatorFactoryにBigBangアドレスをセット
SplitsCreatorFactory.write.setBigBang([newBigBang.address]);
Expand Down
6 changes: 3 additions & 3 deletions pkgs/contract/test/FractionToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ describe("FractionToken", () => {
// FractionTokenをアップグレード
const newFractionToken = await upgradeFractionToken(
FractionToken.address,
"FractionTokenMockV2",
"FractionToken_Mock_v2",
["", 10000n, Hats.address, zeroAddress],
);

Expand All @@ -298,7 +298,7 @@ describe("FractionToken", () => {
// FractionTokenをアップグレード
const newFractionToken = await upgradeFractionToken(
FractionToken.address,
"FractionTokenMockV2",
"FractionToken_Mock_v2",
["", 10000n, Hats.address, zeroAddress],
);

Expand Down Expand Up @@ -357,7 +357,7 @@ describe("FractionToken", () => {
// FractionTokenをアップグレード
const newFractionToken = await upgradeFractionToken(
FractionToken.address,
"FractionTokenMockV2",
"FractionToken_Mock_v2",
["", 10000n, Hats.address, zeroAddress],
);

Expand Down
2 changes: 1 addition & 1 deletion pkgs/contract/test/SplitsCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe("SplitsCreator Factory", () => {
it("sohuld upgrade SplitsCreatorFactory", async () => {
const newSplitsCreatorFactory = await upgradeSplitsCreatorFacotry(
SplitsCreatorFactory.address,
"SplitsCreatorFactoryMockV2",
"SplitsCreatorFactory_Mock_v2",
[],
);

Expand Down
13 changes: 3 additions & 10 deletions pkgs/frontend/hooks/useWallet.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import {
type ConnectedWallet,
usePrivy,
useWallets,
} from "@privy-io/react-auth";
import { type ConnectedWallet, useWallets } from "@privy-io/react-auth";
import {
type SmartAccountClient,
createSmartAccountClient,
} from "permissionless";
import {
toSimpleSmartAccount,
toThirdwebSmartAccount,
} from "permissionless/accounts";
import { toThirdwebSmartAccount } from "permissionless/accounts";
import { createPimlicoClient } from "permissionless/clients/pimlico";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useEffect, useMemo, useState } from "react";
import {
http,
type Account,
Expand Down

0 comments on commit 5749bc1

Please sign in to comment.