-
Notifications
You must be signed in to change notification settings - Fork 37
feat: created template for magic block's private and public counter using privy for wallet connections and temp keypair #88
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(yarn add *)", | ||
| "Bash(node -e \"const p = require\\('@privy-io/react-auth'\\); console.log\\(Object.keys\\(p\\).filter\\(k => k.toLowerCase\\(\\).includes\\('sol'\\) || k.toLowerCase\\(\\).includes\\('wallet'\\) || k.toLowerCase\\(\\).includes\\('privy'\\)\\)\\)\")", | ||
| "Bash(python3 -c \"import sys,json; p=json.load\\(sys.stdin\\); print\\(list\\(p.get\\('exports',{}\\).keys\\(\\)\\)[:20]\\)\")", | ||
| "Bash(node -e \"const p = require\\('@privy-io/react-auth/solana'\\); console.log\\(Object.keys\\(p\\)\\)\")", | ||
| "Bash(python3 -c \"import sys,json; p=json.load\\(sys.stdin\\); exports=p.get\\('exports',{}\\); [print\\(k,'->',v\\) for k,v in exports.items\\(\\) if 'sol' in k.lower\\(\\)]\")", | ||
| "Bash(npm list *)", | ||
| "Bash(npx cross-env *)" | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| PROVIDER_ENDPOINT=https://api.devnet.solana.com | ||
| EPHEMERAL_PROVIDER_ENDPOINT= | ||
| ROUTER_ENDPOINT= | ||
| TEE_PROVIDER_ENDPOINT= |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||||||||||||||
| *.DS_Store | ||||||||||||||||
| .idea | ||||||||||||||||
| **/*.rs.bk | ||||||||||||||||
| **/target/* | ||||||||||||||||
| **/node_modules | ||||||||||||||||
| **/test-ledger | ||||||||||||||||
| **/.anchor | ||||||||||||||||
| **/.bolt | ||||||||||||||||
| **/.yarn | ||||||||||||||||
| **/.next/ | ||||||||||||||||
| **/.env | ||||||||||||||||
| **/magicblock-test-storage | ||||||||||||||||
|
Comment on lines
+11
to
+12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ignore local env variants too. Line 11 only ignores files named exactly Suggested fix **/.env
+**/.env.local
+**/.env.*.local
+!**/.env.example📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| !target/deploy/ | ||||||||||||||||
| target/deploy/* | ||||||||||||||||
| !target/deploy/*-keypair.json | ||||||||||||||||
| !/bolt-counter/target/deploy/counter-keypair.json | ||||||||||||||||
| !/bolt-counter/target/deploy/increase-keypair.json | ||||||||||||||||
|
|
||||||||||||||||
| # But don't ignore the target/idl/ directory | ||||||||||||||||
| !**/anchor-minter/target/idl/ | ||||||||||||||||
| !**/anchor-counter/target/idl/ | ||||||||||||||||
| !**/anchor-minter/target/deploy/anchor-counter/magicblock-test-storage/ | ||||||||||||||||
| anchor-counter/magicblock-test-storage/ | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [toolchain] | ||
| anchor_version = "1.0.2" | ||
|
|
||
| [features] | ||
| resolution = true | ||
| skip-lint = false | ||
|
|
||
| [registry] | ||
| url = "https://api.apr.dev" | ||
|
|
||
| [provider] | ||
| cluster = "localnet" | ||
| wallet = "~/.config/solana/id.json" | ||
|
|
||
| [scripts] | ||
| test = "../fullstack-test.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Narrow the Claude Bash allowlist.
These wildcard entries grant effectively arbitrary command execution (
yarn add *can run package install scripts, andnpx cross-env *can prefix almost any command). That is much broader than the read-only inspection use case described by the rest of this file and makes the checked-in agent config unsafe to reuse as-is.🤖 Prompt for AI Agents