Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol code coverage can not be created #3187

Closed
H34D opened this issue Mar 25, 2020 · 1 comment
Closed

Protocol code coverage can not be created #3187

H34D opened this issue Mar 25, 2020 · 1 comment
Labels
bug Something isn't working quality stale

Comments

@H34D
Copy link
Contributor

H34D commented Mar 25, 2020

Expected Behavior

yarn test:coverage should generate code coverage

Current Behavior

It does not generate code coverage and fails with the error:

sebastian:protocol/ (master✗) $ yarn test:coverage
yarn run v1.22.4
$ yarn run test --coverage
$ yarn run build
$ ts-node ./scripts/build.ts && yarn build:ts
Compiling

Compiling your contracts...
===========================
> Compiling ./contracts/common/interfaces/IValidators.sol
> Artifacts written to /Users/sebastian/projects/celo/monorepo/h34d/packages/protocol/build/contracts
> Compiled successfully using:
   - solc: 0.5.8+commit.23d335f2.Emscripten.clang

protocol: Generating Truffle Types
ts-gen: Running TypeChain
ts-gen: /Users/sebastian/projects/celo/monorepo/h34d/packages/protocol/build/contracts/*.json matched 134 files.
ts-gen: Processing build/contracts/Accounts.json
ts-gen: Processing build/contracts/AccountsProxy.json
ts-gen: Processing build/contracts/Address.json
ts-gen: Processing build/contracts/AddressLinkedList.json
ts-gen: Processing build/contracts/AddressSortedLinkedList.json
ts-gen: Processing build/contracts/AddressSortedLinkedListWithMedian.json
ts-gen: Processing build/contracts/AddressSortedLinkedListWithMedianTest.json
ts-gen: Processing build/contracts/Attestations.json
ts-gen: Processing build/contracts/AttestationsProxy.json
ts-gen: Processing build/contracts/BlockchainParameters.json
ts-gen: Processing build/contracts/BlockchainParametersProxy.json
ts-gen: Processing build/contracts/BytesLib.json
ts-gen: Processing build/contracts/CalledByVm.json
ts-gen: Processing build/contracts/Context.json
ts-gen: Processing build/contracts/DoubleSigningSlasher.json
ts-gen: Processing build/contracts/DoubleSigningSlasherProxy.json
ts-gen: Processing build/contracts/DowntimeSlasher.json
ts-gen: Processing build/contracts/DowntimeSlasherProxy.json
ts-gen: Processing build/contracts/ECDSA.json
ts-gen: Processing build/contracts/Election.json
ts-gen: Processing build/contracts/ElectionProxy.json
ts-gen: Processing build/contracts/ElectionTest.json
ts-gen: Processing build/contracts/EpochRewards.json
ts-gen: Processing build/contracts/EpochRewardsProxy.json
ts-gen: Processing build/contracts/EpochRewardsTest.json
ts-gen: Processing build/contracts/ERC20.json
ts-gen: Processing build/contracts/Escrow.json
ts-gen: Processing build/contracts/EscrowProxy.json
ts-gen: Processing build/contracts/Exchange.json
ts-gen: Processing build/contracts/ExchangeProxy.json
ts-gen: Processing build/contracts/ExtractFunctionSignature.json
ts-gen: Processing build/contracts/ExtractFunctionSignatureTest.json
ts-gen: Processing build/contracts/FeeCurrencyWhitelist.json
ts-gen: Processing build/contracts/FeeCurrencyWhitelistProxy.json
ts-gen: Processing build/contracts/FixidityLib.json
ts-gen: Processing build/contracts/FixidityTest.json
ts-gen: Processing build/contracts/Freezable.json
ts-gen: Processing build/contracts/Freezer.json
ts-gen: Processing build/contracts/FreezerProxy.json
ts-gen: Processing build/contracts/GasPriceMinimum.json
ts-gen: Processing build/contracts/GasPriceMinimumProxy.json
ts-gen: Processing build/contracts/GetSetV0.json
ts-gen: Processing build/contracts/GetSetV1.json
ts-gen: Processing build/contracts/GoldToken.json
ts-gen: Processing build/contracts/GoldTokenProxy.json
ts-gen: Processing build/contracts/Governance.json
ts-gen: Processing build/contracts/GovernanceApproverMultiSig.json
ts-gen: Processing build/contracts/GovernanceApproverMultiSigProxy.json
ts-gen: Processing build/contracts/GovernanceProxy.json
ts-gen: Processing build/contracts/GovernanceSlasher.json
ts-gen: Processing build/contracts/GovernanceSlasherProxy.json
ts-gen: Processing build/contracts/GovernanceTest.json
ts-gen: Processing build/contracts/HasInitializer.json
ts-gen: Processing build/contracts/Heap.json
ts-gen: Processing build/contracts/HeapTest.json
ts-gen: Processing build/contracts/IAccounts.json
ts-gen: Processing build/contracts/IAttestations.json
ts-gen: Processing build/contracts/ICeloToken.json
ts-gen: Processing build/contracts/IElection.json
ts-gen: Processing build/contracts/IERC20.json
ts-gen: Processing build/contracts/IEscrow.json
ts-gen: Processing build/contracts/IExchange.json
ts-gen: Processing build/contracts/IFeeCurrencyWhitelist.json
ts-gen: Processing build/contracts/IFreezer.json
ts-gen: Processing build/contracts/IGovernance.json
ts-gen: Processing build/contracts/ILockedGold.json
ts-gen: Processing build/contracts/Initializable.json
ts-gen: Processing build/contracts/IntegerSortedLinkedList.json
ts-gen: Processing build/contracts/IntegerSortedLinkedListTest.json
ts-gen: Processing build/contracts/IRandom.json
ts-gen: Processing build/contracts/IRegistry.json
ts-gen: Processing build/contracts/IReleaseGold.json
ts-gen: Processing build/contracts/IReserve.json
ts-gen: Processing build/contracts/ISortedOracles.json
ts-gen: Processing build/contracts/IStableToken.json
ts-gen: Processing build/contracts/IValidators.json
ts-gen: Processing build/contracts/LinkedList.json
ts-gen: Processing build/contracts/LinkedListTest.json
ts-gen: Processing build/contracts/LockedGold.json
ts-gen: Processing build/contracts/LockedGoldProxy.json
ts-gen: Processing build/contracts/Math.json
ts-gen: Processing build/contracts/Migrations.json
ts-gen: Processing build/contracts/MockAttestations.json
ts-gen: Processing build/contracts/MockElection.json
ts-gen: Processing build/contracts/MockERC20Token.json
ts-gen: Processing build/contracts/MockGoldToken.json
ts-gen: Processing build/contracts/MockGovernance.json
ts-gen: Processing build/contracts/MockLockedGold.json
ts-gen: Processing build/contracts/MockRandom.json
ts-gen: Processing build/contracts/MockReserve.json
ts-gen: Processing build/contracts/MockSortedOracles.json
ts-gen: Processing build/contracts/MockStableToken.json
ts-gen: Processing build/contracts/MockUsingPrecompiles.json
ts-gen: Processing build/contracts/MockValidators.json
ts-gen: Processing build/contracts/MsgSenderCheck.json
ts-gen: Processing build/contracts/MultiSig.json
ts-gen: Processing build/contracts/Ownable.json
ts-gen: Processing build/contracts/Proposals.json
ts-gen: Processing build/contracts/ProposalsTest.json
ts-gen: Processing build/contracts/Proxy.json
ts-gen: Processing build/contracts/Random.json
ts-gen: Processing build/contracts/RandomProxy.json
ts-gen: Processing build/contracts/ReentrancyGuard.json
ts-gen: Processing build/contracts/Registry.json
ts-gen: Processing build/contracts/RegistryProxy.json
ts-gen: Processing build/contracts/ReleaseGold.json
ts-gen: Processing build/contracts/ReleaseGoldMultiSig.json
ts-gen: Processing build/contracts/ReleaseGoldMultiSigProxy.json
ts-gen: Processing build/contracts/ReleaseGoldProxy.json
ts-gen: Processing build/contracts/Reserve.json
ts-gen: Processing build/contracts/ReserveProxy.json
ts-gen: Processing build/contracts/ReserveSpenderMultiSig.json
ts-gen: Processing build/contracts/ReserveSpenderMultiSigProxy.json
ts-gen: Processing build/contracts/SafeCast.json
ts-gen: Processing build/contracts/SafeMath.json
ts-gen: Processing build/contracts/Signatures.json
ts-gen: Processing build/contracts/SlasherUtil.json
ts-gen: Processing build/contracts/SortedLinkedList.json
ts-gen: Processing build/contracts/SortedLinkedListWithMedian.json
ts-gen: Processing build/contracts/SortedOracles.json
ts-gen: Processing build/contracts/SortedOraclesProxy.json
ts-gen: Processing build/contracts/StableToken.json
ts-gen: Processing build/contracts/StableTokenProxy.json
ts-gen: Processing build/contracts/TestAttestations.json
ts-gen: Processing build/contracts/TestDoubleSigningSlasher.json
ts-gen: Processing build/contracts/TestDowntimeSlasher.json
ts-gen: Processing build/contracts/TestRandom.json
ts-gen: Processing build/contracts/TestTransactions.json
ts-gen: Processing build/contracts/TransferWhitelist.json
ts-gen: Processing build/contracts/UsingPrecompiles.json
ts-gen: Processing build/contracts/UsingRegistry.json
ts-gen: Processing build/contracts/Validators.json
ts-gen: Processing build/contracts/ValidatorsProxy.json
ts-gen: Processing build/contracts/ValidatorsTest.json
ts-gen: Writing file: types/typechain/index.d.ts
ts-gen: Writing file: types/typechain/merge.d.ts
ts-gen: 💎 All done! Generated files: 2
contractkit: Generating Types
ts-gen: Running Web3-v1-celo
ts-gen: /Users/sebastian/projects/celo/monorepo/h34d/packages/protocol/build/contracts/@(Accounts|GasPriceMinimum|FeeCurrencyWhitelist|GoldToken|MultiSig|Registry|Freezer|TransferWhitelist|Election|EpochRewards|Governance|GovernanceApproverMultiSig|BlockchainParameters|DoubleSigningSlasher|DowntimeSlasher|LockedGold|Validators|ReleaseGold|Attestations|Escrow|Random|Exchange|Reserve|ReserveSpenderMultiSig|StableToken|SortedOracles).json matched 26 files.
ts-gen: Processing build/contracts/Accounts.json
ts-gen: Writing file: ../contractkit/src/generated/Accounts.ts
ts-gen: Processing build/contracts/Attestations.json
ts-gen: Writing file: ../contractkit/src/generated/Attestations.ts
ts-gen: Processing build/contracts/BlockchainParameters.json
ts-gen: Writing file: ../contractkit/src/generated/BlockchainParameters.ts
ts-gen: Processing build/contracts/DoubleSigningSlasher.json
ts-gen: Writing file: ../contractkit/src/generated/DoubleSigningSlasher.ts
ts-gen: Processing build/contracts/DowntimeSlasher.json
ts-gen: Writing file: ../contractkit/src/generated/DowntimeSlasher.ts
ts-gen: Processing build/contracts/Election.json
ts-gen: Writing file: ../contractkit/src/generated/Election.ts
ts-gen: Processing build/contracts/EpochRewards.json
ts-gen: Writing file: ../contractkit/src/generated/EpochRewards.ts
ts-gen: Processing build/contracts/Escrow.json
ts-gen: Writing file: ../contractkit/src/generated/Escrow.ts
ts-gen: Processing build/contracts/Exchange.json
ts-gen: Writing file: ../contractkit/src/generated/Exchange.ts
ts-gen: Processing build/contracts/FeeCurrencyWhitelist.json
ts-gen: Writing file: ../contractkit/src/generated/FeeCurrencyWhitelist.ts
ts-gen: Processing build/contracts/Freezer.json
ts-gen: Writing file: ../contractkit/src/generated/Freezer.ts
ts-gen: Processing build/contracts/GasPriceMinimum.json
ts-gen: Writing file: ../contractkit/src/generated/GasPriceMinimum.ts
ts-gen: Processing build/contracts/GoldToken.json
ts-gen: Writing file: ../contractkit/src/generated/GoldToken.ts
ts-gen: Processing build/contracts/Governance.json
ts-gen: Writing file: ../contractkit/src/generated/Governance.ts
ts-gen: Processing build/contracts/GovernanceApproverMultiSig.json
ts-gen: Writing file: ../contractkit/src/generated/GovernanceApproverMultiSig.ts
ts-gen: Processing build/contracts/LockedGold.json
ts-gen: Writing file: ../contractkit/src/generated/LockedGold.ts
ts-gen: Processing build/contracts/MultiSig.json
ts-gen: Writing file: ../contractkit/src/generated/MultiSig.ts
ts-gen: Processing build/contracts/Random.json
ts-gen: Writing file: ../contractkit/src/generated/Random.ts
ts-gen: Processing build/contracts/Registry.json
ts-gen: Writing file: ../contractkit/src/generated/Registry.ts
ts-gen: Processing build/contracts/ReleaseGold.json
ts-gen: Writing file: ../contractkit/src/generated/ReleaseGold.ts
ts-gen: Processing build/contracts/Reserve.json
ts-gen: Writing file: ../contractkit/src/generated/Reserve.ts
ts-gen: Processing build/contracts/ReserveSpenderMultiSig.json
ts-gen: Writing file: ../contractkit/src/generated/ReserveSpenderMultiSig.ts
ts-gen: Processing build/contracts/SortedOracles.json
ts-gen: Writing file: ../contractkit/src/generated/SortedOracles.ts
ts-gen: Processing build/contracts/StableToken.json
ts-gen: Writing file: ../contractkit/src/generated/StableToken.ts
ts-gen: Processing build/contracts/TransferWhitelist.json
ts-gen: Writing file: ../contractkit/src/generated/TransferWhitelist.ts
ts-gen: Processing build/contracts/Validators.json
ts-gen: Writing file: ../contractkit/src/generated/Validators.ts
ts-gen: 💎 All done! Generated files: 26
$ /Users/sebastian/projects/celo/monorepo/h34d/node_modules/.bin/prettier --write '/Users/sebastian/projects/celo/monorepo/h34d/packages/contractkit/src/generated/**/*.ts'
packages/contractkit/src/generated/Accounts.ts 404ms
packages/contractkit/src/generated/Attestations.ts 158ms
packages/contractkit/src/generated/BlockchainParameters.ts 41ms
packages/contractkit/src/generated/DoubleSigningSlasher.ts 59ms
packages/contractkit/src/generated/DowntimeSlasher.ts 58ms
packages/contractkit/src/generated/Election.ts 92ms
packages/contractkit/src/generated/EpochRewards.ts 73ms
packages/contractkit/src/generated/Escrow.ts 38ms
packages/contractkit/src/generated/Exchange.ts 36ms
packages/contractkit/src/generated/FeeCurrencyWhitelist.ts 29ms
packages/contractkit/src/generated/Freezer.ts 27ms
packages/contractkit/src/generated/GasPriceMinimum.ts 32ms
packages/contractkit/src/generated/GoldToken.ts 44ms
packages/contractkit/src/generated/Governance.ts 117ms
packages/contractkit/src/generated/GovernanceApproverMultiSig.ts 46ms
packages/contractkit/src/generated/LockedGold.ts 59ms
packages/contractkit/src/generated/MultiSig.ts 43ms
packages/contractkit/src/generated/Random.ts 35ms
packages/contractkit/src/generated/Registry.ts 26ms
packages/contractkit/src/generated/ReleaseGold.ts 52ms
packages/contractkit/src/generated/Reserve.ts 50ms
packages/contractkit/src/generated/ReserveSpenderMultiSig.ts 42ms
packages/contractkit/src/generated/SortedOracles.ts 34ms
packages/contractkit/src/generated/StableToken.ts 51ms
packages/contractkit/src/generated/TransferWhitelist.ts 32ms
packages/contractkit/src/generated/Validators.ts 87ms
$ rm -f migrations/*.js* && tsc -b
$ rm test/**/*.js ; node runTests.js --coverage
$ /Users/sebastian/projects/celo/monorepo/h34d/node_modules/.bin/truffle test --network coverage --migration_override '{"downtimeSlasher":{"slashableDowntime":60},"election":{"minElectableValidators":"10"},"epochRewards":{"frozen":false},"exchange":{"frozen":false,"minimumReports":1},"goldToken":{"frozen":false},"governanceApproverMultiSig":{"signatories":["0x5409ed021d9299bf6814279a6a1411a7e866a631"],"numRequiredConfirmations":1,"numInternalRequiredConfirmations":1},"reserve":{"initialBalance":100000000,"otherAddresses":["0x7457d5E02197480Db681D3fdF256c7acA21bDc12"]},"reserveSpenderMultiSig":{"signatories":["0x5409ed021d9299bf6814279a6a1411a7e866a631"],"numRequiredConfirmations":1,"numInternalRequiredConfirmations":1},"stableToken":{"oracles":["0x5409ed021d9299bf6814279a6a1411a7e866a631"],"frozen":false}}' test/common/accounts.ts test/common/addresssortedlinkedlistwithmedian.ts test/common/extractfunctionsignature.ts test/common/fixidity.ts test/common/gascurrencywhitelist.ts test/common/gaspriceminimum.ts test/common/goldtoken.ts test/common/heap.ts test/common/integration.ts test/common/linkedlist.ts test/common/migration.ts test/common/multisig.ts test/common/proxy.ts test/common/registry.ts test/common/transferwhitelist.ts test/governance/blockchainparams.ts test/governance/double_signing_slasher.ts test/governance/downtime_slasher.ts test/governance/election.ts test/governance/epochrewards.ts test/governance/governance.ts test/governance/governance_slasher.ts test/governance/lockedgold.ts test/governance/proposals.ts test/governance/release_gold.ts test/governance/sortedlinkedlist.ts test/governance/validators.ts test/identity/attestations.ts test/identity/escrow.ts test/identity/random.ts test/stability/exchange.ts test/stability/reserve.ts test/stability/sortedoracles.ts test/stability/stabletoken.ts test/teardown.ts
building provider!
Using network 'coverage'.


