Skip to content

Instantly share code, notes, and snippets.

@johnwhitton
Created March 18, 2022 23:32
Show Gist options
  • Save johnwhitton/1a7d42b5a82afbd0998dc9d8787504c4 to your computer and use it in GitHub Desktop.
Save johnwhitton/1a7d42b5a82afbd0998dc9d8787504c4 to your computer and use it in GitHub Desktop.
Log when using bumpTime in OneWallet
johnlaptop code (testing) $ ttt
/Users/john/one-wallet/one-wallet/code
Using network 'ganache'.
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Contract: ONEWallet
Taking EVM Snapshot
Initialized
Date.now() . : 1647646207879
testEffective : 1647646250643
chainBumpSeconds: 42764
EVM increased time by 42.764
Date.now() . : 1647646208269
testEffective : 1647646295643
chainBumpSeconds: 87374
EVM increased time by 87.374
✓ Wallet_CommitReveal: TokenTracker(token management) must commit and reveal successfully (2906ms)
EVM reverting to 0x2c
1 passing (4s)
johnlaptop code (testing) $ ttt
/Users/john/one-wallet/one-wallet/code
Using network 'ganache'.
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Contract: ONEWallet
Taking EVM Snapshot
Initialized
Date.now() . : 1647646220623
testEffective : 1647646263613
chainBumpSeconds: 42991
EVM increased time by 42.991
Date.now() . : 1647646221037
testEffective : 1647646308613
chainBumpSeconds: 87576
EVM increased time by 87.576
1) Wallet_CommitReveal: TokenTracker(token management) must commit and reveal successfully
Events emitted during test:
---------------------------
IONEWalletFactoryHelper.ONEWalletDeploySuccess(
addr: 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
salt: 26526495143064526612304358781545796244362234568737503329166169487498860852966 (type: uint256),
codeHash: 0xf678eca309acb417d39f0cb0ac038a1683bbf6772cc37204cafce103bdce79d9 (type: bytes32)
)
IONEWalletFactoryHelper.ONEWalletDeploySuccess(
addr: 0xcC9E7c29FEB39545651671175aF571871b5B1E80 (type: address),
salt: 24898756397284013038730340545992156503709823018529820814270994531240705864142 (type: uint256),
codeHash: 0xf678eca309acb417d39f0cb0ac038a1683bbf6772cc37204cafce103bdce79d9 (type: bytes32)
)
IERC20.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
value: 10000000 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 0 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 1 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 2 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 3 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 4 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 5 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 6 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 7 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 8 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: <indexed> 9 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 0 (type: uint256),
value: 10 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 1 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 2 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 3 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 4 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 5 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 6 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 7 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 8 (type: uint256),
value: 20 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
to: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
id: 9 (type: uint256),
value: 100 (type: uint256)
)
IERC20.Transfer(
from: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
to: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
value: 1000 (type: uint256)
)
IERC20.Transfer(
from: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
to: <indexed> 0xcC9E7c29FEB39545651671175aF571871b5B1E80 (type: address),
value: 100 (type: uint256)
)
TokenTracker.TokenTracked(
tokenType: Enums.TokenType.ERC20 (type: enum Enums.TokenType),
contractAddress: 0xCb36071971a20714d982f75f44ea95E13BB87e60 (type: address),
tokenId: 0 (type: uint256)
)
TokenTracker.TokenTransferSucceeded(
tokenType: Enums.TokenType.ERC20 (type: enum Enums.TokenType),
contractAddress: 0xCb36071971a20714d982f75f44ea95E13BB87e60 (type: address),
tokenId: 0 (type: uint256),
dest: 0xcC9E7c29FEB39545651671175aF571871b5B1E80 (type: address),
amount: 100 (type: uint256)
)
IERC721.Approval(
owner: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
approved: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
tokenId: <indexed> 8 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
to: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
tokenId: <indexed> 8 (type: uint256)
)
IERC721.Approval(
owner: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
approved: <indexed> 0x0000000000000000000000000000000000000000 (type: address),
tokenId: <indexed> 8 (type: uint256)
)
IERC721.Transfer(
from: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
to: <indexed> 0xcC9E7c29FEB39545651671175aF571871b5B1E80 (type: address),
tokenId: <indexed> 8 (type: uint256)
)
ONEWallet.ReceivedToken(
tokenType: 1 (type: enum Enums.TokenType),
amount: 1 (type: uint256),
from: 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
tokenContract: 0x097a2aaA2075555962e3E48C6A24B26792EE8511 (type: address),
operator: 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
tokenId: 8 (type: uint256),
data: hex'' (type: bytes)
)
TokenTracker.TokenTracked(
tokenType: Enums.TokenType.ERC721 (type: enum Enums.TokenType),
contractAddress: 0x097a2aaA2075555962e3E48C6A24B26792EE8511 (type: address),
tokenId: 8 (type: uint256)
)
TokenTracker.TokenTransferSucceeded(
tokenType: Enums.TokenType.ERC721 (type: enum Enums.TokenType),
contractAddress: 0x097a2aaA2075555962e3E48C6A24B26792EE8511 (type: address),
tokenId: 8 (type: uint256),
dest: 0xcC9E7c29FEB39545651671175aF571871b5B1E80 (type: address),
amount: 0 (type: uint256)
)
IERC1155.TransferSingle(
operator: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
from: <indexed> 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
to: <indexed> 0x2F62d7CF38576709828537D9E7e5DebE1f6E4750 (type: address),
id: 8 (type: uint256),
value: 8 (type: uint256)
)
ONEWallet.ReceivedToken(
tokenType: 2 (type: enum Enums.TokenType),
amount: 8 (type: uint256),
from: 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenContract: 0xa5A53B881415f0Ef2185e9E07f5F094E175f3c60 (type: address),
operator: 0xea006bd6d8997972135Ce65E610e74b8B7EC6ba7 (type: address),
tokenId: 8 (type: uint256),
data: hex'' (type: bytes)
)
TokenTracker.TokenTracked(
tokenType: Enums.TokenType.ERC1155 (type: enum Enums.TokenType),
contractAddress: 0xa5A53B881415f0Ef2185e9E07f5F094E175f3c60 (type: address),
tokenId: 8 (type: uint256)
)
---------------------------
EVM reverting to 0x2d
0 passing (4s)
1 failing
1) Contract: ONEWallet
Wallet_CommitReveal: TokenTracker(token management) must commit and reveal successfully:
Error: Returned error: VM Exception while processing transaction: revert Time mismatch
at Object.commitReveal (test/util.js:273:44)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Object.assetTransfer (test/checkUtil.js:155:3)
at Context.<anonymous> (test/tokens.js:317:5)
johnlaptop code (testing) $ ttt
/Users/john/one-wallet/one-wallet/code
Using network 'ganache'.
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Contract: ONEWallet
Taking EVM Snapshot
Initialized
Date.now() . : 1647646235897
testEffective : 1647646278939
chainBumpSeconds: 43042
EVM increased time by 43.042
Date.now() . : 1647646236260
testEffective : 1647646323939
chainBumpSeconds: 87679
EVM increased time by 87.679
✓ Wallet_CommitReveal: TokenTracker(token management) must commit and reveal successfully (2563ms)
EVM reverting to 0x2e
1 passing (3s)
johnlaptop code (testing) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment