diff --git a/.env.example b/.env.example index b43d8fad..1650cc97 100644 --- a/.env.example +++ b/.env.example @@ -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= diff --git a/contracts/escrow/Cargo.toml b/contracts/escrow/Cargo.toml index 9b844dde..efa9e961 100644 --- a/contracts/escrow/Cargo.toml +++ b/contracts/escrow/Cargo.toml @@ -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"] } diff --git a/contracts/escrow/escrow-dispute.test.ts b/contracts/escrow/escrow-dispute.test.ts index daa2e294..fd856b05 100644 --- a/contracts/escrow/escrow-dispute.test.ts +++ b/contracts/escrow/escrow-dispute.test.ts @@ -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"); diff --git a/contracts/identity/Cargo.toml b/contracts/identity/Cargo.toml index ff0d8675..43c4df7b 100644 --- a/contracts/identity/Cargo.toml +++ b/contracts/identity/Cargo.toml @@ -7,6 +7,9 @@ publish = false [lib] crate-type = ["cdylib"] + + + [features] testutils = ["soroban-sdk/testutils"] diff --git a/contracts/shipment/shipment-metadata.ts b/contracts/shipment/shipment-metadata.ts index 86f45faa..4a74bc5c 100644 --- a/contracts/shipment/shipment-metadata.ts +++ b/contracts/shipment/shipment-metadata.ts @@ -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[],