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

Merge development into main #672

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
const fs = require('fs')

type Repo = {
organization: string
repo: string
destination: string
branch: string
files: string[]
}

const repos = [
{
organization: '5afe',
Expand Down Expand Up @@ -35,6 +43,20 @@ const repos = [
'/layouts/default.vue',
'/nuxt.config.ts'
]
},
{
organization: '5afe',
repo: 'react-native-passkeys-tutorial',
destination: './examples/react-native-passkeys',
branch: 'main',
files: [
'/lib/passkeys.ts',
'/lib/safe.ts',
'/lib/storage.ts',
'/App.tsx',
'/app.json',
'/.env-sample'
]
}
// {
// organization: '5afe',
Expand All @@ -59,7 +81,7 @@ const generateCodeExamples = async ({
branch,
destination,
files
}) => {
}: Repo) => {
const fetch = await import('node-fetch')
files.forEach(async filePath => {
const url = `https://raw.githubusercontent.com/${organization}/${repo}/${branch}${filePath}?token=$(date +%s)`
Expand Down
7 changes: 6 additions & 1 deletion .github/styles/config/vocabularies/default/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
[Tt]estnet
[Tt]rezor
[Vv]alidator
[Ww]hitepaper
[Ww]hitepaper
[Xx]code
A1
AA
ABI
Expand Down Expand Up @@ -150,6 +151,7 @@ Katla
Klaytn
Kovan
Kroma
keystore
LUKSO
Lightlink
Lisk
Expand All @@ -167,6 +169,7 @@ Moonbeam
Moonriver
Mordor
Nova
ngrok
Nuxt
OAuth
OP
Expand All @@ -178,6 +181,7 @@ PKCE
Polis
Protocol Kit
Starter Kit
Prebuild
Protofire
PublicMint
README
Expand Down Expand Up @@ -282,6 +286,7 @@ trace_filter
trace_transaction
undefined
undeployed
unencrypted
v1
viem
zkLink
Expand Down
Binary file added assets/react-native-passkeys-app-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/react-native-passkeys-app-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/react-native-passkeys-app-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/react-native-passkeys-app.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/react-native-passkeys-play-store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions examples/react-native-passkeys/.env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Fill this information to configure your Safe account
# ---------------------------------------------------
# The private key of the Safe account owner that will be used to deploy the Safe or execute transactions. Should have some test Sepolia ETH.
EXPO_PUBLIC_SAFE_SIGNER_PK=add_private_key_here
# Add the Safe account owners. You can one or more public addresses that you own.
EXPO_PUBLIC_SAFE_OWNERS=["0xOwnerAddress1", "..."]
# Safe salt nonce. A random number that is used to generate to Safe account address. When you change the number a new Safe will be predicted.
# This is useful to start testing the app with a new Safe account.
EXPO_PUBLIC_SAFE_SALT_NONCE=1

# Others
# ---------------------------------------------------
# RPC URL for the network where the Safe is deployed
EXPO_PUBLIC_RPC_URL=https://eth-sepolia.public.blastapi.io
Loading
Loading