Last updated 6 months ago
most contracts have the same or similar logic, which could be extracted to make a useful helper function library to save dev time and make drafting and concept designs quick and easy
This is the total amount allocated to Okapi Aiken - Open Source Library For Smart Contracts. 1 out of 3 milestones are completed.
1/3
Draft Lib
Cost: âł 9,000
Delivery: Month 1 - Apr 2024
2/3
Optimise Library
Cost: âł 9,000
Delivery: Month 2 - May 2024
3/3
Release Library
Cost: âł 12,000
Delivery: Month 3 - Jun 2024
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
take common validator checks and create a library of helper functions that makes it quick and easy to draft concepts in Aiken
It is a library for Aiken, so it depends in the existence of that language, but that is all
the library will be made open source and freely available for use by the cardano community
Aiken is a smart contract language for Cardano that has really taken the chain by storm, developed by an awesome team with a simple and easy to read syntax that is massively optimised for efficient on chain validation.
Okapi is a library of helper functions I have been developing as I have built smart contracts in Aiken, that is currently neither ready for publishing nor optimised for performance.
The goal of this proposal is to dedicate 2 months working on Okapi directly, optimising and adding to this helper function library in public.
I will make youtube videos covering the process, design decisions, and optimisation process.
My goal is to create a toolset that can be taught to beginners to help them understand and design their own smart contracts.
I will use this as a way to create both a tool that the community can use and one that can help budding smart contract developers quickly draft and test their ideas as a proof of concept mechanism to even further improve the amazing dev experience that the Aiken team have put together
If you have every written any contracts on Cardano you have probably heard of the plutarch-extra library, it was such a great tool for developers working in plutarch that it became a standard integration and starting point for many smart contracts, it is both a heavily used and appreciated tool to make the developer experience a lot better than it was without.
The library I am putting together is similar, although not as desperately needed as plutarch-extra, it is something that can be used by any smart contract dev working in aiken to speed up their workflow, especially in the drafting and discovery phases.
Each function will be drafted and optimised to ensure that it doesn't add unnecessary bloated computation to contracts it gets used in.
I recently did a youtube video that teaches fractionalised NFTs in Aiken, I introduced Okapi during that video and we pulled helper functions out of the validators to prevent duplicate code.
Create a draft of the library functions with some tests to benchmark against optimised versions later
publish a video explaining the process and design decisions with some examples
rewrite library through incremental optimisations aiming to reduce code bloat and minimise the computation cost of running the functions
publish a video showing the testing and optimisation process
open source the library and publish a video that demonstrates the library with an example smart contract (similar to the YouTube video I did recently)
Rhys Morgan smart contract dev
30K ADA right now is about 9K GBP this represents 2 months of dev time for myself
and this will also cover my time recording and publishing the videos.
it will help make the development process much easier and faster on Cardano, which in turn will help onboard more developers to the ecosystem and make writing smart contracts even easier than it currently is with Aiken