@0xcert/ethereum-erc20-contracts
Advanced tools
Comparing version 2.0.0-alpha9 to 2.0.0-beta
{ | ||
"files": { | ||
"packages/0xcert-ethereum-erc20-contracts/.solhint.json": "c72aedffae70ae4b1e2830449ec0e140eb7fb14a", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.json": "e65d7994ed4cf274a750967319811cb1b968358d", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.md": "c7204f064e14b7e713d2a844922e153699af6d92", | ||
"packages/0xcert-ethereum-erc20-contracts/README.md": "2a7e42a331e6ff588f7630463a89503289377d2b", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.json": "10438c60fa11cb7d8448f42807567d5d218b7cd7", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.md": "e844ecb7553c9c5bf39171ec591b941597b8fb66", | ||
"packages/0xcert-ethereum-erc20-contracts/README.md": "06e2df064ffa7d6321a6878eca16873f6491feca", | ||
"packages/0xcert-ethereum-erc20-contracts/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-ethereum-erc20-contracts/package.json": "7045111edfebabe50d126156d55342e46df7749d", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/erc20.sol": "cb253165aa2138c7aca2295cd3962dfc6ba0cd37", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/token-mock.sol": "09215a0fd7cd68afe1948cd1ec92b30c3ab0a759", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/token.sol": "e943d4d84c6adb64ab90174acd19825a280fb735", | ||
"packages/0xcert-ethereum-erc20-contracts/package.json": "6a682bf0e3ef4205c6a842487e8f03705af86eb5", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/dapp-token.sol": "67127a5a36d018c9ae8e854a057ba14b51152a47", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/erc20.sol": "cd67fa72f4b355214b791a3a483cc31b5df39b7d", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/migration-receiver.sol": "7ebb1f8896a430fc52346b82db5ea7a9a6c1257e", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/dapp-token-mock.sol": "625853afc8563e886aca1a3c367af3f408e33909", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/token-mock.sol": "88dcaa034df424db1ba597a886f405cb4ca2ee2e", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/token.sol": "3642373fc1692b7e4cdf642f321955dec3e0a4ae", | ||
"packages/0xcert-ethereum-erc20-contracts/src/core/types.ts": "be9414515fb92f954d214de5f1313a2348cb20b2", | ||
"packages/0xcert-ethereum-erc20-contracts/src/index.ts": "a7b884b8a2b9ec2a03c20192d83ff3d49c3b6cdd", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/dapp-token.test.ts": "7bcd6365ea141c4da5562969794837d8133f6105", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/helpers/common.ts": "28cfef796c13a9ec6b38a6623bab6d270ac6c202", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/token.test.ts": "a7b344c14e2f77ba72bc66e39133d137c65e7cb3", | ||
"packages/0xcert-ethereum-erc20-contracts/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-ethereum-erc20-contracts/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "ae6833e86a7863ce7a5d9c35b3af33dc1bd3b853" | ||
"common/config/rush/npm-shrinkwrap.json": "e8ff2b167f47ecf7aaa85f1a9fad20693837e67e" | ||
}, | ||
"arguments": "npm run clean && npx specron compile && npx tsc " | ||
} |
{ | ||
"files": { | ||
"packages/0xcert-ethereum-erc20-contracts/.solhint.json": "c72aedffae70ae4b1e2830449ec0e140eb7fb14a", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.json": "e65d7994ed4cf274a750967319811cb1b968358d", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.md": "c7204f064e14b7e713d2a844922e153699af6d92", | ||
"packages/0xcert-ethereum-erc20-contracts/README.md": "2a7e42a331e6ff588f7630463a89503289377d2b", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.json": "10438c60fa11cb7d8448f42807567d5d218b7cd7", | ||
"packages/0xcert-ethereum-erc20-contracts/CHANGELOG.md": "e844ecb7553c9c5bf39171ec591b941597b8fb66", | ||
"packages/0xcert-ethereum-erc20-contracts/README.md": "06e2df064ffa7d6321a6878eca16873f6491feca", | ||
"packages/0xcert-ethereum-erc20-contracts/nodemon.json": "82b893373db9861f1df4b55d8ea68a5d37b118de", | ||
"packages/0xcert-ethereum-erc20-contracts/package.json": "7045111edfebabe50d126156d55342e46df7749d", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/erc20.sol": "cb253165aa2138c7aca2295cd3962dfc6ba0cd37", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/token-mock.sol": "09215a0fd7cd68afe1948cd1ec92b30c3ab0a759", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/token.sol": "e943d4d84c6adb64ab90174acd19825a280fb735", | ||
"packages/0xcert-ethereum-erc20-contracts/package.json": "6a682bf0e3ef4205c6a842487e8f03705af86eb5", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/dapp-token.sol": "67127a5a36d018c9ae8e854a057ba14b51152a47", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/erc20.sol": "cd67fa72f4b355214b791a3a483cc31b5df39b7d", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/migration-receiver.sol": "7ebb1f8896a430fc52346b82db5ea7a9a6c1257e", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/dapp-token-mock.sol": "625853afc8563e886aca1a3c367af3f408e33909", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/mocks/token-mock.sol": "88dcaa034df424db1ba597a886f405cb4ca2ee2e", | ||
"packages/0xcert-ethereum-erc20-contracts/src/contracts/token.sol": "3642373fc1692b7e4cdf642f321955dec3e0a4ae", | ||
"packages/0xcert-ethereum-erc20-contracts/src/core/types.ts": "be9414515fb92f954d214de5f1313a2348cb20b2", | ||
"packages/0xcert-ethereum-erc20-contracts/src/index.ts": "a7b884b8a2b9ec2a03c20192d83ff3d49c3b6cdd", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/dapp-token.test.ts": "7bcd6365ea141c4da5562969794837d8133f6105", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/helpers/common.ts": "28cfef796c13a9ec6b38a6623bab6d270ac6c202", | ||
"packages/0xcert-ethereum-erc20-contracts/src/tests/token.test.ts": "a7b344c14e2f77ba72bc66e39133d137c65e7cb3", | ||
"packages/0xcert-ethereum-erc20-contracts/tsconfig.json": "aaa461c172cf0c93d58ffeef8e3ead76fe299b2e", | ||
"packages/0xcert-ethereum-erc20-contracts/tslint.json": "c57b3f0cdb7aa74ab2ab02888380f613589cbe66", | ||
"common/config/rush/npm-shrinkwrap.json": "ae6833e86a7863ce7a5d9c35b3af33dc1bd3b853" | ||
"common/config/rush/npm-shrinkwrap.json": "e8ff2b167f47ecf7aaa85f1a9fad20693837e67e" | ||
}, | ||
"arguments": "npm run lint && npm run clean && npx specron compile && npx specron test " | ||
} |
@@ -5,25 +5,43 @@ { | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_name", | ||
"type": "string" | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
{ | ||
"constant": false, | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"name": "_from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
@@ -34,26 +52,26 @@ "name": "_value", | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "_success", | ||
"type": "bool" | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_totalSupply", | ||
"name": "_remaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -63,15 +81,9 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_from", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
@@ -82,3 +94,3 @@ "name": "_value", | ||
], | ||
"name": "transferFrom", | ||
"name": "approve", | ||
"outputs": [ | ||
@@ -91,3 +103,2 @@ { | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -97,3 +108,21 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_balance", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
@@ -108,3 +137,2 @@ "name": "decimals", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -114,19 +142,11 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_balance", | ||
"type": "uint256" | ||
"internalType": "string", | ||
"name": "_name", | ||
"type": "string" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -136,3 +156,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -147,3 +166,2 @@ "name": "symbol", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -153,3 +171,15 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_totalSupply", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
@@ -175,3 +205,2 @@ { | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -181,33 +210,5 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_remaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_from", | ||
@@ -217,3 +218,2 @@ "type": "address" | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -224,3 +224,2 @@ "name": "_to", | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
@@ -231,95 +230,15 @@ "name": "_value", | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
"internalType": "bool", | ||
"name": "_success", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"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." | ||
}, | ||
"evm": { | ||
"assembly": "", | ||
"bytecode": { | ||
@@ -331,3 +250,2 @@ "linkReferences": {}, | ||
}, | ||
"gasEstimates": null, | ||
"methodIdentifiers": { | ||
@@ -347,3 +265,3 @@ "allowance(address,address)": "dd62ed3e", | ||
"compiler": { | ||
"version": "0.5.11+commit.c082d0b4" | ||
"version": "0.6.1+commit.e6f7d5a4" | ||
}, | ||
@@ -354,25 +272,43 @@ "language": "Solidity", | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "string", | ||
"name": "_name", | ||
"type": "string" | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
{ | ||
"constant": false, | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"name": "_from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
@@ -383,26 +319,26 @@ "name": "_value", | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "_success", | ||
"type": "bool" | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_totalSupply", | ||
"name": "_remaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -412,15 +348,9 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_from", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
@@ -431,3 +361,3 @@ "name": "_value", | ||
], | ||
"name": "transferFrom", | ||
"name": "approve", | ||
"outputs": [ | ||
@@ -440,3 +370,2 @@ { | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -446,3 +375,21 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_balance", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
@@ -457,3 +404,2 @@ "name": "decimals", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -463,19 +409,11 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_balance", | ||
"type": "uint256" | ||
"internalType": "string", | ||
"name": "_name", | ||
"type": "string" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -485,3 +423,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -496,3 +433,2 @@ "name": "symbol", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -502,3 +438,15 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_totalSupply", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
@@ -524,3 +472,2 @@ { | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -530,33 +477,5 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_remaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_from", | ||
@@ -566,3 +485,2 @@ "type": "address" | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -573,3 +491,2 @@ "name": "_to", | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
@@ -580,92 +497,16 @@ "name": "_value", | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
"internalType": "bool", | ||
"name": "_success", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"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." | ||
"methods": {} | ||
}, | ||
@@ -680,4 +521,7 @@ "userdoc": { | ||
}, | ||
"evmVersion": "constantinople", | ||
"evmVersion": "istanbul", | ||
"libraries": {}, | ||
"metadata": { | ||
"bytecodeHash": "ipfs" | ||
}, | ||
"optimizer": { | ||
@@ -691,6 +535,6 @@ "enabled": true, | ||
"./src/contracts/erc20.sol": { | ||
"keccak256": "0x822f44d162ded1c455b75f2133cbc671a7aef3b614dc56c7ee87b08c456fc606", | ||
"keccak256": "0x7075baa9f7498bb4c5d23e32e793431dd42b0edc9cb097cb83befe5d0d079dbf", | ||
"urls": [ | ||
"bzz-raw://fb07e980c678876f453e7622ed68b9a73952944847fba5dfb61132e2614b59f4", | ||
"dweb:/ipfs/QmTvdgTB21uQ1iAoNsSMBdFsaJf1PpqVr6NTi6h4aSYFgQ" | ||
"bzz-raw://ffed4e02a2c4de47d2e80a3d47eb17f08970b10b3def714780ef533de604f6c0", | ||
"dweb:/ipfs/QmT1W6K4PgZdabZLwXHoYu7bG7Q34fnivmQErz94GZ7pFy" | ||
] | ||
@@ -700,7 +544,4 @@ } | ||
"version": 1 | ||
}, | ||
"userdoc": { | ||
"methods": {} | ||
} | ||
} | ||
} |
@@ -5,4 +5,4 @@ { | ||
{ | ||
"version": "2.0.0-alpha9", | ||
"tag": "@0xcert/ethereum-erc20-contracts_v2.0.0-alpha9", | ||
"version": "2.0.0-beta", | ||
"tag": "@0xcert/ethereum-erc20-contracts_v2.0.0-beta", | ||
"date": "Wed, 19 Jun 2019 10:31:05 GMT", | ||
@@ -9,0 +9,0 @@ "comments": {} |
# Change Log - @0xcert/ethereum-erc20-contracts | ||
This log was last generated on Wed, 19 Jun 2019 10:31:05 GMT and should not be manually modified. | ||
This log was last generated on Sun, 01 Sep 2019 16:02:20 GMT and should not be manually modified. | ||
## 2.0.0-alpha9 | ||
## 1.9.0 | ||
Sun, 01 Sep 2019 16:02:20 GMT | ||
*Version update only* | ||
## 1.8.1 | ||
Sun, 01 Sep 2019 15:46:11 GMT | ||
*Version update only* | ||
## 1.8.0 | ||
Tue, 30 Jul 2019 10:46:40 GMT | ||
*Version update only* | ||
## 2.0.0-beta | ||
Wed, 19 Jun 2019 10:31:05 GMT | ||
@@ -7,0 +22,0 @@ |
{ | ||
"name": "@0xcert/ethereum-erc20-contracts", | ||
"version": "2.0.0-alpha9", | ||
"version": "2.0.0-beta", | ||
"description": "Smart contract implementation of the ERC-20 standard on the Ethereum blockchain.", | ||
@@ -21,2 +21,12 @@ "scripts": { | ||
}, | ||
"flattener": { | ||
"build": "./build", | ||
"match": [ | ||
"./src/**/*.sol" | ||
], | ||
"severities": [ | ||
"error", | ||
"warning" | ||
] | ||
}, | ||
"test": { | ||
@@ -67,6 +77,7 @@ "port": 8503, | ||
"devDependencies": { | ||
"@0xcert/ethereum-utils-contracts": "2.0.0-alpha9", | ||
"@specron/cli": "0.9.0", | ||
"@specron/spec": "0.9.0", | ||
"solc": "0.5.11", | ||
"@specron/cli": "0.15.0", | ||
"@specron/spec": "0.15.0", | ||
"@specron/flattener": "0.15.0", | ||
"@0xcert/ethereum-utils-contracts": "2.0.0-beta", | ||
"solc": "0.6.1", | ||
"solhint": "2.3.0", | ||
@@ -73,0 +84,0 @@ "ts-node": "8.4.1", |
@@ -1,2 +0,2 @@ | ||
<img src="https://github.com/0xcert/framework/raw/master/assets/cover-sub.png" /> | ||
<img src="../../assets/cover-sub.png" /> | ||
@@ -8,1 +8,5 @@ > Smart contract implementation of the ERC-20 standard on the Ethereum blockchain. | ||
This module is one of the bricks of the [0xcert Framework](https://docs.0xcert.org). It's written with [TypeScript](https://www.typescriptlang.org) and it's actively maintained. The source code is available on [GitHub](https://github.com/0xcert/framework) where you can also find our [issue tracker](https://github.com/0xcert/framework/issues). | ||
# Build | ||
By default, the contracts in this package are built for Constantinople EVM. If you would like to use these smart contracts for `Wanchain` or other blockchains using EVM for a different version, you will need to rebuild them for the desired version. |
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
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
414467
43
6502
12
10
1