-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Lower gas usage for creating a Multisig Wallet #3773
Conversation
We should be doing the library deploys using the Parity keys. So when you are happy, let me know and I can deploy & register using the required keys. I'm assuming there is no issues across multiple networks, e.g. Ropsten & Homestead from a UI & knowing where to find stuff perspective? (Doesn't look like there is, just confirming.) |
import { ERROR_CODES } from '~/api/transport/error'; | ||
import { wallet as walletAbi } from '~/contracts/abi'; | ||
import { wallet as walletCode } from '~/contracts/code'; | ||
import { walletLibraryRegKey, fullWalletCode } from '~/contracts/code/wallet'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot combine this import with the previous one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Okay sure. I registered it on Ropsten, so you can test. When everything is fine, I'll transfer the ownership of the registered key on Ropsten. |
there's ethcore/contracts repo for any contract stuff we do... |
This introduces a new Multisig Wallet that only uses about 500k gas to deploy (compared to ~1.8 to 2M gas for the previous version).
This uses a Multisig Wallet Library that has to be deployed to the network (if not, it fallbacks to the old one).
One has been deployed to Ropsten already. To deploy a new one:
js/src/contracts/code/wallet.js
[]
is fine)js/src/contracts/code/wallet.js
:walletLibrary
For new versions, when the Wallet is compiled, modify in the bytecode the references to
cafecafe...
with__WalletLibrary___________
The new contract is in
js/src/contracts/snippets/enhanced-wallet.sol