@oakagentkit/core 0.2.1 → 0.2.3
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/build/dist/api/addresses.d.ts +93 -0
- package/build/dist/api/addresses.js +1 -1
- package/build/dist/api/chain.js +1 -1
- package/build/dist/api/history.js +1 -1
- package/build/dist/api/identity-link.js +1 -1
- package/build/dist/api/metadata.js +1 -1
- package/build/dist/api/modules/beefy/boosts.js +1 -1
- package/build/dist/api/modules/beefy/clm.js +1 -1
- package/build/dist/api/modules/beefy/guard.js +1 -1
- package/build/dist/api/modules/beefy/index.js +1 -1
- package/build/dist/api/modules/beefy/liquidity.js +1 -1
- package/build/dist/api/modules/beefy/management.js +1 -1
- package/build/dist/api/modules/beefy/vaults.js +1 -1
- package/build/dist/api/modules/clanker/extensions.js +1 -1
- package/build/dist/api/modules/clanker/index.js +1 -1
- package/build/dist/api/modules/clanker/manage.js +1 -1
- package/build/dist/api/modules/clanker/pool-config.js +1 -1
- package/build/dist/api/modules/clanker/protocol.js +1 -1
- package/build/dist/api/modules/clanker/state.js +1 -1
- package/build/dist/api/modules/erc8004/common.js +1 -1
- package/build/dist/api/modules/erc8004/domain.js +1 -1
- package/build/dist/api/modules/erc8004/index.js +1 -1
- package/build/dist/api/modules/erc8004/management.js +1 -1
- package/build/dist/api/modules/erc8004/reputation.js +1 -1
- package/build/dist/api/modules/erc8004/services.js +1 -1
- package/build/dist/api/modules/erc8004/validation.js +1 -1
- package/build/dist/api/modules/grove/index.js +1 -1
- package/build/dist/api/modules/heyresearch/backoff.d.ts +6 -0
- package/build/dist/api/modules/heyresearch/backoff.js +1 -0
- package/build/dist/api/modules/heyresearch/builder-feed.d.ts +62 -0
- package/build/dist/api/modules/heyresearch/builder-feed.js +1 -0
- package/build/dist/api/modules/heyresearch/index.d.ts +3 -0
- package/build/dist/api/modules/heyresearch/index.js +1 -1
- package/build/dist/api/modules/heyresearch/proof-reads.d.ts +7 -0
- package/build/dist/api/modules/heyresearch/proof-reads.js +1 -0
- package/build/dist/api/modules/heyresearch/public-reads.d.ts +1 -0
- package/build/dist/api/modules/heyresearch/public-reads.js +1 -1
- package/build/dist/api/modules/heyresearch/scan.d.ts +31 -0
- package/build/dist/api/modules/heyresearch/scan.js +1 -0
- package/build/dist/api/modules/heyresearch/status-labels.d.ts +5 -0
- package/build/dist/api/modules/heyresearch/status-labels.js +1 -0
- package/build/dist/api/modules/heyresearch/token-facts.d.ts +123 -0
- package/build/dist/api/modules/heyresearch/token-facts.js +1 -0
- package/build/dist/api/modules/hoodag/chain-reads.js +1 -1
- package/build/dist/api/modules/hoodag/index.js +1 -1
- package/build/dist/api/modules/hoodag/management.js +1 -1
- package/build/dist/api/modules/hoodag/public-reads.js +1 -1
- package/build/dist/api/modules/hoodag/reconstruct.js +1 -1
- package/build/dist/api/modules/hoodlock/airdrop.js +1 -1
- package/build/dist/api/modules/hoodlock/buyback.js +1 -1
- package/build/dist/api/modules/hoodlock/commerce.js +1 -1
- package/build/dist/api/modules/hoodlock/fee.js +1 -1
- package/build/dist/api/modules/hoodlock/guard.js +1 -1
- package/build/dist/api/modules/hoodlock/index.js +1 -1
- package/build/dist/api/modules/hoodlock/lifecycle.js +1 -1
- package/build/dist/api/modules/hoodlock/locks-burn.js +1 -1
- package/build/dist/api/modules/hoodlock/public.js +1 -1
- package/build/dist/api/modules/hookr/actions.d.ts +1 -1
- package/build/dist/api/modules/hookr/actions.js +1 -1
- package/build/dist/api/modules/hookr/addons.js +1 -1
- package/build/dist/api/modules/hookr/agent-gate.d.ts +63 -0
- package/build/dist/api/modules/hookr/agent-gate.js +1 -0
- package/build/dist/api/modules/hookr/contracts.js +1 -1
- package/build/dist/api/modules/hookr/create-cancel.js +1 -1
- package/build/dist/api/modules/hookr/discovery.js +1 -1
- package/build/dist/api/modules/hookr/fill-bounty.js +1 -1
- package/build/dist/api/modules/hookr/index.d.ts +1 -0
- package/build/dist/api/modules/hookr/index.js +1 -1
- package/build/dist/api/modules/hookr/launch-options.d.ts +119 -0
- package/build/dist/api/modules/hookr/launch-options.js +1 -0
- package/build/dist/api/modules/hookr/launch-profile.d.ts +5 -0
- package/build/dist/api/modules/hookr/launch-profile.js +1 -0
- package/build/dist/api/modules/hookr/launch-receipt.d.ts +144 -0
- package/build/dist/api/modules/hookr/launch-receipt.js +1 -0
- package/build/dist/api/modules/hookr/launch.d.ts +58 -0
- package/build/dist/api/modules/hookr/launch.js +1 -0
- package/build/dist/api/modules/hookr/liquidity.d.ts +48 -0
- package/build/dist/api/modules/hookr/liquidity.js +1 -0
- package/build/dist/api/modules/hookr/lp-positions.d.ts +2 -0
- package/build/dist/api/modules/hookr/lp-positions.js +1 -0
- package/build/dist/api/modules/hookr/lp-reads.d.ts +52 -0
- package/build/dist/api/modules/hookr/lp-reads.js +1 -0
- package/build/dist/api/modules/hookr/lp-receipt.d.ts +136 -0
- package/build/dist/api/modules/hookr/lp-receipt.js +1 -0
- package/build/dist/api/modules/hookr/lp-state.d.ts +33 -0
- package/build/dist/api/modules/hookr/lp-state.js +1 -0
- package/build/dist/api/modules/hookr/pins.d.ts +43 -0
- package/build/dist/api/modules/hookr/pins.js +1 -0
- package/build/dist/api/modules/hookr/public-reads.js +1 -1
- package/build/dist/api/modules/hookr/read-utils.d.ts +59 -0
- package/build/dist/api/modules/hookr/read-utils.js +1 -0
- package/build/dist/api/modules/hookr/relay.js +1 -1
- package/build/dist/api/modules/hookr/revenue.js +1 -1
- package/build/dist/api/modules/kyberswap/index.js +1 -1
- package/build/dist/api/modules/kyberswap/source-pools.js +1 -1
- package/build/dist/api/modules/lighter/index.js +1 -1
- package/build/dist/api/modules/longbow/administration.js +1 -1
- package/build/dist/api/modules/longbow/analytics.js +1 -1
- package/build/dist/api/modules/longbow/fixed.js +1 -1
- package/build/dist/api/modules/longbow/index.js +1 -1
- package/build/dist/api/modules/longbow/nft.js +1 -1
- package/build/dist/api/modules/longbow/rebates.js +1 -1
- package/build/dist/api/modules/longbow/staking.js +1 -1
- package/build/dist/api/modules/meridian/index.js +1 -1
- package/build/dist/api/modules/meridian/markets.js +1 -1
- package/build/dist/api/modules/meridian/rfq.js +1 -1
- package/build/dist/api/modules/merkl/discovery.js +1 -1
- package/build/dist/api/modules/merkl/index.js +1 -1
- package/build/dist/api/modules/merkl/manage.js +1 -1
- package/build/dist/api/modules/merkl/protocol.js +1 -1
- package/build/dist/api/modules/morpho/allocator.js +1 -1
- package/build/dist/api/modules/morpho/bundles.js +1 -1
- package/build/dist/api/modules/morpho/in-kind.js +1 -1
- package/build/dist/api/modules/morpho/index.js +1 -1
- package/build/dist/api/modules/morpho/local-guard.js +1 -1
- package/build/dist/api/modules/morpho/midnight.js +1 -1
- package/build/dist/api/modules/morpho/protocol.js +1 -1
- package/build/dist/api/modules/morpho/vault-management.js +1 -1
- package/build/dist/api/modules/morpho/vault-tools.js +1 -1
- package/build/dist/api/modules/morpho/vault-v2.js +1 -1
- package/build/dist/api/modules/netnet/card-plan.js +1 -1
- package/build/dist/api/modules/netnet/card-read.js +1 -1
- package/build/dist/api/modules/netnet/card-recovery.js +1 -1
- package/build/dist/api/modules/netnet/desk-action.js +1 -1
- package/build/dist/api/modules/netnet/desk-read.js +1 -1
- package/build/dist/api/modules/netnet/financial.js +1 -1
- package/build/dist/api/modules/netnet/index.js +1 -1
- package/build/dist/api/modules/netnet/staking.js +1 -1
- package/build/dist/api/modules/orbio/index.js +1 -1
- package/build/dist/api/modules/pons/claim.js +1 -1
- package/build/dist/api/modules/pons/index.js +1 -1
- package/build/dist/api/modules/pons/launch-status.js +1 -1
- package/build/dist/api/modules/pons/prices.js +1 -1
- package/build/dist/api/modules/pons/reads.js +1 -1
- package/build/dist/api/modules/pons/swap-terms.js +1 -1
- package/build/dist/api/modules/pons/trade.js +1 -1
- package/build/dist/api/modules/poolstrade/index.js +1 -1
- package/build/dist/api/modules/priors/coverage.js +1 -1
- package/build/dist/api/modules/priors/discovery.js +1 -1
- package/build/dist/api/modules/priors/features.js +1 -1
- package/build/dist/api/modules/priors/index.js +1 -1
- package/build/dist/api/modules/priors/integration.js +1 -1
- package/build/dist/api/modules/priors/market.js +1 -1
- package/build/dist/api/modules/priors/pt.js +1 -1
- package/build/dist/api/modules/priors/savings-exit.js +1 -1
- package/build/dist/api/modules/priors/starter-line.js +1 -1
- package/build/dist/api/modules/priors/stock-swap.js +1 -1
- package/build/dist/api/modules/relay/bootstrap.js +1 -1
- package/build/dist/api/modules/relay/discovery.js +1 -1
- package/build/dist/api/modules/relay/inbound.js +1 -1
- package/build/dist/api/modules/relay/index.js +1 -1
- package/build/dist/api/modules/relay/outbound-status.js +1 -1
- package/build/dist/api/modules/relay/reads.js +1 -1
- package/build/dist/api/modules/spark/actions.js +1 -1
- package/build/dist/api/modules/spark/details.js +1 -1
- package/build/dist/api/modules/spark/index.js +1 -1
- package/build/dist/api/modules/spark/management.js +1 -1
- package/build/dist/api/modules/steakhouse/analytics.js +1 -1
- package/build/dist/api/modules/steakhouse/erc4626.js +1 -1
- package/build/dist/api/modules/steakhouse/index.js +1 -1
- package/build/dist/api/modules/steakhouse/local-guard.js +1 -1
- package/build/dist/api/modules/steakhouse/management.js +1 -1
- package/build/dist/api/modules/steakhouse/v2-exit.js +1 -1
- package/build/dist/api/modules/tickerspring/basket-routes.js +1 -1
- package/build/dist/api/modules/tickerspring/contract-reads.js +1 -1
- package/build/dist/api/modules/tickerspring/discovery.js +1 -1
- package/build/dist/api/modules/tickerspring/exit-preview.js +1 -1
- package/build/dist/api/modules/tickerspring/guards.js +1 -1
- package/build/dist/api/modules/tickerspring/index.js +1 -1
- package/build/dist/api/modules/tickerspring/journeys.js +1 -1
- package/build/dist/api/modules/tickerspring/ladder.js +1 -1
- package/build/dist/api/modules/tickerspring/maker.js +1 -1
- package/build/dist/api/modules/tickerspring/order-accounting.js +1 -1
- package/build/dist/api/modules/tickerspring/research.js +1 -1
- package/build/dist/api/modules/tickerspring/strategies.js +1 -1
- package/build/dist/api/modules/uniswap/auction-create.js +1 -1
- package/build/dist/api/modules/uniswap/auction.js +1 -1
- package/build/dist/api/modules/uniswap/batch.js +1 -1
- package/build/dist/api/modules/uniswap/common.js +1 -1
- package/build/dist/api/modules/uniswap/fees.js +1 -1
- package/build/dist/api/modules/uniswap/index.js +1 -1
- package/build/dist/api/modules/uniswap/local-guard.js +1 -1
- package/build/dist/api/modules/uniswap/oracle.js +1 -1
- package/build/dist/api/modules/uniswap/pool-math.js +1 -1
- package/build/dist/api/modules/uniswap/pools.js +1 -1
- package/build/dist/api/modules/uniswap/position.js +1 -1
- package/build/dist/api/modules/uniswap/protocol.js +1 -1
- package/build/dist/api/modules/uniswap/token-jar.js +1 -1
- package/build/dist/api/modules/uniswap/trade-batch.js +1 -1
- package/build/dist/api/modules/uniswap/trade.js +1 -1
- package/build/dist/api/modules/uniswap/v2.js +1 -1
- package/build/dist/api/modules/uniswap/v3.js +1 -1
- package/build/dist/api/modules/uniswap/v4.js +1 -1
- package/build/dist/api/modules/uniswap/wrap.js +1 -1
- package/build/dist/api/modules/velora/claims.js +1 -1
- package/build/dist/api/modules/velora/delta-reads.js +1 -1
- package/build/dist/api/modules/velora/index.js +1 -1
- package/build/dist/api/modules/wormhole/index.d.ts +5 -0
- package/build/dist/api/modules/wormhole/index.js +1 -0
- package/build/dist/api/modules/wormhole/license.d.ts +2 -0
- package/build/dist/api/modules/wormhole/license.js +1 -0
- package/build/dist/api/modules/wormhole/quotetext.d.ts +36 -0
- package/build/dist/api/modules/wormhole/quotetext.js +1 -0
- package/build/dist/api/modules/wormhole/scan-text.d.ts +40 -0
- package/build/dist/api/modules/wormhole/scan-text.js +1 -0
- package/build/dist/api/modules/wormhole/token-check.d.ts +54 -0
- package/build/dist/api/modules/wormhole/token-check.js +1 -0
- package/build/dist/api/positions.js +1 -1
- package/build/dist/api/pricenote.js +1 -1
- package/build/dist/api/prices.js +1 -1
- package/build/dist/api/pricing.js +1 -1
- package/build/dist/api/rpc.js +1 -1
- package/build/dist/api/send.js +1 -1
- package/build/dist/api/signing-registry.js +1 -1
- package/build/dist/api/signing.js +1 -1
- package/build/dist/api/simulate.js +1 -1
- package/build/dist/api/swap.js +1 -1
- package/build/dist/api/tokens.js +1 -1
- package/build/dist/api/tool-policy.js +1 -1
- package/build/dist/api/types.d.ts +7 -0
- package/build/dist/chunks/{QHHZDXRG.js → 2FSX7MMR.js} +1 -1
- package/build/dist/chunks/{RTBOMWCB.js → 2LM7U4S7.js} +1 -1
- package/build/dist/chunks/{BBVKWG65.js → 2MSQ6JII.js} +1 -1
- package/build/dist/chunks/{T6MTTMLQ.js → 2UU5TBBB.js} +1 -1
- package/build/dist/chunks/{OW7GOYKA.js → 2W46IRX6.js} +1 -1
- package/build/dist/chunks/{6LLOTPH2.js → 3EFV4FQF.js} +1 -1
- package/build/dist/chunks/{IAXKPME3.js → 3NDVXEBR.js} +1 -1
- package/build/dist/chunks/3SC5UI35.js +1 -0
- package/build/dist/chunks/{TCS3ICNE.js → 3WBDHUV2.js} +1 -1
- package/build/dist/chunks/{UPPYXY74.js → 4AKIXLXH.js} +1 -1
- package/build/dist/chunks/{ZGXNTWYG.js → 4GHVIBL5.js} +1 -1
- package/build/dist/chunks/{NHCRJC5X.js → 4KQZTPMS.js} +1 -1
- package/build/dist/chunks/{N77ANGBT.js → 4X2JOQ2L.js} +1 -1
- package/build/dist/chunks/{ZPM2MFXZ.js → 52DHGSG4.js} +1 -1
- package/build/dist/chunks/{2CS3M32D.js → 57HAXNQV.js} +1 -1
- package/build/dist/chunks/5IIR3GIN.js +1 -0
- package/build/dist/chunks/{CAU44UWP.js → 5O5ZE3ZV.js} +1 -1
- package/build/dist/chunks/5OEHZJ6X.js +1 -0
- package/build/dist/chunks/{CBA776XQ.js → 5VHH5PW3.js} +1 -1
- package/build/dist/chunks/{6HV5BR7P.js → 6AWTAE4Q.js} +1 -1
- package/build/dist/chunks/{JRVTSGAT.js → 6UPPUHCL.js} +1 -1
- package/build/dist/chunks/{MEMVFR7Z.js → 6ZYLNB2B.js} +1 -1
- package/build/dist/chunks/7XLEYOZH.js +1 -0
- package/build/dist/chunks/{Q4RZQCDS.js → AAGDMH54.js} +1 -1
- package/build/dist/chunks/ACN2BFMA.js +1 -0
- package/build/dist/chunks/{L24EOVLT.js → AJP5LDM2.js} +1 -1
- package/build/dist/chunks/{F2YH72GF.js → ALK6NKFP.js} +1 -1
- package/build/dist/chunks/{EC5W3UZD.js → AMICUXS6.js} +1 -1
- package/build/dist/chunks/{BEPSWFJX.js → ASDKY5NX.js} +1 -1
- package/build/dist/chunks/{5LQBHXFA.js → BX7XQANB.js} +1 -1
- package/build/dist/chunks/{NUTHT4FE.js → CE7D6MUS.js} +1 -1
- package/build/dist/chunks/{QNPEKNWM.js → CEIPDEXZ.js} +1 -1
- package/build/dist/chunks/{HFQS5344.js → CQCVFRQ5.js} +1 -1
- package/build/dist/chunks/{OJLMF5AR.js → CUNQ5RG5.js} +1 -1
- package/build/dist/chunks/{IWALIX7Q.js → CXLEQCP3.js} +1 -1
- package/build/dist/chunks/{VJ3W2V3B.js → CY75R4FK.js} +1 -1
- package/build/dist/chunks/{65QFM4JU.js → DCTUYDWF.js} +1 -1
- package/build/dist/chunks/{N37ZLNCT.js → DRWWPBOQ.js} +1 -1
- package/build/dist/chunks/{7B5UH2VS.js → DZGEQBO7.js} +1 -1
- package/build/dist/chunks/{RFJCG4NA.js → E7R3J4H7.js} +1 -1
- package/build/dist/chunks/{7T4BYFD4.js → EGUMOD3A.js} +1 -1
- package/build/dist/chunks/ELZNT5Q3.js +1 -0
- package/build/dist/chunks/{IUETZH6I.js → EXRKBBX2.js} +1 -1
- package/build/dist/chunks/{K7HIKXNT.js → FBSUTF3B.js} +1 -1
- package/build/dist/chunks/{LFN3OODW.js → FUXT7GRK.js} +1 -1
- package/build/dist/chunks/{7US6PD56.js → G3MHDTGT.js} +1 -1
- package/build/dist/chunks/G6HCV67X.js +1 -0
- package/build/dist/chunks/GCWA4Z3W.js +1 -0
- package/build/dist/chunks/{HNMOB76J.js → GGUEKSR4.js} +1 -1
- package/build/dist/chunks/{GZ5TW3WB.js → GIV5JMTE.js} +1 -1
- package/build/dist/chunks/{OMTCWXQR.js → GJY3P6OG.js} +1 -1
- package/build/dist/chunks/HOEQVPY7.js +1 -0
- package/build/dist/chunks/{3R3C3CU5.js → IBXYIN7Q.js} +1 -1
- package/build/dist/chunks/{SXX52Y27.js → IUE6RASI.js} +1 -1
- package/build/dist/chunks/{AYM5L6L7.js → J3GFCBZZ.js} +1 -1
- package/build/dist/chunks/{T3MGNKA6.js → JPOYTTTW.js} +1 -1
- package/build/dist/chunks/{AZGMF26W.js → JST5JGAP.js} +1 -1
- package/build/dist/chunks/{FBQWTWPT.js → JWCOXLYA.js} +1 -1
- package/build/dist/chunks/{G7UKNO2I.js → KHJFXJBU.js} +1 -1
- package/build/dist/chunks/{HQVC6X3T.js → KSZMMNXK.js} +1 -1
- package/build/dist/chunks/{O7PQDUVT.js → L3ZM77SJ.js} +1 -1
- package/build/dist/chunks/{QRUC7EFE.js → L62M7LOB.js} +1 -1
- package/build/dist/chunks/{22S4SFD5.js → L7YBCMZU.js} +1 -1
- package/build/dist/chunks/LKJBMHCE.js +1 -0
- package/build/dist/chunks/{FKAA7VUR.js → LLM5WDM3.js} +1 -1
- package/build/dist/chunks/{H6ED3RHF.js → LMVB3B6T.js} +1 -1
- package/build/dist/chunks/{UIIJWIR6.js → LQGPMOD2.js} +1 -1
- package/build/dist/chunks/{WLACEU2Y.js → LQUDJCAR.js} +1 -1
- package/build/dist/chunks/LT5P6PZW.js +1 -0
- package/build/dist/chunks/M7U3A4EH.js +3 -0
- package/build/dist/chunks/MKQVS3IO.js +1 -0
- package/build/dist/chunks/{5XFXH2JT.js → NATG6YA6.js} +1 -1
- package/build/dist/chunks/{O47JXRXN.js → NAYRD43N.js} +1 -1
- package/build/dist/chunks/{6L6DSMCU.js → NMYGNJIJ.js} +1 -1
- package/build/dist/chunks/NRBIXV7V.js +1 -0
- package/build/dist/chunks/{D6VP3N27.js → NSOEDRBU.js} +1 -1
- package/build/dist/chunks/{HL2MLC3O.js → NU4K3TEZ.js} +1 -1
- package/build/dist/chunks/NWSPC3NH.js +1 -0
- package/build/dist/chunks/O5IVZHHP.js +1 -0
- package/build/dist/chunks/{I7NUTSSX.js → OE3CLZHR.js} +1 -1
- package/build/dist/chunks/{2NA6JLEC.js → OQVZVR2S.js} +1 -1
- package/build/dist/chunks/{D3OWLDVB.js → OVK4EEOD.js} +1 -1
- package/build/dist/chunks/{Q2VMH2LB.js → PARWLWXW.js} +1 -1
- package/build/dist/chunks/{NCEJZWGX.js → PEA32CWB.js} +1 -1
- package/build/dist/chunks/{DHXVYHT4.js → PTAWEHKB.js} +1 -1
- package/build/dist/chunks/{DVKDWXEJ.js → PWBL4WKB.js} +1 -1
- package/build/dist/chunks/{PR2QED25.js → PZHR4ITH.js} +1 -1
- package/build/dist/chunks/{OG5HRQU4.js → QRDDKA4I.js} +1 -1
- package/build/dist/chunks/{YR3QJVJQ.js → QXNPPCOU.js} +1 -1
- package/build/dist/chunks/{6NR7SVRO.js → QYYFRAWY.js} +1 -1
- package/build/dist/chunks/{QR7ALOR4.js → R53P2K3C.js} +1 -1
- package/build/dist/chunks/{5RKWSFD2.js → R7FXNZRM.js} +1 -1
- package/build/dist/chunks/{CCEWSOBT.js → R7QPJQP6.js} +1 -1
- package/build/dist/chunks/{SLSPWXR6.js → R7SXC74O.js} +1 -1
- package/build/dist/chunks/{IHGVCPVA.js → RAKUK5VR.js} +1 -1
- package/build/dist/chunks/{7LDAJ6BM.js → S3HNPTXA.js} +1 -1
- package/build/dist/chunks/{WIDTTGSH.js → SJPM5ST4.js} +1 -1
- package/build/dist/chunks/{QYHJWU5T.js → SJPYXNOK.js} +1 -1
- package/build/dist/chunks/{VY3P34PY.js → SKQGLGES.js} +1 -1
- package/build/dist/chunks/{ZT67OMLW.js → SOYQOE5P.js} +1 -1
- package/build/dist/chunks/{GUBB5P6V.js → SQZRVIVF.js} +1 -1
- package/build/dist/chunks/{E24S22BZ.js → SSTROLQM.js} +1 -1
- package/build/dist/chunks/{DGGOO4RN.js → SXAIXD56.js} +1 -1
- package/build/dist/chunks/{D4WURN33.js → SXX3VTBP.js} +1 -1
- package/build/dist/chunks/{UXG67LH3.js → TCPPYBGQ.js} +1 -1
- package/build/dist/chunks/{67TJOOBI.js → TLJPVYRJ.js} +1 -1
- package/build/dist/chunks/{ULJ6E4HP.js → TMGWXDCZ.js} +1 -1
- package/build/dist/chunks/TNLHMDWL.js +1 -0
- package/build/dist/chunks/{NMFVXBTL.js → TNSKEHPC.js} +1 -1
- package/build/dist/chunks/TPDOUL4N.js +1 -0
- package/build/dist/chunks/{C2FEXLMA.js → TQL7UDFL.js} +1 -1
- package/build/dist/chunks/{QXFJZGVB.js → TWCSCRFS.js} +1 -1
- package/build/dist/chunks/{2EDXKJ3B.js → TWSTOFN3.js} +1 -1
- package/build/dist/chunks/{X6G4BD35.js → U3F6DDML.js} +1 -1
- package/build/dist/chunks/{XGUKLFBU.js → UFS2RVEZ.js} +1 -1
- package/build/dist/chunks/{RM5W63LO.js → UNZRE3YU.js} +1 -1
- package/build/dist/chunks/{GECX5U3F.js → USSOVTD5.js} +1 -1
- package/build/dist/chunks/V2OOOV6B.js +1 -0
- package/build/dist/chunks/{IRWEY7TQ.js → V5LTA42G.js} +1 -1
- package/build/dist/chunks/{TAI63P6E.js → VC2RCYQE.js} +1 -1
- package/build/dist/chunks/VCLPOU7T.js +1 -0
- package/build/dist/chunks/{BG4S6MSN.js → VFKNXQXI.js} +1 -1
- package/build/dist/chunks/{3ZVGHC6S.js → VFSRRDLY.js} +1 -1
- package/build/dist/chunks/{XW7RH7YY.js → VVEUJ36E.js} +1 -1
- package/build/dist/chunks/{5EHQM6DM.js → WQ6H62DM.js} +1 -1
- package/build/dist/chunks/{TDN3C4IG.js → WQQJ7UPJ.js} +1 -1
- package/build/dist/chunks/{F3TJCOVV.js → WTSMPDT5.js} +1 -1
- package/build/dist/chunks/{BYXBS45D.js → WVXW6VL3.js} +1 -1
- package/build/dist/chunks/WWFOYZT2.js +1 -0
- package/build/dist/chunks/WWNAGOCD.js +1 -0
- package/build/dist/chunks/X2NJSQUY.js +203 -0
- package/build/dist/chunks/{C3ZZSGSP.js → XQUPZ3GU.js} +1 -1
- package/build/dist/chunks/XQXLFF7Y.js +1 -0
- package/build/dist/chunks/XUYHMOHS.js +1 -0
- package/build/dist/chunks/XV2HQKND.js +1 -0
- package/build/dist/chunks/{QZM7CWZW.js → XVFLT275.js} +1 -1
- package/build/dist/chunks/{BV3AHLH5.js → XWEFKXKA.js} +1 -1
- package/build/dist/chunks/{NKY3DT34.js → YA5WWDEW.js} +1 -1
- package/build/dist/chunks/YHB55C5T.js +1 -0
- package/build/dist/chunks/YOENHHKI.js +1 -0
- package/build/dist/chunks/YQUKU2LS.js +1 -0
- package/build/dist/chunks/{72AWP4BM.js → YZSTP2E6.js} +1 -1
- package/build/dist/chunks/{T3NPRRTY.js → Z7RL4NGX.js} +1 -1
- package/build/dist/chunks/{YMB553OJ.js → ZT47KN7A.js} +1 -1
- package/build/dist/chunks/ZXQMF56D.js +1 -0
- package/package.json +1 -1
- package/build/dist/chunks/6SCCW74G.js +0 -1
- package/build/dist/chunks/DD7755AW.js +0 -1
- package/build/dist/chunks/EYYUWFUR.js +0 -1
- package/build/dist/chunks/JG24LNUI.js +0 -1
- package/build/dist/chunks/JRO6WTK4.js +0 -1
- package/build/dist/chunks/MNFU7PO3.js +0 -1
- package/build/dist/chunks/N3GWFLG6.js +0 -1
- package/build/dist/chunks/RRSODRGT.js +0 -1
- package/build/dist/chunks/UMK564HS.js +0 -1
- package/build/dist/chunks/XPFVT2EA.js +0 -1
- package/build/dist/chunks/XUJSQV52.js +0 -1
|
@@ -487,6 +487,99 @@ export declare const ADDRESSES: {
|
|
|
487
487
|
readonly blockPointer: "/chain/liveStateBlock";
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
+
readonly hookrLauncherV1: {
|
|
491
|
+
readonly launcherV1: {
|
|
492
|
+
readonly address: "0x70a66ADF39B5c9FfEE4A9F081C182edfbb7DBD0C";
|
|
493
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
494
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/launcherV1";
|
|
495
|
+
readonly block: "104346779";
|
|
496
|
+
readonly blockKind: "read";
|
|
497
|
+
};
|
|
498
|
+
readonly rootV1: {
|
|
499
|
+
readonly address: "0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc";
|
|
500
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
501
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/rootV1";
|
|
502
|
+
readonly block: "104346779";
|
|
503
|
+
readonly blockKind: "read";
|
|
504
|
+
};
|
|
505
|
+
readonly rulesV1: {
|
|
506
|
+
readonly address: "0x342bAA22e202954593b04B7eD1663621E0565d46";
|
|
507
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
508
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/rulesV1";
|
|
509
|
+
readonly block: "104346779";
|
|
510
|
+
readonly blockKind: "read";
|
|
511
|
+
};
|
|
512
|
+
readonly agentGateV1: {
|
|
513
|
+
readonly address: "0x3b1aC66a6Fd9e9d8F063d145003cf29eac4Fb0C9";
|
|
514
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
515
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/agentGateV1";
|
|
516
|
+
readonly block: "104346779";
|
|
517
|
+
readonly blockKind: "read";
|
|
518
|
+
};
|
|
519
|
+
readonly familyRouterV1: {
|
|
520
|
+
readonly address: "0xbc56F48f873841d26a5a02575263d82f68e12864";
|
|
521
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
522
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/familyRouterV1";
|
|
523
|
+
readonly block: "104346779";
|
|
524
|
+
readonly blockKind: "read";
|
|
525
|
+
};
|
|
526
|
+
readonly familyLockV1: {
|
|
527
|
+
readonly address: "0x5248AF9139DaDEf0C5296342b7BE441deDf0adC2";
|
|
528
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
529
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/familyLockV1";
|
|
530
|
+
readonly block: "104346779";
|
|
531
|
+
readonly blockKind: "read";
|
|
532
|
+
};
|
|
533
|
+
readonly poolManager: {
|
|
534
|
+
readonly address: "0x8366a39CC670B4001A1121B8F6A443A643e40951";
|
|
535
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
536
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/poolManager";
|
|
537
|
+
readonly block: "104346779";
|
|
538
|
+
readonly blockKind: "read";
|
|
539
|
+
};
|
|
540
|
+
readonly positionManager: {
|
|
541
|
+
readonly address: "0x58daec3116aae6D93017bAAea7749052E8a04fA7";
|
|
542
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
543
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/positionManager";
|
|
544
|
+
readonly block: "104346779";
|
|
545
|
+
readonly blockKind: "read";
|
|
546
|
+
};
|
|
547
|
+
readonly permit2: {
|
|
548
|
+
readonly address: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
549
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
550
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/permit2";
|
|
551
|
+
readonly block: "104346779";
|
|
552
|
+
readonly blockKind: "read";
|
|
553
|
+
};
|
|
554
|
+
readonly registry: {
|
|
555
|
+
readonly address: "0x463c82beA1a52F4Cc05ca0741a24F0AD24bA4602";
|
|
556
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
557
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/registry";
|
|
558
|
+
readonly block: "104346779";
|
|
559
|
+
readonly blockKind: "read";
|
|
560
|
+
};
|
|
561
|
+
readonly router: {
|
|
562
|
+
readonly address: "0xC2Bc9a3fe6c4Ce8C2F7EB4655b0869b01D8c93C9";
|
|
563
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
564
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/router";
|
|
565
|
+
readonly block: "104346779";
|
|
566
|
+
readonly blockKind: "read";
|
|
567
|
+
};
|
|
568
|
+
readonly identity: {
|
|
569
|
+
readonly address: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
570
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
571
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/identity";
|
|
572
|
+
readonly block: "104346779";
|
|
573
|
+
readonly blockKind: "read";
|
|
574
|
+
};
|
|
575
|
+
readonly reputation: {
|
|
576
|
+
readonly address: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
|
|
577
|
+
readonly source: "Hookr verified sources and named-block runtime reads";
|
|
578
|
+
readonly pointer: "ops/growth/hookr-launch-lp-2026-11/DESIGN.md#deployments-and-release-boundaries/reputation";
|
|
579
|
+
readonly block: "104346779";
|
|
580
|
+
readonly blockKind: "read";
|
|
581
|
+
};
|
|
582
|
+
};
|
|
490
583
|
readonly hookr: {
|
|
491
584
|
readonly HookrLimitOrders: {
|
|
492
585
|
readonly address: "0x0c376cc30b1AC98b8ef80a4F516212D3B99402fA";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunks/G6HCV67X.js";import"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";export{i as ADDRESSES,a as CHAIN_ID,p as ETH_USDG_POOL,o as FEE_ESCROW,s as NETWORKS,c as OAK_DECIMALS,e as OAK_FINALITY,l as PONS_FACTORY,m as PONS_HOOK,n as POOL_MANAGER,x as ROUTE_EXECUTORS,w as ROUTE_SELECTORS,b as TESTNET_CHAIN_ID,k as TEST_USDG,r as TEST_USDG_DOMAIN,j as USDG,d as USDG_DECIMALS,q as USDG_DOMAIN,y as VELORA_ANON_PARTNER_AND_FEE,z as VELORA_EXECUTORS,v as assertNetworkRpc,u as assertNetworkUsdg,g as feeMode,f as recipientAuthority,t as resolveNetwork,h as supplyNetRule};
|
package/build/dist/api/chain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j}from"../chunks/
|
|
1
|
+
import{h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j}from"../chunks/CXLEQCP3.js";import"../chunks/G6HCV67X.js";import{d as a}from"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";export{b as DEFAULT_RPC_URL,c as DEFAULT_USER_AGENT,d as MULTICALL3_ADDRESS,g as RPC_TIMEOUT_MS,j as createClientFor,e as getChainDefinition,i as getClient,f as getMulticall3Address,a as plainError,h as withRpcTimeout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as Q}from"../chunks/ULJ6E4HP.js";import"../chunks/LFN3OODW.js";import"../chunks/D3OWLDVB.js";import"../chunks/CCEWSOBT.js";import"../chunks/RFJCG4NA.js";import"../chunks/QNPEKNWM.js";import"../chunks/6NR7SVRO.js";import"../chunks/C2FEXLMA.js";import"../chunks/DHXVYHT4.js";import"../chunks/F2YH72GF.js";import"../chunks/Q2VMH2LB.js";import"../chunks/2EDXKJ3B.js";import"../chunks/T3MGNKA6.js";import"../chunks/UIIJWIR6.js";import"../chunks/D6VP3N27.js";import"../chunks/6LLOTPH2.js";import"../chunks/QZM7CWZW.js";import"../chunks/CAU44UWP.js";import"../chunks/EA6IYKIB.js";import"../chunks/HQVC6X3T.js";import"../chunks/NMFVXBTL.js";import"../chunks/VJ3W2V3B.js";import"../chunks/LIUXNOLP.js";import"../chunks/HFQS5344.js";import"../chunks/G7UKNO2I.js";import"../chunks/BYXBS45D.js";import"../chunks/GZ5TW3WB.js";import"../chunks/5EHQM6DM.js";import{a as Y}from"../chunks/X5V2Z2NM.js";import"../chunks/OG5HRQU4.js";import"../chunks/P4UQGWCP.js";import"../chunks/AXYOJBX6.js";import"../chunks/Z25UKUJF.js";import{a as F}from"../chunks/6IM6A5VA.js";import"../chunks/EG6M6SSO.js";import"../chunks/MYBDO5SA.js";import"../chunks/HIMVOTIU.js";import"../chunks/UWOFA6GV.js";import"../chunks/73N3TOJL.js";import"../chunks/RETS2ZEK.js";import"../chunks/5HCXZWUH.js";import{o as J}from"../chunks/IWALIX7Q.js";import{a as N,i as q,s as z}from"../chunks/XPFVT2EA.js";import{a as L,d as V}from"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";import{decodeEventLog as _,erc20Abi as ie,getAddress as x,isAddress as O,pad as ae,parseAbi as Z}from"viem";var X=[{inputs:[],name:"cancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"expiresAt",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"grandfathered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"hasAccess",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"hasRecord",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"holderOpen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"noteUsed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"paidUntil",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"plan",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"previous",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"quoteHolder",outputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"uint256",name:"burn",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"quoteNoHold",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renew",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"maxPrice",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"renewNoHold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"renewWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"retire",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"retired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"uint64",name:"deadline",type:"uint64"}],name:"setGrandfatherRoot",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"burner",type:"address"},{internalType:"address",name:"treasury",type:"address"}],name:"setPayees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"signupOakCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"plan",type:"uint8"},{internalType:"uint256",name:"maxCount",type:"uint256"},{internalType:"uint256",name:"maxPrice",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"subscribe",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"}],name:"subscribeGrandfathered",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"subscribeGrandfatheredWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"maxCount",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"},{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"subscribeWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"sweepToTreasury",outputs:[],stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint64",name:"at",type:"uint64"}],name:"Cancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"root",type:"bytes32"},{indexed:!1,internalType:"uint64",name:"deadline",type:"uint64"}],name:"GrandfatherRootSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint8",name:"plan",type:"uint8"},{indexed:!1,internalType:"uint64",name:"paidUntil",type:"uint64"},{indexed:!1,internalType:"uint256",name:"amountPaid",type:"uint256"}],name:"Renewed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"at",type:"uint64"}],name:"Retired",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint8",name:"plan",type:"uint8"},{indexed:!1,internalType:"uint64",name:"paidUntil",type:"uint64"},{indexed:!1,internalType:"uint256",name:"signupOakCount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"oakBurned",type:"uint256"},{indexed:!1,internalType:"bool",name:"grandfathered",type:"bool"}],name:"Subscribed",type:"event"},{inputs:[],name:"HolderClosed",type:"error"},{inputs:[],name:"NoteUsed",type:"error"}];var oe=50,Ae=10000n;function He(e){let t=Object.values(z).find(s=>s.chainId===e);if(!t)throw new L("History modules are not configured for this chain.");let n=[{module:"erc8004",contracts:[t.identityRegistry],abi:Y}];if(e!==N)return n;let r=q[N],u=Z(["event Deposit(address indexed sender,address indexed owner,uint256 assets,uint256 shares)","event Withdraw(address indexed sender,address indexed receiver,address indexed owner,uint256 assets,uint256 shares)"]);for(let[s,g]of Object.entries(r.vaults)){if(s==="morphoV2Factory"||s==="beefyTestedLpVault")continue;let h=s.startsWith("longbow")?"longbow":s==="groveAlm"?"grove":s;n.push({module:h,contracts:[g.address],abi:u})}return n.push({module:"hookr",contracts:[r.hookr.HookrLimitOrders.address],abi:Q},{module:"orbio",contracts:[r.orbio.credit.address],abi:Z(["event Activated(uint256 indexed activationId,address indexed by,bytes32 indexed ref,uint256 amount)"])}),n}var ue=X,ee=new WeakMap;function E(e){if(e==null)return null;if(typeof e=="boolean"||typeof e=="number"||typeof e=="string")return e;if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return e.map(E);if(typeof e=="object"){let t={};for(let[n,r]of Object.entries(e))t[n]=E(r);return t}return String(e)}function k(e,t="0"){return e===void 0?t:typeof e=="bigint"?e.toString():typeof e=="number"?BigInt(Math.trunc(e)).toString():BigInt(e).toString()}function le(e){let t=[];e.subscriptionAddress&&t.push(e.subscriptionAddress),e.retiredSubscriptionAddresses&&t.push(...e.retiredSubscriptionAddresses),e.subscriptionAddresses&&t.push(...e.subscriptionAddresses),process.env.OAK_SUBSCRIPTION_ADDRESS&&t.push(process.env.OAK_SUBSCRIPTION_ADDRESS),process.env.OAK_RETIRED_SUBSCRIPTION_ADDRESSES&&t.push(...process.env.OAK_RETIRED_SUBSCRIPTION_ADDRESSES.split(",").map(r=>r.trim()).filter(Boolean));let n=new Set;for(let r of t)O(r,{strict:!1})&&n.add(r.toLowerCase());return n}function te(e){let t=Number(e);return t===1?"holder":t===2?"nohold":t===0?"none":String(e)}function de(e,t,n,r){if(!e.topics.length)return null;try{let u=_({abi:ue,data:e.data,topics:e.topics}),s=u.args??{},g=x(e.address),h=k(e.blockNumber),o=t.toLowerCase();if(u.eventName==="Subscribed"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=te(s.plan),A=k(s.paidUntil),H=k(s.signupOakCount),C=k(s.oakBurned),S=!!s.grandfathered;return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Subscribed",args:{wallet:m,plan:p,paidUntil:A,signupOakCount:H,oakBurned:C,grandfathered:S},description:S?`Grandfathered ${p} subscription until ${A}.`:`Subscribed to ${p} plan until ${A}.`}}if(u.eventName==="Renewed"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=te(s.plan),A=k(s.paidUntil),H=k(s.amountPaid);return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Renewed",args:{wallet:m,plan:p,paidUntil:A,amountPaid:H},description:`Renewed ${p} subscription until ${A} for ${H} USDG base units.`}}if(u.eventName==="Cancelled"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=k(s.at);return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Cancelled",args:{wallet:m,at:p},description:`Cancelled subscription at ${p}.`}}return null}catch{return null}}function v(e,t){return typeof e=="string"?O(e,{strict:!1})&&e.toLowerCase()===t:Array.isArray(e)?e.some(n=>v(n,t)):e!==null&&typeof e=="object"?Object.values(e).some(n=>v(n,t)):!1}function D(e){return typeof e=="string"?O(e,{strict:!1}):Array.isArray(e)?e.some(t=>D(t)):e!==null&&typeof e=="object"?Object.values(e).some(t=>D(t)):!1}function ne(e,t){if(e.length<=1)return!1;let n=ae(t).toLowerCase(),r=t.slice(2).toLowerCase();return e.slice(1).some(u=>{let s=u.toLowerCase();return s===n||s.length===66&&s.startsWith("0x000000000000000000000000")&&s.endsWith(r)})}function ce(e,t){if(!e||e==="0x")return!1;let n=e.slice(2).toLowerCase(),r=`000000000000000000000000${t.slice(2).toLowerCase()}`;for(let u=0;u+64<=n.length;u+=64)if(n.slice(u,u+64)===r)return!0;return!1}function W(e,t){return e.module||e.name||`module_${t}`}function se(e,t,n,r,u,s){let g=W(t,n),h=r.toLowerCase();if(t.contracts&&t.contracts.length>0){let o=e.address.toLowerCase();if(!t.contracts.some(p=>p.toLowerCase()===o))return null}if(t.decodeLog){let o=t.decodeLog(e,{wallet:r,chainId:u,timestamp:s});if(!o||t.filterWallet&&!t.filterWallet(o.args,r))return null;if(D(o.args)){if(!v(o.args,h))return null}else if(!ne(e.topics,r)&&!ce(e.data,r)&&!o.description.toLowerCase().includes(h))return null;return{...o,timestamp:o.timestamp&&o.timestamp!=="0"?o.timestamp:s,module:o.module||g}}if(!t.abi||!e.topics.length)return null;try{let o=_({abi:t.abi,data:e.data,topics:e.topics}),m=o.args??{},p={};for(let[C,S]of Object.entries(m))/^\d+$/.test(C)||(p[C]=typeof S=="string"&&O(S,{strict:!1})?x(S):E(S));if(!(t.filterWallet?t.filterWallet(p,r):v(m,h)||ne(e.topics,r)))return null;let H=o.eventName??"Event";return{transactionHash:e.transactionHash,blockNumber:k(e.blockNumber),logIndex:e.logIndex,timestamp:s,chainId:u,contract:x(e.address),module:g,event:H,args:p,description:`${g} ${H} on ${x(e.address)}.`}}catch{return null}}function pe(e,t,n,r){if(e.topics.length!==3)return null;try{let u=_({abi:ie,data:e.data,topics:e.topics});if(u.eventName!=="Transfer")return null;let s=u.args,g=x(s.from),h=x(s.to),o=t.toLowerCase();if(g.toLowerCase()!==o&&h.toLowerCase()!==o)return null;let m=s.value.toString(),p=x(e.address);return{transactionHash:e.transactionHash,blockNumber:k(e.blockNumber),logIndex:e.logIndex,timestamp:r,chainId:n,contract:p,module:"token",event:"Transfer",args:{from:g,to:h,value:m},description:`Transferred ${m} token base units from ${g} to ${h}.`}}catch{return null}}function me(e,t){let n=BigInt(e.blockNumber),r=BigInt(t.blockNumber);return n<r?-1:n>r?1:e.logIndex-t.logIndex}function P(e,t,n,r){let u=V(t);return{transactionHash:"0x"+"0".repeat(64),blockNumber:"0",logIndex:0,timestamp:"0",chainId:n,contract:r?x(r):"0x"+"0".repeat(40),module:e,event:"error",args:{error:u},description:`${e}: ${u}`}}async function Se(e,t=oe,n={}){if(F(e),!Number.isInteger(t)||t<=0)throw new L("History limit must be a positive integer.");let r=x(e),u=r.toLowerCase(),s=n.chainId??N,g=le(n),h=n.readers??[],o=h.filter(i=>typeof i=="object"&&i!==null),m=h.filter(i=>typeof i=="function"),p=n.client,A=()=>(p||(p=J(n.rpcUrl,s)),p),H=n.logs??[];if(!n.logs){let i=[...new Set([...g,...o.flatMap(a=>a.contracts??[]).map(a=>a.toLowerCase())])].map(a=>x(a));if(i.length>0||o.some(a=>!!(a.contracts?.length||a.abi||a.decodeLog))||h.length===0||n.client!==void 0||n.rpcUrl!==void 0||n.fromBlock!==void 0||n.toBlock!==void 0){let a=A();if(typeof a.getLogs=="function"){let d=i.filter(b=>g.has(b.toLowerCase())),f=i.filter(b=>!g.has(b.toLowerCase())),T=[d,f].filter(b=>b.length);T.length||T.push([]);let w=[];if(n.fromBlock!==void 0&&n.toBlock!==void 0){if(n.fromBlock<0n||n.fromBlock>n.toBlock)throw new L("History block range is invalid.");for(let b=n.fromBlock;b<=n.toBlock;b+=10000n){let c=b+9999n;w.push({fromBlock:b,toBlock:c<n.toBlock?c:n.toBlock})}}else w.push({fromBlock:n.fromBlock,toBlock:n.toBlock});let R=[];for(let b of w)for(let c of T)R.push(...await a.getLogs({...c.length?{address:c}:{},...b}));H=R.map(b=>{let c=b;return{address:c.address,topics:c.topics??[],data:c.data,blockNumber:c.blockNumber??0n,logIndex:Number(c.logIndex??0),transactionHash:c.transactionHash??"0x"+"0".repeat(64),...c.timestamp!==void 0?{timestamp:c.timestamp}:c.blockTimestamp!==void 0?{timestamp:BigInt(c.blockTimestamp)}:{}}})}}}let C=new Map;if(n.blockTimestamps)for(let[i,l]of Object.entries(n.blockTimestamps)){let y=k(i),a=k(l,"0");BigInt(a)>0n&&C.set(y,a)}let S=new Map,M=async i=>{if(i.timestamp!==void 0){let w=k(i.timestamp,"0");if(BigInt(w)>0n)return w}let l=k(i.blockNumber),y=C.get(l);if(y&&BigInt(y)>0n)return y;let a=A(),d=ee.get(a);d||(d=new Map,ee.set(a,d));let f=d.get(l);if(f&&BigInt(f)>0n)return C.set(l,f),f;let T=S.get(l);return T||(T=(async()=>{let w=BigInt(l),R;if(typeof a.getBlock=="function")try{R=(await a.getBlock({blockNumber:w}))?.timestamp}catch(c){if(typeof a.request=="function"){let G=await a.request({method:"eth_getBlockByNumber",params:[`0x${w.toString(16)}`,!1]});if(G?.timestamp!==void 0)R=BigInt(G.timestamp);else throw c}else throw c}else if(typeof a.request=="function"){let c=await a.request({method:"eth_getBlockByNumber",params:[`0x${w.toString(16)}`,!1]});c?.timestamp!==void 0&&(R=BigInt(c.timestamp))}let b=k(R,"0");if(BigInt(b)<=0n)throw new L(`Could not resolve a positive timestamp for block ${l}.`);return C.set(l,b),d.set(l,b),b})(),S.set(l,T)),T},I=[],B=[],$=new Set;for(let i of H){let l=i.address.toLowerCase();if(g.has(l)){let d=de(i,r,s,"1");if(d){let f=await M(i);I.push({...d,timestamp:f});continue}}let y=!1;for(let d=0;d<o.length;d++){if($.has(d))continue;let f=o[d];if(!(f.contracts&&f.contracts.length>0&&!f.contracts.some(w=>w.toLowerCase()===l)))try{if(f.decodeLog){let T=await M(i),w=se(i,f,d,r,s,T);if(w){I.push(w),y=!0;break}}else{let T=se(i,f,d,r,s,"1");if(T){let w=await M(i);I.push({...T,timestamp:w}),y=!0;break}}}catch(T){$.add(d),B.push(P(W(f,d),T,s,f.contracts?.[0]))}}if(y)continue;let a=pe(i,r,s,"1");if(a){let d=await M(i);I.push({...a,timestamp:d})}}let U=[...m.map((i,l)=>({name:i.name||`reader_${l}`,run:()=>i(r,t)})),...o.flatMap((i,l)=>{let y=i.readHistory??i.history;if(typeof y!="function")return[];let a=W(i,l);return[{name:a,contract:i.contracts?.[0],run:async()=>{let d=await y.call(i,r,t);if(!Array.isArray(d))throw new L(`Module ${a} did not return a history list.`);return d.map(f=>({...f,module:f.module||a}))}}]})],j=await Promise.allSettled(U.map(i=>i.run()));for(let i=0;i<j.length;i++){let l=j[i],y=U[i];if(l.status==="fulfilled"){if(!Array.isArray(l.value)){B.push(P(y.name,new L(`Module ${y.name} did not return a history list.`),s,y.contract));continue}for(let a of l.value)D(a.args)&&!v(a.args,u)||I.push({...a,module:a.module||y.name})}else B.push(P(y.name,l.reason,s,y.contract))}if(I.sort(me),B.length===0)return I.slice(-t);let K=Math.max(0,t-B.length);return[...K?I.slice(-K):[],...B].slice(0,t)}export{oe as DEFAULT_HISTORY_LIMIT,Ae as HISTORY_LOOKBACK_BLOCKS,Se as getHistory,He as moduleHistoryReaders};
|
|
1
|
+
import{z as Q}from"../chunks/TMGWXDCZ.js";import"../chunks/FUXT7GRK.js";import"../chunks/OVK4EEOD.js";import"../chunks/R7QPJQP6.js";import"../chunks/E7R3J4H7.js";import"../chunks/CEIPDEXZ.js";import"../chunks/QYYFRAWY.js";import"../chunks/TQL7UDFL.js";import"../chunks/PTAWEHKB.js";import"../chunks/ALK6NKFP.js";import"../chunks/PARWLWXW.js";import"../chunks/TWSTOFN3.js";import"../chunks/JPOYTTTW.js";import"../chunks/LQGPMOD2.js";import"../chunks/NSOEDRBU.js";import"../chunks/3EFV4FQF.js";import"../chunks/XVFLT275.js";import"../chunks/5O5ZE3ZV.js";import"../chunks/EA6IYKIB.js";import"../chunks/KSZMMNXK.js";import"../chunks/TNSKEHPC.js";import"../chunks/CY75R4FK.js";import"../chunks/LIUXNOLP.js";import"../chunks/CQCVFRQ5.js";import"../chunks/KHJFXJBU.js";import"../chunks/WVXW6VL3.js";import"../chunks/GIV5JMTE.js";import"../chunks/WQ6H62DM.js";import{a as Y}from"../chunks/X5V2Z2NM.js";import"../chunks/QRDDKA4I.js";import"../chunks/P4UQGWCP.js";import"../chunks/AXYOJBX6.js";import"../chunks/Z25UKUJF.js";import{a as F}from"../chunks/6IM6A5VA.js";import"../chunks/EG6M6SSO.js";import"../chunks/MYBDO5SA.js";import"../chunks/HIMVOTIU.js";import"../chunks/UWOFA6GV.js";import"../chunks/73N3TOJL.js";import"../chunks/RETS2ZEK.js";import"../chunks/5HCXZWUH.js";import{o as J}from"../chunks/CXLEQCP3.js";import{a as N,i as q,s as z}from"../chunks/G6HCV67X.js";import{a as L,d as V}from"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";import{decodeEventLog as _,erc20Abi as ie,getAddress as x,isAddress as O,pad as ae,parseAbi as Z}from"viem";var X=[{inputs:[],name:"cancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"expiresAt",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"grandfathered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"hasAccess",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"hasRecord",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"holderOpen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"noteUsed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"paidUntil",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"plan",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"previous",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"quoteHolder",outputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"uint256",name:"burn",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"quoteNoHold",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renew",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"maxPrice",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"renewNoHold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"renewWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"retire",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"retired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"root",type:"bytes32"},{internalType:"uint64",name:"deadline",type:"uint64"}],name:"setGrandfatherRoot",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"burner",type:"address"},{internalType:"address",name:"treasury",type:"address"}],name:"setPayees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"wallet",type:"address"}],name:"signupOakCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"plan",type:"uint8"},{internalType:"uint256",name:"maxCount",type:"uint256"},{internalType:"uint256",name:"maxPrice",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"}],name:"subscribe",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"}],name:"subscribeGrandfathered",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"count",type:"uint256"},{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"subscribeGrandfatheredWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"maxCount",type:"uint256"},{components:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"oakPerEthE18",type:"uint256"},{internalType:"uint64",name:"timestamp",type:"uint64"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],internalType:"struct PriceNote",name:"n",type:"tuple"},{internalType:"bytes",name:"sig",type:"bytes"},{internalType:"bytes",name:"usdgAuth",type:"bytes"}],name:"subscribeWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"sweepToTreasury",outputs:[],stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint64",name:"at",type:"uint64"}],name:"Cancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"root",type:"bytes32"},{indexed:!1,internalType:"uint64",name:"deadline",type:"uint64"}],name:"GrandfatherRootSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint8",name:"plan",type:"uint8"},{indexed:!1,internalType:"uint64",name:"paidUntil",type:"uint64"},{indexed:!1,internalType:"uint256",name:"amountPaid",type:"uint256"}],name:"Renewed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint64",name:"at",type:"uint64"}],name:"Retired",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint8",name:"plan",type:"uint8"},{indexed:!1,internalType:"uint64",name:"paidUntil",type:"uint64"},{indexed:!1,internalType:"uint256",name:"signupOakCount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"oakBurned",type:"uint256"},{indexed:!1,internalType:"bool",name:"grandfathered",type:"bool"}],name:"Subscribed",type:"event"},{inputs:[],name:"HolderClosed",type:"error"},{inputs:[],name:"NoteUsed",type:"error"}];var oe=50,Ae=10000n;function He(e){let t=Object.values(z).find(s=>s.chainId===e);if(!t)throw new L("History modules are not configured for this chain.");let n=[{module:"erc8004",contracts:[t.identityRegistry],abi:Y}];if(e!==N)return n;let r=q[N],u=Z(["event Deposit(address indexed sender,address indexed owner,uint256 assets,uint256 shares)","event Withdraw(address indexed sender,address indexed receiver,address indexed owner,uint256 assets,uint256 shares)"]);for(let[s,g]of Object.entries(r.vaults)){if(s==="morphoV2Factory"||s==="beefyTestedLpVault")continue;let h=s.startsWith("longbow")?"longbow":s==="groveAlm"?"grove":s;n.push({module:h,contracts:[g.address],abi:u})}return n.push({module:"hookr",contracts:[r.hookr.HookrLimitOrders.address],abi:Q},{module:"orbio",contracts:[r.orbio.credit.address],abi:Z(["event Activated(uint256 indexed activationId,address indexed by,bytes32 indexed ref,uint256 amount)"])}),n}var ue=X,ee=new WeakMap;function E(e){if(e==null)return null;if(typeof e=="boolean"||typeof e=="number"||typeof e=="string")return e;if(typeof e=="bigint")return e.toString();if(Array.isArray(e))return e.map(E);if(typeof e=="object"){let t={};for(let[n,r]of Object.entries(e))t[n]=E(r);return t}return String(e)}function k(e,t="0"){return e===void 0?t:typeof e=="bigint"?e.toString():typeof e=="number"?BigInt(Math.trunc(e)).toString():BigInt(e).toString()}function le(e){let t=[];e.subscriptionAddress&&t.push(e.subscriptionAddress),e.retiredSubscriptionAddresses&&t.push(...e.retiredSubscriptionAddresses),e.subscriptionAddresses&&t.push(...e.subscriptionAddresses),process.env.OAK_SUBSCRIPTION_ADDRESS&&t.push(process.env.OAK_SUBSCRIPTION_ADDRESS),process.env.OAK_RETIRED_SUBSCRIPTION_ADDRESSES&&t.push(...process.env.OAK_RETIRED_SUBSCRIPTION_ADDRESSES.split(",").map(r=>r.trim()).filter(Boolean));let n=new Set;for(let r of t)O(r,{strict:!1})&&n.add(r.toLowerCase());return n}function te(e){let t=Number(e);return t===1?"holder":t===2?"nohold":t===0?"none":String(e)}function de(e,t,n,r){if(!e.topics.length)return null;try{let u=_({abi:ue,data:e.data,topics:e.topics}),s=u.args??{},g=x(e.address),h=k(e.blockNumber),o=t.toLowerCase();if(u.eventName==="Subscribed"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=te(s.plan),A=k(s.paidUntil),H=k(s.signupOakCount),C=k(s.oakBurned),S=!!s.grandfathered;return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Subscribed",args:{wallet:m,plan:p,paidUntil:A,signupOakCount:H,oakBurned:C,grandfathered:S},description:S?`Grandfathered ${p} subscription until ${A}.`:`Subscribed to ${p} plan until ${A}.`}}if(u.eventName==="Renewed"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=te(s.plan),A=k(s.paidUntil),H=k(s.amountPaid);return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Renewed",args:{wallet:m,plan:p,paidUntil:A,amountPaid:H},description:`Renewed ${p} subscription until ${A} for ${H} USDG base units.`}}if(u.eventName==="Cancelled"){let m=typeof s.wallet=="string"?x(s.wallet):void 0;if(!m||m.toLowerCase()!==o)return null;let p=k(s.at);return{transactionHash:e.transactionHash,blockNumber:h,logIndex:e.logIndex,timestamp:r,chainId:n,contract:g,module:"subscription",event:"Cancelled",args:{wallet:m,at:p},description:`Cancelled subscription at ${p}.`}}return null}catch{return null}}function v(e,t){return typeof e=="string"?O(e,{strict:!1})&&e.toLowerCase()===t:Array.isArray(e)?e.some(n=>v(n,t)):e!==null&&typeof e=="object"?Object.values(e).some(n=>v(n,t)):!1}function D(e){return typeof e=="string"?O(e,{strict:!1}):Array.isArray(e)?e.some(t=>D(t)):e!==null&&typeof e=="object"?Object.values(e).some(t=>D(t)):!1}function ne(e,t){if(e.length<=1)return!1;let n=ae(t).toLowerCase(),r=t.slice(2).toLowerCase();return e.slice(1).some(u=>{let s=u.toLowerCase();return s===n||s.length===66&&s.startsWith("0x000000000000000000000000")&&s.endsWith(r)})}function ce(e,t){if(!e||e==="0x")return!1;let n=e.slice(2).toLowerCase(),r=`000000000000000000000000${t.slice(2).toLowerCase()}`;for(let u=0;u+64<=n.length;u+=64)if(n.slice(u,u+64)===r)return!0;return!1}function W(e,t){return e.module||e.name||`module_${t}`}function se(e,t,n,r,u,s){let g=W(t,n),h=r.toLowerCase();if(t.contracts&&t.contracts.length>0){let o=e.address.toLowerCase();if(!t.contracts.some(p=>p.toLowerCase()===o))return null}if(t.decodeLog){let o=t.decodeLog(e,{wallet:r,chainId:u,timestamp:s});if(!o||t.filterWallet&&!t.filterWallet(o.args,r))return null;if(D(o.args)){if(!v(o.args,h))return null}else if(!ne(e.topics,r)&&!ce(e.data,r)&&!o.description.toLowerCase().includes(h))return null;return{...o,timestamp:o.timestamp&&o.timestamp!=="0"?o.timestamp:s,module:o.module||g}}if(!t.abi||!e.topics.length)return null;try{let o=_({abi:t.abi,data:e.data,topics:e.topics}),m=o.args??{},p={};for(let[C,S]of Object.entries(m))/^\d+$/.test(C)||(p[C]=typeof S=="string"&&O(S,{strict:!1})?x(S):E(S));if(!(t.filterWallet?t.filterWallet(p,r):v(m,h)||ne(e.topics,r)))return null;let H=o.eventName??"Event";return{transactionHash:e.transactionHash,blockNumber:k(e.blockNumber),logIndex:e.logIndex,timestamp:s,chainId:u,contract:x(e.address),module:g,event:H,args:p,description:`${g} ${H} on ${x(e.address)}.`}}catch{return null}}function pe(e,t,n,r){if(e.topics.length!==3)return null;try{let u=_({abi:ie,data:e.data,topics:e.topics});if(u.eventName!=="Transfer")return null;let s=u.args,g=x(s.from),h=x(s.to),o=t.toLowerCase();if(g.toLowerCase()!==o&&h.toLowerCase()!==o)return null;let m=s.value.toString(),p=x(e.address);return{transactionHash:e.transactionHash,blockNumber:k(e.blockNumber),logIndex:e.logIndex,timestamp:r,chainId:n,contract:p,module:"token",event:"Transfer",args:{from:g,to:h,value:m},description:`Transferred ${m} token base units from ${g} to ${h}.`}}catch{return null}}function me(e,t){let n=BigInt(e.blockNumber),r=BigInt(t.blockNumber);return n<r?-1:n>r?1:e.logIndex-t.logIndex}function P(e,t,n,r){let u=V(t);return{transactionHash:"0x"+"0".repeat(64),blockNumber:"0",logIndex:0,timestamp:"0",chainId:n,contract:r?x(r):"0x"+"0".repeat(40),module:e,event:"error",args:{error:u},description:`${e}: ${u}`}}async function Se(e,t=oe,n={}){if(F(e),!Number.isInteger(t)||t<=0)throw new L("History limit must be a positive integer.");let r=x(e),u=r.toLowerCase(),s=n.chainId??N,g=le(n),h=n.readers??[],o=h.filter(i=>typeof i=="object"&&i!==null),m=h.filter(i=>typeof i=="function"),p=n.client,A=()=>(p||(p=J(n.rpcUrl,s)),p),H=n.logs??[];if(!n.logs){let i=[...new Set([...g,...o.flatMap(a=>a.contracts??[]).map(a=>a.toLowerCase())])].map(a=>x(a));if(i.length>0||o.some(a=>!!(a.contracts?.length||a.abi||a.decodeLog))||h.length===0||n.client!==void 0||n.rpcUrl!==void 0||n.fromBlock!==void 0||n.toBlock!==void 0){let a=A();if(typeof a.getLogs=="function"){let d=i.filter(b=>g.has(b.toLowerCase())),f=i.filter(b=>!g.has(b.toLowerCase())),T=[d,f].filter(b=>b.length);T.length||T.push([]);let w=[];if(n.fromBlock!==void 0&&n.toBlock!==void 0){if(n.fromBlock<0n||n.fromBlock>n.toBlock)throw new L("History block range is invalid.");for(let b=n.fromBlock;b<=n.toBlock;b+=10000n){let c=b+9999n;w.push({fromBlock:b,toBlock:c<n.toBlock?c:n.toBlock})}}else w.push({fromBlock:n.fromBlock,toBlock:n.toBlock});let R=[];for(let b of w)for(let c of T)R.push(...await a.getLogs({...c.length?{address:c}:{},...b}));H=R.map(b=>{let c=b;return{address:c.address,topics:c.topics??[],data:c.data,blockNumber:c.blockNumber??0n,logIndex:Number(c.logIndex??0),transactionHash:c.transactionHash??"0x"+"0".repeat(64),...c.timestamp!==void 0?{timestamp:c.timestamp}:c.blockTimestamp!==void 0?{timestamp:BigInt(c.blockTimestamp)}:{}}})}}}let C=new Map;if(n.blockTimestamps)for(let[i,l]of Object.entries(n.blockTimestamps)){let y=k(i),a=k(l,"0");BigInt(a)>0n&&C.set(y,a)}let S=new Map,M=async i=>{if(i.timestamp!==void 0){let w=k(i.timestamp,"0");if(BigInt(w)>0n)return w}let l=k(i.blockNumber),y=C.get(l);if(y&&BigInt(y)>0n)return y;let a=A(),d=ee.get(a);d||(d=new Map,ee.set(a,d));let f=d.get(l);if(f&&BigInt(f)>0n)return C.set(l,f),f;let T=S.get(l);return T||(T=(async()=>{let w=BigInt(l),R;if(typeof a.getBlock=="function")try{R=(await a.getBlock({blockNumber:w}))?.timestamp}catch(c){if(typeof a.request=="function"){let G=await a.request({method:"eth_getBlockByNumber",params:[`0x${w.toString(16)}`,!1]});if(G?.timestamp!==void 0)R=BigInt(G.timestamp);else throw c}else throw c}else if(typeof a.request=="function"){let c=await a.request({method:"eth_getBlockByNumber",params:[`0x${w.toString(16)}`,!1]});c?.timestamp!==void 0&&(R=BigInt(c.timestamp))}let b=k(R,"0");if(BigInt(b)<=0n)throw new L(`Could not resolve a positive timestamp for block ${l}.`);return C.set(l,b),d.set(l,b),b})(),S.set(l,T)),T},I=[],B=[],$=new Set;for(let i of H){let l=i.address.toLowerCase();if(g.has(l)){let d=de(i,r,s,"1");if(d){let f=await M(i);I.push({...d,timestamp:f});continue}}let y=!1;for(let d=0;d<o.length;d++){if($.has(d))continue;let f=o[d];if(!(f.contracts&&f.contracts.length>0&&!f.contracts.some(w=>w.toLowerCase()===l)))try{if(f.decodeLog){let T=await M(i),w=se(i,f,d,r,s,T);if(w){I.push(w),y=!0;break}}else{let T=se(i,f,d,r,s,"1");if(T){let w=await M(i);I.push({...T,timestamp:w}),y=!0;break}}}catch(T){$.add(d),B.push(P(W(f,d),T,s,f.contracts?.[0]))}}if(y)continue;let a=pe(i,r,s,"1");if(a){let d=await M(i);I.push({...a,timestamp:d})}}let U=[...m.map((i,l)=>({name:i.name||`reader_${l}`,run:()=>i(r,t)})),...o.flatMap((i,l)=>{let y=i.readHistory??i.history;if(typeof y!="function")return[];let a=W(i,l);return[{name:a,contract:i.contracts?.[0],run:async()=>{let d=await y.call(i,r,t);if(!Array.isArray(d))throw new L(`Module ${a} did not return a history list.`);return d.map(f=>({...f,module:f.module||a}))}}]})],j=await Promise.allSettled(U.map(i=>i.run()));for(let i=0;i<j.length;i++){let l=j[i],y=U[i];if(l.status==="fulfilled"){if(!Array.isArray(l.value)){B.push(P(y.name,new L(`Module ${y.name} did not return a history list.`),s,y.contract));continue}for(let a of l.value)D(a.args)&&!v(a.args,u)||I.push({...a,module:a.module||y.name})}else B.push(P(y.name,l.reason,s,y.contract))}if(I.sort(me),B.length===0)return I.slice(-t);let K=Math.max(0,t-B.length);return[...K?I.slice(-K):[],...B].slice(0,t)}export{oe as DEFAULT_HISTORY_LIMIT,Ae as HISTORY_LOOKBACK_BLOCKS,Se as getHistory,He as moduleHistoryReaders};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"../chunks/TRCP7X5P.js";import{s as o,t as c}from"../chunks/
|
|
1
|
+
import{a as g}from"../chunks/TRCP7X5P.js";import{s as o,t as c}from"../chunks/G6HCV67X.js";import{a as r}from"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";import{getAddress as u,hashTypedData as m,isAddress as f,zeroAddress as k}from"viem";function a(e,n,t){if(typeof e!="string"||!/^(0|[1-9][0-9]*)$/.test(e)||e.length>78)throw new r(`Identity link ${t} must be a canonical decimal integer string.`);let i=BigInt(e);if(i>=1n<<BigInt(n))throw new r(`Identity link ${t} exceeds uint${n}.`);return i}function y(e,n){if(typeof e!="string"||!f(e,{strict:!1})||u(e)===k)throw new r(`Identity link ${n} must be a nonzero address.`);return u(e)}function l(e,n="mainnet"){a(e,256,"agentId");let{chainId:t,identityRegistry:i}=o[c(n)];return{chainId:t,registry:i,agentId:e}}function w(e){if(e===o.mainnet.chainId)return"mainnet";if(e===o.testnet.chainId)return"testnet";throw new r("Wrong identity network. Select mainnet or testnet and run oak setup again.")}function O(e,n="mainnet"){if(!e||typeof e!="object"||Array.isArray(e))throw new r("Run oak setup to register or link an identity.");let t=e,i=l(t.agentId,n);if(Object.keys(t).some(s=>!["chainId","registry","agentId","linkId"].includes(s))||t.chainId!==i.chainId||t.registry!==i.registry||t.linkId!==void 0&&(typeof t.linkId!="string"||!/^0x[0-9a-f]{64}$/.test(t.linkId)))throw new r(`Wrong identity network or registry. Select chain ${i.chainId} and run oak setup again.`);return{...i,...t.linkId!==void 0?{linkId:t.linkId}:{}}}function I(e){let n=w(e.chainId),{chainId:t,registry:i}=l(e.agentId,n);if(y(e.registry,"registry")!==i)throw new r(`Identity link must use the pinned registry on chain ${t}.`);if(typeof e.audience!="string"||!e.audience.trim())throw new r("Identity link audience must be a nonempty string.");if(typeof e.challenge!="string"||!/^0x[0-9a-fA-F]{64}$/.test(e.challenge))throw new r("Identity link challenge must be a 32-byte hex string.");let s=a(e.issuedAt,64,"issuedAt"),d=a(e.expiresAt,64,"expiresAt");if(s>=d)throw new r("Identity link expiry must be after its issue time.");return{domain:{name:"Oak Identity Link",version:"1",chainId:t,verifyingContract:i},primaryType:"OakIdentityLink",types:{OakIdentityLink:[{name:"agentId",type:"uint256"},{name:"agentWallet",type:"address"},{name:"registry",type:"address"},{name:"chainId",type:"uint256"},{name:"audience",type:"string"},{name:"challenge",type:"bytes32"},{name:"issuedAt",type:"uint64"},{name:"expiresAt",type:"uint64"}]},message:{agentId:a(e.agentId,256,"agentId"),agentWallet:y(e.agentWallet,"agentWallet"),registry:i,chainId:BigInt(t),audience:e.audience,challenge:e.challenge,issuedAt:s,expiresAt:d}}}async function S(e,n){try{let t=I(e.link),i=I(n.expected),s=m(t);if(s!==m(i))return!1;let d=a(n.now,64,"now");if(d<t.message.issuedAt||d>=t.message.expiresAt)return!1;let p=y(n.currentOwner,"currentOwner");return typeof n.blockNumber!="bigint"||n.blockNumber<0n?!1:g({digest:s,signature:e.signature,owner:p,client:n.client,blockNumber:n.blockNumber,policy:"identity-link-legacy"})}catch{return!1}}export{I as buildIdentityLinkTypedData,l as buildIdentityTuple,O as canonicalSessionIdentity,w as identityNetwork,S as verifyIdentityLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunks/
|
|
1
|
+
import{a}from"../chunks/QRDDKA4I.js";import"../chunks/5HCXZWUH.js";import"../chunks/CXLEQCP3.js";import"../chunks/G6HCV67X.js";import"../chunks/5YS5V2LK.js";import"../chunks/JXOEJPJ4.js";export{a as readTokenField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d}from"../../../chunks/VC2RCYQE.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as BEEFY_BOOSTS,b as BEEFY_BOOST_ACTIONS,c as boostAbi,d as createBoostPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k}from"../../../chunks/5VHH5PW3.js";import"../../../chunks/OQVZVR2S.js";import"../../../chunks/XQUPZ3GU.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as BEEFY_CLMS,b as BEEFY_CLM_ACTIONS,j as assertBeefyClmIntent,c as clmAbi,g as clmAllocation,d as clmSwapAbi,e as clmV3SwapAbi,k as createClmActionPart,h as createClmPart,f as pinnedBeefyClm,i as rebuildBeefyClmIntent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"../../../chunks/
|
|
1
|
+
import{a as c}from"../../../chunks/R7SXC74O.js";import"../../../chunks/VC2RCYQE.js";import"../../../chunks/NATG6YA6.js";import"../../../chunks/5VHH5PW3.js";import"../../../chunks/OQVZVR2S.js";import"../../../chunks/XQUPZ3GU.js";import"../../../chunks/P4UQGWCP.js";import{a as l}from"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import{g as i}from"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import{a as r}from"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";var u=["beefy_deposit","beefy_withdraw"];async function h(n,o,t,s){if(!u.includes(n))throw new r("Unknown Beefy vault action.");let e=async()=>{throw new r("Direct Beefy vault actions require no swap.")},d=l({clientFor:()=>s,http:fetch,preview:async a=>({txs:a,changes:[],summary:"Locally reconstructed Beefy vault intent."}),quoteSwap:e,buildSwap:e});return(await c(d).tools.find(a=>a.name===n).execute(o,t)).txs}function v(n,o){if(!o.length||n.length!==o.length||n.some((t,s)=>{let e=o[s];return t.chainId!==e.chainId||!i(t.to,e.to)||t.value!==e.value||!i(t.data,e.data)}))throw new r("Beefy vault calldata differs from the locally reconstructed request; nothing was signed.")}export{u as BEEFY_VAULT_ACTIONS,v as assertBeefyVaultIntent,h as rebuildBeefyVaultIntent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/R7SXC74O.js";import"../../../chunks/VC2RCYQE.js";import"../../../chunks/NATG6YA6.js";import"../../../chunks/5VHH5PW3.js";import"../../../chunks/OQVZVR2S.js";import"../../../chunks/XQUPZ3GU.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as createModule,a as createModulePart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e}from"../../../chunks/NATG6YA6.js";import"../../../chunks/5VHH5PW3.js";import"../../../chunks/OQVZVR2S.js";import"../../../chunks/XQUPZ3GU.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{c as BEEFY_LIQUIDITY_ACTIONS,a as BEEFY_LP,d as assertBeefyLiquidityTransactions,e as createLiquidityPart,b as liquidityAbi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e}from"../../../chunks/XQUPZ3GU.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{c as BEEFY_MANAGEMENT_ACTIONS,a as BEEFY_VAULT_IMPLEMENTATION,b as BEEFY_VAULT_IMPLEMENTATION_HASH,e as createManagementPart,d as managementAbi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/OQVZVR2S.js";import"../../../chunks/XQUPZ3GU.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as BEEFY_VAULTS,c as assertBeefyVaultCode,b as pinnedBeefyVault};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/CQCVFRQ5.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{c as createExtensionsPart,a as extensionSchemas,b as launchExtensions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/XVFLT275.js";import"../../../chunks/5O5ZE3ZV.js";import"../../../chunks/EA6IYKIB.js";import"../../../chunks/KSZMMNXK.js";import"../../../chunks/TNSKEHPC.js";import"../../../chunks/CY75R4FK.js";import"../../../chunks/LIUXNOLP.js";import"../../../chunks/CQCVFRQ5.js";import"../../../chunks/KHJFXJBU.js";import"../../../chunks/WVXW6VL3.js";import"../../../chunks/GIV5JMTE.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/QRDDKA4I.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/EG6M6SSO.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/5HCXZWUH.js";import"../../../chunks/CXLEQCP3.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{c as createModule,b as createModulePart,a as readClankerTokens};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/KHJFXJBU.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as createManagementPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/WVXW6VL3.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as poolConfiguration,a as poolSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/GIV5JMTE.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as createProtocolPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../../chunks/WQ6H62DM.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{e as NONZERO_ADDRESS_ERROR,f as address,c as bytes32Schema,l as deployment,j as hex32,h as integer,b as integerSchema,d as lockerAbi,a as pins,m as poolState,k as readUnits,i as supported,g as units};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{z as act,m as address,l as agentId,o as bytes32,f as bytes32Schema,n as chainGuard,h as coordinates,r as dataProfile,a as disclosure,e as hashSchema,g as hexSchema,d as idSchema,k as isZero,b as marker,c as markerValue,v as matchingReceipt,x as metadataKeyOf,y as metadataValueOf,s as previewAction,q as referenceURI,i as reputationRegistry,t as requireAuthority,u as requireOwnerOrOperator,p as shortText,w as singleEvent,j as validationRegistry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/QYYFRAWY.js";import"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as createDomainPart,a as publicAddress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c,c as d,d as e,e as f}from"../../../chunks/
|
|
1
|
+
import{a as b,b as c,c as d,d as e,e as f}from"../../../chunks/CEIPDEXZ.js";import"../../../chunks/QYYFRAWY.js";import"../../../chunks/TQL7UDFL.js";import"../../../chunks/PTAWEHKB.js";import"../../../chunks/ALK6NKFP.js";import"../../../chunks/PARWLWXW.js";import"../../../chunks/TWSTOFN3.js";import{a}from"../../../chunks/X5V2Z2NM.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as CLI_ALIASES,f as createModule,e as createModulePart,a as identityAbi,c as readAgentIdentity,d as selfRegistration};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/TQL7UDFL.js";import"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as WALLET_MAX_DELAY,c as createManagementPart,b as walletRequest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/PTAWEHKB.js";import"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as createReputationPart,a as decimalText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/ALK6NKFP.js";import"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as SERVICE_KINDS,b as validateService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/PARWLWXW.js";import"../../../chunks/TWSTOFN3.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{a as createValidationPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/SQZRVIVF.js";import"../../../chunks/YHB55C5T.js";import"../../../chunks/PWBL4WKB.js";import"../../../chunks/VVEUJ36E.js";import"../../../chunks/6UPPUHCL.js";import"../../../chunks/TCPPYBGQ.js";import"../../../chunks/AMICUXS6.js";import"../../../chunks/JPOYTTTW.js";import"../../../chunks/LQGPMOD2.js";import"../../../chunks/NSOEDRBU.js";import"../../../chunks/3EFV4FQF.js";import"../../../chunks/XVFLT275.js";import"../../../chunks/5O5ZE3ZV.js";import"../../../chunks/EA6IYKIB.js";import"../../../chunks/KSZMMNXK.js";import"../../../chunks/TNSKEHPC.js";import"../../../chunks/CY75R4FK.js";import"../../../chunks/LIUXNOLP.js";import"../../../chunks/CQCVFRQ5.js";import"../../../chunks/KHJFXJBU.js";import"../../../chunks/WVXW6VL3.js";import"../../../chunks/GIV5JMTE.js";import"../../../chunks/WQ6H62DM.js";import"../../../chunks/QRDDKA4I.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/AXYOJBX6.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/6IM6A5VA.js";import"../../../chunks/EG6M6SSO.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import"../../../chunks/UWOFA6GV.js";import"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import"../../../chunks/5HCXZWUH.js";import"../../../chunks/CXLEQCP3.js";import"../../../chunks/G6HCV67X.js";import"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";export{b as createModule,a as createModulePart};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunks/HOEQVPY7.js";export{a as createHeyBackoff};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { Address } from '../../types.js';
|
|
2
|
+
import { type TokenFacts } from './token-facts.js';
|
|
3
|
+
export type ReadTool = (name: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
4
|
+
export type FollowEntry = Readonly<{
|
|
5
|
+
chainId: 4663;
|
|
6
|
+
token: Address;
|
|
7
|
+
projectSlug: string;
|
|
8
|
+
lastCheckedAt: string | null;
|
|
9
|
+
after?: string | null;
|
|
10
|
+
}>;
|
|
11
|
+
export type FeedRequest = Readonly<{
|
|
12
|
+
mode: 'browse';
|
|
13
|
+
offset?: number;
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
mode: 'updates';
|
|
16
|
+
entries: readonly FollowEntry[];
|
|
17
|
+
until: string;
|
|
18
|
+
cursors?: Readonly<Record<string, string>>;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const UPDATE_TYPES: readonly ["release", "contract", "commit", "docs", "correction", "other"];
|
|
21
|
+
export type UpdateType = (typeof UPDATE_TYPES)[number];
|
|
22
|
+
export interface FeedItem {
|
|
23
|
+
project_slug: string;
|
|
24
|
+
project_name: string;
|
|
25
|
+
hey_status: string;
|
|
26
|
+
update_type: UpdateType;
|
|
27
|
+
update_text: string;
|
|
28
|
+
published_at: string;
|
|
29
|
+
source_host: string;
|
|
30
|
+
source_url: string;
|
|
31
|
+
}
|
|
32
|
+
export type CoverageCode = 'project_skipped' | 'item_omitted' | 'unavailable' | 'bad_pagination' | 'tie_not_verified' | 'follow_limit' | 'no_follows' | 'oak_unavailable' | 'retraction';
|
|
33
|
+
export interface CoverageNote {
|
|
34
|
+
code: CoverageCode;
|
|
35
|
+
detail: string;
|
|
36
|
+
slug?: string;
|
|
37
|
+
token?: string;
|
|
38
|
+
statusLine?: string;
|
|
39
|
+
statusNote?: 'show exactly';
|
|
40
|
+
}
|
|
41
|
+
export interface FeedContinuation {
|
|
42
|
+
offset?: number;
|
|
43
|
+
cursors?: Record<string, string>;
|
|
44
|
+
remainingTokens?: string[];
|
|
45
|
+
}
|
|
46
|
+
export interface OakTokenFacts {
|
|
47
|
+
launch_info: unknown;
|
|
48
|
+
addresses: TokenFacts['oak']['addresses'];
|
|
49
|
+
}
|
|
50
|
+
export interface FeedPage {
|
|
51
|
+
mode: 'browse' | 'updates';
|
|
52
|
+
items: FeedItem[];
|
|
53
|
+
oak: Record<string, OakTokenFacts>;
|
|
54
|
+
coverage: CoverageNote[];
|
|
55
|
+
complete: boolean;
|
|
56
|
+
continuation: FeedContinuation | null;
|
|
57
|
+
checkedThrough: string;
|
|
58
|
+
after?: Record<string, string>;
|
|
59
|
+
}
|
|
60
|
+
export declare function readBuilderFeed(request: FeedRequest, read: ReadTool, options?: {
|
|
61
|
+
now?: () => number;
|
|
62
|
+
}): Promise<FeedPage>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"../../../chunks/7XLEYOZH.js";import{b as I}from"../../../chunks/YQUKU2LS.js";import"../../../chunks/HOEQVPY7.js";import{c as L,e as D}from"../../../chunks/V2OOOV6B.js";import"../../../chunks/MYBDO5SA.js";import"../../../chunks/HIMVOTIU.js";import{b as w,e as u}from"../../../chunks/73N3TOJL.js";import"../../../chunks/RETS2ZEK.js";import{a as R}from"../../../chunks/G6HCV67X.js";import{a as F}from"../../../chunks/5YS5V2LK.js";import"../../../chunks/JXOEJPJ4.js";var me=["release","contract","commit","docs","correction","other"],O=20,$=4,x=48,Y=4,Z=3,N=6,K=3e5,M=600,B=512,v=/^[a-z0-9][a-z0-9-]{0,79}$/,V=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?Z$/,S=/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/u,q=/\.(?:localhost|local|localdomain|internal|intranet|lan|home|corp|private|home\.arpa)$/,H=Object.freeze({FEATURE_RELEASE:"release",PRODUCT_LAUNCH:"release",APP_RELEASE:"release",GITHUB_RELEASE:"release",API_RELEASE:"release",SDK_RELEASE:"release",DEMO_RELEASE:"release",DESIGN_RELEASE:"release",CONTRACT_DEPLOY:"contract",CONTRACT_UPGRADE:"contract",CONTRACT_DEPLOY_FOLLOWUP:"contract",CODE_ACTIVITY:"commit",DOCS_UPDATE:"docs",CORRECTION:"correction",RETRACTION:"correction"}),J=new Set(["listProjects","getProjectTimeline","getPartnerScanCard","listChanges"]),Q=new Set(["pons_launch_info","pons_holders"]);function ee(e){return{async hey(t,n){if(!J.has(t))throw new Error(`Blocked HEY read ${t}`);let o=await e("heyresearch_read",{operation:t,parameters:n});if(!u(o)||o.operation!==t||!u(o.data))throw new Error("Unexpected HEY response");return o.data},async oak(t,n){if(!Q.has(t))throw new Error(`Blocked read ${t}`);return e(t,n)}}}function T(e){return typeof e=="string"&&e.trim().length>0}function A(e){if(typeof e!="string"||!V.test(e))return;let t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString().slice(0,19)===e.slice(0,19)?t:void 0}function z(e){if(!(typeof e!="string"||e.length>2048||/[\s<>\\]/.test(e)||S.test(e)))try{let t=new URL(e),n=t.hostname.toLowerCase().replace(/\.$/,"");return t.protocol!=="https:"||t.username||t.password||!n||n.startsWith("[")||/^[\d.]+$/.test(n)||!n.includes(".")||n==="localhost"||q.test(n)||!/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/.test(n)||!/[a-z]/.test(n.slice(n.lastIndexOf(".")+1))?void 0:t}catch{return}}function y(e){throw new F(e)}function te(e){return Array.isArray(e)||y("Provide the follow list as an array."),e.map(t=>((!u(t)||t.chainId!==R)&&y("Only Robinhood Chain mainnet (4663) follows can be checked."),(typeof t.token!="string"||!w.test(t.token))&&y("Each follow needs a full token address."),(typeof t.projectSlug!="string"||!v.test(t.projectSlug))&&y("Each follow needs a valid HEY project slug."),t.lastCheckedAt!==null&&A(t.lastCheckedAt)===void 0&&y("lastCheckedAt must be null or a UTC time such as 2026-11-02T12:00:00.000Z."),t.after!==void 0&&t.after!==null&&!P(t.after)&&y("Each follow cursor must be null or a cursor HEY returned."),t))}function P(e){return typeof e=="string"&&e.length>0&&e.length<=B&&!S.test(e)}function ne(e){return e===void 0?{}:((!u(e)||Object.values(e).some(t=>!P(t)))&&y("Continuation cursors must be the strings a previous page returned."),Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n])))}function G(e,t,n){let o=i=>{n.push({code:"item_omitted",detail:i,slug:t.slug})};if(!u(e))return o("A row was not an object.");if(!T(e.id)||e.id.length>240)return o("A row had no usable receipt id.");let r=A(e.at);if(r===void 0)return o(`Receipt ${e.id} has no valid UTC publication time.`);if(r>t.reference+K)return o(`Receipt ${e.id} is dated in the future.`);if(!T(e.title)||e.title.length>M||S.test(e.title))return o(`Receipt ${e.id} has unusable text.`);let c=z(e.source);if(!c)return o(`Receipt ${e.id} has no public HTTPS source.`);let d=typeof e.eventType=="string"?e.eventType:void 0,g=e.withdrawn===!0?"correction":d!==void 0&&Object.hasOwn(H,d)?H[d]:"other";return{at:r,recorded:A(e.recordedAt),key:`${t.slug}|${g==="correction"?"correction:":""}${e.id}`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:g,update_text:e.title,published_at:e.at,source_host:c.hostname,source_url:e.source}}}function X(e){return e.map((t,n)=>({candidate:t,index:n})).sort((t,n)=>n.candidate.at-t.candidate.at||t.index-n.index).map(({candidate:t})=>t.item)}function se(e,t){let n=e.nextCursor;if(!u(e.project)||e.project.slug!==t||!Array.isArray(e.items)||!(n==null||typeof n=="string"&&n.length>0&&n.length<=B))throw new Error("Unexpected timeline");return{items:e.items,next:n??null}}async function oe(e,t,n){let o=e.offset??0;(!Number.isSafeInteger(o)||o<0)&&y("offset must be a whole number from zero.");let r=new Date(n()).toISOString(),c=[],d=[],l=new Set,g=!0,i=o,_,k=0;for(;i!==void 0&&k<Y&&_===void 0;){let p;try{p=await t.hey("listProjects",{has:["token"],sort:"newest",limit:x,offset:i})}catch{return c.push({code:"unavailable",detail:"The HEY project list could not be read."}),{mode:"browse",items:[],oak:{},coverage:c,complete:!1,continuation:{offset:i},checkedThrough:r}}if(!Array.isArray(p.items)||!(p.nextOffset===void 0||Number.isSafeInteger(p.nextOffset)&&p.nextOffset>i))return c.push({code:"bad_pagination",detail:"HEY returned a project list whose paging could not be followed."}),{mode:"browse",items:[],oak:{},coverage:c,complete:!1,continuation:{offset:i},checkedThrough:r};k++;let E=i;for(let[f,s]of p.items.entries()){let a=u(s)&&u(s.token)?s.token:void 0;if(!u(s)||typeof s.slug!="string"||!v.test(s.slug)||!T(s.name)||s.name.length>M||S.test(s.name)||!a||a.chainId!==R||typeof a.contractAddress!="string"||!w.test(a.contractAddress)){c.push({code:"project_skipped",detail:"A listed project has no Robinhood Chain mainnet token HEY can bind to it.",...u(s)&&typeof s.slug=="string"&&v.test(s.slug)?{slug:s.slug}:{}});continue}if(!l.has(s.slug)){if(d.length>=x){_=E+f;break}l.add(s.slug),d.push({slug:s.slug,name:s.name,token:a.contractAddress})}}i=p.nextOffset}let b=[];for(let p=0;p<d.length;p+=N){let E=d.slice(p,p+N),f=await Promise.all(E.map(async s=>{let a=await W(t,{chainId:R,token:s.token,projectSlug:s.slug,lastCheckedAt:null}),C={...s,status:a.status==="tied"?a.line:a.status==="untied"&&a.statusLine?a.statusLine:"HEY Research Lab context unavailable"};try{let m=await t.hey("getProjectTimeline",{slug:C.slug,lens:"build",limit:Z});return{project:C,...se(m,C.slug)}}catch{return{project:C,failed:!0}}}));for(let s of f){if("failed"in s){g=!1,c.push({code:"unavailable",detail:"This project's updates could not be read.",slug:s.project.slug});continue}let a={slug:s.project.slug,name:s.project.name,status:s.project.status,reference:n()};for(let C of s.items){let m=G(C,a,c);m&&!l.has(m.key)&&(l.add(m.key),b.push(m))}}}let h=_??i;return h!==void 0&&(g=!1),{mode:"browse",items:X(b),oak:{},coverage:c,complete:g,continuation:h===void 0?null:{offset:h},checkedThrough:r}}async function W(e,t){let n;try{n=await e.hey("getPartnerScanCard",{chain:R,token:t.token})}catch{return{status:"unavailable"}}let o=n.found===!1&&n.contractAddress===void 0?{...n,contractAddress:t.token}:n,r=I(o,R,t.token);if(!r)return{status:"unavailable"};if(!r.found)return{status:"untied",detail:"HEY has no published project for this token. An empty feed proves nothing.",statusLine:L};let c=u(n.project)?n.project:void 0,d="";try{d=new URL(r.project_link).pathname.split("/")[2]??""}catch{}let l=c?.slug===t.projectSlug&&d===t.projectSlug,g=D(r.status_label,r.status_help);return r.token_verification!=="VERIFIED"||!r.activity_applies_to_token||!l?{status:"untied",detail:"HEY does not tie this token to the followed project, so no builder history is shown for it.",...l?{statusLine:g}:{}}:{status:"tied",line:g,name:T(c?.name)?String(c?.name):t.projectSlug}}function re(e,t,n){if(!u(e.query)||e.query.project!==t||e.query.mode!=="sync"||!Array.isArray(e.items)||typeof e.hasMore!="boolean"||!(P(e.nextCursor)||e.nextCursor===null&&e.hasMore===!1&&e.items.length===0)||e.ignoredParameters!==void 0&&(!Array.isArray(e.ignoredParameters)||e.ignoredParameters.length>0))throw new Error("Unexpected change ledger page");if(e.items.some(o=>u(o)&&(o.op!=="retract"||o.project!==void 0)&&(!u(o.project)||o.project.slug!==t)))throw new Error("Change belongs to another project");return{items:e.items,next:e.nextCursor===null?n:e.nextCursor,more:e.hasMore}}function ie(e,t,n){if(u(e)&&e.op==="retract"&&T(e.id)&&e.id.length<=240&&!S.test(e.id))return n.push({code:"retraction",slug:t.slug,detail:`HEY retracted ${e.id}. Empty fields were not supplied by the tombstone.`}),{at:A(e.recordedAt)??0,recorded:A(e.recordedAt),key:`${t.slug}|${e.id}|${String(e.revision)}|retract`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:"correction",update_text:"",published_at:A(e.recordedAt)===void 0?"":e.recordedAt,source_host:"",source_url:""}};if(!u(e)||e.op!=="upsert"){n.push({code:"item_omitted",slug:t.slug,detail:"A change had no supported ledger operation."});return}let o=Array.isArray(e.evidence)?e.evidence.find(l=>u(l)&&z(l.url)):void 0,r=u(e.facts)?e.facts:{},c=typeof r.eventType=="string"?r.eventType:typeof e.type=="string"&&e.type.startsWith("build.")?e.type.slice(6).toUpperCase():void 0,d=G({id:e.id,at:e.occurredAt??e.detectedAt??e.recordedAt,recordedAt:e.recordedAt,title:e.summary,eventType:c,source:u(o)?o.url:void 0},t,n);return d&&(d.key=`${t.slug}|${String(e.id)}|${String(e.revision)}|upsert`),d}async function ae(e,t,n,o){let r=[],c=[],d={},l={},g=!0,i=e.token.toLowerCase(),_={launch_info:null,addresses:null};for(let[E,f,s]of[["launch_info","pons_launch_info",{token:e.token}],["addresses","pons_holders",{token:e.token,limit:1}]])try{let a=await t.oak(f,s);if(E==="addresses"){let C=U(a,e.token);_.addresses=C?.addresses??null,C||r.push({code:"oak_unavailable",detail:"Address figures were not read for this token.",token:i})}else _.launch_info=a}catch{r.push({code:"oak_unavailable",detail:`${f} could not be read for this token; it is unknown, not empty.`,token:i})}let k=await W(t,e);if(k.status==="unavailable")return g=!1,r.push({code:"unavailable",detail:"HEY's scan for this token could not be read.",slug:e.projectSlug,token:i}),o[i]&&(d[i]=o[i]),{key:i,facts:_,coverage:r,candidates:c,nextCursors:d,after:l,complete:g};if(k.status==="untied")return r.push({code:"tie_not_verified",detail:k.detail,slug:e.projectSlug,token:i,...k.statusLine?{statusLine:k.statusLine,statusNote:"show exactly"}:{}}),{key:i,facts:_,coverage:r,candidates:c,nextCursors:d,after:l,complete:g};let b={slug:e.projectSlug,name:k.name,status:k.line,reference:n},h=o[i]??e.after??"c1.0",p=new Set([h]);for(let E=0;;E++){if(E>=Y){g=!1,d[i]=h;break}let f;try{f=re(await t.hey("listChanges",{project:e.projectSlug,after:h,limit:x}),e.projectSlug,h)}catch{g=!1,r.push({code:"unavailable",detail:"This project's change ledger could not be read.",slug:e.projectSlug,token:i}),d[i]=h;break}if(p.has(f.next)&&(f.more||f.items.length>0)){g=!1,r.push({code:"bad_pagination",detail:"HEY repeated a continuation cursor.",slug:e.projectSlug,token:i}),d[i]=h;break}for(let s of f.items){let a=ie(s,b,r);a&&c.push(a)}if(!f.more){l[i]=f.next;break}p.add(f.next),h=f.next}return{key:i,facts:_,coverage:r,candidates:c,nextCursors:d,after:l,complete:g}}async function ce(e,t,n){let o=te(e.entries),r=A(e.until);r===void 0&&y("until must be a UTC time such as 2026-11-02T12:00:00.000Z.");let c=ne(e.cursors),d=Object.keys(c).length>0,l=[],g={},i=[],_=new Set,k={},b={},h=!0,p=o.filter(a=>!d||Object.hasOwn(c,a.token.toLowerCase())),E=p.slice(0,O),f=p.slice(O);f.length&&(h=!1,l.push({code:"follow_limit",detail:`At most ${O} followed tokens are read at once; ${f.length} remain.`})),o.length||l.push({code:"no_follows",detail:"The follow list is empty. An empty feed proves nothing."});for(let a=0;a<E.length;a+=$){let C=await Promise.all(E.slice(a,a+$).map(m=>ae(m,t,Math.max(r,n()),c)));for(let m of C){g[m.key]=m.facts,l.push(...m.coverage),Object.assign(k,m.nextCursors),Object.assign(b,m.after),m.complete||(h=!1);for(let j of m.candidates)_.has(j.key)||(_.add(j.key),i.push(j))}}let s={};return Object.keys(k).length&&(s.cursors=k),f.length&&(s.remainingTokens=f.map(a=>a.token)),{mode:"updates",items:X(i),oak:g,coverage:l,complete:h,after:b,continuation:Object.keys(s).length?s:null,checkedThrough:e.until}}async function he(e,t,n={}){let o=ee(t);return u(e)&&e.mode==="browse"?oe(e,o,n.now??Date.now):u(e)&&e.mode==="updates"?ce(e,o,n.now??Date.now):y("Choose browse or updates.")}export{me as UPDATE_TYPES,he as readBuilderFeed};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { CreateModule, CreateModulePart } from '../../types.js';
|
|
2
|
+
export declare const HEY_RECORDS_DISCLAIMER = "Builder evidence, not a trading signal. HEY Research Lab records public activity. These records are not investment advice, a buy or sell signal, or a safety verdict. Null means not measured.";
|
|
3
|
+
export declare const HEY_KEYED_DISCLAIMER = "Builder evidence, not a trading signal. Keyed research, not advice. Preserve per-item found/error states and input order. The server key is not returned. Private responses are not cached.";
|
|
4
|
+
export declare const HEY_RECEIPT_DISCLAIMER = "Builder evidence, not a trading signal. Stateless receipt validation. HEY stores nothing and does not endorse the conclusion. Oak does not cache this receipt.";
|
|
2
5
|
export declare const createModulePart: CreateModulePart;
|
|
3
6
|
export declare const createModule: CreateModule;
|