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 .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ PORT=4000
STELLAR_NETWORK=testnet
# Soroban RPC endpoint
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
STELLAR_SIGNER_SECRET_KEY=

# Deployed contract IDs (leave blank until deployed)
SETTLEMENT_CONTRACT_ID=
Expand Down
2 changes: 2 additions & 0 deletions src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface AppConfig {
sorobanRpcUrl: string;
settlementContractId: string;
solverRegistryContractId: string;
signerSecretKey: string;
// Secret key for the backend's Soroban signer. Empty outside production
// (no on-chain write path exists yet); envValidationSchema requires and
// format-checks it in production so it can never silently fall back to
Expand All @@ -65,6 +66,7 @@ export default (): AppConfig => ({
sorobanRpcUrl: process.env.SOROBAN_RPC_URL ?? "https://soroban-testnet.stellar.org",
settlementContractId: process.env.SETTLEMENT_CONTRACT_ID ?? "",
solverRegistryContractId: process.env.SOLVER_REGISTRY_CONTRACT_ID ?? "",
signerSecretKey: process.env.STELLAR_SIGNER_SECRET_KEY ?? "",
signingKey: process.env.SOROBAN_SIGNING_KEY ?? "",
feePercentile: (process.env.SOROBAN_FEE_PERCENTILE ?? "p50") as FeePercentile,
},
Expand Down
1 change: 1 addition & 0 deletions src/config/env.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const envValidationSchema = Joi.object({
SOROBAN_RPC_URL: Joi.string().uri().default("https://soroban-testnet.stellar.org"),
SETTLEMENT_CONTRACT_ID: Joi.string().allow("").default(""),
SOLVER_REGISTRY_CONTRACT_ID: Joi.string().allow("").default(""),
STELLAR_SIGNER_SECRET_KEY: Joi.string().allow("").default(""),

// Secret key for the backend's own Soroban signer (submits on-chain writes
// such as settlement and slashing calls). No default is provided anywhere
Expand Down
1 change: 1 addition & 0 deletions src/soroban/soroban.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SignerService } from "./signer.service";
import { StellarTxService } from "./stellar-tx.service";

@Module({
imports: [forwardRef(() => IntentsModule)],
controllers: [SorobanController],
providers: [
SorobanService,
Expand Down
Loading