Skip to content

Commit

Permalink
Fix spelling (thirdweb-dev#665)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Daniels <[email protected]>
  • Loading branch information
shift4id and jnsdls authored Mar 2, 2023
1 parent b6b0855 commit 6ef52dc
Show file tree
Hide file tree
Showing 56 changed files with 105 additions and 103 deletions.
12 changes: 12 additions & 0 deletions .changeset/metal-ducks-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@thirdweb-dev/react-native": patch
"@thirdweb-dev/react-core": patch
"@thirdweb-dev/storage": patch
"@thirdweb-dev/wallets": patch
"@thirdweb-dev/react": patch
"@thirdweb-dev/auth": patch
"thirdweb": patch
"@thirdweb-dev/sdk": patch
---

Fix spelling throughout all packages
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dist-ssr
.cache
server/dist
public/dist
.turbo
./packages/contracts-js/abis
.idea/
.yalc/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<br />
</p>

<h1 align="center"><a href='http://thirdweb.com/'>thirdweb</a> JavaScript/TypeScript monorepo</h1>
<h1 align="center"><a href='https://thirdweb.com/'>thirdweb</a> JavaScript/TypeScript monorepo</h1>

<p align="center">
<a href="https://github.com/thirdweb-dev/js/actions/workflows/build-test-lint.yml">
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/express/routes/logout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default async function handler(
}),
);

return res.status(200).json({ message: "Succesfully logged out" });
return res.status(200).json({ message: "Successfully logged out" });
}
2 changes: 1 addition & 1 deletion packages/auth/src/next/routes/logout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default async function handler(
}),
);

return res.status(200).json({ message: "Succesfully logged out" });
return res.status(200).json({ message: "Successfully logged out" });
}
2 changes: 1 addition & 1 deletion packages/cli/src/common/file-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function findFiles(
}
const stat = statSync(filename);

