Skip to content

Ton-Dynasty/eventon

Repository files navigation

Eventon

Static Badge Static Badge Static Badge

Eventon

Overview

Docs

What is Eventon?

  • Ton-Dynasty has designed a protocol that can achieve the following two functionalities:
    • On-Chain Functionality: Users can subscribe to events occurring on-chain, including:
      • DeFi protocols
      • Oracles
      • Airdrop events
      • Other smart contracts
    • Off-Chain Functionality: Through off-chain computations, signals are transmitted to on-chain contracts to execute related programs, including:
      • Smart contract vulnerability detection
      • Machine learning-based intelligent position signals
      • Blacklist monitoring
      • Whale account transfer notifications

Users can customize their own code or utilize built-in smart contracts to automatically execute program operations when specific signals are received.

Every thing is a SIGNAL.

For example, a change in the status of a DeFi protocol, a price provided by an Oracle, a user's transaction, or an airdrop event can all be considered a SIGNAL.

What Can We Do with Eventon?

For example, users can use Eventon to subscribe to an Oracle and set it up so that when the Oracle emits the price of ETH at $1600 USD, Eventon will automatically execute the user's custom actions.

Add Stake for Earning

Any user can add stake for earning by simply staking a certain amount of TON on Eventon, which allows them to receive a corresponding reward in TON.

Workflow

The workflow of Eventon is presented as follows:

Eventon Workflow

Architecture

The complete system architecture diagram for Eventon is as follows: Architecture

Project structure

  • contracts - source code of all the smart contracts of the project and their dependencies.
  • wrappers - wrapper classes (implementing Contract from ton-core) for the contracts, including any [de]serialization primitives and compilation functions.
  • tests - tests for the contracts.
  • scripts - scripts used by the project, mainly the deployment scripts.

Deployment

deployer: EQCizWtlx_pydcxDH83X_EjirryPj0MqfFVqk9sz_3lpIRz3 Universal Router: EQCuzDGZUvIkyQWviIplz_lSLkg69WeP4NqgwHese-Qi9xBB Event Source (Bug Detector): EQDoog68bootdz4nfENLrJuHvxepYyhHJRbHO9mtZkkHRPti UserDefaultCallback (Bug Detector): EQAvl_1DoWeXAtk7UFBevxcEbuP8R95eYnf_NQCJuqCN-YI9

Develop Guide

Build

yarn
yarn build

Test

yarn test

Deploy or run another script

npx blueprint run

Add dependency

for contract

yarn add -W typescript

for monorepop @eventon/sdk

yarn workspace @eventon/sdk add typescript -D