Start CQRS refactoring: Create Osiris client crate
- Added workspace structure to Osiris Cargo.toml - Created osiris-client crate for query operations (GET requests) - Implemented generic get(), list(), query() methods - Added KYC, payment, and communication query modules - Created comprehensive refactoring plan document CQRS Pattern: - Commands (writes) → Supervisor client → Rhai scripts - Queries (reads) → Osiris client → REST API Next steps: - Implement Osiris server with Axum - Restructure SDK client by category (kyc/, payment/, etc.) - Update FreezoneClient to use both supervisor and osiris clients
This commit is contained in:
@@ -5,6 +5,8 @@ public_key_registration_step = step.new()
|
||||
.description("Register your public key")
|
||||
.add_action("Register");
|
||||
|
||||
|
||||
|
||||
flow_id = registration_flow.start()
|
||||
|
||||
|
||||
@@ -20,16 +22,10 @@ flow_id = registration_flow.start()
|
||||
|
||||
|
||||
|
||||
pk_registration_step.complete()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public_key_registration_step.complete()
|
||||
|
||||
public_key =
|
||||
freezone_user = get_context()
|
||||
public_key = pk_registration_step.output()
|
||||
print("Public key <>registered.");
|
||||
print("Now user needs to submit email");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user