lumina-pay-kit-core
v1.0.0
Published
TypeScript library for CIP64 fee abstraction and automated stablecoin treasury orchestration on Celo
Downloads
21
Maintainers
Readme
Lumina Pay Kit
Lumina Pay Kit is a specialized TypeScript library designed for the Celo network. It provides the core execution logic for CIP64 fee abstraction and deterministic stablecoin treasury orchestration. The toolkit is engineered for developers building merchant interfaces within the MiniPay environment.
Protocol Functionality
The library focuses on three primary pillars of onchain financial engineering.
CIP64 Fee Abstraction
Lumina Pay Kit implements the technical overrides required to settle transaction fees using stablecoin assets. By utilizing verified Mainnet gas adapters, the SDK allows for a native merchant experience where CELO tokens are not required for transaction gas.
Treasury Orchestration
The engine handles the calculation and execution of revenue splits. It utilizes BigInt precision to ensure basis point accuracy when distributing inbound capital across operational accounts and time-locked business reserves.
Ledger Telemetry and State Synchronization
Lumina Pay Kit maintains a continuous synchronization cycle with the Celo Mainnet. This high-frequency telemetry ensures that the SDK state and the onchain anchors remain in perfect parity. Every synchronization event is recorded in the protocol logs to provide a verifiable history of the treasury engine state.
Integration
The toolkit is designed to be imported as a modular dependency within Next.js or Node.js environments.
import { Cip64Adapter, Orchestrator } from '@forgingalex/lumina-pay-kit';
// Initialize the gasless handshake
const adapter = new Cip64Adapter(USDC_ADAPTER_ADDRESS);
const gaslessTx = adapter.wrap(rawTransaction);Technical Specifications
Network: Celo Mainnet (42220) Primary Assets: USDC, cUSD, USDT Gas Standard: CIP-64 Precision: 18-decimal fixed-point (BigInt)
