Skip to content

Commit

Permalink
Update RPCs from GatewayFM to Thirdweb
Browse files Browse the repository at this point in the history
  • Loading branch information
fhildeb committed Apr 4, 2024
1 parent 972c727 commit 30fecdd
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion digital-assets/backend-token-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LSP7Mintable from '@lukso/lsp-smart-contracts/artifacts/LSP7Mintable.json
import UniversalProfile from '@lukso/lsp-smart-contracts/artifacts/UniversalProfile.json';

// Connect to the mainnet or testnet
const RPC_ENDPOINT = 'https://rpc.testnet.lukso.gateway.fm';
const RPC_ENDPOINT = 'https://4201.rpc.thirdweb.com';
const provider = new ethers.JsonRpcProvider(RPC_ENDPOINT);

// Get the controller key of the Universal Profile
Expand Down
2 changes: 1 addition & 1 deletion digital-assets/extract-asset-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LSP4Schema from '@erc725/erc725.js/schemas/LSP4DigitalAsset.json';
import { FetchDataOutput } from '@erc725/erc725.js/build/main/src/types/decodeData.js';

// https://docs.lukso.tech/networks/mainnet/parameters
const RPC_ENDPOINT = 'https://rpc.lukso.gateway.fm';
const RPC_ENDPOINT = 'https://42.rpc.thirdweb.com';
const IPFS_GATEWAY = 'https://api.universalprofile.cloud/ipfs';