Compiling your contracts...
===========================
> Compiling ./contracts/common/Accounts.sol
> Compiling ./contracts/common/Freezable.sol
> Compiling ./contracts/common/GasPriceMinimum.sol
> Compiling ./contracts/common/GoldToken.sol
> Compiling ./contracts/common/TransferWhitelist.sol
> Compiling ./contracts/common/UsingRegistry.sol
> Compiling ./contracts/governance/DoubleSigningSlasher.sol
> Compiling ./contracts/governance/DowntimeSlasher.sol
> Compiling ./contracts/governance/Election.sol
> Compiling ./contracts/governance/EpochRewards.sol
> Compiling ./contracts/governance/Governance.sol
> Compiling ./contracts/governance/GovernanceSlasher.sol
> Compiling ./contracts/governance/LockedGold.sol
> Compiling ./contracts/governance/ReleaseGold.sol
> Compiling ./contracts/governance/SlasherUtil.sol
> Compiling ./contracts/governance/Validators.sol
> Compiling ./contracts/governance/interfaces/IValidators.sol
> Compiling ./contracts/governance/test/ElectionTest.sol
> Compiling ./contracts/governance/test/EpochRewardsTest.sol
> Compiling ./contracts/governance/test/GovernanceTest.sol
> Compiling ./contracts/governance/test/MockUsingPrecompiles.sol
> Compiling ./contracts/governance/test/MockValidators.sol
> Compiling ./contracts/governance/test/TestDoubleSigningSlasher.sol
> Compiling ./contracts/governance/test/TestDowntimeSlasher.sol
> Compiling ./contracts/governance/test/ValidatorsTest.sol
> Compiling ./contracts/identity/Attestations.sol
> Compiling ./contracts/identity/Escrow.sol
> Compiling ./contracts/identity/test/TestAttestations.sol
> Compiling ./contracts/stability/Exchange.sol
> Compiling ./contracts/stability/Reserve.sol
> Compiling ./contracts/stability/StableToken.sol
> Artifacts written to /var/folders/l2/sm_kf1v511s48_n2njkbjbfc0000gn/T/test-120225-28441-19lrf5v.rgm
> Compiled successfully using:
   - solc: 0.5.8+commit.23d335f2.Emscripten.clang

