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

Onboarding: Support evm on subtrate #1508

Merged
merged 25 commits into from
Aug 1, 2023

Conversation

sophialittlejohn
Copy link
Collaborator

@sophialittlejohn sophialittlejohn commented Jul 21, 2023

Description

This pull request...

  • updates onboarding auth and cookies
  • allows remark signing with evm on substrate
  • allows whitelisting with evm on substrate
  • refactors the wallet schema so that wallets can be used for both evmOnSubstrate and evm (tinlake)
  • general refactor to make supporting more networks easier in the future (NetworkSwitch class)

TODO:

  • Migrate users wallet data on prod

Approvals

  • Dev

Screenshots

Impact

@github-actions
Copy link

github-actions bot commented Jul 21, 2023

PR deployed in Google Cloud
URL: https://app-pr1508.k-f.dev
Commit #: d566656
To access the functions directly check the corresponding deploy Action

@sophialittlejohn sophialittlejohn marked this pull request as ready for review July 26, 2023 17:08
@sophialittlejohn sophialittlejohn force-pushed the onboarding/support-evm-on-chain-chain branch from 51386d7 to 3a4f4dc Compare July 27, 2023 13:47
onboarding-api/src/utils/fetchUser.ts Dismissed Show dismissed Hide dismissed
setIsSubstrateTxLoading(false)
} catch (e) {
setIsSubstrateTxLoading(false)
}
},
})

const signSubstrateRemark = async (args: [message: string]) => {
const getBalanceForSigning = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. So this function is not expected to ever receive args?

@@ -73,4 +74,7 @@ onboarding.get('/getTaxInfo', verifyAuth, getTaxInfoController)
// init
onboarding.get('/initProxies', initProxiesController)

// migrations
onboarding.get('/migrateWallets', migrateWalletsController)
Copy link
Contributor

Choose a reason for hiding this comment

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

ooooooo

@@ -22,7 +22,7 @@ export const getCentrifuge = () =>
export const getSigner = async () => {
await cryptoWaitReady()
const keyring = new Keyring({ type: 'sr25519', ss58Format: 2 })
// the pure proxy controller (PURE_PROXY_CONTROLLER_SEED) is the wallet that controls the pure proxy being used to sign the transaction
// the pure proxxy controller (PURE_PROXY_CONTROLLER_SEED) is the wallet that controls the pure proxy being used to sign the transaction
Copy link
Contributor

Choose a reason for hiding this comment

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

??

Copy link
Contributor

@jpangelle jpangelle left a comment

Choose a reason for hiding this comment

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

looks good!!

@sophialittlejohn sophialittlejohn enabled auto-merge (squash) August 1, 2023 15:40
@sophialittlejohn sophialittlejohn merged commit 4cdc9ee into main Aug 1, 2023
8 of 9 checks passed
@sophialittlejohn sophialittlejohn deleted the onboarding/support-evm-on-chain-chain branch August 1, 2023 15:43
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