-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add Kado #186
Add Kado #186
Conversation
e31378f
to
b621be8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but I think cleanup by putting dead-code in a separate commit and separate wip-branch may be better then committing it now.
src/partners/kado.ts
Outdated
// const statusMap: { [key in PartnerStatuses]: Status } = { | ||
// DONE: 'complete', | ||
// other: 'other' | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out code meant for a later PR makes it very hard to review because I don't know if this is accidental or not. Can you stash these commented out portions in a local stash or branch?
src/partners/kado.ts
Outdated
// break | ||
} | ||
} | ||
// await snooze(3000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental or for a later PR?
src/partners/kado.ts
Outdated
|
||
const MAX_RETRIES = 5 | ||
const QUERY_LOOKBACK = 1000 * 60 * 60 * 24 * 30 // 30 days | ||
const QUERY_TIME_BLOCK_MS = QUERY_LOOKBACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the extra constant?
src/partners/kado.ts
Outdated
const startTimeS = startTime / 1000 | ||
const endTimeS = endTime / 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this not give you unused variable errors?
src/partners/kado.ts
Outdated
// No looping since all txs are returned in one call for now | ||
// while (true) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just make a separate commit for the while-loop and time variables which can be in a separate wip-branch?
b621be8
to
4b2aeef
Compare
@samholmes since this code is already deployed in develop, i'll see if they update the API in the near future and I'll just modify this PR for the new API. Otherwise if I get impatient, I'll pull out the dead code. |
502433b
to
93458a1
Compare
9cbd4b6
to
bb51763
Compare
bb51763
to
c17c803
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none