Package nxt.addons
Class NullContractRunnerConfig
java.lang.Object
nxt.addons.NullContractRunnerConfig
- All Implemented Interfaces:
ContractRunnerConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.addons.ContractRunnerConfig
ContractRunnerConfig.RunnerMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decryptFrom(byte[] publicKey, EncryptedData encryptedData, boolean uncompress) encryptTo(byte[] publicKey, byte[] data, boolean compress) longintlonggetCurrentFeeRateNQTPerFXT(int chainId) shortlonggetFeeRateNQTPerFXT(int chainId) longgetManagedAccountId(int index) byte[]getManagedAccountPrivateKey(int index) Returns a private key of the managed account with the specified indexbyte[]getManagedAccountPublicKey(int index) byte[]intlonglongbyte[]byte[]byte[]byte[]voidbooleanbooleanbooleanboolean
-
Constructor Details
-
NullContractRunnerConfig
-
-
Method Details
-
getPublicKey
public byte[] getPublicKey()- Specified by:
getPublicKeyin interfaceContractRunnerConfig
-
getPublicKeyHexString
- Specified by:
getPublicKeyHexStringin interfaceContractRunnerConfig
-
getAccountId
public long getAccountId()- Specified by:
getAccountIdin interfaceContractRunnerConfig
-
getAccount
- Specified by:
getAccountin interfaceContractRunnerConfig
-
getAccountRs
- Specified by:
getAccountRsin interfaceContractRunnerConfig
-
isAutoFeeRate
public boolean isAutoFeeRate()- Specified by:
isAutoFeeRatein interfaceContractRunnerConfig
-
getAutoFeeRatePriority
- Specified by:
getAutoFeeRatePriorityin interfaceContractRunnerConfig
-
getMinBundlerBalanceFXT
public long getMinBundlerBalanceFXT()- Specified by:
getMinBundlerBalanceFXTin interfaceContractRunnerConfig
-
getMinBundlerFeeLimitFQT
public long getMinBundlerFeeLimitFQT()- Specified by:
getMinBundlerFeeLimitFQTin interfaceContractRunnerConfig
-
getFeeRateNQTPerFXT
public long getFeeRateNQTPerFXT(int chainId) - Specified by:
getFeeRateNQTPerFXTin interfaceContractRunnerConfig
-
getCurrentFeeRateNQTPerFXT
public long getCurrentFeeRateNQTPerFXT(int chainId) - Specified by:
getCurrentFeeRateNQTPerFXTin interfaceContractRunnerConfig
-
getDefaultDeadline
public short getDefaultDeadline()- Specified by:
getDefaultDeadlinein interfaceContractRunnerConfig
-
getParams
- Specified by:
getParamsin interfaceContractRunnerConfig
-
getRunnerMode
- Specified by:
getRunnerModein interfaceContractRunnerConfig
-
isValidator
public boolean isValidator()- Specified by:
isValidatorin interfaceContractRunnerConfig
-
isTriggerTransactionAlwaysIncluded
public boolean isTriggerTransactionAlwaysIncluded()- Specified by:
isTriggerTransactionAlwaysIncludedin interfaceContractRunnerConfig
-
getCatchUpInterval
public int getCatchUpInterval()- Specified by:
getCatchUpIntervalin interfaceContractRunnerConfig
-
getMaxSubmittedTransactionsPerInvocation
public int getMaxSubmittedTransactionsPerInvocation()- Specified by:
getMaxSubmittedTransactionsPerInvocationin interfaceContractRunnerConfig
-
getRunnerSeed
public byte[] getRunnerSeed()- Specified by:
getRunnerSeedin interfaceContractRunnerConfig
-
getManagedAccountPrivateKey
public byte[] getManagedAccountPrivateKey(int index) Description copied from interface:ContractRunnerConfigReturns a private key of the managed account with the specified indexUse this method only if you require specific access to the managed account private key. Prefer
AbstractContractContext.createTransaction(APICall.Builder, boolean, int)for general creation of transactions.- Specified by:
getManagedAccountPrivateKeyin interfaceContractRunnerConfig- Parameters:
index- Index of the managed account- Returns:
- private key as byte array
-
getManagedAccountPublicKey
public byte[] getManagedAccountPublicKey(int index) - Specified by:
getManagedAccountPublicKeyin interfaceContractRunnerConfig
-
getManagedAccountId
public long getManagedAccountId(int index) - Specified by:
getManagedAccountIdin interfaceContractRunnerConfig
-
getManagedAccountsMasterPublicKey
public byte[] getManagedAccountsMasterPublicKey()- Specified by:
getManagedAccountsMasterPublicKeyin interfaceContractRunnerConfig
-
isManagedAccountsEnabled
public boolean isManagedAccountsEnabled()- Specified by:
isManagedAccountsEnabledin interfaceContractRunnerConfig
-
getContractProvider
- Specified by:
getContractProviderin interfaceContractRunnerConfig
-
encryptTo
- Specified by:
encryptToin interfaceContractRunnerConfig
-
decryptFrom
- Specified by:
decryptFromin interfaceContractRunnerConfig
-
getPrivateKey
public byte[] getPrivateKey()- Specified by:
getPrivateKeyin interfaceContractRunnerConfig
-
getValidatorPrivateKey
public byte[] getValidatorPrivateKey()- Specified by:
getValidatorPrivateKeyin interfaceContractRunnerConfig
-
getStatus
- Specified by:
getStatusin interfaceContractRunnerConfig
-
init
- Specified by:
initin interfaceContractRunnerConfig
-