PolicyContract extends SmartContract { public BigInteger getMaxBlockSystemFee() throws IOException { return callFuncReturningInt(GET_MAX_BLOCK_SYSTEM_FEE); } PolicyContract(Neow3j neow); Integer getMaxTransactionsPerBlock(); Integer getMaxBlockSize(); BigInteger getMaxBlockSystemFee(); Integer getFeePerByte(); List<ScriptHash> getBlockedAccounts(); TransactionBuilder setMaxBlockSize(Integer maxBlockSize); TransactionBuilder setMaxTransactionsPerBlock(Integer maxTxPerBlock); TransactionBuilder setMaxBlockSystemFee(BigInteger maxBlockSystemFee); TransactionBuilder setFeePerByte(Integer fee); TransactionBuilder blockAccount(ScriptHash accountToBlock); TransactionBuilder unblockAccount(ScriptHash accountToUnblock); static final ScriptHash SCRIPT_HASH; }
@Test public void getMaxBlockSystemFee() throws IOException { setUpWireMockForInvokeFunction("getMaxBlockSystemFee", "policy_getMaxBlockSystemFee.json"); PolicyContract policyContract = new PolicyContract(this.neow3j); assertThat(policyContract.getMaxBlockSystemFee(), is(new BigInteger("900000000000"))); }