Commit Graph

226 Commits

Author SHA1 Message Date
Roman Storm
df395187bf
Merge pull request #22 from peppersec/cli-refactor
Cli refactor, relay support
2019-11-11 11:46:14 -08:00
Roman Storm
dec0f4487c
Merge pull request #21 from peppersec/remove-toggleDeposits
remove toggleDeposits
2019-11-11 11:46:05 -08:00
Roman Storm
a48858fd34
Merge pull request #20 from peppersec/audit-4
ether sending
2019-11-11 11:45:56 -08:00
Alexey
83c9ba7296 nonReentrant guards 2019-11-11 19:12:17 +03:00
poma
d01018db9f support relay in CLI, refactor 2019-11-10 03:48:09 +03:00
poma
1a17e7eea3 make sure pathIndex is always a number (fixes bug with string concat instead of integer addition) 2019-11-10 03:46:27 +03:00
poma
183847ad67 remove toggleDeposits 2019-11-09 02:48:35 +03:00
Alexey
e6cce0c7ce ether sending 2019-11-08 14:41:39 +03:00
Roman Semenov
bc8d0b20fc
Merge pull request #19 from peppersec/audit-3
Audit fixes (batch 3)
2019-11-08 13:30:25 +03:00
poma
313713a061 fix tests 2019-11-08 07:39:22 +03:00
poma
a94281ccc5 update dependencies 2019-11-08 04:11:29 +03:00
poma
c4dded8a20 receiver -> recipient 2019-11-08 02:58:24 +03:00
poma
4d6dca78b2 make withdraw function external 2019-11-08 02:58:22 +03:00
poma
61864ceda1 reorder vars 2019-11-08 02:58:12 +03:00
poma
ac8fc08cc2 use bytes32 for hashes 2019-11-08 02:57:39 +03:00
poma
74913e67b2 typed withdraw inputs 2019-11-08 02:55:08 +03:00
poma
e9c2055bb4 changed merkleTree vars to uint32 where appropriate 2019-11-08 02:53:37 +03:00
poma
f783b45559 refactor isKnownRoot, add test 2019-11-08 02:52:54 +03:00
poma
e710b243d7 change error text 2019-11-08 02:46:33 +03:00
poma
35f4b031f4 rinkeby deployment 2019-11-08 02:46:28 +03:00
poma
3169d79ee0 add traceTransaction 2019-11-08 02:46:26 +03:00
Roman Semenov
b000e66899
Merge pull request #15 from peppersec/audit-circuit
Circuit audit fixes
2019-11-06 12:31:23 +03:00
Roman Semenov
fce4b1854c
Merge pull request #18 from peppersec/audit-2
Code style fixes for audit (batch 2)
2019-11-06 01:09:46 +03:00
Roman Semenov
a0a4050211
Merge pull request #17 from peppersec/audit-1
Code style fixes for audit (batch 1)
2019-11-06 01:09:22 +03:00
Alexey
d5b16547f7 tidy 2019-11-05 12:22:25 +03:00
poma
1fd0c7fdea change zero to local variable 2019-11-04 22:46:19 +03:00
poma
27e3121bb0 comments 2019-11-04 22:45:56 +03:00
poma
ae889b5ad2 use abi.decode in token transfer 2019-11-04 22:44:19 +03:00
poma
f8cd3fea1e refactor loop 2019-11-03 11:41:05 +03:00
poma
c00e553299 check return data length for tokens 2019-11-03 11:25:58 +03:00
poma
8a179b9217 added comment on checks 2019-11-02 16:26:13 +03:00
poma
2ded1f8adb refactor merkle tree naming 2019-11-02 16:04:41 +03:00
poma
e413ccdc29 make underscores consistent - in func args and in internal func names 2019-11-02 15:48:22 +03:00
poma
1fdabcc97c changed emptyElement to constant 2019-11-02 15:35:22 +03:00
poma
27a00bfd5f rename withdraw event 2019-11-02 14:50:37 +03:00
poma
c92ac97ff2 make field_size constant, return extra addmod, refactor return 2019-11-02 14:30:00 +03:00
poma
91adb03131 add solidity version to IUSDT 2019-11-02 14:29:55 +03:00
poma
c47408ebd7 cache current_zero value to prevent excessive SLOADs 2019-11-02 14:29:43 +03:00
poma
6095106549 rename current root index 2019-11-02 13:11:15 +03:00
poma
6571f54768 make _roots public 2019-11-02 13:11:03 +03:00
poma
1364762b93 make _roots constant sized array 2019-11-02 13:10:57 +03:00
poma
2bb751bfd1 change ROOT_HISTORY_SIZE type 2019-11-02 13:10:48 +03:00
poma
48cc57fad7 change arg name 2019-11-02 13:09:10 +03:00
poma
35500ac5bb change arg name 2019-11-02 13:09:02 +03:00
poma
8e8243823a make inheritable functions abstract 2019-11-02 13:08:41 +03:00
poma
111c966c1e add assert on denomination 2019-11-02 13:07:07 +03:00
poma
02e76a1ce6 pass verifier address as IVerifier 2019-11-02 13:06:10 +03:00
poma
d019e48da3 inverted flags to reduce deploy cost, explicitly set state in toggleDeposits 2019-11-02 13:05:33 +03:00
poma
54e2c5f890 return inserted index from merkle tree 2019-11-02 11:40:46 +03:00
poma
b8d22464e3 process deposit after changing state to prevent reentrancy 2019-11-02 11:40:27 +03:00