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/update front end #5

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
97f4eb4
feat: init commit with createAccount and state updates
k-g-j Jan 11, 2024
958ee49
feat: init commit with createAccount and state updates
k-g-j Jan 11, 2024
2cdfde5
Added [email protected] to dependencies
k-g-j Jan 11, 2024
4ebffef
Added sign transaction to unsupported methods
k-g-j Jan 12, 2024
10be421
Added initCode generation to createAccount
k-g-j Jan 12, 2024
cabd8fd
Removed unnecessary error throw and set deployed to false in createAc…
k-g-j Jan 12, 2024
995518b
Init: removed async methods and flows
k-g-j Jan 12, 2024
a6e7d77
Added method stubs for user operations
k-g-j Jan 12, 2024
53629a4
Started implementing method to prepare userOp
k-g-j Jan 12, 2024
187e6e4
Finished implementing prepareUserOp
k-g-j Jan 16, 2024
c9e90f1
Merge remote-tracking branch 'origin/feat/deploy-factories' into feat…
k-g-j Jan 16, 2024
7e62b2c
Updated implementation for preparing and signing requests and merged …
k-g-j Jan 16, 2024
174178f
Updated dummy values and added urls to env.sample
k-g-j Jan 16, 2024
fea673b
Updated paymaster url in env.sample
k-g-j Jan 16, 2024
24ac8da
Added salt to wallet state and address for paymaster to env.sample
k-g-j Jan 17, 2024
b0ca7da
feat: impl patchUserOperation
montelaidev Jan 18, 2024
1f2ab26
fix: add network-access permission
montelaidev Jan 18, 2024
32d20d9
fix: return types for prepareUserOperation
montelaidev Jan 18, 2024
70269f2
fix: SimpleAccountFactory getAddress to getAccountAddress
montelaidev Jan 18, 2024
7fbedce
fix: update keyring api on site
montelaidev Jan 18, 2024
daced3d
fix: change salt to be dynamic
montelaidev Jan 18, 2024
c719043
updated front end to import private key in create account and include…
k-g-j Jan 18, 2024
5aed321
Updated snap name on front end
k-g-j Jan 18, 2024
e3bab75
Merge remote-tracking branch 'origin/feat/update-front-end' into feat…
montelaidev Jan 19, 2024
73fb85f
feat: update hardhat config with chainId and max accounts
montelaidev Jan 19, 2024
40aa29f
fix: sign userOperation
montelaidev Jan 19, 2024
5f922ca
chore: update readme
montelaidev Jan 19, 2024
0d894b7
fix: patchUserOperation to use verifying paymaster
montelaidev Jan 19, 2024
bda37af
Added salt ability to front end create account
k-g-j Jan 19, 2024
1691b81
Added ability to set chain configuration via keyring and UI
k-g-j Jan 19, 2024
f1e4148
Fix: wrap user op hash in bytes before signing
k-g-j Jan 19, 2024
97a8df3
Fix: updated chainIdDecimal to base 10
k-g-j Jan 19, 2024
7358b43
Fix: return '0x' for dummy paymaster and data
k-g-j Jan 19, 2024
9c53042
Fix: do not destructure transaction array in prepareUserOp
k-g-j Jan 19, 2024
561f5e0
Updated TODOs for validation and setting if an account is deployed
k-g-j Jan 22, 2024
ba3a233
Added validation to setting the config
k-g-j Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ node_modules/
.yarn-integrity

# dotenv environment variables file
.env
packages/snap/.env
.env.test

# Stores VSCode versions used for testing VSCode extensions
Expand All @@ -80,4 +80,8 @@ node_modules/
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/versions

# IntelliJ
.idea/
/.idea/
18 changes: 9 additions & 9 deletions .yarn/releases/yarn-3.6.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Simple Keyring Snap
# Simple Account Abstraction Snap

This repository contains a simple example of a keyring snap.

Expand Down
2 changes: 1 addition & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@metamask/keyring-api": "^1.0.0-rc.1",
"@metamask/keyring-api": "^2.0.0",
"@metamask/providers": "^13.0.0",
"@mui/icons-material": "^5.14.0",
"@mui/material": "^5.14.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const Header = () => {
return (
<HeaderWrapper>
<LogoWrapper>
<Title>🔑 Snap Simple Keyring</Title>
<Title>🔑 Snap Account Abstraction Keyring</Title>
</LogoWrapper>
<RightContainer>
<Version />
Expand Down
Loading
Loading