Skip to content

Commit

Permalink
latest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zapaz committed Apr 30, 2024
1 parent feef0b9 commit aedba83
Show file tree
Hide file tree
Showing 6 changed files with 770 additions and 957 deletions.
2 changes: 1 addition & 1 deletion common/src/common/provider-get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const providerGetSigner = async (chainId = 0, accountOrIndex: string | number =
if (!provider) return;

const signer = provider.getSigner(accountOrIndex);
const signerAddress = (await signer.getAddress());
const signerAddress = await signer.getAddress();

await receiveFunds(signerAddress, chainId);

Expand Down
20 changes: 10 additions & 10 deletions common/src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { BigNumber } from "ethers";
type _handleChainId = (chainId: string) => void;
type _handleAccounts = (accounts: Array<string>) => void;
type _onFunction = (label: string, func: _handleChainId | _handleAccounts) => void;
type EthereumProvider = ExternalProvider & { on?: _onFunction; };
type EthereumProvider = ExternalProvider & { on?: _onFunction };

type WindowEthereumProvider = Window & typeof globalThis & { ethereum: EthereumProvider; };
type WindowExternalProvider = Window & typeof globalThis & { ethereum: ExternalProvider; };
type WindowEthereumProvider = Window & typeof globalThis & { ethereum: EthereumProvider };
type WindowExternalProvider = Window & typeof globalThis & { ethereum: ExternalProvider };

type AddressesType = {
OpenNFTs: string;
Expand All @@ -28,14 +28,14 @@ type NetworkType = {
chainLabel?: string;
rpcUrls: Array<string>;
iconUrls?: Array<string>;
nativeCurrency: { name: string; symbol: string; decimals: number; };
nativeCurrency: { name: string; symbol: string; decimals: number };
blockExplorerUrls: Array<string>;
etherscanApiKey?: string;
hardhatOptions?: unknown;
subgraph?: { url?: string; startBlock?: number; active?: boolean; };
infura?: { url?: string; active: boolean; };
alchemy?: { url?: string; active: boolean; };
covalent?: { active: boolean; url?: string; key?: string; };
subgraph?: { url?: string; startBlock?: number; active?: boolean };
infura?: { url?: string; active: boolean };
alchemy?: { url?: string; active: boolean };
covalent?: { active: boolean; url?: string; key?: string };
linkedLayer1?: number;
linkedMainnet?: number;
opstack?: boolean;
Expand Down Expand Up @@ -75,7 +75,7 @@ type CollectionType = {
price?: BigNumber;
};

type CollectionFilterType = { owner?: string; tokenID?: string; offset?: number; limit?: number; };
type CollectionFilterType = { owner?: string; tokenID?: string; offset?: number; limit?: number };

///////////////////////////////////////////////////
// Exclusives storage parameters for Ipfs | Swarm
Expand Down Expand Up @@ -169,7 +169,7 @@ type Property = {
display_value: string;
};

type Properties = { [k: string]: Property; };
type Properties = { [k: string]: Property };

type RefPageType = {
chainId?: number;
Expand Down
2 changes: 1 addition & 1 deletion common/src/resolver/resolver-conv-supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const resolverConvSupports = (checks: Array<boolean>): Map<string, boolean> => {
/// : 17 IOpenNFTsV1
/// : 18 IOpenNFTsV2
/// : 19 IOpenNFTsV3
/// 0xb6ea5501 : 20 IOpenNFTsV4
/// : 20 IOpenNFTsV4
/// : 21 IOpenAutoMarket
/// : 22 IOpenBound

Expand Down
4 changes: 2 additions & 2 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"license": "ISC",
"main": "index.js",
"scripts": {
"clean": "forge clean && rm -rf cache-forge out node_modules lib types artifacts broadcast .turbo",
"clean": "forge clean && rm -rf cache-forge out node_modules lib types artifacts broadcast .turbo && git restore lib",
"postinstall": "pnpm install:foundry && pnpm forge:update",
"install:foundry": "command -v forge >/dev/null 2>&1 || pnpm foundry:install",
"build": "pnpm build:forge && pnpm build:typechain",
Expand All @@ -39,7 +39,7 @@
"validate:only": "pnpm deploy:all --sender $SENDER",
"format": "pnpm format:solidity",
"format:solidity": "$HOME/.foundry/bin/forge fmt",
"foundry:install": "curl -L https://foundry.paradigm.xyz | bash && $HOME/.foundry/bin/foundryup && pnpm forge:update",
"foundry:install": "curl -L https://foundry.paradigm.xyz | bash && $HOME/.foundry/bin/foundryup",
"forge:update": "git submodule update --recursive",
"tests": "pnpm tests:forge",
"tests:forge": "forge test"
Expand Down
Loading

0 comments on commit aedba83

Please sign in to comment.