Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

feat: add meta-transaction rate limiting#239

Closed
opaolini wants to merge 22 commits intomasterfrom
feat/add-meta-txn-limiting
Closed

feat: add meta-transaction rate limiting#239
opaolini wants to merge 22 commits intomasterfrom
feat/add-meta-txn-limiting

Conversation

@opaolini
Copy link
Copy Markdown
Contributor

@opaolini opaolini commented May 21, 2020

Description

Testing Instructions

Checklist

  • Update documentation as needed. Website Documentation PR:
  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.

@opaolini opaolini requested a review from dekz May 21, 2020 00:12
@opaolini opaolini force-pushed the feat/add-meta-txn-limiting branch from 7dbea21 to 7b6b457 Compare May 25, 2020 21:28
signature,
protocolFee,
);
res.status(HttpStatus.TOO_MANY_REQUESTS).send({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: we should document that the caller can submit this themselves when rate limited. Janky experience but works better with rfqt then another fresh quote? Or maybe just quote in normal flow. Not sure

@opaolini opaolini changed the title [WIP] add meta-transaction rate limiting feat: add meta-transaction rate limiting Jun 2, 2020
@opaolini opaolini marked this pull request as ready for review June 2, 2020 22:15
Copy link
Copy Markdown
Member

@dekz dekz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookin good to me, few changes but after that I think we're ready to roll.

public expectedMinedInSec?: number;

@Column({ name: 'gas_price', type: 'varchar', nullable: true, transformer: BigNumberTransformer })
@Column({ name: 'gas_price', type: 'bigint', nullable: true, transformer: BigNumberTransformer })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to migrate these prior to deploy I imagine?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the autosync should handle the fields, I've tried to autogenerate the migration files using typeorm CLI but failed.. might take another look.

But if anything we can test if auto-sync will work before deploying to production, and just create an "init" migration for now.

@@ -0,0 +1,33 @@
import { assert } from '@0x/assert';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/utils/rate_limiters/base_db_limiter.ts

@dekz dekz self-requested a review June 4, 2020 00:55
@opaolini
Copy link
Copy Markdown
Contributor Author

opaolini commented Jun 9, 2020

deploy staging

@dekz
Copy link
Copy Markdown
Member

dekz commented Jun 25, 2020

merged #270

@dekz dekz closed this Jun 25, 2020
@dekz dekz mentioned this pull request Jun 25, 2020
3 tasks
@xianny xianny deleted the feat/add-meta-txn-limiting branch March 30, 2021 22:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants