-
Notifications
You must be signed in to change notification settings - Fork 258
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 Coreum native staking #4704
Conversation
peachbits
commented
Jan 11, 2024
•
edited
Loading
edited
- To see the specific tasks where the Asana app for GitHub is being used, see below:
- https://app.asana.com/0/0/1205910632157440
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.
Partial review. Will continue this evening during review-bar
globals.js
Outdated
@@ -0,0 +1 @@ | |||
global.TextEncoder = require('text-encoding').TextEncoder |
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.
Is TextEncoder not supported by Hermes?
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.
Add comment:
// Remove when Hermes supports TextEncoder API natively: https://github.com/facebook/hermes/issues/948
parentCurrencyCode: 'COREUM', | ||
hideUnstakeAction: true, | ||
adapterConfig: { | ||
...commonAdaptorConfig, |
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.
Unneeded and preferably unwanted.
const { unsignedTransaction } = txs[i] | ||
if (unsignedTransaction == null) continue | ||
|
||
const signedTx = await wallet.signMessage(unsignedTransaction) |
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.
wallet.signMessage
will correctly sign the transaction? I didn't know this would work.
// case 'unstaked': | ||
// case 'unlocking': | ||
// case 'locked': | ||
// case 'available': | ||
// case 'preparing': |
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.
Cleanup these and the other comments
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.
Minor changes
606a06f
to
bb38691
Compare
13134ce
to
0c6ae34
Compare
4c20ad7
to
6755620
Compare