Skip to content

Commit

Permalink
Fix test issue and bump package version
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalrajbacancy committed Apr 4, 2024
1 parent 299a535 commit 95fe0b3
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 926 deletions.
1,033 changes: 516 additions & 517 deletions DEPLOYMENTS.md

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions dist/contracts.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/deploy/001_create-common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const func = async (hre) => {
const { deployments: { deploy }, getNamedAccounts, } = hre;
const { deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const { from } = await getNamedAccounts();
await deploy("BalancesHelper", {
from,
Expand All @@ -12,5 +13,5 @@ const func = async (hre) => {
log: true,
});
};
func.tags = ["create", "common"];
func.tags = ["create", "common", "balanceHelpers"];
module.exports = func;
4 changes: 3 additions & 1 deletion dist/extensions/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export declare enum NetworkNames {
LocalH = "localH",
Flare = "flare",
Scroll = "scroll",
BaseSepolia = "baseSepolia"
BaseSepolia = "baseSepolia",
RootstockTestnet = "rootstockTestnet",
Rootstock = "rootstock"
}
export declare const NETWORK_CONFIGS: {
[key: string]: {
Expand Down
25 changes: 19 additions & 6 deletions dist/extensions/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ var NetworkNames;
NetworkNames["Flare"] = "flare";
NetworkNames["Scroll"] = "scroll";
NetworkNames["BaseSepolia"] = "baseSepolia";
NetworkNames["RootstockTestnet"] = "rootstockTestnet";
NetworkNames["Rootstock"] = "rootstock";
})(NetworkNames = exports.NetworkNames || (exports.NetworkNames = {}));
exports.NETWORK_CONFIGS = {
[NetworkNames.Mainnet]: {
Expand Down Expand Up @@ -303,20 +305,31 @@ exports.NETWORK_CONFIGS = {
chainId: 14,
defaultProviderUrl: "https://rpc.ftso.au/flare",
defaultGasPrice: 25,
explorer: 'https://flare-explorer.flare.network/',
explorer: "https://flare-explorer.flare.network/",
},
[NetworkNames.Scroll]: {
chainId: 534352,
defaultProviderUrl: 'https://rpc.scroll.io',
explorer: 'https://scrollscan.com/',
defaultProviderUrl: "https://rpc.scroll.io",
explorer: "https://scrollscan.com/",
defaultGasPrice: 1,
},
[NetworkNames.BaseSepolia]: {
chainId: 84532,
defaultProviderUrl: 'https://base-sepolia-rpc.publicnode.com',
explorer: 'https://sepolia.basescan.org/',
defaultProviderUrl: "https://base-sepolia-rpc.publicnode.com",
explorer: "https://sepolia.basescan.org/",
defaultGasPrice: 1,
}
},
[NetworkNames.RootstockTestnet]: {
chainId: 31,
defaultProviderUrl: "https://public-node.testnet.rsk.co",
explorer: "https://rootstock-testnet.blockscout.com/",
defaultGasPrice: 1,
},
[NetworkNames.Rootstock]: {
chainId: 30,
defaultProviderUrl: "https://public-node.rsk.co",
explorer: "https://rootstock.blockscout.com/",
},
};
var ContractNames;
(function (ContractNames) {
Expand Down
2 changes: 1 addition & 1 deletion extensions/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const NETWORK_CONFIGS: {
[NetworkNames.RootstockTestnet]: {
chainId: 31,
defaultProviderUrl: "https://public-node.testnet.rsk.co",
explorer: "https://explorer.testnet.rootstock.io/",
explorer: "https://rootstock-testnet.blockscout.com/",
defaultGasPrice: 1,
},
[NetworkNames.Rootstock]: {
Expand Down
16 changes: 1 addition & 15 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const {
HARDHAT_MNEMONIC,
MAINNET_ALCHEMY_API_KEY,
ETHERSCAN_API_KEY,
BLOCKSCOUT_API_KEY,
} = process.env;

const config: HardhatUserConfig = {
Expand Down Expand Up @@ -134,20 +133,7 @@ const config: HardhatUserConfig = {
[ContractNames.ENSReverseRegistrar]: utils.id("ETHERspot@1.2.0"),
},
etherscan: {
apiKey: {
mainnet: ETHERSCAN_API_KEY,
rootstockTestnet: BLOCKSCOUT_API_KEY,
},
customChains: [
{
network: "rootstockTestnet",
chainId: 31,
urls: {
apiURL: "https://rootstock-testnet.blockscout.com/api",
browserURL: "https://rootstock-testnet.blockscout.com/",
},
},
],
apiKey: ETHERSCAN_API_KEY,
},
};

Expand Down
Loading

0 comments on commit 95fe0b3

Please sign in to comment.