Skip to content
Merged

update #1079

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
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ JWT_SECRET=change-me-in-production
JWT_EXPIRES_IN=15m
JWT_REFRESH_SECRET=change-me-in-production-refresh

# ── Redis (required) ──────────────────────────────────────────────────────────
# JWT_SECRET=change-me-in-production
# JWT_EXPIRES_IN=15m
# JWT_REFRESH_SECRET=change-me-in-production-refresh
# # ── Redis (required) ──────────────────────────────────────────────────────────
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
Expand Down
3 changes: 3 additions & 0 deletions contracts/escrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ crate-type = ["cdylib"]
[features]
testutils = ["soroban-sdk/testutils"]

[features]
testutils = ["soroban-sdk/testutils"]

[dependencies]
soroban-sdk = { version = "22.0.0", features = ["alloc"] }

Expand Down
9 changes: 9 additions & 0 deletions contracts/escrow/escrow-dispute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ interface Escrow {
fee: number;
status: EscrowStatus;
}
// interface Escrow {
// id: string;
// shipper: string;
// carrier: string;
// admin: string;
// amount: number;
// fee: number;
// status: EscrowStatus;
// }

function raiseDispute(escrow: Escrow, caller: string): void {
if (escrow.status !== "ACTIVE") throw new Error("Can only dispute an active escrow");
Expand Down
3 changes: 3 additions & 0 deletions contracts/identity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ publish = false
[lib]
crate-type = ["cdylib"]




[features]
testutils = ["soroban-sdk/testutils"]

Expand Down
10 changes: 10 additions & 0 deletions contracts/shipment/shipment-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ function validate(key: string, value: string): void {
throw new Error("Key/value exceeds 64 character limit");
}

// interface Escrow {
// id: string;
// shipper: string;
// carrier: string;
// admin: string;
// amount: number;
// fee: number;
// status: EscrowStatus;
// }

export function createShipment(
shipmentId: string,
parties: string[],
Expand Down
Loading