Really simple question, with presumably involved answer:
I'm trying to understand how to make what starts off as a simple hello_world
application where I sell the integers "1-2-3..50"
to USER=account
who provides me PRICE=n XLM
at contract Z
. This seems as simple as I can make it, but then it also suggests I'd like endpoints for:
SELECT
who, whichUSER
, has boughtasset=="1"
?LIST
whichasset
s have been bought?LIST
what assets hasUSER=="x"
bought?SET PRICE=n*1.2
for future sales of integers.CREATE
a new asset,"51"
, and make it available for sale.
I'm an experienced developer, but don't have a full appreciation for the toolchain and tradecraft/design patterns that go into this.
Does this mean I'm building only a contract? Because by golly it already feels like a whole application. Where does it modularize?
How much of this is something that the stellar chain/dev environment already gives? If I /think/ this is all I need in my most minimal contract, what else do I need to consider too?
For example, it costs money to run the ops 1-5, right? How do I set up the accounts that would receive these operations? Also, to complicate slightly more, suppose I wanted to have privacy on some of these, or permissions on (5) to only allow me=USER==0
to do this?
What are the best references for systematically understanding and correcting every foolish assumption I have above?