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

How to create contract with several owners in Parity 1.4 GUI? #3273

Closed
keuge opened this issue Nov 8, 2016 · 13 comments
Closed

How to create contract with several owners in Parity 1.4 GUI? #3273

keuge opened this issue Nov 8, 2016 · 13 comments
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.

Comments

@keuge
Copy link

keuge commented Nov 8, 2016

How to create contract with several owners in Parity 1.4 GUI?

@keorn keorn added Z1-question 🙋‍♀️ Issue is a question. Closer should answer. M6-ui labels Nov 8, 2016
@jacogr
Copy link
Contributor

jacogr commented Nov 8, 2016

When you deploy a contract, you specify the account that the contract is to be deployed from. Assuming that the contract has a function to call to add addresses, you can make a call to that in subsequent executions.

@keuge
Copy link
Author

keuge commented Nov 9, 2016

Can i do that with Parity UI?

@derhuerst
Copy link
Contributor

@keuge Sure! You can deploy a new contract in the "contracts" section. On any deployed contract, you can call static & non-static functions in the "individual contract" view.

@keuge
Copy link
Author

keuge commented Nov 9, 2016

How can i choose owners of the contract?

@derhuerst
Copy link
Contributor

In the Ethereum blockchain, users can create arbitrary contracts by issuing special transactions.

These contracts may have (and typically have) an owner field. In your contract, you may adapt that field or add more fields to hold multiple owners. With most contracts, you're the owner by default, as the sender of the contract creation transaction (see e.g. Registry.sol).

@keuge
Copy link
Author

keuge commented Nov 9, 2016

I need to make 3 owners for 1 contract. Can i do that with Parity 1.4.1 GUI? With getting set max value of sending eth from contract without owners.

@derhuerst
Copy link
Contributor

As I said, that depends on the contract code. Parity as well as its GUI doesn't directly have the notion of one or more owners, it can just call functions on contracts. Check the Solidity introduction for more information.

@derhuerst
Copy link
Contributor

What you would typically do:

  • Write a contract that has one or more fields to store the addresses of those 3 owners.
  • Deploy it using the Parity GUI.
  • Put the other two owners in place by calling the appropriate contract function(s), using the Parity GUI.

@derhuerst
Copy link
Contributor

Please reopen this issue if you come across issues that are related to Parity UI & calling contracts.

@keuge
Copy link
Author

keuge commented Nov 9, 2016

I cant create Contract in Parity UI like it creates in Mist UI when you creating contracts with several owners and set the maximum amount that can be sendede without contract owners.

I dont see how to do that on Parity UI.

@derhuerst
Copy link
Contributor

I don't have experience with deploying contracts using Mist. Maybe @ngotchac can help.

@jacogr
Copy link
Contributor

jacogr commented Nov 9, 2016

Ok, I have compiled the wallet.sol file locally and tried deploying via the UI. We definitely have an enhancement here. The issue in this case is that for the constructor parameters we don't handle the array of owner addresses correctly. So while easy to watch, we are falling down a bit deploying these kinds of contracts - mostly since our constructor parameters have been simple types.

We need an enhancement for that. Logged it at https://github.com/ethcore/parity/issues/3314

The good news is that proper multisig support is on the cards (https://github.com/ethcore/parity/issues/3282), so you won't need to fiddle with contracts yourself.

@ngotchac
Copy link
Contributor

ngotchac commented Nov 9, 2016

Plus, if we have contract snippets in the Write Contract section, we could easily load wallet.sol, compile it, deploy, profit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Projects
None yet
Development

No branches or pull requests

5 participants