Skip to content

Commit

Permalink
new block explorer url and api
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jan 16, 2024
1 parent 1ec7ff1 commit 90899c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion deploy/partners/zksoul/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as ethers from "ethers";
require('dotenv').config();

const tldAddress = "0xe36507aD67Ac0aE6D27D22b407A9338b136315df"; // @todo: replace with your TLD address
const minterAddress = "0x346F859312527e5B2f34C22b645015e8764c0B14"; // @todo: replace with your minter address
const minterAddress = "0x4398CaB92eE1143265b65d46fAb278c0AfF50252"; //"0x0453B90095E756427392980B7a6430d0dbD5611b"; // @todo: replace with your minter address
const metadataAddress = "0xc9AEd7851A3aC96452c299546bdEfbF09B6aC5a8"; // @todo: replace with your metadata address

async function main() {
Expand All @@ -27,19 +27,31 @@ async function main() {

const tldContract = new ethers.Contract(tldAddress, tldInterface, signer);

const minterInterface = new ethers.utils.Interface([
"function distributorAddress() external view returns(address)",
]);

const minterContract = new ethers.Contract(minterAddress, minterInterface, signer);

// CHANGE MINTER

/* */
const minterBefore = await tldContract.minter();
console.log("Minter before: " + minterBefore);

/* */
const changeMinterTx = await tldContract.changeMinter(minterAddress);
await changeMinterTx.wait();

const minterAfter = await tldContract.minter();
console.log("Minter after: " + minterAfter);


// MINTER DATA
const distributorAddress = await minterContract.distributorAddress();
console.log("Distributor address: " + distributorAddress);


// CHANGE METADATA ADDRESS
//await tldContract.changeMetadataAddress(metadataAddress);
}
Expand Down
6 changes: 3 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
etherscan: {
apiKey: {
zkSyncTestnet: "randomstring",
zkSyncMainnet: "randomstring"
zkSyncMainnet: process.env.BLOCK_EXPLORER_API_KEY
},

customChains: [
Expand All @@ -52,8 +52,8 @@ module.exports = {
network: "zkSyncMainnet",
chainId: 324,
urls: {
apiURL: "https://zksync2-mainnet.zkscan.io/api",
browserURL: "https://zksync2-mainnet.zkscan.io/"
apiURL: "https://era.zksync.network/api", // "https://api-era.zksync.network/api", // "https://zksync2-mainnet.zkscan.io/api",
browserURL: "https://era.zksync.network/"
}
}

Expand Down

0 comments on commit 90899c0

Please sign in to comment.