@inversealtruism/cairnx-core 0.2.10 → 0.2.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.11
4
+
5
+ - `isIndex` is exported from the root: a position or height as CONVENTION section 33 takes it, a safe integer >= 0.
6
+ cairnx-replica's Scanner checks a served merkle proof's position with it. `resolve()` is unchanged.
7
+ - `test/vectors/cases-rules.json` grows from 5 to 12 vectors (`conformance/gen-rule-vectors.mjs`; the first 5 keep
8
+ their bytes), for two live rules that no vector, the replay corpus or the fuzz reached: a partial offer's remainder
9
+ below its min is bought by paying exactly the remainder (CONVENTION section 19), and of two reveals of a name with
10
+ one commit height and one position the lower id wins, in both orders of mining, at each of the contest's three
11
+ sites: the V25 reservation, the registration below V25 and the V26 recapture reservation. Both the
12
+ TypeScript resolver and the Python reference replay them (`test/vectors.test.ts`, `conformance/crosscheck-resolve.mjs`).
13
+ `test/preflight.test.ts` compares `previewFill` with the resolver at such a tail. The rules are unchanged.
14
+ - `fillEndorsement` refuses, at a tip at or above `LEGACY_HOLD_SUNSET_HEIGHT` (60,044), a fill of an open CSD offer
15
+ whose target is the offer id. From that height no claim hold made before V28 is live, so `resolve()` refuses every
16
+ such fill (`FILL_WRONG_TARGET` or `FILL_NO_LIVE_CLAIM`) after the payment moved, while `fillEndorsement` endorsed it
17
+ when the served offer showed a hold by the caller without a reservation. Only the answer on fills the chain
18
+ refuses changes: over the 54 cases of cairn-sdk 0.9.1's review (offer shapes at the sunset and at 148,000, a
19
+ reservation's fclaim target with ids in either case, taker-bound offers and a maker's RFQ answer, token wants, a
20
+ name sale, a partial offer's second fill, the last legacy claim below the sunset, and 24 served lies), 16 verdicts
21
+ change, each from endorsed to refused on a fill `resolve()` refuses, and none on a fill it applies
22
+ (`test/preflight.test.ts` checks the rule against `resolve()` at both tips and below the sunset). Consumers that
23
+ carry this rule themselves (cairn-sdk 0.9.1's `preverifyOffer`, the wallet's fill preflight) may drop it once they
24
+ take this version. The deprecated `fillIsSafe` keeps its frozen verdicts.
25
+ - Pins `@inversealtruism/csd-codec` 0.1.19 (`verifyMerkleProof` proves the position).
26
+
3
27
  ## 0.2.10
4
28
 
5
29
  - A held replay context: `newReplayContext()` keeps `resolve()`'s fold between tips. `advance(toHeight, events)`
