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

Feature/rate limiter #147

Open
wants to merge 149 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 141 commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
864263a
add rate limiter
trajan0x Apr 4, 2022
5020bf3
semi-integrate rate limiter
trajan0x Apr 4, 2022
67d74c9
in-line selector
trajan0x Apr 4, 2022
0267c09
update rate limiter
trajan0x Apr 5, 2022
c6f9660
lint
trajan0x Apr 5, 2022
6ff2306
add initial test set
trajan0x Apr 5, 2022
9e3a722
debug
trajan0x Apr 5, 2022
74a46b5
Revert "debug"
trajan0x Apr 5, 2022
cd8cde1
fix tests
trajan0x Apr 5, 2022
cdb9b5a
rate limiter
trajan0x Apr 5, 2022
bc98e09
enumerable retries
trajan0x Apr 8, 2022
795790d
re-add docs
trajan0x Apr 8, 2022
d1efa29
add forks
trajan0x Apr 10, 2022
fdf5ff9
alchemy
trajan0x Apr 10, 2022
7f7456c
mint update
trajan0x Apr 10, 2022
38121f8
mint and swap
trajan0x Apr 10, 2022
d0e76b4
struct refactor
trajan0x Apr 11, 2022
de8be3d
add timestamps to rate limiter map
trajan0x Apr 11, 2022
380ae0a
revert tests
trajan0x Apr 11, 2022
91c7bdc
move to internal rate limiter for deploy
trajan0x Apr 11, 2022
74e7fee
lint
trajan0x Apr 11, 2022
b13fce7
more verbose revert messages
trajan0x Apr 11, 2022
b98d42a
revert
trajan0x Apr 11, 2022
91b631a
storage slot clash fix
trajan0x Apr 11, 2022
ece4bab
linter
trajan0x Apr 11, 2022
e6b0e4c
upterm
trajan0x Apr 11, 2022
0bbf1dc
tmate
trajan0x Apr 11, 2022
e5a3af4
skip upterm
trajan0x Apr 11, 2022
9d78100
update mocha to fix mochajs/mocha#3090 (see: 1808c5b04d523b1eadaa6fdf…
trajan0x Apr 11, 2022
f3890b0
ignore oz config
trajan0x Apr 11, 2022
184d767
Update SynapseBridgeETH.ts
trajan0x Apr 11, 2022
b1228b7
allowance correction
trajan0x Apr 12, 2022
7d9f7a9
error
trajan0x Apr 12, 2022
ea2f2ef
Revert "error"
trajan0x Apr 12, 2022
b46482f
get revert reason
trajan0x Apr 12, 2022
ff1bfd8
upgradeable
trajan0x Apr 12, 2022
f1dda43
rate limit
trajan0x Apr 12, 2022
f66f596
upgrade test
trajan0x Apr 12, 2022
4aad5bc
no more amount checks in swap/remove
ChiTimesChi Apr 12, 2022
c5e0afc
fix gas airdrop
ChiTimesChi Apr 12, 2022
3b739e0
amount.sub(fee) cleanup
ChiTimesChi Apr 12, 2022
acb00c0
clean up WGAS unwrapping
ChiTimesChi Apr 12, 2022
4207b4d
do not store selectors
ChiTimesChi Apr 12, 2022
a4076ee
Queue for storing rate limited kappas
ChiTimesChi Apr 13, 2022
9747599
fix rate limiter tests
ChiTimesChi Apr 17, 2022
a3b895e
return correct isRateLimited
ChiTimesChi Apr 17, 2022
ad21ec0
should be able to spend exact allowance
ChiTimesChi Apr 17, 2022
8552d91
retryCount tests
ChiTimesChi Apr 17, 2022
98e5b4f
upd RateLimiter test: newSpent == allowance
ChiTimesChi Apr 17, 2022
cf32c0f
this actually underflowed
ChiTimesChi Apr 17, 2022
725e01e
Use Queue for storing rate limited kappas
ChiTimesChi Apr 17, 2022
ce2ce55
no need to check for overflow in 0.8+
ChiTimesChi Apr 17, 2022
4b3a83f
add permissionless retry timeout
ChiTimesChi Apr 17, 2022
5eac976
store failed txs separately
ChiTimesChi Apr 17, 2022
248120e
retryByKappa can now retry a failed tx
ChiTimesChi Apr 18, 2022
06b95c8
rate-limiter
trajan0x Apr 22, 2022
bf4fdee
add test
trajan0x Apr 22, 2022
2afb966
forge install: forge-std
ChiTimesChi Apr 20, 2022
4a74723
forge install: ds-test
ChiTimesChi Apr 20, 2022
033913f
foundry setup
ChiTimesChi Apr 20, 2022
7daa4b3
implementation without FIFO + tests
ChiTimesChi Apr 23, 2022
8607f5f
merge optimism-usdc
ChiTimesChi Apr 23, 2022
0137b78
frax wrapper
ChiTimesChi Apr 23, 2022
d52909b
lint L2BridgeZap
ChiTimesChi Apr 23, 2022
9eb4f8b
Allow L2BridgeZap to have any amount of pools
ChiTimesChi Apr 23, 2022
83a737b
deploy script for FraxWrapper, new L2Zaps
ChiTimesChi Apr 23, 2022
5a93388
Frax wrapper tests
ChiTimesChi Apr 23, 2022
3c2818e
test cleanup
ChiTimesChi Apr 23, 2022
42002bb
Merge branch 'master' into feature/rate-limiter
trajan0x Apr 23, 2022
1cc8828
foundry tests
trajan0x Apr 23, 2022
fa54f23
Merge branch 'feature/rate-limiter' into feature/queue-for-kappas
trajan0x Apr 23, 2022
7653708
workflow fix
trajan0x Apr 23, 2022
7e1912f
Merge branch 'feature/queue-for-kappas' of https://github.com/synapse…
trajan0x Apr 23, 2022
11ddf7d
relint
trajan0x Apr 23, 2022
608d7fc
fix test
trajan0x Apr 23, 2022
fe36e19
run foundry tests
trajan0x Apr 23, 2022
5fe1d50
skip foundry tests in coverage
trajan0x Apr 23, 2022
7977196
Revert "skip foundry tests in coverage"
trajan0x Apr 23, 2022
ffc6244
Merge pull request #123 from synapsecns/trajan/merge
trajan0x Apr 23, 2022
beb525f
Merge pull request #120 from synapsecns/feature/queue-for-kappas
trajan0x Apr 24, 2022
e55e66d
deprecate EnumerableMapUpgradeable
trajan0x Apr 24, 2022
54095f4
kill exraneous docs
trajan0x Apr 24, 2022
e1cb773
group foundry tests by forked chain
ChiTimesChi Apr 25, 2022
218499c
stricter filtering + comments
ChiTimesChi Apr 25, 2022
e19d7e4
deprecate EnumerableMapUpgradeable test
ChiTimesChi Apr 25, 2022
60fe2e7
Merge branch 'feature/rate-limiter' into feature/foundry-forking-tests
trajan0x Apr 25, 2022
2bdfeb2
option to narrow testing
ChiTimesChi Apr 25, 2022
ff06677
Merge branch 'feature/foundry-forking-tests' of https://github.com/sy…
ChiTimesChi Apr 25, 2022
c52f3bb
Merge pull request #124 from synapsecns/feature/foundry-forking-tests
trajan0x Apr 25, 2022
208ab5b
add api key
trajan0x Apr 25, 2022
6956677
better remappings
ChiTimesChi Apr 25, 2022
f8887fc
RateLimiter unit test
ChiTimesChi Apr 25, 2022
af001e4
initialize Bridge + RateLimiter tests
ChiTimesChi Apr 25, 2022
cc6e214
a bit of documentation for base contract test
ChiTimesChi Apr 26, 2022
c98abaa
remove logging, add queue length getter
ChiTimesChi Apr 26, 2022
2fa1d2c
revert messages for unauthorized retrying
ChiTimesChi Apr 26, 2022
cd428f7
print traces for failed tests only
ChiTimesChi Apr 26, 2022
6ea7d50
retry, accessControl tests for RateLimiter+Bridge
ChiTimesChi Apr 26, 2022
01c24a8
deprecate Strings in favor of OZ implementation
ChiTimesChi Apr 26, 2022
64e3226
fix broken test (dont use testFail* naming)
ChiTimesChi Apr 26, 2022
70df4f9
test for retrying already failed tx
ChiTimesChi Apr 26, 2022
21ced7a
smol gas optimisations
ChiTimesChi Apr 26, 2022
feffed2
payable needs to be pay-able
ChiTimesChi Apr 26, 2022
9f8c94b
4.3.1 -> 4.5.0 OZ upgrade
ChiTimesChi Apr 26, 2022
5eb8e5f
remove extra casting
ChiTimesChi Apr 26, 2022
3cde723
deprecate KappaMapUpgradeable
ChiTimesChi Apr 26, 2022
6c0e6d1
Merge pull request #126 from synapsecns/feature/rate-limiter-tests
ChiTimesChi Apr 26, 2022
6c51793
remove unused bridge1.ts
aureliusbtc Apr 26, 2022
f496150
cleanup
trajan0x Apr 27, 2022
a95ad04
public -> external
ChiTimesChi Apr 27, 2022
25107c9
shorten initial retryTimeout
ChiTimesChi Apr 27, 2022
35de026
reorder functions for better readability
ChiTimesChi Apr 27, 2022
e58cf5f
effects before interactions
ChiTimesChi Apr 27, 2022
5830a00
underscore for internal functions
ChiTimesChi Apr 27, 2022
6ce9f40
reorder functions for slightly better readability
ChiTimesChi Apr 27, 2022
4d42886
if-else pattern
ChiTimesChi Apr 27, 2022
3f29e01
check full Bridge state post-upgrade
ChiTimesChi Apr 27, 2022
67e30a5
L2BridgeZap fix/optimize token approvals
ChiTimesChi Apr 27, 2022
ec07511
nuke harmony/movr specific contracts
ChiTimesChi Apr 27, 2022
8a98695
fix: redeemv2 -> redeemV2
ChiTimesChi Apr 27, 2022
95acba1
tests for L2Zaps (Optimism test is turned off tho)
ChiTimesChi Apr 27, 2022
e649de6
add arbitrum to foundry workflow
ChiTimesChi Apr 27, 2022
dbe4291
spell checkoooor
ChiTimesChi Apr 27, 2022
bce5ac9
Merge pull request #128 from synapsecns/feature/rate-limiter-final-blow
aureliusbtc Apr 28, 2022
ec57d24
removed unnecessary fuzzing where its not needed
ChiTimesChi Apr 28, 2022
e76174e
optimism fixoooor
ChiTimesChi Apr 28, 2022
20dc5c0
limit amount of fuzz runs in CI
ChiTimesChi Apr 28, 2022
a40486a
remove duplicate deploy on DFK
ChiTimesChi Apr 28, 2022
ec2e920
add poll front
trajan0x Apr 29, 2022
ddb52e8
add rate limiter
trajan0x Apr 29, 2022
9f5ac26
exit on failure
trajan0x Apr 29, 2022
8716d10
use public optimism api for now
trajan0x Apr 29, 2022
29d3959
alchemy fixes
trajan0x Apr 29, 2022
be3eca2
add arbitrum coverage
trajan0x Apr 29, 2022
bcabdfc
disable alchemy
trajan0x Apr 29, 2022
b696900
Revert "disable alchemy"
trajan0x Apr 30, 2022
d36b5f3
update docs
trajan0x May 11, 2022
020b67f
RateLimiter: new view functions + their test coverage (#145)
ChiTimesChi May 18, 2022
535f5ee
merge
trajan0x May 18, 2022
432212b
workflow fix
trajan0x May 18, 2022
b631261
make optimizer run count match hardhat run count
trajan0x May 18, 2022
d17d955
Update .gitignore
trajan0x May 18, 2022
8aa216b
tesT
trajan0x May 19, 2022
43a8df6
4.3.1. upgradeab;e
trajan0x May 19, 2022
c4df2c2
RateLimiter prep for deployment (#150)
ChiTimesChi May 19, 2022
15cd352
add test
trajan0x May 19, 2022
7ba4760
fix tests
trajan0x May 19, 2022
52896a7
bulk set allowances
trajan0x May 20, 2022
4777854
add multi-kappa retry
trajan0x May 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on: ["push", "pull_request"]
jobs:
test:
runs-on: ubuntu-latest
env:
AVAX_API: https://api.avax.network/ext/bc/C/rpc
ALCHEMY_API: ${{ secrets.ALCHEMY_API }}

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ tenderly.yaml
.env
doc/
.openzeppelin
report.*.json
<<<<<<< HEAD
trajan0x marked this conversation as resolved.
Show resolved Hide resolved

report.*.json
Loading