-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
13f0b0e
to
b62e37b
Compare
aed24dd
to
fda7176
Compare
@@ -141,3 +141,15 @@ fun IMap<String, String>.toUrlParams(): String = | |||
entries.joinToString("&") { | |||
it.key + "=" + it.value | |||
} | |||
|
|||
fun Map<String, Any>.toCamelCaseKeys(): Map<String, Any> { |
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.
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 { |
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.
same as above
5c6a01e
to
4c2d251
Compare
2ec5e2a
to
7892452
Compare
// 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) { |
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.
[fix] early return on data being null
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.
^ 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
8c03689
to
f1ea6bc
Compare
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:
TODO QA: