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

rename: uniswapx #240

Merged
merged 1 commit into from
Jul 7, 2023
Merged

rename: uniswapx #240

merged 1 commit into from
Jul 7, 2023

Conversation

marktoda
Copy link
Contributor

@marktoda marktoda commented Jul 7, 2023

No description provided.

@marktoda marktoda merged commit 4f3068e into main Jul 7, 2023
2 checks passed
@marktoda marktoda deleted the uniswapx branch July 7, 2023 19:54
willpote pushed a commit that referenced this pull request Jul 13, 2023
willpote pushed a commit that referenced this pull request Jul 13, 2023
zhongeric added a commit that referenced this pull request Jul 13, 2023
* feat: add flow webhook (#133)

We need to send their headers soon but for now this is ok

* chore: add PostedOrder arn secrets (#134)

add PostedOrder arn secrets

Co-authored-by: marktoda <toda.mark@gmail.com>

* Add flow auth headers (#135)

* feat: add Flow auth headers to order notification

* feat: add chainId to order notifications. (#136)

* chore: add timestamp related logs (#137)

add timestamp related logs

* feat: bump gouda SDK version. (#138)

* fix: check order fills in OrderValidation.Expired (#139)

fix status check logic

* fix: log order quoter  (#140)

* remove tenderly stuff

* log parsed

* chore: bump gouda-sdk version (#141)

* remove tenderly stuff

* log parsed

* upgrade gouda-sdk

* fix: ip based rate limit comment (#142)

* Bump rate limit (#143)

* fix: ip based rate limit comment

* chore: bump ip based rate limit to 10 req/sec

* fix: order notification joi validation errors. (#144)

* chore: log gas related stuff (#145)

* log gas related stuff

* add gasCostInETH

* feat: add ergonia webhook (#151)

* Add filler field to webhook (#152)

* feat: add ergonia webhook

* feat: add filler field to webhook.

* feat: update sdk (#153)

* feat: update sdk

* fix: merge

* feat: add polygon (#154)

* feat: add polygon

* Fix code style issues with Prettier

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>

* feat: update gouda sdk to 0.9.2 (#155)

* update gouda sdk (#157)

* feat: update gouda sdk to 0.9.2

* fix: gouda-sdk 0.9.3

* update gouda sdk (#158)

* feat: update gouda sdk to 0.9.2

* fix: gouda-sdk 0.9.3

* feat: update gouda-sdk 0.9.4

* add dumb logs (#159)

* feat: update gouda sdk to 0.9.2

* fix: gouda-sdk 0.9.3

* feat: update gouda-sdk 0.9.4

* feat: add debugging logs

* Fix code style issues with Prettier

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>

* feat: update rpc secret (#160)

for some reason was not updating -.-

* Revert "add dumb logs (#159)" (#161)

This reverts commit 8683f4b.

* feat: add chain id index 1 (#163)

* feat: use internal exclusive filler (#167)

* feat: use internal exclusive filler

Instead of external validation filler

* Fix code style issues with Prettier

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>

* Add chain id 2 (#164)

* feat: add chain id index 1

* feat: add chain id 2

* remove_chain_id_index (#168)

* Re add chain id index (#169)

* remove_chain_id_index

* fix: re-add chainId index.

* Add chain id 3 (#165)

* feat: add chain id index 1

* feat: add chain id 2

* feat: add chain id 3

* Add chain id 4 (#166)

* feat: add chain id index 1

* feat: add chain id 2

* feat: add chain id 3

* feat: add chain id 4

* Add chain id query logic (#170)

* feat: add chain id query logic and desc param

* fix: remove flask order notifications. (#173)

* feat: only send notifications once (#172)

* feat: only send notifications once

Latency is key here so long retries dont make much sense. Also avoids
issues where consistently-failing endpoints clog up the notifications

* Fix code style issues with Prettier

* fix: add headers back

* fix: tests

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>

* feat: add joi validation schema to prevent queries with offerer and chainId (#171)

* feat: add joi validation schema to prevent queries with offerer and chainId.

* chore: use orderHash as Sfn execution name (#175)

* use quoteId as sfn execution name

* use orderHash as sfn execution name

* fix: swagger as json (#174)

* add swagger as json

* test swagger validation

* test broken swagger

* swagger test pass

* rename action for semantics

* add contributing file

* add desc param

* add directions to contributing

* spelling miastake in contr

* test docs pushing with sercret

* roll back schema push action

* test with new app id

* new id back to main

* new actions for lint and test

* update CI flow to use corret command

* fix: add back swagger UI endpoints (#176)

* add endpoint

* update rule name

* remove pg dep

* prettier fix

* fix: remove ProvCon metric dup id (#177)

remove dup metric id

* fix: remove docs cdk (#178)

comment docs cdk

* revert: "fix: remove docs cdk (#178)" (#179)

Revert "fix: remove docs cdk (#178)"

This reverts commit 2f0807d.

* feat: add chain id to redshift logs. (#156)

* feat: move on-chain order validation to post-order (#180)

* fix tests

* add invalid on-chain validation test

* fix ContainerInjected and return 500 when no on-chain validator is injected for supported chains

* throw if rpc_<chainId> does not exist

* chore: upgrade dependencies (#182)

upgrade dependencies

* fix: use --detectOpenHandles for integ-test (#183)

use --detectOpenHandles for integ-test

* fix: remove throw (#184)

remove throw

* fix(step-function): always retry on TaskFailed (#185)

always retry on TaskFailed

* feat: add mm execute webhook (#188)

* feat: remove delete-order endpoint (#186)

* remove delete-order endpoint

* bump axios timeout for integration test

* feat: add chainId, input, outputs to the posted orders table log. (#193)

* fix: remove swagger deploy #192

remove action

* feat: swagger to point to internal base URL (#194)

swagger to point to internal endpoint

* Add alarms order status sfn (#190)

* Retry on all state failures + lambda service ones

* Add catch -> failed state to sfn def

* Add FailedStateDestinationArn

* Add alarm creation to stack

* Change level to ERROR

* Remove unused arn

* feat: added comments to Order entity. (#191)

* feat: added comments to Order entity.

* Update swagger to match OrderEntity definition

* fix: remove dup `prod` from swagger (#198)

remove from swagger

* fix: remove dup `prod` from swagger (#198)

remove from swagger

* fix: remove dup `prod` from swagger (#198)

remove from swagger

* chore: remove order_status.unverified in post-order handler (#195)

* remove order_status.unverified

* remove all references to unverified

* fix: Change ExecutionsFailure metric alarm to sample count (#200)

Change ExecutionsFailure metric alarm to sample count

* Add constants for max open orders and allowlist canary (#197)

* Add constants for max open orders and allowlist canary

* Bump max orders to 200 and remove special case

* update test

* feat: lower max deadline to 30 mins (#202)

Avoid spamming with orders that last a very long time

* Change number of blocks to lookback on NonceReuse depending on chainId (#203)

* Increase the lookback block num for COS on NonceReuse

* fix prettier

* add s3 webhook (#204)

* feat: add s3 webhook configuration

this provider pulls webhook configurations from s3 rather than static
json

* feat: tests

* fix: remove old static config

* fix: lint

* fix: Add FILL_EVENT_LOOKBACK_BLOCKS_ON logic to expiry case for COS (#205)

Add FILL_EVENT_LOOKBACK_BLOCKS_ON logic to expiry case for COS

* Add integration tests (#149)

* Before adding hardhat, mocha, and headaches

* Add skipLibCheck = true in tsconfig

* Get order status running on fork rpc, and basic integ test setup

* remove hardhat related imports and update test

* Remove hardhat config

* Fix code style issues with Prettier

* bump gouda-sdk

* save state

* Fix code style issues with Prettier

* bump jest timeout

* Working integ tests

* Fix code style issues with Prettier

* Add other tests

* Fix code style issues with Prettier

* create random wallet and override storage

* Fix code style issues with Prettier

* Remove TENDERLY from supported chains

* Fix code style issues with Prettier

* Add one more test

* unskip nonce test

* Update readme

* Remove comments

* Fix code style issues with Prettier

* fix unit test

* Fix code style issues with Prettier

* Add advanced order query system and fix expiry

* Fix code style issues with Prettier

* riley comments

* Fix code style issues with Prettier

* minor tweaks

* Add tenderly fork creation + deletion

* Remove fork creation

* Add logging

* Add logic to use rpc tenderlyx

* Do not dump entire abi of quoter into logs

* Pass stage into post order handler

* Do not log entire orderChainVerifier abis

* Add typing for stage conditional logic

* save state

* Pass all integ tests

* remove comments + fix:prettier

* fix readme, and other small things

* remove conditional logic for RPC_TENDERLY, and add back sentinal value

* Change chainId to TENDERLY in integ tests

* Bump gouda-sdk to 0.9.6

* Save state, refactored for 0.9.6 but will rollback

* bump gouda-sdk to 1.0.0-alpha.1

* save state

* bump gouda-sdk to latest version

* remove goerli support

* Remove depreacted delete func

* pass integ tests?

* fix failing unit tests from gouda sdk renaming

* fix readme

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: ConjunctiveNormalForm <zhiyuan.zach.yang@gmail.com>

* feat: change max orders to 5 (#207)

This commit lowers max open orders to 5, special casing certain
addresses to allow up to 200

* fix: bump block lookback time for COS to 10 and 100 for mainnet, polygon (#208)

bump to 10 and 100 for mainnet, polygon, respsectovely

* feat: remove sliding block window for fill event in check order status (#209)

* Remove lastBlock reassignment and replace with startingBlock

* replace other uses of lastBlockNumber

* Fix COS handler tests

* fix prettier

* fix: add tenderly rpc to integ test env (#211)

add tenderly rpc to integ test env

* fix: disable flaky tests (#212)

disable flaky tests

* fix: comment out unused function (#213)

* comment out unused function

* xdescribe

* feat: support batch query order hash and remove scans (#210)

* feat: support batch query order hash and remove scans

* Add DutchLimit type to joi reponse validation. (#214)

* feat: add fills to integration tests to test filled, cancelled status (#206)

* Before adding hardhat, mocha, and headaches

* Add skipLibCheck = true in tsconfig

* Get order status running on fork rpc, and basic integ test setup

* remove hardhat related imports and update test

* Remove hardhat config

* Fix code style issues with Prettier

* bump gouda-sdk

* save state

* Fix code style issues with Prettier

* bump jest timeout

* Working integ tests

* Fix code style issues with Prettier

* Add other tests

* Fix code style issues with Prettier

* create random wallet and override storage

* Fix code style issues with Prettier

* Remove TENDERLY from supported chains

* Fix code style issues with Prettier

* Add one more test

* unskip nonce test

* Update readme

* Remove comments

* Fix code style issues with Prettier

* fix unit test

* Fix code style issues with Prettier

* Add advanced order query system and fix expiry

* Fix code style issues with Prettier

* riley comments

* Fix code style issues with Prettier

* minor tweaks

* Add tenderly fork creation + deletion

* Remove fork creation

* Add logging

* Add logic to use rpc tenderlyx

* Do not dump entire abi of quoter into logs

* Pass stage into post order handler

* Do not log entire orderChainVerifier abis

* Add typing for stage conditional logic

* save state

* Pass all integ tests

* remove comments + fix:prettier

* fix readme, and other small things

* remove conditional logic for RPC_TENDERLY, and add back sentinal value

* Change chainId to TENDERLY in integ tests

* Bump gouda-sdk to 0.9.6

* Save state, refactored for 0.9.6 but will rollback

* bump gouda-sdk to 1.0.0-alpha.1

* save state

* bump gouda-sdk to latest version

* remove goerli support

* Remove depreacted delete func

* pass integ tests?

* fix failing unit tests from gouda sdk renaming

* fix readme

* Add basic fillOrder helper

* oops add permit2 approve and pass fill contract test

* Add fill test for erc20 - eth

* add test for cancelled status for nonce reuse

* clean up tests

* save state

* save state

* Remove lastBlock reassignment and replace with startingBlock

* replace other uses of lastBlockNumber

* Fix COS handler tests

* fix prettier

* add block checkpoint expect

* Add block advance logic to deal with lookback and provider errors

* Passes all tests, using block advance at beginning

* fix comments

* Fix flaky expiry test

---------

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: ConjunctiveNormalForm <zhiyuan.zach.yang@gmail.com>

* feat: add sanity check integ tests for GET endpoint. (#216)

* fix: integ tests (#218)

* feat: track nonce by chain (#219)

* update repo interface

* track nonce separately by chain

* add unit tests

* fix: integ tests (#221)

fix integ tests

* fix: cleanup error codes (#222)

* fix: cleanup error codes

* feat: add enum for error codes

* fix: retry once after expired or cancelled with no fill logs (#220)

* Add getFillLogAttempts to COS injector for single retry case

* Bump test timeout to 180 sec, and set default wait to 30 sec

* Clean up logs, and add more wait time to integ tests to accomodate

* Reduce sfn time to 2 sec on polygon

* Remove todo

* unskip test

* make polygon block time 12

* chore: correct comments (#223)

* correct comments

* typo

* fix: strip unknowns in joi validations (#224)

strip unknowns in joi validations

* fix: add retries to integ tests (#225)

add retries to integ tests

* fix: Add new fs accounts to high max order list (#226)

Add new fs accounts to high max order list

* fix: disable integ tests (#227)

disable integ tests

* Dashboards, metrics, and alarms (#228)

* Dashboards, metrics, alarms

* Fix lint

* Fix tests

* Coverage

* Remove jest mock dependency (#230)

Fix deps

* Increase memory for build

* feat: update gouda sdk to v1.0.0-alpha.4 (#229)

* feat: update gouda sdk to v1.0.0-alpha.4

This is the latest and final version of the contracts

* fix: keep offerer internally to avoid db migr

* fix: find/replace mistakes

* fix: build (#232)

This commit fixes type errors in integ tests from the latest gouda sdk

* fix: change external param to swapper (#234)

* Move swapper into rawGetOrderParams and put offerer in GetOrderParams

* add comment and fix swagger

* pass tests

* prettier#

* feat: offerer -> swapper in integ tests (#235)

* Feat move integ tests to goerli (#233)

* Refactor to run on goerli

* Add token addreses for goerli

* Pass rpc into integ test via env

* Add fetching from secrets manager for pks

* lower min balances

* Re enable goerli for joi

* Add back in old logs

* save

* bump gouda sdk for new quoter and reactor addresses

* Add addresses to high max and fix integ

* increment nonce in build order

* fix nonce reuse fails

* skip last test for now

* fix prettier

* fix: names for secrets for integ tests (#236)

fix uncommited values

* fix: fix secrets value? (#237)

* fix secrets value?

* fix# Changes to be committed:

* fix: fix secrets value (#238)

fix value

* fix: flaky integ tests  (#239)

* fix value

* wait 2 blocks

* retries to 2

* rename: uniswapx (#240)

* feat: add license (#241)

* Enable ddb backups and delete protection (#231)

Enable ddb backups

* fix: clean up readme (#242)

clean up

* fix(audit): Remove tenderly from supported chain ids (#244)

Remove tenderly from supported chain ids

* fix: don't throw 500 on old orders with chainId 12341234 (#245)

* Add migrations for get orders response schema

* add unit test

* Handle 4xx errors correctly (#246)

* Handle 4xx errors correctly

* lint

* feat: validate reactor address based on sdk (#247)

* Add reactor address validation to OrderValidator

* Use orderType for dutch

* Replace placeholder reactor addresses with sdk

* fix: swagger json (#243)

remove old url

* update arn

---------

Co-authored-by: marktoda <toda.mark@gmail.com>
Co-authored-by: Zach Yang <zhiyuan.zach.yang@gmail.com>
Co-authored-by: Riley Campbell <rileydcampbell@berkeley.edu>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
Co-authored-by: Danny Daniil <danny.daniil@uniswap.org>
Co-authored-by: pote.eth <81638931+willpote@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants