@rsksmart/erc677
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "@rsksmart/erc677", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "ERC-677 Token Implementation", | ||
@@ -12,3 +12,6 @@ "files": [ | ||
"scripts": { | ||
"test": "truffle test", | ||
"test": "npx truffle test", | ||
"coverage": "npx truffle run coverage", | ||
"lint": "npx prettier --list-different 'contracts/**/*.sol' 'test/**/*.test.js'", | ||
"lint:fix": "npx prettier --write 'contracts/**/*.sol' 'test/**/*.test.js'", | ||
"prepublish": "npx truffle compile && node ./datagen.js && npm run types-generation", | ||
@@ -26,3 +29,3 @@ "types-generation": "typechain --target=web3-v1 '*Data.json' && typechain --target=web3-v2 '*Data.json' && typechain --target=truffle '*Data.json' && typechain --target=ethers '*Data.json'" | ||
"author": "ilanolkies", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -33,8 +36,10 @@ "url": "https://github.com/rnsdomains/erc677/issues" | ||
"dependencies": { | ||
"@openzeppelin/contracts": "^2.4.0" | ||
"@openzeppelin/contracts": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@openzeppelin/test-helpers": "^0.5.4", | ||
"chai": "^4.2.0", | ||
"truffle": "^5.1.18", | ||
"prettier": "^1.19.1", | ||
"prettier-plugin-solidity": "^1.0.0-beta.9", | ||
"solidity-coverage": "^0.7.16", | ||
"truffle": "^5.3.2", | ||
"typechain": "^1.0.5", | ||
@@ -41,0 +46,0 @@ "typechain-target-ethers": "^1.0.4", |
@@ -1,4 +0,27 @@ | ||
# erc677 | ||
<p align="middle"> | ||
<img src="https://www.rifos.org/assets/img/logo.svg" alt="logo" height="100" > | ||
</p> | ||
<h3 align="middle"><code>@rsksmart/erc677</code></h3> | ||
<p align="middle"> | ||
Simple implementation of ERC-677 token contract, compatible with RIF Token. | ||
</p> | ||
<p align="middle"> | ||
<a href="https://github.com/rsksmart/erc677/actions/workflows/ci.yml"> | ||
<img src="https://github.com/rsksmart/erc677/actions/workflows/ci.yml/badge.svg" /> | ||
</a> | ||
<a href="https://github.com/rsksmart/erc677/actions/workflows/slither.yml"> | ||
<img src="https://github.com/rsksmart/erc677/actions/workflows/slither.yml/badge.svg" /> | ||
</a> | ||
<a href="https://lgtm.com/projects/g/rsksmart/express-did-auth/context:javascript"> | ||
<img src="https://img.shields.io/lgtm/grade/javascript/github/rsksmart/express-did-auth" /> | ||
</a> | ||
<a href='https://coveralls.io/github/rsksmart/erc677?branch=master'> | ||
<img src='https://coveralls.io/repos/github/rsksmart/erc677/badge.svg?branch=master' alt='Coverage Status' /> | ||
</a> | ||
<a href="https://badge.fury.io/js/%40rsksmart%2Ferc677"> | ||
<img src="https://badge.fury.io/js/%40rsksmart%2Ferc677.svg" alt="npm" /> | ||
</a> | ||
</p> | ||
Simple implementation of ERC-677 token contract, compatible with RIF Token. | ||
> This package is only to **use for testing purposes** | ||
@@ -14,3 +37,3 @@ ## Install | ||
```js | ||
const ERC677 = artifacts.require('ERC677'); | ||
const ERC677 = artifacts.require('@rsksmart/erc677'); | ||
@@ -36,3 +59,3 @@ contract('My contract tests', async accounts => { | ||
const Web3 = require('web3'); | ||
const ERC677Data = require('@rsksmart/rns-erc677/ERC677Data.json'); | ||
const ERC677Data = require('@rsksmart/erc677/ERC677Data.json'); | ||
const web3 = new Web3('https://public-node.rsk.co') | ||
@@ -56,4 +79,4 @@ const ERC677 = new web3.eth.Contract(ERC677Data.abi, ERC677Data.address.rskMainnet); | ||
import Web3 from 'web3' | ||
import ERC677 from '@rsksmart/rns-erc677/types/web3-v1-contracts/ERC677Data.d.ts' | ||
import ERC677Data from '@rsksmart/rns-erc677/ERC677Data.json' | ||
import ERC677 from '@rsksmart/erc677/types/web3-v1-contracts/ERC677Data.d.ts' | ||
import ERC677Data from '@rsksmart/erc677/ERC677Data.json' | ||
@@ -66,4 +89,7 @@ const web3 = new Web3('https://public-node.rsk.co') | ||
--- | ||
## Versions | ||
- Installing v1 will use Solidity v5 | ||
- Installing v2 will use Solidity v8 | ||
--- | ||
@@ -70,0 +96,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
97
8412
10
7
0
2
+ Added@openzeppelin/contracts@4.9.6(transitive)
- Removed@openzeppelin/contracts@2.5.1(transitive)