@gasx/sdk
v0.1.1
Published
GasX SDK: oracle signer, strategy registry, ERC-7677 orchestrator (paymasterAndData encoder), and account adapter — all matching the on-chain GasXPaymasterBase wire format.
Readme
@gasx/sdk
Off-chain bridge for the GasX modular ERC-4337 paymaster. Produces the EIP-712 SignedApprovals that the
on-chain GasXPaymasterBase verifies, and assembles paymasterAndData byte-for-byte to the contract's wire layout.
GasXOracleSigner— EIP-712 signer (domain matches the on-chainGasXPaymasterBase).GasXOrchestrator+encodePaymasterAndData— ERC-7677 surface (pm_getPaymasterData); 128-byte signed region + sig.GasXStrategyRegistry— campaign → strategy routing (fail-closed).GasXSimpleAccountAdapter/IGasXAccountAdapter— raw-userOpHash signing (AA24), tupleCall[]batch, one account per user.
npm i @gasx/sdkimport { GasXOracleSigner, gasxDomain, encodePaymasterAndData } from "@gasx/sdk";Contracts: https://github.com/gasxprotocol/contracts · EntryPoint v0.9. MIT.
