Skip to content

Commit 4149e12

Browse files
author
Eric Kearns
committed
Initial 'package-npm' target and script, add SingularityNetToken.json with populated addresses, more cleanup
1 parent c5c91ad commit 4149e12

14 files changed

+1867
-33
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
build
22
node_modules
33
yarn-error.log
4-
.DS_Store
54
npm-debug.log
65
addresses.json
76
/.vscode

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
# token-contracts
22
Includes token contracts, migrations, tests
33

4-
## Requirements
4+
## Contracts
5+
6+
### AgiCrowdsale
7+
* SingularityNET's original crowdsale contract
8+
9+
### SingularityNetToken
10+
* ERC-20 implementation for SingularityNET AGI Token
11+
12+
### TokenVesting
13+
* A contract to manage the gradual vesting of AGI tokens to an individual or entity
14+
15+
### TokenVestingFactory
16+
* A contract to manage the creation of TokenVesting instances on-chain
17+
18+
## Deployed Contracts
19+
* SingularityNetToken (Mainnet): 0x8eb24319393716668d768dcec29356ae9cffe285
20+
* SingularityNetToken (Kovan): 0x3b226ff6aad7851d3263e53cb7688d13a07f6e81
521

6-
* [Node.js](https://github.com/nodejs/node) (7.6 +)
22+
## Requirements
23+
* [Node.js](https://github.com/nodejs/node) (8+)
724
* [Npm](https://www.npmjs.com/package/npm)
825

926
## Install
@@ -14,8 +31,14 @@ npm install
1431
```
1532

1633
### Test
17-
1834
```bash
1935
npm run test
2036
```
2137

38+
## Package
39+
```bash
40+
npm run package-npm
41+
```
42+
43+
## Release
44+
SingularityNetToken artifacts are published to NPM: https://www.npmjs.com/package/singularitynet-token-contracts

contracts/.DS_Store

-6 KB
Binary file not shown.

contracts/foundation/AgiCrowdsale.sol renamed to contracts/AgiCrowdsale.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pragma solidity ^0.4.18;
22

3-
import "../tokens/SingularityNetToken.sol";
3+
import "./SingularityNetToken.sol";
44
import "zeppelin-solidity/contracts/math/SafeMath.sol";
55
import "zeppelin-solidity/contracts/ReentrancyGuard.sol";
66
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
File renamed without changes.
File renamed without changes.
File renamed without changes.

migrations/.DS_Store

-6 KB
Binary file not shown.

package-lock.json

Lines changed: 16 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "singularitynet-token-contracts",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
4+
"private": true,
45
"description": "Includes token contracts, migrations, tests",
56
"directories": {
67
"test": "test"
78
},
89
"scripts": {
10+
"package-npm": "node scripts/package-npm.js",
911
"compile": "node_modules/.bin/truffle compile",
1012
"deploy": "node_modules/.bin/truffle migrate",
1113
"test": "rm -rf build && node_modules/.bin/truffle test"
@@ -25,6 +27,7 @@
2527
"zeppelin-solidity": "1.4.0"
2628
},
2729
"devDependencies": {
30+
"fs-extra": "^5.0.0",
2831
"chai": "^4.1.2",
2932
"chai-as-promised": "^7.1.1",
3033
"chai-bignumber": "^2.0.2"

0 commit comments

Comments
 (0)