Deploying Registry
  Setting initial Registry implementation on proxy
Deploying Freezer
  Setting initial Freezer implementation on proxy
Deploying FeeCurrencyWhitelist
  Setting initial FeeCurrencyWhitelist implementation on proxy
Deploying GoldToken
  Setting initial GoldToken implementation on proxy
Whitelisting GoldToken as a fee currency
Deploying SortedOracles
  Setting initial SortedOracles implementation on proxy
Deploying GasPriceMinimum
  Setting initial GasPriceMinimum implementation on proxy
Deploying ReserveSpenderMultiSig
  Setting initial ReserveSpenderMultiSig implementation on proxy
Deploying Reserve
  Setting initial Reserve implementation on proxy
Marking 0x7457d5E02197480Db681D3fdF256c7acA21bDc12 as an "otherReserveAddress"
Sending the reserve an initial gold balance
Marking 0xc4CC602A7345518d0B7A84049d4Bc8575eBF3398 as a reserve spender
Deploying StableToken
  Setting initial StableToken implementation on proxy
Adding 0x5409ed021d9299bf6814279a6a1411a7e866a631 as an Oracle for StableToken
Reporting price of StableToken to oracle
Adding StableToken to Reserve
Whitelisting StableToken as a fee currency
Deploying Exchange
  Setting initial Exchange implementation on proxy
