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: add react-native-bare implementation #1202

Merged
merged 5 commits into from
Dec 11, 2024
Merged

Conversation

iykazrji
Copy link
Collaborator

@iykazrji iykazrji commented Dec 10, 2024

Pull Request Checklist


PR-Codex overview

This PR introduces a new React Native project structure, adding essential configuration files, assets, and initial application code for a bare example. It sets up the Android and iOS environments, integrates navigation, and includes a simple authentication UI.

Detailed summary

  • Added .watchmanconfig and .gitignore.
  • Created app.json with project metadata.
  • Implemented HomeScreen with email authentication.
  • Configured babel.config.js, .eslintrc.js, and .prettierrc.js.
  • Added Android and iOS configuration in build.gradle and Podfile.
  • Included initial images and icons in the project.

The following files were skipped due to too many changes: examples/react-native-bare-example/ios/ReactNativeBareExample.xcodeproj/project.pbxproj, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Screenshots

screen-20241211-183739.mp4

Copy link

graphite-app bot commented Dec 10, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “graphite-merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 8:47pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 8:47pm

Copy link
Collaborator Author

iykazrji commented Dec 10, 2024


How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Currently logged in as: {user.email}
</Text>
<Text style={styles.userText}>OrgId: {user.orgId}</Text>
<Text style={styles.userText}>Address: {user.address}</Text>
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit this is the same as the signer address

Suggested change
<Text style={styles.userText}>Address: {user.address}</Text>

Copy link
Collaborator

@moldy530 moldy530 left a comment

Choose a reason for hiding this comment

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

LGTM! would be good to get a video demo in this PR as well for tracking

@iykazrji iykazrji merged commit 987df11 into main Dec 11, 2024
7 checks passed
@iykazrji iykazrji deleted the iyk/add-bare-rn-example branch December 11, 2024 23:43
howydev pushed a commit that referenced this pull request Dec 13, 2024
* fix: rn stamper was returning stamp instead of response (#1201)

* chore(release): publish v4.6.1 [skip-ci]

* feat: add react-native-bare implementation (#1202)

* feat: add react-native-bare implementation

* fix: fix linting

* fix: fix linting

* fix: remove unnecessary console.log statements

* feat: add signer and account addresses to user logged in screen

* fix: updates facebook icon used in ui component (#1196)

* feat: add mav2 signer (#1203)

# Pull Request Checklist

- [ ] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [ ] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [ ] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [ ] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [ ] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new `SingleSignerValidation` module and related utilities for signature packing and handling user operation signing. It enhances the smart contract framework by implementing various functions and defining the ABI for the module.

### Detailed summary
- Added `PackSignatureParams` type and `packSignature` utility in `utils.ts`.
- Created `SingleSignerValidationModule` with metadata and encoding functions in `single-signer-validation/module.ts`.
- Implemented `singleSignerMessageSigner` function in `single-signer-validation/signer.ts` for signature management.
- Defined the ABI for `singleSignerValidation` in `abis/singleSignerValidation.ts`.
- Added `MAV2FactoryAbi` and `smaV2Abi` with functions and events related to account management in respective ABI files.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

---------

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>
Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com>
Co-authored-by: Iyk Azorji <iykazorji@gmail.com>
howydev pushed a commit that referenced this pull request Dec 14, 2024
* fix: rn stamper was returning stamp instead of response (#1201)

* chore(release): publish v4.6.1 [skip-ci]

* feat: add react-native-bare implementation (#1202)

* feat: add react-native-bare implementation

* fix: fix linting

* fix: fix linting

* fix: remove unnecessary console.log statements

* feat: add signer and account addresses to user logged in screen

* fix: updates facebook icon used in ui component (#1196)

* feat: add mav2 signer (#1203)

# Pull Request Checklist

- [ ] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [ ] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [ ] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [ ] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [ ] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new `SingleSignerValidation` module and related utilities for signature packing and handling user operation signing. It enhances the smart contract framework by implementing various functions and defining the ABI for the module.

### Detailed summary
- Added `PackSignatureParams` type and `packSignature` utility in `utils.ts`.
- Created `SingleSignerValidationModule` with metadata and encoding functions in `single-signer-validation/module.ts`.
- Implemented `singleSignerMessageSigner` function in `single-signer-validation/signer.ts` for signature management.
- Defined the ABI for `singleSignerValidation` in `abis/singleSignerValidation.ts`.
- Added `MAV2FactoryAbi` and `smaV2Abi` with functions and events related to account management in respective ABI files.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

---------

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>
Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com>
Co-authored-by: Iyk Azorji <iykazorji@gmail.com>
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