Qortal Project

The future of blockchain platforms

User Tools

Site Tools


Sidebar

Qortal Project Wiki

Important Notices

Introduction

Project Model

Minting

Communications

Trade Portal

Qortal Hosting (QDN)

Voting System

AT System

Hardware

Frequently Asked Questions (FAQ)

How-To Guides

Node Setup Guides

Third-Party Services

lottery_system

This is an old revision of the document!


Lottery System

our original core coder and founder catbref has been working on the lottery AT for Qortal for a while now, and he has recently deployed the first TEST AT .

+The Qortal AT system

The Qortal 'AT' system (or Automated Transactions) allows for multiple types of transaction automation to take place. Currently we utilize it primarily for the Cross-Chain Trades (or the ACCT AT). People also refer to ATs as 'SmartContracts' - but since that terminology has been BASTARDIZED by the likes of Ethereum and others, I prefer to use its technical name, AT.

+The functionality of the AT system

The Qortal AT system has a TON of existing functionality that has been tested on multiple other blockchains, however, since Qortal is a completely unique blockchain, all of the existing working ATs on other chains, have to be re-built for Qortal.

The first use case we built, was ACCT for Cross-Chain trades (REAL cross-chain trades that we use in the Trade Portal)

But there is a LOT of OTHER FUNCTIONALITY that can take place utilizing ATs, such as 'automated escrow', 'automated decentralized lotteries', 'automatic payments' on a schedule, 'funds holding and distribution', and much more.

the AT system is a TURING COMPLETE CUSTOM WRITTEN HARDWARE LEVEL PROGRAMMING LANGUAGE. With this language being turing complete, it means that it is basically 'unlimited' in terms of what it can accomplish, and as time goes on a LOT more functionality will be built utilizing ATS.

As time goes on, MANY MORE ATs will be built for Qortal, and able to be utilized. But it takes time to develop and test, and the UI components must be built as well, in order to allow other users to make use o the created ATs, deploy them, etc.

Writing ATs requires learning the custom language, or utilizing an 'AT generator' which I have but not built for Qortal.

+The first Lottery AT test on Qortal

catbref, who is our original core coder before Cal took over the majority of the core work, and a Qortal founder, has developed a LOTTERY AT for Qortal.

This Lottery AT, is a FULLY DECENTRALIZED AUTOMATED LOTTERY wherein users can send QORT to the AT address, in increments of 10 QORT, and receive a TICKET for doing so. The lottery then randomly draws one of the submitted 'tickets' and pays the winner the pot.

+Differences between other AT-powered lottery systems you may have seen

As mentioned before, since Qortal is a completely CUSTOM platform, previously existing ATs for chains like BURST and QORA, will NOT function directly on Qortal. Therefore custom effort and development is required.

One of the differences between the QORTAL LOTTERY and others, is that ONLY ONE TICKET IS RECOGNIZED PER ACCOUNT. (As there was no way to guarantee fairness with multiple tickets being submitted from a single account with the Qortal lottery AT)

+How to 'play' the Qortal Lottery

In order to buy a 'ticket' for the Qortal test lottery, you simply follow the instructions laid out by catbref below: send 10 QORT to AWLgebzHMTEjkDPghahc28dvmJS4dyht88 to enter. Amounts over 10 QORT and multiple payments DO NOT increase chance of winning. AT balance paid to winner at block ~1087100.

if you wish to inspect the code yourself, as with everything on Qortal, the code for the lottery AT is open source and the link to that code is below.

Enjoy testing the new lottery AT on Qortal, and may the odds be ever in your favor :wink: (note - the odds are even no matter what, that is just a quote from Hunger Games movies that I thought would be funny to use here. The odds are EQUAL no matter what. heh.)

You CAN submit a ticket ONCE from ANY account, you just can't submit more than ONE from EACH. Hope everyone enjoys this, and the UI side will come in the future.

AT code at https://github.com/catbref/lottery

lottery_system.1670291695.txt.gz · Last modified: 12/05/2022 20:54 by gfactor