Skip to content
Open
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
1 change: 1 addition & 0 deletions ACCESS_CONTROL_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

This document provides a comprehensive access-control matrix mapping each public method across all contracts to its required caller (owner/admin/anyone/other contract). It also identifies risky functions requiring tighter controls and documents cross-contract call constraints.

<!-- -->
---

## 1. Bill Payments Contract
Expand Down
10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ members = [
"orchestrator",
"cli",
"scenarios",

"testutils",
"integration_tests",


]
default-members = [
"remittance_split",
Expand All @@ -31,23 +28,22 @@ default-members = [
"data_migration",
"reporting",
"orchestrator",

]
resolver = "2"

[dependencies]
soroban-sdk = "21.0.0"
ed25519-dalek = "2.1.1"
soroban-sdk = "22.0.1"
remittance_split = { path = "./remittance_split" }
savings_goals = { path = "./savings_goals" }
bill_payments = { path = "./bill_payments" }
insurance = { path = "./insurance" }
family_wallet = { path = "./family_wallet" }
reporting = { path = "./reporting" }
remitwise-common = { path = "./remitwise-common" }
orchestrator = { path = "./orchestrator" }

[dev-dependencies]
soroban-sdk = { version = "=21.7.7", features = ["testutils"] }
soroban-sdk = { version = "22.0.1", features = ["testutils"] }

[profile.release]
opt-level = "z"
Expand Down
6 changes: 3 additions & 3 deletions NEW_CONTRACT_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ use your_contract::{YourContract, YourContractClient};
fn setup() -> (Env, Address, YourContractClient<'static>) {
let env = Env::default();
env.mock_all_auths(); // mock auth for all calls
let contract_id = env.register_contract(None, YourContract);
let contract_id = env.register(YourContract, ());
let client = YourContractClient::new(&env, &contract_id);
let admin = Address::generate(&env);
(env, admin, client)
Expand Down Expand Up @@ -273,13 +273,13 @@ use your_contract::{YourContract, YourContractClient};
fn bench_create_record() {
let env = Env::default();
env.mock_all_auths();
let id = env.register_contract(None, YourContract);
let id = env.register(YourContract, ());
let client = YourContractClient::new(&env, &id);

// ... setup ...
client.create_record(/* args */);

let resources = env.budget().borrow().resource_per_type();
let resources = env.cost_estimate().budget().borrow().resource_per_type();
println!("CPU (instructions): {}", resources.cpu_insns);
println!("Memory (bytes): {}", resources.mem_bytes);

Expand Down
Loading