@oakagentkit/core 0.2.4 → 0.2.6
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/amounts.d.ts +2 -0
- package/build/dist/api/amounts.js +1 -1
- package/build/dist/api/args.js +1 -1
- package/build/dist/api/gas.js +1 -1
- package/build/dist/api/grandfather.js +1 -1
- package/build/dist/api/guards.js +1 -1
- package/build/dist/api/history.js +1 -1
- package/build/dist/api/http.js +1 -1
- package/build/dist/api/merkle.js +1 -1
- package/build/dist/api/module.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/borro/abi.d.ts +149 -0
- package/build/dist/api/modules/borro/abi.js +1 -0
- package/build/dist/api/modules/borro/actions.d.ts +2 -0
- package/build/dist/api/modules/borro/actions.js +1 -0
- package/build/dist/api/modules/borro/checks.d.ts +151 -0
- package/build/dist/api/modules/borro/checks.js +1 -0
- package/build/dist/api/modules/borro/copy.d.ts +174 -0
- package/build/dist/api/modules/borro/copy.js +1 -0
- package/build/dist/api/modules/borro/index.d.ts +13 -0
- package/build/dist/api/modules/borro/index.js +1 -0
- package/build/dist/api/modules/borro/liquidity.d.ts +4 -0
- package/build/dist/api/modules/borro/liquidity.js +1 -0
- package/build/dist/api/modules/borro/pins.d.ts +264 -0
- package/build/dist/api/modules/borro/pins.js +1 -0
- package/build/dist/api/modules/borro/positions.d.ts +8 -0
- package/build/dist/api/modules/borro/positions.js +1 -0
- package/build/dist/api/modules/borro/rates.d.ts +20 -0
- package/build/dist/api/modules/borro/rates.js +1 -0
- package/build/dist/api/modules/borro/reader.d.ts +36 -0
- package/build/dist/api/modules/borro/reader.js +1 -0
- package/build/dist/api/modules/borro/types.d.ts +126 -0
- package/build/dist/api/modules/borro/types.js +0 -0
- package/build/dist/api/modules/chop/abi.d.ts +527 -0
- package/build/dist/api/modules/chop/abi.js +1 -0
- package/build/dist/api/modules/chop/actions.d.ts +24 -0
- package/build/dist/api/modules/chop/actions.js +1 -0
- package/build/dist/api/modules/chop/checks.d.ts +26 -0
- package/build/dist/api/modules/chop/checks.js +1 -0
- package/build/dist/api/modules/chop/copy.d.ts +5 -0
- package/build/dist/api/modules/chop/copy.js +1 -0
- package/build/dist/api/modules/chop/guard.d.ts +13 -0
- package/build/dist/api/modules/chop/guard.js +1 -0
- package/build/dist/api/modules/chop/index.d.ts +3 -0
- package/build/dist/api/modules/chop/index.js +1 -0
- package/build/dist/api/modules/chop/pins.d.ts +53 -0
- package/build/dist/api/modules/chop/pins.js +1 -0
- package/build/dist/api/modules/chop/positions.d.ts +3 -0
- package/build/dist/api/modules/chop/positions.js +1 -0
- package/build/dist/api/modules/chop/reader.d.ts +70 -0
- package/build/dist/api/modules/chop/reader.js +1 -0
- package/build/dist/api/modules/chop/types.d.ts +32 -0
- package/build/dist/api/modules/chop/types.js +0 -0
- 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/earn/copy.d.ts +2 -2
- package/build/dist/api/modules/earn/copy.js +1 -1
- package/build/dist/api/modules/earn/index.js +1 -1
- package/build/dist/api/modules/earn/lp.js +1 -1
- package/build/dist/api/modules/earn/options.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/gloam/abi.d.ts +89 -0
- package/build/dist/api/modules/gloam/abi.js +1 -0
- package/build/dist/api/modules/gloam/actions.d.ts +5 -0
- package/build/dist/api/modules/gloam/actions.js +1 -0
- package/build/dist/api/modules/gloam/checks.d.ts +17 -0
- package/build/dist/api/modules/gloam/checks.js +1 -0
- package/build/dist/api/modules/gloam/copy.d.ts +22 -0
- package/build/dist/api/modules/gloam/copy.js +2 -0
- package/build/dist/api/modules/gloam/index.d.ts +6 -0
- package/build/dist/api/modules/gloam/index.js +1 -0
- package/build/dist/api/modules/gloam/pins.d.ts +41 -0
- package/build/dist/api/modules/gloam/pins.js +1 -0
- package/build/dist/api/modules/gloam/types.d.ts +308 -0
- package/build/dist/api/modules/gloam/types.js +1 -0
- package/build/dist/api/modules/grove/index.js +1 -1
- package/build/dist/api/modules/heyresearch/builder-feed.js +1 -1
- package/build/dist/api/modules/heyresearch/index.js +1 -1
- package/build/dist/api/modules/heyresearch/proof-reads.js +1 -1
- package/build/dist/api/modules/heyresearch/public-reads.js +1 -1
- package/build/dist/api/modules/heyresearch/scan.js +1 -1
- package/build/dist/api/modules/heyresearch/token-facts.js +1 -1
- 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/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.js +1 -1
- package/build/dist/api/modules/hookr/addons.js +1 -1
- package/build/dist/api/modules/hookr/agent-gate.js +1 -1
- 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.js +1 -1
- package/build/dist/api/modules/hookr/launch-options.js +1 -1
- package/build/dist/api/modules/hookr/launch-receipt.js +1 -1
- package/build/dist/api/modules/hookr/launch.js +1 -1
- package/build/dist/api/modules/hookr/liquidity.js +1 -1
- package/build/dist/api/modules/hookr/lp-positions.js +1 -1
- package/build/dist/api/modules/hookr/lp-reads.js +1 -1
- package/build/dist/api/modules/hookr/lp-receipt.js +1 -1
- package/build/dist/api/modules/hookr/lp-state.js +1 -1
- package/build/dist/api/modules/hookr/public-reads.js +1 -1
- package/build/dist/api/modules/hookr/read-utils.js +1 -1
- 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/layerbank/actions.js +1 -1
- package/build/dist/api/modules/layerbank/checks.js +1 -1
- package/build/dist/api/modules/layerbank/index.js +1 -1
- package/build/dist/api/modules/layerbank/merkl.js +1 -1
- package/build/dist/api/modules/layerbank/reader.js +1 -1
- package/build/dist/api/modules/layerbank/reserve.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/perps-batch.js +1 -1
- package/build/dist/api/modules/meridian/perps-common.js +1 -1
- package/build/dist/api/modules/meridian/perps-guards.js +1 -1
- package/build/dist/api/modules/meridian/perps-intents.js +1 -1
- package/build/dist/api/modules/meridian/perps-stream.js +1 -1
- package/build/dist/api/modules/meridian/perps.d.ts +1 -0
- package/build/dist/api/modules/meridian/perps.js +1 -1
- package/build/dist/api/modules/meridian/predict-read.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/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/gateway.js +1 -1
- package/build/dist/api/modules/orbio/index.js +1 -1
- package/build/dist/api/modules/orbio/positions.js +1 -1
- package/build/dist/api/modules/pendle/convert.js +1 -1
- package/build/dist/api/modules/pendle/costs.js +1 -1
- package/build/dist/api/modules/pendle/index.js +1 -1
- package/build/dist/api/modules/pendle/markets.js +1 -1
- package/build/dist/api/modules/pendle/positions.js +1 -1
- package/build/dist/api/modules/pendle/pricecheck.js +1 -1
- package/build/dist/api/modules/pendle/reader.js +1 -1
- package/build/dist/api/modules/pendle/redeem.js +1 -1
- package/build/dist/api/modules/pendle/trade.js +1 -1
- package/build/dist/api/modules/pendle/types.d.ts +16 -1
- package/build/dist/api/modules/pendle/validate.js +1 -1
- package/build/dist/api/modules/pendle/verify.js +1 -1
- package/build/dist/api/modules/pons/claim.js +1 -1
- package/build/dist/api/modules/pons/holder-directory.js +1 -1
- package/build/dist/api/modules/pons/index.js +1 -1
- package/build/dist/api/modules/pons/launch-status.d.ts +1 -0
- 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/holdings.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/api.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.d.ts +2 -0
- 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/order.js +1 -1
- package/build/dist/api/modules/relay/outbound-status.js +1 -1
- package/build/dist/api/modules/relay/readiness.js +1 -1
- package/build/dist/api/modules/relay/reads.js +1 -1
- package/build/dist/api/modules/relay/vaults.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/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.d.ts +11 -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 +3 -0
- package/build/dist/api/modules/wormhole/index.js +1 -1
- package/build/dist/api/modules/wormhole/scan-text.js +1 -1
- package/build/dist/api/modules/wormhole/swap-token-verdict.d.ts +11 -0
- package/build/dist/api/modules/wormhole/swap-token-verdict.js +1 -0
- package/build/dist/api/modules/wormhole/third-party-text.d.ts +13 -0
- package/build/dist/api/modules/wormhole/third-party-text.js +1 -0
- package/build/dist/api/modules/wormhole/token-check.d.ts +2 -0
- package/build/dist/api/modules/wormhole/token-check.js +1 -1
- package/build/dist/api/modules/wormhole/x402-client.d.ts +36 -0
- package/build/dist/api/modules/wormhole/x402-client.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/routes.js +1 -1
- package/build/dist/api/send.js +1 -1
- package/build/dist/api/signing-registry.js +1 -1
- package/build/dist/api/simulate.js +1 -1
- package/build/dist/api/swap.js +1 -1
- package/build/dist/api/tokens.d.ts +1 -0
- package/build/dist/api/tokens.js +1 -1
- package/build/dist/api/tool-policy.js +1 -1
- package/build/dist/api/tx.js +1 -1
- package/build/dist/api/types.d.ts +6 -1
- package/build/dist/api/vendor-limits.js +1 -1
- package/build/dist/chunks/{ALRRW7SF.js → 2MT3G7YZ.js} +1 -1
- package/build/dist/chunks/{WPAF55SP.js → 2THSW4QN.js} +1 -1
- package/build/dist/chunks/{MKAPRRKF.js → 2TK3ETUO.js} +1 -1
- package/build/dist/chunks/{VVA72C6O.js → 2VXLVXIB.js} +1 -1
- package/build/dist/chunks/{ZE7EU2CS.js → 35KR3VSS.js} +1 -1
- package/build/dist/chunks/{ZYH4B2GR.js → 3GQ7A3VB.js} +1 -1
- package/build/dist/chunks/3VWVW7PX.js +1 -0
- package/build/dist/chunks/{WPFAEBE7.js → 3XNZUIRU.js} +1 -1
- package/build/dist/chunks/{PBQSJSZO.js → 43LI5NKJ.js} +1 -1
- package/build/dist/chunks/{QVYCJ6WV.js → 46KWRAYK.js} +1 -1
- package/build/dist/chunks/4DP2VPXR.js +3 -0
- package/build/dist/chunks/{47YN4OUI.js → 4EN6MQEI.js} +1 -1
- package/build/dist/chunks/{UHRCM7AG.js → 4HG6FRVH.js} +1 -1
- package/build/dist/chunks/{E6UU7DL2.js → 4I3OU56B.js} +1 -1
- package/build/dist/chunks/{WIVYKLQM.js → 52ELWNXJ.js} +1 -1
- package/build/dist/chunks/{5WUKOQIJ.js → 5AXWBSPG.js} +1 -1
- package/build/dist/chunks/{D6ZJPNK7.js → 5N3O42X6.js} +1 -1
- package/build/dist/chunks/{UA4O226F.js → 5SMVQCAP.js} +1 -1
- package/build/dist/chunks/{6L5KTE6Y.js → 5SZPNZG4.js} +1 -1
- package/build/dist/chunks/{6PY3IRDS.js → 64GOINYS.js} +1 -1
- package/build/dist/chunks/{5ZLOCQA4.js → 66F5ZH34.js} +1 -1
- package/build/dist/chunks/{XDZRO5JQ.js → 6I4NTKB2.js} +1 -1
- package/build/dist/chunks/{LVLVP5KQ.js → 6JAXZNZ3.js} +1 -1
- package/build/dist/chunks/{BXHNYCH2.js → 6O3Q5B6M.js} +1 -1
- package/build/dist/chunks/{MFCPL6LF.js → 6OGDTEGH.js} +1 -1
- package/build/dist/chunks/{43CSMYDO.js → 6WD4HHID.js} +1 -1
- package/build/dist/chunks/{XJEOEMDS.js → 6WZX7C4T.js} +1 -1
- package/build/dist/chunks/6YB3VOUL.js +1 -0
- package/build/dist/chunks/77CLMPM7.js +1 -0
- package/build/dist/chunks/{EKNSLLJK.js → 7GJ6SLEV.js} +1 -1
- package/build/dist/chunks/{S2TAJHHK.js → 7KWZ5QJU.js} +1 -1
- package/build/dist/chunks/{CTMA4BTM.js → 7QIO77VE.js} +1 -1
- package/build/dist/chunks/7QZOTRSA.js +2 -0
- package/build/dist/chunks/{IKEJCBYU.js → 7WSHW7KW.js} +1 -1
- package/build/dist/chunks/{PQC5635W.js → A7I4IWUB.js} +1 -1
- package/build/dist/chunks/ACW63WIL.js +20 -0
- package/build/dist/chunks/AEL62KCG.js +1 -0
- package/build/dist/chunks/{UPMGGK34.js → AFBEZXNV.js} +1 -1
- package/build/dist/chunks/{AUOXDNUO.js → AKYF5264.js} +1 -1
- package/build/dist/chunks/{HVM2EEXB.js → ALLLYOUG.js} +1 -1
- package/build/dist/chunks/APQYLJGS.js +1 -0
- package/build/dist/chunks/AW7AXQCZ.js +1 -0
- package/build/dist/chunks/{WOEKXQAH.js → AXRL3REN.js} +1 -1
- package/build/dist/chunks/{ECWGKLBW.js → BBTPRZ6T.js} +1 -1
- package/build/dist/chunks/{ALPYEM7B.js → BND2UFVW.js} +1 -1
- package/build/dist/chunks/{GHPREYQK.js → BOVMED7R.js} +1 -1
- package/build/dist/chunks/{57JFKIMK.js → BTPXJAUX.js} +1 -1
- package/build/dist/chunks/{ZGKVXFM5.js → C7AXJHBT.js} +1 -1
- package/build/dist/chunks/{5U7TCKX2.js → CBG5HARQ.js} +1 -1
- package/build/dist/chunks/{NA7R6J5N.js → CBLMQ5UU.js} +1 -1
- package/build/dist/chunks/CDPSMI3Z.js +1 -0
- package/build/dist/chunks/{5N4A5XAW.js → CHXBOXOD.js} +1 -1
- package/build/dist/chunks/{2ZUP7ZEV.js → CQEJSCFQ.js} +1 -1
- package/build/dist/chunks/{6AAARNZ3.js → DBNTZEAJ.js} +1 -1
- package/build/dist/chunks/{IQIWASRD.js → DHUDSOGR.js} +1 -1
- package/build/dist/chunks/{L7OQUHM5.js → DJN3JAWB.js} +1 -1
- package/build/dist/chunks/{YPM2UITD.js → DL6AEWEM.js} +1 -1
- package/build/dist/chunks/{CERNEJ2F.js → DW4V5PUY.js} +1 -1
- package/build/dist/chunks/E3RACZUY.js +1 -0
- package/build/dist/chunks/{MOPETB64.js → EGYVRQUR.js} +1 -1
- package/build/dist/chunks/{IQGY5FW7.js → ER47KGRM.js} +1 -1
- package/build/dist/chunks/{ZSQOMSOC.js → FEYAY6OZ.js} +1 -1
- package/build/dist/chunks/FIO6VC2J.js +1 -0
- package/build/dist/chunks/FJ4S4GHY.js +1 -0
- package/build/dist/chunks/{RPNAFUM5.js → FUDAXV5X.js} +1 -1
- package/build/dist/chunks/{I6KUORFT.js → GG6Y4OCJ.js} +1 -1
- package/build/dist/chunks/{3AXVB23N.js → GGHBFLRC.js} +1 -1
- package/build/dist/chunks/{4ALMYJJV.js → GGSAKCND.js} +1 -1
- package/build/dist/chunks/GNC6RXLT.js +1 -0
- package/build/dist/chunks/{3ESNHZT5.js → GRQYTVNT.js} +1 -1
- package/build/dist/chunks/{WVONJOWN.js → GSBIERZD.js} +1 -1
- package/build/dist/chunks/H43RNCX2.js +1 -0
- package/build/dist/chunks/{NYNJITCM.js → H6T5FXEX.js} +1 -1
- package/build/dist/chunks/HHXBUYHO.js +1 -0
- package/build/dist/chunks/{64WKYWZV.js → HKEMQBFA.js} +1 -1
- package/build/dist/chunks/{4YFVAYKR.js → HM72DH4V.js} +1 -1
- package/build/dist/chunks/{XFKVU46U.js → HQUVB7Z5.js} +1 -1
- package/build/dist/chunks/HS4DZPYT.js +1 -0
- package/build/dist/chunks/{OTIXQZ3X.js → HU7IMNBI.js} +1 -1
- package/build/dist/chunks/{ENX72ARB.js → HWX36XJI.js} +1 -1
- package/build/dist/chunks/{QRC4ZPDA.js → I26DMNJG.js} +1 -1
- package/build/dist/chunks/I55MURSJ.js +1 -0
- package/build/dist/chunks/I6PQW2JI.js +1 -0
- package/build/dist/chunks/{S3FPF537.js → IMO3GDA5.js} +1 -1
- package/build/dist/chunks/{BQICZFLR.js → IOYRL6AY.js} +1 -1
- package/build/dist/chunks/IPN6Z4JM.js +1 -0
- package/build/dist/chunks/{MKBNLGDD.js → IPRVIKYC.js} +1 -1
- package/build/dist/chunks/{EOQYLFXA.js → IVX4R5OL.js} +1 -1
- package/build/dist/chunks/IX3GZMTM.js +1 -0
- package/build/dist/chunks/JFYBH3DX.js +1 -0
- package/build/dist/chunks/{Y7RPSDD2.js → JKD2B6OX.js} +1 -1
- package/build/dist/chunks/JQOQMFWD.js +3 -0
- package/build/dist/chunks/{PSVOVZH7.js → JUZ5JU6D.js} +5 -5
- package/build/dist/chunks/{I4TGMF2C.js → JZS3E66E.js} +1 -1
- package/build/dist/chunks/{SSIENQVU.js → K3RDPI5J.js} +1 -1
- package/build/dist/chunks/{PADWZX7J.js → K4DHHQBI.js} +1 -1
- package/build/dist/chunks/{NB3LYS3G.js → KIFZ5ZSK.js} +1 -1
- package/build/dist/chunks/KVFZKPJT.js +1 -0
- package/build/dist/chunks/{EYFBVQ46.js → L5BLHY34.js} +1 -1
- package/build/dist/chunks/{GVPX5XCL.js → LKXO2BQS.js} +1 -1
- package/build/dist/chunks/{JPNYUEQP.js → LKZX4CAA.js} +1 -1
- package/build/dist/chunks/{LROVANUR.js → LYMNHO5T.js} +1 -1
- package/build/dist/chunks/{QSN6Y2K6.js → M2UXYCKH.js} +1 -1
- package/build/dist/chunks/{BNG2IWZL.js → M37654RL.js} +1 -1
- package/build/dist/chunks/{YAJYDD6C.js → M6LC6DRE.js} +1 -1
- package/build/dist/chunks/{AG67Z3SC.js → MOE3EVAL.js} +1 -1
- package/build/dist/chunks/{DVVFT42J.js → MRMR4QHA.js} +1 -1
- package/build/dist/chunks/{WWHCEMNB.js → N4Q6GN65.js} +1 -1
- package/build/dist/chunks/{S5WICHIS.js → NAZPDRIF.js} +1 -1
- package/build/dist/chunks/{HSFOWJ3Z.js → NKZKKCK2.js} +1 -1
- package/build/dist/chunks/{BAAXGB4K.js → NOFUKKP5.js} +1 -1
- package/build/dist/chunks/{5KUWLUPM.js → NWNYJ26T.js} +1 -1
- package/build/dist/chunks/{7UOOIDR3.js → O6ROOKY2.js} +1 -1
- package/build/dist/chunks/{KBXU7U6Q.js → O7HCEPQY.js} +1 -1
- package/build/dist/chunks/{LDT3QTSY.js → OJ4WJUPP.js} +1 -1
- package/build/dist/chunks/{WD37MEMZ.js → OLSP46ZD.js} +1 -1
- package/build/dist/chunks/{TPL4U3AQ.js → OOZSE2R7.js} +1 -1
- package/build/dist/chunks/OTXSKFUD.js +1 -0
- package/build/dist/chunks/{4TQQH7N6.js → P5AJSLZ7.js} +1 -1
- package/build/dist/chunks/{BK23XJXE.js → P5PYFK7L.js} +1 -1
- package/build/dist/chunks/{A6YQ5H24.js → PACN53TR.js} +1 -1
- package/build/dist/chunks/{K72EYD6R.js → PAHXBLCS.js} +1 -1
- package/build/dist/chunks/PAY5PD4H.js +1 -0
- package/build/dist/chunks/{SGEZIYJW.js → PIIHOXWF.js} +1 -1
- package/build/dist/chunks/{SQL6HD5E.js → PK66GCDT.js} +1 -1
- package/build/dist/chunks/PNA6UIE5.js +1 -0
- package/build/dist/chunks/{6FTYNYGF.js → PSBQWDYI.js} +1 -1
- package/build/dist/chunks/{W76QC2AW.js → PV5FDT6O.js} +1 -1
- package/build/dist/chunks/{42DQTKEO.js → PXT5YTWU.js} +1 -1
- package/build/dist/chunks/{4ISR2U72.js → PZGGE5D3.js} +1 -1
- package/build/dist/chunks/{IMRXZ7JB.js → Q42YI3EP.js} +1 -1
- package/build/dist/chunks/{F3BSEE52.js → QA2RRIES.js} +1 -1
- package/build/dist/chunks/{ZBFKKUNP.js → QA3UHEO3.js} +1 -1
- package/build/dist/chunks/{PWH464CJ.js → QBIY6FQN.js} +1 -1
- package/build/dist/chunks/QFNT73OF.js +1 -0
- package/build/dist/chunks/QHBS3PVU.js +1 -0
- package/build/dist/chunks/QQECG3WP.js +1 -0
- package/build/dist/chunks/{RVO3QK2B.js → QU5XKRGK.js} +1 -1
- package/build/dist/chunks/QW2OPEYJ.js +1 -0
- package/build/dist/chunks/{G7XSFUDL.js → QYVREJYC.js} +1 -1
- package/build/dist/chunks/{KA7BPBCV.js → ROFPXEQ5.js} +1 -1
- package/build/dist/chunks/{5MQ5KSSV.js → RTAHNWHN.js} +1 -1
- package/build/dist/chunks/{MDDHG34Y.js → RTGS7RIO.js} +1 -1
- package/build/dist/chunks/{3WXK2FUA.js → RUC7KH7A.js} +1 -1
- package/build/dist/chunks/{MBTARLZQ.js → RUX3RY7Y.js} +1 -1
- package/build/dist/chunks/{3VAJW6TQ.js → RVDUSNWW.js} +1 -1
- package/build/dist/chunks/{ET23SES4.js → S5CBVFHY.js} +1 -1
- package/build/dist/chunks/{WMNRP3YH.js → SIYUNOLI.js} +1 -1
- package/build/dist/chunks/{TNKVRVTH.js → SJJR4ZBZ.js} +1 -1
- package/build/dist/chunks/{UFVPMWPJ.js → SMYWWIE6.js} +1 -1
- package/build/dist/chunks/{Z4SRGAVL.js → SPJCSEKP.js} +1 -1
- package/build/dist/chunks/{YEXUSRIZ.js → T7TFUH5K.js} +1 -1
- package/build/dist/chunks/{SKMPKAZI.js → TAEZTP4L.js} +1 -1
- package/build/dist/chunks/{E3UBHTJO.js → TEJ7W534.js} +1 -1
- package/build/dist/chunks/{AWXJV2YH.js → TFDPEAVZ.js} +1 -1
- package/build/dist/chunks/{UOGHQLQX.js → TMVO2DAK.js} +1 -1
- package/build/dist/chunks/{QJFXLYZG.js → TPBAFS7K.js} +1 -1
- package/build/dist/chunks/{MXW2TP5P.js → TVWMTMEF.js} +1 -1
- package/build/dist/chunks/{GRIGSPD4.js → TX2EOIRS.js} +1 -1
- package/build/dist/chunks/{Y7PRJOIK.js → U2RMUVVY.js} +1 -1
- package/build/dist/chunks/{VV2HEIFI.js → U5PMVP56.js} +1 -1
- package/build/dist/chunks/{TBCSZDAF.js → UD2XMNIT.js} +1 -1
- package/build/dist/chunks/{F26FK47J.js → UNJJRQIU.js} +1 -1
- package/build/dist/chunks/V5JWGWXC.js +1 -0
- package/build/dist/chunks/V74F6IDY.js +1 -0
- package/build/dist/chunks/VCOTCVKN.js +1 -0
- package/build/dist/chunks/{MYFAKCQI.js → VEQBHI6O.js} +1 -1
- package/build/dist/chunks/VHV6WQ5F.js +1 -0
- package/build/dist/chunks/{7WQEPZJY.js → VNV6ZISN.js} +1 -1
- package/build/dist/chunks/{W2OJ57ZO.js → VYAJXLND.js} +1 -1
- package/build/dist/chunks/{MDV7GECM.js → VYYSL557.js} +1 -1
- package/build/dist/chunks/WCNHZYQQ.js +1 -0
- package/build/dist/chunks/{K22EXPWN.js → WIRBCS4W.js} +1 -1
- package/build/dist/chunks/{YRXT3HTW.js → WLMWWEP7.js} +1 -1
- package/build/dist/chunks/{NDW5DAFL.js → WP6RHXGN.js} +1 -1
- package/build/dist/chunks/{PLZKXQ76.js → WTXC3XKW.js} +1 -1
- package/build/dist/chunks/{WGL46F3S.js → WU7XIAXB.js} +1 -1
- package/build/dist/chunks/{5OKJEGBH.js → WV3A3OUU.js} +1 -1
- package/build/dist/chunks/{MGPHD4VV.js → X2P55AC3.js} +1 -1
- package/build/dist/chunks/{RNC463IM.js → XBE3B6Y2.js} +1 -1
- package/build/dist/chunks/XD6X3KTC.js +1 -0
- package/build/dist/chunks/{BIRMUW7Z.js → XKSVTN5X.js} +1 -1
- package/build/dist/chunks/XL3LLGIR.js +1 -0
- package/build/dist/chunks/XQA5LCL6.js +1 -0
- package/build/dist/chunks/{SDHPFXRM.js → XSKFKBDR.js} +1 -1
- package/build/dist/chunks/{TJWVY4VO.js → YCZPSMZ5.js} +1 -1
- package/build/dist/chunks/{JZXYLHI7.js → YDNTY67T.js} +1 -1
- package/build/dist/chunks/{2DUCTO5C.js → YN56C7PN.js} +1 -1
- package/build/dist/chunks/{E6RRXNV2.js → YRNXGQJC.js} +1 -1
- package/build/dist/chunks/YWRLY5EA.js +1 -0
- package/build/dist/chunks/YWSX6IE6.js +1 -0
- package/build/dist/chunks/{DP2NIYBP.js → YXTSWRV5.js} +1 -1
- package/build/dist/chunks/{MQYOG66Q.js → Z6LZGCVW.js} +1 -1
- package/build/dist/chunks/{OFI3Y55L.js → ZQAFFWDK.js} +1 -1
- package/build/dist/chunks/{NZXQWDGF.js → ZQWZGH7V.js} +1 -1
- package/build/dist/chunks/{TBIVTEP5.js → ZSN4IRI5.js} +1 -1
- package/build/dist/chunks/{ZET37EIG.js → ZV5HIQXC.js} +1 -1
- package/build/dist/chunks/{VHLINDDS.js → ZXJ24B4L.js} +1 -1
- package/package.json +1 -1
- package/build/dist/chunks/24CQ2SPB.js +0 -1
- package/build/dist/chunks/2OJAOVMG.js +0 -1
- package/build/dist/chunks/65EQECL3.js +0 -1
- package/build/dist/chunks/6YYCGUCU.js +0 -1
- package/build/dist/chunks/EU3OAJU2.js +0 -1
- package/build/dist/chunks/H4NYYJ3Z.js +0 -1
- package/build/dist/chunks/HTXKERNS.js +0 -1
- package/build/dist/chunks/JG27HM4P.js +0 -1
- package/build/dist/chunks/L6D26AMO.js +0 -1
- package/build/dist/chunks/O6L4BJP4.js +0 -1
- package/build/dist/chunks/SUFA2GKR.js +0 -1
- package/build/dist/chunks/UP7FBDMJ.js +0 -1
- package/build/dist/chunks/YHRUAQQK.js +0 -1
- package/build/dist/chunks/ZCOFMGPS.js +0 -1
- package/build/dist/chunks/ZCUXM52B.js +0 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { PublicClient } from 'viem';
|
|
2
|
+
import type { Address, Hex, ModuleContext, Token, TokenAmount, ToolDefinition } from '../../types.js';
|
|
3
|
+
export interface BorroPin {
|
|
4
|
+
symbol: string;
|
|
5
|
+
vault: Address;
|
|
6
|
+
vaultSymbol: string;
|
|
7
|
+
asset: Address;
|
|
8
|
+
assetDecimals: number;
|
|
9
|
+
codeHash: Hex;
|
|
10
|
+
owner: Address;
|
|
11
|
+
curator: Address;
|
|
12
|
+
adapters: readonly Address[];
|
|
13
|
+
deployedAt: string;
|
|
14
|
+
source: string;
|
|
15
|
+
measuredAtBlock: string;
|
|
16
|
+
}
|
|
17
|
+
export type VerificationMode = 'deposit' | 'withdraw';
|
|
18
|
+
export interface SetupReading {
|
|
19
|
+
ok: boolean;
|
|
20
|
+
drift: string[];
|
|
21
|
+
owner?: Address;
|
|
22
|
+
curator?: Address;
|
|
23
|
+
adapters?: Address[];
|
|
24
|
+
}
|
|
25
|
+
export interface LiquidityReading {
|
|
26
|
+
kind: 'morpho-market' | 'parked-vault' | 'unknown';
|
|
27
|
+
readyBase?: bigint;
|
|
28
|
+
}
|
|
29
|
+
export interface VerifiedVault extends Omit<BorroPin, 'deployedAt' | 'owner' | 'curator' | 'adapters'> {
|
|
30
|
+
chainId: 4663;
|
|
31
|
+
shareDecimals: 18;
|
|
32
|
+
owner?: Address;
|
|
33
|
+
curator?: Address;
|
|
34
|
+
adapters?: readonly Address[];
|
|
35
|
+
deployedAt?: string;
|
|
36
|
+
provenance: {
|
|
37
|
+
kind: 'factory';
|
|
38
|
+
factory: Address;
|
|
39
|
+
isVaultV2: true;
|
|
40
|
+
};
|
|
41
|
+
setup: SetupReading;
|
|
42
|
+
assetAllowed: boolean;
|
|
43
|
+
mode: VerificationMode;
|
|
44
|
+
}
|
|
45
|
+
export interface VaultReading {
|
|
46
|
+
vault: Address;
|
|
47
|
+
verified: boolean;
|
|
48
|
+
symbol?: string;
|
|
49
|
+
vaultSymbol?: string;
|
|
50
|
+
asset?: Token;
|
|
51
|
+
shares?: Token;
|
|
52
|
+
setup?: SetupReading;
|
|
53
|
+
error?: string;
|
|
54
|
+
totalAssets?: TokenAmount;
|
|
55
|
+
cashOnHand?: TokenAmount;
|
|
56
|
+
liquidityKind?: LiquidityReading['kind'];
|
|
57
|
+
performanceFeeWad?: string;
|
|
58
|
+
owner?: Address;
|
|
59
|
+
curator?: Address;
|
|
60
|
+
safeThreshold?: number;
|
|
61
|
+
safeOwners?: number;
|
|
62
|
+
gasInUsd?: number;
|
|
63
|
+
gasOutUsd?: number;
|
|
64
|
+
layerbankRateBasePct?: number;
|
|
65
|
+
deployedAt?: string;
|
|
66
|
+
ageSeconds?: string;
|
|
67
|
+
walletAssetBalance?: TokenAmount;
|
|
68
|
+
walletShares?: TokenAmount;
|
|
69
|
+
walletShareValue?: TokenAmount;
|
|
70
|
+
apr?: number;
|
|
71
|
+
rateSource?: string;
|
|
72
|
+
vendorReadyToWithdraw?: TokenAmount;
|
|
73
|
+
measuredAtBlock?: string;
|
|
74
|
+
verifiedAtBlock?: string;
|
|
75
|
+
risk?: {
|
|
76
|
+
title: string;
|
|
77
|
+
text: string;
|
|
78
|
+
source?: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface VaultSelector {
|
|
82
|
+
asset?: string;
|
|
83
|
+
vault?: Address;
|
|
84
|
+
}
|
|
85
|
+
export interface DiscoveryReading {
|
|
86
|
+
vaults: VerifiedVault[];
|
|
87
|
+
shareBalances?: {
|
|
88
|
+
vault: Address;
|
|
89
|
+
amount: string;
|
|
90
|
+
}[];
|
|
91
|
+
refused: {
|
|
92
|
+
vault?: Address;
|
|
93
|
+
reason: string;
|
|
94
|
+
}[];
|
|
95
|
+
sources: ('contracts.json' | 'factory-events')[];
|
|
96
|
+
incomplete: boolean;
|
|
97
|
+
warnings: string[];
|
|
98
|
+
measuredAtBlock: string;
|
|
99
|
+
}
|
|
100
|
+
export type DiscoverVaults = (client: PublicClient, options?: {
|
|
101
|
+
asset?: string;
|
|
102
|
+
wallet?: Address;
|
|
103
|
+
signal?: AbortSignal;
|
|
104
|
+
heldOnly?: boolean;
|
|
105
|
+
}) => Promise<DiscoveryReading>;
|
|
106
|
+
export type VerifyVault = (client: PublicClient, vault: Address, mode: VerificationMode, options?: {
|
|
107
|
+
wallet?: Address;
|
|
108
|
+
blockNumber?: bigint;
|
|
109
|
+
}) => Promise<VerifiedVault>;
|
|
110
|
+
export type ResolveVault = (client: PublicClient, selector: VaultSelector, mode: VerificationMode, wallet: Address) => Promise<VerifiedVault>;
|
|
111
|
+
export type VerifySetup = (client: PublicClient, pin: BorroPin | VerifiedVault, mode: VerificationMode) => Promise<SetupReading>;
|
|
112
|
+
export type ReadLiquidity = (client: PublicClient, pin: BorroPin | VerifiedVault) => Promise<LiquidityReading>;
|
|
113
|
+
export type ResolveAllowedAsset = (client: PublicClient, asset: Address, blockNumber: bigint) => Promise<Token | undefined>;
|
|
114
|
+
export interface VerificationDependencies {
|
|
115
|
+
resolveAllowedAsset: ResolveAllowedAsset;
|
|
116
|
+
}
|
|
117
|
+
export interface ActionToolDependencies {
|
|
118
|
+
client: PublicClient;
|
|
119
|
+
wallet: Address;
|
|
120
|
+
verifySetup: VerifySetup;
|
|
121
|
+
readLiquidity: ReadLiquidity;
|
|
122
|
+
verifyVault: VerifyVault;
|
|
123
|
+
resolveVault: ResolveVault;
|
|
124
|
+
context: ModuleContext;
|
|
125
|
+
}
|
|
126
|
+
export type CreateActionTools = (deps: ActionToolDependencies) => [ToolDefinition, ToolDefinition];
|
|
File without changes
|
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
export declare const chopAbi: readonly [{
|
|
2
|
+
readonly type: "event";
|
|
3
|
+
readonly name: "Approval";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly indexed: true;
|
|
6
|
+
readonly name: "owner";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: true;
|
|
10
|
+
readonly name: "spender";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly name: "value";
|
|
15
|
+
readonly type: "uint256";
|
|
16
|
+
}];
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "event";
|
|
19
|
+
readonly name: "Transfer";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly indexed: true;
|
|
22
|
+
readonly name: "from";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly indexed: true;
|
|
26
|
+
readonly name: "to";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly indexed: false;
|
|
30
|
+
readonly name: "value";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
readonly name: "allowance";
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "owner";
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "spender";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}];
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}];
|
|
47
|
+
}, {
|
|
48
|
+
readonly type: "function";
|
|
49
|
+
readonly name: "approve";
|
|
50
|
+
readonly stateMutability: "nonpayable";
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly name: "spender";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "amount";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly type: "bool";
|
|
60
|
+
}];
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "balanceOf";
|
|
64
|
+
readonly stateMutability: "view";
|
|
65
|
+
readonly inputs: readonly [{
|
|
66
|
+
readonly name: "account";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}];
|
|
72
|
+
}, {
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
readonly name: "decimals";
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly type: "uint8";
|
|
79
|
+
}];
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly name: "name";
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
}];
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
readonly name: "symbol";
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
}];
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly name: "totalSupply";
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
readonly inputs: readonly [];
|
|
101
|
+
readonly outputs: readonly [{
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
}, {
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly name: "transfer";
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly name: "recipient";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "amount";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly outputs: readonly [{
|
|
116
|
+
readonly type: "bool";
|
|
117
|
+
}];
|
|
118
|
+
}, {
|
|
119
|
+
readonly type: "function";
|
|
120
|
+
readonly name: "transferFrom";
|
|
121
|
+
readonly stateMutability: "nonpayable";
|
|
122
|
+
readonly inputs: readonly [{
|
|
123
|
+
readonly name: "sender";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "recipient";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "amount";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
}];
|
|
132
|
+
readonly outputs: readonly [{
|
|
133
|
+
readonly type: "bool";
|
|
134
|
+
}];
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "convertToAssets";
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
readonly stateMutability: "view";
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly name: "shares";
|
|
142
|
+
}];
|
|
143
|
+
readonly outputs: readonly [{
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
readonly name: "assets";
|
|
146
|
+
}];
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "implementation";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
}];
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "allIndexes";
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly outputs: readonly [{
|
|
161
|
+
readonly type: "tuple[]";
|
|
162
|
+
readonly components: readonly [{
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly name: "index";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
readonly name: "creator";
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "bool";
|
|
170
|
+
readonly name: "verified";
|
|
171
|
+
}, {
|
|
172
|
+
readonly type: "bool";
|
|
173
|
+
readonly name: "selfLending";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "bool";
|
|
176
|
+
readonly name: "makePublic";
|
|
177
|
+
}];
|
|
178
|
+
}];
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "getIndex";
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
readonly name: "_index";
|
|
186
|
+
}];
|
|
187
|
+
readonly outputs: readonly [{
|
|
188
|
+
readonly type: "tuple";
|
|
189
|
+
readonly components: readonly [{
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
readonly name: "index";
|
|
192
|
+
}, {
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
readonly name: "creator";
|
|
195
|
+
}, {
|
|
196
|
+
readonly type: "bool";
|
|
197
|
+
readonly name: "verified";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
readonly name: "selfLending";
|
|
201
|
+
}, {
|
|
202
|
+
readonly type: "bool";
|
|
203
|
+
readonly name: "makePublic";
|
|
204
|
+
}];
|
|
205
|
+
}];
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "isRegistered";
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
readonly stateMutability: "view";
|
|
210
|
+
readonly inputs: readonly [{
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
readonly name: "_index";
|
|
213
|
+
}];
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly type: "bool";
|
|
216
|
+
}];
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "validateIndex";
|
|
219
|
+
readonly type: "function";
|
|
220
|
+
readonly stateMutability: "view";
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly type: "address";
|
|
223
|
+
readonly name: "index";
|
|
224
|
+
}];
|
|
225
|
+
readonly outputs: readonly [];
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "addLPAndStake";
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
readonly stateMutability: "payable";
|
|
230
|
+
readonly inputs: readonly [{
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
readonly name: "_indexFund";
|
|
233
|
+
}, {
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
readonly name: "_amountIdxTokens";
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
readonly name: "_pairedLpTokenProvided";
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "uint256";
|
|
241
|
+
readonly name: "_amtPairedLpTokenProvided";
|
|
242
|
+
}, {
|
|
243
|
+
readonly type: "uint256";
|
|
244
|
+
readonly name: "_amountPairedLpTokenMin";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
readonly name: "_slippage";
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "uint256";
|
|
250
|
+
readonly name: "_deadline";
|
|
251
|
+
}];
|
|
252
|
+
readonly outputs: readonly [{
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
readonly name: "_amountOut";
|
|
255
|
+
}];
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "unstakeAndRemoveLP";
|
|
258
|
+
readonly type: "function";
|
|
259
|
+
readonly stateMutability: "nonpayable";
|
|
260
|
+
readonly inputs: readonly [{
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly name: "_indexFund";
|
|
263
|
+
}, {
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
readonly name: "_amountStakedTokens";
|
|
266
|
+
}, {
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
readonly name: "_minLPTokens";
|
|
269
|
+
}, {
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly name: "_minPairedLpToken";
|
|
272
|
+
}, {
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
readonly name: "_deadline";
|
|
275
|
+
}];
|
|
276
|
+
readonly outputs: readonly [];
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "PAIRED_LP_TOKEN";
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
readonly stateMutability: "view";
|
|
281
|
+
readonly inputs: readonly [];
|
|
282
|
+
readonly outputs: readonly [{
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
}];
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "bond";
|
|
287
|
+
readonly type: "function";
|
|
288
|
+
readonly stateMutability: "nonpayable";
|
|
289
|
+
readonly inputs: readonly [{
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
readonly name: "_token";
|
|
292
|
+
}, {
|
|
293
|
+
readonly type: "uint256";
|
|
294
|
+
readonly name: "_amount";
|
|
295
|
+
}, {
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
readonly name: "_amountMintMin";
|
|
298
|
+
}];
|
|
299
|
+
readonly outputs: readonly [];
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "config";
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
readonly stateMutability: "view";
|
|
304
|
+
readonly inputs: readonly [];
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly type: "tuple";
|
|
307
|
+
readonly components: readonly [{
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
readonly name: "partner";
|
|
310
|
+
}, {
|
|
311
|
+
readonly type: "uint256";
|
|
312
|
+
readonly name: "debondCooldown";
|
|
313
|
+
}, {
|
|
314
|
+
readonly type: "bool";
|
|
315
|
+
readonly name: "hasTransferTax";
|
|
316
|
+
}, {
|
|
317
|
+
readonly type: "bool";
|
|
318
|
+
readonly name: "blacklistTKNpTKNPoolV2";
|
|
319
|
+
}];
|
|
320
|
+
}];
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "debond";
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
readonly stateMutability: "nonpayable";
|
|
325
|
+
readonly inputs: readonly [{
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
readonly name: "_amount";
|
|
328
|
+
}, {
|
|
329
|
+
readonly type: "address[]";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "uint8[]";
|
|
332
|
+
}];
|
|
333
|
+
readonly outputs: readonly [];
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "fees";
|
|
336
|
+
readonly type: "function";
|
|
337
|
+
readonly stateMutability: "view";
|
|
338
|
+
readonly inputs: readonly [];
|
|
339
|
+
readonly outputs: readonly [{
|
|
340
|
+
readonly type: "tuple";
|
|
341
|
+
readonly components: readonly [{
|
|
342
|
+
readonly type: "uint16";
|
|
343
|
+
readonly name: "burn";
|
|
344
|
+
}, {
|
|
345
|
+
readonly type: "uint16";
|
|
346
|
+
readonly name: "bond";
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "uint16";
|
|
349
|
+
readonly name: "debond";
|
|
350
|
+
}, {
|
|
351
|
+
readonly type: "uint16";
|
|
352
|
+
readonly name: "buy";
|
|
353
|
+
}, {
|
|
354
|
+
readonly type: "uint16";
|
|
355
|
+
readonly name: "sell";
|
|
356
|
+
}, {
|
|
357
|
+
readonly type: "uint16";
|
|
358
|
+
readonly name: "partner";
|
|
359
|
+
}];
|
|
360
|
+
}];
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "getAllAssets";
|
|
363
|
+
readonly type: "function";
|
|
364
|
+
readonly stateMutability: "view";
|
|
365
|
+
readonly inputs: readonly [];
|
|
366
|
+
readonly outputs: readonly [{
|
|
367
|
+
readonly type: "tuple[]";
|
|
368
|
+
readonly components: readonly [{
|
|
369
|
+
readonly type: "address";
|
|
370
|
+
readonly name: "token";
|
|
371
|
+
}, {
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
readonly name: "weighting";
|
|
374
|
+
}, {
|
|
375
|
+
readonly type: "uint256";
|
|
376
|
+
readonly name: "basePriceUSDX96";
|
|
377
|
+
}, {
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
readonly name: "c1";
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "uint256";
|
|
382
|
+
readonly name: "q1";
|
|
383
|
+
}];
|
|
384
|
+
}];
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "lpRewardsToken";
|
|
387
|
+
readonly type: "function";
|
|
388
|
+
readonly stateMutability: "view";
|
|
389
|
+
readonly inputs: readonly [];
|
|
390
|
+
readonly outputs: readonly [{
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
}];
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "lpStakingPool";
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
readonly stateMutability: "view";
|
|
397
|
+
readonly inputs: readonly [];
|
|
398
|
+
readonly outputs: readonly [{
|
|
399
|
+
readonly type: "address";
|
|
400
|
+
}];
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "totalAssets";
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
readonly stateMutability: "view";
|
|
405
|
+
readonly inputs: readonly [{
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
readonly name: "_asset";
|
|
408
|
+
}];
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
readonly name: "_totalManagedAssets";
|
|
412
|
+
}];
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "v2Pool";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
readonly stateMutability: "view";
|
|
417
|
+
readonly inputs: readonly [];
|
|
418
|
+
readonly outputs: readonly [{
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}];
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "INDEX_FUND";
|
|
423
|
+
readonly type: "function";
|
|
424
|
+
readonly stateMutability: "view";
|
|
425
|
+
readonly inputs: readonly [];
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}];
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "POOL_REWARDS";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly stateMutability: "view";
|
|
433
|
+
readonly inputs: readonly [];
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly type: "address";
|
|
436
|
+
}];
|
|
437
|
+
}, {
|
|
438
|
+
readonly name: "stakingToken";
|
|
439
|
+
readonly type: "function";
|
|
440
|
+
readonly stateMutability: "view";
|
|
441
|
+
readonly inputs: readonly [];
|
|
442
|
+
readonly outputs: readonly [{
|
|
443
|
+
readonly type: "address";
|
|
444
|
+
}];
|
|
445
|
+
}, {
|
|
446
|
+
readonly name: "withdrawableStake";
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly stateMutability: "view";
|
|
449
|
+
readonly inputs: readonly [{
|
|
450
|
+
readonly type: "address";
|
|
451
|
+
readonly name: "wallet";
|
|
452
|
+
}];
|
|
453
|
+
readonly outputs: readonly [{
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}];
|
|
456
|
+
}, {
|
|
457
|
+
readonly name: "claimReward";
|
|
458
|
+
readonly type: "function";
|
|
459
|
+
readonly stateMutability: "nonpayable";
|
|
460
|
+
readonly inputs: readonly [{
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
readonly name: "_wallet";
|
|
463
|
+
}];
|
|
464
|
+
readonly outputs: readonly [];
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "getClaimable";
|
|
467
|
+
readonly type: "function";
|
|
468
|
+
readonly stateMutability: "view";
|
|
469
|
+
readonly inputs: readonly [{
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
readonly name: "token";
|
|
472
|
+
}, {
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
readonly name: "wallet";
|
|
475
|
+
}];
|
|
476
|
+
readonly outputs: readonly [{
|
|
477
|
+
readonly type: "uint256";
|
|
478
|
+
}];
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "getUnpaid";
|
|
481
|
+
readonly type: "function";
|
|
482
|
+
readonly stateMutability: "view";
|
|
483
|
+
readonly inputs: readonly [{
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
readonly name: "_token";
|
|
486
|
+
}, {
|
|
487
|
+
readonly type: "address";
|
|
488
|
+
readonly name: "_wallet";
|
|
489
|
+
}];
|
|
490
|
+
readonly outputs: readonly [{
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}];
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "indexFund";
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
readonly stateMutability: "view";
|
|
497
|
+
readonly inputs: readonly [];
|
|
498
|
+
readonly outputs: readonly [{
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
}];
|
|
501
|
+
}, {
|
|
502
|
+
readonly name: "rewardsToken";
|
|
503
|
+
readonly type: "function";
|
|
504
|
+
readonly stateMutability: "view";
|
|
505
|
+
readonly inputs: readonly [];
|
|
506
|
+
readonly outputs: readonly [{
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}];
|
|
509
|
+
}, {
|
|
510
|
+
readonly name: "trackingToken";
|
|
511
|
+
readonly type: "function";
|
|
512
|
+
readonly stateMutability: "view";
|
|
513
|
+
readonly inputs: readonly [];
|
|
514
|
+
readonly outputs: readonly [{
|
|
515
|
+
readonly type: "address";
|
|
516
|
+
}];
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "paused";
|
|
519
|
+
readonly type: "function";
|
|
520
|
+
readonly stateMutability: "view";
|
|
521
|
+
readonly inputs: readonly [{
|
|
522
|
+
readonly type: "address";
|
|
523
|
+
}];
|
|
524
|
+
readonly outputs: readonly [{
|
|
525
|
+
readonly type: "bool";
|
|
526
|
+
}];
|
|
527
|
+
}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunks/JFYBH3DX.js";import"../../../chunks/63YRSLDK.js";export{a as chopAbi};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Address, ModuleContext, Token, ToolArgs, UnsignedTx } from '../../types.js';
|
|
2
|
+
import type { ChopActionResult, VerifiedLog } from './types.js';
|
|
3
|
+
export declare const actionFields: {
|
|
4
|
+
readonly chop_wrap: readonly ["log", "underlying", "amount", "minLogOut"];
|
|
5
|
+
readonly chop_unwrap: readonly ["log", "amount", "quotedNet"];
|
|
6
|
+
readonly chop_farm: readonly ["log", "amount", "pairedAmount", "minPaired", "minStakedLp", "slippageBps", "deadline"];
|
|
7
|
+
readonly chop_unfarm: readonly ["log", "amount", "minLogOut", "minPairedOut", "deadline"];
|
|
8
|
+
readonly chop_harvest: readonly ["log"];
|
|
9
|
+
};
|
|
10
|
+
export type ActionName = keyof typeof actionFields;
|
|
11
|
+
export declare function assertArgs(args: ToolArgs, fields: readonly string[]): void;
|
|
12
|
+
export declare function prepareAction(context: ModuleContext, name: ActionName, args: ToolArgs, wallet: Address): Promise<{
|
|
13
|
+
built: UnsignedTx[];
|
|
14
|
+
expected: UnsignedTx[];
|
|
15
|
+
rules: {
|
|
16
|
+
token: Token;
|
|
17
|
+
min: bigint;
|
|
18
|
+
max?: bigint;
|
|
19
|
+
}[];
|
|
20
|
+
details: string;
|
|
21
|
+
facts: VerifiedLog;
|
|
22
|
+
log: `0x${string}`;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function buildAction(context: ModuleContext, name: ActionName, args: ToolArgs, wallet: Address): Promise<ChopActionResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"../../../chunks/4DP2VPXR.js";import"../../../chunks/V5JWGWXC.js";import"../../../chunks/YWSX6IE6.js";import"../../../chunks/JFYBH3DX.js";import"../../../chunks/7QZOTRSA.js";import"../../../chunks/I6PQW2JI.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as actionFields,b as assertArgs,d as buildAction,c as prepareAction};
|