Skip to content

Commit 850d49c

Browse files
committed
feat(permissions): Add development permissions configuration
- Introduced `example-permissions-dev.yaml` for development and testing, allowing all addresses for easier testing. - Updated the private RPC initialization to select the appropriate permissions file based on the development flag.
1 parent 9bc3bb4 commit 850d49c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Development/Testing permissions - allows all addresses for easy testing
2+
# DO NOT USE IN PRODUCTION
3+
whitelisted_wallets: "all"
4+
5+
groups: []
6+
7+
contracts: []

zkstack_cli/crates/zkstack/src/commands/private_rpc/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ pub async fn init(shell: &Shell, args: PrivateRpcCommandInitArgs) -> anyhow::Res
164164

165165
initialize_private_rpc_database(shell, &chain_config, &db_config).await?;
166166

167-
let src_permissions_path = "example-permissions.yaml";
167+
let src_permissions_path = if args.dev {
168+
"private-rpc/example-permissions-dev.yaml"
169+
} else {
170+
"private-rpc/example-permissions.yaml"
171+
};
168172
let dst_permissions_dir = ecosystem_path
169173
.join("chains")
170174
.join(chain_name.clone())

0 commit comments

Comments
 (0)