Class: GasAbstractionEngine
Defined in: packages/core/src/gas-abstraction-engine.ts:13 Maps a signed intent into the relayer request body for the configured gas strategy. v1 supportssponsored only: the facilitator’s sponsor account
pays the XLM fee, so the body carries no fee/token-payment fields.
The gas mode is validated once at construction; v1 keeps no instance state
because sponsored projection is fixed. The token / self gas modes will store
the config and branch on it inside toRelayPayload.
Constructors
Constructor
new GasAbstractionEngine(Defined in: packages/core/src/gas-abstraction-engine.ts:14gas):GasAbstractionEngine
Parameters
gas
GasConfig
Returns
GasAbstractionEngine
Methods
toRelayPayload()
toRelayPayload(Defined in: packages/core/src/gas-abstraction-engine.ts:38 Project a signed intent into the facilitator relay body. Insigned):RelayPayload
sponsored
mode this is exactly the seven fields of stellarSorobanSchema; the
intent-only network field is intentionally dropped (the relayer is
already network-bound). Output is byte-identical to the dashboard’s
SorobanRelayBody - enforced by the golden test.
Parameters
signed
SignedIntent
Returns
RelayPayload
