@monolythium/core-sdk 0.5.0 → 0.5.2
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 +6 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -31
- package/dist/index.d.ts +31 -31
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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`
|
|
417
|
-
*
|
|
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
|
-
|
|
1523
|
+
bondLythoshi: uintFromWord(body.slice(32, 64))
|
|
1525
1524
|
};
|
|
1526
1525
|
}
|
|
1527
1526
|
function decodeSeatFilledEvent(topics, data) {
|
|
@@ -3194,7 +3193,7 @@ var TESTNET_69420 = {
|
|
|
3194
3193
|
network: "testnet-69420",
|
|
3195
3194
|
display_name: "Monolythium Testnet",
|
|
3196
3195
|
description: "Public Monolythium testnet. Testnet state may reset without notice; do not store value on this network.",
|
|
3197
|
-
genesis_hash: "
|
|
3196
|
+
genesis_hash: "0xaabb0f1ea0e9cae9dcc4fbd3e2af577c3568b209061207f919d159c2ab4ba995",
|
|
3198
3197
|
binary_sha: "6f33aa30",
|
|
3199
3198
|
rpc: [
|
|
3200
3199
|
{
|
|
@@ -9438,10 +9437,10 @@ function buildAdvertiseSeatTxFields(args) {
|
|
|
9438
9437
|
};
|
|
9439
9438
|
}
|
|
9440
9439
|
function buildApplyForSeatTxFields(args) {
|
|
9441
|
-
const
|
|
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:
|
|
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;
|