Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Update Wallet to new Wallet Code #4805

Merged
merged 24 commits into from Mar 7, 2017
Merged

Update Wallet to new Wallet Code #4805

merged 24 commits into from Mar 7, 2017

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Mar 7, 2017

Updates the UI to use the new Wallet.
Now one can deploy contracts with a Wallet.

The Wallet Library should be deployed to any network where we want to have it.
The bytecode + ABI are in js/src/contracts/code/wallet.js : walletLibrary and walletLibraryABI.
The deployed address should then be added to the registry with walletLibrary as a key (the value of walletLibraryRegKey). It has been done for Kovan already.

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Mar 7, 2017
@arkpar arkpar added the B0-patch label Mar 7, 2017
@jacogr
Copy link
Contributor

jacogr commented Mar 7, 2017

Will add the above instructions to my auto-deploy tool as well. (So it just gets done by click of a button) https://github.com/ethcore/parity/pull/4726

return WalletsUtils
.isWallet(api, address)
.then((isWallet) => {
if (!isWallet) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Really happy with this approach. (For both deploy & estimate)

transaction.gasUsed
? (
<span>
<span>used</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would have made sense to i18n these additions, but no matter, busy with this actual file in my conversion branch, so will be ok.

if (!isEqual(localHashes, this.localHashes)) {
@action setLocalHashes = (localHashes = []) => {
// Use slice to make sure they are both Arrays (MobX uses Objects for Observable Arrays)
if (!isEqual(localHashes.slice(), this.localHashes.slice())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which one is more performant from a MobX perspective - .peek() or .slice() (Typically do use the former when it is a known (i.e. on this.) value

@jacogr
Copy link
Contributor

jacogr commented Mar 7, 2017

Ok, happy with it from a code perspective, it needs to go for 1.6 - full end-to-end scenario testing will happen once merged.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 7, 2017
@jacogr jacogr merged commit 4d08e7b into master Mar 7, 2017
@jacogr jacogr deleted the ng-update-wallet branch March 7, 2017 19:19
jacogr pushed a commit that referenced this pull request Mar 7, 2017
* Update Wallet Version

* Update Wallet Library

* Update Wallets Bytecodes

* Typo

* Separate Deploy in Contract API

* Use the new Wallet ABI // Update wallet code

* WIP .// Deploy from Wallet

* Update Wallet contract

* Contract Deployment for Wallet

* Working deployments for Single Owned Wallet contracts

* Linting

* Create a Wallet from a Wallet

* Linting

* Fix Signer transactions // Add Gas Used for transactions

* Deploy wallet contract fix

* Fix too high gas estimate for Wallet Contract Deploys

* Final piece ; deploying from Wallet owned by wallet

* Update Wallet Code

* Updated the Wallet Codes

* Fixing Wallet Deployments

* Add Support for older wallets

* Linting
arkpar pushed a commit that referenced this pull request Mar 8, 2017
* Update Wallet to new Wallet Code (#4805)

* Update Wallet Version

* Update Wallet Library

* Update Wallets Bytecodes

* Typo

* Separate Deploy in Contract API

* Use the new Wallet ABI // Update wallet code

* WIP .// Deploy from Wallet

* Update Wallet contract

* Contract Deployment for Wallet

* Working deployments for Single Owned Wallet contracts

* Linting

* Create a Wallet from a Wallet

* Linting

* Fix Signer transactions // Add Gas Used for transactions

* Deploy wallet contract fix

* Fix too high gas estimate for Wallet Contract Deploys

* Final piece ; deploying from Wallet owned by wallet

* Update Wallet Code

* Updated the Wallet Codes

* Fixing Wallet Deployments

* Add Support for older wallets

* Linting

* SMS Faucet (#4774)

* Faucet

* Remove flakey button-index testing

* Only display faucet when sms verified (mainnet)

* simplify availability checks

* WIP

* Resuest from verified -> verified

* Update endpoint, display response text

* Error icon on errors

* Parse hash text response

* Use /api/:address endpoint

* hash -> data

* Adjust sms-certified message

* Fix SectionList hovering issue (#4749)

* Fix SectionList Items hover when <3 items

* Even easier...

* lint (new)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants