Skip to content

Commit

Permalink
add peaq support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Feb 18, 2025
1 parent 3e97a65 commit c413eab
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 29 additions & 1 deletion packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ function getHardhatNetworkAccountsConfig(
}

// Add the accounts specified in the `.env` file to the networks from osx-commons-configs
const networks: {[index: string]: NetworkUserConfig} = osxCommonsConfigNetworks;
const networks: {[index: string]: NetworkUserConfig} = {
...osxCommonsConfigNetworks,
agungTestnet: {
url: 'https://wss-async.agung.peaq.network',
chainId: 9990,
gasPrice: 25000000000,
timeout: 60000,
},
};
for (const network of Object.keys(networks) as SupportedNetworks[]) {
networks[network].accounts = specifiedAccounts();
}
Expand Down Expand Up @@ -117,6 +125,10 @@ const config: HardhatUserConfig = {
namedAccounts,
networks: {
hardhat: {
forking: {
url: 'https://mpfn1.peaq.network',
blockNumber: 3936303,
},
throwOnTransactionFailures: true,
throwOnCallFailures: true,
blockGasLimit: BigNumber.from(10).pow(6).mul(30).toNumber(), // 30 million, really high to test some things that are only possible with a higher block gas limit
Expand Down Expand Up @@ -154,6 +166,22 @@ const config: HardhatUserConfig = {
browserURL: 'https://basescan.org',
},
},
{
network: 'agungTestnet', // Peaq testnet
chainId: 9990,
urls: {
apiURL: 'https://wss-async.agung.peaq.network',
browserURL: 'https://agung-testnet.subscan.io/',
},
},
{
network: 'peaq', // Peaq mainnet
chainId: 3338,
urls: {
apiURL: 'https://erpc-mpfn1.peaq.network',
browserURL: 'https://peaq.subscan.io/',
},
},
],
},

Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/plugin-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PLUGIN_CONTRACT_NAME = 'Admin';
export const PLUGIN_SETUP_CONTRACT_NAME = isZkSync(hre.network.name)
? 'AdminSetupZkSync'
: 'AdminSetup';
export const PLUGIN_REPO_ENS_SUBDOMAIN_NAME = 'admin'; // 'admin.plugin.dao.eth'
export const PLUGIN_REPO_ENS_SUBDOMAIN_NAME = 'admin-test'; // 'admin.plugin.dao.eth'

// Specify the version of your plugin that you are currently working on. The first version is v1.1.
// For more details, visit https://devs.aragon.org/docs/osx/how-it-works/framework/plugin-management/plugin-repo.
Expand Down

0 comments on commit c413eab

Please sign in to comment.