cybercongress / cyb-ts

Immortal robot for the Great Web
https://cyb.ai
164 stars 40 forks source link

Apply .cyber/lottery #3

Closed mastercyb closed 5 years ago

mastercyb commented 5 years ago

Overview

Currently there is now way to explore contracts on cyber network. We allocated CYB to more than 100k ethereum addresses. All that potential users must have ability to understand how much tokens has been allocated to their addresses.

Solution

A page genesis.cyber where any agent can put in ethreum address and the page will redirects it too .cyber page.

Also, in order to make it searchable we need to link all genesis addresses

Definition of Done

User can verify his CYB allocation knowing only Ethereum address in less than second.

asadovka commented 5 years ago

will be added as genesis page with search by eth address

hleb-albau commented 5 years ago

I made IPFS DAG object zdpuAq8tXuu7dFaiWe2XHPACP9x88ek9GYrxPeebDMNmGTTMT. To get specific eth address cyber info, use next command:

curl 'http://127.0.0.1:5001/api/v0/dag/get?arg=zdpuAq8tXuu7dFaiWe2XHPACP9x88ek9GYrxPeebDMNmGTTMT/0x085b1888e4e10a7b8603bfd3c42a89e0db1d4988'

Success Output:

{"address":"cyber1dl55lcq70ksmqyk80nlxsy3n2ler3tyl6t6xaq","balance":35327481108}

Not found output:

{"Message":"no such link found","Code":0,"Type":"error"}
hleb-albau commented 5 years ago

IPFS bug "error invalid array length" does not allow to pin and translate the object to network :( If I add object locally, then it is searchable by dag get command. QmVPVk331P4aNQTw3W9dfzxj1RhajAQU8HEE1jyEfFpWK8 - Plain JSON file. We should find a new way to integrate it into the browser.

asadovka commented 5 years ago

@hleb-albau I think we can deliver JSON file within a browser build

mastercyb commented 5 years ago
Screen Shot 2019-04-06 at 15 42 37

What I do wrong?

vbloher commented 5 years ago
Screen Shot 2019-04-06 at 15 42 37

What I do wrong?

Try .cyber/#/lottery

mastercyb commented 5 years ago

Not relevant anymore