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

0xGasless Plugin #196

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

0xGasless Plugin #196

wants to merge 7 commits into from

Conversation

samholmes
Copy link
Collaborator

@samholmes samholmes commented Jan 7, 2025

  • Add comments to config definition
  • Upgrade cleaners@^0.3.17
  • Add 0xGasless plugin

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

samholmes and others added 4 commits January 6, 2025 14:50
This upgrade gives us more information about the raw value's type when
a cleaner fails. Very useful.
| 'cancelled'
| 'payment_error'
| 'rejected'
const statusMap: { [key in PartnerStatuses]: Status } = {
Copy link
Member

Choose a reason for hiding this comment

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

unused

datelog(`Snoozing ${60 * retry}s`)
await snooze(60000 * retry)
} else {
// We can't safely save our progress since we go from newest to oldest.
Copy link
Member

Choose a reason for hiding this comment

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

technically not true since you use a date range this is earlier and work your way up to present. One small fix that would be needed (and also in the paybis plugin) is to only set latestIsoDate if you have fully finished

Copy link
Member

Choose a reason for hiding this comment

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

See my untested fixup commit


const ssTx: StandardTx = {
status,
orderId: trade.zid,
Copy link
Member

Choose a reason for hiding this comment

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

This MUST match the orderId used by the 0x exchange plugin. I don't think it does.


const {
isoDate: tradeIsoDate,
timestamp: tradeTimestamp
Copy link
Member

Choose a reason for hiding this comment

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

why rename isoDate and timestamp. There's no conflict and it would match the StandardTx type for easy assignment

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.

2 participants