Deploying Accounts
  Setting initial Accounts implementation on proxy
Deploying LockedGold
  Setting initial LockedGold implementation on proxy
Deploying Validators
  Setting initial Validators implementation on proxy
Deploying Election
  Setting initial Election implementation on proxy
Deploying EpochRewards
  Setting initial EpochRewards implementation on proxy
Deploying Random
  Setting initial Random implementation on proxy
Deploying Attestations
  Setting initial Attestations implementation on proxy
Deploying Escrow
  Setting initial Escrow implementation on proxy
Deploying BlockchainParameters
  Setting initial BlockchainParameters implementation on proxy
Deploying GovernanceSlasher
  Setting initial GovernanceSlasher implementation on proxy
Adding GovernanceSlasher contract as slasher.
Deploying DoubleSigningSlasher
  Setting initial DoubleSigningSlasher implementation on proxy
Adding DoubleSigningSlasher contract as slasher.
Deploying DowntimeSlasher
  Setting initial DowntimeSlasher implementation on proxy
Adding DowntimeSlasher contract as slasher.
Deploying GovernanceApproverMultiSig
  Setting initial GovernanceApproverMultiSig implementation on proxy
Deploying Governance
  Setting initial Governance implementation on proxy
Setting constitution thresholds
	Setting constitution thresholds for Accounts
	Setting constitution thresholds for Attestations
	Setting constitution thresholds for BlockchainParameters
	Setting constitution thresholds for DoubleSigningSlasher
	Setting constitution thresholds for DowntimeSlasher
	Setting constitution thresholds for Election
	Setting constitution thresholds for EpochRewards
	Setting constitution thresholds for Escrow
	Setting constitution thresholds for Exchange
	Setting constitution thresholds for FeeCurrencyWhitelist
	Setting constitution thresholds for Freezer
	Setting constitution thresholds for GasPriceMinimum
	Setting constitution thresholds for GoldToken
	Setting constitution thresholds for Governance
	Setting constitution thresholds for GovernanceSlasher
	Setting constitution thresholds for LockedGold
	Setting constitution thresholds for Random
	Setting constitution thresholds for Registry
	Setting constitution thresholds for Reserve
	Setting constitution thresholds for SortedOracles
	Setting constitution thresholds for StableToken
	Setting constitution thresholds for Validators
  Transferring ownership of Accounts and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Attestations and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of BlockchainParameters and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of DoubleSigningSlasher and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of DowntimeSlasher and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Election and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of EpochRewards and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Escrow and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Exchange and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of FeeCurrencyWhitelist and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Freezer and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of GasPriceMinimum and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of GoldToken and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Governance and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of GovernanceSlasher and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of LockedGold and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Random and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Registry and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Reserve and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of SortedOracles and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of StableToken and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  Transferring ownership of Validators and its Proxy to 0xc51B43db0Cea40E36207993F0aB1883E7A865417
  No validators to register


  Contract: Accounts
    #createAccount
      ✓ creates the account (697ms)
      ✓ emits an AccountCreated event (235ms)
    #setAccountDataEncryptionKey()
      ✓ should set dataEncryptionKey (512ms)
      ✓ should allow setting a key with leading zeros (607ms)
      ✓ should revert when the key is invalid (3854ms)
      ✓ should allow a key that is longer than 33 bytes (434ms)
      ✓ should emit the AccountDataEncryptionKeySet event (214ms)
    #setAccount
      when the account has been created
        ✓ should set the name, dataEncryptionKey and walletAddress (952ms)
        ✓ emits the AccountNameSet event (282ms)
        ✓ emits the AccountDataEncryptionKeySet event (275ms)
        ✓ emits the AccountWalletAddressSet event (322ms)
      when the account has not yet been created
        ✓ should set the name, dataEncryptionKey and walletAddress (1105ms)
        ✓ should set a different address with the appropriate signature (828ms)
        ✓ emits the AccountCreated event (524ms)
        ✓ emits the AccountNameSet event (916ms)
        ✓ emits the AccountDataEncryptionKeySet event (463ms)
        ✓ emits the AccountWalletAddressSet event (428ms)
        ✓ should set a revert with the wrong signature for a different address (1115ms)
    #setWalletAddress
      when the account has not been created
        ✓ should revert (490ms)
      when the account has been created
        ✓ should set the walletAddress (452ms)
        ✓ should set a different address with the appropriate signature (746ms)
        ✓ should set the NULL_ADDRESS (405ms)
        ✓ should emit the AccountWalletAddressSet event (192ms)
        ✓ should set a revert with the wrong signature for a different address (852ms)
    #setMetadataURL
      when the account has not been created
        ✓ should revert (467ms)
      when the account has been created
        ✓ should set the metadataURL (691ms)
        ✓ should emit the AccountMetadataURLSet event (230ms)
    #batchGetMetadataURL
      ✓ returns multiple metadata URLs (16714ms)
    #setName
      when the account has not been created
        ✓ should revert (404ms)
      when the account has been created
        ✓ should set the name (483ms)
        ✓ should emit the AccountNameSet event (212ms)
    authorization tests:
      #authorizeVoteSigner()
        ✓ should set the authorized vote signing key (1406ms)
        ✓ should emit the right event (386ms)
        ✓ should revert if the vote signing key is an account (796ms)
        ✓ should revert if the vote signing key is already authorized (1376ms)
        ✓ should revert if the signature is incorrect (988ms)
        when a previous authorization has been made
          ✓ should set the new authorized vote signing key (861ms)
          ✓ should preserve the previous authorization (287ms)
      #getAccountFromVoteSigner()
        when the account has not authorized a vote signing key
          ✓ should return the account when passed the account (248ms)
          ✓ should revert when passed an address that is not an account (267ms)
        when the account has authorized a vote signing key
          ✓ should return the account when passed the account (312ms)
          ✓ should return the account when passed the vote signing key (237ms)
      #getVoteSignerFromAccount()
        when the account has not authorized a vote signing key
          ✓ should return the account when passed the account (226ms)
          ✓ should revert when not passed an account (334ms)
        when the account has authorized a vote signing key
          ✓ should return the voting when passed the account (282ms)
      #removeVoteSigner()
        ✓ should be able to remove the voting signer after authorizing (1435ms)
    authorization tests:
      #authorizeValidatorSigner()
        ✓ should set the authorized validator signing key (2033ms)
        ✓ should emit the right event (405ms)
        ✓ should revert if the validator signing key is an account (719ms)
        ✓ should revert if the validator signing key is already authorized (1136ms)
        ✓ should revert if the signature is incorrect (701ms)
        when a previous authorization has been made
          ✓ should set the new authorized validator signing key (634ms)
          ✓ should preserve the previous authorization (184ms)
      #getAccountFromValidatorSigner()
        when the account has not authorized a validator signing key
          ✓ should return the account when passed the account (201ms)
          ✓ should revert when passed an address that is not an account (189ms)
        when the account has authorized a validator signing key
          ✓ should return the account when passed the account (186ms)
          ✓ should return the account when passed the validator signing key (178ms)
      #getValidatorSignerFromAccount()
        when the account has not authorized a validator signing key
          ✓ should return the account when passed the account (206ms)
          ✓ should revert when not passed an account (189ms)
        when the account has authorized a validator signing key
          ✓ should return the validating when passed the account (179ms)
      #removeValidatorSigner()
        ✓ should be able to remove the validating signer after authorizing (1298ms)
    authorization tests:
      #authorizeAttestationSigner()
        ✓ should set the authorized attestation signing key (1264ms)
        ✓ should emit the right event (267ms)
        ✓ should revert if the attestation signing key is an account (618ms)
        ✓ should revert if the attestation signing key is already authorized (864ms)
        ✓ should revert if the signature is incorrect (799ms)
        when a previous authorization has been made
          ✓ should set the new authorized attestation signing key (626ms)
          ✓ should preserve the previous authorization (189ms)
      #getAccountFromAttestationSigner()
        when the account has not authorized a attestation signing key
          ✓ should return the account when passed the account (195ms)
          ✓ should revert when passed an address that is not an account (214ms)
        when the account has authorized a attestation signing key
          ✓ should return the account when passed the account (202ms)
          ✓ should return the account when passed the attestation signing key (188ms)
      #getAttestationSignerFromAccount()
        when the account has not authorized a attestation signing key
          ✓ should return the account when passed the account (189ms)
          ✓ should revert when not passed an account (248ms)
        when the account has authorized a attestation signing key
          ✓ should return the attesting when passed the account (203ms)
      #removeAttestationSigner()
        ✓ should be able to remove the attesting signer after authorizing (1395ms)

  Contract: AddressSortedLinkedListWithMedianTest
    #insert()
      ✓ should add a single element to the list (1564ms)
      ✓ should increment numElements (581ms)
      ✓ should update the head (599ms)
      ✓ should update the tail (586ms)
      ✓ should update the median (574ms)
      ✓ should revert if key is 0 (567ms)
      ✓ should revert if lesser is equal to key (668ms)
      ✓ should revert if greater is equal to key (537ms)
      when an element is already in the list
        ✓ should revert when inserting an element already in the list (694ms)
    #update()
      ✓ should update the value for an existing element (1295ms)
      ✓ should revert if the key is not in the list (763ms)
      ✓ should revert if lesser is equal to key (688ms)
      ✓ should revert if greater is equal to key (963ms)
    #remove()
      ✓ should remove the element from the list (615ms)
      ✓ should decrement numElements (681ms)
      ✓ should update the head (580ms)
      ✓ should update the tail (552ms)
      ✓ should update the median (583ms)
      ✓ should revert if the key is not in the list (880ms)
    when there are multiple inserts, updates, and removals
      ✓ should maintain invariants when lesser, greater are correct (285492ms)
      1) should maintain invariants when lesser, greater are incorrect
    > No events were emitted

  Contract: ExtractFunctionSignatureTest
    #extractFunctionSignature
      2) "before each" hook for "should extract the method signature"

  Contract: FixidityLib
    newFixed
      3) "before each" hook for "should create 0"

  Contract: FeeCurrencyWhitelist
    #initialize()
      4) "before each" hook for "should have set the owner"

  Contract: GasPriceMinimum
    #initialize()
@H34D H34D added bug Something isn't working quality labels Mar 25, 2020
@github-actions
Copy link
Contributor

This issue is stale and will be closed in 30 days without activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working quality stale
Projects
None yet
Development

No branches or pull requests

1 participant