Skip to content

Commit 9ce0b55

Browse files
omahsnkrishang
andauthored
Fix typos (#507)
* fix typos Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typos Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typos Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> * fix typo Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> --------- Signed-off-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: nkrishang <62195808+nkrishang@users.noreply.github.com>
1 parent a6d3368 commit 9ce0b55

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

contracts/prebuilts/account/interface/IEntrypoint.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ interface IEntryPoint is IStakeManager, INonceManager {
211211
* it performs full validation of the UserOperation, but ignores signature error.
212212
* an optional target address is called after the userop succeeds, and its value is returned
213213
* (before the entire call is reverted)
214-
* Note that in order to collect the the success/failure of the target call, it must be executed
214+
* Note that in order to collect the success/failure of the target call, it must be executed
215215
* with trace enabled to track the emitted events.
216216
* @param op the UserOperation to simulate
217217
* @param target if nonzero, a target address to call after userop simulation. If called, the targetSuccess and targetResult

contracts/prebuilts/drop/drop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ There are a few key differences between the three implementations —
160160

161161
The distribution mechanism of thirdweb’s `Drop` contracts is vulnerable to [sybil attacks](https://en.wikipedia.org/wiki/Sybil_attack). That is, despite the various ways in which restrictions can be applied to the minting of tokens, some restrictions that claim conditions can express target wallets and not persons.
162162

163-
For example, the restriction `quantityLimitPerWallet` expresses the max quantity a _wallet_ can claim during the respective claim condition. A sophisticated actor may generate multiple wallets to claim tokens in a way that undermine such restrictions, when viewing such restrictions as restrictions on unique persons, and not wallets.
163+
For example, the restriction `quantityLimitPerWallet` expresses the max quantity a _wallet_ can claim during the respective claim condition. A sophisticated actor may generate multiple wallets to claim tokens in a way that undermines such restrictions, when viewing such restrictions as restrictions on unique persons, and not wallets.
164164

165165
### Allowlist behavior
166166

167-
When specifiying allowlist of addresses, and quantities, price, etc. for those addresses, contract admins must ensure that they don't list an address more than once in the same merkle tree.
167+
When specifying allowlist of addresses, and quantities, price, etc. for those addresses, contract admins must ensure that they don't list an address more than once in the same merkle tree.
168168

169169
For e.g. admin wishes to grant user X permission to mint 2 tokens at 0.25 ETH, and 4 tokens at 0.5 ETH. In this case, the contract design will not permit the user X to claim 6 tokens with different prices as desired. Instead, the user may be limited to claiming just 2 tokens or 4 tokens based on their order of claiming.
170170

contracts/prebuilts/interface/IPack.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ interface IPack is ITokenBundle {
4747
* @param amountDistributedPerOpen The number of reward units distributed per open.
4848
* @param recipient The recipient of the packs created.
4949
*
50-
* @return packId The unique identifer of the created set of packs.
50+
* @return packId The unique identifier of the created set of packs.
5151
* @return packTotalSupply The total number of packs created.
5252
*/
5353
function createPack(

contracts/prebuilts/interface/IPackVRFDirect.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface IPackVRFDirect is ITokenBundle {
5050
* @param amountDistributedPerOpen The number of reward units distributed per open.
5151
* @param recipient The recipient of the packs created.
5252
*
53-
* @return packId The unique identifer of the created set of packs.
53+
* @return packId The unique identifier of the created set of packs.
5454
* @return packTotalSupply The total number of packs created.
5555
*/
5656
function createPack(

contracts/prebuilts/interface/airdrop/IAirdropERC1155.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface IAirdropERC1155 {
3838
* which acts as operator for the tokens.
3939
*
4040
* @param tokenAddress The contract address of the tokens to transfer.
41-
* @param tokenOwner The owner of the the tokens to transfer.
41+
* @param tokenOwner The owner of the tokens to transfer.
4242
* @param contents List containing recipient, tokenId to airdrop.
4343
*/
4444
function airdropERC1155(

contracts/prebuilts/interface/airdrop/IAirdropERC20.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface IAirdropERC20 {
3535
* which acts as operator for the tokens.
3636
*
3737
* @param tokenAddress The contract address of the tokens to transfer.
38-
* @param tokenOwner The owner of the the tokens to transfer.
38+
* @param tokenOwner The owner of the tokens to transfer.
3939
* @param contents List containing recipient, tokenId to airdrop.
4040
*/
4141
function airdropERC20(

contracts/prebuilts/interface/airdrop/IAirdropERC721.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface IAirdropERC721 {
3535
* which acts as operator for the tokens.
3636
*
3737
* @param tokenAddress The contract address of the tokens to transfer.
38-
* @param tokenOwner The owner of the the tokens to transfer.
38+
* @param tokenOwner The owner of the tokens to transfer.
3939
* @param contents List containing recipient, tokenId to airdrop.
4040
*/
4141
function airdropERC721(

contracts/prebuilts/interface/marketplace/IMarketplace.sol

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
2424
/**
2525
* @notice The information related to either (1) an offer on a direct listing, or (2) a bid in an auction.
2626
*
27-
* @dev The type of the listing at ID `lisingId` determins how the `Offer` is interpreted.
27+
* @dev The type of the listing at ID `lisingId` determines how the `Offer` is interpreted.
2828
* If the listing is of type `Direct`, the `Offer` is interpreted as an offer to a direct listing.
2929
* If the listing is of type `Auction`, the `Offer` is interpreted as a bid in an auction.
3030
*
@@ -209,9 +209,9 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
209209
* @notice Lets a listing's creator edit the listing's parameters. A direct listing can be edited whenever.
210210
* An auction listing cannot be edited after the auction has started.
211211
*
212-
* @param _listingId The uid of the lisitng to edit.
212+
* @param _listingId The uid of the listing to edit.
213213
*
214-
* @param _quantityToList The amount of NFTs to list for sale in the listing. For direct lisitngs, the contract
214+
* @param _quantityToList The amount of NFTs to list for sale in the listing. For direct listings, the contract
215215
* only checks whether the listing creator owns and has approved Marketplace to transfer
216216
* `_quantityToList` amount of NFTs to list for sale. For auction listings, the contract
217217
* ensures that exactly `_quantityToList` amount of NFTs to list are escrowed.
@@ -248,14 +248,14 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
248248
/**
249249
* @notice Lets a direct listing creator cancel their listing.
250250
*
251-
* @param _listingId The unique Id of the lisitng to cancel.
251+
* @param _listingId The unique Id of the listing to cancel.
252252
*/
253253
function cancelDirectListing(uint256 _listingId) external;
254254

255255
/**
256256
* @notice Lets someone buy a given quantity of tokens from a direct listing by paying the fixed price.
257257
*
258-
* @param _listingId The uid of the direct lisitng to buy from.
258+
* @param _listingId The uid of the direct listing to buy from.
259259
* @param _buyFor The receiver of the NFT being bought.
260260
* @param _quantity The amount of NFTs to buy from the direct listing.
261261
* @param _currency The currency to pay the price in.
@@ -265,7 +265,7 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
265265
* (1) buyer does not own or has not approved Marketplace to transfer the appropriate
266266
* amount of currency (or hasn't sent the appropriate amount of native tokens)
267267
*
268-
* (2) the lister does not own or has removed Markeplace's
268+
* (2) the lister does not own or has removed Marketplace's
269269
* approval to transfer the tokens listed for sale.
270270
*/
271271
function buy(
@@ -283,7 +283,7 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
283283
* makes two offers to the same direct listing, the last offer is counted as the buyer's
284284
* offer to that listing.
285285
*
286-
* @param _listingId The unique ID of the lisitng to make an offer/bid to.
286+
* @param _listingId The unique ID of the listing to make an offer/bid to.
287287
*
288288
* @param _quantityWanted For auction listings: the 'quantity wanted' is the total amount of NFTs
289289
* being auctioned, regardless of the value of `_quantityWanted` passed.
@@ -297,7 +297,7 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
297297
* @param _pricePerToken For direct listings: offered price per token. For auction listings: the bid
298298
* amount per token. The total offer/bid amount is `_quantityWanted * _pricePerToken`.
299299
*
300-
* @param _expirationTimestamp For aution listings: inapplicable. For direct listings: The timestamp after which
300+
* @param _expirationTimestamp For auction listings: inapplicable. For direct listings: The timestamp after which
301301
* the seller can no longer accept the offer.
302302
*/
303303
function offer(
@@ -324,7 +324,7 @@ interface IMarketplace is IThirdwebContract, IPlatformFee {
324324

325325
/**
326326
* @notice Lets any account close an auction on behalf of either the (1) auction's creator, or (2) winning bidder.
327-
* For (1): The auction creator is sent the the winning bid amount.
327+
* For (1): The auction creator is sent the winning bid amount.
328328
* For (2): The winning bidder is sent the auctioned NFTs.
329329
*
330330
* @param _listingId The uid of the listing (the auction to close).

contracts/prebuilts/multiwrap/multiwrap.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The single wrapped token received on bundling up multiple assets, as mentioned a
2020

2121
A token owner should be able to wrap any combination of *n* ERC20, ERC721 or ERC1155 tokens as a wrapped NFT. When wrapping, the token owner should be able to specify a recipient for the wrapped NFT. At the time of wrapping, the token owner should be able to set the metadata of the wrapped NFT that will be minted.
2222

23-
The wrapped NFT owner should be able to unwrap the the NFT to retrieve the underlying tokens of the wrapped NFT. At the time of unwrapping, the wrapped NFT owner should be able to specify a recipient for the underlying tokens of the wrapped NFT.
23+
The wrapped NFT owner should be able to unwrap the NFT to retrieve the underlying tokens of the wrapped NFT. At the time of unwrapping, the wrapped NFT owner should be able to specify a recipient for the underlying tokens of the wrapped NFT.
2424

2525
The `Multiwrap` contract creator should be able to apply the following role-based restrictions:
2626

@@ -136,4 +136,4 @@ What does **Type (Switch / !Switch)** mean?
136136

137137
## Authors
138138
- [nkrishang](https://github.com/nkrishang)
139-
- [thirdweb team](https://github.com/thirdweb-dev)
139+
- [thirdweb team](https://github.com/thirdweb-dev)

contracts/prebuilts/pack/pack.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ We’ll now go over the technical details of the `Pack` contract, with reference
5454

5555
## What can be packed in packs?
5656

57-
You can create a set of packs with any combination of any number of ERC20, ERC721 and ERC1155 tokens. For example, you can create a set of packs with 10,000 [USDC](https://www.circle.com/en/usdc) (ERC20), 1 [Bored Ape Yatch Club](https://opensea.io/collection/boredapeyachtclub) NFT (ERC721), and 50 of [adidas originals’ first NFT](https://opensea.io/assets/0x28472a58a490c5e09a238847f66a68a47cc76f0f/0) (ERC1155).
57+
You can create a set of packs with any combination of any number of ERC20, ERC721 and ERC1155 tokens. For example, you can create a set of packs with 10,000 [USDC](https://www.circle.com/en/usdc) (ERC20), 1 [Bored Ape Yacht Club](https://opensea.io/collection/boredapeyachtclub) NFT (ERC721), and 50 of [adidas originals’ first NFT](https://opensea.io/assets/0x28472a58a490c5e09a238847f66a68a47cc76f0f/0) (ERC1155).
5858

5959
With strictly non-fungible tokens i.e. ERC721 NFTs, each NFT has a supply of 1. This means if a pack is opened and an ERC721 NFT is selected by the `Pack` contract to be distributed to the opener, that 1 NFT will be distributed to the opener.
6060

@@ -79,7 +79,7 @@ uint256 perUnitAmount;
7979
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8080
| assetContract | The contract address of the token. |
8181
| tokenType | The type of the token -- ERC20 / ERC721 / ERC1155 |
82-
| tokenId | The tokenId of the the token. (Not applicable for ERC20 tokens. The contract will ignore this value for ERC20 tokens.) |
82+
| tokenId | The tokenId of the token. (Not applicable for ERC20 tokens. The contract will ignore this value for ERC20 tokens.) |
8383
| totalAmount | The total amount of this token packed in the pack. (Not applicable for ERC721 tokens. The contract will always consider this as 1 for ERC721 tokens.) |
8484
| perUnitAmount | The amount of this token to distribute as a unit, on opening a pack. (Not applicable for ERC721 tokens. The contract will always consider this as 1 for ERC721 tokens.) |
8585

@@ -120,7 +120,7 @@ Since packs are ERC1155 tokens, you can publish multiple sets of packs using the
120120

121121
### Supply of packs
122122

123-
When creating packs, you can specify the numer of reward units to distribute to the opener on opening a pack. And so, when creating a set of packs, the total number of packs in that set is calculated as:
123+
When creating packs, you can specify the number of reward units to distribute to the opener on opening a pack. And so, when creating a set of packs, the total number of packs in that set is calculated as:
124124

125125
`total_supply_of_packs = (total_reward_units) / (reward_units_to_distribute_per_open)`
126126

contracts/prebuilts/unaudited/airdrop/AirdropERC1155.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contract AirdropERC1155 is
8686
* which acts as operator for the tokens.
8787
*
8888
* @param _tokenAddress The contract address of the tokens to transfer.
89-
* @param _tokenOwner The owner of the the tokens to transfer.
89+
* @param _tokenOwner The owner of the tokens to transfer.
9090
* @param _contents List containing recipient, tokenId and amounts to airdrop.
9191
*/
9292
function airdropERC1155(

contracts/prebuilts/unaudited/airdrop/AirdropERC20.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ contract AirdropERC20 is
8787
* which acts as operator for the tokens.
8888
*
8989
* @param _tokenAddress The contract address of the tokens to transfer.
90-
* @param _tokenOwner The owner of the the tokens to transfer.
90+
* @param _tokenOwner The owner of the tokens to transfer.
9191
* @param _contents List containing recipient, tokenId and amounts to airdrop.
9292
*/
9393
function airdropERC20(

contracts/prebuilts/unaudited/airdrop/AirdropERC721.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contract AirdropERC721 is
8686
* which acts as operator for the tokens.
8787
*
8888
* @param _tokenAddress The contract address of the tokens to transfer.
89-
* @param _tokenOwner The owner of the the tokens to transfer.
89+
* @param _tokenOwner The owner of the tokens to transfer.
9090
* @param _contents List containing recipient, tokenId to airdrop.
9191
*/
9292
function airdropERC721(

0 commit comments

Comments
 (0)