ChatCrawlersearch across public Telegram Open the app
I

IOST Developer Channel Chat

4 August 2019
2019-08-04×
4 August 2019
H
Is it IRC20 standard token?
I
to cutomize the transfer method!
H
Стикер
sticker.webp · 36 KB · click to show
😎
I
so when you transfer it picks a random token holder and sends 5% to them! Still not sure what I'm going to do with the project.
const bi = JSON.parse(blockchain.blockInfo()); const bn = bi.number; const hash = IOSTCrypto.sha3(bn.toString());
Oh so you used block number as a random seed :D
Стикер
sticker.webp · 41 KB · click to show
👍
How many item can be put in holders array?
They recomend not using the storage.map for this because you can only get 256 keys.
I
but that would have been ideal!
storage.put('holders', JSON.stringify(holders), payer);
You just stored whole array into json string :D
H
It would be easy to use
Haha yeah, it's going to get more expensive to update as we get more holders I'm sure.
but IOST is pretty good about only charging for the data added or removed when updating an object.
I
so I don't think it will get to bad.
I think the ram usage only increases per user at most 14bytes?
Since largest account name is 12 length
I
It's about 350 bytes to store a game of StackWave.
I
I'm going to work on replacing JSON with a more space efficiant structure soon.
I
that removes the keys, and the quotes, it really just gets down to the text.
It's like old school cookie structure
I
haha yeah, since I'm paying for the IRAM with StackWave any space I can trim is money in my pocket.
Recently, I'm trying to make a IRC721 token
However, as you know, IRC721 token costs much than IRC20 token
Since ram usage of IRC20 doesn't increase once the holder is set to contract.
H
But issuing IRC721 token means setting a new key for the token in the contract
I've been playing with IRC721 too!
I
Maybe we should collaborate on an IOST IRC721 viewer!
When I issued my IRC721 token it costs 187bytes, quite expensive than IRC20 :). Of course still cheaper than any other blockchain platform
H
I have a plan to make a IRC721 token standard market
H
Стикер
sticker.webp · 14 KB · click to show
😎
here's my current token viewer.
Фотография
click to show
In my case, once user clear the map
H
And when I colorize the mouse with the hash
That kind of colorful mouse could be seen :)
It's in a DB currently, but I will change that hashes to IRC721
And user can trade our rat token to your prize NFT
I
I'm really glad to see someone else playing with NFTs on IOST.
H
Стикер
sticker.webp · 14 KB · click to show
👍
Alright, lets talk metadata structure!
I
I copied this from CryptoKitties.
H
Is metadata on blockchain?
H
It means we should pay for ram for metadata :D
H
I asked cost-saving method for issuing IRC721 to Ziran Liu, iost developer
H
Let's hope he provides us some interesting trick :)
H
Integrating iTrx is easy?
I
Just made the token name variable in my code.
So where can user trade trx with itrx? Is there any site?
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