@0xcert/ethereum-erc20-contracts
Advanced tools
Comparing version 1.0.0-rc9 to 1.0.0
@@ -310,3 +310,313 @@ { | ||
}, | ||
"metadata": "", | ||
"metadata": { | ||
"compiler": { | ||
"version": "0.5.6+commit.b259423e" | ||
}, | ||
"language": "Solidity", | ||
"output": { | ||
"abi": [ | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
{ | ||
"name": "_name", | ||
"type": "string" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
{ | ||
"name": "_success", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [ | ||
{ | ||
"name": "_totalSupply", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "_from", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"name": "_success", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "decimals", | ||
"outputs": [ | ||
{ | ||
"name": "_decimals", | ||
"type": "uint8" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_owner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"name": "_balance", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "symbol", | ||
"outputs": [ | ||
{ | ||
"name": "_symbol", | ||
"type": "string" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"name": "_success", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_spender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"name": "_remaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"name": "_from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
} | ||
], | ||
"devdoc": { | ||
"details": "This interface uses the official ERC-20 specification from https://eips.ethereum.org/EIPS/eip-20 with the additional requirement that the functions specificed as optional have become required.", | ||
"methods": { | ||
"allowance(address,address)": { | ||
"details": "Returns the amount which _spender is still allowed to withdraw from _owner.", | ||
"params": { | ||
"_owner": "The address of the account owning tokens.", | ||
"_spender": "The address of the account able to transfer the tokens." | ||
}, | ||
"return": "Remaining allowance." | ||
}, | ||
"approve(address,uint256)": { | ||
"details": "Allows _spender to withdraw from your account multiple times, up to the _value amount. If this function is called again it overwrites the current allowance with _value.", | ||
"params": { | ||
"_spender": "The address of the account able to transfer the tokens.", | ||
"_value": "The amount of tokens to be approved for transfer." | ||
}, | ||
"return": "Success of operation." | ||
}, | ||
"balanceOf(address)": { | ||
"details": "Returns the account balance of another account with address _owner.", | ||
"params": { | ||
"_owner": "The address from which the balance will be retrieved." | ||
}, | ||
"return": "Balance of _owner." | ||
}, | ||
"decimals()": { | ||
"details": "Returns the number of decimals the token uses.", | ||
"return": "Number of decimals." | ||
}, | ||
"name()": { | ||
"details": "Returns the name of the token.", | ||
"return": "Token name." | ||
}, | ||
"symbol()": { | ||
"details": "Returns the symbol of the token.", | ||
"return": "Token symbol." | ||
}, | ||
"totalSupply()": { | ||
"details": "Returns the total token supply.", | ||
"return": "Total supply." | ||
}, | ||
"transfer(address,uint256)": { | ||
"details": "Transfers _value amount of tokens to address _to, and MUST fire the Transfer event. The function SHOULD throw if the message caller's account balance does not have enough tokens to spend.", | ||
"params": { | ||
"_to": "The address of the recipient.", | ||
"_value": "The amount of token to be transferred." | ||
}, | ||
"return": "Success of operation." | ||
}, | ||
"transferFrom(address,address,uint256)": { | ||
"details": "Transfers _value amount of tokens from address _from to address _to, and MUST fire the Transfer event.", | ||
"params": { | ||
"_from": "The address of the sender.", | ||
"_to": "The address of the recipient.", | ||
"_value": "The amount of token to be transferred." | ||
}, | ||
"return": "Success of operation." | ||
} | ||
}, | ||
"title": "A standard interface for tokens." | ||
}, | ||
"userdoc": { | ||
"methods": {} | ||
} | ||
}, | ||
"settings": { | ||
"compilationTarget": { | ||
"./src/contracts/erc20.sol": "ERC20" | ||
}, | ||
"evmVersion": "byzantium", | ||
"libraries": {}, | ||
"optimizer": { | ||
"enabled": true, | ||
"runs": 200 | ||
}, | ||
"remappings": [] | ||
}, | ||
"sources": { | ||
"./src/contracts/erc20.sol": { | ||
"keccak256": "0x0f6a10d2612ca8d64dae3e4d7381b0a06086dc730d541b69f5ccac117d7b5307", | ||
"urls": [ | ||
"bzzr://a884e43d63a70a061823bc3ff594a6782fc623537bf46c3813ee13c3df9efdf9" | ||
] | ||
} | ||
}, | ||
"version": 1 | ||
}, | ||
"userdoc": { | ||
@@ -313,0 +623,0 @@ "methods": {} |
{ | ||
"files": {}, | ||
"arguments": "npm run clean && npx specron compile && npx tsc " | ||
"files": { | ||
"packages/0xcert-ethereum-erc20-contracts/.solhint.json": "056c835cabc5bfed3f9364b4da01f4f4425cfba3", | ||
"packages/0xcert-ethereum-erc20-contracts/README.md": "2a7e42a331e6ff588f7630463a89503289377d2b", | ||
"packages/0xcert-ethereum-erc20-contracts/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-ethereum-erc20-contracts/package.json": "12f3d0840c7a0ba2e7a1abd0fc102aa50e8a8c9a", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/erc20.sol": "e22301c10d47108ccddd621f2265ee5ad5564c47", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/token-mock.sol": "500e7e942c1b4832eb5bf6a5dd3e7e52823084f7", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/token.sol": "3fb4bca84ccdb2f49d743118b7a83ebcbf2c8996", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/token.test.ts": "a7b344c14e2f77ba72bc66e39133d137c65e7cb3", | ||
"packages/0xcert-ethereum-erc20-contracts/tsconfig.json": "4aeac3c20e45b7e477e82012eb7788f7dbb11bf3", | ||
"packages/0xcert-ethereum-erc20-contracts/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "2eee8bea1a07b770fa46096b14c15654eb105b1a" | ||
}, | ||
"arguments": "npm run lint && npm run clean && npx specron compile && npx specron test " | ||
} |
{ | ||
"name": "@0xcert/ethereum-erc20-contracts", | ||
"version": "1.0.0-rc9", | ||
"version": "1.0.0", | ||
"description": "Smart contract implementation of the ERC-20 standard on the Ethereum blockchain.", | ||
@@ -8,5 +8,7 @@ "scripts": { | ||
"clean": "rm -Rf ./build", | ||
"lint": "npx tslint 'src/**/*.ts?(x)'", | ||
"lint": "npm run tslint && npm run solhint", | ||
"sandbox": "npx specron sandbox", | ||
"test": "npm run lint && npm run clean && npx specron compile && npx specron test" | ||
"solhint": "npx solhint 'src/contracts/**/*.sol'", | ||
"test": "npm run lint && npm run clean && npx specron compile && npx specron test", | ||
"tslint": "npx tslint 'src/**/*.ts?(x)'" | ||
}, | ||
@@ -65,11 +67,12 @@ "specron": { | ||
"devDependencies": { | ||
"@0xcert/ethereum-utils-contracts": "1.0.0-rc9", | ||
"@specron/cli": "^0.5.4", | ||
"@specron/spec": "^0.5.4", | ||
"solc": "0.5.1", | ||
"@0xcert/ethereum-utils-contracts": "1.0.0", | ||
"@specron/cli": "^0.5.6", | ||
"@specron/spec": "^0.5.6", | ||
"solc": "0.5.6", | ||
"solhint": "2.0.0", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.1.1", | ||
"web3": "1.0.0-beta.36" | ||
"web3": "1.0.0-beta.37" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19
0
798133
9
23778