From c44bb3380c1586cd5e349015ae7aec28ebbc023b Mon Sep 17 00:00:00 2001 From: frozeman Date: Thu, 31 Oct 2024 00:23:49 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../libraries/erc725js/getting-started.md | 2 +- docs/tools/libraries/erc725js/methods.md | 35 +++++++++---------- docs/tools/libraries/erc725js/schemas.md | 4 +-- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/docs/tools/libraries/erc725js/getting-started.md b/docs/tools/libraries/erc725js/getting-started.md index 809f74721..28e52c46a 100644 --- a/docs/tools/libraries/erc725js/getting-started.md +++ b/docs/tools/libraries/erc725js/getting-started.md @@ -35,7 +35,7 @@ There are 3 main ways to use _erc725.js_. ### Option 1: use a schema for encoding / decoding data -Create an instance of `ERC725` with just a [schema](https://docs.lukso.tech/tools/libraries/erc725js/schemas). **Useful for just encoding / decoding data.** +Create an instance of `ERC725` with just a [schema](https://docs.lukso.tech/tools/erc725js/schemas). **Useful for just encoding / decoding data.** ```js import ERC725, { ERC725JSONSchema } from '@erc725/erc725.js'; diff --git a/docs/tools/libraries/erc725js/methods.md b/docs/tools/libraries/erc725js/methods.md index 1b3b3a0fa..7db0ba5e7 100644 --- a/docs/tools/libraries/erc725js/methods.md +++ b/docs/tools/libraries/erc725js/methods.md @@ -1941,8 +1941,8 @@ await myErc725.isValidSignature( // false ``` -[lsp6 keymanager permissions]: ../../../standards/access-control/lsp6-key-manager#permissions -[lsp6 keymanager standard]: ../../../standards/access-control/lsp6-key-manager +[lsp6 keymanager permissions]: ../../../../../standards/universal-profile/lsp6-key-manager#permissions +[lsp6 keymanager standard]: https://docs.lukso.tech/standards/universal-profile/lsp6-key-manager [lsp-2 erc725yjsonschema]: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-2-ERC725YJSONSchema.md ### supportsInterface @@ -1967,18 +1967,18 @@ The `interfaceId` is not the most secure way to check for a standard, as they co Either a string of the hexadecimal `interfaceID` as defined by [ERC165](https://eips.ethereum.org/EIPS/eip-165) or one of the predefined interface names: -| interfaceName | Standard | -| :------------------------------ | :------------------------------------------------------------------------------------------------------ | -| `ERC1271` | [EIP-1271: Standard Signature Validation Method for Contracts](https://eips.ethereum.org/EIPS/eip-1271) | -| `ERC725X` | [EIP-725: General execution standard](https://eips.ethereum.org/EIPS/eip-725) | -| `ERC725Y` | [EIP-725: General key-value store](https://eips.ethereum.org/EIPS/eip-725) | -| `LSP0ERC725Account` | [LSP-0: ERC725 Account](../../../standards/accounts/lsp0-erc725account) | -| `LSP1UniversalReceiver` | [LSP-1: Universal Receiver](../../../standards/accounts/lsp1-universal-receiver) | -| `LSP1UniversalReceiverDelegate` | [LSP-1: Universal Receiver Delegate](../../../standards/accounts/lsp1-universal-receiver-delegate) | -| `LSP6KeyManager` | [LSP-6: Key Manager](../../../standards/access-control/lsp6-key-manager) | -| `LSP7DigitalAsset` | [LSP-7: Digital Asset](../../../standards/tokens/LSP7-Digital-Asset.md) | -| `LSP8IdentifiableDigitalAsset` | [LSP-8: Identifiable Digital Asset](../../../standards/tokens/LSP8-Identifiable-Digital-Asset.md) | -| `LSP9Vault` | [LSP-9: Vault](../../../standards/accounts/lsp9-vault) | +| interfaceName | Standard | +| :------------------------------ | :------------------------------------------------------------------------------------------------------------------------- | +| `ERC1271` | [EIP-1271: Standard Signature Validation Method for Contracts](https://eips.ethereum.org/EIPS/eip-1271) | +| `ERC725X` | [EIP-725: General execution standard](https://eips.ethereum.org/EIPS/eip-725) | +| `ERC725Y` | [EIP-725: General key-value store](https://eips.ethereum.org/EIPS/eip-725) | +| `LSP0ERC725Account` | [LSP-0: ERC725 Account](https://docs.lukso.tech/standards/universal-profile/lsp0-erc725account) | +| `LSP1UniversalReceiver` | [LSP-1: Universal Receiver](https://docs.lukso.tech/standards/generic-standards/lsp1-universal-receiver) | +| `LSP1UniversalReceiverDelegate` | [LSP-1: Universal Receiver Delegate](https://docs.lukso.tech/standards/universal-profile/lsp1-universal-receiver-delegate) | +| `LSP6KeyManager` | [LSP-6: Key Manager](https://docs.lukso.tech/standards/universal-profile/lsp6-key-manager) | +| `LSP7DigitalAsset` | [LSP-7: Digital Asset](https://docs.lukso.tech/standards/nft-2.0/LSP7-Digital-Asset) | +| `LSP8IdentifiableDigitalAsset` | [LSP-8: Identifiable Digital Asset](https://docs.lukso.tech/standards/nft-2.0/LSP8-Identifiable-Digital-Asset) | +| `LSP9Vault` | [LSP-9: Vault](https://docs.lukso.tech/standards/universal-profile/lsp9-vault) | :::info @@ -2556,8 +2556,7 @@ myErc725.checkPermissions(requiredPermissions, grantedPermissions); ERC725.checkPermissions(requiredPermissions, grantedPermissions); ``` -Check if the required permissions are included in the granted permissions -as defined by the [LSP6 KeyManager Standard](../../../standards/access-control/lsp6-key-manager.md). +Check if the required permissions are included in the granted permissions as defined by the [LSP6 KeyManager Standard](https://docs.lukso.tech/standards/universal-profile/lsp6-key-manager). :::info @@ -2631,7 +2630,7 @@ myErc725.checkPermissions(requiredPermissions, grantedPermissions); ERC725.encodePermissions(permissions); ``` -Encodes permissions into a hexadecimal string as defined by the [LSP6 KeyManager Standard](../../../standards/access-control/lsp6-key-manager.md). +Encodes permissions into a hexadecimal string as defined by the [LSP6 KeyManager Standard](https://docs.lukso.tech/standards/universal-profile/lsp6-key-manager). :::info @@ -2712,7 +2711,7 @@ myErc725.encodePermissions({ ERC725.decodePermissions(permission); ``` -Decodes permissions from hexadecimal defined by the [LSP6 KeyManager Standard](../../../standards/access-control/lsp6-key-manager.md). +Decodes permissions from hexadecimal defined by the [LSP6 KeyManager Standard](https://docs.lukso.tech/standards/universal-profile/lsp6-key-manager). :::info diff --git a/docs/tools/libraries/erc725js/schemas.md b/docs/tools/libraries/erc725js/schemas.md index 0648d1c99..143f2f98d 100644 --- a/docs/tools/libraries/erc725js/schemas.md +++ b/docs/tools/libraries/erc725js/schemas.md @@ -10,9 +10,9 @@ For more details on schemas, see the [**official specification** of the LSP2 ERC ::: -The ⚒️ [erc725.js](https://npmjs.com/package/@erc725/erc725.js) library works with [ERC725Y JSON schemas](../../../standards/metadata/lsp2-json-schema). These schemas are JSON structures that tell developers and programs how to decode and encode 🗂️ [ERC725Y data keys](../../../standards/erc725#erc725y-generic-data-keyvalue-store) from any [ERC725Y](https://eips.ethereum.org/EIPS/eip-725) smart contract.. You need to load the required schemas of the data keys you want to fetch when initializing the `ERC725` class. +The ⚒️ [erc725.js](https://npmjs.com/package/@erc725/erc725.js) library works with [ERC725Y JSON schemas](../../standards/generic-standards/lsp2-json-schema). These schemas are JSON structures that tell developers and programs how to decode and encode 🗂️ [ERC725Y data keys](../../standards/lsp-background/erc725#erc725y-generic-data-keyvalue-store) from any [ERC725Y](https://eips.ethereum.org/EIPS/eip-725) smart contract.. You need to load the required schemas of the data keys you want to fetch when initializing the `ERC725` class. -The most common and standard schemas are available directly within the _erc725.js_ library. But you can also create and load your own ERC725Y JSON schemas if you want to use custom data keys. +The most common and standard schemas are [available](../../tools/erc725js/schemas.md) directly within the _erc725.js_ library. But you can also create and load your own ERC725Y JSON schemas if you want to use custom data keys. _A quick reference for keys used in schema definitions can be seen below_