realcodywburns / TokenMint

:fish_cake: Token Browser and Manager for Ethereum Classic and Ethereum
Apache License 2.0
44 stars 27 forks source link

Read spreadsheet for Bounty program #90

Closed ansajjasna closed 6 years ago

ansajjasna commented 6 years ago

Hi, is it possible to read spreadsheet for bounty program and send tokens back to specific address? Is it possible to use oraclize and call some API outside from your project?

Thank you

elaineo commented 6 years ago

I don't understand the question. Can you provide an example?

ansajjasna commented 6 years ago

Hi, sure I will explain it little better

  1. I have some excel (spreadsheet) file with different ETH addresses inside. Is it somehow possible to parse this excel with TokenMint and send new ERC-20 tokens back to this addresses?

  2. Nowadays is very popular to allow only confirmed people to participate in crowdsale. Contributor has been cleared on the server side (accredited investors only). Can TokenMint ensure all contributors have accepted terms on sale (on the web)

elaineo commented 6 years ago

Right now that is not supported. That can be added as a future feature, however.

ansajjasna commented 6 years ago

ok thank you for this information. Can you tell me what are you using for communication between UI and block chain and maybe I can help with implementation.

elaineo commented 6 years ago

RPC connector here: https://github.com/ethereumproject/TokenMint/blob/master/src/lib/rpc.js

ansajjasna commented 6 years ago

@elaineo can you try to describe solution idea how you will do it?

elaineo commented 6 years ago

i don't know the best way to do it, i will have to think about it. it would be easier if you try to familiarize yourself with the code base and propose how you want to solve it.

ansajjasna commented 6 years ago

@elaineo last question. If I want to call function or event in solidity (to create whitelist) for example this event

event Whitelisted(address addr, bool status);

how can I do this with rpc.js? What i need to do to call this Whitelisted(address addr, bool status);

And how did you do a test of smart contract itself?

elaineo commented 6 years ago

you will need to create a new smart contract with the Whitelisted function. this is unrelated to rpc.js.

For testing smart contracts, I recommend Truffle (https://github.com/trufflesuite/truffle) or browser solidity (https://ethereum.github.io/browser-solidity/)

ansajjasna commented 6 years ago

@elaineo sure I understand that I need new smart contract. I know solidity but my problem is how to do a communication between rpc.js and solidity event. So if I add new event in smart contract how can I do a communication between UI and this event.

I want to call this event from your UI and add address to it

event Whitelisted(address addr, bool status);

elaineo commented 6 years ago

@ansajjasna you would need to create a filter (https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newfilter)

i don't like using event filters though, they tend to be slow.