package/dist/index.cjs CHANGED
@@ -158,6 +158,7 @@ __export(index_exports, {
158
158
  finalizeWinnerCheck: () => finalizeWinnerCheck,
159
159
  hasLiveClaim: () => hasLiveClaim,
160
160
  isChainHeight: () => isChainHeight,
161
+ isIndex: () => isIndex,
161
162
  isName: () => isName,
162
163
  isNameGive: () => isNameGive,
163
164
  isOpenClaimLane: () => isOpenClaimLane,
@@ -2432,6 +2433,27 @@ function requiredClaimDepth(valueSats, height) {
2432
2433
  return { depth: max, reversalPct: Math.pow(r, max) * 100, capped: true };
2433
2434
  }
2434
2435
 
2436
+ // src/holdcount.ts
2437
+ var lastLegacyClaimEnd = V28_HEIGHT - 1 + claimWindowAt(V28_HEIGHT - 1);
2438
+ var LEGACY_HOLD_SUNSET_HEIGHT = lastLegacyClaimEnd + claimGraceOf(lastLegacyClaimEnd);
2439
+ function countOtherHoldsAtGrant(candidates, target, me, closed = /* @__PURE__ */ new Set()) {
2440
+ if (!(Number.isSafeInteger(target.height) && target.height >= LEGACY_HOLD_SUNSET_HEIGHT))
2441
+ return { ok: false, reason: `this reservation was granted at ${target.height}, before block ${LEGACY_HOLD_SUNSET_HEIGHT}, while claims made before V28 could still count against the cap; it cannot be checked here` };
2442
+ const meL = String(me).toLowerCase(), tid = String(target.id).toLowerCase(), toffer = String(target.offer).toLowerCase();
2443
+ const offers = /* @__PURE__ */ new Set();
2444
+ for (const c of candidates) {
2445
+ const cid = String(c.id).toLowerCase();
2446
+ if (cid === tid || closed.has(cid) || String(c.proposer).toLowerCase() !== meL) continue;
2447
+ if (!(c.height < target.height || c.height === target.height && c.pos < target.pos)) continue;
2448
+ if (!(fclaimHoldEnd(Number(c.expiresEpoch)) >= target.height)) continue;
2449
+ const rec = parseRecord(String(c.uri), String(c.payloadHash));
2450
+ if (!rec || rec.t !== "fclaim") continue;
2451
+ const offer2 = String(rec.offer).toLowerCase();
2452
+ if (offer2 !== toffer) offers.add(offer2);
2453
+ }
2454
+ return { ok: true, count: offers.size };
2455
+ }
2456
+
2435
2457
  // src/preflight.ts
2436
2458
  function previewFill(offer2, payRaw) {
2437
2459
  const pay = BigInt(payRaw);
@@ -2540,6 +2562,7 @@ function fillEndorsement(offer2, me, pay, tip, opts) {
2540
2562
  } else if (holdRouted) {
2541
2563
  return refuse("v2.8: a live fclaim hold routes this fill - pass opts.fillTargetId (use fillTargetId(offer, tip)) so the endorsement can verify what your attest targets");
2542
2564
  }
2565
+ if (tip >= LEGACY_HOLD_SUNSET_HEIGHT && isOpenClaimLane(offer2, tip) && !holdRouted) return refuse(`from block ${LEGACY_HOLD_SUNSET_HEIGHT} an open CSD offer is filled only through a reservation: an attest on the offer id is chain-rejected after the payment moved (reserve the offer and attest the fclaim txid)`);
2543
2566
  if (isTokenWant(offer2.want))
2544
2567
  return { verdict: "not-endorsable", reason: "token-priced want - deliverability is the attester's token balance, which a pure record predicate cannot see; NOT an endorsement and NOT a refusal (verify your token balance + proven terms, then proceed)", preview };
2545
2568
  if (!preview.deliverable) {
@@ -2604,7 +2627,7 @@ function nameView(names, name) {
2604
2627
  }
2605
2628
 
2606
2629
  // src/version.ts
2607
- var CAIRNX_CORE_VERSION = "0.2.10";
2630
+ var CAIRNX_CORE_VERSION = "0.2.11";
2608
2631
 
2609
2632
  // src/gates.ts
2610
2633
  var GATE_HEIGHTS = Object.freeze({
@@ -2887,27 +2910,6 @@ function myProvenFillClosedOffer(fill, fclaim2, offerEv, me, grantHeight) {
2887
2910
  return need.every((leg) => ptAmt(fill.paidTo?.[lc(leg.to)]) >= leg.value);
2888
2911
  }
2889
2912
 
2890
- // src/holdcount.ts
2891
- var lastLegacyClaimEnd = V28_HEIGHT - 1 + claimWindowAt(V28_HEIGHT - 1);
2892
- var LEGACY_HOLD_SUNSET_HEIGHT = lastLegacyClaimEnd + claimGraceOf(lastLegacyClaimEnd);
2893
- function countOtherHoldsAtGrant(candidates, target, me, closed = /* @__PURE__ */ new Set()) {
2894
- if (!(Number.isSafeInteger(target.height) && target.height >= LEGACY_HOLD_SUNSET_HEIGHT))
2895
- return { ok: false, reason: `this reservation was granted at ${target.height}, before block ${LEGACY_HOLD_SUNSET_HEIGHT}, while claims made before V28 could still count against the cap; it cannot be checked here` };
2896
- const meL = String(me).toLowerCase(), tid = String(target.id).toLowerCase(), toffer = String(target.offer).toLowerCase();
2897
- const offers = /* @__PURE__ */ new Set();
2898
- for (const c of candidates) {
2899
- const cid = String(c.id).toLowerCase();
2900
- if (cid === tid || closed.has(cid) || String(c.proposer).toLowerCase() !== meL) continue;
2901
- if (!(c.height < target.height || c.height === target.height && c.pos < target.pos)) continue;
2902
- if (!(fclaimHoldEnd(Number(c.expiresEpoch)) >= target.height)) continue;
2903
- const rec = parseRecord(String(c.uri), String(c.payloadHash));
2904
- if (!rec || rec.t !== "fclaim") continue;
2905
- const offer2 = String(rec.offer).toLowerCase();
2906
- if (offer2 !== toffer) offers.add(offer2);
2907
- }
2908
- return { ok: true, count: offers.size };
2909
- }
2910
-
2911
2913
  // src/admission.ts
2912
2914
  function provenOfferRefusal(rec, tx) {
2913
2915
  if (tx.domain !== DOMAIN) return `not a ${DOMAIN} Propose (domain ${JSON.stringify(String(tx.domain))})`;
@@ -3178,6 +3180,7 @@ var import_csd_codec7 = require("@inversealtruism/csd-codec");
3178
3180
  finalizeWinnerCheck,
3179
3181
  hasLiveClaim,
3180
3182
  isChainHeight,
3183
+ isIndex,
3181
3184
  isName,
3182
3185
  isNameGive,
3183
3186
  isOpenClaimLane,
package/dist/index.d.cts CHANGED
@@ -154,7 +154,7 @@ declare const NAME_GRACE_EPOCHS = 720;
154
154
  declare const NAME_PREMIUM_START = 20n;
155
155
  declare const NAME_PREMIUM_DECAY_EPOCHS = 720;
156
156
  /** Fee to claim a name whose lease lapsed (grace over): nameRegFee × a linearly-decaying
157
- * premium. Pure in (name, epochsPastGraceEnd) — deterministic for every resolver. */
157
+ * premium. Pure in (name, epochsPastGraceEnd): deterministic for every resolver. */
158
158
  declare function expiredClaimFee(name: string, epochsPastGraceEnd: number, height: number): bigint;
159
159
  declare const MAX_RECORD_BYTES = 512;
160
160
  declare const MAX_AMOUNT: bigint;
@@ -397,9 +397,9 @@ interface NameState {
397
397
  effectiveHeight: number;
398
398
  addr?: string;
399
399
  locked: boolean;
400
- /** v1.3: ownership basis is a paid fill — record is displacement-immune (claimId/heights = the fill) */
400
+ /** v1.3: ownership basis is a paid fill: record is displacement-immune (claimId/heights = the fill) */
401
401
  viaFill?: true;
402
- /** v1.5: the lease — owned through this epoch; +grace for owner-only renewal; then premium re-claim */
402
+ /** v1.5: the lease: owned through this epoch; +grace for owner-only renewal; then premium re-claim */
403
403
  paidThroughEpoch?: number;
404
404
  /** v1.5: true once the lease + grace lapsed (record kept for history; name is claimable) */
405
405
  expired?: true;
@@ -408,7 +408,7 @@ interface NameState {
408
408
  * only, so every pre-v2.5 canonical hash stays byte-identical. */
409
409
  pending?: true;
410
410
  finalizeBy?: number;
411
- /** v1.9: ENS-class identity — a charset-locked string→string map (doc 36). INERT cosmetic metadata
411
+ /** v1.9: ENS-class identity: a charset-locked string→string map (doc 36). INERT cosmetic metadata
412
412
  * (NOT a send target; the verified address is `addr`). Materialized at v1.9+ tips only, cleared on
413
413
  * every ownership change, absent when empty. */
414
414
  profile?: Record<string, string>;
@@ -448,7 +448,7 @@ interface OfferState {
448
448
  fills?: FillEntry[];
449
449
  /** v1.2: the bid this offer responds to */
450
450
  bid?: string;
451
- /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse —
451
+ /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse:
452
452
  * a past claimUntilHeight just means no live claim (the fields persist as the last-claim record). */
453
453
  claimedBy?: string;
454
454
  claimUntilHeight?: number;
@@ -670,12 +670,12 @@ declare function requiredClaimDepth(valueSats: number | bigint, height: number):
670
670
 
671
671
  /** What a payment of `pay` (base units of CSD, the seller-paid amount to `want.payto`) would DELIVER
672
672
  * against a CSD-priced offer, computed with the resolver's exact expressions. Returns the delivered
673
- * token `got`, the treasury `fee`, and the maker `rebate` — plus a `deliverable` flag that is false
673
+ * token `got`, the treasury `fee`, and the maker `rebate`, plus a `deliverable` flag that is false
674
674
  * exactly when the resolver would reject the fill AFTER the CSD moved (the C3 zero-delivery trap).
675
675
  *
676
676
  * Only meaningful for CSD-priced token offers (a `want.value`). For a name give, `got` is 1 (a name is
677
677
  * indivisible) when `pay >= want.value`. Token-for-token offers (`want.ticker`) return deliverable:false
678
- * with reason "not-csd-priced" — their deliverability depends on the buyer's balance, out of scope here. */
678
+ * with reason "not-csd-priced": their deliverability depends on the buyer's balance, out of scope here. */
679
679
  interface FillPreview {
680
680
  deliverable: boolean;
681
681
  reason?: "not-open" | "not-csd-priced" | "below-min" | "zero-delivery" | "ok";
@@ -695,9 +695,9 @@ declare function previewFill(offer: OfferState, payRaw: bigint | string | number
695
695
  * seller, zero-value entries omitted (a 0 output is unbuildable and the resolver requires nothing).
696
696
  *
697
697
  * Returns [] for a token-priced offer (a token⇄token fill carries NO CSD outputs) and null when the
698
- * payment is undeliverable — gate with fillIsSafe FIRST; this sizes outputs, it does not re-judge
698
+ * payment is undeliverable: gate with fillIsSafe FIRST; this sizes outputs, it does not re-judge
699
699
  * claims/takers. Until 2026-07-06 this map was hand-mirrored in the wallet's fillOffer, the cairnx
700
- * service txbuild, and TWICE in the cairn trade UI — four copies of fund-loss-class math with no
700
+ * service txbuild, and TWICE in the cairn trade UI: four copies of fund-loss-class math with no
701
701
  * cross-repo lock. This is now the only place it lives; test/preflight.test.ts pins it against the
702
702
  * real resolver (outputs accepted; any single-unit per-address underpayment refused).
703
703
  *
@@ -751,7 +751,7 @@ declare function fillOutputPlan(offer: OfferState, payRaw: bigint | string | num
751
751
  * forfeit. Within FEE_GATE_MARGIN_BLOCKS below ANY upcoming fee gate, price the BUILD at that gate:
752
752
  * overpay is always accepted (the resolver gate is strict `<`), so this only ever PREVENTS a forfeit,
753
753
  * never causes one. Display paths must pass the SAME buildFeeHeight(tip) so the quoted price matches
754
- * what gets signed. Owns the gate list: a future fee tier (V28+) is added HERE, once — the wallet and
754
+ * what gets signed. Owns the gate list: a future fee tier (V28+) is added HERE, once: the wallet and
755
755
  * the trade UI import this (they each hand-carried a copy of this function + list until 2026-07-06). */
756
756
  declare const FEE_GATE_MARGIN_BLOCKS = 5;
757
757
  declare const buildFeeHeight: (tip: number) => number;
@@ -793,7 +793,8 @@ declare function fillIsSafe(offer: OfferState, me: string, pay: bigint | string
793
793
  /** B6b (REBIND W10): the DISCRIMINATED successor to fillIsSafe. Three verdicts, and consuming them
794
794
  * correctly is part of the contract:
795
795
  * "endorsed" - every deterministic gate a payer can verify at signing time passes (status, taker,
796
- * open-lane holdership, deliverability, and - NEW - the v2.8 fill-target routing).
796
+ * open-lane holdership, deliverability, the v2.8 fill-target routing, and from
797
+ * LEGACY_HOLD_SUNSET_HEIGHT the routing of an open CSD offer through a reservation).
797
798
  * "refused" - the chain WILL reject this fill after the payment moved. Do not sign.
798
799
  * "not-endorsable" - a TOKEN-priced want: deliverability is the attester's token balance, which this
799
800
  * pure predicate cannot see. This is HONEST NON-ENDORSEMENT, not refusal: proceed
@@ -828,22 +829,22 @@ declare function fillEndorsement(offer: OfferState, me: string, pay: bigint | st
828
829
  *
829
830
  * TRUST SCOPE (read before relying on this): this is a STALE-STATE and displacement-race guard under an
830
831
  * HONEST resolver, NOT a Byzantine-resolver defense. Its safety rests on `commitHeight` coming from a
831
- * source INDEPENDENT of `nameState` — then `effectiveHeight !== commitHeight` genuinely detects a
832
+ * source INDEPENDENT of `nameState`: then `effectiveHeight !== commitHeight` genuinely detects a
832
833
  * displaced/forged reservation. A caller that passes `nameState.effectiveHeight` AS `commitHeight` makes
833
834
  * that guard a tautology (`X !== X`), so `eff` becomes resolver-controlled and this helper gives
834
835
  * window-SHAPE correctness only, not protection against a resolver that lies about `effectiveHeight`.
835
836
  * No field arithmetic here can defeat a resolver that forges the whole record (owner/pending/eff at once);
836
837
  * that closure is registration-state SPV (roadmapped), the same posture the fill path documents (a
837
838
  * coherently lying resolver is the fill-SPV item, not this guard). Pass the AUTHORITATIVE (freshly
838
- * re-fetched) name record — never a cached one — as `nameState` (undefined = 404 / unregistered = loss).
839
+ * re-fetched) name record, never a cached one, as `nameState` (undefined = 404 / unregistered = loss).
839
840
  *
840
841
  * Pass `tip` to ALSO gate the finalize WINDOW, both sides, mirroring the resolver's authoritative checks
841
842
  * (`applyNfinalize` in src/resolve/names.ts rejects unless `ev.height > effHeight + REG_COMMIT_MAX_BLOCKS`, and rejects when
842
843
  * `ev.height > finalizeBy`) with the client-side FINALIZE_TIP_MARGIN band the site's finalizeReady applies:
843
844
  * the tx signs at `tip` but mines at tip+1 or later, so the margin keeps a boundary-signed finalize from
844
- * mining outside the window (too early: rejected as unfrozen; too late: past the deadline — either way the
845
+ * mining outside the window (too early: rejected as unfrozen; too late: past the deadline; either way the
845
846
  * fee burns). The window is derived purely from `eff` (never the resolver's `finalizeBy`), so a lying
846
- * `finalizeBy` cannot widen it — but per the trust scope above, a lying `eff` still can for a caller that
847
+ * `finalizeBy` cannot widen it; but per the trust scope above, a lying `eff` still can for a caller that
847
848
  * does not supply an independent `commitHeight`. `tip` is optional; without it the winner-only path runs. A
848
849
  * supplied `tip` that is not a non-negative safe integer is refused. */
849
850
  declare function finalizeWinnerCheck(nameState: NameState | null | undefined, me: string, commitHeight: number, tip?: number | null): {
@@ -890,7 +891,7 @@ declare function nameView(names: Record<string, NameState>, name: string): NameV
890
891
 
891
892
  /** This package's version, for a host that names the core it loaded (cairnx-api's `rev`, a replica's report). Equal to
892
893
  * package.json's version (test/version.test.ts). */
893
- declare const CAIRNX_CORE_VERSION = "0.2.10";
894
+ declare const CAIRNX_CORE_VERSION = "0.2.11";
894
895
 
895
896
  /** Gate name to height: `ACTIVATION_HEIGHT` and each `V<n>_HEIGHT`, frozen. test/gates.test.ts keeps it equal to the
896
897
  * individual exports and complete. It leaves out the one other exported height, `LEGACY_HOLD_SUNSET_HEIGHT`, which is
@@ -1123,6 +1124,9 @@ interface EventMember<T extends EventRuleTx> {
1123
1124
  readonly kind: "propose" | "attest";
1124
1125
  readonly item: T;
1125
1126
  }
1127
+ /** A position or height the rule takes: a safe integer >= 0. A held replay context and a reader of served positions
1128
+ * (the replica's Scanner) check an event's position with it. */
1129
+ declare const isIndex: (v: unknown) => v is number;
1126
1130
  /** The event of one transaction at `height`, or null when it carries no app payload, lies below the activation height
1127
1131
  * or is a Propose in another domain. Attest membership needs the block and is not decided here: an Attest maps to an
1128
1132
  * event whatever its proposal, and a per-transaction caller decides membership itself (resolve() ignores an Attest on
@@ -1220,4 +1224,4 @@ interface ProvenOfferTx {
1220
1224
  * rules; the resolver writes no note below activation), or null when it passes. */
1221
1225
  declare function provenOfferRefusal(rec: OfferRecord, tx: ProvenOfferTx): string | null;
1222
1226
 
1223
- export { ACTIVATION_HEIGHT, ADDR_RE, AMOUNT_RE, type AppliedCode, type AppliedEvent, type AttestEvent, BID_KEYS, type BalanceState, type BidRecord, type BidState, type BidStatus, type BindTermsOpts, type BuiltRecord, CAIRNX_CORE_VERSION, CAIRNX_EVENT_RULE, CAP_CODES, CLAIM_ATTACKER_Q, CLAIM_COOLDOWN_BLOCKS, CLAIM_FILL_GRACE_BLOCKS, CLAIM_MIN_DEPTH, CLAIM_WINDOW_BLOCKS, CLAIM_WINDOW_BLOCKS_V20, COMMIT_MAX_BLOCKS, COMMIT_REVEAL_MIN_DEPTH, CONF_TOKEN_FILL, type CairnXRecord, type CairnXState, type ChainEvent, DEPLOY_FEE, DEPLOY_KEYS, DOMAIN, type DeployRecord, EVENTS_HASH_START, type EventMember, type EventRule, type EventRuleTx, type EventsSoFar, FCLAIM_KEYS, FCLAIM_MAX_EPOCH_AHEAD, FCLAIM_MAX_HOLD_SPAN, FCLAIM_WINDOW_MIN, FEE_BPS, FEE_BPS_V16, FEE_GATE_MARGIN_BLOCKS, FILL_TIP_MARGIN, FINALIZE_TIP_MARGIN, FINAL_DEPTH, type FclaimRecord, type FillEndorsement, type FillEntry, type FillOutputPlan, type FillPreview, type FillSafety, type FillSpvIo, type FillVerdict, GAP_NEEDED, GATE_HEIGHTS, type GateName, type Give, HASH_RE, type HashedEvent, type HoldCandidate, type HoldCount, type HoldReplay, type HoldTarget, LEGACY_HOLD_SUNSET_HEIGHT, type LegacyBindOpts, MAX_ACTIVE_CLAIMS, MAX_AMOUNT, MAX_OFFER_EPOCHS, MAX_PENDING_REG, MAX_RECORD_BYTES, MAX_SCAN, MAX_TOKEN_DECIMALS, MINT_KEYS, type MintRecord, type MintedProvenOfferTerms, NAME_FEE_LEN3_V24, NAME_FEE_LEN4_V24, NAME_FEE_LONG_V24, NAME_FEE_MID_V24, NAME_FEE_SHORT_V18, NAME_FEE_V18, NAME_GRACE_EPOCHS, NAME_KEYS, NAME_PREMIUM_DECAY_EPOCHS, NAME_PREMIUM_START, NAME_RE, NAME_TERM_EPOCHS, NFINALIZE_KEYS, NPROFILE_KEYS, type NameCommitRecord, type NameFinalizeRecord, type NameProfileRecord, type NameRecord, type NameRenewRecord, type NameSetRecord, type NameState, type NameView, type NameViewState, type NameXferRecord, OFFER_KEYS, type OfferCancelAllRecord, type OfferRecord, type OfferState, type OfferStatus, PKEY, PROFILE_MAX_KEYS, PROFILE_MAX_VALUE_BYTES, type ProposeEvent, type ProvenAttest, type ProvenEvent, type ProvenOfferTerms, type ProvenOfferTx, type ProvenPropose, REASON_CODES, REASON_CODE_OUTCOME, REBATE_BPS, REBATE_FLAT, REG_COMMIT_MAX_BLOCKS, REG_FINALIZE_GRACE_BLOCKS, RESERVED_NAMES, type ReasonCode, type RecordCode, RecordError, type RefusalCode, type ReplayContext, ReplayContextRefusal, type ReplayContextRefusalCode, type ResolvedName, SALT_RE, SCAN_MARGIN, SCORE_CANCEL, SCORE_CLAIM, SCORE_FILL, TICKER_RE, TRANSFER_KEYS, TREASURY_ADDR, type TokenMetaRecord, type TokenMove, type TokenState, type TransferRecord, V11_HEIGHT, V12_HEIGHT, V13_HEIGHT, V14_HEIGHT, V15_HEIGHT, V16_HEIGHT, V17_HEIGHT, V18_HEIGHT, V19_HEIGHT, V20_HEIGHT, V21_HEIGHT, V22_HEIGHT, V23_HEIGHT, V24_HEIGHT, V25_HEIGHT, V26_HEIGHT, V27_HEIGHT, V28_HEIGHT, V29_HEIGHT, type Want, ZERO_ADDR, applyOrder, beforeActivation, bid, bindOfferTerms, bindProvenOffer, blockEvents, blockMembers, buildFeeHeight, buildRecord, burnedPayment, canonicalState, claimGraceOf, claimWindowAt, claimWindowOf, countOtherHoldsAtGrant, deploy, eventId, eventOfTx, eventsHash, eventsHashStep, expiredClaimFee, explainRecord, fclaim, fclaimEpochFor, fclaimHoldEnd, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, fillTargetId, finalizeWinnerCheck, hasLiveClaim, isChainHeight, isName, isNameGive, isOpenClaimLane, isTokenWant, makerRebate, mint, myProvenFillClosedOffer, nameClaim, nameCommit, nameCommitRecord, nameFinalize, nameProfile, nameRegFee, nameRenew, nameSet, nameView, nameXfer, newReplayContext, offer, offerCancelAll, offerExpiryHeightOf, offerFillTooLate, paidToFromOutputs, parseAmount, parseRecord, pickPrimaryName, previewFill, primaryRankBefore, provenOfferRefusal, provenOfferTerms, ptAmt, replayLiveHold, requiredClaimDepth, requiredFillOutputs, resolve, resolveNameIn, stateHash, tokenMeta, tradeFee, transfer, unsafeMintProvenOfferTerms, verifyFillSpv };
1227
+ export { ACTIVATION_HEIGHT, ADDR_RE, AMOUNT_RE, type AppliedCode, type AppliedEvent, type AttestEvent, BID_KEYS, type BalanceState, type BidRecord, type BidState, type BidStatus, type BindTermsOpts, type BuiltRecord, CAIRNX_CORE_VERSION, CAIRNX_EVENT_RULE, CAP_CODES, CLAIM_ATTACKER_Q, CLAIM_COOLDOWN_BLOCKS, CLAIM_FILL_GRACE_BLOCKS, CLAIM_MIN_DEPTH, CLAIM_WINDOW_BLOCKS, CLAIM_WINDOW_BLOCKS_V20, COMMIT_MAX_BLOCKS, COMMIT_REVEAL_MIN_DEPTH, CONF_TOKEN_FILL, type CairnXRecord, type CairnXState, type ChainEvent, DEPLOY_FEE, DEPLOY_KEYS, DOMAIN, type DeployRecord, EVENTS_HASH_START, type EventMember, type EventRule, type EventRuleTx, type EventsSoFar, FCLAIM_KEYS, FCLAIM_MAX_EPOCH_AHEAD, FCLAIM_MAX_HOLD_SPAN, FCLAIM_WINDOW_MIN, FEE_BPS, FEE_BPS_V16, FEE_GATE_MARGIN_BLOCKS, FILL_TIP_MARGIN, FINALIZE_TIP_MARGIN, FINAL_DEPTH, type FclaimRecord, type FillEndorsement, type FillEntry, type FillOutputPlan, type FillPreview, type FillSafety, type FillSpvIo, type FillVerdict, GAP_NEEDED, GATE_HEIGHTS, type GateName, type Give, HASH_RE, type HashedEvent, type HoldCandidate, type HoldCount, type HoldReplay, type HoldTarget, LEGACY_HOLD_SUNSET_HEIGHT, type LegacyBindOpts, MAX_ACTIVE_CLAIMS, MAX_AMOUNT, MAX_OFFER_EPOCHS, MAX_PENDING_REG, MAX_RECORD_BYTES, MAX_SCAN, MAX_TOKEN_DECIMALS, MINT_KEYS, type MintRecord, type MintedProvenOfferTerms, NAME_FEE_LEN3_V24, NAME_FEE_LEN4_V24, NAME_FEE_LONG_V24, NAME_FEE_MID_V24, NAME_FEE_SHORT_V18, NAME_FEE_V18, NAME_GRACE_EPOCHS, NAME_KEYS, NAME_PREMIUM_DECAY_EPOCHS, NAME_PREMIUM_START, NAME_RE, NAME_TERM_EPOCHS, NFINALIZE_KEYS, NPROFILE_KEYS, type NameCommitRecord, type NameFinalizeRecord, type NameProfileRecord, type NameRecord, type NameRenewRecord, type NameSetRecord, type NameState, type NameView, type NameViewState, type NameXferRecord, OFFER_KEYS, type OfferCancelAllRecord, type OfferRecord, type OfferState, type OfferStatus, PKEY, PROFILE_MAX_KEYS, PROFILE_MAX_VALUE_BYTES, type ProposeEvent, type ProvenAttest, type ProvenEvent, type ProvenOfferTerms, type ProvenOfferTx, type ProvenPropose, REASON_CODES, REASON_CODE_OUTCOME, REBATE_BPS, REBATE_FLAT, REG_COMMIT_MAX_BLOCKS, REG_FINALIZE_GRACE_BLOCKS, RESERVED_NAMES, type ReasonCode, type RecordCode, RecordError, type RefusalCode, type ReplayContext, ReplayContextRefusal, type ReplayContextRefusalCode, type ResolvedName, SALT_RE, SCAN_MARGIN, SCORE_CANCEL, SCORE_CLAIM, SCORE_FILL, TICKER_RE, TRANSFER_KEYS, TREASURY_ADDR, type TokenMetaRecord, type TokenMove, type TokenState, type TransferRecord, V11_HEIGHT, V12_HEIGHT, V13_HEIGHT, V14_HEIGHT, V15_HEIGHT, V16_HEIGHT, V17_HEIGHT, V18_HEIGHT, V19_HEIGHT, V20_HEIGHT, V21_HEIGHT, V22_HEIGHT, V23_HEIGHT, V24_HEIGHT, V25_HEIGHT, V26_HEIGHT, V27_HEIGHT, V28_HEIGHT, V29_HEIGHT, type Want, ZERO_ADDR, applyOrder, beforeActivation, bid, bindOfferTerms, bindProvenOffer, blockEvents, blockMembers, buildFeeHeight, buildRecord, burnedPayment, canonicalState, claimGraceOf, claimWindowAt, claimWindowOf, countOtherHoldsAtGrant, deploy, eventId, eventOfTx, eventsHash, eventsHashStep, expiredClaimFee, explainRecord, fclaim, fclaimEpochFor, fclaimHoldEnd, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, fillTargetId, finalizeWinnerCheck, hasLiveClaim, isChainHeight, isIndex, isName, isNameGive, isOpenClaimLane, isTokenWant, makerRebate, mint, myProvenFillClosedOffer, nameClaim, nameCommit, nameCommitRecord, nameFinalize, nameProfile, nameRegFee, nameRenew, nameSet, nameView, nameXfer, newReplayContext, offer, offerCancelAll, offerExpiryHeightOf, offerFillTooLate, paidToFromOutputs, parseAmount, parseRecord, pickPrimaryName, previewFill, primaryRankBefore, provenOfferRefusal, provenOfferTerms, ptAmt, replayLiveHold, requiredClaimDepth, requiredFillOutputs, resolve, resolveNameIn, stateHash, tokenMeta, tradeFee, transfer, unsafeMintProvenOfferTerms, verifyFillSpv };
package/dist/index.d.ts CHANGED
@@ -154,7 +154,7 @@ declare const NAME_GRACE_EPOCHS = 720;
154
154
  declare const NAME_PREMIUM_START = 20n;
155
155
  declare const NAME_PREMIUM_DECAY_EPOCHS = 720;
156
156
  /** Fee to claim a name whose lease lapsed (grace over): nameRegFee × a linearly-decaying
157
- * premium. Pure in (name, epochsPastGraceEnd) — deterministic for every resolver. */
157
+ * premium. Pure in (name, epochsPastGraceEnd): deterministic for every resolver. */
158
158
  declare function expiredClaimFee(name: string, epochsPastGraceEnd: number, height: number): bigint;
159
159
  declare const MAX_RECORD_BYTES = 512;
160
160
  declare const MAX_AMOUNT: bigint;
@@ -397,9 +397,9 @@ interface NameState {
397
397
  effectiveHeight: number;
398
398
  addr?: string;
399
399
  locked: boolean;
400
- /** v1.3: ownership basis is a paid fill — record is displacement-immune (claimId/heights = the fill) */
400
+ /** v1.3: ownership basis is a paid fill: record is displacement-immune (claimId/heights = the fill) */
401
401
  viaFill?: true;
402
- /** v1.5: the lease — owned through this epoch; +grace for owner-only renewal; then premium re-claim */
402
+ /** v1.5: the lease: owned through this epoch; +grace for owner-only renewal; then premium re-claim */
403
403
  paidThroughEpoch?: number;
404
404
  /** v1.5: true once the lease + grace lapsed (record kept for history; name is claimable) */
405
405
  expired?: true;
@@ -408,7 +408,7 @@ interface NameState {
408
408
  * only, so every pre-v2.5 canonical hash stays byte-identical. */
409
409
  pending?: true;
410
410
  finalizeBy?: number;
411
- /** v1.9: ENS-class identity — a charset-locked string→string map (doc 36). INERT cosmetic metadata
411
+ /** v1.9: ENS-class identity: a charset-locked string→string map (doc 36). INERT cosmetic metadata
412
412
  * (NOT a send target; the verified address is `addr`). Materialized at v1.9+ tips only, cleared on
413
413
  * every ownership change, absent when empty. */
414
414
  profile?: Record<string, string>;
@@ -448,7 +448,7 @@ interface OfferState {
448
448
  fills?: FillEntry[];
449
449
  /** v1.2: the bid this offer responds to */
450
450
  bid?: string;
451
- /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse —
451
+ /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse:
452
452
  * a past claimUntilHeight just means no live claim (the fields persist as the last-claim record). */
453
453
  claimedBy?: string;
454
454
  claimUntilHeight?: number;
@@ -670,12 +670,12 @@ declare function requiredClaimDepth(valueSats: number | bigint, height: number):
670
670
 
671
671
  /** What a payment of `pay` (base units of CSD, the seller-paid amount to `want.payto`) would DELIVER
672
672
  * against a CSD-priced offer, computed with the resolver's exact expressions. Returns the delivered
673
- * token `got`, the treasury `fee`, and the maker `rebate` — plus a `deliverable` flag that is false
673
+ * token `got`, the treasury `fee`, and the maker `rebate`, plus a `deliverable` flag that is false
674
674
  * exactly when the resolver would reject the fill AFTER the CSD moved (the C3 zero-delivery trap).
675
675
  *
676
676
  * Only meaningful for CSD-priced token offers (a `want.value`). For a name give, `got` is 1 (a name is
677
677
  * indivisible) when `pay >= want.value`. Token-for-token offers (`want.ticker`) return deliverable:false
678
- * with reason "not-csd-priced" — their deliverability depends on the buyer's balance, out of scope here. */
678
+ * with reason "not-csd-priced": their deliverability depends on the buyer's balance, out of scope here. */
679
679
  interface FillPreview {
680
680
  deliverable: boolean;
681
681
  reason?: "not-open" | "not-csd-priced" | "below-min" | "zero-delivery" | "ok";
@@ -695,9 +695,9 @@ declare function previewFill(offer: OfferState, payRaw: bigint | string | number
695
695
  * seller, zero-value entries omitted (a 0 output is unbuildable and the resolver requires nothing).
696
696
  *
697
697
  * Returns [] for a token-priced offer (a token⇄token fill carries NO CSD outputs) and null when the
698
- * payment is undeliverable — gate with fillIsSafe FIRST; this sizes outputs, it does not re-judge
698
+ * payment is undeliverable: gate with fillIsSafe FIRST; this sizes outputs, it does not re-judge
699
699
  * claims/takers. Until 2026-07-06 this map was hand-mirrored in the wallet's fillOffer, the cairnx
700
- * service txbuild, and TWICE in the cairn trade UI — four copies of fund-loss-class math with no
700
+ * service txbuild, and TWICE in the cairn trade UI: four copies of fund-loss-class math with no
701
701
  * cross-repo lock. This is now the only place it lives; test/preflight.test.ts pins it against the
702
702
  * real resolver (outputs accepted; any single-unit per-address underpayment refused).
703
703
  *
@@ -751,7 +751,7 @@ declare function fillOutputPlan(offer: OfferState, payRaw: bigint | string | num
751
751
  * forfeit. Within FEE_GATE_MARGIN_BLOCKS below ANY upcoming fee gate, price the BUILD at that gate:
752
752
  * overpay is always accepted (the resolver gate is strict `<`), so this only ever PREVENTS a forfeit,
753
753
  * never causes one. Display paths must pass the SAME buildFeeHeight(tip) so the quoted price matches
754
- * what gets signed. Owns the gate list: a future fee tier (V28+) is added HERE, once — the wallet and
754
+ * what gets signed. Owns the gate list: a future fee tier (V28+) is added HERE, once: the wallet and
755
755
  * the trade UI import this (they each hand-carried a copy of this function + list until 2026-07-06). */
756
756
  declare const FEE_GATE_MARGIN_BLOCKS = 5;
757
757
  declare const buildFeeHeight: (tip: number) => number;
@@ -793,7 +793,8 @@ declare function fillIsSafe(offer: OfferState, me: string, pay: bigint | string
793
793
  /** B6b (REBIND W10): the DISCRIMINATED successor to fillIsSafe. Three verdicts, and consuming them
794
794
  * correctly is part of the contract:
795
795
  * "endorsed" - every deterministic gate a payer can verify at signing time passes (status, taker,
796
- * open-lane holdership, deliverability, and - NEW - the v2.8 fill-target routing).
796
+ * open-lane holdership, deliverability, the v2.8 fill-target routing, and from
797
+ * LEGACY_HOLD_SUNSET_HEIGHT the routing of an open CSD offer through a reservation).
797
798
  * "refused" - the chain WILL reject this fill after the payment moved. Do not sign.
798
799
  * "not-endorsable" - a TOKEN-priced want: deliverability is the attester's token balance, which this
799
800
  * pure predicate cannot see. This is HONEST NON-ENDORSEMENT, not refusal: proceed
@@ -828,22 +829,22 @@ declare function fillEndorsement(offer: OfferState, me: string, pay: bigint | st
828
829
  *
829
830
  * TRUST SCOPE (read before relying on this): this is a STALE-STATE and displacement-race guard under an
830
831
  * HONEST resolver, NOT a Byzantine-resolver defense. Its safety rests on `commitHeight` coming from a
831
- * source INDEPENDENT of `nameState` — then `effectiveHeight !== commitHeight` genuinely detects a
832
+ * source INDEPENDENT of `nameState`: then `effectiveHeight !== commitHeight` genuinely detects a
832
833
  * displaced/forged reservation. A caller that passes `nameState.effectiveHeight` AS `commitHeight` makes
833
834
  * that guard a tautology (`X !== X`), so `eff` becomes resolver-controlled and this helper gives
834
835
  * window-SHAPE correctness only, not protection against a resolver that lies about `effectiveHeight`.
835
836
  * No field arithmetic here can defeat a resolver that forges the whole record (owner/pending/eff at once);
836
837
  * that closure is registration-state SPV (roadmapped), the same posture the fill path documents (a
837
838
  * coherently lying resolver is the fill-SPV item, not this guard). Pass the AUTHORITATIVE (freshly
838
- * re-fetched) name record — never a cached one — as `nameState` (undefined = 404 / unregistered = loss).
839
+ * re-fetched) name record, never a cached one, as `nameState` (undefined = 404 / unregistered = loss).
839
840
  *
840
841
  * Pass `tip` to ALSO gate the finalize WINDOW, both sides, mirroring the resolver's authoritative checks
841
842
  * (`applyNfinalize` in src/resolve/names.ts rejects unless `ev.height > effHeight + REG_COMMIT_MAX_BLOCKS`, and rejects when
842
843
  * `ev.height > finalizeBy`) with the client-side FINALIZE_TIP_MARGIN band the site's finalizeReady applies:
843
844
  * the tx signs at `tip` but mines at tip+1 or later, so the margin keeps a boundary-signed finalize from
844
- * mining outside the window (too early: rejected as unfrozen; too late: past the deadline — either way the
845
+ * mining outside the window (too early: rejected as unfrozen; too late: past the deadline; either way the
845
846
  * fee burns). The window is derived purely from `eff` (never the resolver's `finalizeBy`), so a lying
846
- * `finalizeBy` cannot widen it — but per the trust scope above, a lying `eff` still can for a caller that
847
+ * `finalizeBy` cannot widen it; but per the trust scope above, a lying `eff` still can for a caller that
847
848
  * does not supply an independent `commitHeight`. `tip` is optional; without it the winner-only path runs. A
848
849
  * supplied `tip` that is not a non-negative safe integer is refused. */
849
850
  declare function finalizeWinnerCheck(nameState: NameState | null | undefined, me: string, commitHeight: number, tip?: number | null): {
@@ -890,7 +891,7 @@ declare function nameView(names: Record<string, NameState>, name: string): NameV
890
891
 
891
892
  /** This package's version, for a host that names the core it loaded (cairnx-api's `rev`, a replica's report). Equal to
892
893
  * package.json's version (test/version.test.ts). */
893
- declare const CAIRNX_CORE_VERSION = "0.2.10";
894
+ declare const CAIRNX_CORE_VERSION = "0.2.11";
894
895
 
895
896
  /** Gate name to height: `ACTIVATION_HEIGHT` and each `V<n>_HEIGHT`, frozen. test/gates.test.ts keeps it equal to the
896
897
  * individual exports and complete. It leaves out the one other exported height, `LEGACY_HOLD_SUNSET_HEIGHT`, which is
@@ -1123,6 +1124,9 @@ interface EventMember<T extends EventRuleTx> {
1123
1124
  readonly kind: "propose" | "attest";
1124
1125
  readonly item: T;
1125
1126
  }
1127
+ /** A position or height the rule takes: a safe integer >= 0. A held replay context and a reader of served positions
1128
+ * (the replica's Scanner) check an event's position with it. */
1129
+ declare const isIndex: (v: unknown) => v is number;
1126
1130
  /** The event of one transaction at `height`, or null when it carries no app payload, lies below the activation height
1127
1131
  * or is a Propose in another domain. Attest membership needs the block and is not decided here: an Attest maps to an
1128
1132
  * event whatever its proposal, and a per-transaction caller decides membership itself (resolve() ignores an Attest on
@@ -1220,4 +1224,4 @@ interface ProvenOfferTx {
1220
1224
  * rules; the resolver writes no note below activation), or null when it passes. */
1221
1225
  declare function provenOfferRefusal(rec: OfferRecord, tx: ProvenOfferTx): string | null;
1222
1226
 
1223
- export { ACTIVATION_HEIGHT, ADDR_RE, AMOUNT_RE, type AppliedCode, type AppliedEvent, type AttestEvent, BID_KEYS, type BalanceState, type BidRecord, type BidState, type BidStatus, type BindTermsOpts, type BuiltRecord, CAIRNX_CORE_VERSION, CAIRNX_EVENT_RULE, CAP_CODES, CLAIM_ATTACKER_Q, CLAIM_COOLDOWN_BLOCKS, CLAIM_FILL_GRACE_BLOCKS, CLAIM_MIN_DEPTH, CLAIM_WINDOW_BLOCKS, CLAIM_WINDOW_BLOCKS_V20, COMMIT_MAX_BLOCKS, COMMIT_REVEAL_MIN_DEPTH, CONF_TOKEN_FILL, type CairnXRecord, type CairnXState, type ChainEvent, DEPLOY_FEE, DEPLOY_KEYS, DOMAIN, type DeployRecord, EVENTS_HASH_START, type EventMember, type EventRule, type EventRuleTx, type EventsSoFar, FCLAIM_KEYS, FCLAIM_MAX_EPOCH_AHEAD, FCLAIM_MAX_HOLD_SPAN, FCLAIM_WINDOW_MIN, FEE_BPS, FEE_BPS_V16, FEE_GATE_MARGIN_BLOCKS, FILL_TIP_MARGIN, FINALIZE_TIP_MARGIN, FINAL_DEPTH, type FclaimRecord, type FillEndorsement, type FillEntry, type FillOutputPlan, type FillPreview, type FillSafety, type FillSpvIo, type FillVerdict, GAP_NEEDED, GATE_HEIGHTS, type GateName, type Give, HASH_RE, type HashedEvent, type HoldCandidate, type HoldCount, type HoldReplay, type HoldTarget, LEGACY_HOLD_SUNSET_HEIGHT, type LegacyBindOpts, MAX_ACTIVE_CLAIMS, MAX_AMOUNT, MAX_OFFER_EPOCHS, MAX_PENDING_REG, MAX_RECORD_BYTES, MAX_SCAN, MAX_TOKEN_DECIMALS, MINT_KEYS, type MintRecord, type MintedProvenOfferTerms, NAME_FEE_LEN3_V24, NAME_FEE_LEN4_V24, NAME_FEE_LONG_V24, NAME_FEE_MID_V24, NAME_FEE_SHORT_V18, NAME_FEE_V18, NAME_GRACE_EPOCHS, NAME_KEYS, NAME_PREMIUM_DECAY_EPOCHS, NAME_PREMIUM_START, NAME_RE, NAME_TERM_EPOCHS, NFINALIZE_KEYS, NPROFILE_KEYS, type NameCommitRecord, type NameFinalizeRecord, type NameProfileRecord, type NameRecord, type NameRenewRecord, type NameSetRecord, type NameState, type NameView, type NameViewState, type NameXferRecord, OFFER_KEYS, type OfferCancelAllRecord, type OfferRecord, type OfferState, type OfferStatus, PKEY, PROFILE_MAX_KEYS, PROFILE_MAX_VALUE_BYTES, type ProposeEvent, type ProvenAttest, type ProvenEvent, type ProvenOfferTerms, type ProvenOfferTx, type ProvenPropose, REASON_CODES, REASON_CODE_OUTCOME, REBATE_BPS, REBATE_FLAT, REG_COMMIT_MAX_BLOCKS, REG_FINALIZE_GRACE_BLOCKS, RESERVED_NAMES, type ReasonCode, type RecordCode, RecordError, type RefusalCode, type ReplayContext, ReplayContextRefusal, type ReplayContextRefusalCode, type ResolvedName, SALT_RE, SCAN_MARGIN, SCORE_CANCEL, SCORE_CLAIM, SCORE_FILL, TICKER_RE, TRANSFER_KEYS, TREASURY_ADDR, type TokenMetaRecord, type TokenMove, type TokenState, type TransferRecord, V11_HEIGHT, V12_HEIGHT, V13_HEIGHT, V14_HEIGHT, V15_HEIGHT, V16_HEIGHT, V17_HEIGHT, V18_HEIGHT, V19_HEIGHT, V20_HEIGHT, V21_HEIGHT, V22_HEIGHT, V23_HEIGHT, V24_HEIGHT, V25_HEIGHT, V26_HEIGHT, V27_HEIGHT, V28_HEIGHT, V29_HEIGHT, type Want, ZERO_ADDR, applyOrder, beforeActivation, bid, bindOfferTerms, bindProvenOffer, blockEvents, blockMembers, buildFeeHeight, buildRecord, burnedPayment, canonicalState, claimGraceOf, claimWindowAt, claimWindowOf, countOtherHoldsAtGrant, deploy, eventId, eventOfTx, eventsHash, eventsHashStep, expiredClaimFee, explainRecord, fclaim, fclaimEpochFor, fclaimHoldEnd, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, fillTargetId, finalizeWinnerCheck, hasLiveClaim, isChainHeight, isName, isNameGive, isOpenClaimLane, isTokenWant, makerRebate, mint, myProvenFillClosedOffer, nameClaim, nameCommit, nameCommitRecord, nameFinalize, nameProfile, nameRegFee, nameRenew, nameSet, nameView, nameXfer, newReplayContext, offer, offerCancelAll, offerExpiryHeightOf, offerFillTooLate, paidToFromOutputs, parseAmount, parseRecord, pickPrimaryName, previewFill, primaryRankBefore, provenOfferRefusal, provenOfferTerms, ptAmt, replayLiveHold, requiredClaimDepth, requiredFillOutputs, resolve, resolveNameIn, stateHash, tokenMeta, tradeFee, transfer, unsafeMintProvenOfferTerms, verifyFillSpv };
1227
+ export { ACTIVATION_HEIGHT, ADDR_RE, AMOUNT_RE, type AppliedCode, type AppliedEvent, type AttestEvent, BID_KEYS, type BalanceState, type BidRecord, type BidState, type BidStatus, type BindTermsOpts, type BuiltRecord, CAIRNX_CORE_VERSION, CAIRNX_EVENT_RULE, CAP_CODES, CLAIM_ATTACKER_Q, CLAIM_COOLDOWN_BLOCKS, CLAIM_FILL_GRACE_BLOCKS, CLAIM_MIN_DEPTH, CLAIM_WINDOW_BLOCKS, CLAIM_WINDOW_BLOCKS_V20, COMMIT_MAX_BLOCKS, COMMIT_REVEAL_MIN_DEPTH, CONF_TOKEN_FILL, type CairnXRecord, type CairnXState, type ChainEvent, DEPLOY_FEE, DEPLOY_KEYS, DOMAIN, type DeployRecord, EVENTS_HASH_START, type EventMember, type EventRule, type EventRuleTx, type EventsSoFar, FCLAIM_KEYS, FCLAIM_MAX_EPOCH_AHEAD, FCLAIM_MAX_HOLD_SPAN, FCLAIM_WINDOW_MIN, FEE_BPS, FEE_BPS_V16, FEE_GATE_MARGIN_BLOCKS, FILL_TIP_MARGIN, FINALIZE_TIP_MARGIN, FINAL_DEPTH, type FclaimRecord, type FillEndorsement, type FillEntry, type FillOutputPlan, type FillPreview, type FillSafety, type FillSpvIo, type FillVerdict, GAP_NEEDED, GATE_HEIGHTS, type GateName, type Give, HASH_RE, type HashedEvent, type HoldCandidate, type HoldCount, type HoldReplay, type HoldTarget, LEGACY_HOLD_SUNSET_HEIGHT, type LegacyBindOpts, MAX_ACTIVE_CLAIMS, MAX_AMOUNT, MAX_OFFER_EPOCHS, MAX_PENDING_REG, MAX_RECORD_BYTES, MAX_SCAN, MAX_TOKEN_DECIMALS, MINT_KEYS, type MintRecord, type MintedProvenOfferTerms, NAME_FEE_LEN3_V24, NAME_FEE_LEN4_V24, NAME_FEE_LONG_V24, NAME_FEE_MID_V24, NAME_FEE_SHORT_V18, NAME_FEE_V18, NAME_GRACE_EPOCHS, NAME_KEYS, NAME_PREMIUM_DECAY_EPOCHS, NAME_PREMIUM_START, NAME_RE, NAME_TERM_EPOCHS, NFINALIZE_KEYS, NPROFILE_KEYS, type NameCommitRecord, type NameFinalizeRecord, type NameProfileRecord, type NameRecord, type NameRenewRecord, type NameSetRecord, type NameState, type NameView, type NameViewState, type NameXferRecord, OFFER_KEYS, type OfferCancelAllRecord, type OfferRecord, type OfferState, type OfferStatus, PKEY, PROFILE_MAX_KEYS, PROFILE_MAX_VALUE_BYTES, type ProposeEvent, type ProvenAttest, type ProvenEvent, type ProvenOfferTerms, type ProvenOfferTx, type ProvenPropose, REASON_CODES, REASON_CODE_OUTCOME, REBATE_BPS, REBATE_FLAT, REG_COMMIT_MAX_BLOCKS, REG_FINALIZE_GRACE_BLOCKS, RESERVED_NAMES, type ReasonCode, type RecordCode, RecordError, type RefusalCode, type ReplayContext, ReplayContextRefusal, type ReplayContextRefusalCode, type ResolvedName, SALT_RE, SCAN_MARGIN, SCORE_CANCEL, SCORE_CLAIM, SCORE_FILL, TICKER_RE, TRANSFER_KEYS, TREASURY_ADDR, type TokenMetaRecord, type TokenMove, type TokenState, type TransferRecord, V11_HEIGHT, V12_HEIGHT, V13_HEIGHT, V14_HEIGHT, V15_HEIGHT, V16_HEIGHT, V17_HEIGHT, V18_HEIGHT, V19_HEIGHT, V20_HEIGHT, V21_HEIGHT, V22_HEIGHT, V23_HEIGHT, V24_HEIGHT, V25_HEIGHT, V26_HEIGHT, V27_HEIGHT, V28_HEIGHT, V29_HEIGHT, type Want, ZERO_ADDR, applyOrder, beforeActivation, bid, bindOfferTerms, bindProvenOffer, blockEvents, blockMembers, buildFeeHeight, buildRecord, burnedPayment, canonicalState, claimGraceOf, claimWindowAt, claimWindowOf, countOtherHoldsAtGrant, deploy, eventId, eventOfTx, eventsHash, eventsHashStep, expiredClaimFee, explainRecord, fclaim, fclaimEpochFor, fclaimHoldEnd, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, fillTargetId, finalizeWinnerCheck, hasLiveClaim, isChainHeight, isIndex, isName, isNameGive, isOpenClaimLane, isTokenWant, makerRebate, mint, myProvenFillClosedOffer, nameClaim, nameCommit, nameCommitRecord, nameFinalize, nameProfile, nameRegFee, nameRenew, nameSet, nameView, nameXfer, newReplayContext, offer, offerCancelAll, offerExpiryHeightOf, offerFillTooLate, paidToFromOutputs, parseAmount, parseRecord, pickPrimaryName, previewFill, primaryRankBefore, provenOfferRefusal, provenOfferTerms, ptAmt, replayLiveHold, requiredClaimDepth, requiredFillOutputs, resolve, resolveNameIn, stateHash, tokenMeta, tradeFee, transfer, unsafeMintProvenOfferTerms, verifyFillSpv };
package/dist/index.js CHANGED
@@ -2226,6 +2226,27 @@ function requiredClaimDepth(valueSats, height) {
2226
2226
  return { depth: max, reversalPct: Math.pow(r, max) * 100, capped: true };
2227
2227
  }
2228
2228
 
2229
+ // src/holdcount.ts
2230
+ var lastLegacyClaimEnd = V28_HEIGHT - 1 + claimWindowAt(V28_HEIGHT - 1);
2231
+ var LEGACY_HOLD_SUNSET_HEIGHT = lastLegacyClaimEnd + claimGraceOf(lastLegacyClaimEnd);
2232
+ function countOtherHoldsAtGrant(candidates, target, me, closed = /* @__PURE__ */ new Set()) {
2233
+ if (!(Number.isSafeInteger(target.height) && target.height >= LEGACY_HOLD_SUNSET_HEIGHT))
2234
+ return { ok: false, reason: `this reservation was granted at ${target.height}, before block ${LEGACY_HOLD_SUNSET_HEIGHT}, while claims made before V28 could still count against the cap; it cannot be checked here` };
2235
+ const meL = String(me).toLowerCase(), tid = String(target.id).toLowerCase(), toffer = String(target.offer).toLowerCase();
2236
+ const offers = /* @__PURE__ */ new Set();
2237
+ for (const c of candidates) {
2238
+ const cid = String(c.id).toLowerCase();
2239
+ if (cid === tid || closed.has(cid) || String(c.proposer).toLowerCase() !== meL) continue;
2240
+ if (!(c.height < target.height || c.height === target.height && c.pos < target.pos)) continue;
2241
+ if (!(fclaimHoldEnd(Number(c.expiresEpoch)) >= target.height)) continue;
2242
+ const rec = parseRecord(String(c.uri), String(c.payloadHash));
2243
+ if (!rec || rec.t !== "fclaim") continue;
2244
+ const offer2 = String(rec.offer).toLowerCase();
2245
+ if (offer2 !== toffer) offers.add(offer2);
2246
+ }
2247
+ return { ok: true, count: offers.size };
2248
+ }
2249
+
2229
2250
  // src/preflight.ts
2230
2251
  function previewFill(offer2, payRaw) {
2231
2252
  const pay = BigInt(payRaw);
@@ -2334,6 +2355,7 @@ function fillEndorsement(offer2, me, pay, tip, opts) {
2334
2355
  } else if (holdRouted) {
2335
2356
  return refuse("v2.8: a live fclaim hold routes this fill - pass opts.fillTargetId (use fillTargetId(offer, tip)) so the endorsement can verify what your attest targets");
2336
2357
  }
2358
+ if (tip >= LEGACY_HOLD_SUNSET_HEIGHT && isOpenClaimLane(offer2, tip) && !holdRouted) return refuse(`from block ${LEGACY_HOLD_SUNSET_HEIGHT} an open CSD offer is filled only through a reservation: an attest on the offer id is chain-rejected after the payment moved (reserve the offer and attest the fclaim txid)`);
2337
2359
  if (isTokenWant(offer2.want))
2338
2360
  return { verdict: "not-endorsable", reason: "token-priced want - deliverability is the attester's token balance, which a pure record predicate cannot see; NOT an endorsement and NOT a refusal (verify your token balance + proven terms, then proceed)", preview };
2339
2361
  if (!preview.deliverable) {
@@ -2398,7 +2420,7 @@ function nameView(names, name) {
2398
2420
  }
2399
2421
 
2400
2422
  // src/version.ts
2401
- var CAIRNX_CORE_VERSION = "0.2.10";
2423
+ var CAIRNX_CORE_VERSION = "0.2.11";
2402
2424
 
2403
2425
  // src/gates.ts
2404
2426
  var GATE_HEIGHTS = Object.freeze({
@@ -2681,27 +2703,6 @@ function myProvenFillClosedOffer(fill, fclaim2, offerEv, me, grantHeight) {
2681
2703
  return need.every((leg) => ptAmt(fill.paidTo?.[lc(leg.to)]) >= leg.value);
2682
2704
  }
2683
2705
 
2684
- // src/holdcount.ts
2685
- var lastLegacyClaimEnd = V28_HEIGHT - 1 + claimWindowAt(V28_HEIGHT - 1);
2686
- var LEGACY_HOLD_SUNSET_HEIGHT = lastLegacyClaimEnd + claimGraceOf(lastLegacyClaimEnd);
2687
- function countOtherHoldsAtGrant(candidates, target, me, closed = /* @__PURE__ */ new Set()) {
2688
- if (!(Number.isSafeInteger(target.height) && target.height >= LEGACY_HOLD_SUNSET_HEIGHT))
2689
- return { ok: false, reason: `this reservation was granted at ${target.height}, before block ${LEGACY_HOLD_SUNSET_HEIGHT}, while claims made before V28 could still count against the cap; it cannot be checked here` };
2690
- const meL = String(me).toLowerCase(), tid = String(target.id).toLowerCase(), toffer = String(target.offer).toLowerCase();
2691
- const offers = /* @__PURE__ */ new Set();
2692
- for (const c of candidates) {
2693
- const cid = String(c.id).toLowerCase();
2694
- if (cid === tid || closed.has(cid) || String(c.proposer).toLowerCase() !== meL) continue;
2695
- if (!(c.height < target.height || c.height === target.height && c.pos < target.pos)) continue;
2696
- if (!(fclaimHoldEnd(Number(c.expiresEpoch)) >= target.height)) continue;
2697
- const rec = parseRecord(String(c.uri), String(c.payloadHash));
2698
- if (!rec || rec.t !== "fclaim") continue;
2699
- const offer2 = String(rec.offer).toLowerCase();
2700
- if (offer2 !== toffer) offers.add(offer2);
2701
- }
2702
- return { ok: true, count: offers.size };
2703
- }
2704
-
2705
2706
  // src/admission.ts
2706
2707
  function provenOfferRefusal(rec, tx) {
2707
2708
  if (tx.domain !== DOMAIN) return `not a ${DOMAIN} Propose (domain ${JSON.stringify(String(tx.domain))})`;
@@ -2980,6 +2981,7 @@ export {
2980
2981
  finalizeWinnerCheck,
2981
2982
  hasLiveClaim,
2982
2983
  isChainHeight,
2984
+ isIndex,
2983
2985
  isName,
2984
2986
  isNameGive,
2985
2987
  isOpenClaimLane,
@@ -175,7 +175,7 @@ interface OfferState {
175
175
  fills?: FillEntry[];
176
176
  /** v1.2: the bid this offer responds to */
177
177
  bid?: string;
178
- /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse —
178
+ /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse:
179
179
  * a past claimUntilHeight just means no live claim (the fields persist as the last-claim record). */
180
180
  claimedBy?: string;
181
181
  claimUntilHeight?: number;
@@ -175,7 +175,7 @@ interface OfferState {
175
175
  fills?: FillEntry[];
176
176
  /** v1.2: the bid this offer responds to */
177
177
  bid?: string;
178
- /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse —
178
+ /** v1.7 claim-to-fill: the current exclusive claimer + the height their window ends. Lazy lapse:
179
179
  * a past claimUntilHeight just means no live claim (the fields persist as the last-claim record). */
180
180
  claimedBy?: string;
181
181
  claimUntilHeight?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inversealtruism/cairnx-core",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -42,7 +42,7 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@noble/hashes": "1.8.0",
45
- "@inversealtruism/csd-codec": "0.1.18"
45
+ "@inversealtruism/csd-codec": "0.1.19"
46
46
  },
47
47
  "license": "MIT",
48
48
  "sideEffects": false,
@@ -441,6 +441,677 @@
441
441
  }
442
442
  }
443
443
  }
444
+ },
445
+ {
446
+ "name": "rules-partial-fill-tail-below-min",
447
+ "events": [
448
+ {
449
+ "kind": "propose",
450
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0013",
451
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
452
+ "uri": "{\"decimals\":0,\"mint\":\"issuer\",\"supply\":\"1000\",\"t\":\"deploy\",\"ticker\":\"AAA\",\"v\":1}",
453
+ "payloadHash": "0x06afa4ab117bc4d0bc5ccba146f79f39a92dbe7ab3741a2664189173ec0c7cf4",
454
+ "expiresEpoch": 9000000000,
455
+ "height": 60980,
456
+ "pos": 0,
457
+ "paidTo": {
458
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "100000000"
459
+ }
460
+ },
461
+ {
462
+ "kind": "propose",
463
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0014",
464
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
465
+ "uri": "{\"amount\":\"1000\",\"t\":\"mint\",\"ticker\":\"AAA\",\"v\":1}",
466
+ "payloadHash": "0x44f8ddc94f8dfac9a0c48c9d1c799efb67cdf3d9edc33394ad3d6020e7d7bb7b",
467
+ "expiresEpoch": 9000000000,
468
+ "height": 60981,
469
+ "pos": 0,
470
+ "paidTo": {}
471
+ },
472
+ {
473
+ "kind": "propose",
474
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0012",
475
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
476
+ "uri": "{\"give\":{\"amount\":\"7\",\"ticker\":\"AAA\"},\"min\":\"4\",\"t\":\"offer\",\"taker\":\"0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2\",\"v\":1,\"want\":{\"payto\":\"0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1\",\"value\":\"10\"}}",
477
+ "payloadHash": "0x4ab883069e89cbc03b598310a5bfba714ba3ec8546deeaad721f2d404268f032",
478
+ "expiresEpoch": 2133,
479
+ "height": 61000,
480
+ "pos": 0,
481
+ "paidTo": {}
482
+ },
483
+ {
484
+ "kind": "attest",
485
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0015",
486
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e0012",
487
+ "attester": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
488
+ "score": 100,
489
+ "confidence": 0,
490
+ "height": 61001,
491
+ "pos": 0,
492
+ "paidTo": {
493
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": "4",
494
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "1"
495
+ }
496
+ },
497
+ {
498
+ "kind": "attest",
499
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0016",
500
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e0012",
501
+ "attester": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
502
+ "score": 100,
503
+ "confidence": 0,
504
+ "height": 61002,
505
+ "pos": 0,
506
+ "paidTo": {
507
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": "4",
508
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "1"
509
+ }
510
+ },
511
+ {
512
+ "kind": "attest",
513
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0017",
514
+ "proposalId": "0x000000000000000000000000000000000000000000000000000000002a1e0012",
515
+ "attester": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
516
+ "score": 100,
517
+ "confidence": 0,
518
+ "height": 61003,
519
+ "pos": 0,
520
+ "paidTo": {
521
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": "2",
522
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "1"
523
+ }
524
+ }
525
+ ],
526
+ "tipHeight": 61010,
527
+ "expectedState": {
528
+ "balances": {
529
+ "AAA": {
530
+ "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1": {
531
+ "available": "993",
532
+ "locked": "0"
533
+ },
534
+ "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2": {
535
+ "available": "7",
536
+ "locked": "0"
537
+ }
538
+ }
539
+ },
540
+ "bids": {},
541
+ "feesPaid": "100000003",
542
+ "names": {},
543
+ "offers": {
544
+ "0x000000000000000000000000000000000000000000000000000000002a1e0012": {
545
+ "delivered": "7",
546
+ "expiresEpoch": 2133,
547
+ "feeBps": 150,
548
+ "fill": {
549
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
550
+ "fee": "1",
551
+ "got": "2",
552
+ "height": 61003,
553
+ "paid": "2",
554
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0017"
555
+ },
556
+ "fills": [
557
+ {
558
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
559
+ "fee": "1",
560
+ "got": "2",
561
+ "height": 61001,
562
+ "paid": "4",
563
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0015"
564
+ },
565
+ {
566
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
567
+ "fee": "1",
568
+ "got": "3",
569
+ "height": 61002,
570
+ "paid": "4",
571
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0016"
572
+ },
573
+ {
574
+ "buyer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
575
+ "fee": "1",
576
+ "got": "2",
577
+ "height": 61003,
578
+ "paid": "2",
579
+ "txid": "0x000000000000000000000000000000000000000000000000000000002a1e0017"
580
+ }
581
+ ],
582
+ "give": {
583
+ "amount": "7",
584
+ "ticker": "AAA"
585
+ },
586
+ "height": 61000,
587
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0012",
588
+ "min": "4",
589
+ "paid": "10",
590
+ "seller": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
591
+ "status": "filled",
592
+ "taker": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
593
+ "want": {
594
+ "payto": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
595
+ "value": "10"
596
+ }
597
+ }
598
+ },
599
+ "tipHeight": 61010,
600
+ "tokens": {
601
+ "AAA": {
602
+ "decimals": 0,
603
+ "deployId": "0x000000000000000000000000000000000000000000000000000000002a1e0013",
604
+ "deployer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
605
+ "height": 60980,
606
+ "mint": "issuer",
607
+ "minted": "1000",
608
+ "supply": "1000",
609
+ "ticker": "AAA"
610
+ }
611
+ }
612
+ }
613
+ },
614
+ {
615
+ "name": "rules-name-contest-id-later-reveal-lower",
616
+ "events": [
617
+ {
618
+ "kind": "propose",
619
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001a",
620
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
621
+ "uri": "{\"commit\":\"0xbe6eeb975b7009cd22149db0551aec890bdbc1a4e53bc644c7c05f5bd0bfa6cc\",\"t\":\"ncommit\",\"v\":1}",
622
+ "payloadHash": "0x21b2a57ce087cc1869f6e8c5b4850a6607d9f34771b2523fed47a17b4a00afe2",
623
+ "expiresEpoch": 2133,
624
+ "height": 61000,
625
+ "pos": 0,
626
+ "paidTo": {}
627
+ },
628
+ {
629
+ "kind": "propose",
630
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001b",
631
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
632
+ "uri": "{\"commit\":\"0x4570ab5e75c800c4575f48774c00023aea52562c9b2a11c71326db436db985a8\",\"t\":\"ncommit\",\"v\":1}",
633
+ "payloadHash": "0xf71dba14aa3a85c71d29232ead02c2adfc4d26c8fde8fa09f687134ffb00f9d3",
634
+ "expiresEpoch": 2133,
635
+ "height": 61000,
636
+ "pos": 1,
637
+ "paidTo": {}
638
+ },
639
+ {
640
+ "kind": "propose",
641
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0019",
642
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
643
+ "uri": "{\"name\":\"tiebreak\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
644
+ "payloadHash": "0xa9da69a7dc6d2fd6521987305c3979383e4e9b5194d343e2af10a1310ea10083",
645
+ "expiresEpoch": 2133,
646
+ "height": 61001,
647
+ "pos": 0,
648
+ "paidTo": {}
649
+ },
650
+ {
651
+ "kind": "propose",
652
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0018",
653
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
654
+ "uri": "{\"name\":\"tiebreak\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
655
+ "payloadHash": "0x13d048e1d455bf3e6f5a9e7ef4de86f06b175e762239ff773dc94a56227bbb2f",
656
+ "expiresEpoch": 2133,
657
+ "height": 61002,
658
+ "pos": 0,
659
+ "paidTo": {}
660
+ }
661
+ ],
662
+ "tipHeight": 61003,
663
+ "expectedState": {
664
+ "balances": {},
665
+ "bids": {},
666
+ "feesPaid": "0",
667
+ "names": {
668
+ "tiebreak": {
669
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e0018",
670
+ "effectiveHeight": 61000,
671
+ "finalizeBy": 61028,
672
+ "height": 61002,
673
+ "locked": false,
674
+ "name": "tiebreak",
675
+ "owner": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
676
+ "pending": true
677
+ }
678
+ },
679
+ "offers": {},
680
+ "tipHeight": 61003,
681
+ "tokens": {}
682
+ }
683
+ },
684
+ {
685
+ "name": "rules-name-contest-id-later-reveal-higher",
686
+ "events": [
687
+ {
688
+ "kind": "propose",
689
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001e",
690
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
691
+ "uri": "{\"commit\":\"0xbe6eeb975b7009cd22149db0551aec890bdbc1a4e53bc644c7c05f5bd0bfa6cc\",\"t\":\"ncommit\",\"v\":1}",
692
+ "payloadHash": "0x21b2a57ce087cc1869f6e8c5b4850a6607d9f34771b2523fed47a17b4a00afe2",
693
+ "expiresEpoch": 2133,
694
+ "height": 61000,
695
+ "pos": 0,
696
+ "paidTo": {}
697
+ },
698
+ {
699
+ "kind": "propose",
700
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001f",
701
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
702
+ "uri": "{\"commit\":\"0x4570ab5e75c800c4575f48774c00023aea52562c9b2a11c71326db436db985a8\",\"t\":\"ncommit\",\"v\":1}",
703
+ "payloadHash": "0xf71dba14aa3a85c71d29232ead02c2adfc4d26c8fde8fa09f687134ffb00f9d3",
704
+ "expiresEpoch": 2133,
705
+ "height": 61000,
706
+ "pos": 1,
707
+ "paidTo": {}
708
+ },
709
+ {
710
+ "kind": "propose",
711
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001c",
712
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
713
+ "uri": "{\"name\":\"tiebreak\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
714
+ "payloadHash": "0xa9da69a7dc6d2fd6521987305c3979383e4e9b5194d343e2af10a1310ea10083",
715
+ "expiresEpoch": 2133,
716
+ "height": 61001,
717
+ "pos": 0,
718
+ "paidTo": {}
719
+ },
720
+ {
721
+ "kind": "propose",
722
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e001d",
723
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
724
+ "uri": "{\"name\":\"tiebreak\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
725
+ "payloadHash": "0x13d048e1d455bf3e6f5a9e7ef4de86f06b175e762239ff773dc94a56227bbb2f",
726
+ "expiresEpoch": 2133,
727
+ "height": 61002,
728
+ "pos": 0,
729
+ "paidTo": {}
730
+ }
731
+ ],
732
+ "tipHeight": 61003,
733
+ "expectedState": {
734
+ "balances": {},
735
+ "bids": {},
736
+ "feesPaid": "0",
737
+ "names": {
738
+ "tiebreak": {
739
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e001c",
740
+ "effectiveHeight": 61000,
741
+ "finalizeBy": 61028,
742
+ "height": 61001,
743
+ "locked": false,
744
+ "name": "tiebreak",
745
+ "owner": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
746
+ "pending": true
747
+ }
748
+ },
749
+ "offers": {},
750
+ "tipHeight": 61003,
751
+ "tokens": {}
752
+ }
753
+ },
754
+ {
755
+ "name": "rules-name-contest-id-pre-v25-later-reveal-lower",
756
+ "events": [
757
+ {
758
+ "kind": "propose",
759
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0022",
760
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
761
+ "uri": "{\"commit\":\"0x75f720533e98dce1535784e7ada228b9b4675cb529300bdae4984009a25920b7\",\"t\":\"ncommit\",\"v\":1}",
762
+ "payloadHash": "0xcc12e176d03c27f2746bf73bc32417f2b1e8e5c0b5260fa113d6019478192be3",
763
+ "expiresEpoch": 1634,
764
+ "height": 46040,
765
+ "pos": 0,
766
+ "paidTo": {}
767
+ },
768
+ {
769
+ "kind": "propose",
770
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0023",
771
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
772
+ "uri": "{\"commit\":\"0xe045ea92414f4f7db83d668081ef718a389f173f3a5c47d549d84d49b0ebd813\",\"t\":\"ncommit\",\"v\":1}",
773
+ "payloadHash": "0x255f966106fa0431c9b81c8a5e90f633809c3d2c93f4511a1b135debe69e3fce",
774
+ "expiresEpoch": 1634,
775
+ "height": 46040,
776
+ "pos": 1,
777
+ "paidTo": {}
778
+ },
779
+ {
780
+ "kind": "propose",
781
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0021",
782
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
783
+ "uri": "{\"name\":\"regtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
784
+ "payloadHash": "0xaf8c2d1eb40473897f665ed5da70184210aa6a102c7d4ab106f74d88d33bebec",
785
+ "expiresEpoch": 1634,
786
+ "height": 46041,
787
+ "pos": 0,
788
+ "paidTo": {
789
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
790
+ }
791
+ },
792
+ {
793
+ "kind": "propose",
794
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0020",
795
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
796
+ "uri": "{\"name\":\"regtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
797
+ "payloadHash": "0xeea2c356301db39db8bb6c67d51ee591d7c8178fadb70111887bd74b3795df5b",
798
+ "expiresEpoch": 1634,
799
+ "height": 46042,
800
+ "pos": 0,
801
+ "paidTo": {
802
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
803
+ }
804
+ }
805
+ ],
806
+ "tipHeight": 46043,
807
+ "expectedState": {
808
+ "balances": {},
809
+ "bids": {},
810
+ "feesPaid": "600000000",
811
+ "names": {
812
+ "regtie": {
813
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e0020",
814
+ "effectiveHeight": 46040,
815
+ "height": 46042,
816
+ "locked": false,
817
+ "name": "regtie",
818
+ "owner": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
819
+ "paidThroughEpoch": 10294
820
+ }
821
+ },
822
+ "offers": {},
823
+ "tipHeight": 46043,
824
+ "tokens": {}
825
+ }
826
+ },
827
+ {
828
+ "name": "rules-name-contest-id-pre-v25-later-reveal-higher",
829
+ "events": [
830
+ {
831
+ "kind": "propose",
832
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0026",
833
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
834
+ "uri": "{\"commit\":\"0x75f720533e98dce1535784e7ada228b9b4675cb529300bdae4984009a25920b7\",\"t\":\"ncommit\",\"v\":1}",
835
+ "payloadHash": "0xcc12e176d03c27f2746bf73bc32417f2b1e8e5c0b5260fa113d6019478192be3",
836
+ "expiresEpoch": 1634,
837
+ "height": 46040,
838
+ "pos": 0,
839
+ "paidTo": {}
840
+ },
841
+ {
842
+ "kind": "propose",
843
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0027",
844
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
845
+ "uri": "{\"commit\":\"0xe045ea92414f4f7db83d668081ef718a389f173f3a5c47d549d84d49b0ebd813\",\"t\":\"ncommit\",\"v\":1}",
846
+ "payloadHash": "0x255f966106fa0431c9b81c8a5e90f633809c3d2c93f4511a1b135debe69e3fce",
847
+ "expiresEpoch": 1634,
848
+ "height": 46040,
849
+ "pos": 1,
850
+ "paidTo": {}
851
+ },
852
+ {
853
+ "kind": "propose",
854
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0024",
855
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
856
+ "uri": "{\"name\":\"regtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
857
+ "payloadHash": "0xaf8c2d1eb40473897f665ed5da70184210aa6a102c7d4ab106f74d88d33bebec",
858
+ "expiresEpoch": 1634,
859
+ "height": 46041,
860
+ "pos": 0,
861
+ "paidTo": {
862
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
863
+ }
864
+ },
865
+ {
866
+ "kind": "propose",
867
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0025",
868
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
869
+ "uri": "{\"name\":\"regtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
870
+ "payloadHash": "0xeea2c356301db39db8bb6c67d51ee591d7c8178fadb70111887bd74b3795df5b",
871
+ "expiresEpoch": 1634,
872
+ "height": 46042,
873
+ "pos": 0,
874
+ "paidTo": {
875
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
876
+ }
877
+ }
878
+ ],
879
+ "tipHeight": 46043,
880
+ "expectedState": {
881
+ "balances": {},
882
+ "bids": {},
883
+ "feesPaid": "300000000",
884
+ "names": {
885
+ "regtie": {
886
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e0024",
887
+ "effectiveHeight": 46040,
888
+ "height": 46041,
889
+ "locked": false,
890
+ "name": "regtie",
891
+ "owner": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
892
+ "paidThroughEpoch": 10294
893
+ }
894
+ },
895
+ "offers": {},
896
+ "tipHeight": 46043,
897
+ "tokens": {}
898
+ }
899
+ },
900
+ {
901
+ "name": "rules-name-contest-id-recapture-later-reveal-lower",
902
+ "events": [
903
+ {
904
+ "kind": "propose",
905
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002a",
906
+ "proposer": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3",
907
+ "uri": "{\"name\":\"oldtie\",\"t\":\"name\",\"v\":1}",
908
+ "payloadHash": "0x56adcdbd280922052837aec1233c27b80f9c9e26a537ffef92658320bdc2c034",
909
+ "expiresEpoch": 1433,
910
+ "height": 40000,
911
+ "pos": 0,
912
+ "paidTo": {
913
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
914
+ }
915
+ },
916
+ {
917
+ "kind": "propose",
918
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002b",
919
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
920
+ "uri": "{\"commit\":\"0xfb83e49f40b16b72da10a4d4ddac3d9c70c51f3f5abd317f494c7e39f2b8de6b\",\"t\":\"ncommit\",\"v\":1}",
921
+ "payloadHash": "0x15c2b412831b2e16c1cad7fd5e9de5de113021cb1b2a7e05ad9f308e71c66d9f",
922
+ "expiresEpoch": 10920,
923
+ "height": 324600,
924
+ "pos": 0,
925
+ "paidTo": {}
926
+ },
927
+ {
928
+ "kind": "propose",
929
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002c",
930
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
931
+ "uri": "{\"commit\":\"0xccf2f03ca7edeabe22fd4febd5a2e67ba283aa89f1d4dc11b3948184a30e8da0\",\"t\":\"ncommit\",\"v\":1}",
932
+ "payloadHash": "0x06b6fdf5b0c53b169703244312d9d8fa94c0c1aed32671301b3f71eaf48e8013",
933
+ "expiresEpoch": 10920,
934
+ "height": 324600,
935
+ "pos": 1,
936
+ "paidTo": {}
937
+ },
938
+ {
939
+ "kind": "propose",
940
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0029",
941
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
942
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
943
+ "payloadHash": "0x97a559c7189552e792a475924a53c9ad5e976d00d84d3bfb1340a13ecdf1b9b5",
944
+ "expiresEpoch": 10920,
945
+ "height": 324601,
946
+ "pos": 0,
947
+ "paidTo": {}
948
+ },
949
+ {
950
+ "kind": "propose",
951
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0028",
952
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
953
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
954
+ "payloadHash": "0x012c4dec3bd4849711db4324126a79440e3f2d3df146d2ae2641cb38c8c4039b",
955
+ "expiresEpoch": 10920,
956
+ "height": 324602,
957
+ "pos": 0,
958
+ "paidTo": {}
959
+ },
960
+ {
961
+ "kind": "propose",
962
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002d",
963
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
964
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"nfinalize\",\"v\":1}",
965
+ "payloadHash": "0xa3d7368bd8d692856f8d06ec6619ae67ca0c46fa687a9a6647adf46aceb09810",
966
+ "expiresEpoch": 10920,
967
+ "height": 324610,
968
+ "pos": 0,
969
+ "paidTo": {
970
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "9500000000"
971
+ }
972
+ },
973
+ {
974
+ "kind": "propose",
975
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002e",
976
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
977
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"nfinalize\",\"v\":1}",
978
+ "payloadHash": "0x64938a58b3e5e0532ad8d28d7460984adfc082534cd25652e1cc41213c6b3a98",
979
+ "expiresEpoch": 10920,
980
+ "height": 324610,
981
+ "pos": 1,
982
+ "paidTo": {
983
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "9500000000"
984
+ }
985
+ }
986
+ ],
987
+ "tipHeight": 324611,
988
+ "expectedState": {
989
+ "balances": {},
990
+ "bids": {},
991
+ "feesPaid": "9800000000",
992
+ "names": {
993
+ "oldtie": {
994
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e0028",
995
+ "effectiveHeight": 324600,
996
+ "height": 324602,
997
+ "locked": false,
998
+ "name": "oldtie",
999
+ "owner": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
1000
+ "paidThroughEpoch": 19580
1001
+ }
1002
+ },
1003
+ "offers": {},
1004
+ "tipHeight": 324611,
1005
+ "tokens": {}
1006
+ }
1007
+ },
1008
+ {
1009
+ "name": "rules-name-contest-id-recapture-later-reveal-higher",
1010
+ "events": [
1011
+ {
1012
+ "kind": "propose",
1013
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0031",
1014
+ "proposer": "0xc3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3",
1015
+ "uri": "{\"name\":\"oldtie\",\"t\":\"name\",\"v\":1}",
1016
+ "payloadHash": "0x56adcdbd280922052837aec1233c27b80f9c9e26a537ffef92658320bdc2c034",
1017
+ "expiresEpoch": 1433,
1018
+ "height": 40000,
1019
+ "pos": 0,
1020
+ "paidTo": {
1021
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "300000000"
1022
+ }
1023
+ },
1024
+ {
1025
+ "kind": "propose",
1026
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0032",
1027
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
1028
+ "uri": "{\"commit\":\"0xfb83e49f40b16b72da10a4d4ddac3d9c70c51f3f5abd317f494c7e39f2b8de6b\",\"t\":\"ncommit\",\"v\":1}",
1029
+ "payloadHash": "0x15c2b412831b2e16c1cad7fd5e9de5de113021cb1b2a7e05ad9f308e71c66d9f",
1030
+ "expiresEpoch": 10920,
1031
+ "height": 324600,
1032
+ "pos": 0,
1033
+ "paidTo": {}
1034
+ },
1035
+ {
1036
+ "kind": "propose",
1037
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0033",
1038
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
1039
+ "uri": "{\"commit\":\"0xccf2f03ca7edeabe22fd4febd5a2e67ba283aa89f1d4dc11b3948184a30e8da0\",\"t\":\"ncommit\",\"v\":1}",
1040
+ "payloadHash": "0x06b6fdf5b0c53b169703244312d9d8fa94c0c1aed32671301b3f71eaf48e8013",
1041
+ "expiresEpoch": 10920,
1042
+ "height": 324600,
1043
+ "pos": 1,
1044
+ "paidTo": {}
1045
+ },
1046
+ {
1047
+ "kind": "propose",
1048
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e002f",
1049
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
1050
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"name\",\"v\":1}",
1051
+ "payloadHash": "0x97a559c7189552e792a475924a53c9ad5e976d00d84d3bfb1340a13ecdf1b9b5",
1052
+ "expiresEpoch": 10920,
1053
+ "height": 324601,
1054
+ "pos": 0,
1055
+ "paidTo": {}
1056
+ },
1057
+ {
1058
+ "kind": "propose",
1059
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0030",
1060
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
1061
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"name\",\"v\":1}",
1062
+ "payloadHash": "0x012c4dec3bd4849711db4324126a79440e3f2d3df146d2ae2641cb38c8c4039b",
1063
+ "expiresEpoch": 10920,
1064
+ "height": 324602,
1065
+ "pos": 0,
1066
+ "paidTo": {}
1067
+ },
1068
+ {
1069
+ "kind": "propose",
1070
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0034",
1071
+ "proposer": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
1072
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"aaaaaaaaaaaaaaaa\",\"t\":\"nfinalize\",\"v\":1}",
1073
+ "payloadHash": "0xa3d7368bd8d692856f8d06ec6619ae67ca0c46fa687a9a6647adf46aceb09810",
1074
+ "expiresEpoch": 10920,
1075
+ "height": 324610,
1076
+ "pos": 0,
1077
+ "paidTo": {
1078
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "9500000000"
1079
+ }
1080
+ },
1081
+ {
1082
+ "kind": "propose",
1083
+ "id": "0x000000000000000000000000000000000000000000000000000000002a1e0035",
1084
+ "proposer": "0xb2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
1085
+ "uri": "{\"name\":\"oldtie\",\"salt\":\"bbbbbbbbbbbbbbbb\",\"t\":\"nfinalize\",\"v\":1}",
1086
+ "payloadHash": "0x64938a58b3e5e0532ad8d28d7460984adfc082534cd25652e1cc41213c6b3a98",
1087
+ "expiresEpoch": 10920,
1088
+ "height": 324610,
1089
+ "pos": 1,
1090
+ "paidTo": {
1091
+ "0x6b09ce74e6070ebc982ab0fb793a211c4d24f016": "9500000000"
1092
+ }
1093
+ }
1094
+ ],
1095
+ "tipHeight": 324611,
1096
+ "expectedState": {
1097
+ "balances": {},
1098
+ "bids": {},
1099
+ "feesPaid": "9800000000",
1100
+ "names": {
1101
+ "oldtie": {
1102
+ "claimId": "0x000000000000000000000000000000000000000000000000000000002a1e002f",
1103
+ "effectiveHeight": 324600,
1104
+ "height": 324601,
1105
+ "locked": false,
1106
+ "name": "oldtie",
1107
+ "owner": "0xa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
1108
+ "paidThroughEpoch": 19580
1109
+ }
1110
+ },
1111
+ "offers": {},
1112
+ "tipHeight": 324611,
1113
+ "tokens": {}
1114
+ }
444
1115
  }
445
1116
  ]
446
1117
  }