From 20d612cf8b66c85050d185b091c851823cdde0fa Mon Sep 17 00:00:00 2001 From: Alex <12097569+nialexsan@users.noreply.github.com> Date: Wed, 17 May 2023 12:04:49 -0400 Subject: [PATCH] Load dynamically generated docs (#85) * remove dynamic pages * ignore dynamic files * edit link * add jq * jq alias * use cp instead of rsync * fix copy path * copy content * try another path * another try * clean up docusaurus config --- .gitignore | 4 + .../flow-ft/ExampleToken/ExampleToken.md | 160 ----- .../ExampleToken_Administrator.md | 33 - .../ExampleToken/ExampleToken_Burner.md | 24 - .../ExampleToken/ExampleToken_Minter.md | 34 - .../ExampleToken/ExampleToken_Vault.md | 96 --- .../flow-ft/FungibleToken/FungibleToken.md | 121 ---- .../FungibleToken/FungibleToken_Balance.md | 40 -- .../FungibleToken/FungibleToken_Provider.md | 41 -- .../FungibleToken/FungibleToken_Receiver.md | 27 - .../FungibleToken/FungibleToken_Vault.md | 49 -- .../FungibleTokenMetadataViews.md | 133 ---- .../FungibleTokenMetadataViews_FTDisplay.md | 30 - .../FungibleTokenMetadataViews_FTVaultData.md | 34 - .../FungibleTokenMetadataViews_FTView.md | 22 - .../FungibleTokenSwitchboard.md | 91 --- .../FungibleTokenSwitchboard_Switchboard.md | 144 ---- ...gibleTokenSwitchboard_SwitchboardPublic.md | 35 - .../flow-ft/{index.mdx => index.md} | 0 .../flow-nft/ExampleNFT/ExampleNFT.md | 128 ---- .../ExampleNFT/ExampleNFT_Collection.md | 112 --- .../ExampleNFT_ExampleNFTCollectionPublic.md | 41 -- .../flow-nft/ExampleNFT/ExampleNFT_NFT.md | 63 -- .../ExampleNFT/ExampleNFT_NFTMinter.md | 27 - .../flow-nft/MetdataViews/MetadataViews.md | 604 ---------------- .../MetdataViews/MetadataViews_Display.md | 23 - .../MetdataViews/MetadataViews_Edition.md | 26 - .../MetdataViews/MetadataViews_Editions.md | 18 - .../MetdataViews/MetadataViews_ExternalURL.md | 20 - .../MetdataViews/MetadataViews_File.md | 18 - .../MetdataViews/MetadataViews_HTTPFile.md | 31 - .../MetdataViews/MetadataViews_IPFSFile.md | 40 -- .../MetdataViews/MetadataViews_License.md | 19 - .../MetdataViews/MetadataViews_Media.md | 20 - .../MetdataViews/MetadataViews_Medias.md | 18 - .../MetadataViews_NFTCollectionData.md | 32 - .../MetadataViews_NFTCollectionDisplay.md | 30 - .../MetdataViews/MetadataViews_NFTView.md | 34 - .../MetdataViews/MetadataViews_Rarity.md | 24 - .../MetdataViews/MetadataViews_Resolver.md | 27 - .../MetadataViews_ResolverCollection.md | 25 - .../MetdataViews/MetadataViews_Royalties.md | 32 - .../MetdataViews/MetadataViews_Royalty.md | 23 - .../MetdataViews/MetadataViews_Serial.md | 22 - .../MetdataViews/MetadataViews_Trait.md | 26 - .../MetdataViews/MetadataViews_Traits.md | 33 - .../NonFungibleToken/NonFungibleToken.md | 143 ---- .../NonFungibleToken_Collection.md | 56 -- .../NonFungibleToken_CollectionPublic.md | 42 -- .../NonFungibleToken/NonFungibleToken_INFT.md | 42 -- .../NonFungibleToken/NonFungibleToken_NFT.md | 15 - .../NonFungibleToken_Provider.md | 23 - .../NonFungibleToken_Receiver.md | 21 - .../flow-nft/{index.mdx => index.md} | 0 docusaurus.config.js | 95 +-- package.json | 3 +- scripts/import.sh | 6 +- src/data/data-sources.json | 240 +------ yarn.lock | 657 +++++++++++++++++- 59 files changed, 708 insertions(+), 3269 deletions(-) delete mode 100644 docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken.md delete mode 100644 docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Administrator.md delete mode 100644 docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Burner.md delete mode 100644 docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Minter.md delete mode 100644 docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Vault.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Balance.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Provider.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Receiver.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Vault.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTDisplay.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTVaultData.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTView.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_Switchboard.md delete mode 100644 docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_SwitchboardPublic.md rename docs/concepts/token-standards/flow-ft/{index.mdx => index.md} (100%) delete mode 100644 docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT.md delete mode 100644 docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_Collection.md delete mode 100644 docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_ExampleNFTCollectionPublic.md delete mode 100644 docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFT.md delete mode 100644 docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFTMinter.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Display.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Edition.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Editions.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ExternalURL.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_File.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_HTTPFile.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_IPFSFile.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_License.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Media.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Medias.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionData.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionDisplay.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTView.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Rarity.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Resolver.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ResolverCollection.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalties.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalty.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Serial.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Trait.md delete mode 100644 docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Traits.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Collection.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_CollectionPublic.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_INFT.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_NFT.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Provider.md delete mode 100644 docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Receiver.md rename docs/concepts/token-standards/flow-nft/{index.mdx => index.md} (100%) diff --git a/.gitignore b/.gitignore index 6c81732c21..ef67c1ecb6 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,7 @@ yarn-error.log* /docs/unsorted .idea/ +docs/concepts/token-standards/flow-ft +!docs/concepts/token-standards/flow-ft/index.md +docs/concepts/token-standards/flow-nft +!docs/concepts/token-standards/flow-nft/index.md diff --git a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken.md b/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken.md deleted file mode 100644 index e29363bfcb..0000000000 --- a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken.md +++ /dev/null @@ -1,160 +0,0 @@ -# Contract `ExampleToken` - -```cadence -contract ExampleToken { - - totalSupply: UFix64 - - VaultStoragePath: StoragePath - - ReceiverPublicPath: PublicPath - - VaultPublicPath: PublicPath - - AdminStoragePath: StoragePath -} -``` - - -Implemented Interfaces: - - `FungibleToken` - -## Structs & Resources - -### resource `Vault` - -```cadence -resource Vault { - - balance: UFix64 -} -``` -Each user stores an instance of only the Vault in their storage -The functions in the Vault and governed by the pre and post conditions -in FungibleToken when they are called. -The checks happen at runtime whenever a function is called. - -Resources can only be created in the context of the contract that they -are defined in, so there is no way for a malicious user to create Vaults -out of thin air. A special Minter resource needs to be defined to mint -new tokens. - -[More...](./ExampleToken_Vault.md) - ---- - -### resource `Administrator` - -```cadence -resource Administrator { -} -``` - -[More...](./ExampleToken_Administrator.md) - ---- - -### resource `Minter` - -```cadence -resource Minter { - - allowedAmount: UFix64 -} -``` -Resource object that token admin accounts can hold to mint new tokens. - -[More...](./ExampleToken_Minter.md) - ---- - -### resource `Burner` - -```cadence -resource Burner { -} -``` -Resource object that token admin accounts can hold to burn tokens. - -[More...](./ExampleToken_Burner.md) - ---- -## Functions - -### fun `createEmptyVault()` - -```cadence -func createEmptyVault(): Vault -``` -Function that creates a new Vault with a balance of zero -and returns it to the calling context. A user must call this function -and store the returned Vault in their storage in order to allow their -account to be able to receive deposits of this token type. - -Returns: The new Vault resource - ---- -## Events - -### event `TokensInitialized` - -```cadence -event TokensInitialized(initialSupply UFix64) -``` -The event that is emitted when the contract is created - ---- - -### event `TokensWithdrawn` - -```cadence -event TokensWithdrawn(amount UFix64, from Address?) -``` -The event that is emitted when tokens are withdrawn from a Vault - ---- - -### event `TokensDeposited` - -```cadence -event TokensDeposited(amount UFix64, to Address?) -``` -The event that is emitted when tokens are deposited to a Vault - ---- - -### event `TokensMinted` - -```cadence -event TokensMinted(amount UFix64) -``` -The event that is emitted when new tokens are minted - ---- - -### event `TokensBurned` - -```cadence -event TokensBurned(amount UFix64) -``` -The event that is emitted when tokens are destroyed - ---- - -### event `MinterCreated` - -```cadence -event MinterCreated(allowedAmount UFix64) -``` -The event that is emitted when a new minter resource is created - ---- - -### event `BurnerCreated` - -```cadence -event BurnerCreated() -``` -The event that is emitted when a new burner resource is created - ---- diff --git a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Administrator.md b/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Administrator.md deleted file mode 100644 index c375b5f0e2..0000000000 --- a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Administrator.md +++ /dev/null @@ -1,33 +0,0 @@ -# Resource `Administrator` - -```cadence -resource Administrator { -} -``` - -## Functions - -### fun `createNewMinter()` - -```cadence -func createNewMinter(allowedAmount UFix64): Minter -``` -Function that creates and returns a new minter resource - -Parameters: - - allowedAmount : _The maximum quantity of tokens that the minter could create_ - -Returns: The Minter resource that would allow to mint tokens - ---- - -### fun `createNewBurner()` - -```cadence -func createNewBurner(): Burner -``` -Function that creates and returns a new burner resource - -Returns: The Burner resource - ---- diff --git a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Burner.md b/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Burner.md deleted file mode 100644 index c5f0b7618d..0000000000 --- a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Burner.md +++ /dev/null @@ -1,24 +0,0 @@ -# Resource `Burner` - -```cadence -resource Burner { -} -``` - -Resource object that token admin accounts can hold to burn tokens. -## Functions - -### fun `burnTokens()` - -```cadence -func burnTokens(from FungibleToken.Vault) -``` -Function that destroys a Vault instance, effectively burning the tokens. - -Note: the burned tokens are automatically subtracted from the -total supply in the Vault destructor. - -Parameters: - - from : _The Vault resource containing the tokens to burn_ - ---- diff --git a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Minter.md b/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Minter.md deleted file mode 100644 index 2f5ee34388..0000000000 --- a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Minter.md +++ /dev/null @@ -1,34 +0,0 @@ -# Resource `Minter` - -```cadence -resource Minter { - - allowedAmount: UFix64 -} -``` - -Resource object that token admin accounts can hold to mint new tokens. - -### Initializer - -```cadence -func init(allowedAmount UFix64) -``` - - -## Functions - -### fun `mintTokens()` - -```cadence -func mintTokens(amount UFix64): ExampleToken.Vault -``` -Function that mints new tokens, adds them to the total supply, -and returns them to the calling context. - -Parameters: - - amount : _The quantity of tokens to mint_ - -Returns: The Vault resource containing the minted tokens - ---- diff --git a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Vault.md b/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Vault.md deleted file mode 100644 index 1d3985131f..0000000000 --- a/docs/concepts/token-standards/flow-ft/ExampleToken/ExampleToken_Vault.md +++ /dev/null @@ -1,96 +0,0 @@ -# Resource `Vault` - -```cadence -resource Vault { - - balance: UFix64 -} -``` - -Each user stores an instance of only the Vault in their storage -The functions in the Vault and governed by the pre and post conditions -in FungibleToken when they are called. -The checks happen at runtime whenever a function is called. - -Resources can only be created in the context of the contract that they -are defined in, so there is no way for a malicious user to create Vaults -out of thin air. A special Minter resource needs to be defined to mint -new tokens. - -Implemented Interfaces: - - `FungibleToken.Provider` - - `FungibleToken.Receiver` - - `FungibleToken.Balance` - - `MetadataViews.Resolver` - - -### Initializer - -```cadence -func init(balance UFix64) -``` - - -## Functions - -### fun `withdraw()` - -```cadence -func withdraw(amount UFix64): FungibleToken.Vault -``` -Function that takes an amount as an argument -and withdraws that amount from the Vault. -It creates a new temporary Vault that is used to hold -the money that is being transferred. It returns the newly -created Vault to the context that called so it can be deposited -elsewhere. - -Parameters: - - amount : _The amount of tokens to be withdrawn from the vault_ - -Returns: The Vault resource containing the withdrawn funds - ---- - -### fun `deposit()` - -```cadence -func deposit(from FungibleToken.Vault) -``` -Function that takes a Vault object as an argument and adds -its balance to the balance of the owners Vault. -It is allowed to destroy the sent Vault because the Vault -was a temporary holder of the tokens. The Vault's balance has -been consumed and therefore can be destroyed. - -Parameters: - - from : _The Vault resource containing the funds that will be deposited_ - ---- - -### fun `getViews()` - -```cadence -func getViews(): [Type] -``` -The way of getting all the Metadata Views implemented by ExampleToken - -developers to know which parameter to pass to the resolveView() method. - -Returns: An array of Types defining the implemented views. This value will be used by - ---- - -### fun `resolveView()` - -```cadence -func resolveView(_ Type): AnyStruct? -``` -The way of getting a Metadata View out of the ExampleToken - -Parameters: - - view : _The Type of the desired view._ - -Returns: A structure representing the requested view. - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken.md b/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken.md deleted file mode 100644 index 4f162442f3..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken.md +++ /dev/null @@ -1,121 +0,0 @@ -# Contract Interface `FungibleToken` - -```cadence -contract interface FungibleToken { - - totalSupply: UFix64 -} -``` - -The interface that Fungible Token contracts implement. -## Interfaces - -### resource interface `Provider` - -```cadence -resource interface Provider { -} -``` -The interface that enforces the requirements for withdrawing -tokens from the implementing type. - -It does not enforce requirements on `balance` here, -because it leaves open the possibility of creating custom providers -that do not necessarily need their own balance. - -[More...](./FungibleToken_Provider.md) - ---- - -### resource interface `Receiver` - -```cadence -resource interface Receiver { -} -``` -The interface that enforces the requirements for depositing -tokens into the implementing type. - -We do not include a condition that checks the balance because -we want to give users the ability to make custom receivers that -can do custom things with the tokens, like split them up and -send them to different places. - -[More...](./FungibleToken_Receiver.md) - ---- - -### resource interface `Balance` - -```cadence -resource interface Balance { - - balance: UFix64 -} -``` -The interface that contains the `balance` field of the Vault -and enforces that when new Vaults are created, the balance -is initialized correctly. - -[More...](./FungibleToken_Balance.md) - ---- -## Structs & Resources - -### resource `Vault` - -```cadence -resource Vault { - - balance: UFix64 -} -``` -The resource that contains the functions to send and receive tokens. -The declaration of a concrete type in a contract interface means that -every Fungible Token contract that implements the FungibleToken interface -must define a concrete `Vault` resource that conforms to the `Provider`, `Receiver`, -and `Balance` interfaces, and declares their required fields and functions - -[More...](./FungibleToken_Vault.md) - ---- -## Functions - -### fun `createEmptyVault()` - -```cadence -func createEmptyVault(): Vault -``` -Allows any user to create a new Vault that has a zero balance - -Returns: The new Vault resource - ---- -## Events - -### event `TokensInitialized` - -```cadence -event TokensInitialized(initialSupply UFix64) -``` -The event that is emitted when the contract is created - ---- - -### event `TokensWithdrawn` - -```cadence -event TokensWithdrawn(amount UFix64, from Address?) -``` -The event that is emitted when tokens are withdrawn from a Vault - ---- - -### event `TokensDeposited` - -```cadence -event TokensDeposited(amount UFix64, to Address?) -``` -The event that is emitted when tokens are deposited into a Vault - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Balance.md b/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Balance.md deleted file mode 100644 index 90529705db..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Balance.md +++ /dev/null @@ -1,40 +0,0 @@ -# Resource Interface `Balance` - -```cadence -resource interface Balance { - - balance: UFix64 -} -``` - -The interface that contains the `balance` field of the Vault -and enforces that when new Vaults are created, the balance -is initialized correctly. -## Functions - -### fun `getViews()` - -```cadence -func getViews(): [Type] -``` -Function that returns all the Metadata Views implemented by a Fungible Token - -developers to know which parameter to pass to the resolveView() method. - -Returns: An array of Types defining the implemented views. This value will be used by - ---- - -### fun `resolveView()` - -```cadence -func resolveView(_ Type): AnyStruct? -``` -Function that resolves a metadata view for this fungible token by type. - -Parameters: - - view : _The Type of the desired view._ - -Returns: A structure representing the requested view. - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Provider.md b/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Provider.md deleted file mode 100644 index fa47e733d8..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Provider.md +++ /dev/null @@ -1,41 +0,0 @@ -# Resource Interface `Provider` - -```cadence -resource interface Provider { -} -``` - -The interface that enforces the requirements for withdrawing -tokens from the implementing type. - -It does not enforce requirements on `balance` here, -because it leaves open the possibility of creating custom providers -that do not necessarily need their own balance. -## Functions - -### fun `withdraw()` - -```cadence -func withdraw(amount UFix64): Vault -``` -Subtracts tokens from the owner's Vault -and returns a Vault with the removed tokens. - -The function's access level is public, but this is not a problem -because only the owner storing the resource in their account -can initially call this function. - -The owner may grant other accounts access by creating a private -capability that allows specific other users to access -the provider resource through a reference. - -The owner may also grant all accounts access by creating a public -capability that allows all users to access the provider -resource through a reference. - -Parameters: - - amount : _The amount of tokens to be withdrawn from the vault_ - -Returns: The Vault resource containing the withdrawn funds - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Receiver.md b/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Receiver.md deleted file mode 100644 index 8e3c86bf9e..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Receiver.md +++ /dev/null @@ -1,27 +0,0 @@ -# Resource Interface `Receiver` - -```cadence -resource interface Receiver { -} -``` - -The interface that enforces the requirements for depositing -tokens into the implementing type. - -We do not include a condition that checks the balance because -we want to give users the ability to make custom receivers that -can do custom things with the tokens, like split them up and -send them to different places. -## Functions - -### fun `deposit()` - -```cadence -func deposit(from Vault) -``` -Takes a Vault and deposits it into the implementing resource type - -Parameters: - - from : _The Vault resource containing the funds that will be deposited_ - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Vault.md b/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Vault.md deleted file mode 100644 index 07ca726890..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleToken/FungibleToken_Vault.md +++ /dev/null @@ -1,49 +0,0 @@ -# Resource `Vault` - -```cadence -resource Vault { - - balance: UFix64 -} -``` - -The resource that contains the functions to send and receive tokens. -The declaration of a concrete type in a contract interface means that -every Fungible Token contract that implements the FungibleToken interface -must define a concrete `Vault` resource that conforms to the `Provider`, `Receiver`, -and `Balance` interfaces, and declares their required fields and functions - -Implemented Interfaces: - - `Provider` - - `Receiver` - - `Balance` - - -### Initializer - -```cadence -func init(balance UFix64) -``` - - -## Functions - -### fun `withdraw()` - -```cadence -func withdraw(amount UFix64): Vault -``` - ---- - -### fun `deposit()` - -```cadence -func deposit(from Vault) -``` -Takes a Vault and deposits it into the implementing resource type - -Parameters: - - from : _The Vault resource containing the funds that will be deposited_ - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews.md b/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews.md deleted file mode 100644 index cdbc536760..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews.md +++ /dev/null @@ -1,133 +0,0 @@ -# Contract `FungibleTokenMetadataViews` - -```cadence -contract FungibleTokenMetadataViews { -} -``` - -This contract implements the metadata standard proposed -in FLIP-1087. - -Ref: https://github.com/onflow/flips/blob/master/flips/20220811-fungible-tokens-metadata.md - -Structs and resources can implement one or more -metadata types, called views. Each view type represents -a different kind of metadata. -## Structs & Resources - -### struct `FTView` - -```cadence -struct FTView { - - ftDisplay: FTDisplay? - - ftVaultData: FTVaultData? -} -``` -FTView wraps FTDisplay and FTVaultData, and is used to give a complete -picture of a Fungible Token. Most Fungible Token contracts should -implement this view. - -[More...](./FungibleTokenMetadataViews_FTView.md) - ---- - -### struct `FTDisplay` - -```cadence -struct FTDisplay { - - name: String - - symbol: String - - description: String - - externalURL: MetadataViews.ExternalURL - - logos: MetadataViews.Medias - - socials: {String: MetadataViews.ExternalURL} -} -``` -View to expose the information needed to showcase this FT. -This can be used by applications to give an overview and -graphics of the FT. - -[More...](./FungibleTokenMetadataViews_FTDisplay.md) - ---- - -### struct `FTVaultData` - -```cadence -struct FTVaultData { - - storagePath: StoragePath - - receiverPath: PublicPath - - metadataPath: PublicPath - - providerPath: PrivatePath - - receiverLinkedType: Type - - metadataLinkedType: Type - - providerLinkedType: Type - - createEmptyVault: ((): @FungibleToken.Vault) -} -``` -View to expose the information needed store and interact with a FT vault. -This can be used by applications to setup a FT vault with proper -storage and public capabilities. - -[More...](./FungibleTokenMetadataViews_FTVaultData.md) - ---- -## Functions - -### fun `getFTView()` - -```cadence -func getFTView(viewResolver &{MetadataViews.Resolver}): FTView -``` -Helper to get a FT view. - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A FTView struct - ---- - -### fun `getFTDisplay()` - -```cadence -func getFTDisplay(_ &{MetadataViews.Resolver}): FTDisplay? -``` -Helper to get FTDisplay in a way that will return a typed optional. - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: An optional FTDisplay struct - ---- - -### fun `getFTVaultData()` - -```cadence -func getFTVaultData(_ &{MetadataViews.Resolver}): FTVaultData? -``` -Helper to get FTVaultData in a way that will return a typed Optional. - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional FTVaultData struct - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTDisplay.md b/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTDisplay.md deleted file mode 100644 index 28653aa258..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTDisplay.md +++ /dev/null @@ -1,30 +0,0 @@ -# Struct `FTDisplay` - -```cadence -struct FTDisplay { - - name: String - - symbol: String - - description: String - - externalURL: MetadataViews.ExternalURL - - logos: MetadataViews.Medias - - socials: {String: MetadataViews.ExternalURL} -} -``` - -View to expose the information needed to showcase this FT. -This can be used by applications to give an overview and -graphics of the FT. - -### Initializer - -```cadence -func init(name String, symbol String, description String, externalURL MetadataViews.ExternalURL, logos MetadataViews.Medias, socials {String: MetadataViews.ExternalURL}) -``` - - diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTVaultData.md b/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTVaultData.md deleted file mode 100644 index 7a23819e57..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTVaultData.md +++ /dev/null @@ -1,34 +0,0 @@ -# Struct `FTVaultData` - -```cadence -struct FTVaultData { - - storagePath: StoragePath - - receiverPath: PublicPath - - metadataPath: PublicPath - - providerPath: PrivatePath - - receiverLinkedType: Type - - metadataLinkedType: Type - - providerLinkedType: Type - - createEmptyVault: ((): @FungibleToken.Vault) -} -``` - -View to expose the information needed store and interact with a FT vault. -This can be used by applications to setup a FT vault with proper -storage and public capabilities. - -### Initializer - -```cadence -func init(storagePath StoragePath, receiverPath PublicPath, metadataPath PublicPath, providerPath PrivatePath, receiverLinkedType Type, metadataLinkedType Type, providerLinkedType Type, createEmptyVaultFunction ((): @FungibleToken.Vault)) -``` - - diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTView.md b/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTView.md deleted file mode 100644 index 0bb2b7168b..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenMetadataViews/FungibleTokenMetadataViews_FTView.md +++ /dev/null @@ -1,22 +0,0 @@ -# Struct `FTView` - -```cadence -struct FTView { - - ftDisplay: FTDisplay? - - ftVaultData: FTVaultData? -} -``` - -FTView wraps FTDisplay and FTVaultData, and is used to give a complete -picture of a Fungible Token. Most Fungible Token contracts should -implement this view. - -### Initializer - -```cadence -func init(ftDisplay FTDisplay?, ftVaultData FTVaultData?) -``` - - diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard.md b/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard.md deleted file mode 100644 index f5fc352ec9..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard.md +++ /dev/null @@ -1,91 +0,0 @@ -# Contract `FungibleTokenSwitchboard` - -```cadence -contract FungibleTokenSwitchboard { - - StoragePath: StoragePath - - PublicPath: PublicPath - - ReceiverPublicPath: PublicPath -} -``` - -The contract that allows an account to receive payments in multiple fungible -tokens using a single `{FungibleToken.Receiver}` capability. -This capability should ideally be stored at the -`FungibleTokenSwitchboard.ReceiverPublicPath = /public/GenericFTReceiver` -but it can be stored anywhere. -## Interfaces - -### resource interface `SwitchboardPublic` - -```cadence -resource interface SwitchboardPublic { -} -``` -The interface that enforces the method to allow anyone to check on the -available capabilities of a switchboard resource and also exposes the -deposit methods to deposit funds on it. - -[More...](./FungibleTokenSwitchboard_SwitchboardPublic.md) - ---- -## Structs & Resources - -### resource `Switchboard` - -```cadence -resource Switchboard { - - receiverCapabilities: {Type: Capability<&{FungibleToken.Receiver}>} -} -``` -The resource that stores the multiple fungible token receiver -capabilities, allowing the owner to add and remove them and anyone to -deposit any fungible token among the available types. - -[More...](./FungibleTokenSwitchboard_Switchboard.md) - ---- -## Functions - -### fun `createSwitchboard()` - -```cadence -func createSwitchboard(): Switchboard -``` -Function that allows to create a new blank switchboard. A user must call -this function and store the returned resource in their storage. - ---- -## Events - -### event `VaultCapabilityAdded` - -```cadence -event VaultCapabilityAdded(type Type, switchboardOwner Address?, capabilityOwner Address?) -``` -The event that is emitted when a new vault capability is added to a -switchboard resource. - ---- - -### event `VaultCapabilityRemoved` - -```cadence -event VaultCapabilityRemoved(type Type, switchboardOwner Address?, capabilityOwner Address?) -``` -The event that is emitted when a vault capability is removed from a -switchboard resource. - ---- - -### event `NotCompletedDeposit` - -```cadence -event NotCompletedDeposit(type Type, amount UFix64, switchboardOwner Address?) -``` -The event that is emitted when a deposit can not be completed. - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_Switchboard.md b/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_Switchboard.md deleted file mode 100644 index 0d61b834c2..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_Switchboard.md +++ /dev/null @@ -1,144 +0,0 @@ -# Resource `Switchboard` - -```cadence -resource Switchboard { - - receiverCapabilities: {Type: Capability<&{FungibleToken.Receiver}>} -} -``` - -The resource that stores the multiple fungible token receiver -capabilities, allowing the owner to add and remove them and anyone to -deposit any fungible token among the available types. - -Implemented Interfaces: - - `FungibleToken.Receiver` - - `SwitchboardPublic` - - -### Initializer - -```cadence -func init() -``` - - -## Functions - -### fun `addNewVault()` - -```cadence -func addNewVault(capability Capability<&{FungibleToken.Receiver}>) -``` -Adds a new fungible token receiver capability to the switchboard -resource. - -token vault deposit function through `{FungibleToken.Receiver}` that -will be added to the switchboard. - -Parameters: - - capability : _The capability to expose a certain fungible_ - ---- - -### fun `addNewVaultsByPath()` - -```cadence -func addNewVaultsByPath(paths [PublicPath], address Address) -``` -Adds a number of new fungible token receiver capabilities by using -the paths where they are stored. - -Parameters: - - paths : _The paths where the public capabilities are stored._ - - address : _The address of the owner of the capabilities._ - ---- - -### fun `addNewVaultWrapper()` - -```cadence -func addNewVaultWrapper(capability Capability<&{FungibleToken.Receiver}>, type Type) -``` -Adds a new fungible token receiver capability to the switchboard -resource specifying which `Type`of `@FungibleToken.Vault` can be -deposited to it. Use it to include in your switchboard "wrapper" -receivers such as a `@TokenForwarding.Forwarder`. It can also be -used to overwrite the type attached to a certain capability without -having to remove that capability first. - -token vault deposit function through `{FungibleToken.Receiver}` that -will be added to the switchboard. - -capability, rather than the `Type` from the reference borrowed from -said capability - -Parameters: - - capability : _The capability to expose a certain fungible_ - - type : _The type of fungible token that can be deposited to that_ - ---- - -### fun `removeVault()` - -```cadence -func removeVault(capability Capability<&{FungibleToken.Receiver}>) -``` -Removes a fungible token receiver capability from the switchboard -resource. - -removed from the switchboard. - -Parameters: - - capability : _The capability to a fungible token vault to be_ - ---- - -### fun `deposit()` - -```cadence -func deposit(from FungibleToken.Vault) -``` -Takes a fungible token vault and routes it to the proper fungible -token receiver capability for depositing it. - -Parameters: - - from : _The deposited fungible token vault resource._ - ---- - -### fun `safeDeposit()` - -```cadence -func safeDeposit(from FungibleToken.Vault): FungibleToken.Vault? -``` -Takes a fungible token vault and tries to route it to the proper -fungible token receiver capability for depositing the funds, -avoiding panicking if the vault is not available. - -deposited. - -funds if the deposit was successful, or still containing the funds -if the reference to the needed vault was not found. - -Parameters: - - vaultType : _The type of the ft vault that wants to be_ - -Returns: The deposited fungible token vault resource, without the - ---- - -### fun `getVaultTypes()` - -```cadence -func getVaultTypes(): [Type] -``` -A getter function to know which tokens a certain switchboard -resource is prepared to receive. - -`{FungibleToken.Receiver}` capabilities that can be effectively -borrowed. - -Returns: The keys from the dictionary of stored - ---- diff --git a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_SwitchboardPublic.md b/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_SwitchboardPublic.md deleted file mode 100644 index 5065f1211b..0000000000 --- a/docs/concepts/token-standards/flow-ft/FungibleTokenSwitchboard/FungibleTokenSwitchboard_SwitchboardPublic.md +++ /dev/null @@ -1,35 +0,0 @@ -# Resource Interface `SwitchboardPublic` - -```cadence -resource interface SwitchboardPublic { -} -``` - -The interface that enforces the method to allow anyone to check on the -available capabilities of a switchboard resource and also exposes the -deposit methods to deposit funds on it. -## Functions - -### fun `getVaultTypes()` - -```cadence -func getVaultTypes(): [Type] -``` - ---- - -### fun `deposit()` - -```cadence -func deposit(from FungibleToken.Vault) -``` - ---- - -### fun `safeDeposit()` - -```cadence -func safeDeposit(from FungibleToken.Vault): FungibleToken.Vault? -``` - ---- diff --git a/docs/concepts/token-standards/flow-ft/index.mdx b/docs/concepts/token-standards/flow-ft/index.md similarity index 100% rename from docs/concepts/token-standards/flow-ft/index.mdx rename to docs/concepts/token-standards/flow-ft/index.md diff --git a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT.md b/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT.md deleted file mode 100644 index d38ead8d12..0000000000 --- a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT.md +++ /dev/null @@ -1,128 +0,0 @@ -# Contract `ExampleNFT` - -```cadence -contract ExampleNFT { - - totalSupply: UInt64 - - CollectionStoragePath: StoragePath - - CollectionPublicPath: PublicPath - - MinterStoragePath: StoragePath -} -``` - - -Implemented Interfaces: - - `NonFungibleToken` - -## Interfaces - -### resource interface `ExampleNFTCollectionPublic` - -```cadence -resource interface ExampleNFTCollectionPublic { -} -``` -Defines the methods that are particular to this NFT contract collection - -[More...](./ExampleNFT_ExampleNFTCollectionPublic.md) - ---- -## Structs & Resources - -### resource `NFT` - -```cadence -resource NFT { - - id: UInt64 - - name: String - - description: String - - thumbnail: String - - royalties: [MetadataViews.Royalty] - - metadata: {String: AnyStruct} -} -``` -The core resource that represents a Non Fungible Token. -New instances will be created using the NFTMinter resource -and stored in the Collection resource - -[More...](./ExampleNFT_NFT.md) - ---- - -### resource `Collection` - -```cadence -resource Collection { - - ownedNFTs: {UInt64: NonFungibleToken.NFT} -} -``` -The resource that will be holding the NFTs inside any account. -In order to be able to manage NFTs any account will need to create -an empty collection first - -[More...](./ExampleNFT_Collection.md) - ---- - -### resource `NFTMinter` - -```cadence -resource NFTMinter { -} -``` -Resource that an admin or something similar would own to be -able to mint new NFTs - -[More...](./ExampleNFT_NFTMinter.md) - ---- -## Functions - -### fun `createEmptyCollection()` - -```cadence -func createEmptyCollection(): NonFungibleToken.Collection -``` -Allows anyone to create a new empty collection - -Returns: The new Collection resource - ---- -## Events - -### event `ContractInitialized` - -```cadence -event ContractInitialized() -``` -The event that is emitted when the contract is created - ---- - -### event `Withdraw` - -```cadence -event Withdraw(id UInt64, from Address?) -``` -The event that is emitted when an NFT is withdrawn from a Collection - ---- - -### event `Deposit` - -```cadence -event Deposit(id UInt64, to Address?) -``` -The event that is emitted when an NFT is deposited to a Collection - ---- diff --git a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_Collection.md b/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_Collection.md deleted file mode 100644 index c3fa3d62f2..0000000000 --- a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_Collection.md +++ /dev/null @@ -1,112 +0,0 @@ -# Resource `Collection` - -```cadence -resource Collection { - - ownedNFTs: {UInt64: NonFungibleToken.NFT} -} -``` - -The resource that will be holding the NFTs inside any account. -In order to be able to manage NFTs any account will need to create -an empty collection first - -Implemented Interfaces: - - `ExampleNFTCollectionPublic` - - `NonFungibleToken.Provider` - - `NonFungibleToken.Receiver` - - `NonFungibleToken.CollectionPublic` - - `MetadataViews.ResolverCollection` - - -### Initializer - -```cadence -func init() -``` - - -## Functions - -### fun `withdraw()` - -```cadence -func withdraw(withdrawID UInt64): NonFungibleToken.NFT -``` -Removes an NFT from the collection and moves it to the caller - -Parameters: - - withdrawID : _The ID of the NFT that wants to be withdrawn_ - -Returns: The NFT resource that has been taken out of the collection - ---- - -### fun `deposit()` - -```cadence -func deposit(token NonFungibleToken.NFT) -``` -Adds an NFT to the collections dictionary and adds the ID to the id array - -Parameters: - - token : _The NFT resource to be included in the collection_ - ---- - -### fun `getIDs()` - -```cadence -func getIDs(): [UInt64] -``` -Helper method for getting the collection IDs - -Returns: An array containing the IDs of the NFTs in the collection - ---- - -### fun `borrowNFT()` - -```cadence -func borrowNFT(id UInt64): &NonFungibleToken.NFT -``` -Gets a reference to an NFT in the collection so that -the caller can read its metadata and call its methods - -Parameters: - - id : _The ID of the wanted NFT_ - -Returns: A reference to the wanted NFT resource - ---- - -### fun `borrowExampleNFT()` - -```cadence -func borrowExampleNFT(id UInt64): &ExampleNFT.NFT? -``` -Gets a reference to an NFT in the collection so that -the caller can read its metadata and call its methods - -Parameters: - - id : _The ID of the wanted NFT_ - -Returns: A reference to the wanted NFT resource - ---- - -### fun `borrowViewResolver()` - -```cadence -func borrowViewResolver(id UInt64): &AnyResource{MetadataViews.Resolver} -``` -Gets a reference to the NFT only conforming to the `{MetadataViews.Resolver}` -interface so that the caller can retrieve the views that the NFT -is implementing and resolve them - -Parameters: - - id : _The ID of the wanted NFT_ - -Returns: The resource reference conforming to the Resolver interface - ---- diff --git a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_ExampleNFTCollectionPublic.md b/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_ExampleNFTCollectionPublic.md deleted file mode 100644 index 26f6583c64..0000000000 --- a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_ExampleNFTCollectionPublic.md +++ /dev/null @@ -1,41 +0,0 @@ -# Resource Interface `ExampleNFTCollectionPublic` - -```cadence -resource interface ExampleNFTCollectionPublic { -} -``` - -Defines the methods that are particular to this NFT contract collection -## Functions - -### fun `deposit()` - -```cadence -func deposit(token NonFungibleToken.NFT) -``` - ---- - -### fun `getIDs()` - -```cadence -func getIDs(): [UInt64] -``` - ---- - -### fun `borrowNFT()` - -```cadence -func borrowNFT(id UInt64): &NonFungibleToken.NFT -``` - ---- - -### fun `borrowExampleNFT()` - -```cadence -func borrowExampleNFT(id UInt64): &ExampleNFT.NFT? -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFT.md b/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFT.md deleted file mode 100644 index cb27f69c0a..0000000000 --- a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFT.md +++ /dev/null @@ -1,63 +0,0 @@ -# Resource `NFT` - -```cadence -resource NFT { - - id: UInt64 - - name: String - - description: String - - thumbnail: String - - royalties: [MetadataViews.Royalty] - - metadata: {String: AnyStruct} -} -``` - -The core resource that represents a Non Fungible Token. -New instances will be created using the NFTMinter resource -and stored in the Collection resource - -Implemented Interfaces: - - `NonFungibleToken.INFT` - - `MetadataViews.Resolver` - - -### Initializer - -```cadence -func init(id UInt64, name String, description String, thumbnail String, royalties [MetadataViews.Royalty], metadata {String: AnyStruct}) -``` - - -## Functions - -### fun `getViews()` - -```cadence -func getViews(): [Type] -``` -Function that returns all the Metadata Views implemented by a Non Fungible Token - -developers to know which parameter to pass to the resolveView() method. - -Returns: An array of Types defining the implemented views. This value will be used by - ---- - -### fun `resolveView()` - -```cadence -func resolveView(_ Type): AnyStruct? -``` -Function that resolves a metadata view for this token. - -Parameters: - - view : _The Type of the desired view._ - -Returns: A structure representing the requested view. - ---- diff --git a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFTMinter.md b/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFTMinter.md deleted file mode 100644 index 4d02246459..0000000000 --- a/docs/concepts/token-standards/flow-nft/ExampleNFT/ExampleNFT_NFTMinter.md +++ /dev/null @@ -1,27 +0,0 @@ -# Resource `NFTMinter` - -```cadence -resource NFTMinter { -} -``` - -Resource that an admin or something similar would own to be -able to mint new NFTs -## Functions - -### fun `mintNFT()` - -```cadence -func mintNFT(recipient &{NonFungibleToken.CollectionPublic}, name String, description String, thumbnail String, royalties [MetadataViews.Royalty]) -``` -Mints a new NFT with a new ID and deposit it in the -recipients collection using their collection reference - -Parameters: - - recipient : _A capability to the collection where the new NFT will be deposited_ - - name : _The name for the NFT metadata_ - - description : _The description for the NFT metadata_ - - thumbnail : _The thumbnail for the NFT metadata_ - - royalties : _An array of Royalty structs, see MetadataViews docs_ - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews.md deleted file mode 100644 index c5614c1a06..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews.md +++ /dev/null @@ -1,604 +0,0 @@ -# Contract `MetadataViews` - -```cadence -pub contract MetadataViews { -} -``` - -This contract implements the metadata standard proposed -in FLIP-0636. - -Ref: https://github.com/onflow/flips/blob/main/application/20210916-nft-metadata.md - -Structs and resources can implement one or more -metadata types, called views. Each view type represents -a different kind of metadata, such as a creator biography -or a JPEG image file. -## Interfaces - -### `Resolver` - -```cadence -pub resource interface Resolver { -} -``` -Provides access to a set of metadata views. A struct or -resource (e.g. an NFT) can implement this interface to provide access to -the views that it supports. - -[More...](./MetadataViews_Resolver.md) - ---- - -### `ResolverCollection` - -```cadence -pub resource interface ResolverCollection { -} -``` -A group of view resolvers indexed by ID. - -[More...](./MetadataViews_ResolverCollection.md) - ---- - -### `File` - -```cadence -pub struct interface File { -} -``` -Generic interface that represents a file stored on or off chain. Files -can be used to references images, videos and other media. - -[More...](./MetadataViews_File.md) - ---- -## Structs & Resources - -### `NFTView` - -```cadence -pub struct NFTView { - - pub let id: UInt64 - - pub let uuid: UInt64 - - pub let display: Display? - - pub let externalURL: ExternalURL? - - pub let collectionData: NFTCollectionData? - - pub let collectionDisplay: NFTCollectionDisplay? - - pub let royalties: Royalties? - - pub let traits: Traits? -} -``` -NFTView wraps all Core views along `id` and `uuid` fields, and is used -to give a complete picture of an NFT. Most NFTs should implement this -view. - -[More...](./MetadataViews_NFTView.md) - ---- - -### `Display` - -```cadence -pub struct Display { - - pub let name: String - - pub let description: String - - pub let thumbnail: AnyStruct{File} -} -``` -Display is a basic view that includes the name, description and -thumbnail for an object. Most objects should implement this view. - -[More...](./MetadataViews_Display.md) - ---- - -### `HTTPFile` - -```cadence -pub struct HTTPFile { - - pub let url: String -} -``` -View to expose a file that is accessible at an HTTP (or HTTPS) URL. - -[More...](./MetadataViews_HTTPFile.md) - ---- - -### `IPFSFile` - -```cadence -pub struct IPFSFile { - - pub let cid: String - - pub let path: String? -} -``` -View to expose a file stored on IPFS. -IPFS images are referenced by their content identifier (CID) -rather than a direct URI. A client application can use this CID -to find and load the image via an IPFS gateway. - -[More...](./MetadataViews_IPFSFile.md) - ---- - -### `Edition` - -```cadence -pub struct Edition { - - pub let name: String? - - pub let number: UInt64 - - pub let max: UInt64? -} -``` -Optional view for collections that issue multiple objects -with the same or similar metadata, for example an X of 100 set. This -information is useful for wallets and marketplaces. -An NFT might be part of multiple editions, which is why the edition -information is returned as an arbitrary sized array - -[More...](./MetadataViews_Edition.md) - ---- - -### `Editions` - -```cadence -pub struct Editions { - - pub let infoList: [Edition] -} -``` -Wrapper view for multiple Edition views - -[More...](./MetadataViews_Editions.md) - ---- - -### `Serial` - -```cadence -pub struct Serial { - - pub let number: UInt64 -} -``` -View representing a project-defined serial number for a specific NFT -Projects have different definitions for what a serial number should be -Some may use the NFTs regular ID and some may use a different -classification system. The serial number is expected to be unique among -other NFTs within that project - -[More...](./MetadataViews_Serial.md) - ---- - -### `Royalty` - -```cadence -pub struct Royalty { - - pub let receiver: Capability<&AnyResource{FungibleToken.Receiver}> - - pub let cut: UFix64 - - pub let description: String -} -``` -View that defines the composable royalty standard that gives marketplaces a -unified interface to support NFT royalties. - -[More...](./MetadataViews_Royalty.md) - ---- - -### `Royalties` - -```cadence -pub struct Royalties { - - priv let cutInfos: [Royalty] -} -``` -Wrapper view for multiple Royalty views. -Marketplaces can query this `Royalties` struct from NFTs -and are expected to pay royalties based on these specifications. - -[More...](./MetadataViews_Royalties.md) - ---- - -### `Media` - -```cadence -pub struct Media { - - pub let file: AnyStruct{File} - - pub let mediaType: String -} -``` -View to represent, a file with an correspoiding mediaType. - -[More...](./MetadataViews_Media.md) - ---- - -### `Medias` - -```cadence -pub struct Medias { - - pub let items: [Media] -} -``` -Wrapper view for multiple media views - -[More...](./MetadataViews_Medias.md) - ---- - -### `License` - -```cadence -pub struct License { - - pub let spdxIdentifier: String -} -``` -View to represent a license according to https://spdx.org/licenses/ -This view can be used if the content of an NFT is licensed. - -[More...](./MetadataViews_License.md) - ---- - -### `ExternalURL` - -```cadence -pub struct ExternalURL { - - pub let url: String -} -``` -View to expose a URL to this item on an external site. -This can be used by applications like .find and Blocto to direct users -to the original link for an NFT. - -[More...](./MetadataViews_ExternalURL.md) - ---- - -### `NFTCollectionData` - -```cadence -pub struct NFTCollectionData { - - pub let storagePath: StoragePath - - pub let publicPath: PublicPath - - pub let providerPath: PrivatePath - - pub let publicCollection: Type - - pub let publicLinkedType: Type - - pub let providerLinkedType: Type - - pub let createEmptyCollection: ((): @NonFungibleToken.Collection) -} -``` -View to expose the information needed store and retrieve an NFT. -This can be used by applications to setup a NFT collection with proper -storage and public capabilities. - -[More...](./MetadataViews_NFTCollectionData.md) - ---- - -### `NFTCollectionDisplay` - -```cadence -pub struct NFTCollectionDisplay { - - pub let name: String - - pub let description: String - - pub let externalURL: ExternalURL - - pub let squareImage: Media - - pub let bannerImage: Media - - pub let socials: {String: ExternalURL} -} -``` -View to expose the information needed to showcase this NFT's -collection. This can be used by applications to give an overview and -graphics of the NFT collection this NFT belongs to. - -[More...](./MetadataViews_NFTCollectionDisplay.md) - ---- - -### `Rarity` - -```cadence -pub struct Rarity { - - pub let score: UFix64? - - pub let max: UFix64? - - pub let description: String? -} -``` -View to expose rarity information for a single rarity -Note that a rarity needs to have either score or description but it can -have both - -[More...](./MetadataViews_Rarity.md) - ---- - -### `Trait` - -```cadence -pub struct Trait { - - pub let name: String - - pub let value: AnyStruct - - pub let displayType: String? - - pub let rarity: Rarity? -} -``` -View to represent a single field of metadata on an NFT. -This is used to get traits of individual key/value pairs along with some -contextualized data about the trait - -[More...](./MetadataViews_Trait.md) - ---- - -### `Traits` - -```cadence -pub struct Traits { - - pub let traits: [Trait] -} -``` -Wrapper view to return all the traits on an NFT. -This is used to return traits as individual key/value pairs along with -some contextualized data about each trait. - -[More...](./MetadataViews_Traits.md) - ---- -## Functions - -### `getNFTView()` - -```cadence -fun getNFTView(id: UInt64, viewResolver: &{Resolver}): NFTView -``` -Helper to get an NFT view - -Parameters: - - id : _The NFT id_ - - viewResolver : _A reference to the resolver resource_ - -Returns: A NFTView struct - ---- - -### `getDisplay()` - -```cadence -fun getDisplay(_: &{Resolver}): Display? -``` -Helper to get Display in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: An optional Display struct - ---- - -### `getEditions()` - -```cadence -fun getEditions(_: &{Resolver}): Editions? -``` -Helper to get Editions in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: An optional Editions struct - ---- - -### `getSerial()` - -```cadence -fun getSerial(_: &{Resolver}): Serial? -``` -Helper to get Serial in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: An optional Serial struct - ---- - -### `getRoyalties()` - -```cadence -fun getRoyalties(_: &{Resolver}): Royalties? -``` -Helper to get Royalties in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional Royalties struct - ---- - -### `getRoyaltyReceiverPublicPath()` - -```cadence -fun getRoyaltyReceiverPublicPath(): PublicPath -``` -Get the path that should be used for receiving royalties -This is a path that will eventually be used for a generic switchboard receiver, -hence the name but will only be used for royalties for now. - -Returns: The PublicPath for the generic FT receiver - ---- - -### `getMedias()` - -```cadence -fun getMedias(_: &{Resolver}): Medias? -``` -Helper to get Medias in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional Medias struct - ---- - -### `getLicense()` - -```cadence -fun getLicense(_: &{Resolver}): License? -``` -Helper to get License in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional License struct - ---- - -### `getExternalURL()` - -```cadence -fun getExternalURL(_: &{Resolver}): ExternalURL? -``` -Helper to get ExternalURL in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional ExternalURL struct - ---- - -### `getNFTCollectionData()` - -```cadence -fun getNFTCollectionData(_: &{Resolver}): NFTCollectionData? -``` -Helper to get NFTCollectionData in a way that will return an typed Optional - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional NFTCollectionData struct - ---- - -### `getNFTCollectionDisplay()` - -```cadence -fun getNFTCollectionDisplay(_: &{Resolver}): NFTCollectionDisplay? -``` -Helper to get NFTCollectionDisplay in a way that will return a typed -Optional - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional NFTCollection struct - ---- - -### `getRarity()` - -```cadence -fun getRarity(_: &{Resolver}): Rarity? -``` -Helper to get Rarity view in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional Rarity struct - ---- - -### `getTraits()` - -```cadence -fun getTraits(_: &{Resolver}): Traits? -``` -Helper to get Traits view in a typesafe way - -Parameters: - - viewResolver : _A reference to the resolver resource_ - -Returns: A optional Traits struct - ---- - -### `dictToTraits()` - -```cadence -fun dictToTraits(dict: {String: AnyStruct}, excludedNames: [String]?): Traits -``` -Helper function to easily convert a dictionary to traits. For NFT -collections that do not need either of the optional values of a Trait, -this method should suffice to give them an array of valid traits. - -keys that are not wanted to become `Traits` - -Parameters: - - dict : _The dictionary to be converted to Traits_ - - excludedNames : _An optional String array specifying the `dict`_ - -Returns: The generated Traits view - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Display.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Display.md deleted file mode 100644 index 20317c783e..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Display.md +++ /dev/null @@ -1,23 +0,0 @@ -# Struct `Display` - -```cadence -pub struct Display { - - pub let name: String - - pub let description: String - - pub let thumbnail: AnyStruct{File} -} -``` - -Display is a basic view that includes the name, description and -thumbnail for an object. Most objects should implement this view. - -### Initializer - -```cadence -init(name: String, description: String, thumbnail: AnyStruct{File}) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Edition.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Edition.md deleted file mode 100644 index a78ab4d259..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Edition.md +++ /dev/null @@ -1,26 +0,0 @@ -# Struct `Edition` - -```cadence -pub struct Edition { - - pub let name: String? - - pub let number: UInt64 - - pub let max: UInt64? -} -``` - -Optional view for collections that issue multiple objects -with the same or similar metadata, for example an X of 100 set. This -information is useful for wallets and marketplaces. -An NFT might be part of multiple editions, which is why the edition -information is returned as an arbitrary sized array - -### Initializer - -```cadence -init(name: String?, number: UInt64, max: UInt64?) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Editions.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Editions.md deleted file mode 100644 index aea84b99b3..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Editions.md +++ /dev/null @@ -1,18 +0,0 @@ -# Struct `Editions` - -```cadence -pub struct Editions { - - pub let infoList: [Edition] -} -``` - -Wrapper view for multiple Edition views - -### Initializer - -```cadence -init(_: [Edition]) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ExternalURL.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ExternalURL.md deleted file mode 100644 index a0d58d153f..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ExternalURL.md +++ /dev/null @@ -1,20 +0,0 @@ -# Struct `ExternalURL` - -```cadence -pub struct ExternalURL { - - pub let url: String -} -``` - -View to expose a URL to this item on an external site. -This can be used by applications like .find and Blocto to direct users -to the original link for an NFT. - -### Initializer - -```cadence -init(_: String) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_File.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_File.md deleted file mode 100644 index 7850170d2a..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_File.md +++ /dev/null @@ -1,18 +0,0 @@ -# Struct Interface `File` - -```cadence -pub struct interface File { -} -``` - -Generic interface that represents a file stored on or off chain. Files -can be used to references images, videos and other media. -## Functions - -### `uri()` - -```cadence -fun uri(): String -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_HTTPFile.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_HTTPFile.md deleted file mode 100644 index f8c8f75286..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_HTTPFile.md +++ /dev/null @@ -1,31 +0,0 @@ -# Struct `HTTPFile` - -```cadence -pub struct HTTPFile { - - pub let url: String -} -``` - -View to expose a file that is accessible at an HTTP (or HTTPS) URL. - -Implemented Interfaces: - - `File` - - -### Initializer - -```cadence -init(url: String) -``` - - -## Functions - -### `uri()` - -```cadence -fun uri(): String -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_IPFSFile.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_IPFSFile.md deleted file mode 100644 index a2f0972335..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_IPFSFile.md +++ /dev/null @@ -1,40 +0,0 @@ -# Struct `IPFSFile` - -```cadence -pub struct IPFSFile { - - pub let cid: String - - pub let path: String? -} -``` - -View to expose a file stored on IPFS. -IPFS images are referenced by their content identifier (CID) -rather than a direct URI. A client application can use this CID -to find and load the image via an IPFS gateway. - -Implemented Interfaces: - - `File` - - -### Initializer - -```cadence -init(cid: String, path: String?) -``` - - -## Functions - -### `uri()` - -```cadence -fun uri(): String -``` -This function returns the IPFS native URL for this file. -Ref: https://docs.ipfs.io/how-to/address-ipfs-on-web/#native-urls - -Returns: The string containing the file uri - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_License.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_License.md deleted file mode 100644 index 5017d304a5..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_License.md +++ /dev/null @@ -1,19 +0,0 @@ -# Struct `License` - -```cadence -pub struct License { - - pub let spdxIdentifier: String -} -``` - -View to represent a license according to https://spdx.org/licenses/ -This view can be used if the content of an NFT is licensed. - -### Initializer - -```cadence -init(_: String) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Media.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Media.md deleted file mode 100644 index ad08a90868..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Media.md +++ /dev/null @@ -1,20 +0,0 @@ -# Struct `Media` - -```cadence -pub struct Media { - - pub let file: AnyStruct{File} - - pub let mediaType: String -} -``` - -View to represent, a file with an correspoiding mediaType. - -### Initializer - -```cadence -init(file: AnyStruct{File}, mediaType: String) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Medias.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Medias.md deleted file mode 100644 index 35e450e4c2..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Medias.md +++ /dev/null @@ -1,18 +0,0 @@ -# Struct `Medias` - -```cadence -pub struct Medias { - - pub let items: [Media] -} -``` - -Wrapper view for multiple media views - -### Initializer - -```cadence -init(_: [Media]) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionData.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionData.md deleted file mode 100644 index 887c8df82b..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionData.md +++ /dev/null @@ -1,32 +0,0 @@ -# Struct `NFTCollectionData` - -```cadence -pub struct NFTCollectionData { - - pub let storagePath: StoragePath - - pub let publicPath: PublicPath - - pub let providerPath: PrivatePath - - pub let publicCollection: Type - - pub let publicLinkedType: Type - - pub let providerLinkedType: Type - - pub let createEmptyCollection: ((): @NonFungibleToken.Collection) -} -``` - -View to expose the information needed store and retrieve an NFT. -This can be used by applications to setup a NFT collection with proper -storage and public capabilities. - -### Initializer - -```cadence -init(storagePath: StoragePath, publicPath: PublicPath, providerPath: PrivatePath, publicCollection: Type, publicLinkedType: Type, providerLinkedType: Type, createEmptyCollectionFunction: ((): @NonFungibleToken.Collection)) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionDisplay.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionDisplay.md deleted file mode 100644 index c29a6ebcbf..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTCollectionDisplay.md +++ /dev/null @@ -1,30 +0,0 @@ -# Struct `NFTCollectionDisplay` - -```cadence -pub struct NFTCollectionDisplay { - - pub let name: String - - pub let description: String - - pub let externalURL: ExternalURL - - pub let squareImage: Media - - pub let bannerImage: Media - - pub let socials: {String: ExternalURL} -} -``` - -View to expose the information needed to showcase this NFT's -collection. This can be used by applications to give an overview and -graphics of the NFT collection this NFT belongs to. - -### Initializer - -```cadence -init(name: String, description: String, externalURL: ExternalURL, squareImage: Media, bannerImage: Media, socials: {String: ExternalURL}) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTView.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTView.md deleted file mode 100644 index 1613bbf1fd..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_NFTView.md +++ /dev/null @@ -1,34 +0,0 @@ -# Struct `NFTView` - -```cadence -pub struct NFTView { - - pub let id: UInt64 - - pub let uuid: UInt64 - - pub let display: Display? - - pub let externalURL: ExternalURL? - - pub let collectionData: NFTCollectionData? - - pub let collectionDisplay: NFTCollectionDisplay? - - pub let royalties: Royalties? - - pub let traits: Traits? -} -``` - -NFTView wraps all Core views along `id` and `uuid` fields, and is used -to give a complete picture of an NFT. Most NFTs should implement this -view. - -### Initializer - -```cadence -init(id: UInt64, uuid: UInt64, display: Display?, externalURL: ExternalURL?, collectionData: NFTCollectionData?, collectionDisplay: NFTCollectionDisplay?, royalties: Royalties?, traits: Traits?) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Rarity.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Rarity.md deleted file mode 100644 index 5400ebc773..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Rarity.md +++ /dev/null @@ -1,24 +0,0 @@ -# Struct `Rarity` - -```cadence -pub struct Rarity { - - pub let score: UFix64? - - pub let max: UFix64? - - pub let description: String? -} -``` - -View to expose rarity information for a single rarity -Note that a rarity needs to have either score or description but it can -have both - -### Initializer - -```cadence -init(score: UFix64?, max: UFix64?, description: String?) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Resolver.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Resolver.md deleted file mode 100644 index 12d16a0968..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Resolver.md +++ /dev/null @@ -1,27 +0,0 @@ -# Resource Interface `Resolver` - -```cadence -pub resource interface Resolver { -} -``` - -Provides access to a set of metadata views. A struct or -resource (e.g. an NFT) can implement this interface to provide access to -the views that it supports. -## Functions - -### `getViews()` - -```cadence -fun getViews(): [Type] -``` - ---- - -### `resolveView()` - -```cadence -fun resolveView(_: Type): AnyStruct? -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ResolverCollection.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ResolverCollection.md deleted file mode 100644 index 6371efffab..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_ResolverCollection.md +++ /dev/null @@ -1,25 +0,0 @@ -# Resource Interface `ResolverCollection` - -```cadence -pub resource interface ResolverCollection { -} -``` - -A group of view resolvers indexed by ID. -## Functions - -### `borrowViewResolver()` - -```cadence -fun borrowViewResolver(id: UInt64): &{Resolver} -``` - ---- - -### `getIDs()` - -```cadence -fun getIDs(): [UInt64] -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalties.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalties.md deleted file mode 100644 index 14cecdbae2..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalties.md +++ /dev/null @@ -1,32 +0,0 @@ -# Struct `Royalties` - -```cadence -pub struct Royalties { - - priv let cutInfos: [Royalty] -} -``` - -Wrapper view for multiple Royalty views. -Marketplaces can query this `Royalties` struct from NFTs -and are expected to pay royalties based on these specifications. - -### Initializer - -```cadence -init(_: [Royalty]) -``` - - -## Functions - -### `getRoyalties()` - -```cadence -fun getRoyalties(): [Royalty] -``` -Return the cutInfos list - -Returns: An array containing all the royalties structs - ---- diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalty.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalty.md deleted file mode 100644 index 54c98c2ebb..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Royalty.md +++ /dev/null @@ -1,23 +0,0 @@ -# Struct `Royalty` - -```cadence -pub struct Royalty { - - pub let receiver: Capability<&AnyResource{FungibleToken.Receiver}> - - pub let cut: UFix64 - - pub let description: String -} -``` - -View that defines the composable royalty standard that gives marketplaces a -unified interface to support NFT royalties. - -### Initializer - -```cadence -init(receiver: Capability<&AnyResource{FungibleToken.Receiver}>, cut: UFix64, description: String) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Serial.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Serial.md deleted file mode 100644 index c5ab8d7f4f..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Serial.md +++ /dev/null @@ -1,22 +0,0 @@ -# Struct `Serial` - -```cadence -pub struct Serial { - - pub let number: UInt64 -} -``` - -View representing a project-defined serial number for a specific NFT -Projects have different definitions for what a serial number should be -Some may use the NFTs regular ID and some may use a different -classification system. The serial number is expected to be unique among -other NFTs within that project - -### Initializer - -```cadence -init(_: UInt64) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Trait.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Trait.md deleted file mode 100644 index 7e140a4522..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Trait.md +++ /dev/null @@ -1,26 +0,0 @@ -# Struct `Trait` - -```cadence -pub struct Trait { - - pub let name: String - - pub let value: AnyStruct - - pub let displayType: String? - - pub let rarity: Rarity? -} -``` - -View to represent a single field of metadata on an NFT. -This is used to get traits of individual key/value pairs along with some -contextualized data about the trait - -### Initializer - -```cadence -init(name: String, value: AnyStruct, displayType: String?, rarity: Rarity?) -``` - - diff --git a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Traits.md b/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Traits.md deleted file mode 100644 index ff0db7fbc2..0000000000 --- a/docs/concepts/token-standards/flow-nft/MetdataViews/MetadataViews_Traits.md +++ /dev/null @@ -1,33 +0,0 @@ -# Struct `Traits` - -```cadence -pub struct Traits { - - pub let traits: [Trait] -} -``` - -Wrapper view to return all the traits on an NFT. -This is used to return traits as individual key/value pairs along with -some contextualized data about each trait. - -### Initializer - -```cadence -init(_: [Trait]) -``` - - -## Functions - -### `addTrait()` - -```cadence -fun addTrait(_: Trait) -``` -Adds a single Trait to the Traits view - -Parameters: - - Trait : _The trait struct to be added_ - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken.md deleted file mode 100644 index 8abbe596b1..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken.md +++ /dev/null @@ -1,143 +0,0 @@ -# Contract Interface `NonFungibleToken` - -```cadence -pub contract interface NonFungibleToken { - - pub var totalSupply: UInt64 -} -``` - -The main NFT contract interface. Other NFT contracts will -import and implement this interface -## Interfaces - -### `INFT` - -```cadence -pub resource interface INFT { - - pub let id: UInt64 -} -``` -Interface that the NFTs have to conform to -The metadata views methods are included here temporarily -because enforcing the metadata interfaces in the standard -would break many contracts in an upgrade. Those breaking changes -are being saved for the stable cadence milestone - -[More...](./NonFungibleToken_INFT.md) - ---- - -### `Provider` - -```cadence -pub resource interface Provider { -} -``` -Interface to mediate withdraws from the Collection - -[More...](./NonFungibleToken_Provider.md) - ---- - -### `Receiver` - -```cadence -pub resource interface Receiver { -} -``` -Interface to mediate deposits to the Collection - -[More...](./NonFungibleToken_Receiver.md) - ---- - -### `CollectionPublic` - -```cadence -pub resource interface CollectionPublic { -} -``` -Interface that an account would commonly -publish for their collection - -[More...](./NonFungibleToken_CollectionPublic.md) - ---- -## Structs & Resources - -### `NFT` - -```cadence -pub resource NFT { - - pub let id: UInt64 -} -``` -Requirement that all conforming NFT smart contracts have -to define a resource called NFT that conforms to INFT - -[More...](./NonFungibleToken_NFT.md) - ---- - -### `Collection` - -```cadence -pub resource Collection { - - pub var ownedNFTs: {UInt64: NFT} -} -``` -Requirement for the concrete resource type -to be declared in the implementing contract - -[More...](./NonFungibleToken_Collection.md) - ---- -## Functions - -### `createEmptyCollection()` - -```cadence -fun createEmptyCollection(): Collection -``` -Creates an empty Collection and returns it to the caller so that they can own NFTs - -Returns: A new Collection resource - ---- -## Events - -### `ContractInitialized` - -```cadence -pub event ContractInitialized() -``` -Event that emitted when the NFT contract is initialized - ---- - -### `Withdraw` - -```cadence -pub event Withdraw(id: UInt64, from: Address?) -``` -Event that is emitted when a token is withdrawn, -indicating the owner of the collection that it was withdrawn from. - -If the collection is not in an account's storage, `from` will be `nil`. - ---- - -### `Deposit` - -```cadence -pub event Deposit(id: UInt64, to: Address?) -``` -Event that emitted when a token is deposited to a collection. - -It indicates the owner of the collection that it was deposited to. - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Collection.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Collection.md deleted file mode 100644 index cb0dd6cd06..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Collection.md +++ /dev/null @@ -1,56 +0,0 @@ -# Resource `Collection` - -```cadence -pub resource Collection { - - pub var ownedNFTs: {UInt64: NFT} -} -``` - -Requirement for the concrete resource type -to be declared in the implementing contract - -Implemented Interfaces: - - `Provider` - - `Receiver` - - `CollectionPublic` - -## Functions - -### `withdraw()` - -```cadence -fun withdraw(withdrawID: UInt64): NFT -``` -Removes an NFT from the collection and moves it to the caller - -Parameters: - - withdrawID : _The ID of the NFT that will be withdrawn_ - -Returns: The resource containing the desired NFT - ---- - -### `deposit()` - -```cadence -fun deposit(token: NFT) -``` - ---- - -### `getIDs()` - -```cadence -fun getIDs(): [UInt64] -``` - ---- - -### `borrowNFT()` - -```cadence -fun borrowNFT(id: UInt64): &NFT -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_CollectionPublic.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_CollectionPublic.md deleted file mode 100644 index 19517fea6a..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_CollectionPublic.md +++ /dev/null @@ -1,42 +0,0 @@ -# Resource Interface `CollectionPublic` - -```cadence -pub resource interface CollectionPublic { -} -``` - -Interface that an account would commonly -publish for their collection -## Functions - -### `deposit()` - -```cadence -fun deposit(token: NFT) -``` - ---- - -### `getIDs()` - -```cadence -fun getIDs(): [UInt64] -``` - ---- - -### `borrowNFT()` - -```cadence -fun borrowNFT(id: UInt64): &NFT -``` - ---- - -### `borrowNFTSafe()` - -```cadence -fun borrowNFTSafe(id: UInt64): &NFT? -``` - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_INFT.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_INFT.md deleted file mode 100644 index 36116a6e1e..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_INFT.md +++ /dev/null @@ -1,42 +0,0 @@ -# Resource Interface `INFT` - -```cadence -pub resource interface INFT { - - pub let id: UInt64 -} -``` - -Interface that the NFTs have to conform to -The metadata views methods are included here temporarily -because enforcing the metadata interfaces in the standard -would break many contracts in an upgrade. Those breaking changes -are being saved for the stable cadence milestone -## Functions - -### `getViews()` - -```cadence -fun getViews(): [Type] -``` -Function that returns all the Metadata Views implemented by a Non Fungible Token - -developers to know which parameter to pass to the resolveView() method. - -Returns: An array of Types defining the implemented views. This value will be used by - ---- - -### `resolveView()` - -```cadence -fun resolveView(_: Type): AnyStruct? -``` -Function that resolves a metadata view for this token. - -Parameters: - - view : _The Type of the desired view._ - -Returns: A structure representing the requested view. - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_NFT.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_NFT.md deleted file mode 100644 index e5e9c58147..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_NFT.md +++ /dev/null @@ -1,15 +0,0 @@ -# Resource `NFT` - -```cadence -pub resource NFT { - - pub let id: UInt64 -} -``` - -Requirement that all conforming NFT smart contracts have -to define a resource called NFT that conforms to INFT - -Implemented Interfaces: - - `INFT` - diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Provider.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Provider.md deleted file mode 100644 index 32c95d138b..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Provider.md +++ /dev/null @@ -1,23 +0,0 @@ -# Resource Interface `Provider` - -```cadence -pub resource interface Provider { -} -``` - -Interface to mediate withdraws from the Collection -## Functions - -### `withdraw()` - -```cadence -fun withdraw(withdrawID: UInt64): NFT -``` -Removes an NFT from the resource implementing it and moves it to the caller - -Parameters: - - withdrawID : _The ID of the NFT that will be removed_ - -Returns: The NFT resource removed from the implementing resource - ---- diff --git a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Receiver.md b/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Receiver.md deleted file mode 100644 index 3883c6fdd0..0000000000 --- a/docs/concepts/token-standards/flow-nft/NonFungibleToken/NonFungibleToken_Receiver.md +++ /dev/null @@ -1,21 +0,0 @@ -# Resource Interface `Receiver` - -```cadence -pub resource interface Receiver { -} -``` - -Interface to mediate deposits to the Collection -## Functions - -### `deposit()` - -```cadence -fun deposit(token: NFT) -``` -Adds an NFT to the resource implementing it - -Parameters: - - token : _The NFT resource that will be deposited_ - ---- diff --git a/docs/concepts/token-standards/flow-nft/index.mdx b/docs/concepts/token-standards/flow-nft/index.md similarity index 100% rename from docs/concepts/token-standards/flow-nft/index.mdx rename to docs/concepts/token-standards/flow-nft/index.md diff --git a/docusaurus.config.js b/docusaurus.config.js index 03ff1c3970..a2b36c879d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -10,8 +10,8 @@ const { remarkCodeHike } = require('@code-hike/mdx'); const path = require('path'); const fs = require('fs'); -const docCollectionsLocation = './src/data/doc-collections'; -let cachedSources; +const externalDataSourceLocation = './src/data/data-sources.json'; +let cachedRepositories; const mixpanelOnLoad = ` if ('${process.env.MIXPANEL_PROJECT_TOKEN}' && '${process.env.MIXPANEL_PROJECT_TOKEN}' !== 'undefined') { @@ -53,22 +53,6 @@ if ('${process.env.MIXPANEL_PROJECT_TOKEN}' && '${process.env.MIXPANEL_PROJECT_T } `; -/** - * - * @returns string[] - */ -const getDocFileNames = () => { - let files = []; - try { - const docCollectionPath = path.join(__dirname, docCollectionsLocation, '/'); - const allFiles = fs.readdirSync(docCollectionPath); - files = allFiles.filter((filename) => filename.match(/\.json$/)) ?? []; - } catch (error) { - console.error('Unable to scan directory: ' + error); - } - return files; -}; - const fetchSporkData = async () => { const fetch = await import('node-fetch'); let data = {}; @@ -82,45 +66,64 @@ const fetchSporkData = async () => { } return data; }; + /** - * - * @param {string} filename - * @returns string + * @typedef {Object} SourceDestination + * @property {string} source - Source + * @property {string} destination - Destination */ -const getSource = (filename) => { - const filePath = path.join(__dirname, docCollectionsLocation, filename); - try { - const fileContent = JSON.parse(fs.readFileSync(filePath).toString()); - return fileContent.source; - } catch (error) { - console.error('Cannot parse: ' + error); - } -}; /** - * @typedef {Object} Source + * @typedef {Object} Repository * @property {string} owner - Repo owner * @property {string} name - Repo name * @property {string} branch - Repo branch - * @property {string} rootPath - Subrepo root path + * @property {SourceDestination[]} data - Source-Destination */ /** - * @returns {Source[]} + * @typedef {Object} Repo + * @property {Repository} repository - Repo owner */ -const getSources = () => { - if (!cachedSources) { - const docFilenames = getDocFileNames(); - - cachedSources = docFilenames.reduce((acc, filename) => { - const source = getSource(filename); - if (!source) { - return acc; - } - return [...acc, source]; - }, []); + +/** + * @returns {Repo[]} + */ +const getRepositories = () => { + if (!cachedRepositories) { + const filePath = path.join(__dirname, externalDataSourceLocation); + try { + cachedRepositories = JSON.parse(fs.readFileSync(filePath).toString()); + } catch (error) { + console.error('Cannot parse: ' + error); + } + } + return cachedRepositories; +}; + +/** @type {import('@docusaurus/plugin-content-docs').MetadataOptions['editUrl']} */ +const editUrl = ({ docPath }) => { + console.log(docPath) + const repositories = getRepositories(); + + const sourceRepository = repositories.reduce((acc, { repository }) => { + const sourceData = repository.data.find(({ destination }) => + docPath.includes(destination), + ); + if (sourceData) { + return { + ...repository, + ...sourceData, + }; + } + return acc; + }, null); + if (!sourceRepository) { + return `https://github.com/onflow/docs/tree/main/docs/${docPath}`; } - return cachedSources; + const { owner, name, branch, source, destination } = sourceRepository; + const sourceDocPath = docPath.replace(destination, source); + return `https://github.com/${owner}/${name}/tree/${branch}/${sourceDocPath}`; }; /** @type {import('@docusaurus/types').Config} */ @@ -169,7 +172,7 @@ const config = { ], sidebarPath: require.resolve('./sidebars.js'), routeBasePath: '/', - editUrl: 'https://github.com/onflow/docs/tree/main/', + editUrl, remarkPlugins: [require('remark-math')], rehypePlugins: [require('rehype-katex')], showLastUpdateTime: true, diff --git a/package.json b/package.json index dbefc7deb8..b08e44ee49 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", - "build": "docusaurus build", + "build": "./scripts/import.sh && docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", "clear": "docusaurus clear", @@ -56,6 +56,7 @@ "eslint-plugin-n": "^15.0.0", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "7.32.2", + "node-jq": "2.3.5", "typescript": "*" }, "browserslist": { diff --git a/scripts/import.sh b/scripts/import.sh index ee04cdd968..75571182ff 100755 --- a/scripts/import.sh +++ b/scripts/import.sh @@ -4,6 +4,7 @@ echo Importing... repoDataSources="./src/data/data-sources.json" tempReposLocation="./temp" docsLocation="./docs" +alias jq='./node_modules/node-jq/bin/jq' cloneRepoToTemp() { repo=$1 @@ -83,7 +84,10 @@ copyRepoFilesToDest() { mkdir -p $destFolderName - rsync -av --include='*/' --include='*.mdx' --include='*.md' --include='*.pdf' --include='*.png' --include='*.gif' --include='*.jpg' --exclude='*' --exclude='flow-docs.json' "${sourceFolderName}/" "${destFolderName}/" + cp -r $sourceFolderName* $destFolderName + + # rsync is not available in vercel + # rsync -av --include='*/' --include='*.mdx' --include='*.md' --include='*.pdf' --include='*.png' --include='*.gif' --include='*.jpg' --exclude='*' --exclude='flow-docs.json' "${sourceFolderName}/" "${destFolderName}/" } cloneDocReposToDest diff --git a/src/data/data-sources.json b/src/data/data-sources.json index 120d185c73..4639b400bb 100644 --- a/src/data/data-sources.json +++ b/src/data/data-sources.json @@ -1,123 +1,4 @@ [ - { - "repository": { - "owner": "onflow", - "name": "flow", - "branch": "master", - "data": [ - { - "source": "docs/content/flow", - "destination": "flow", - "doCopy": false - }, - { - "source": "docs/content/hybrid-custody", - "destination": "Hybrid-custody", - "doCopy": false - }, - { - "source": "docs/content/core-contracts", - "destination": "flow/core-contracts", - "doCopy": false - }, - { - "source": "docs/content/contributors/", - "destination": "flow/developer-portal", - "doCopy": false - }, - { - "source": "docs/content/dapp-development/", - "destination": "flow/dapp-development", - "doCopy": false - }, - { - "source": "docs/content/faq/", - "destination": "flow/faq", - "doCopy": false - }, - { - "source": "docs/content/flow-token/", - "destination": "flow/flow-token", - "doCopy": false - }, - { - "source": "docs/content/fusd/", - "destination": "flow/fusd", - "doCopy": false - }, - { - "source": "docs/content/nft-marketplace/", - "destination": "flow/nft-marketplace", - "doCopy": false - }, - { - "source": "docs/content/concepts/", - "destination": "1.Learn/Concepts", - "doCopy": false - }, - { - "source": "docs/content/kitty-items/", - "destination": "1.Learn/Kitty-items", - "doCopy": false - }, - { - "source": "docs/content/nodes/", - "destination": "nodes", - "doCopy": false - }, - { - "source": "docs/content/flow-port/", - "destination": "nodes/flow-port", - "doCopy": false - }, - { - "source": "docs/content/node-operation/", - "destination": "nodes/node-operation", - "doCopy": false - }, - { - "source": "docs/content/staking/", - "destination": "nodes/staking", - "doCopy": false - }, - { - "source": "docs/content/emulator/", - "destination": "tools/emulator", - "doCopy": false - }, - { - "source": "docs/content/vscode-extension/", - "destination": "tools/vscode-extension", - "doCopy": false - }, - { - "source": "docs/content/unity-sdk/", - "destination": "tools/unity-sdk", - "doCopy": false - }, - { - "source": "docs/content/nft-catalog/", - "destination": "tools/nft-catalog", - "ignore": ["composability-nft-guide.mdx"], - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "cadence", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "Cadence", - "doCopy": false - } - ] - } - }, { "repository": { "owner": "onflow", @@ -126,8 +7,8 @@ "data": [ { "source": "docs/", - "destination": "flow/flow-ft", - "doCopy": false + "destination": "concepts/token-standards/flow-ft/", + "doCopy": true } ] } @@ -140,121 +21,8 @@ "data": [ { "source": "docs/", - "destination": "flow/flow-nft", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "fcl-dev-wallet", - "branch": "main", - "data": [ - { - "source": "docs/", - "destination": "tools/fcl-dev-wallet", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "fcl-js", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "tools/fcl-js", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "flow-cadut", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "tools/flow-cadut", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "flow-cli", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "tools/flow-cli", - "ignore": ["template.md"], - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "flow-go-sdk", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "tools/flow-go-sdk", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "flow-js-testing", - "branch": "master", - "data": [ - { - "source": "docs/", - "destination": "tools/flow-js-testing", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "cadence-style-guide", - "branch": "main", - "data": [ - { - "source": "docs/", - "destination": "Cadence/styleguide", - "doCopy": false - } - ] - } - }, - { - "repository": { - "owner": "onflow", - "name": "mobile-docs", - "branch": "main", - "data": [ - { - "source": "docs/", - "destination": "Mobile", - "doCopy": false + "destination": "concepts/token-standards/flow-nft/", + "doCopy": true } ] } diff --git a/yarn.lock b/yarn.lock index 854a6b1c86..54d5b20838 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3364,6 +3364,11 @@ base16@^1.0.0: resolved "https://registry.yarnpkg.com/base16/-/base16-1.0.0.tgz#e297f60d7ec1014a7a971a39ebc8a98c0b681e70" integrity sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ== +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + batch@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" @@ -3374,11 +3379,30 @@ big.js@^5.2.2: resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== +bin-build@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bin-build/-/bin-build-3.0.0.tgz#c5780a25a8a9f966d8244217e6c1f5082a143861" + integrity sha512-jcUOof71/TNAI2uM5uoUaDq2ePcVBQ3R/qhxAz1rX7UfvduAL/RXD3jXzvn8cVcDJdGVkiR1shal3OH0ImpuhA== + dependencies: + decompress "^4.0.0" + download "^6.2.2" + execa "^0.7.0" + p-map-series "^1.0.0" + tempfile "^2.0.0" + binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== +bl@^1.0.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.3.tgz#1e8dd80142eac80d7158c9dccc047fb620e035e7" + integrity sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww== + dependencies: + readable-stream "^2.3.5" + safe-buffer "^5.1.1" + body-parser@1.20.1: version "1.20.1" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" @@ -3472,11 +3496,42 @@ browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.18.1, browserslist@^4 node-releases "^2.0.8" update-browserslist-db "^1.0.10" +buffer-alloc-unsafe@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" + integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg== + +buffer-alloc@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec" + integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow== + dependencies: + buffer-alloc-unsafe "^1.1.0" + buffer-fill "^1.0.0" + +buffer-crc32@~0.2.3: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== + +buffer-fill@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" + integrity sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ== + buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== +buffer@^5.2.1: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + builtins@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9" @@ -3575,6 +3630,16 @@ caniuse-lite@^1.0.30001464: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001465.tgz#c1b715bbb4ff6fdc20a4827e0afe9f4374fca217" integrity sha512-HvjgL3MYAJjceTDCcjRnQGjwUz/5qec9n7JPOzUursUoOTIsYCSDOb1l7RsnZE8mjbxG78zVRCKfrBXyvChBag== +caw@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/caw/-/caw-2.0.1.tgz#6c3ca071fc194720883c2dc5da9b074bfc7e9e95" + integrity sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA== + dependencies: + get-proxy "^2.0.0" + isurl "^1.0.0-alpha5" + tunnel-agent "^0.6.0" + url-to-options "^1.0.1" + ccount@^1.0.0, ccount@^1.0.3: version "1.1.0" resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" @@ -3831,7 +3896,7 @@ comma-separated-tokens@^2.0.0: resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee" integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg== -commander@^2.19.0, commander@^2.20.0: +commander@^2.19.0, commander@^2.20.0, commander@^2.8.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -3881,6 +3946,14 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +config-chain@^1.1.11: + version "1.1.13" + resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4" + integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ== + dependencies: + ini "^1.3.4" + proto-list "~1.2.1" + configstore@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" @@ -3908,7 +3981,7 @@ content-disposition@0.5.2: resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" integrity sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA== -content-disposition@0.5.4: +content-disposition@0.5.4, content-disposition@^0.5.2: version "0.5.4" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== @@ -4016,6 +4089,15 @@ cross-fetch@^3.1.5: dependencies: node-fetch "2.6.7" +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" @@ -4226,13 +4308,66 @@ decode-named-character-reference@^1.0.0: dependencies: character-entities "^2.0.0" -decompress-response@^3.3.0: +decompress-response@^3.2.0, decompress-response@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" integrity sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA== dependencies: mimic-response "^1.0.0" +decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1" + integrity sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ== + dependencies: + file-type "^5.2.0" + is-stream "^1.1.0" + tar-stream "^1.5.2" + +decompress-tarbz2@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz#3082a5b880ea4043816349f378b56c516be1a39b" + integrity sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A== + dependencies: + decompress-tar "^4.1.0" + file-type "^6.1.0" + is-stream "^1.1.0" + seek-bzip "^1.0.5" + unbzip2-stream "^1.0.9" + +decompress-targz@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-targz/-/decompress-targz-4.1.1.tgz#c09bc35c4d11f3de09f2d2da53e9de23e7ce1eee" + integrity sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w== + dependencies: + decompress-tar "^4.1.1" + file-type "^5.2.0" + is-stream "^1.1.0" + +decompress-unzip@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/decompress-unzip/-/decompress-unzip-4.0.1.tgz#deaaccdfd14aeaf85578f733ae8210f9b4848f69" + integrity sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw== + dependencies: + file-type "^3.8.0" + get-stream "^2.2.0" + pify "^2.3.0" + yauzl "^2.4.2" + +decompress@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.1.tgz#007f55cc6a62c055afa37c07eb6a4ee1b773f118" + integrity sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ== + dependencies: + decompress-tar "^4.0.0" + decompress-tarbz2 "^4.0.0" + decompress-targz "^4.0.0" + decompress-unzip "^4.0.1" + graceful-fs "^4.1.10" + make-dir "^1.0.0" + pify "^2.3.0" + strip-dirs "^2.0.0" + deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -4563,6 +4698,23 @@ dotenv@16.0.3: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== +download@^6.2.2: + version "6.2.5" + resolved "https://registry.yarnpkg.com/download/-/download-6.2.5.tgz#acd6a542e4cd0bb42ca70cfc98c9e43b07039714" + integrity sha512-DpO9K1sXAST8Cpzb7kmEhogJxymyVUd5qz/vCOSyvwtp2Klj2XcDt5YUuasgxka44SxF0q5RriKIwJmQHG2AuA== + dependencies: + caw "^2.0.0" + content-disposition "^0.5.2" + decompress "^4.0.0" + ext-name "^5.0.0" + file-type "5.2.0" + filenamify "^2.0.0" + get-stream "^3.0.0" + got "^7.0.0" + make-dir "^1.0.0" + p-event "^1.0.0" + pify "^3.0.0" + duplexer3@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e" @@ -4613,7 +4765,7 @@ encodeurl@~1.0.2: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== -end-of-stream@^1.1.0: +end-of-stream@^1.0.0, end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== @@ -4748,7 +4900,7 @@ escape-html@^1.0.3, escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== -escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== @@ -5082,6 +5234,19 @@ events@^3.2.0: resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + integrity sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw== + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + execa@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" @@ -5134,6 +5299,21 @@ express@^4.17.3: utils-merge "1.0.1" vary "~1.1.2" +ext-list@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ext-list/-/ext-list-2.2.2.tgz#0b98e64ed82f5acf0f2931babf69212ef52ddd37" + integrity sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA== + dependencies: + mime-db "^1.28.0" + +ext-name@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ext-name/-/ext-name-5.0.0.tgz#70781981d183ee15d13993c8822045c506c8f0a6" + integrity sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ== + dependencies: + ext-list "^2.0.0" + sort-keys-length "^1.0.0" + extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -5228,6 +5408,13 @@ fbjs@^3.0.0, fbjs@^3.0.1: setimmediate "^1.0.5" ua-parser-js "^0.7.30" +fd-slicer@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" + integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g== + dependencies: + pend "~1.2.0" + feed@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/feed/-/feed-4.2.2.tgz#865783ef6ed12579e2c44bbef3c9113bc4956a7e" @@ -5250,6 +5437,11 @@ file-loader@^6.2.0: loader-utils "^2.0.0" schema-utils "^3.0.0" +file-type@5.2.0, file-type@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6" + integrity sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ== + file-type@^18.2.1: version "18.2.1" resolved "https://registry.yarnpkg.com/file-type/-/file-type-18.2.1.tgz#6d8f1fa3b079606f6ecf89483346f55fcd2c671b" @@ -5259,6 +5451,30 @@ file-type@^18.2.1: strtok3 "^7.0.0" token-types "^5.0.1" +file-type@^3.8.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9" + integrity sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA== + +file-type@^6.1.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919" + integrity sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg== + +filename-reserved-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229" + integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ== + +filenamify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-2.1.0.tgz#88faf495fb1b47abfd612300002a16228c677ee9" + integrity sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA== + dependencies: + filename-reserved-regex "^2.0.0" + strip-outer "^1.0.0" + trim-repeated "^1.0.0" + filesize@^8.0.6: version "8.0.7" resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8" @@ -5388,6 +5604,11 @@ fresh@0.5.2: resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== + fs-extra@^10.0.1, fs-extra@^10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" @@ -5466,6 +5687,26 @@ get-own-enumerable-property-symbols@^3.0.0: resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== +get-proxy@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/get-proxy/-/get-proxy-2.1.0.tgz#349f2b4d91d44c4d4d4e9cba2ad90143fac5ef93" + integrity sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw== + dependencies: + npm-conf "^1.1.0" + +get-stream@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de" + integrity sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA== + dependencies: + object-assign "^4.0.1" + pinkie-promise "^2.0.0" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== + get-stream@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" @@ -5601,6 +5842,26 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" +got@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a" + integrity sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw== + dependencies: + decompress-response "^3.2.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + is-plain-obj "^1.1.0" + is-retry-allowed "^1.0.0" + is-stream "^1.0.0" + isurl "^1.0.0-alpha5" + lowercase-keys "^1.0.0" + p-cancelable "^0.3.0" + p-timeout "^1.1.1" + safe-buffer "^5.0.1" + timed-out "^4.0.0" + url-parse-lax "^1.0.0" + url-to-options "^1.0.1" + got@^9.6.0: version "9.6.0" resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" @@ -5618,6 +5879,11 @@ got@^9.6.0: to-readable-stream "^1.0.0" url-parse-lax "^3.0.0" +graceful-fs@^4.1.10: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" @@ -5677,11 +5943,23 @@ has-proto@^1.0.1: resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== +has-symbol-support-x@^1.4.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" + integrity sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw== + has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== +has-to-string-tag-x@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" + integrity sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw== + dependencies: + has-symbol-support-x "^1.4.1" + has-tostringtag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" @@ -6001,7 +6279,7 @@ icss-utils@^5.0.0, icss-utils@^5.1.0: resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== -ieee754@^1.2.1: +ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== @@ -6074,7 +6352,7 @@ ini@2.0.0: resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== -ini@^1.3.5, ini@~1.3.0: +ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== @@ -6228,6 +6506,11 @@ is-extendable@^0.1.0: resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + integrity sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww== + is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -6238,6 +6521,13 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== +is-glob@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + integrity sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg== + dependencies: + is-extglob "^1.0.0" + is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" @@ -6263,6 +6553,18 @@ is-installed-globally@^0.4.0: global-dirs "^3.0.0" is-path-inside "^3.0.2" +is-invalid-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-invalid-path/-/is-invalid-path-0.1.0.tgz#307a855b3cf1a938b44ea70d2c61106053714f34" + integrity sha512-aZMG0T3F34mTg4eTdszcGXx54oiZ4NtHSft3hWNJMGJXUUqdIj3cOZuHcU0nCWWcY3jd7yRe/3AEm3vSNTpBGQ== + dependencies: + is-glob "^2.0.0" + +is-natural-number@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8" + integrity sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ== + is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" @@ -6295,6 +6597,11 @@ is-obj@^2.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== +is-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf" + integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA== + is-path-cwd@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" @@ -6305,6 +6612,11 @@ is-path-inside@^3.0.2, is-path-inside@^3.0.3: resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== +is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== + is-plain-obj@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" @@ -6347,6 +6659,11 @@ is-regexp@^1.0.0: resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== +is-retry-allowed@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" + integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg== + is-root@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" @@ -6359,6 +6676,11 @@ is-shared-array-buffer@^1.0.2: dependencies: call-bind "^1.0.2" +is-stream@^1.0.0, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + is-stream@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" @@ -6394,6 +6716,13 @@ is-typedarray@^1.0.0: resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== +is-valid-path@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-valid-path/-/is-valid-path-0.1.1.tgz#110f9ff74c37f663e1ec7915eb451f2db93ac9df" + integrity sha512-+kwPrVDu9Ms03L90Qaml+79+6DZHqHyRoANI6IsZJ/g8frhnfchDOBCa0RbQ6/kdHt5CS5OeIEyrYznNuVN+8A== + dependencies: + is-invalid-path "^0.1.0" + is-weakref@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" @@ -6443,6 +6772,14 @@ isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== +isurl@^1.0.0-alpha5: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" + integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w== + dependencies: + has-to-string-tag-x "^1.2.0" + is-object "^1.0.1" + jest-util@^29.5.0: version "29.5.0" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.5.0.tgz#24a4d3d92fc39ce90425311b23c27a6e0ef16b8f" @@ -6474,6 +6811,17 @@ jest-worker@^29.1.2: merge-stream "^2.0.0" supports-color "^8.0.0" +joi@^17.4.0: + version "17.9.2" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.9.2.tgz#8b2e4724188369f55451aebd1d0b1d9482470690" + integrity sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw== + dependencies: + "@hapi/hoek" "^9.0.0" + "@hapi/topo" "^5.0.0" + "@sideway/address" "^4.1.3" + "@sideway/formula" "^3.0.1" + "@sideway/pinpoint" "^2.0.0" + joi@^17.6.0: version "17.8.3" resolved "https://registry.yarnpkg.com/joi/-/joi-17.8.3.tgz#d772fe27a87a5cda21aace5cf11eee8671ca7e6f" @@ -6785,6 +7133,14 @@ lowercase-keys@^2.0.0: resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -6809,6 +7165,13 @@ lz-string@^1.4.4: resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" @@ -7448,7 +7811,7 @@ micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: braces "^3.0.2" picomatch "^2.3.1" -mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": +mime-db@1.52.0, "mime-db@>= 1.43.0 < 2", mime-db@^1.28.0: version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== @@ -7611,6 +7974,11 @@ no-case@^3.0.4: lower-case "^2.0.2" tslib "^2.0.3" +node-downloader-helper@^2.1.6: + version "2.1.7" + resolved "https://registry.yarnpkg.com/node-downloader-helper/-/node-downloader-helper-2.1.7.tgz#74ef32db55b6d3df18dadf0f3e02d629dd7003a4" + integrity sha512-3dBuMF/XPy5WFi3XiiXaglafzoycRH5GjmRz1nAt2uI9D+TcBrc+n/AzH8bzLHR85Wsf6vZSZblzw+MiUS/WNQ== + node-emoji@^1.10.0: version "1.11.0" resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" @@ -7644,6 +8012,18 @@ node-forge@^1: resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== +node-jq@2.3.5: + version "2.3.5" + resolved "https://registry.yarnpkg.com/node-jq/-/node-jq-2.3.5.tgz#99af9537a2a1d6217a1bcb6e212208fdf1ebf724" + integrity sha512-V2qmX4oXvrITgxeR8WZTELVGFGx2auO+qvxs7Q4Isovh2UGkO1Fl3OACrxPZ2dgikJT5KbwYvK8PwGyc2hfRIg== + dependencies: + bin-build "^3.0.0" + is-valid-path "^0.1.1" + joi "^17.4.0" + node-downloader-helper "^2.1.6" + strip-final-newline "^2.0.0" + tempfile "^3.0.0" + node-readfiles@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/node-readfiles/-/node-readfiles-0.2.0.tgz#dbbd4af12134e2e635c245ef93ffcf6f60673a5d" @@ -7684,6 +8064,21 @@ normalize-url@^6.0.1: resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== +npm-conf@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/npm-conf/-/npm-conf-1.1.3.tgz#256cc47bd0e218c259c4e9550bf413bc2192aff9" + integrity sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw== + dependencies: + config-chain "^1.1.11" + pify "^3.0.0" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw== + dependencies: + path-key "^2.0.0" + npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" @@ -7749,7 +8144,7 @@ oas-validator@^5.0.8: should "^13.2.1" yaml "^1.10.0" -object-assign@^4.1.0, object-assign@^4.1.1: +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== @@ -7879,11 +8274,28 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" +p-cancelable@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa" + integrity sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw== + p-cancelable@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== +p-event@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-event/-/p-event-1.3.0.tgz#8e6b4f4f65c72bc5b6fe28b75eda874f96a4a085" + integrity sha512-hV1zbA7gwqPVFcapfeATaNjQ3J0NuzorHPyG8GPL9g/Y/TplWVBVoCKCXL6Ej2zscrCEv195QNWJXuBH6XZuzA== + dependencies: + p-timeout "^1.1.1" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + p-limit@^2.0.0, p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -7919,6 +8331,13 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-map-series@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-map-series/-/p-map-series-1.0.0.tgz#bf98fe575705658a9e1351befb85ae4c1f07bdca" + integrity sha512-4k9LlvY6Bo/1FcIdV33wqZQES0Py+iKISU9Uc8p8AjWoZPnFKMpVIVD3s0EYn4jzLh1I+WeUZkJ0Yoa4Qfw3Kg== + dependencies: + p-reduce "^1.0.0" + p-map@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" @@ -7926,6 +8345,11 @@ p-map@^4.0.0: dependencies: aggregate-error "^3.0.0" +p-reduce@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" + integrity sha512-3Tx1T3oM1xO/Y8Gj0sWyE78EIJZ+t+aEmXUdvQgvGmSMri7aPTHoovbXEreWKkL5j21Er60XAWLTzKbAKYOujQ== + p-retry@^4.5.0: version "4.6.2" resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-4.6.2.tgz#9baae7184057edd4e17231cee04264106e092a16" @@ -7934,6 +8358,13 @@ p-retry@^4.5.0: "@types/retry" "0.12.0" retry "^0.13.1" +p-timeout@^1.1.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386" + integrity sha512-gb0ryzr+K2qFqFv6qi3khoeqMZF/+ajxQipEF6NteZVnvz9tzdsfAVj3lYtn1gAXvH5lfLwfxEII799gt/mRIA== + dependencies: + p-finally "^1.0.0" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -8068,6 +8499,11 @@ path-is-inside@1.0.2: resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w== +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw== + path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" @@ -8105,6 +8541,11 @@ peek-readable@^5.0.0: resolved "https://registry.yarnpkg.com/peek-readable/-/peek-readable-5.0.0.tgz#7ead2aff25dc40458c60347ea76cfdfd63efdfec" integrity sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A== +pend@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" + integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== + perfect-scrollbar@^1.5.5: version "1.5.5" resolved "https://registry.yarnpkg.com/perfect-scrollbar/-/perfect-scrollbar-1.5.5.tgz#41a211a2fb52a7191eff301432134ea47052b27f" @@ -8134,6 +8575,23 @@ pify@^2.3.0: resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== + pkg-dir@^4.1.0: version "4.2.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" @@ -8494,6 +8952,11 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prepend-http@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + integrity sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg== + prepend-http@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" @@ -8575,6 +9038,11 @@ property-information@^6.0.0: resolved "https://registry.yarnpkg.com/property-information/-/property-information-6.2.0.tgz#b74f522c31c097b5149e3c3cb8d7f3defd986a1d" integrity sha512-kma4U7AFCTwpqq5twzC1YVIDXSqg6qQK6JN0smOw8fgRy1OkMi0CYSzFmsy6dnqSenamAtj0CyXMUJ1Mf6oROg== +proto-list@~1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" + integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA== + proxy-addr@~2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" @@ -8583,6 +9051,11 @@ proxy-addr@~2.0.7: forwarded "0.2.0" ipaddr.js "1.9.1" +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== + pump@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -8838,7 +9311,7 @@ read-cache@^1.0.0: dependencies: pify "^2.3.0" -readable-stream@^2.0.1, readable-stream@~2.3.6: +readable-stream@^2.0.1, readable-stream@^2.3.0, readable-stream@^2.3.5, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -9293,7 +9766,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.1.0, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -9379,6 +9852,13 @@ section-matter@^1.0.0: extend-shallow "^2.0.1" kind-of "^6.0.0" +seek-bzip@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.6.tgz#35c4171f55a680916b52a07859ecf3b5857f21c4" + integrity sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ== + dependencies: + commander "^2.8.1" + select-hose@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -9505,6 +9985,13 @@ shallowequal@^1.1.0: resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8" integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ== +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== + dependencies: + shebang-regex "^1.0.0" + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -9512,6 +9999,11 @@ shebang-command@^2.0.0: dependencies: shebang-regex "^3.0.0" +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== + shebang-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" @@ -9593,7 +10085,7 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.2, signal-exit@^3.0.3: +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -9651,6 +10143,20 @@ sort-css-media-queries@2.1.0: resolved "https://registry.yarnpkg.com/sort-css-media-queries/-/sort-css-media-queries-2.1.0.tgz#7c85e06f79826baabb232f5560e9745d7a78c4ce" integrity sha512-IeWvo8NkNiY2vVYdPa27MCQiR0MN0M80johAYFVxWWXQ44KU84WNxjslwBHmc/7ZL2ccwkM7/e6S5aiKZXm7jA== +sort-keys-length@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sort-keys-length/-/sort-keys-length-1.0.1.tgz#9cb6f4f4e9e48155a6aa0671edd336ff1479a188" + integrity sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw== + dependencies: + sort-keys "^1.0.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" + integrity sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg== + dependencies: + is-plain-obj "^1.0.0" + source-map-js@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" @@ -9871,6 +10377,18 @@ strip-bom@^3.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== +strip-dirs@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" + integrity sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g== + dependencies: + is-natural-number "^4.0.1" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q== + strip-final-newline@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" @@ -9886,6 +10404,13 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== +strip-outer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" + integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== + dependencies: + escape-string-regexp "^1.0.2" + strtok3@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/strtok3/-/strtok3-7.0.0.tgz#868c428b4ade64a8fd8fee7364256001c1a4cbe5" @@ -10042,6 +10567,45 @@ tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== +tar-stream@^1.5.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" + integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== + dependencies: + bl "^1.0.0" + buffer-alloc "^1.2.0" + end-of-stream "^1.0.0" + fs-constants "^1.0.0" + readable-stream "^2.3.0" + to-buffer "^1.1.1" + xtend "^4.0.0" + +temp-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" + integrity sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ== + +temp-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" + integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== + +tempfile@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/tempfile/-/tempfile-2.0.0.tgz#6b0446856a9b1114d1856ffcbe509cccb0977265" + integrity sha512-ZOn6nJUgvgC09+doCEF3oB+r3ag7kUvlsXEGX069QRD60p+P3uP7XG9N2/at+EyIRGSN//ZY3LyEotA1YpmjuA== + dependencies: + temp-dir "^1.0.0" + uuid "^3.0.1" + +tempfile@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/tempfile/-/tempfile-3.0.0.tgz#5376a3492de7c54150d0cc0612c3f00e2cdaf76c" + integrity sha512-uNFCg478XovRi85iD42egu+eSFUmmka750Jy7L5tfHI5hQKKtbPnxaSaXAbBqCDYrw3wx4tXjKwci4/QmsZJxw== + dependencies: + temp-dir "^2.0.0" + uuid "^3.3.2" + terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.3: version "5.3.6" resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz#5590aec31aa3c6f771ce1b1acca60639eab3195c" @@ -10097,11 +10661,21 @@ through2@^2.0.1: readable-stream "~2.3.6" xtend "~4.0.1" +through@^2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + thunky@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== +timed-out@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA== + tiny-invariant@^1.0.2: version "1.3.1" resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" @@ -10112,6 +10686,11 @@ tiny-warning@^1.0.0: resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754" integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA== +to-buffer@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" + integrity sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg== + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" @@ -10157,6 +10736,13 @@ trim-lines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg== +trim-repeated@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" + integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== + dependencies: + escape-string-regexp "^1.0.2" + trim-trailing-lines@^1.0.0: version "1.1.4" resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz#bd4abbec7cc880462f10b2c8b5ce1d8d1ec7c2c0" @@ -10209,6 +10795,13 @@ tsutils@^3.21.0: dependencies: tslib "^1.8.1" +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== + dependencies: + safe-buffer "^5.0.1" + type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" @@ -10270,6 +10863,14 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +unbzip2-stream@^1.0.9: + version "1.4.3" + resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz#b0da04c4371311df771cdc215e87f2130991ace7" + integrity sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg== + dependencies: + buffer "^5.2.1" + through "^2.3.8" + undici@^5.20.0: version "5.21.0" resolved "https://registry.yarnpkg.com/undici/-/undici-5.21.0.tgz#b00dfc381f202565ab7f52023222ab862bb2494f" @@ -10545,6 +11146,13 @@ url-loader@^4.1.1: mime-types "^2.1.27" schema-utils "^3.0.0" +url-parse-lax@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" + integrity sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA== + dependencies: + prepend-http "^1.0.1" + url-parse-lax@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" @@ -10557,6 +11165,11 @@ url-template@^2.0.8: resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21" integrity sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw== +url-to-options@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" + integrity sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A== + use-composed-ref@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/use-composed-ref/-/use-composed-ref-1.3.0.tgz#3d8104db34b7b264030a9d916c5e94fbe280dbda" @@ -10599,6 +11212,11 @@ utils-merge@1.0.1: resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== +uuid@^3.0.1, uuid@^3.3.2: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" @@ -10909,7 +11527,7 @@ which-typed-array@^1.1.9: has-tostringtag "^1.0.0" is-typed-array "^1.1.10" -which@^1.3.1: +which@^1.2.9, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== @@ -11017,6 +11635,11 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== + yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" @@ -11073,6 +11696,14 @@ yargs@^17.0.1: y18n "^5.0.5" yargs-parser "^21.1.1" +yauzl@^2.4.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" + integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== + dependencies: + buffer-crc32 "~0.2.3" + fd-slicer "~1.1.0" + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"