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

fix: tt 372 deploy v5 contracts #33

Merged
merged 25 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
852bc01
refactor: update method and event name
RishabhSGT Oct 22, 2024
0384e3f
fix: deleted tt-base file
RishabhSGT Oct 22, 2024
1acb1ab
fix: removed amoy url
RishabhSGT Oct 22, 2024
d124d4d
chore: upgrade to EtersV6
RishabhSGT Oct 31, 2024
5287b20
chore: upgrade oppenzeppelin contracts
RishabhSGT Nov 1, 2024
58414da
chore: upgrad contracts upgradable
RishabhSGT Nov 2, 2024
a0a51aa
chore: latest soldity version
RishabhSGT Nov 2, 2024
13ce5f3
fix: lintng fixes
RishabhSGT Nov 2, 2024
309b8dd
fix: lintig errors
RishabhSGT Nov 11, 2024
81de164
fix: lint
RishabhSGT Nov 11, 2024
7d20cfc
chore:deploy latest version contracts
RishabhSGT Nov 14, 2024
15a9fff
chore: upgraded addresses
RishabhSGT Nov 18, 2024
ae51680
chore: upgrade smart contracts from v8.0 to v8.20 and update addresses
RishabhSGT Nov 26, 2024
f5e4576
merge: resolve conflicts after pulling from origin/feat/remarks-and-r…
RishabhSGT Nov 26, 2024
394a215
chore: Update tasks/deploy-token.ts
RishabhS7 Nov 26, 2024
ea68c15
chore: deploy latest version contracts
RishabhSGT Nov 14, 2024
7091340
chore: upgraded addresses
RishabhSGT Nov 18, 2024
f8da1d1
chore: upgrade smart contracts from v8.0 to v8.20 and update addresses
RishabhSGT Nov 26, 2024
a63852e
chore: bump
RishabhSGT Nov 26, 2024
1f52b9d
chore: bump
RishabhSGT Nov 26, 2024
b23e9f9
chore: bump
RishabhSGT Nov 26, 2024
28f6200
chore: bump
RishabhSGT Nov 26, 2024
61f8372
chore: bump
RishabhSGT Nov 26, 2024
a18ecdc
chore: bump
RishabhSGT Nov 26, 2024
fabb5c1
fix: update code support (#28)
nghaninn Nov 15, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarn-error.log
/contracts/.deps
/coverage
coverage.json
.openzeppelin/
2 changes: 1 addition & 1 deletion contracts/TitleEscrow.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import { Pausable } from "@openzeppelin/contracts/utils/Pausable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/TitleEscrowFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { Clones } from "@openzeppelin/contracts/proxy/Clones.sol";
import { TitleEscrow } from "./TitleEscrow.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/TradeTrustToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustTokenBase, ITitleEscrowFactory } from "./base/TradeTrustTokenBase.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/base/RegistryAccess.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import { RegistryAccessErrors } from "../interfaces/RegistryAccessErrors.sol";
Expand All @@ -17,7 +17,7 @@
* @notice Initialises the contract by setting up roles for the given admin address.
* @param admin The address of the admin role.
*/
function __RegistryAccess_init(address admin) internal onlyInitializing {

Check warning on line 20 in contracts/base/RegistryAccess.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Function name must be in mixedCase
if (admin == address(0)) {
revert InvalidAdminAddress();
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/SBTUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import { ContextUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
Expand Down Expand Up @@ -42,11 +42,11 @@
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
function __SBT_init(string memory name_, string memory symbol_) internal onlyInitializing {

Check warning on line 45 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Function name must be in mixedCase
__SBT_init_unchained(name_, symbol_);
}

function __SBT_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {

Check warning on line 49 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Function name must be in mixedCase
_name = name_;
_symbol = symbol_;
}
Expand All @@ -67,7 +67,7 @@
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");

Check warning on line 70 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Error message for require is too long: 42 counted / 32 allowed

Check warning on line 70 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Use Custom Errors instead of require statements
return _balances[owner];
}

Expand All @@ -76,7 +76,7 @@
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");

Check warning on line 79 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Error message for require is too long: 41 counted / 32 allowed

Check warning on line 79 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Use Custom Errors instead of require statements
return owner;
}

Expand All @@ -98,7 +98,7 @@
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

Check warning on line 101 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Error message for require is too long: 47 counted / 32 allowed

Check warning on line 101 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Use Custom Errors instead of require statements

string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
Expand All @@ -117,7 +117,7 @@
* @dev See {IERC721-safeTransferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId, bytes memory _remark) public virtual override {
require(_isOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

Check warning on line 120 in contracts/base/SBTUpgradeable.sol

View workflow job for this annotation

GitHub Actions / Linters / Code Lint

Error message for require is too long: 49 counted / 32 allowed
_safeTransfer(from, to, tokenId, _remark);
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustSBT.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { PausableUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
import { SBTUpgradeable } from "./SBTUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustTokenBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { RegistryAccess } from "./RegistryAccess.sol";
import { TradeTrustTokenBurnable, TradeTrustSBT, SBTUpgradeable } from "./TradeTrustTokenBurnable.sol"; //check-circular-imports
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustTokenBaseURI.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustSBT } from "./TradeTrustSBT.sol";
import { RegistryAccess } from "./RegistryAccess.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustTokenBurnable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustSBT, ITitleEscrow, SBTUpgradeable } from "./TradeTrustSBT.sol";
import { RegistryAccess } from "./RegistryAccess.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustTokenMintable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustSBT, ITitleEscrow, SBTUpgradeable } from "./TradeTrustSBT.sol";
import { RegistryAccess } from "./RegistryAccess.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/base/TradeTrustTokenRestorable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustSBT, ITitleEscrow, SBTUpgradeable } from "./TradeTrustSBT.sol";
import { RegistryAccess } from "./RegistryAccess.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC721MetadataUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { ISBTUpgradeable } from "./ISBTUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ISBTUpgradeable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITitleEscrow.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITitleEscrowFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface ITitleEscrowFactory {
event TitleEscrowCreated(address indexed titleEscrow, address indexed tokenRegistry, uint256 indexed tokenId);
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITitleEscrowSignable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import { SigHelper } from "../utils/SigHelper.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITradeTrustSBT.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import { ISBTUpgradeable, IERC165 } from "./ISBTUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITradeTrustToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { ITradeTrustSBT, ITitleEscrowFactory } from "./ITradeTrustSBT.sol";
import { ITradeTrustTokenRestorable } from "./ITradeTrustTokenRestorable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITradeTrustTokenBurnable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface ITradeTrustTokenBurnable {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITradeTrustTokenMintable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface ITradeTrustTokenMintable {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITradeTrustTokenRestorable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface ITradeTrustTokenRestorable {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/RegistryAccessErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface RegistryAccessErrors {
error InvalidAdminAddress();
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/SigHelperErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface SigHelperErrors {
error SignatureAlreadyCancelled();
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TDocDeployerErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface TDocDeployerErrors {
error UnsupportedImplementationContractAddress();
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TitleEscrowErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface TitleEscrowErrors {
error CallerNotBeneficiary();
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TitleEscrowFactoryErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface TitleEscrowFactoryErrors {
error CreateCallerNotContract();
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TitleEscrowSignableErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface TitleEscrowSignableErrors {
error SignatureExpired(uint256 currentTimestamp);
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TradeTrustTokenErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

interface TradeTrustTokenErrors {
error TokenNotReturnedToIssuer();
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/TitleEscrowStructs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

/**
@dev BeneficiaryTransferEndorsement represents the endorsement details.
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC721ReceiverMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SBTUpgradeableMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { SBTUpgradeable } from "../base/SBTUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SigHelperMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { SigHelper } from "../utils/SigHelper.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/SimpleCaller.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

contract SimpleCaller {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/TitleEscrowFactoryCallerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { ITitleEscrowFactory } from "../interfaces/ITitleEscrowFactory.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/TitleEscrowFactoryGetterMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { ITitleEscrowFactory } from "../interfaces/ITitleEscrowFactory.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/TitleEscrowMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TitleEscrow } from "../TitleEscrow.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/TradeTrustTokenMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustToken } from "../TradeTrustToken.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/presets/TitleEscrowSignable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TitleEscrow } from "../TitleEscrow.sol";
import { SigHelper } from "../utils/SigHelper.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/presets/TradeTrustTokenStandard.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { TradeTrustTokenBase, ITitleEscrowFactory } from "../base/TradeTrustTokenBase.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/SigHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { SigHelperErrors } from "../interfaces/SigHelperErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/TDocDeployer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.27;
pragma solidity ^0.8.20;

import { Clones } from "@openzeppelin/contracts/proxy/Clones.sol";
import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
Expand Down
15 changes: 13 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "@nomicfoundation/hardhat-toolbox";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import { randomBytes } from "crypto";
import dotenv from "dotenv";
import "hardhat-watcher";
Expand Down Expand Up @@ -40,7 +41,7 @@ if (IS_CI_ENV) {

const config: HardhatUserConfig = {
solidity: {
compilers: [{ version: "0.8.27" }],
compilers: [{ version: "0.8.22" }],

settings: {
optimizer: {
Expand All @@ -67,6 +68,7 @@ const config: HardhatUserConfig = {
gasReporter: {
coinmarketcap: COINMARKETCAP_API_KEY,
currency: "USD",
enabled: true,
},
etherscan: {
apiKey: {
Expand All @@ -78,6 +80,14 @@ const config: HardhatUserConfig = {
* Polygon
*/
polygon: POLYGONSCAN_API_KEY!,
/**
* polygon amoy
*/
polygonAmoy: POLYGONSCAN_API_KEY!,
/**
* stability testnet
*/
stabilitytestnet: STABILITY_API_KEY!,
},
},
networks: {
Expand Down Expand Up @@ -128,7 +138,8 @@ const config: HardhatUserConfig = {
},
amoy: {
...networkConfig,
url: `https://polygon-amoy.infura.io/v3/${INFURA_APP_ID}`,
url: "https://rpc-amoy.polygon.technology",
// url: `https://polygon-amoy.infura.io/v3/${INFURA_APP_ID}`,
},
/**
* Development
Expand Down
Loading
Loading