public class InnerContractsService
extends java.lang.Object
Constructor | Description |
---|---|
InnerContractsService() |
Modifier and Type | Method | Description |
---|---|---|
static Contract |
createFreshTU(int amount,
java.util.Set<com.icodici.crypto.PublicKey> ownerKeys) |
Deprecated.
use
createFreshU(int, Set) instead. |
static Contract |
createFreshTU(int amount,
java.util.Set<com.icodici.crypto.PublicKey> ownerKeys,
boolean withTestU) |
Deprecated.
use
createFreshU(int, Set, boolean) instead. |
static Contract |
createFreshU(int amount,
java.util.Set<com.icodici.crypto.PublicKey> ownerKeys) |
Creates fresh contract in the first revision with "U".
|
static Contract |
createFreshU(int amount,
java.util.Set<com.icodici.crypto.PublicKey> ownerKeys,
boolean withTestU) |
Creates fresh contract in the first revision with "U".
|
static Decimal |
getDecimalField(Contract contract,
java.lang.String fieldName) |
Return field from given contract as Decimal if it possible.
|
public static Contract createFreshU(int amount, java.util.Set<com.icodici.crypto.PublicKey> ownerKeys) throws java.io.IOException
amount
- is initial number of U that will be have an ownerownerKeys
- is public keys that will became an owner of Ujava.io.IOException
- with exceptions while contract preparing@Deprecated public static Contract createFreshTU(int amount, java.util.Set<com.icodici.crypto.PublicKey> ownerKeys) throws java.io.IOException
createFreshU(int, Set)
instead.java.io.IOException
public static Contract createFreshU(int amount, java.util.Set<com.icodici.crypto.PublicKey> ownerKeys, boolean withTestU) throws java.io.IOException
amount
- is initial number of U that will be have an ownerownerKeys
- is public keys that will became an owner of "U"withTestU
- if true U will be created with test "U"java.io.IOException
- with exceptions while contract preparing@Deprecated public static Contract createFreshTU(int amount, java.util.Set<com.icodici.crypto.PublicKey> ownerKeys, boolean withTestU) throws java.io.IOException
createFreshU(int, Set, boolean)
instead.java.io.IOException
public static Decimal getDecimalField(Contract contract, java.lang.String fieldName)
contract
- is contract from which field should be got.fieldName
- is name of the field to got