// 💡 Note: You can debug any smart contract by using the ERC725 Tools
Expand Down
2 changes: 1 addition & 1 deletion digital-assets/fetch-json-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function fetchJSONData() {
const erc725js = new ERC725(
lsp4Schema,
'0x0514A829C832639Afcc02D257154A9DaAD8fa21B', // LSP7 Address
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{
ipfsGateway: 'https://api.universalprofile.cloud/ipfs',
},
Expand Down
2 changes: 1 addition & 1 deletion digital-assets/fetch-tokenid-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import lsp8Artifact from '@lukso/lsp-smart-contracts/artifacts/LSP8IdentifiableDigitalAsset.json';

const SAMPLE_LSP8_ASSET = '0x8734600968c7e7193BB9B1b005677B4edBaDcD18';
const RPC_URL = 'https://rpc.testnet.lukso.gateway.fm';
const RPC_URL = 'https://4201.rpc.thirdweb.com';

const provider = new ethers.JsonRpcProvider(RPC_URL);

Expand Down
2 changes: 1 addition & 1 deletion digital-assets/get-data-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import lsp4Schema from '@erc725/erc725.js/schemas/LSP4DigitalAsset.json';
const erc725js = new ERC725(
lsp4Schema,
'0x0514A829C832639Afcc02D257154A9DaAD8fa21B', // LSP7 Address
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{
ipfsGateway: 'https://api.universalprofile.cloud/ipfs',
},
Expand Down
2 changes: 1 addition & 1 deletion digital-assets/tokenIdFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import lsp8Artifact from '@lukso/lsp-smart-contracts/artifacts/LSP8IdentifiableD
import { ERC725YDataKeys } from '@lukso/lsp-smart-contracts';

const SAMPLE_LSP8_ASSET = '0x8734600968c7e7193BB9B1b005677B4edBaDcD18';
const RPC_URL = 'https://rpc.testnet.lukso.gateway.fm';
const RPC_URL = 'https://4201.rpc.thirdweb.com';

const provider = new ethers.JsonRpcProvider(RPC_URL);

Expand Down
2 changes: 1 addition & 1 deletion interface-detection/erc165-interface-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SAMPLE_ASSET_CONTRACT_ADDRESS =
'0x61b083f1fb63ba2F064990f01B233B547ED4F5Cb';

// https://docs.lukso.tech/networks/mainnet/parameters
const RPC_URL = 'https://rpc.lukso.gateway.fm';
const RPC_URL = 'https://42.rpc.thirdweb.com';

const myAsset = new ERC725(lsp4Schema, SAMPLE_ASSET_CONTRACT_ADDRESS, RPC_URL, {
ipfsGateway: 'https://api.universalprofile.cloud/ipfs',
Expand Down
2 changes: 1 addition & 1 deletion metadata-detection/digital-asset-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const assetContractAddress = '0x86e817172b5c07f7036bf8aa46e2db9063743a83';
const erc725js = new ERC725(
lsp4Schema,
assetContractAddress,
'https://rpc.lukso.gateway.fm',
'https://42.rpc.thirdweb.com',
{},
);

Expand Down
2 changes: 1 addition & 1 deletion metadata-detection/profile-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const profileContractAddress = '0x9139def55c73c12bcda9c44f12326686e3948634';
const erc725js = new ERC725(
lsp3ProfileSchema,
profileContractAddress,
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{},
);

Expand Down
2 changes: 1 addition & 1 deletion metadata-detection/vault-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const vaultContractAddress = '0x9139def55c73c12bcda9c44f12326686e3948634';
const erc725js = new ERC725(
lsp9VaultSchema,
vaultContractAddress,
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{},
);

Expand Down
4 changes: 2 additions & 2 deletions smart-contracts-hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ const config: HardhatUserConfig = {
},
networks: {
luksoTestnet: {
url: 'https://rpc.testnet.lukso.gateway.fm',
url: 'https://4201.rpc.thirdweb.com',
chainId: 4201,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
luksoMainnet: {
url: 'https://rpc.lukso.gateway.fm',
url: 'https://42.rpc.thirdweb.com',
chainId: 42,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
},
Expand Down
2 changes: 1 addition & 1 deletion transfer-lyx/backend-lyx-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ethers } from 'ethers';
import UniversalProfile from '@lukso/lsp-smart-contracts/artifacts/UniversalProfile.json';

// Connect to the mainnet or testnet
const RPC_ENDPOINT = 'https://rpc.testnet.lukso.gateway.fm';
const RPC_ENDPOINT = 'https://4201.rpc.thirdweb.com';
const provider = new ethers.JsonRpcProvider(RPC_ENDPOINT);

// Get the controller key of the Universal Profile
Expand Down
2 changes: 1 addition & 1 deletion universal-profile/extract-profile-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'isomorphic-fetch';
import { FetchDataOutput } from '@erc725/erc725.js/build/main/src/types/decodeData.js';

// Static variables
const RPC_ENDPOINT = 'https://rpc.testnet.lukso.gateway.fm';
const RPC_ENDPOINT = 'https://4201.rpc.thirdweb.com';
const IPFS_GATEWAY = 'https://api.universalprofile.cloud/ipfs';
const SAMPLE_PROFILE_ADDRESS = '0x9139def55c73c12bcda9c44f12326686e3948634';

Expand Down
2 changes: 1 addition & 1 deletion universal-profile/fetch-json-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import lsp3ProfileSchema from '@erc725/erc725.js/schemas/LSP3ProfileMetadata.jso
const erc725js = new ERC725(
lsp3ProfileSchema,
'0xEda145b45f76EDB44F112B0d46654044E7B8F319', // UP Contract Address
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{
ipfsGateway: 'https://api.universalprofile.cloud/ipfs',
},
Expand Down
2 changes: 1 addition & 1 deletion universal-profile/get-data-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const myUniversalProfileAddress = '0x9139def55c73c12bcda9c44f12326686e3948634';
const erc725js = new ERC725(
lsp3ProfileSchema,
myUniversalProfileAddress,
'https://rpc.testnet.lukso.gateway.fm',
'https://4201.rpc.thirdweb.com',
{
ipfsGateway: 'https://api.universalprofile.cloud/ipfs',
},
Expand Down

0 comments on commit 30fecdd

Please sign in to comment.