Module java4ever.framework
Class MultisigBuilder
java.lang.Object
tech.deplant.java4ever.framework.contract.multisig.MultisigBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOwner(BigInteger pubkey) Add owner multisig builder.intConfirmations int.Deploy keys credentials.DeployHandle<? extends MultisigContract> prepare(int contextId, Credentials deployKeys) Prepare deploy handle.prepareAndDeploy(int contextId, Credentials deployKeys, GiverContract giver, BigInteger value) Prepare and deploy multisig contract.removeOwner(BigInteger pubkey) Remove owner multisig builder.setConfirmations(int confirmations) Sets confirmations.setDeployKeys(Credentials deployKeys) Sets deploy keys.setType(MultisigContract.Type type) Sets type.type()Type multisig contract . type.
-
Constructor Details
-
MultisigBuilder
public MultisigBuilder()Instantiates a new Multisig builder.
-
-
Method Details
-
prepare
public DeployHandle<? extends MultisigContract> prepare(int contextId, Credentials deployKeys) throws com.fasterxml.jackson.core.JsonProcessingException Prepare deploy handle.- Parameters:
contextId- the context iddeployKeys- the deploy keys- Returns:
- the deploy handle
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exception
-
prepareAndDeploy
public MultisigContract prepareAndDeploy(int contextId, Credentials deployKeys, GiverContract giver, BigInteger value) throws com.fasterxml.jackson.core.JsonProcessingException, tech.deplant.java4ever.binding.EverSdkException Prepare and deploy multisig contract.- Parameters:
contextId- the context iddeployKeys- the deploy keysgiver- the givervalue- the value- Returns:
- the multisig contract
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- the json processing exceptiontech.deplant.java4ever.binding.EverSdkException- the ever sdk exception
-
deployKeys
-
setDeployKeys
Sets deploy keys.- Parameters:
deployKeys- the deploy keys- Returns:
- the deploy keys
-
addOwner
Add owner multisig builder.- Parameters:
pubkey- the pubkey- Returns:
- the multisig builder
-
removeOwner
Remove owner multisig builder.- Parameters:
pubkey- the pubkey- Returns:
- the multisig builder
-
type
Type multisig contract . type.- Returns:
- the multisig contract . type
-
setType
Sets type.- Parameters:
type- the type- Returns:
- the type
-
confirmations
public int confirmations()Confirmations int.- Returns:
- the int
-
setConfirmations
Sets confirmations.- Parameters:
confirmations- the confirmations- Returns:
- the confirmations
-