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

Tests and Wallets #12

Merged
merged 1 commit into from
Aug 6, 2019
Merged

Tests and Wallets #12

merged 1 commit into from
Aug 6, 2019

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Aug 1, 2019

The PR adds deposit wallets (#8) and truffle tests (#2), and does a bunch of general cleanup.
By bundling the wallet contract management in to the main contract, we can simplify deploying for users (just call a func instead of deploying manually) and keep a central map of one wallet contract per cid. The current gas used create a new wallet is 226935.

The gofs command can fetch a wallet address, and create a new one if none exists:

> gofs wallet zb2rhe5P4gXftAwvA4eXQ5HJwsER2owDyS9sKaQRRVQPn93bA
Deposit wallet: 0x9D5137f8C7561901700EE446bf11B54C5aC1aE9F

> gofs wallet bafkreiffxev2yj33bjsmu3p3jvhnvyxnroqkyp6v3bs6hkuef4bjq6evlm
No deposit wallet exists for this CID. Create one? Y/N
> y
Created new wallet - Tx: 0x6b15dbea293d6ca9b094f8b2df5f8bb6944f853d8f77e4aac5e01f94a8947835
Deposit wallet: 0x9bA1FE833C349E8DEf46506bDf11a1A16815360a

@jmank88 jmank88 marked this pull request as ready for review August 2, 2019 17:02
@jmank88 jmank88 requested a review from r-gochain August 2, 2019 17:02
@jmank88 jmank88 force-pushed the tests-wallets branch 6 times, most recently from 81c3c6b to bd462ef Compare August 4, 2019 14:18
@jmank88 jmank88 merged commit ef06b5f into master Aug 6, 2019
@jmank88 jmank88 deleted the tests-wallets branch August 6, 2019 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants