chore: final commit
This commit is contained in:
26
src/App.js
26
src/App.js
@@ -20,6 +20,32 @@ import GemXyzIcon from "./asset/image/gemxyz-icon.jpeg";
|
|||||||
|
|
||||||
import { EnsContract, hexToDec, textRecordToUrl } from "./utility";
|
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();
|
var ensContract = new EnsContract();
|
||||||
|
|
||||||
/* vanilla js to adapt height to actual viewport vs therotical */
|
/* vanilla js to adapt height to actual viewport vs therotical */
|
||||||
|
|||||||
0
src/components/Clock.js
Normal file
0
src/components/Clock.js
Normal file
0
src/components/Manage.js
Normal file
0
src/components/Manage.js
Normal file
Reference in New Issue
Block a user