Skip to content

Commit b9faffc

Browse files
committed
1.0.4
added missing .sol dependencies to NPM package also added the flattened source
1 parent d9b0ec6 commit b9faffc

File tree

7 files changed

+1276
-9
lines changed

7 files changed

+1276
-9
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| Polygon Amoy testnet | [0xf5e28a2E7BbedbE97c3782b17b102410E10d90f1](https://amoy.polygonscan.com/address/0xf5e28a2E7BbedbE97c3782b17b102410E10d90f1#code) |
1515
| IoTeX testnet | [0x5ABD469031d2B5f939808565EAB8562d7Cbaa939](https://testnet.iotexscan.io/address/0x5ABD469031d2B5f939808565EAB8562d7Cbaa939) |
1616

17-
## NPM package contents
17+
# NPM package contents
1818

1919
JS/TypeScript utilities to get a nicely typed DATAv2 instance. Here's a sample code for plain node.js:
2020
```javascript
@@ -62,7 +62,16 @@ console.log("Symbol:", await token.symbol())
6262
|contracts/DATAv2onPolygon.sol `*` | DATAv2 deployed on MATIC/Polygon chain, extended slightly for bridging | MATIC [0x3a9...34](https://polygonscan.com/address/0x3a9A81d576d83FF21f26f325066054540720fC34#code) |
6363

6464
`*` _added after the audit_
65-
## DATAv2 features
65+
66+
## NPM package changelog
67+
68+
1.0.0 deployed to Polygon
69+
1.0.1 export abi, types, and bytecode; helper functions `getTokenAt` and `deployToken`
70+
1.0.2 ethers v5 -> v6
71+
1.0.3 peaq and iotex
72+
1.0.4 included .sol dependencies and flattened .sol file
73+
74+
# DATAv2 features
6675

6776
Some of the following features are inherited from [OpenZeppelin contracts](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v4.0.0/contracts):
6877

@@ -80,11 +89,10 @@ DATAv2 has an admin role (controlled by Streamr) that can add and remove minters
8089

8190
The whole old DATA supply is minted as part of migration, and new tokens may be minted later as decided by the community process in the form of [Streamr Improvement Proposals](https://snapshot.org/#/streamr.eth), see e.g. [SIP-6](https://snapshot.org/#/streamr.eth/proposal/QmU383LMPAHdzMevcxY6UzyL5vkBaNHQhCcp2WbXw5kXS1).
8291

83-
# ERC677 functionality
92+
## ERC677 functionality
8493

8594
DATAv2 follows the convention of [LINK](https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca#code) and other tokens with regard to the callback function `onTokenTransfer` invoked by `transferAndCall`: DATAv2 does not check the bool return value of `onTokenTransfer`. Instead `onTokenTransfer` should revert if the transfer is to be rejected by the recipient contract. If the recipient is a contract, it must implement `onTokenTransfer` or else `transferAndCall` reverts.
8695

87-
8896
## Migration process
8997

9098
1. We deploy the DATAv2 and DataTokenMigrator contracts

contracts/MockRecipient.sol renamed to contracts/test/MockRecipient.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pragma solidity 0.8.6;
33

44
// import "hardhat/console.sol";
5-
import "./IERC677Receiver.sol";
5+
import "../IERC677Receiver.sol";
66

77
contract MockRecipient is IERC677Receiver {
88
uint public txCount;

0 commit comments

Comments
 (0)