public class DeployService
extends java.lang.Object
| Constructor and Description |
|---|
DeployService(ByteSerializerFactory serializerFactory,
HashService hashService,
JsonConversionService jsonService,
SigningService signingService,
TypesFactory typesFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
deploySizeInBytes(Deploy deploy)
Obtains the size of the deploy in bytes
|
Deploy |
fromJson(java.io.InputStream in) |
Deploy |
fromJson(java.lang.String json) |
Deploy |
makeDeploy(DeployParams deployParams,
DeployExecutable session,
DeployExecutable payment)
Creates a new unsigned Deploy message
|
Transfer |
newTransfer(java.lang.Number amount,
CLPublicKey target,
java.lang.Number id) |
Deploy |
signDeploy(Deploy deploy,
java.security.KeyPair keyPair) |
ModuleBytes |
standardPayment(java.lang.Number paymentAmount)
Creates a new standard payment
|
byte[] |
toBytes(Deploy deploy) |
public DeployService(ByteSerializerFactory serializerFactory, HashService hashService, JsonConversionService jsonService, SigningService signingService, TypesFactory typesFactory)
public byte[] toBytes(Deploy deploy)
public Deploy makeDeploy(DeployParams deployParams, DeployExecutable session, DeployExecutable payment)
deployParams - the deploy parameterssession - the sessionpayment - the paymentpublic Transfer newTransfer(java.lang.Number amount, CLPublicKey target, java.lang.Number id)
public ModuleBytes standardPayment(java.lang.Number paymentAmount)
paymentAmount - the number of notes paying to execution enginepublic Deploy fromJson(java.lang.String json)
public Deploy fromJson(java.io.InputStream in)
public int deploySizeInBytes(Deploy deploy)
deploy - the deploy whose size is to be obtained