@Override protected NulsDigestData parseMessageBody(NulsByteBuffer byteBuffer) throws NulsException { return byteBuffer.readHash(); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.blockHash = byteBuffer.readHash(); }
@Override protected NulsDigestData parseMessageBody(NulsByteBuffer byteBuffer) throws NulsException { return byteBuffer.readHash(); }
@Override protected NulsDigestData parseMessageBody(NulsByteBuffer byteBuffer) throws NulsException { return byteBuffer.readHash(); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.requestId = byteBuffer.readHash(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.joinTxHash = byteBuffer.readHash(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.requestMessageHash = byteBuffer.readHash(); long hashListSize = byteBuffer.readVarInt(); if (hashListSize <= 0) { return; } this.hashList = new ArrayList<>(); for (int i = 0; i < hashListSize; i++) { hashList.add(byteBuffer.readHash()); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { long txCount = byteBuffer.readVarInt(); this.txHashList = new ArrayList<>(); for (int i = 0; i < txCount; i++) { this.txHashList.add(byteBuffer.readHash()); } }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.requestHash = byteBuffer.readHash(); this.success = byteBuffer.readBoolean(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.type = MessageDataType.getType(byteBuffer.readByte()); this.hash = byteBuffer.readHash(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.orginTxHash = byteBuffer.readHash(); this.contractAddress = byteBuffer.readBytes(Address.ADDRESS_LENGTH); this.success = byteBuffer.readByte(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { requestHash = byteBuffer.readHash(); long txCount = byteBuffer.readVarInt(); this.txList = new ArrayList<>(); for (int i = 0; i < txCount; i++) { try { this.txList.add(byteBuffer.readTransaction()); } catch (Exception e) { throw new NulsException(e); } } initTxMap(); }
@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.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.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readUint32(); this.time = byteBuffer.readUint48(); this.addresses = byteBuffer.readByLengthByte(); this.txType = byteBuffer.readUint16(); this.status = byteBuffer.readByte(); }
@Override public void parse(NulsByteBuffer byteBuffer) throws NulsException { this.txHash = byteBuffer.readHash(); this.blockHeight = byteBuffer.readUint32(); this.time = byteBuffer.readUint48(); this.addresses = byteBuffer.readByLengthByte(); this.txType = byteBuffer.readUint16(); this.status = byteBuffer.readByte(); }
@Override public void parse(NulsByteBuffer buffer) throws NulsException { handshakeType = buffer.readUint16(); severPort = buffer.readUint16(); bestBlockHeight = buffer.readUint32(); bestBlockHash = buffer.readHash(); networkTime = buffer.readUint48(); nodeIp = buffer.readString(); version = buffer.readString(); }
public InputDto(Coin input) { NulsByteBuffer byteBuffer = new NulsByteBuffer(input.getOwner()); try { this.fromHash = byteBuffer.readHash().getDigestHex(); this.fromIndex = (int) byteBuffer.readVarInt(); } catch (Exception e) { throw new NulsRuntimeException(e); } this.value = input.getNa().getValue(); }
@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(); }