@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.owner = byteBuffer.readByLengthByte(); this.inputBalance=byteBuffer.readInt64(); this.outputBalance=byteBuffer.readInt64(); this.lockedPermanentBalance=byteBuffer.readInt64(); this.unLockedPermanentBalance=byteBuffer.readInt64(); this.contractFromBalance=byteBuffer.readInt64(); this.contractToBalance=byteBuffer.readInt64(); this.blockHeight=byteBuffer.readInt64(); this.txIndex=byteBuffer.readInt32(); int lockedTimeCount = (int) byteBuffer.readVarInt(); for (int i = 0; i < lockedTimeCount; i++) { LockedBalance balance=new LockedBalance(); balance.setLockedTime(byteBuffer.readInt64()); balance.setLockedBalance(byteBuffer.readInt64()); timeBalanceList.add(balance); for (int i = 0; i < lockedHeightCount; i++) { LockedBalance balance=new LockedBalance(); balance.setLockedTime(byteBuffer.readInt64()); balance.setLockedBalance(byteBuffer.readInt64()); heightBalanceList.add(balance);
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { try { tx = TransactionManager.getInstance(byteBuffer); } catch (Exception e) { Log.info("Load local transaction Error"); } sequence = byteBuffer.readInt64(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.deposit = Na.valueOf(byteBuffer.readInt64()); this.address = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.agentHash = byteBuffer.readHash(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.owner = byteBuffer.readByLengthByte(); this.na = Na.valueOf(byteBuffer.readInt64()); this.lockTime = byteBuffer.readUint48(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.sender = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.contractAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.value = byteBuffer.readInt64(); this.gasLimit = byteBuffer.readInt64(); this.price = byteBuffer.readInt64(); this.methodName = byteBuffer.readString(); this.methodDesc = byteBuffer.readString(); this.argsCount = byteBuffer.readByte(); byte length = this.argsCount; this.args = new String[length][]; for(byte i = 0; i < length; i++) { byte argCount = byteBuffer.readByte(); if(argCount == 0) { args[i] = new String[0]; } else { String[] arg = new String[argCount]; for(byte k = 0; k < argCount; k++) { arg[k] = byteBuffer.readString(); } args[i] = arg; } } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.sender = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.contractAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.value = byteBuffer.readInt64(); this.codeLen = byteBuffer.readInt32(); this.code = byteBuffer.readByLengthByte(); this.gasLimit = byteBuffer.readInt64(); this.price = byteBuffer.readInt64(); this.argsCount = byteBuffer.readByte(); byte length = this.argsCount; this.args = new String[length][]; for(byte i = 0; i < length; i++) { byte argCount = byteBuffer.readByte(); if(argCount == 0) { args[i] = new String[0]; } else { String[] arg = new String[argCount]; for(byte k = 0; k < argCount; k++) { arg[k] = byteBuffer.readString(); } args[i] = arg; } } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.deposit = Na.valueOf(byteBuffer.readInt64()); this.agentAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.packingAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.rewardAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.commissionRate = byteBuffer.readDouble(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.blockHeight=byteBuffer.readInt64(); this.hash=new NulsDigestData( byteBuffer.readByte(),byteBuffer.readByLengthByte()); this.preHash=new NulsDigestData( byteBuffer.readByte(),byteBuffer.readByLengthByte()); int listCount = (int) byteBuffer.readVarInt(); if (0 < listCount) { List<UtxoAccountsBalancePo> list = new ArrayList<>(); for (int i = 0; i < listCount; i++) { list.add(byteBuffer.readNulsData(new UtxoAccountsBalancePo())); } this.balanceList = list; } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.deposit = Na.valueOf(byteBuffer.readInt64()); this.agentHash = byteBuffer.readHash(); this.address = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.time = byteBuffer.readUint48(); this.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readVarInt(); this.delHeight = byteBuffer.readVarInt(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.hash = byteBuffer.readHash(); this.agentAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.packingAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.rewardAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.deposit = Na.valueOf(byteBuffer.readInt64()); this.commissionRate = byteBuffer.readDouble(); this.time = byteBuffer.readUint48(); this.blockHeight = byteBuffer.readVarInt(); this.delHeight = byteBuffer.readVarInt(); }