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

Add Coreum native staking #4704

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Add Coreum native staking #4704

merged 2 commits into from
Jan 23, 2024

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Jan 11, 2024


Copy link
Contributor

@samholmes samholmes left a 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
Copy link
Contributor

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?

Copy link
Contributor

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,
Copy link
Contributor

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)
Copy link
Contributor

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.

Comment on lines 368 to 372
// case 'unstaked':
// case 'unlocking':
// case 'locked':
// case 'available':
// case 'preparing':
Copy link
Contributor

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

Copy link
Contributor

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

Minor changes

@peachbits peachbits force-pushed the matthew/coreumStaking branch 2 times, most recently from 606a06f to bb38691 Compare January 22, 2024 22:36
@peachbits peachbits force-pushed the matthew/coreumStaking branch 2 times, most recently from 13134ce to 0c6ae34 Compare January 22, 2024 23:00
@peachbits peachbits merged commit 45aed8b into develop Jan 23, 2024
2 checks passed
@peachbits peachbits deleted the matthew/coreumStaking branch January 23, 2024 00:02
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