/basic-smart-contracts

Primary LanguageHaskellMIT LicenseMIT

Basic smart contracts

About this repository

This repository is CENT Stake Pool's way to contribute open source smart contract code to the Cardano community. It contains a collection of smart contracts that are designed to be as small and to the point as possible. They are small because we want them to be easy to reuse and extend without the need to read through and understand 100's of lines of code, or even end up removing most of the code because it doesn't fit the use case you want. Our hope is that these contracts will fill the gap between the too simple contracts like Plutus Pioneer Program - AlwaysSucceeds and the (in some cases too) advanced contracts you can find in IOG repositories like Plutus Use Cases.

The contracts themselves are extracts we have picked from our own development and published here to be used as starting points for other smart contracts, but they can also be used for simple use cases as they are. This is possible because the contracts become uniquely linked to your wallet when you build them.

Getting started

The supplied code can be used in your existing development / production environment if you already have one. If you do not have a running environment you can use the following instructions to set one up

The contracts

Contract Building instructions Testing Dapp off-chain code sample
Owner Can Mint Policy Instructions using CLI using lucid
Mint if Lovelace Paid to Wallet Instructions using CLI using lucid
Mint if Token Paid to Wallet Instructions using CLI using lucid

How to contact CENT

Platform
Telegram @CentStakePool
Discord CENT#6930
Email developer@cent.stakepoolcentral.com
Website https://cent.stakepoolcentral.com

Disclaimer

Even though we have tested our smart contracts, make sure to do your own thorough testing on Cardano testnet before publishing your contract to the Cardano mainnet. The contracts are shared with you free of charge to be an inspiration for your own contracts. Be sure to read and understand the repository LICENSE