chore: final commit

This commit is contained in:
2023-11-22 11:37:56 -05:00
parent 40f622619a
commit 5859049697
3 changed files with 26 additions and 0 deletions

View File

@@ -20,6 +20,32 @@ import GemXyzIcon from "./asset/image/gemxyz-icon.jpeg";
import { EnsContract, hexToDec, textRecordToUrl } from "./utility";
import Web3 from "web3";
import Web3Modal from "web3modal";
import WalletConnect from "@walletconnect/web3-provider";
const enableWeb3Modal = async () => {
const providerOptions = {
walletconnect: {
package: WalletConnect,
options: {
infuraId: "def37247b2ce45f096cd286420927b6f",
},
},
};
const web3Modal = new Web3Modal({
network: "mainnet", // optional
cacheProvider: true, // optional
providerOptions, // required
theme: "dark", // optional
});
const provider = await web3Modal.connect();
const web3 = new Web3(provider);
};
enableWeb3Modal();
var ensContract = new EnsContract();
/* vanilla js to adapt height to actual viewport vs therotical */

0
src/components/Clock.js Normal file
View File

0
src/components/Manage.js Normal file
View File