KRNL Platform Guidebook
KRNL Platformkrnl.xyz
  • Introduction
    • Introduction
    • How Does kOS Work?
  • Setup
    • Getting Started with KRNL
    • Quick Start (CLI)
    • Quick Start (Online IDE)
      • Quick Start (Remix IDE)
      • Quick Start (Atlas IDE)
    • create-krnl-app
    • Platform Registration
  • Kernel
    • What are Kernels?
    • Kernel Registration
      • Kernel Registration (on-chain)
      • Kernel Registration (off-chain)
    • Supported OpenAPI (Off-chain Kernel)
    • Staking
  • Smart Contract
    • Steps for Smart Contract Developers
    • Choosing Kernel(s)
    • Token Authority
      • What is a Token Authority?
      • How to Build a Token Authority?
      • Generic Token Authority
      • How to Deploy a Token Authority on Oasis?
    • Decoding Kernel Responses in Solidity
    • How to Integrate Your Smart Contract with kOS?
    • Smart Contract Registration
  • DApp
    • dApp Registration
    • KRNL SDK Installation
    • Usage
    • KRNL Node RPC
  • Miscellaneous
    • Overview
    • What is the KRNL Platform?
    • What are You Trying to BUIDL?
    • Smart Contract Fundamentals
      • Why Do I Have to Register a Smart Contract?
      • How to Deploy a Smart Contract?
    • Recommended Kernels List
  • Helpful Resources
    • New to Web3?
    • Dictionary
    • Testnet Faucets
    • How to Get Etherscan API Key?
  • Litepaper
    • Litepaper
      • Overview
      • Problem Statement
      • Current State Does Not Solve the Problem
      • Introducing Kernels
      • Ecosystem of Kernels
      • The KRNL Operating System (kOS)
      • Decentralization and Security Considerations
      • Use Cases for KRNL
  • Appendices
    • FAQ
    • Bounty Program
    • Social Medias
    • Thank You
  • Workshop
    • KRNL Workshop
    • Speed's Workshop
Powered by GitBook
On this page

Was this helpful?

  1. Smart Contract

Steps for Smart Contract Developers

PreviousStakingNextChoosing Kernel(s)

Last updated 15 days ago

Was this helpful?

This page is dedicated to the overall workflow guidelines which smart contract developers can follow. Follow these steps to ensure a smooth deployment process for your new upgraded smart contracts.

The below diagram represents the steps which need to be done in order to register your smart contract with the KRNL Operating System, kOS.

The following list is the same checklist as from the diagram above, but in more detail:

  1. Choose kernel(s) from the KRNL platform.

  2. Explore how the selected kernel(s) works. Some kernels are on-chain, some are off-chain web API. Kernel providers are variety. They might require API keys, subscriptions, or others. Some kernels are free to use, some are paid.

  3. Define your rules in Token Authority. After selecting kernel(s), you will have to write the rules and criteria that suit with that selected kernel(s). For example, if that kernel offers KYC function, which gives wallet scores based on wallet address. You may set the threshold, as in "walletScore > 10".

  4. Deploy Token Authority on a confidential blockchain network. TA is a guard that protects your smart contract. Privacy is the concern.

  5. Public key from Token Authority will be obtained after deployment. Note down and save this TA public key, it will be used later.

  6. Modify your smart contract. For enabling your smart contract to be compatible with kOS, it has to be modified by adding a modifier into your function. That function will be protected from the selected kernel(s) during the transactions.

  7. Public key as a constructor. The noted public key from Token Authority from the earlier stage would be used as one of constructors here when you are deploying your smart contract.

  8. Deploy your smart contract. Save the deployed smart contract address, it will be used for registering through KRNL Platform.

  9. Register on KRNL Platform.