public class DeployService extends 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(InputStream in) |
Deploy |
fromJson(String json) |
Deploy |
makeDeploy(DeployParams deployParams,
DeployExecutable session,
DeployExecutable payment)
Creates a new unsigned Deploy message
|
Transfer |
newTransfer(Number amount,
PublicKey target,
Number id) |
Deploy |
signDeploy(Deploy deploy,
org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair) |
ModuleBytes |
standardPayment(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 ModuleBytes standardPayment(Number paymentAmount)
paymentAmount - the number of notes paying to execution enginepublic Deploy fromJson(String json) throws IOException
IOExceptionpublic Deploy fromJson(InputStream in) throws IOException
IOExceptionpublic int deploySizeInBytes(Deploy deploy)
deploy - the deploy whose size is to be obtainedCopyright © 2021. All rights reserved.