// brownie has a "depdendencies" directory *inside* the build directory, if we detect that we should skip it
// brownie has a "dependencies" directory *inside* the build directory, if we detect that we should skip it
if (stat.isDirectory() && basename(filename) === "dependencies") {
logger.debug('skipping "dependencies" directory');
continue;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/core/builder/foundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class FoundryBuilder extends BaseBuilder {
) {
// replace the abi with the actual abi
parsedMetadata.output.abi = abi;
// need to re-add libraries if not present since forge stripts it out
// need to re-add libraries if not present since forge strips it out
if (!parsedMetadata.settings.libraries) {
parsedMetadata.settings.libraries = {};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/core/builder/solc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class SolcBuilder extends BaseBuilder {
}

// write them out to artifacts dir
// TODO technically we *could* just return them straight here, we have them in memory anywa?
// TODO technically we *could* just return them straight here, we have them in memory anyway?
Object.keys(output.contracts)
.filter((contractName) => contractName in sources)
.forEach((contractName) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/core/detection/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async function detect(
new HardhatDetector(),
new FoundryDetector(),
new TruffleDetector(),
// new BrownieDetector(), TODO brownie does not support outputing metadata yet
// new BrownieDetector(), TODO brownie does not support outputting metadata yet
];

const possibleProjectTypes = detectors
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/storage/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function upload(
"Uploading file to IPFS. This may take a while depending on file sizes.",
);
uri = await storage.upload(file, { uploadWithoutDirectory: true });
spin.succeed("Succesfully uploaded file to IPFS.");
spin.succeed("Successfully uploaded file to IPFS.");
} else {
return Promise.reject("Invalid path provided");
}
Expand Down
3 changes: 0 additions & 3 deletions packages/react-core/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
/test-results/
/playwright-report/
/playwright/.cache/
etc/
temp/
temp-evm/
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/core/query-utils/required-param.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import invariant from "tiny-invariant";

/**
* Makes a parameter required to be passed, but still allowes it to be null or undefined.
* Makes a parameter required to be passed, but still allows it to be null or undefined.
*
* @beta
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/react-core/src/evm/hooks/async/claim-conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export function useClaimConditions(

/**
* Get the reasons why a specific wallet can't claim
*
*
* @example
* ```javascript
* const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(contract, { walletAddress: "{{wallet_address}}" });
Expand All @@ -230,7 +230,7 @@ export function useClaimConditions(
* @param contract - an instance of a contract that extends the ERC20, ERC721 or ERC1155 spec and implements the `claimConditions` extension.
* @param eligibilityParams - the parameters for the eligibility check, see: {@link ClaimIneligibilityParams}
* @param tokenId - the id of the token to fetch the claim conditions for (if the contract is an ERC1155 contract)
* @returns a response object with the resons for the claim ineligibility
* @returns a response object with the reasons for the claim ineligibility
* @twfeature ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1
* @beta
*/
Expand Down Expand Up @@ -290,7 +290,7 @@ export function useClaimIneligibilityReasons(

/**
* Get the active claim condition for a specific wallet
*
*
* @example
* ```javascript
* const { data: activeClaimConditionForWallet, isLoading, error } = useActiveClaimConditionForWallet(contract, "{{wallet_address}}");
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/evm/hooks/async/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ export function useContractMetadataUpdate(

/**
* Get or subscribe to contract events
*
*
* @example
* ```javascript
* const { data: contractEvents, isLoading } = useContractEvents(contract);
* ```
*
* @param contract - the {@link ValidContractInstance} instance of the contract to listen to events for
* @param eventName - the name of the event to query for (omit this or pass `undefined` to query for all events)
* @param options - options incldues the filters ({@link QueryAllEvents}) for the query as well as if you want to subscribe to real-time updates (default: true)
* @param options - options includes the filters ({@link QueryAllEvents}) for the query as well as if you want to subscribe to real-time updates (default: true)
* @returns a response object that includes the contract events
* @beta
*/
Expand Down
16 changes: 9 additions & 7 deletions packages/react-core/src/evm/hooks/async/nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ export function useTotalCount<TContract extends NFTContract>(
* ```
*
* @param contract - an instance of a {@link NFTContract}
* @returns a response object that incudes the total minted supply
* @param tokenId - required for ERC1155, the tokenId to look up
* @returns a response object that includes the total minted supply
* @beta
* @twfeature ERC721Supply | ERC1155Enumerable
*/
Expand Down Expand Up @@ -218,7 +219,7 @@ export function useTotalCirculatingSupply(
* ```
*
* @param contract - an instance of a {@link NFTContract}
* @param ownerWalletAddress - the wallet adress to get owned tokens for
* @param ownerWalletAddress - the wallet address to get owned tokens for
* @returns a response object that includes the list of owned tokens
* @beta
* @twfeature ERC721Enumerable | ERC1155Enumerable | ERC721Supply
Expand Down Expand Up @@ -261,7 +262,8 @@ export function useOwnedNFTs<TContract extends NFTContract>(
* ```
*
* @param contract - an instance of a {@link NFTContract}
* @param ownerWalletAddress - the wallet adress to check the balance of
* @param ownerWalletAddress - the wallet address to check the balance of
* @param tokenId - required for ERC1155, the tokenId to look up
* @returns a response object that includes the total balance of the owner
* @twfeature ERC721 | ERC1155
* @beta
Expand Down Expand Up @@ -465,9 +467,9 @@ export function useMintNFTSupply(contract: Erc1155) {
* return (
* <button
* disabled={isLoading}
* onClick={() => transferNFT({
* to: "{{wallet_address}}",
* tokenId: 2
* onClick={() => transferNFT({
* to: "{{wallet_address}}",
* tokenId: 2
* })}
* >
* Transfer
Expand Down Expand Up @@ -538,7 +540,7 @@ export function useTransferNFT<TContract extends NFTContract>(
* onClick={() => airdropNFT({
* tokenId: 2,
* addresses: [
* { address: "{{wallet_address}}", quantity: 2 },
* { address: "{{wallet_address}}", quantity: 2 },
* { address: "{{wallet_address}}", quantity: 4 } }
* ]
* )}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/evm/hooks/async/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import invariant from "tiny-invariant";
* ```
*
* @param contract - an instance of a {@link TokenContract}
* @returns a response object that incudes the total minted supply
* @returns a response object that includes the total minted supply
* @twfeature ERC20
* @beta
*/
Expand Down Expand Up @@ -214,7 +214,7 @@ export function useMintToken(contract: RequiredParam<TokenContract>) {
* ```
*
* @param contract - an instance of a {@link TokenContract}
* @returns a mutation object that can be used to tokens to the wallet specificed in the params
* @returns a mutation object that can be used to tokens to the wallet specified in the params
* @twfeature ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1
* @beta
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { showDeprecationWarning } from "../../utils/deprecation-warning";
import { useContract } from "../async/contracts";

/**
* Hook for getting an instance of an `EditionDrop` contract. This conract is used to interface with ERC1155 compliant NFTs that can be lazily minted.
* Hook for getting an instance of an `EditionDrop` contract. This contract is used to interface with ERC1155 compliant NFTs that can be lazily minted.
* @param contractAddress - the address of the Edition Drop contract, found in your thirdweb dashboard
*
* @example
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/evm/hooks/contracts/useSplit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useContract } from "../async/contracts";
*
* // Now you can use the split contract in the rest of the component
*
* // For example, this function will retrun all the receipients of the split
* // For example, this function will return all the recipients of the split
* async function getRecipients() {
* const recipients = await contract.getAllRecipients()
* return recipients
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/evm/hooks/useNetworkMismatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useChainId } from "./wallet";
* Hook for checking whether the connected wallet is on the correct network specified by the `network` passed to the `<ThirdwebProvider />`.
*
* ```javascript
* import { useNetworkMistmatch } from "@thirdweb-dev/react"
* import { useNetworkMismatch } from "@thirdweb-dev/react"
* ```
*
* @returns `true` if the chainId of the connected wallet is different from the chainId of the network passed into <ThirdwebProvider />
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/solana/hooks/auth/useUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function useUser<
"Please specify an authUrl in the authConfig.",
);

// We include credentials so we can getUser even if API is on different URL
// We include credentials, so we can getUser even if API is on different URL
const res = await fetch(`${authConfig.authUrl}/user`, {
credentials: "include",
});
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/solana/hooks/nft/useNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export function nftGetOneQuery(
/**
* Get the metadata for a minted NFT
* @param program - The NFT program to get NFT metadata from
* @param - tokenAdress - The mint address of the NFT to get the metadata of
*
* @param tokenAddress - The mint address of the NFT to get the metadata of *
* @example
* ```jsx
* import { useProgram, useNFT } from "@thirdweb-dev/react/solana";
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/solana/hooks/nft/useTotalSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function nftTotalSupplyQuery(
}

/**
* Get the totaly supply of NFTs on the program
* Get the total supply of NFTs on the program
* @param program - The NFT program to get the total supply of
*
* @example
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/solana/hooks/wallet/useBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function balanceQuery(sdk: RequiredParam<ThirdwebSDK>) {
/**
* Get the currently connected wallet balance
*
* @returns the balace of the connected wallet
* @returns the balance of the connected wallet
*/
export function useBalance() {
const sdk = useSDK();
Expand Down
3 changes: 0 additions & 3 deletions packages/react-native-compat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ buck-out/
android/app/libs
android/keystores/debug.keystore

# Expo
.expo/

# Turborepo
.turbo/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import UniversalProvider from "@walletconnect/universal-provider/dist/types/Univ
*
*
* @example
* We can allows user to connect their mobile wallets as follows:
* We can allow user to connect their mobile wallets as follows:
* ```javascript
* import { useWalletConnect } from "@thirdweb-dev/react-native"
*
Expand Down Expand Up @@ -59,20 +59,20 @@ export function useWalletConnect() {
}, [wagmiConnectError]);

useEffect(() => {
// wagmi storage doesn't support async storage on mobile so we need to manually connect
// wagmi storage doesn't support async storage on mobile, so we need to manually connect
// https://github.com/wagmi-dev/wagmi/discussions/1630
const getProvider = async () => {
const provider = await walletConnector.getProvider();
const univProvider = provider as unknown as UniversalProvider;

// waiting on wagmi to update to latest universal provider (tag 2.4.2)
// waiting on wagmi to update the latest universal provider (tag 2.4.2)
// univProvider.client.on('session_request_sent', ({ topic, request, chainId }) => {
// // redirect to wallet
// Linking.openURL(displayUri);
// });

if (univProvider.client.session.length > 0) {
// wc client does not report a successful initialization
// wc client does not report a successful initialization,
// so we need to wait for it to initialize before connecting
setTimeout(() => {
connect({ connector: walletConnector });
Expand Down
3 changes: 0 additions & 3 deletions packages/react/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
/test-results/
/playwright-report/
/playwright/.cache/
etc/
temp/
temp-evm/
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/core/query-utils/required-param.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import invariant from "tiny-invariant";

/**
* Makes a parameter required to be passed, but still allowes it to be null or undefined.
* Makes a parameter required to be passed, but still allows it to be null or undefined.
*
* @beta
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/evm/connectors/gnosis-safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
useContext as useWagmiContext,
} from "wagmi";

// exerpt from https://docs.gnosis-safe.io/backend/available-services
// excerpt from https://docs.gnosis-safe.io/backend/available-services
const CHAIN_ID_TO_GNOSIS_SERVER_URL = {
// mainnet
1: "https://safe-transaction-mainnet.safe.global",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/evm/hooks/connectors/useMetamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function useMetamask() {
});
}

// otherwise we have MM avaiable, so we can just use it
// otherwise we have MM available, so we can just use it
return await connect(connector);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ globalThis.Buffer = Buffer;
*
*
* @example
* We can allows user to connect their mobile wallets as follows:
* We can allow user to connect their mobile wallets as follows:
* ```javascript
* import { useWalletConnect } from "@thirdweb-dev/react"
*
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/evm/hooks/connectors/useWalletLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function useCoinbaseWallet() {
}

/**
* Convienience hook for connecting to a wallet via WalletLink (coinbase wallet)
* Convenience hook for connecting to a wallet via WalletLink (coinbase wallet)
* @returns a function that will prompt the user to connect their wallet via WalletLink (coinbase wallet)
* @internal
*/
Expand Down
1 change: 0 additions & 1 deletion packages/sdk/src/evm/common/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @internal
*/
// @ts-expext-error window is not defined
export const isBrowser = () => typeof window !== "undefined";

/**
Expand Down
Loading

0 comments on commit 6ef52dc

Please sign in to comment.