Skip to content

Commit

Permalink
Remove typechain files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeychr committed Nov 3, 2024
1 parent 02d5422 commit c7fd76d
Show file tree
Hide file tree
Showing 201 changed files with 37 additions and 32,496 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/dist
/typechain
/fixture-projects/**/typechain

# Logs
logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ import "@debridge-finance/contracts/contracts/interfaces/ICallProxy.sol";

import "./interfaces/ICrossChainCounter.sol";

/// @notice IDeBridgeGate interface doesn't contain a getter for the `callProxy` public variable, which is
/// defined in the `DeBridgeGate` contract, so we create a dummy interface solely for this getter
interface IDebridgeGateWithCallProxyGetter is IDeBridgeGate {
function callProxy() external returns (address);
}

contract CrossChainCounter is AccessControl, ICrossChainCounter {
/// @dev DeBridgeGate's address on the current chain
IDebridgeGateWithCallProxyGetter public deBridgeGate;
IDeBridgeGate public deBridgeGate;

/// @dev chains, where commands are allowed to come from
/// @dev chain_id_from => ChainInfo
Expand Down Expand Up @@ -62,7 +56,7 @@ contract CrossChainCounter is AccessControl, ICrossChainCounter {

/* ========== INITIALIZERS ========== */

constructor(IDebridgeGateWithCallProxyGetter deBridgeGate_) {
constructor(IDeBridgeGate deBridgeGate_) {
deBridgeGate = deBridgeGate_;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ import "@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.sol";

import "./interfaces/ICrossChainCounter.sol";

interface IDeBridgeGateExtended is IDeBridgeGate {
function globalFixedNativeFee() external returns (uint);
}

contract CrossChainIncrementor {
/// @dev DeBridgeGate's address on the current chain
IDeBridgeGateExtended public deBridgeGate;
IDeBridgeGate public deBridgeGate;

/// @dev Chain ID where the cross-chain counter contract has been deployed
uint256 crossChainCounterResidenceChainID;
Expand All @@ -23,7 +19,7 @@ contract CrossChainIncrementor {
/* ========== INITIALIZERS ========== */

constructor(
IDeBridgeGateExtended deBridgeGate_,
IDeBridgeGate deBridgeGate_,
uint256 crossChainCounterResidenceChainID_,
address crossChainCounterResidenceAddress_
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("@typechain/hardhat");
require("../../../src/index");
require("../../src/index");

/**
* @type import('hardhat/config').HardhatUserConfig
Expand Down
181 changes: 20 additions & 161 deletions package-lock.json

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

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
"scripts": {
"lint:fix": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json",
"lint": "tslint --config tslint.json --project tsconfig.json",
"pretest": "npm run test:build",
"test": "hardhat test",
"prebuild": "npm run clean",
"build": "hardhat compile && hardhat build && tsc",
"clean": "rm -rf ./dist",
"build": "hardhat compile && hardhat typechain && hardhat build && tsc",
"pretest:build": "npm run test:clean",
"test:build": "cd fixture-projects/hardhat-debridge-test-env && hardhat compile",
"test:clean": "cd fixture-projects/hardhat-debridge-test-env && hardhat clean && rm -rf ./typechain",
"clean": "hardhat clean && rm -rf ./dist ./typechain" ,
"prepare": "npm run build"
},
"files": [
Expand All @@ -28,6 +32,7 @@
],
"devDependencies": {
"@debridge-finance/contracts": "github:debridge-finance/debridge-contracts-v1#v4.2.1",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.4",
"@nomiclabs/hardhat-ethers": "^2.0.6",
"@typechain/ethers-v5": "^10.1.0",
"@typechain/hardhat": "^6.1.2",
Expand All @@ -46,8 +51,7 @@
"tslint": "^5.16.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^4.0.3",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.4"
"typescript": "^5.6.3"
},
"peerDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.6",
Expand Down

This file was deleted.

Loading

0 comments on commit c7fd76d

Please sign in to comment.