Introduction
OKcontract is an interaction layer connecting smart contracts with frontends. OKcontract makes it easier for developers to specify transactions, implement and handle smart contract interactions.
Users want to execute their transactions safely and developers want to have as little maintenance as possible.
OKcontract introduces a new client stack, that splits interaction specification, which is usually spread of numerous JavaScript files, from the runtime engine.
OKcontract standardizes onchain interactions with smart contracts, tokens, NFTs utilizing low-level intent specification using it's built-in DSL.
The separation between specification and runtime drastically reduces the code volume and simplifies verification. A significantly shorter interaction specifications (dozens of lines instead of thousands of lines of JavaScript code/libs/hooks) makes them considerably easier to audit. This opens the path to community-based attestations for contract interaction specifications.
OKcontract's common generation runtime, combined with automated UI generation, empowers developers to quickly create default frontends. This system allows for the generation of user interfaces for any smart contract ABI method, token, or NFT. These interfaces are customizable and testable, facilitating seamless integration into web apps or sites. Integration is made easy through SDK/API or embeddable widgets, including HTML UI snippets that can be copied and pasted.
Main Features
- Interaction Specification: OKcontract offers standard transaction specifications that utilize low-level intents for client-side business logic
- Onchain and Off-chain Data: OKcontract includes access to verifiable transaction data and synchronizes all required onchain and off-chain data for transactions automatically
- Transaction Computation: The OKcontract SDK computes transactions from high-level inputs, including slippage, offchain data, clear gas estimation, and more.
- Transaction Generation: OKcontract generates standard transactions from high-level user inputs (client-side or via its offchain network)
- Verification community-managed attestations for interaction specifications.
They ensure independent access to smart contracts, minimizing reliance on single actors.