Interaction Layer
At OKcontract, we are building a new generation of the Client stack, an Interaction Layer. The Interaction Layer is the infrastructure between the user interface and the smart contracts. It helps developers to implement and operate blockchain interactions on the client side.
The main components of the OKcontract Interaction Layer:
- Interaction specifications
- UI generator
- SDK
- Runtime network
- Attestations
DSL to Specify Interactions
OKcontract has built its own purely functional domain specific language (DSL) called λscript to specify low-level intents for client-side business logic.
A compiler generates bytecode, outlining the transaction and pinpointing errors in its specification. This bytecode feeds into the transaction engine, which integrates user inputs to construct the transaction directly from clients.
This allows for a safe use of LLMs to generate low-level intents from user intents.
UI Generator
OKcontract automatically generates a transactional interface from a specification. This way, default frontends can be generated for any smart contract and method without repeated manual input.
SDK
The OKcontract SDK computes transactions from high-level inputs, including slippage, offchain data, clear gas estimation, and more.
Our team is working to release SDK/API to enable developers to easily insert blockchain transactions into 3rd party solutions.
Client-side Runtime
The OKcontract client-side universal runtime network operates frontends, synchronizes all required onchain and off-chain data for transactions.
Attestations
The streamlined interaction specification enables a broad spectrum of entities — from project teams to trusted community members and reputable organizations — to attest to the proper specification of interactions. Attestations, verified on the client side, have their signatures stored on-chain, distinct from the API nodes.