Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 5cdc6d2

Browse files
committed
feat: upgrade typechain to target ethers v5
BREAKING CHANGE: upgrading to a new target ethers v5
1 parent 1d9cca5 commit 5cdc6d2

File tree

13 files changed

+4147
-558
lines changed

13 files changed

+4147
-558
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
migrations/1_initial_migration.js
2-
dist
2+
dist
3+
src/contracts

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"assert": "readonly",
1818
"web3": "writable"
1919
},
20+
"rules": {
21+
"import/extensions": "off",
22+
"import/no-unresolved": "off"
23+
},
2024
"overrides": [
2125
{
2226
"files": ["**/*.ts", "**/*.tsx"],

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ To use the package, you will need to provide your own Web3 [provider](https://do
1717
Deploying new TradeTrustERC721
1818

1919
```ts
20-
import {TradeTrustERC721Factory} from "@govtechsg/token-registry";
20+
import {TradeTrustErc721Factory} from "@govtechsg/token-registry";
2121

22-
const factory = new TradeTrustERC721Factory(signer1);
22+
const factory = new TradeTrustErc721Factory(signer1);
2323
const tokenRegistry = await tokenRegistryFactory.deploy("MY_TOKEN_REGISTRY", "TKN");
2424
```
2525

2626
Connecting to existing TradeTrustERC721 on Ethereum
2727

2828
```ts
29-
import {TradeTrustERC721Factory} from "@govtechsg/token-registry";
29+
import {TradeTrustErc721Factory} from "@govtechsg/token-registry";
3030

31-
const connectedRegistry = TradeTrustERC721Factory.connect(existingERC721Address, signer1);
31+
const connectedRegistry = TradeTrustErc721Factory.connect(existingERC721Address, signer1);
3232
```
3333

3434
List of available functions on TradeTrustERC721

contracts/ERC721.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.11;
1+
pragma solidity ^0.5.16;
22

33
// File: contracts/GSN/Context.sol
44

contracts/ITitleEscrow.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.11;
1+
pragma solidity ^0.5.16;
22

33
/// @title Title Escrow for Transferable Records
44
interface ITitleEscrow {

contracts/ITitleEscrowCreator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.11;
1+
pragma solidity ^0.5.16;
22

33
/// @title Title Escrow for Transferable Records
44
interface ITitleEscrowCreator {

contracts/TitleEscrow.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.11;
1+
pragma solidity ^0.5.16;
22

33
import "./ERC721.sol";
44
import "./ITitleEscrow.sol";

contracts/TitleEscrowCreator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.11;
1+
pragma solidity ^0.5.16;
22

33
import "./ERC721.sol";
44
import "./TitleEscrow.sol";

0 commit comments

Comments
 (0)