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

feat: top level withdrawal methods [OTE-389] [2/n] #443

Merged
merged 9 commits into from
Jun 19, 2024
Merged

Conversation

yogurtandjam
Copy link
Contributor

@yogurtandjam yogurtandjam commented Jun 13, 2024

Followup to #417
withdrawals weren't fully enabled due to additional flows we hadn't accounted for.

also fixes some small bugs and cleans up some unused comments, suppressions, etc.
Performed QA on several flows e2e with this PR.

QA'd Flows:

  • Cctp deposit
  • Cctp withdrawal
  • Cctp auto sweep

TODO QA:

  • Non cctp deposit
  • Non cctp withdrawal
  • Non cctp auto sweep
  • Exchange deposit
  • Exchange withdrawal

@yogurtandjam yogurtandjam force-pushed the jerms/OTE-389_top-level-withdrawal-methods branch from 13f0b0e to b62e37b Compare June 13, 2024 23:36
@yogurtandjam yogurtandjam changed the title fix: enable withdrawals feat: top level withdrawal methods [OTE-389] [2/2] Jun 13, 2024
Copy link

linear bot commented Jun 13, 2024

@yogurtandjam yogurtandjam force-pushed the jerms/QA-route branch 3 times, most recently from aed24dd to fda7176 Compare June 13, 2024 23:57
@@ -141,3 +141,15 @@ fun IMap<String, String>.toUrlParams(): String =
entries.joinToString("&") {
it.key + "=" + it.value
}

fun Map<String, Any>.toCamelCaseKeys(): Map<String, Any> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if people feel strongly i can write a quick test for this method. i just didn't feel like it was urgently necessary since we test that it works in the SkipRoutePayloadProcessorTests

@@ -35,3 +35,9 @@ fun String.toDydxAddress(): String? {
return null
}
}

fun String.toCamelCase(): String {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above

@yogurtandjam yogurtandjam force-pushed the jerms/QA-route branch 2 times, most recently from 5c6a01e to 4c2d251 Compare June 14, 2024 12:52
Base automatically changed from jerms/OTE-389_top-level-withdrawal-methods to main June 14, 2024 17:42
@yogurtandjam yogurtandjam force-pushed the jerms/QA-route branch 2 times, most recently from 2ec5e2a to 7892452 Compare June 14, 2024 17:49
@yogurtandjam yogurtandjam changed the title feat: top level withdrawal methods [OTE-389] [2/2] feat: top level withdrawal methods [OTE-389] [2/n] Jun 17, 2024
// skip does not provide the 0x prefix. it's not required but is good for clarity
// and keeps our typing honest (we typecast this value to evmAddress in web)
modified.safeSet("data", "0x$data")
}
if (txType == TxType.COSMOS) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[fix] early return on data being null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ ah this is actually incorrect. cosmos tx do not depend on the data key.

feat: enable withdrawals. also small fixes

Bump version

cleanup suppression

remove squid integrator id check from skip method

address detekt complaint

cleanup
@yogurtandjam yogurtandjam merged commit 97487af into main Jun 19, 2024
4 checks passed
@yogurtandjam yogurtandjam deleted the jerms/QA-route branch June 19, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants