Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simplify governance tests and support live network testing #90

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;

import { BaseMultisig } from '../../governance/BaseMultisig.sol';

contract TestBaseMultiSig is BaseMultisig {
contract TestBaseMultisig is BaseMultisig {
constructor(address[] memory accounts, uint256 threshold) BaseMultisig(accounts, threshold) {}

function resetVotes(bytes32 topic) external {
Expand Down
3 changes: 3 additions & 0 deletions contracts/test/governance/TestInterchainGovernance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ pragma solidity ^0.8.0;

import { InterchainGovernance } from '../../governance/InterchainGovernance.sol';

/**
* @dev This exists so Slither knows InterchainGovernance methods are being used.
*/
contract TestInterchainGovernance is InterchainGovernance {
constructor(
address gatewayAddress,
Expand Down
24 changes: 0 additions & 24 deletions contracts/test/governance/TestServiceGovernance.sol

This file was deleted.

25 changes: 25 additions & 0 deletions contracts/test/mocks/MockGatewayValidation.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract MockGatewayValidation {
function validateContractCall(
bytes32,
string calldata,
string calldata,
bytes32
) external pure returns (bool) {
return true;
}

function validateContractCallAndMint(
bytes32,
string calldata,
string calldata,
bytes32,
string calldata,
uint256
) external pure returns (bool) {
return true;
}
}
2 changes: 1 addition & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
sources: './contracts',
},
mocha: {
timeout: 100000,
timeout: 4 * 60 * 60 * 1000, // 4 hrs
},
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelar-gmp-sdk-solidity",
"version": "5.3.1",
"version": "5.3.3",
"description": "Solidity GMP SDK and utilities provided by Axelar for cross-chain development",
"main": "index.js",
"scripts": {
Expand Down
Loading
Loading