v0.4.0
Minor Changes
-
113b5d3: add a cached-context "short" flow to
MolphaGateway.requestSignedDataIntroduce
RoundContext(registryVersion,nodes,jobConfig) and a
gateway.prepareContext(jobId)helper that fetches these slow-changing round
inputs once. Pass them back viarequestSignedData({ ..., context })(also
accepted byrequestAndSubmit) to skip the prelude and run rounds as a single
gateway POST.contextis partial, so any omitted field is still fetched. The
default full flow now also fetches the registry version, node set, and job
config in parallel. -
d916cd6: rename the gateway round APIs to reflect that they request signed data
The gateway never executes anything on-chain — it returns a threshold-signed
data update. The methods and types are renamed accordingly:MolphaGateway.execute(...)→MolphaGateway.requestSignedData(...)MolphaSDK.executeAndSubmit(...)→MolphaSDK.requestAndSubmit(...)ExecuteOptions→RequestSignedDataOptionsExecuteContext→RoundContext
The gateway HTTP route (
POST /v1/jobs/{id}/execute) is unchanged.
Patch Changes
-
a1c15a5: wire wallet auth into
MolphaSDK.gateway.requestSignedDataMolphaSDKnow passes the wallet's gateway signer toMolphaGatewayas its
default, sosdk.gateway.requestSignedData({ jobId, apiConfig })authenticates
without an explicitsigner. Per-callsignerstill overrides the default.
StandaloneMolphaGatewayaccepts an optional thirddefaultSignerconstructor
argument; omitting it keeps the all-zero devauthSigbehavior.