@monolythium/core-sdk 0.5.0 → 0.5.1

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/dist/index.cjs CHANGED
@@ -413,8 +413,8 @@ var NODE_REGISTRY_SELECTORS = {
413
413
  advertiseSeat: "0x" + selectorHex("advertiseSeat(uint32,uint8,uint32,uint128,uint32,bytes32)"),
414
414
  /**
415
415
  * `applyForSeat(uint32,uint32,bytes)` returns `bytes32 appKey` (L6).
416
- * Payable — the native `value` carries the refundable application
417
- * escrow ({@link NODE_REGISTRY_SEAT_APPLICATION_ESCROW_LYTHOSHI}).
416
+ * Payable — the native `value` escrows the full operator self-bond at
417
+ * apply ({@link NODE_REGISTRY_MIN_SELF_BOND_LYTHOSHI}).
418
418
  */
419
419
  applyForSeat: "0x" + selectorHex("applyForSeat(uint32,uint32,bytes)"),
420
420
  /**
@@ -1380,7 +1380,6 @@ function deriveClusterAnchorAddress(roster, threshold) {
1380
1380
  return bytesToHex(blake3_js.blake3(concatBytes(...parts)).slice(0, 20));
1381
1381
  }
1382
1382
  var NODE_REGISTRY_TAG_CLUSTER_SEAT = 50;
1383
- var NODE_REGISTRY_SEAT_APPLICATION_ESCROW_LYTHOSHI = 100n * 1000000000000000000n;
1384
1383
  var NODE_REGISTRY_MIN_SELF_BOND_LYTHOSHI = 5000n * 1000000000000000000n;
1385
1384
  var NODE_REGISTRY_SEAT_KIND_ACTIVE = 0;
1386
1385
  var NODE_REGISTRY_SEAT_KIND_STANDBY = 1;
@@ -1521,7 +1520,7 @@ function decodeSeatAppliedEvent(topics, data) {
1521
1520
  seatId,
1522
1521
  operatorId,
1523
1522
  owner: bytesToHex(body.slice(12, 32)),
1524
- escrowLythoshi: uintFromWord(body.slice(32, 64))
1523
+ bondLythoshi: uintFromWord(body.slice(32, 64))
1525
1524
  };
1526
1525
  }
1527
1526
  function decodeSeatFilledEvent(topics, data) {
@@ -9438,10 +9437,10 @@ function buildAdvertiseSeatTxFields(args) {
9438
9437
  };
9439
9438
  }
9440
9439
  function buildApplyForSeatTxFields(args) {
9441
- const escrow = args.escrowLythoshi === void 0 ? NODE_REGISTRY_SEAT_APPLICATION_ESCROW_LYTHOSHI : parseU2562(args.escrowLythoshi, "escrowLythoshi");
9440
+ const selfBond = args.selfBondLythoshi === void 0 ? NODE_REGISTRY_MIN_SELF_BOND_LYTHOSHI : parseU2562(args.selfBondLythoshi, "selfBondLythoshi");
9442
9441
  return {
9443
9442
  ...seatTxEnvelope(args.chainId, args.nonce, args.fee),
9444
- value: escrow,
9443
+ value: selfBond,
9445
9444
  input: encodeApplyForSeatCalldata(args)
9446
9445
  };
9447
9446
  }
@@ -12424,7 +12423,6 @@ exports.NODE_REGISTRY_OPERATOR_ALIAS_MAX_BYTES = NODE_REGISTRY_OPERATOR_ALIAS_MA
12424
12423
  exports.NODE_REGISTRY_OPERATOR_MONIKER_MAX_BYTES = NODE_REGISTRY_OPERATOR_MONIKER_MAX_BYTES;
12425
12424
  exports.NODE_REGISTRY_PENDING_CHANGE_MAX_INTENT_ID = NODE_REGISTRY_PENDING_CHANGE_MAX_INTENT_ID;
12426
12425
  exports.NODE_REGISTRY_PUBLIC_SERVICE_MASK = NODE_REGISTRY_PUBLIC_SERVICE_MASK;
12427
- exports.NODE_REGISTRY_SEAT_APPLICATION_ESCROW_LYTHOSHI = NODE_REGISTRY_SEAT_APPLICATION_ESCROW_LYTHOSHI;
12428
12426
  exports.NODE_REGISTRY_SEAT_KIND_ACTIVE = NODE_REGISTRY_SEAT_KIND_ACTIVE;
12429
12427
  exports.NODE_REGISTRY_SEAT_KIND_STANDBY = NODE_REGISTRY_SEAT_KIND_STANDBY;
12430
12428
  exports.NODE_REGISTRY_SELECTORS = NODE_REGISTRY_SELECTORS;