CreateEdgeOptions
@totemsdk/edge / CreateEdgeOptions
Interface: CreateEdgeOptions
Properties
adapters
adapters:
ResourceAdapter[]
Resource adapters.
authority
authority:
EdgeAuthorityPort
Authority / policy approval.
commerceStore?
optionalcommerceStore?:object
Aggregated durable commerce store (negotiations + purchases + replay + principals + outbox in one physical backend). When supplied, it takes precedence over the individual store options. A SQLiteCommerceStore from @totemsdk/edge-adapters is the production reference.
negotiations
negotiations:
NegotiationStore
outbox
outbox:
OutboxStore
principals
principals:
PrincipalNegotiationStore
purchases
purchases:
PurchaseStore
replay
replay:
ReplayLedger
hashRatePerSec?
optionalhashRatePerSec?:number
Hash rate for work estimation.
lookup
lookup:
EdgeLookupPort
Lookup port.
minimaRelay?
optionalminimaRelay?:MinimaWorkRelay
Minima block relay (optional — commerce still works without it).
negotiationLimits?
optionalnegotiationLimits?:Partial<NegotiationLimits>
Negotiation limits.
negotiationStore?
optionalnegotiationStore?:NegotiationStore
Durable negotiation store (optional — in-memory dev mode).
negotiationTransport?
optionalnegotiationTransport?:NegotiationTransport
Authenticated negotiation transport (optional — local/programmatic only).
now?
optionalnow?: () =>number
Current time (for deterministic tests).
Returns
number
onEvent?
optionalonEvent?: (event) =>void
Event sink.
Parameters
event
Returns
void
outboxStore?
optionaloutboxStore?:OutboxStore
Durable outbox store (optional — in-memory dev mode).
payment
payment:
EdgePaymentPort
Payment port (idempotent).
persistence?
optionalpersistence?:"ephemeral"|"durable"
Explicit persistence mode. When 'ephemeral' (or when durable stores are
not supplied), the runtime emits runtime.persistence_ephemeral on
startup so operators never mistake dev mode for crash guarantees.
principal
principal:
string
Authenticated principal (root identity) that owns this runtime.
principalStore?
optionalprincipalStore?:PrincipalNegotiationStore
Durable principal anti-abuse store (optional — in-memory dev mode).
purchaseStore?
optionalpurchaseStore?:PurchaseStore
Durable purchase store (optional — in-memory dev mode).
replayLedger?
optionalreplayLedger?:ReplayLedger
Replay ledger (optional — in-memory dev mode).
seller?
optionalseller?:object
Seller-side negotiation service configuration. When supplied, the runtime also operates as a supply-side counterpart for inbound negotiation messages.
manifest?
optionalmanifest?:SignedManifest<Manifest>
Standing service manifest (used to compute manifestId for opened negotiations).
strategy
strategy:
SellerStrategy
Seller bargaining strategy.
sign
sign:
Signer
Signature creation (WOTS).
templateProvider?
optionaltemplateProvider?:MinimaWorkTemplateProvider
Minima work template provider (optional — work-disabled if omitted).
verifySignature
verifySignature:
SignatureVerifier
Signature verification (WOTS).
workBudget?
optionalworkBudget?:LocalWorkBudget
Local work budget.
workDifficulty?
optionalworkDifficulty?:WorkDifficultyPolicy
Work difficulty policy.
workMode?
optionalworkMode?:WorkMode
Work mode. Defaults to 'disabled' when no template provider is supplied.