evernode-js-client 0.5.10 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -12878,7 +12878,7 @@ class HostClient extends BaseEvernodeClient {
|
|
12878
12878
|
await this.xrplAcc.sellNft(offer.index);
|
12879
12879
|
}
|
12880
12880
|
|
12881
|
-
async
|
12881
|
+
async isTransferee() {
|
12882
12882
|
|
12883
12883
|
// Check the availability of TRANSFEREE state for this host address.
|
12884
12884
|
const stateTransfereeAddrKey = StateHelpers.generateTransfereeAddrStateKey(this.xrplAcc.address);
|
@@ -14326,7 +14326,7 @@ class StateHelpers {
|
|
14326
14326
|
activeInstances: stateDataBuf.readUInt32BE(HOST_ACT_INS_COUNT_OFFSET),
|
14327
14327
|
lastHeartbeatIndex: Number(stateDataBuf.readBigUInt64BE(HOST_HEARTBEAT_LEDGER_IDX_OFFSET)),
|
14328
14328
|
version: `${stateDataBuf.readUInt8(HOST_VERSION_OFFSET)}.${stateDataBuf.readUInt8(HOST_VERSION_OFFSET + 1)}.${stateDataBuf.readUInt8(HOST_VERSION_OFFSET + 2)}`,
|
14329
|
-
|
14329
|
+
isATransferer: (stateDataBuf.length > HOST_TRANSFER_FLAG_OFFSET && (stateDataBuf.readUInt8(HOST_TRANSFER_FLAG_OFFSET) === PENDING_TRANSFER)) ? TRANSFER_STATES.HAS_A_TRANSFER : TRANSFER_STATES.NO_TRANSFER
|
14330
14330
|
}
|
14331
14331
|
if (stateDataBuf.length > HOST_REG_TIMESTAMP_OFFSET)
|
14332
14332
|
data.registrationTimestamp = Number(stateDataBuf.readBigUInt64BE(HOST_REG_TIMESTAMP_OFFSET));
|