@0xcert/ethereum-erc20-contracts
Version:
Smart contract implementation of the ERC-20 standard on the Ethereum blockchain.
93 lines (77 loc) • 4.8 kB
Plain Text
>>> @0xcert/ethereum-erc20-contracts
Found mismatch: "packages/0xcert-ethereum-erc20-contracts/CHANGELOG.json": "a8414ed09787abad06a12af4a05cf7796a976a9d" !== "ed19ec989f5d2f12206434b0cc6b0baeca00fb92"
npm run lint && npm run clean && npx specron compile && npx specron test
> @0xcert/ethereum-erc20-contracts@2.1.1 lint /Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-ethereum-erc20-contracts
> npm run tslint && npm run solhint
> @0xcert/ethereum-erc20-contracts@2.1.1 tslint /Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-ethereum-erc20-contracts
> npx eslint 'src/**/*.ts?(x)'
> @0xcert/ethereum-erc20-contracts@2.1.1 solhint /Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-ethereum-erc20-contracts
> npx solhint 'src/contracts/**/*.sol'
> @0xcert/ethereum-erc20-contracts@2.1.1 clean /Users/xpepermint/Work/0xcert/repositories/framework/packages/0xcert-ethereum-erc20-contracts
> rm -Rf ./build
Contracts
./src/contracts/dapp-token.sol
./src/contracts/erc20.sol
./src/contracts/migration-receiver.sol
./src/contracts/mocks/dapp-token-mock.sol
./src/contracts/mocks/token-mock.sol
./src/contracts/token.sol
./src/contracts/zxc-burner.sol
./src/contracts/zxc.sol
./src/tests/mocks/zxc-mock.sol
9 contracts
src/tests/dapp-token.test.ts
correctly checks all the supported interfaces ⚑ ⚑ ⚑ ⚑ ⚑ 2309ms
has correct totalSupply after construction ⚑ 1249ms
has correct token name after construction ⚑ 1768ms
has correct token symbol after construction ⚑ 1216ms
has correct token decimals after construction ⚑ 1154ms
sucessfully deposits token into dapp token ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ 1483ms
sucessfully deposits token into dapp token with another receiver ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ 1866ms
sucessfully withdraws token from dapp token ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ 1315ms
sucessfully whitelists an address ⚑ ⚑ 795ms
sucessfully transfers to a whitelisted address ⚑ ⚑ ⚑ 814ms
sucessfully transfersFrom to a whitelisted address ⚑ ⚑ ⚑ 632ms
fails transferring to a non whitelisted address ⚑ 2267ms
fails transfersFrom to a non whitelisted address ⚑ 508ms
succesfully migrates migrateToken to dappToken ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ 984ms
fails to migrate if migration address not set ⚑ 683ms
fails to migrate if migration caller is not set ⚑ 877ms
fails to deposit after migration started ⚑ 806ms
fails to transfer after migration started ⚑ 1286ms
fails to transferFrom after migration started ⚑ 1422ms
throws when trying to transfer more than available balance ⚑ 914ms
returns the correct allowance amount after approval ⚑ 685ms
emits Approval event after approval ⚑ 553ms
successfully resets allowance ⚑ 820ms
correctly approves with signature ⚑ ⚑ ⚑ ⚑ 936ms
correctly approves with signature with any performer ⚑ ⚑ ⚑ ⚑ 856ms
fails approving with signature if signature is invalid ⚑ 834ms
fails approving with signature if claim has expired ⚑ 762ms
fails approving with signature if claim has already been performed ⚑ 939ms
fails approving with signature if claim has been canceled ⚑ 1023ms
fails approving with signature if signature kind is invalid ⚑ 1030ms
throws when trying to transferFrom more than allowed amount ⚑ 1289ms
throws an error when trying to transferFrom more than _from has ⚑ 1146ms
src/tests/token.test.ts
correctly checks all the supported interfaces ⚑ ⚑ ⚑ ⚑ ⚑
has correct totalSupply after construction ⚑
has correct token name after construction ⚑
has correct token symbol after construction ⚑
has correct token decimals after construction ⚑
has correct owner token balance after construction ⚑
recipient and sender have correct balances after transfer ⚑ ⚑
emits Transfer event on transfer ⚑
throws when trying to transfer more than available balance ⚑
returns the correct allowance amount after approval ⚑
emits Approval event after approval ⚑
successfully resets allowance ⚑
returns correct balances after transferring from another account ⚑ ⚑ ⚑
emits Transfer event on transferFrom ⚑
throws when trying to transferFrom more than allowed amount ⚑
throws an error when trying to transferFrom more than _from has ⚑
src/tests/zxc-burner.test.ts
correctly burns tokens ⚑ ⚑
fails burning if ownership not claimed ⚑
fails burning when tokens are not approved ⚑
51 passing