From 2d6851c3b46c7c58baabc768e4ff3c078faa2b04 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Fri, 2 Feb 2024 16:24:53 +0000 Subject: [PATCH 1/2] remove references to Metamask and Ethereum --- digital-assets/regular-token-transaction.ts | 4 ++-- transfer-lyx/regular-lyx-transaction.ts | 4 ++-- universal-profile/create-EOA.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/digital-assets/regular-token-transaction.ts b/digital-assets/regular-token-transaction.ts index 35c6e88..90a93e7 100644 --- a/digital-assets/regular-token-transaction.ts +++ b/digital-assets/regular-token-transaction.ts @@ -1,9 +1,9 @@ import { ethers } from 'ethers'; import LSP7Mintable from '@lukso/lsp-smart-contracts/artifacts/LSP7Mintable.json'; -// Connect to Ethereum via MetaMask or similar +// Connect to LUKSO via Browser Extension // @ts-expect-error This is for the browser -const provider = new ethers.BrowserProvider(window.ethereum); +const provider = new ethers.BrowserProvider(window.lukso); try { // Request user's permission to connect and access their accounts diff --git a/transfer-lyx/regular-lyx-transaction.ts b/transfer-lyx/regular-lyx-transaction.ts index 5a2d17f..cb121e1 100644 --- a/transfer-lyx/regular-lyx-transaction.ts +++ b/transfer-lyx/regular-lyx-transaction.ts @@ -1,8 +1,8 @@ import { ethers } from 'ethers'; -// Check if the Ethereum provider is available +// Check if the LUKSO provider is available // @ts-expect-error This is for the browser -const provider = new ethers.BrowserProvider(window.ethereum); +const provider = new ethers.BrowserProvider(window.lukso); // https://docs.lukso.tech/learn/dapp-developer/transfer-lyx diff --git a/universal-profile/create-EOA.ts b/universal-profile/create-EOA.ts index c1f9084..5d94682 100644 --- a/universal-profile/create-EOA.ts +++ b/universal-profile/create-EOA.ts @@ -6,7 +6,7 @@ const RPC_ENDPOINT = 'https://rpc.testnet.lukso.network/'; // Setup ethers.js provider const provider = new ethers.JsonRpcProvider(RPC_ENDPOINT); -// Create an Ethereum wallet +// Create a wallet const wallet = ethers.Wallet.createRandom(); // Print the private key and address From bd139da5f581807fd702db09ab71a0e4e043eca4 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Fri, 2 Feb 2024 16:28:08 +0000 Subject: [PATCH 2/2] improve links for interface and metadata standard --- metadata-detection/README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/metadata-detection/README.md b/metadata-detection/README.md index 803f582..df58ed5 100644 --- a/metadata-detection/README.md +++ b/metadata-detection/README.md @@ -1,10 +1,15 @@ # Metadata detection -Before interacting with a smart contract, you might need to check if the contract supports the right standards. +Before interacting with a smart contract, you might need to check if the contract supports the right standards. Check the standard detection section of the docs for more infos. -- https://docs.lukso.tech/standards/standard-detection -- https://docs.lukso.tech/standards/tokens/LSP4-Digital-Asset-Metadata#supportedstandardslsp4digitalasset +## Guides -## Related guides +- [Interface Detection - LUKSO Guides](https://docs.lukso.tech/learn/dapp-developer/standard-detection/#interface-detection) +- [Metadata Detection - LUKSO Guides](https://docs.lukso.tech/learn/dapp-developer/standard-detection/#metadata-detection) -- [Standard Detection - LUKSO Guides](https://docs.lukso.tech/learn/dapp-developer/standard-detection/#metadata-detection) +## Metadata standards + +Below are the metadata standards used by the scripts in this folder. + +- [LSP3 Profile Metadata](https://docs.lukso.tech/standards/universal-profile/lsp3-profile-metadata) +- [LSP4 Digital Asset Metadata](https://docs.lukso.tech/standards/tokens/LSP4-Digital-Asset-Metadata#supportedstandardslsp4digitalasset)