ChatCrawlersearch across public Telegram Open the app
I

IOST Developer Channel Chat

12 August 2019
2019-08-12×
12 August 2019
I
For sure! Also have to figure out how to do like, 20 limited edition tokens under the prize name.
I think I’m going to do what crypto kitties does which is have a contract that keeps track of the token #.
Like this token is 1 of 10.
I
Like token IDs 2-20 are T-shirt’s and there’s 20 available.
Have you ever heard genesis kitty?
H
I heard it was sold at 300ETH
H
Стикер
sticker.webp · 46 KB · click to show
🌈
I
Imagine two tokens are added at the same time. Initially the contract accepts them in order of 1, 2, your server sees it,then blockchain reorgs and they are stored in order of 2, 1. Your server will have the wrong info.
Since we’re doing limited runs of unique art.
I’m having some commissioned by artist here in Austin TX.
I
Some posters and other stuff you might see in an arcade.
It's okay to have IDs like 1,2,3, just make sure you use some other unique identifier that won't change in reorg. The best thing to use is actually a txid.
I
It's more a problem with something like dice. Imagine you payout game 3 to game 2, and game 2 to game 3 because of an ID swap. It's a nightmare. txid can't experience problems in reorg because it won't change.
I
Фотография
click to show
It’s crazy what free tokens do! 350 new users over the weekend.
I
Not bad marketing at all.
Стикер
sticker.webp · 44 KB · click to show
👍
Two chains form, then one of them is orphaned
Longest chain will win, I believe.
I
It is uncommon, but happens.
H
Is the possibility of iost higher than any other blockchain?
I
Usually resolves in 2-3 blocks from what I see
I
How did your contract work go? 🙂
H
Your advice works well!
I
Фотография
click to show
I
That’s overall. I think I’m going to have it payout some rewards once a day and reset.
Using ArrayMap is really good to work
Фотография
click to show
Ah, I see you use normal storage with serialised array instead of arraymap
I
It can store more items this way actually
H
I heard that It can store about 65536 bytes
I
array map limited to 255 entries I think.
Another thing I recommend. Write fail conditons because api.iost.io has problems often.
I
It is better if you can get a few node IP addresses to use
I
And if you can publish on one node and read from another, it's even better.
Haven’t done it for mainnet yet.
I
Alpha.blockarca.de:30001
I
Some nodes do not implement SSL
This causes a lot of problems on frontend because most browsers like chrome will throw errors for http requests without SSL
For backend, not a problem.
Think about the scenario. Your website is https, then you try to use api.iost.io on frontend with iWalletJS, and you are routed to a node without SSL, it will downgrade to http then throw an error.
It's quite important that nodes implement it.
I
For backend, you don't have this problem.
like it costs 1000 to start a vote, but you get it back when you delete the vote.
I
but it doesn’t say what happens to all the IOST used to vote for the options.
Calendar: August 2019
MoTuWeThFrSaSu123497520628781961021194122481337143711531691718201912091212223124252262728293031
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog