Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal ERC20 token implementation #11

Open
digitaldonkey opened this issue Feb 19, 2018 · 0 comments
Open

Drupal ERC20 token implementation #11

digitaldonkey opened this issue Feb 19, 2018 · 0 comments
Labels

Comments

@digitaldonkey
Copy link
Owner

There is a standard token contract created by Fabian Vogelsteller, which is considered the Ethereum standard token contract.

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
https://theethereum.wiki/w/index.php/ERC20_Token_Standard

It has serval implementations and there is some public interface at https://tokenfactory.surge.sh

The Idea: Create a Drupal Ethereum Submodule implementing that contract.

Skope 1

  • Deploy from Admin interface (to multiple networks). See: https://tokenfactory.surge.sh/#/factory
  • Connect token holder addresses (users) with Drupal Users
  • Add a watch function so that you can mirror contract activities using Drupal entities (browse transactions using views)

Skope 2

  • Enable a Tokensale with Drupal. Integrating Signup and user management.
  • User status page: How many Tokens I own (Check Balance)

Challange:
In order to build this there is some work on the Drupal Ethereum module infrastructure and the Ethereum-PHP required:

  • Manage deployment and interaction with contracts including the Ability to deploy on different networks (and keeping track of that in Drupal)
  • General Drupal mechanism to watch Contract transactions
  • ABI -> Contract Object in Ethereum-php library. The library should be able to use ABI based Contract Objects. You may use this objects to call (non-payable) contract functions and listen to filters and logs
  • We will need Array support in Ethereum-php library to be able to read all data (RLP encoding)
  • Evaluating a standard way to integrate the user frontend interaction with a Drupal maintained smart contract. This might be hardcoded relating to the contract specific functionality. But at least a standard way to provide web3 for Drupal frontend should be done (Currently working on the integration of web3 using Metamask Mascara)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant