Skip to content

Instantly share code, notes, and snippets.

@aakilfernandes
Created November 4, 2016 22:25
Show Gist options
  • Save aakilfernandes/ab87f75c2a50b1a03c178da711ccd501 to your computer and use it in GitHub Desktop.
Save aakilfernandes/ab87f75c2a50b1a03c178da711ccd501 to your computer and use it in GitHub Desktop.
async
✓ test: 0
✓ error test: 0
lib/web3/batch
execute
✓ should execute batch request
✓ should execute batch request for async properties
✓ should execute batch request with contract
✓ should execute batch requests and receive errors
lib/solidity/coder
decodeParam
✓ should turn 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1
✓ should turn 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn 000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c2,0x407d73d8a49eeb85d32cf465507dd71d507100c3,0x407d73d8a49eeb85d32cf465507dd71d507100c4
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c2000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c2,0x407d73d8a49eeb85d32cf465507dd71d507100c3,0x407d73d8a49eeb85d32cf465507dd71d507100c4
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c2,0x407d73d8a49eeb85d32cf465507dd71d507100c3,0x407d73d8a49eeb85d32cf465507dd71d507100c4
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to true
✓ should turn 0000000000000000000000000000000000000000000000000000000000000000 to false
✓ should turn 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000 to true,false
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000 to true,true,false
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to -1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to -1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000002 to 16,2
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000 to
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003 to 3
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003 to 3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003 to 1,2,3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006 to 1,2,3,4,5,6
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to 1.15792089237316195423570985008687907853269984665640564039457584007913129639935e+77
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 0000000000000000000000000000000000000000000000000000000000000010 to 16
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000 to
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003 to 3
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003 to 3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003 to 1,2,3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006 to 1,2,3,4,5,6
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000 to 0x6761766f66796f726b
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134a0000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134a,0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134a0000000000000000000000000000000000000000000000000000000000000040731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134c0000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134d to 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134a,0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134c,0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134d
✓ should turn cf00000000000000000000000000000000000000000000000000000000000000 to 0xcf
✓ should turn cf0000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000004d00000000000000000000000000000000000000000000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000 to 0xcf,0x68,0x4d,0xfb
✓ should turn 6761766f66796f726b0000000000000000000000000000000000000000000000 to 0x6761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn c3a40000c3a40000000000000000000000000000000000000000000000000000c3a40000c3a40000000000000000000000000000000000000000000000000000 to 0xc3a40000c3a40000000000000000000000000000000000000000000000000000c3a40000c3a40000000000000000000000000000000000000000000000000000
✓ should turn 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000 to gavofyork
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000008c383c2a4c383c2a4000000000000000000000000000000000000000000000000 to ää
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002c3bc000000000000000000000000000000000000000000000000000000000000 to ü
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002c383000000000000000000000000000000000000000000000000000000000000 to Ã
✓ should turn 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000006c3a40000c3a40000000000000000000000000000000000000000000000000000 to 0xc3a40000c3a4
✓ should turn c3a40000c3a40000000000000000000000000000000000000000000000000000 to 0xc3a40000c3a40000000000000000000000000000000000000000000000000000
✓ should turn 0000000000000000000000000000000100000000000000000000000000000000 to 1
✓ should turn 0000000000000000000000000000000220000000000000000000000000000000 to 2.125
✓ should turn 0000000000000000000000000000000880000000000000000000000000000000 to 8.5
✓ should turn ffffffffffffffffffffffffffffffff00000000000000000000000000000000 to -1
✓ should turn 0000000000000000000000000000000100000000000000000000000000000000 to 1
✓ should turn 0000000000000000000000000000000220000000000000000000000000000000 to 2.125
✓ should turn 0000000000000000000000000000000880000000000000000000000000000000 to 8.5
✓ should turn 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1
✓ should turn 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003e77656c636f6d6520746f20657468657265756d2e2077656c636f6d6520746f20657468657265756d2e2077656c636f6d6520746f20657468657265756d2e0000 to welcome to ethereum. welcome to ethereum. welcome to ethereum.
✓ should turn 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000009ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff100 to 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1
lib/solidity/coder
decodeParams
✓ should turn 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1
✓ should turn 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3 to 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 to true,false,false,false,true
✓ should turn 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005 to 1,2,3,4,5
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005 to 1,2,3,4,5
✓ should turn 0000000000000000000000000000000000000000000000000000000000000001 to 1
✓ should turn 000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b0000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134c to 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b,0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134c
✓ should turn 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000 to 1,gavofyork,5
✓ should turn 6761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005 to 0x6761766f66796f726b0000000000000000000000000000000000000000000000,5
✓ should turn 00000000000000000000000000000000000000000000000000000000000000056761766f66796f726b0000000000000000000000000000000000000000000000 to 5,0x6761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007 to 1,gavofyork,2,3,4,5,6,7
✓ should turn 00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000040131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b0000000000000000000000000000000000000000000000000000000000000040331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b431a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 5,0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b,3,0x331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b431a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
lib/solidity/coder
encodeParam
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1 to 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3 to 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3 to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c2,0x407d73d8a49eeb85d32cf465507dd71d507100c3,0x407d73d8a49eeb85d32cf465507dd71d507100c4 to 000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c2,0x407d73d8a49eeb85d32cf465507dd71d507100c3,0x407d73d8a49eeb85d32cf465507dd71d507100c4 to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c2000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c4
✓ should turn true to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn false to 0000000000000000000000000000000000000000000000000000000000000000
✓ should turn false,false to 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
✓ should turn true,false to 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
✓ should turn true,true,false to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn -1 to ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 0.1 to 0000000000000000000000000000000000000000000000000000000000000000
✓ should turn 3.9 to 0000000000000000000000000000000000000000000000000000000000000003
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn -1 to ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn 0.1 to 0000000000000000000000000000000000000000000000000000000000000000
✓ should turn 3.9 to 0000000000000000000000000000000000000000000000000000000000000003
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 0x6761766f66796f726b to 6761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 0x02838654a83c213dae3698391eabbd54a5b6e1fb3452bc7fa4ea0dd5c8ce7e29 to 02838654a83c213dae3698391eabbd54a5b6e1fb3452bc7fa4ea0dd5c8ce7e29
✓ should turn 0x6761766f66796f726b to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 0x731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020731a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1 to 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000009ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff100
✓ should turn gavofyork to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 0xc3a40000c3a4 to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000006c3a40000c3a40000000000000000000000000000000000000000000000000000
✓ should turn 0xc3a40000c3a4 to c3a40000c3a40000000000000000000000000000000000000000000000000000
✓ should turn 0xc3a40000c3a40000000000000000000000000000000000000000000000000000c3a40000c3a40000000000000000000000000000000000000000000000000000 to c3a40000c3a40000000000000000000000000000000000000000000000000000c3a40000c3a40000000000000000000000000000000000000000000000000000
✓ should turn ää to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000008c383c2a4c383c2a4000000000000000000000000000000000000000000000000
✓ should turn ü to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002c3bc000000000000000000000000000000000000000000000000000000000000
✓ should turn à to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002c383000000000000000000000000000000000000000000000000000000000000
✓ should turn to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
✓ should turn 3 to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003
✓ should turn 3 to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003
✓ should turn 1,2,3 to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003
✓ should turn 0xcf,0x68,0x4d,0xfb to cf0000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000004d00000000000000000000000000000000000000000000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000
✓ should turn 1 to 0000000000000000000000000000000100000000000000000000000000000000
✓ should turn 2.125 to 0000000000000000000000000000000220000000000000000000000000000000
✓ should turn 8.5 to 0000000000000000000000000000000880000000000000000000000000000000
✓ should turn -1 to ffffffffffffffffffffffffffffffff00000000000000000000000000000000
✓ should turn 1 to 0000000000000000000000000000000100000000000000000000000000000000
✓ should turn 2.125 to 0000000000000000000000000000000220000000000000000000000000000000
✓ should turn 8.5 to 0000000000000000000000000000000880000000000000000000000000000000
✓ should turn 0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000060131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn welcome to ethereum. welcome to ethereum. welcome to ethereum. to 0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003e77656c636f6d6520746f20657468657265756d2e2077656c636f6d6520746f20657468657265756d2e2077656c636f6d6520746f20657468657265756d2e0000
lib/solidity/coder
encodeParams
✓ should turn 0x407d73d8a49eeb85d32cf465507dd71d507100c1,0x407d73d8a49eeb85d32cf465507dd71d507100c3 to 000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c1000000000000000000000000407d73d8a49eeb85d32cf465507dd71d507100c3
✓ should turn true,false,false,false,true to 00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn -1 to ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 1 to 0000000000000000000000000000000000000000000000000000000000000001
✓ should turn 16 to 0000000000000000000000000000000000000000000000000000000000000010
✓ should turn -1 to ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 3 to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003
✓ should turn 3 to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003
✓ should turn 1,2,3 to 00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003
✓ should turn 1,2,3,4 to 000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004
✓ should turn 1,2,3,4,5,6,7 to 000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007
✓ should turn 0x6761766f66796f726b to 6761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn gavofyork to 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn gavofyork,gavofyork to 0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 0x6761766f66796f726b,5 to 6761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005
✓ should turn 5,0x6761766f66796f726b to 00000000000000000000000000000000000000000000000000000000000000056761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 5,gavofyork to 0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn gavofyork,5 to 0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn gavofyork,true,1,2,3 to 0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003
✓ should turn gavofyork,1,2,3 to 0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003
✓ should turn 5,gavofyork to 0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b0000000000000000000000000000000000000000000000
✓ should turn 1,gavofyork,2,3,4,5,6,7 to 000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000096761766f66796f726b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007
✓ should turn 5,0x131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b,3,0x331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b431a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b to 00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000040131a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b231a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b0000000000000000000000000000000000000000000000000000000000000040331a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b431a3afc00d1b1e3461b955e53fc866dcf303b3eb9f4c16f89e388930f48134b
✓ should turn 0xcf0011,0x4d00000000000000000000000000000000000000000000000000000000000012 to cf00110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000204d00000000000000000000000000000000000000000000000000000000000012
contract
event
✓ should create event filter
✓ should create event filter and watch immediately
✓ should create all event filter
✓ should call constant function
✓ should call constant function with default block
✓ should sendTransaction to contract function
✓ should make a call with optional params
✓ should explicitly make a call with optional params
✓ should explicitly make a call with optional params and defaultBlock
✓ should sendTransaction with optional params
✓ should explicitly sendTransaction with optional params
✓ should explicitly sendTransaction with optional params and call callback without error
✓ should explicitly estimateGas with optional params
✓ should call testArr method and properly parse result
✓ should call testArr method, properly parse result and return the result async
lib/web3/method
getCall
✓ should return and error
✓ should return and error
✓ should return and error
✓ should return and error
lib/web3/event
decode
✓ test no: 0
✓ test no: 1
✓ test no: 2
✓ test no: 3
lib/web3/event
encode
✓ test no: 0
✓ test no: 1
✓ test no: 2
✓ test no: 3
✓ test no: 4
✓ test no: 5
✓ test no: 6
✓ test no: 7
✓ test no: 8
formatters
inputAddressFormatter
✓ should return the correct value
✓ should return the correct value
✓ should return the correct value
✓ should return the correct value
formatters
inputAddressFormatter
✓ should throw an exception
✓ should throw an exception
✓ should throw an exception
✓ should throw an exception
✓ should throw an exception
lib/web3/formatters
inputDefaultBlockNumberFormatter
✓ should turn latest to latest
✓ should turn pending to pending
✓ should turn earliest to earliest
✓ should turn 1 to 0x1
✓ should turn 0x1 to 0x1
formatters
inputPostFormatter
✓ should return the correct value
formatters
inputTransactionFormatter
✓ should return the correct value
✓ should return the correct value
✓ should return the correct value
✓ should return the correct value
✓ should return the correct value
formatters
outputBlockFormatter
✓ should return the correct value
✓ should return the correct value, when null values are present
formatters
outputLogFormatter
✓ should return the correct value
✓ should return the correct value, when null values are present
formatters
outputPostFormatter
✓ should return the correct value
formatters
outputTransactionFormatter
✓ should return the correct value
✓ should return the correct value, when null values are present
lib/web3/httpprovider
send
✓ should send basic request
sendAsync
✓ should send basic async request
isConnected
✓ should return a boolean
lib/web3/iban
createIndirect
✓ shoud create indirect iban: XE81ETHXREGGAVOFYORK
lib/web3/iban
fromAddress
✓ shoud create indirect iban: XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS
✓ shoud create indirect iban: XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS
✓ shoud create indirect iban: XE1222Q908LN1QBBU6XUQSO1OHWJIOS46OO
✓ shoud create indirect iban: XE499OG1EH8ZZI0KXC6N83EKGT1BM97P2O7
✓ shoud create indirect iban: XE0600DQK33XDTYUCRI0KYM5ELAKXDWWF6
lib/web3/iban
isValid
✓ shoud test if value function () {} is iban: false
✓ shoud test if value function anonymous() {
} is iban: false
✓ shoud test if value function is iban: false
✓ shoud test if value [object Object] is iban: false
✓ shoud test if value [] is iban: false
✓ shoud test if value [1, 2] is iban: false
✓ shoud test if value {} is iban: false
✓ shoud test if value {"a": 123, "b" :3,} is iban: false
✓ shoud test if value {"c" : 2} is iban: false
✓ shoud test if value XE81ETHXREGGAVOFYORK is iban: true
✓ shoud test if value XE82ETHXREGGAVOFYORK is iban: false
✓ shoud test if value XE81ETCXREGGAVOFYORK is iban: false
✓ shoud test if value XE81ETHXREGGAVOFYORKD is iban: false
✓ shoud test if value XE81ETHXREGGaVOFYORK is iban: false
✓ shoud test if value XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS is iban: true
✓ shoud test if value XE7438O073KYGTWWZN0F2WZ0R8PX5ZPPZS is iban: false
✓ shoud test if value XD7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS is iban: false
✓ shoud test if value XE1222Q908LN1QBBU6XUQSO1OHWJIOS46OO is iban: true
lib/web3/iban
toAddress
✓ shoud transform iban to address: 00c5496aee77c1ba1f0854206a26dda82a81d6d8
lib/web3/ipcprovider
send
✓ should send basic request
sendAsync
✓ should send basic async request (102ms)
isConnected
✓ should return a boolean
✓ should return false
✓ should return true, when a net handle is set
lib/web3/jsonrpc
id
✓ should increment the id
jsonrpc
isValidResponse
✓ should validate basic jsonrpc response
✓ should validate basic undefined response
✓ should validate jsonrpc response without jsonrpc field
✓ should validate jsonrpc response with wrong jsonrpc version
✓ should validate jsonrpc response without id number
✓ should validate jsonrpc response with wrong id field
✓ should validate jsonrpc response without result field
✓ should validate jsonrpc response with result field === false
✓ should validate jsonrpc response with result field === 0
jsonrpc
toBatchPayload
✓ should create basic batch payload
✓ should create batch payload for empty input array
jsonrpc
toPayload
✓ should create basic payload
✓ should create payload with params
lib/web3/method
extractCallback
✓ should extract callback
✓ should extract callback created using newFunction
✓ should not extract the callback
lib/web3/method
formatInput
✓ should format plain input
✓ should do nothing if there is no formatter
lib/web3/method
formatOutput
✓ should format plain output
✓ should do nothing if there is no formatter
lib/web3/method
getCall
✓ should return call name
✓ should return call based on args
lib/web3/method
validateArgs
✓ should pass
✓ should return call based on args
web3.eth.filter.polling
✓ should create && successfully poll filter
✓ should create && successfully poll filter when passed as callback
✓ should create && successfully poll filter
✓ should create && successfully poll filter when passed as callback
lib/web3/requestmanager
send
✓ should return expected result synchronously
✓ should return expected result asynchronously
lib/utils/sha3
✓ should encode test123 to f81b517a242b218999ec8eec0ea6e2ddbef2a367a14e93f4a32a39e260f686ad
✓ should encode test(int) to f4d03772bec1e62fbe8c5691e1a9101e520e8f8b5ca612123694632bf3cb51b1
✓ should encode 0x80 to 56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
✓ should encode 0x80 to 6b03a5eef7706e3fb52a61c19ab1122fad7237726601ac665bd4def888f0e4a0
✓ should encode 0x3c9229289a6125f7fdf1885a77bb12c37a8d3b4962d936f7e3084dece32a3ca1 to 82ff40c0a986c6a5cfad4ddf4c3aa6996f1a7837f9c398e17e5de5cbd5a12b28
lib/utils/utils
extractDisplayName
✓ should extract display name from method with no params
✓ should extract display name from method with one param
✓ should extract display name from method with two params
lib/utils/utils
extractTypeName
✓ should extract type name from method with no params
✓ should extract type name from method with one param
✓ should extract type name from method with two params
✓ should extract type name from method with spaces between params
lib/utils/utils
fromAscii
✓ should turn myString to 0x6d79537472696e67
✓ should turn myString to 0x6d79537472696e6700
✓ should turn 5èÆÕL]|Î¾ž7«›2(ЗY
<e!ßd/ñõì
:z¦Î¦±ç·÷Í¢Ëß6*Ž—ñžùC1ÉUÀé2ӆBŒ to 0x0300000035e8c6d54c5d127c9dcebe9e1a37ab9b05321128d097590a3c100000000000006521df642ff1f5ec0c3a7aa6cea6b1e7b7f7cda2cbdf07362a85088e97f19ef94331c955c0e9321ad386428c
lib/utils/utils
fromDecimal
✓ should turn 1 to 0x1
✓ should turn 1 to 0x1
✓ should turn 0x1 to 0x1
✓ should turn 0x01 to 0x1
✓ should turn 15 to 0xf
✓ should turn 15 to 0xf
✓ should turn 0xf to 0xf
✓ should turn 0x0f to 0xf
✓ should turn -1 to -0x1
✓ should turn -1 to -0x1
✓ should turn -0x1 to -0x1
✓ should turn -0x01 to -0x1
✓ should turn -15 to -0xf
✓ should turn -15 to -0xf
✓ should turn -0xf to -0xf
✓ should turn -0x0f to -0xf
✓ should turn 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
✓ should turn -0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to -0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn -0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to -0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
✓ should turn 0 to 0x0
✓ should turn 0 to 0x0
✓ should turn 0x0 to 0x0
✓ should turn 0 to 0x0
✓ should turn -0 to 0x0
✓ should turn -0x0 to 0x0
lib/utils/utils
fromUtf8
✓ should turn myString to 0x6d79537472696e67
✓ should turn myString to 0x6d79537472696e67
✓ should turn expected value to 0x65787065637465642076616c7565
lib/utils/utils
fromWei
✓ should return the correct value
lib/utils/utils
isAddress
✓ shoud test if value function () {} is address: false
✓ shoud test if value function anonymous() {
} is address: false
✓ shoud test if value function is address: false
✓ shoud test if value [object Object] is address: false
✓ shoud test if value 0xc6d9d2cd449a754c494264e1809c50e34d64562b is address: true
✓ shoud test if value c6d9d2cd449a754c494264e1809c50e34d64562b is address: true
lib/utils/utils
isBigNumber
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: true
✓ shoud test if value undefined is BigNumber: false
✓ shoud test if value undefined is BigNumber: false
lib/utils/utils
isChecksumAddress
✓ shoud test if address 0x52908400098527886E0F7030069857D2E4169EE7 passes checksum: true
✓ shoud test if address 0x8617E340B3D01FA5F11F306F4090FD50E238070D passes checksum: true
✓ shoud test if address 0xde709f2102306220921060314715629080e2fb77 passes checksum: true
✓ shoud test if address 0x27b1fdb04752bbc536007a920d24acb045561c26 passes checksum: true
✓ shoud test if address 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed passes checksum: true
✓ shoud test if address 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359 passes checksum: true
✓ shoud test if address 0xdbF03B407c01E7cD3CBea99509d93f8DDDC8C6FB passes checksum: true
✓ shoud test if address 0xD1220A0cf47c7B9Be7A2E6BA89F429762e7b9aDb passes checksum: true
✓ shoud test if address 0XD1220A0CF47C7B9BE7A2E6BA89F429762E7B9ADB passes checksum: false
✓ shoud test if address 0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb passes checksum: false
lib/utils/utils
isFunction
✓ shoud test if value function () {} is function: true
✓ shoud test if value function anonymous() {
} is function: true
✓ shoud test if value function is function: false
✓ shoud test if value [object Object] is function: false
lib/utils/utils
isJson
✓ shoud test if value function () {} is json: false
✓ shoud test if value function anonymous() {
} is json: false
✓ shoud test if value function is json: false
✓ shoud test if value [object Object] is json: false
✓ shoud test if value [] is json: true
✓ shoud test if value [1, 2] is json: true
✓ shoud test if value {} is json: true
✓ shoud test if value {"a": 123, "b" :3,} is json: false
✓ shoud test if value {"c" : 2} is json: true
lib/utils/utils
isStrictAddress
✓ shoud test if value function () {} is address: false
✓ shoud test if value function anonymous() {
} is address: false
✓ shoud test if value function is address: false
✓ shoud test if value [object Object] is address: false
✓ shoud test if value 0xc6d9d2cd449a754c494264e1809c50e34d64562b is address: true
✓ shoud test if value c6d9d2cd449a754c494264e1809c50e34d64562b is address: false
lib/utils/utils
isString
✓ shoud test if value undefined is string: false
✓ shoud test if value undefined is string: false
✓ shoud test if value undefined is string: true
✓ shoud test if value undefined is string: false
✓ shoud test if value undefined is string: true
lib/utils/utils
toAscii
✓ should turn 0x6d79537472696e67 to myString
✓ should turn 0x6d79537472696e6700 to myString
✓ should turn 0x0300000035e8c6d54c5d127c9dcebe9e1a37ab9b05321128d097590a3c100000000000006521df642ff1f5ec0c3a7aa6cea6b1e7b7f7cda2cbdf07362a85088e97f19ef94331c955c0e9321ad386428c to 5èÆÕL]|Î¾ž7«›2(ЗY
<e!ßd/ñõì
:z¦Î¦±ç·÷Í¢Ëß6*Ž—ñžùC1ÉUÀé2ӆBŒ
lib/utils/utils
toBigNumber
✓ should turn 1 to 1
✓ should turn 1 to 1
✓ should turn 0x1 to 1
✓ should turn 0x01 to 1
✓ should turn 15 to 15
✓ should turn 15 to 15
✓ should turn 0xf to 15
✓ should turn 0x0f to 15
✓ should turn 15 to 15
✓ should turn -1 to -1
✓ should turn -1 to -1
✓ should turn -0x1 to -1
✓ should turn -0x01 to -1
✓ should turn -15 to -15
✓ should turn -15 to -15
✓ should turn -0xf to -15
✓ should turn -0x0f to -15
✓ should turn 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to 115792089237316195423570985008687907853269984665640564039457584007913129639935
✓ should turn 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to 115792089237316195423570985008687907853269984665640564039457584007913129639933
✓ should turn -0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to -115792089237316195423570985008687907853269984665640564039457584007913129639935
✓ should turn -0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to -115792089237316195423570985008687907853269984665640564039457584007913129639933
✓ should turn 0 to 0
✓ should turn 0 to 0
✓ should turn 0x0 to 0
✓ should turn 0 to 0
✓ should turn -0 to 0
✓ should turn -0x0 to 0
✓ should turn 0 to 0
lib/utils/utils
toDecimal
✓ should return the correct value
lib/utils/utils
toHex
✓ should turn 1 to 0x1
✓ should turn 1 to 0x1
✓ should turn 0x1 to 0x1
✓ should turn 15 to 0xf
✓ should turn 0xf to 0xf
✓ should turn -1 to -0x1
✓ should turn -1 to -0x1
✓ should turn -0x1 to -0x1
✓ should turn -15 to -0xf
✓ should turn -0xf to -0xf
✓ should turn 0x657468657265756d to 0x657468657265756d
✓ should turn 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
✓ should turn -0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff to -0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
✓ should turn -0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd to -0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd
✓ should turn 0 to 0x0
✓ should turn 0 to 0x0
✓ should turn 0x0 to 0x0
✓ should turn 0 to 0x0
✓ should turn -0 to 0x0
✓ should turn -0x0 to 0x0
✓ should turn 1,2,3,[object Object] to 0x5b312c322c332c7b2274657374223a2264617461227d5d
✓ should turn [object Object] to 0x7b2274657374223a2274657374227d
✓ should turn {"test": "test"} to 0x7b2274657374223a202274657374227d
✓ should turn myString to 0x6d79537472696e67
✓ should turn 15 to 0xf
✓ should turn true to 0x1
✓ should turn false to 0x0
✓ should turn 5èÆÕL]|Î¾ž7«›2(ЗY
<e!ßd/ñõì
:z¦Î¦±ç·÷Í¢Ëß6*Ž—ñžùC1ÉUÀé2ӆBŒ to 0x0300000035e8c6d54c5d127c9dcebe9e1a37ab9b05321128d097590a3c100000000000006521df642ff1f5ec0c3a7aa6cea6b1e7b7f7cda2cbdf07362a85088e97f19ef94331c955c0e9321ad386428c
lib/utils/utils
toUtf8
✓ should turn 0x6d79537472696e67 to myString
✓ should turn 0x6d79537472696e6700 to myString
✓ should turn 0x65787065637465642076616c7565000000000000000000000000000000000000 to expected value
lib/utils/utils
toWei
✓ should return the correct value
web3.db
getHex
✓ sync test: 0
✓ async test: 0
web3.db
getString
✓ sync test: 0
✓ async test: 0
web3.db
methods
✓ should have method putHex implemented
✓ should have method getHex implemented
✓ should have method putString implemented
✓ should have method getString implemented
web3.db
putHex
✓ sync test: 0
✓ async test: 0
web3.db
putString
✓ sync test: 0
✓ async test: 0
web3.eth
accounts
✓ property test: 0
web3.eth
blockNumber
✓ property test: 0
✓ async get property test: 0
web3.eth
call
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
web3.eth
coinbase
✓ property test: 0
web3.eth.contract
✓ should create simple contract with one method from abi with explicit type name
✓ should create simple contract with one method from abi with implicit type name
✓ should create contract with multiple methods
✓ should create contract with overloaded methods
✓ should create contract with no methods
✓ should create contract with one event
✓ should create contract with nondefault constructor
web3.eth
defaultBlock
✓ should check if defaultBlock is set to proper value
web3.eth
estimateGas
✓ sync test: 0
✓ async test: 0
web3.eth
filter
✓ property test: 0
✓ property test: 1
✓ property test: 2
✓ property test: 3
web3.eth
gasPrice
✓ property test: 0
web3.eth
getBalance
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
✓ sync test: 3
✓ async test: 3
✓ sync test: 4
✓ async test: 4
✓ sync test: 5
✓ async test: 5
✓ sync test: 6
✓ async test: 6
✓ sync test: 7
✓ async test: 7
✓ sync test: 8
✓ async test: 8
✓ sync test: 9
✓ async test: 9
web3.eth
getBlock
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
web3.eth
getBlockTransactionCount
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
web3.eth
getBlockUncleCount
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
web3.eth
getCode
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
web3.eth
getCompilers
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
web3.eth
getStorageAt
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
✓ sync test: 3
✓ async test: 3
web3.eth
getTransaction
✓ sync test: 0
✓ async test: 0
web3.eth
getTransactionFromBlock
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
web3.eth
getTransactionReceipt
✓ sync test: 0
✓ async test: 0
web3.eth
getUncle
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
✓ sync test: 2
✓ async test: 2
web3.eth
getWork
✓ sync test: 0
✓ async test: 0
web3.eth
hashrate
✓ property test: 0
eth
isSyncing
✓ property test: 0
✓ property test: 1
web3.eth
methods
✓ should have method getBalance implemented
✓ should have method getStorageAt implemented
✓ should have method getTransactionCount implemented
✓ should have method getCode implemented
✓ should have method sendTransaction implemented
✓ should have method call implemented
✓ should have method getBlock implemented
✓ should have method getTransaction implemented
✓ should have method getUncle implemented
✓ should have method getCompilers implemented
✓ should have method lll implemented
✓ should have method solidity implemented
✓ should have method serpent implemented
✓ should have method getBlockTransactionCount implemented
✓ should have method getBlockUncleCount implemented
✓ should have method filter implemented
✓ should have method contract implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as coinbase] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property coinbase implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as mining] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property mining implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as gasPrice] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property gasPrice implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as accounts] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property accounts implemented
✓ should have property defaultBlock implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as blockNumber] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property blockNumber implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Eth.get [as protocolVersion] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property protocolVersion implemented
web3.eth
mining
✓ property test: 0
eth.protocolVersion
protocolVersion
✓ property test: 0
web3.eth.sendIBANTransaction
✓ should send transaction
web3.eth
submitWork
✓ sync test: 0
✓ async test: 0
web3
_extend
✓ test no: 0
✓ test no: 1
✓ test no: 2
web3
fromICAP
✓ shoud transform iban to address: 00c5496aee77c1ba1f0854206a26dda82a81d6d8
web3
methods
✓ should have method sha3 implemented
✓ should have method toAscii implemented
✓ should have method fromAscii implemented
✓ should have method toDecimal implemented
✓ should have method fromDecimal implemented
✓ should have method fromWei implemented
✓ should have method toWei implemented
✓ should have method toBigNumber implemented
✓ should have method isAddress implemented
✓ should have method setProvider implemented
✓ should have method reset implemented
✓ should have property providers implemented
✓ should have property eth implemented
✓ should have property db implemented
✓ should have property shh implemented
web3.net
listening
✓ property test: 0
web3.net
methods
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at get [as listening] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property listening implemented
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at get [as peerCount] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property peerCount implemented
web3.net
peerCount
✓ property test: 0
web3.personal
listAccounts
✓ property test: 0
web3.net
methods
Error: Provider not set or invalid
at Object.module.exports.InvalidProvider (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/errors.js:31:16)
at RequestManager.send (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/requestmanager.js:53:30)
at Personal.get [as listAccounts] (/Users/aakilfernandes/projects/safemarket/web3.js/lib/web3/property.js:107:62)
at Context.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/test/helpers/test.utils.js:18:51)
at callFn (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:343:21)
at Test.Runnable.run (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runnable.js:335:7)
at Runner.runTest (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:444:10)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:550:12
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:361:14)
at /Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:371:7
at next (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:295:14)
at Immediate.<anonymous> (/Users/aakilfernandes/projects/safemarket/web3.js/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:566:20)
at tryOnImmediate (timers.js:546:5)
at processImmediate [as _immediateCallback] (timers.js:525:5)
✓ should have property listAccounts implemented
✓ should have method newAccount implemented
✓ should have method unlockAccount implemented
web3.personal
newAccount
✓ sync test: 0
✓ async test: 0
web3.personal
unlockAccount
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
web3.sha3
✓ should return sha3 with hex prefix
shh
filter
✓ property test: 0
✓ property test: 1
✓ property test: 2
✓ property test: 3
web3.shh
hasIdentity
✓ sync test: 0
✓ async test: 0
web3.shh
methods
✓ should have method post implemented
✓ should have method newIdentity implemented
✓ should have method hasIdentity implemented
✓ should have method newGroup implemented
✓ should have method addToGroup implemented
✓ should have method filter implemented
web3.shh
post
✓ sync test: 0
✓ async test: 0
✓ sync test: 1
✓ async test: 1
633 passing (1s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment