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

Feature: lock the unlocked peeps #16

Open
TonioMacaronio opened this issue Sep 29, 2018 · 0 comments
Open

Feature: lock the unlocked peeps #16

TonioMacaronio opened this issue Sep 29, 2018 · 0 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@TonioMacaronio
Copy link
Contributor

TonioMacaronio commented Sep 29, 2018

Current behavior:
Now you can only send peeps to blockchain when you first send them to server.

Expected behavior:
Needs to get unlocked peeps list and make transactions to IPFS and to Ethereum blockchain.

Solution:
It’s needed to prepare sending data to Ethereum blockchain. Carefully look at how peeps are sending now.

Peeps are sending in SendPeepViewController.

Perhaps all you need - get from Peepeth list of unlocked peeps. They all will have some ipfs hash.
You need to use methods from Web3swiftService class:

  • prepare post/share/reply peep transaction. Here you will need peeps ipfs hash.
func preparePostPeepTransaction(peepDataHash: String, gasLimit: BigUInt = 27500, completion: @escaping (Result<TransactionIntermediate>) -> Void)
func prepareSharePeepTransaction(peepDataHash: String, gasLimit: BigUInt = 27500, completion: @escaping (Result<TransactionIntermediate>) -> Void)
func prepareReplyPeepTransaction(peepDataHash: String, gasLimit: BigUInt = 27500, completion: @escaping (Result<TransactionIntermediate>) -> Void)
  • then send transaction to blockchain.
func sendTransaction(transaction: TransactionIntermediate, password: String, completion: @escaping (Result<TransactionSendingResult>) -> Void)

To get more info get unlocked peeps and lock them from Desktop PeepEth in Chrome using Developer Tools to “reverse engineer it”.

Acceptance Criteria:
The code is written in new branch named feature/lockPeeps or something like that.
The code implements the targets described above.
The code can be merged into the develop branch without conflicts.

Required Skill:
Participants needs to have experience in Swift software development.

@TonioMacaronio TonioMacaronio added enhancement New feature or request Hacktoberfest labels Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant