Skip to content

Commit a7ec4dd

Browse files
authored
Merge branch 'master' into draft-eip-1820
2 parents f96f621 + 40d2eb3 commit a7ec4dd

File tree

9 files changed

+17
-12
lines changed

9 files changed

+17
-12
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ about: Report a bug in OpenZeppelin
66

77
<!-- Briefly describe the issue you're experiencing. Tell us what you were trying to do and what happened instead. -->
88

9-
<!-- Remember, this is not a place to ask for help debugging code. For that, we welcome you in the OpenZeppelin Slack channel: https://slack.openzeppelin.org/. -->
9+
<!-- Remember, this is not a place to ask for help debugging code. For that, we welcome you in the Zeppelin Forum: https://forum.zeppelin.solutions/. -->
1010

1111
**💻 Environment**
1212

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22

33
## 2.3.0 (unreleased)
4+
45
### New features:
56
* `ERC1820`: added support for interacting with the [ERC1820](https://eips.ethereum.org/EIPS/eip-1820) registry contract (`IERC1820Registry`), as well as base contracts that can be registered as implementers there. ([#1677](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1677))
67

7-
## 2.2.0 (unreleased)
8+
## 2.2.0 (2019-03-14)
89

910
### New features:
1011
* `ERC20Snapshot`: create snapshots on demand of the token balances and total supply, to later retrieve and e.g. calculate dividends at a past time. ([#1617](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1617))

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
npm install openzeppelin-solidity
1313
```
1414

15+
OpenZeppelin features a stable API, which means your contracts won't break unexpectedly when upgrading to a newer minor version. You can read ṫhe details in our [API Stability](https://forum.zeppelin.solutions/t/api-stability/138) document.
16+
1517
## Usage
1618

1719
To write your custom contracts, import ours and extend them through inheritance.
@@ -30,7 +32,7 @@ contract MyNFT is ERC721Full, ERC721Mintable {
3032

3133
> You need an ethereum development framework for the above import statements to work! Check out these guides for [Truffle] or [Embark].
3234
33-
On our site you will find a few [guides] to learn about the different parts of OpenZeppelin, as well as [documentation for the API][API docs]. Keep in mind that the API docs are work in progress, and don’t hesitate to ask questions in [our Slack][Slack].
35+
On our site you will find a few [guides] to learn about the different parts of OpenZeppelin, as well as [documentation for the API][API docs]. Keep in mind that the API docs are work in progress, and don’t hesitate to ask questions in [our forum][forum].
3436

3537
## Security
3638

@@ -53,7 +55,7 @@ OpenZeppelin is released under the [MIT License](LICENSE).
5355

5456
[API docs]: https://openzeppelin.org/api/docs/token_ERC721_ERC721BasicToken.html
5557
[guides]: https://openzeppelin.org/api/docs/get-started.html
56-
[Slack]: https://slack.openzeppelin.org
58+
[forum]: https://forum.zeppelin.solutions
5759
[Zeppelin]: https://zeppelin.solutions
5860
[contribution guide]: CONTRIBUTING.md
5961
[Truffle]: https://truffleframework.com/docs/truffle/quickstart

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Once the CI run for the new tag is green, publish on npm under the `next` tag. Y
4040
npm publish --tag next
4141
```
4242

43-
Publish the release notes on GitHub and ask our community manager to announce the release candidate on at least Slack and Twitter.
43+
Publish the release notes on GitHub and the forum, and ask our community manager to announce the release candidate on at least Twitter.
4444

4545
## Creating the final release
4646

contracts/drafts/ERC20Snapshot.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ contract ERC20Snapshot is ERC20 {
3131
}
3232

3333
mapping (address => Snapshots) private _accountBalanceSnapshots;
34-
Snapshots private _totalSupplySnaphots;
34+
Snapshots private _totalSupplySnapshots;
3535

3636
// Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
3737
Counters.Counter private _currentSnapshotId;
@@ -56,7 +56,7 @@ contract ERC20Snapshot is ERC20 {
5656
}
5757

5858
function totalSupplyAt(uint256 snapshotId) public view returns(uint256) {
59-
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnaphots);
59+
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);
6060

6161
return snapshotted ? value : totalSupply();
6262
}
@@ -118,7 +118,7 @@ contract ERC20Snapshot is ERC20 {
118118
}
119119

120120
function _updateTotalSupplySnapshot() private {
121-
_updateSnapshot(_totalSupplySnaphots, totalSupply());
121+
_updateSnapshot(_totalSupplySnapshots, totalSupply());
122122
}
123123

124124
function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {

ethpm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"package_name": "zeppelin",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"description": "Secure Smart Contract library for Solidity",
55
"authors": [
66
"OpenZeppelin Community <[email protected]>"

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openzeppelin-solidity",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"description": "Secure Smart Contract library for Solidity",
55
"files": [
66
"build",

scripts/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ start_ganache() {
4141
if [ "$SOLIDITY_COVERAGE" = true ]; then
4242
node_modules/.bin/testrpc-sc --gasLimit 0xfffffffffff --port "$ganache_port" "${accounts[@]}" > /dev/null &
4343
else
44-
node_modules/.bin/ganache-cli --gasLimit 0xfffffffffff "${accounts[@]}" > /dev/null &
44+
node_modules/.bin/ganache-cli --gasLimit 0xfffffffffff --port "$ganache_port" "${accounts[@]}" > /dev/null &
4545
fi
4646

4747
ganache_pid=$!
48+
49+
sleep 1
4850
}
4951

5052
if ganache_running; then

0 commit comments

Comments
 (0)