@oakagentkit/core 0.2.5 → 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/history.js +1 -1
- package/build/dist/api/modules/borro/actions.js +1 -1
- package/build/dist/api/modules/borro/checks.js +1 -1
- package/build/dist/api/modules/borro/copy.d.ts +4 -4
- package/build/dist/api/modules/borro/copy.js +1 -1
- package/build/dist/api/modules/borro/index.js +1 -1
- package/build/dist/api/modules/borro/liquidity.js +1 -1
- package/build/dist/api/modules/borro/positions.js +1 -1
- package/build/dist/api/modules/borro/reader.d.ts +6 -2
- package/build/dist/api/modules/borro/reader.js +1 -1
- package/build/dist/api/modules/borro/types.d.ts +6 -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/index.js +1 -1
- package/build/dist/api/modules/earn/index.js +1 -1
- package/build/dist/api/modules/erc8004/index.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/index.js +1 -1
- package/build/dist/api/modules/heyresearch/public-reads.js +1 -1
- package/build/dist/api/modules/hoodlock/airdrop.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/kyberswap/index.js +1 -1
- package/build/dist/api/modules/layerbank/actions.js +1 -1
- package/build/dist/api/modules/layerbank/index.js +1 -1
- package/build/dist/api/modules/layerbank/reader.js +1 -1
- package/build/dist/api/modules/longbow/administration.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/meridian/index.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/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-tools.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/orbio/index.js +1 -1
- package/build/dist/api/modules/pendle/index.js +1 -1
- package/build/dist/api/modules/pendle/reader.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.d.ts +1 -0
- package/build/dist/api/modules/pons/launch-status.js +1 -1
- package/build/dist/api/modules/pons/reads.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/index.js +1 -1
- package/build/dist/api/modules/priors/integration.js +1 -1
- package/build/dist/api/modules/priors/stock-swap.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/spark/index.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.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/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/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/prices.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.js +1 -1
- package/build/dist/api/tool-policy.js +1 -1
- package/build/dist/api/types.d.ts +6 -1
- package/build/dist/chunks/{3FUVMSCF.js → 2MT3G7YZ.js} +1 -1
- package/build/dist/chunks/{GEIFITAQ.js → 2THSW4QN.js} +1 -1
- package/build/dist/chunks/{GQ5GYUEH.js → 2VXLVXIB.js} +1 -1
- package/build/dist/chunks/{HCUHMCBW.js → 35KR3VSS.js} +1 -1
- package/build/dist/chunks/{P7I62KFR.js → 3GQ7A3VB.js} +1 -1
- package/build/dist/chunks/3VWVW7PX.js +1 -0
- package/build/dist/chunks/4DP2VPXR.js +3 -0
- package/build/dist/chunks/{MR5L7V6Z.js → 4EN6MQEI.js} +1 -1
- package/build/dist/chunks/{LSXUAHOE.js → 4I3OU56B.js} +1 -1
- package/build/dist/chunks/{NEEZBJBC.js → 5AXWBSPG.js} +1 -1
- package/build/dist/chunks/{VY7XRHZQ.js → 5N3O42X6.js} +1 -1
- package/build/dist/chunks/{X3PQMS4N.js → 5SZPNZG4.js} +1 -1
- package/build/dist/chunks/{VYN2NRAP.js → 6JAXZNZ3.js} +1 -1
- package/build/dist/chunks/{APGLZXIW.js → 6O3Q5B6M.js} +1 -1
- package/build/dist/chunks/6YB3VOUL.js +1 -0
- package/build/dist/chunks/77CLMPM7.js +1 -0
- package/build/dist/chunks/{GL4NCUMH.js → 7GJ6SLEV.js} +1 -1
- package/build/dist/chunks/{57MEFFCU.js → 7KWZ5QJU.js} +1 -1
- package/build/dist/chunks/{326QMOTR.js → 7QIO77VE.js} +1 -1
- package/build/dist/chunks/7QZOTRSA.js +2 -0
- package/build/dist/chunks/{UHVSINR5.js → A7I4IWUB.js} +1 -1
- package/build/dist/chunks/{6PBGEPUK.js → ACW63WIL.js} +4 -4
- package/build/dist/chunks/{P56RZC2M.js → AEL62KCG.js} +1 -1
- package/build/dist/chunks/{6B3VVISQ.js → ALLLYOUG.js} +1 -1
- package/build/dist/chunks/APQYLJGS.js +1 -0
- package/build/dist/chunks/{FQ6UZCM6.js → AW7AXQCZ.js} +1 -1
- package/build/dist/chunks/{T3AJSQYT.js → AXRL3REN.js} +1 -1
- package/build/dist/chunks/{INOZIE55.js → BBTPRZ6T.js} +1 -1
- package/build/dist/chunks/{WDK6VOG4.js → BND2UFVW.js} +1 -1
- package/build/dist/chunks/{3NJ5KQ3Q.js → BOVMED7R.js} +1 -1
- package/build/dist/chunks/{74Y2KDNR.js → CBLMQ5UU.js} +1 -1
- package/build/dist/chunks/CDPSMI3Z.js +1 -0
- package/build/dist/chunks/{XR7VK24E.js → CQEJSCFQ.js} +1 -1
- package/build/dist/chunks/{GW626GG2.js → DBNTZEAJ.js} +1 -1
- package/build/dist/chunks/{SSHCD6RZ.js → DHUDSOGR.js} +1 -1
- package/build/dist/chunks/{3GOHSYHW.js → DL6AEWEM.js} +1 -1
- package/build/dist/chunks/{UMIZMJWW.js → EGYVRQUR.js} +1 -1
- package/build/dist/chunks/{Y25EXZCO.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/{X3BYCOWS.js → FUDAXV5X.js} +1 -1
- package/build/dist/chunks/{Z43BTOTE.js → GG6Y4OCJ.js} +1 -1
- package/build/dist/chunks/{ELSXLZN5.js → GGHBFLRC.js} +1 -1
- package/build/dist/chunks/{L4N2RSK2.js → GRQYTVNT.js} +1 -1
- package/build/dist/chunks/{2MAMJJJC.js → GSBIERZD.js} +1 -1
- package/build/dist/chunks/{J2OT4KAH.js → H6T5FXEX.js} +1 -1
- package/build/dist/chunks/HHXBUYHO.js +1 -0
- package/build/dist/chunks/{MJ6WEWMI.js → HQUVB7Z5.js} +1 -1
- package/build/dist/chunks/HS4DZPYT.js +1 -0
- package/build/dist/chunks/{S7IFAQPG.js → HU7IMNBI.js} +1 -1
- package/build/dist/chunks/{5APS4T2D.js → HWX36XJI.js} +1 -1
- package/build/dist/chunks/I55MURSJ.js +1 -0
- package/build/dist/chunks/I6PQW2JI.js +1 -0
- package/build/dist/chunks/{KIFSRO5K.js → IPN6Z4JM.js} +1 -1
- package/build/dist/chunks/{NDCLTVIU.js → IPRVIKYC.js} +1 -1
- package/build/dist/chunks/{VJS4DHQQ.js → IVX4R5OL.js} +1 -1
- package/build/dist/chunks/JFYBH3DX.js +1 -0
- package/build/dist/chunks/JQOQMFWD.js +3 -0
- package/build/dist/chunks/{BJ2VGRF4.js → JZS3E66E.js} +1 -1
- package/build/dist/chunks/{W6BS3T7S.js → KVFZKPJT.js} +1 -1
- package/build/dist/chunks/{QZZ4O34L.js → LKXO2BQS.js} +1 -1
- package/build/dist/chunks/{BBS3ODWZ.js → LKZX4CAA.js} +1 -1
- package/build/dist/chunks/{H2XDMFQQ.js → LYMNHO5T.js} +1 -1
- package/build/dist/chunks/{KPCY5V35.js → M2UXYCKH.js} +1 -1
- package/build/dist/chunks/{ZMFRMWHR.js → M6LC6DRE.js} +1 -1
- package/build/dist/chunks/{VOMGT5SG.js → MOE3EVAL.js} +1 -1
- package/build/dist/chunks/{2KYAMXTS.js → NOFUKKP5.js} +1 -1
- package/build/dist/chunks/{AVG4W3Y7.js → O6ROOKY2.js} +1 -1
- package/build/dist/chunks/{BTD5SMOW.js → OLSP46ZD.js} +1 -1
- package/build/dist/chunks/{E674J2MD.js → OOZSE2R7.js} +1 -1
- package/build/dist/chunks/{P3S4BR5G.js → P5AJSLZ7.js} +1 -1
- package/build/dist/chunks/{RQ4GHJXE.js → PACN53TR.js} +1 -1
- package/build/dist/chunks/{U67J4BCH.js → PAHXBLCS.js} +1 -1
- package/build/dist/chunks/PAY5PD4H.js +1 -0
- package/build/dist/chunks/{T2WHOZXM.js → PIIHOXWF.js} +1 -1
- package/build/dist/chunks/{HSCQZ66A.js → PNA6UIE5.js} +1 -1
- package/build/dist/chunks/{X2KFXCVD.js → PZGGE5D3.js} +1 -1
- package/build/dist/chunks/{553UE2ZQ.js → QA2RRIES.js} +1 -1
- package/build/dist/chunks/{Z4FZVJ5Z.js → QBIY6FQN.js} +1 -1
- package/build/dist/chunks/{D3YLXQPW.js → QFNT73OF.js} +1 -1
- package/build/dist/chunks/QHBS3PVU.js +1 -0
- package/build/dist/chunks/QW2OPEYJ.js +1 -0
- package/build/dist/chunks/{YWRDZQI6.js → QYVREJYC.js} +1 -1
- package/build/dist/chunks/{W2BYU5JQ.js → ROFPXEQ5.js} +1 -1
- package/build/dist/chunks/{OKUO3BVM.js → RTAHNWHN.js} +1 -1
- package/build/dist/chunks/{UHTRW2R6.js → RTGS7RIO.js} +1 -1
- package/build/dist/chunks/{CCTXCMH4.js → S5CBVFHY.js} +1 -1
- package/build/dist/chunks/{JVLLVNF2.js → T7TFUH5K.js} +1 -1
- package/build/dist/chunks/{OJPG45AC.js → TPBAFS7K.js} +1 -1
- package/build/dist/chunks/{B3RXD5ET.js → U2RMUVVY.js} +1 -1
- package/build/dist/chunks/{4MXM6Q4W.js → UD2XMNIT.js} +1 -1
- package/build/dist/chunks/V5JWGWXC.js +1 -0
- package/build/dist/chunks/VCOTCVKN.js +1 -0
- package/build/dist/chunks/{QO3KCJMP.js → VNV6ZISN.js} +1 -1
- package/build/dist/chunks/{TM2XCRU7.js → X2P55AC3.js} +1 -1
- package/build/dist/chunks/XD6X3KTC.js +1 -0
- package/build/dist/chunks/{C36BFZH6.js → XKSVTN5X.js} +1 -1
- package/build/dist/chunks/{IY7BXLT4.js → XL3LLGIR.js} +1 -1
- package/build/dist/chunks/XQA5LCL6.js +1 -0
- package/build/dist/chunks/{S47VUTHM.js → XSKFKBDR.js} +1 -1
- package/build/dist/chunks/{6D5DJA5B.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/{QF52OIBS.js → Z6LZGCVW.js} +1 -1
- package/build/dist/chunks/{45BRW2ZF.js → ZQWZGH7V.js} +1 -1
- package/build/dist/chunks/{HAQPIBYR.js → ZXJ24B4L.js} +1 -1
- package/package.json +1 -1
- package/build/dist/chunks/3MLUCYCB.js +0 -1
- package/build/dist/chunks/3XXBLNEX.js +0 -1
- package/build/dist/chunks/4PY3UFNR.js +0 -1
- package/build/dist/chunks/EE64JSLY.js +0 -1
- package/build/dist/chunks/EJ7O75A7.js +0 -1
- package/build/dist/chunks/QC3HH5UD.js +0 -3
- package/build/dist/chunks/QSHCBASA.js +0 -1
- package/build/dist/chunks/XLOYBLFI.js +0 -1
|
@@ -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};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type PublicClient } from 'viem';
|
|
2
|
+
import type { Address, Hex, Preview, Token, UnsignedTx } from '../../types.js';
|
|
3
|
+
import type { ChopMode, VerifiedLog } from './types.js';
|
|
4
|
+
export declare const address: (value: unknown) => Address;
|
|
5
|
+
export declare const uint: (value: unknown) => bigint;
|
|
6
|
+
export declare const amount: (value: unknown) => bigint;
|
|
7
|
+
export declare function hash(code: unknown): Hex;
|
|
8
|
+
export declare const read: (client: PublicClient, target: Address, functionName: string, args: readonly unknown[], blockNumber: bigint, account?: Address) => Promise<unknown>;
|
|
9
|
+
export declare function batch(client: PublicClient, entries: readonly {
|
|
10
|
+
target: Address;
|
|
11
|
+
fn: string;
|
|
12
|
+
args?: readonly unknown[];
|
|
13
|
+
}[], blockNumber: bigint): Promise<unknown[]>;
|
|
14
|
+
export declare function mainnetBlock(client: PublicClient): Promise<bigint>;
|
|
15
|
+
export declare function anchoredCode(client: PublicClient, pin: {
|
|
16
|
+
address: Address;
|
|
17
|
+
codeHash: Hex;
|
|
18
|
+
}, blockNumber: bigint): Promise<void>;
|
|
19
|
+
export declare function assertRegistryEntry(value: unknown, candidate: Address): void;
|
|
20
|
+
export declare function verifyLog(client: PublicClient, candidate: Address, mode: ChopMode, at?: bigint): Promise<VerifiedLog>;
|
|
21
|
+
export declare function assertTransactions(actual: readonly UnsignedTx[], expected: readonly UnsignedTx[], allowMissingPreviewGasFloor?: boolean): void;
|
|
22
|
+
export declare function receipt(preview: Preview, rules: readonly {
|
|
23
|
+
token: Token;
|
|
24
|
+
min: bigint;
|
|
25
|
+
max?: bigint;
|
|
26
|
+
}[]): Map<string, bigint>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l}from"../../../chunks/YWSX6IE6.js";import"../../../chunks/JFYBH3DX.js";import"../../../chunks/I6PQW2JI.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as address,c as amount,h as anchoredCode,i as assertRegistryEntry,k as assertTransactions,f as batch,d as hash,g as mainnetBlock,e as read,l as receipt,b as uint,j as verifyLog};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VerifiedLog } from './types.js';
|
|
2
|
+
export declare const unwrapRisk = "Chop's unwrap has no on-chain minimum output. Oak checks the simulated net output, but the contract itself will not stop a worse result if state moves before inclusion.";
|
|
3
|
+
export declare const holderRisk = "Wrapping $OAK moves it out of your wallet. If you are on Oak's Holder plan and your wallet balance drops below your signup amount, Oak's action tools pause until you unwrap or top up.";
|
|
4
|
+
export declare const harvestPayoutRisk = "Oak checks that CHOP actually reached your wallet; a successful transaction alone does not prove a payout.";
|
|
5
|
+
export declare function riskLines(facts: VerifiedLog): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"../../../chunks/7QZOTRSA.js";import"../../../chunks/I6PQW2JI.js";import"../../../chunks/63YRSLDK.js";export{c as harvestPayoutRisk,b as holderRisk,d as riskLines,a as unwrapRisk};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PublicClient } from 'viem';
|
|
2
|
+
import type { Address, ModuleContext, ToolArgs, UnsignedTx } from '../../types.js';
|
|
3
|
+
export interface ChopGuardRequest {
|
|
4
|
+
name: string;
|
|
5
|
+
args: ToolArgs;
|
|
6
|
+
chainId?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ChopGuardDeps {
|
|
9
|
+
client: PublicClient;
|
|
10
|
+
preview?: ModuleContext['preview'];
|
|
11
|
+
}
|
|
12
|
+
export declare function rebuildChopAction(request: ChopGuardRequest, wallet: Address, deps: ChopGuardDeps): Promise<UnsignedTx[]>;
|
|
13
|
+
export declare function createChopGuard(deps: ChopGuardDeps): (request: ChopGuardRequest, wallet: Address) => Promise<UnsignedTx[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../../../chunks/XD6X3KTC.js";import"../../../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/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/FWD4L3CJ.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as createChopGuard,a as rebuildChopAction};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f}from"../../../chunks/HHXBUYHO.js";import{a as l,b as n,d}from"../../../chunks/4DP2VPXR.js";import{c as m,f as p,h as s,i as c}from"../../../chunks/V5JWGWXC.js";import{a}from"../../../chunks/YWSX6IE6.js";import"../../../chunks/JFYBH3DX.js";import"../../../chunks/7QZOTRSA.js";import"../../../chunks/I6PQW2JI.js";import{b as u}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var y={type:"string"};function i(o){return{type:"object",additionalProperties:!1,properties:Object.fromEntries(o.map(r=>[r,r==="slippageBps"?{type:"integer",minimum:0,maximum:1e3,multipleOf:10}:y])),required:o}}function M(o){let r=m();return{tools:[{name:"chop_logs",inputSchema:i([]),execute:async e=>(n(e,[]),p(o,r))},{name:"chop_position",inputSchema:i(["log"]),execute:async(e,t)=>(n(e,["log"]),s(o,a(e.log),t,r))},{name:"chop_quote_unwrap",inputSchema:i(["log","amount"]),execute:async(e,t)=>(n(e,["log","amount"]),c(o,a(e.log),t,e.amount))},...Object.entries(l).map(([e,t])=>({name:e,inputSchema:i(t),execute:(g,h)=>d(o,e,g,h)}))],positions:(e,t)=>f(o,e,t,r)}}var A=o=>u("chop",o.network==="testnet"?[]:[M(o)]);export{A as createModule,M as createModulePart};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const CHOP_PINS: {
|
|
2
|
+
readonly registry: {
|
|
3
|
+
readonly address: "0xF2A26110396b4162d48A16eE8683372a6A2c3b76";
|
|
4
|
+
readonly codeHash: "0xb08c7571b87c9a5d1d0d32b2a9accb4e4e923f191127a733072d99b00f463479";
|
|
5
|
+
};
|
|
6
|
+
readonly helper: {
|
|
7
|
+
readonly address: "0x88BfFDf0ce9EB8889577924Cf802B2237bf8aD79";
|
|
8
|
+
readonly codeHash: "0xa33bd7460219439ad0e659548b6f08a71b3aab40ac02109ab69b364a00a5f036";
|
|
9
|
+
};
|
|
10
|
+
readonly whitelist: {
|
|
11
|
+
readonly address: "0xab74612eB2ef5642fa804A52529fEDC6D98f6Cbd";
|
|
12
|
+
readonly codeHash: "0x335b0b4210eaa3c3d8956b16e2326851b54918bf85266b1fbf9c04461ea2a512";
|
|
13
|
+
};
|
|
14
|
+
readonly beacon: {
|
|
15
|
+
readonly address: "0x5413041ebddd006f8b50a03a05236eade8fa884e";
|
|
16
|
+
readonly codeHash: "0xa0693b5efe62447f561c327fb56d7d1ab0930a5bb147a0f8844461a6b976b7f7";
|
|
17
|
+
};
|
|
18
|
+
readonly implementation: {
|
|
19
|
+
readonly address: "0x1570a79aa494043DC01Ecc96405d5A8b45d24bDa";
|
|
20
|
+
readonly codeHash: "0xd3a1db41d5c42de3d2b6ff176e8603b9b825ff5603de555ed8f41cb270d71985";
|
|
21
|
+
};
|
|
22
|
+
readonly staking: {
|
|
23
|
+
readonly codeHash: "0x533bcf9a4518b33b2bb541af1c1daa06f69ab6092cfd84944c1d57ebec825a69";
|
|
24
|
+
};
|
|
25
|
+
readonly rewards: {
|
|
26
|
+
readonly codeHash: "0x6a482e5367e1aced7f5448e31e40140e4b899959376d040e0be502c37ce739b1";
|
|
27
|
+
};
|
|
28
|
+
readonly proxy: {
|
|
29
|
+
readonly codeHash: "0x813f4e3ccc34b924559faf1f81706763c9649bad4c4f6c07547acd5713f481b9";
|
|
30
|
+
};
|
|
31
|
+
readonly stakingBeacon: {
|
|
32
|
+
readonly address: "0x9df506ae33dad46c83d226be462849c3071f63ac";
|
|
33
|
+
readonly codeHash: "0xa0693b5efe62447f561c327fb56d7d1ab0930a5bb147a0f8844461a6b976b7f7";
|
|
34
|
+
};
|
|
35
|
+
readonly stakingImplementation: {
|
|
36
|
+
readonly address: "0x4c6b1D5377e353C6959C65d389aAe3127a84EC4e";
|
|
37
|
+
readonly codeHash: "0x30c917d96f73c2075d7d0cca801cd34c459060567ec90dfdb30b361bf29dd2ed";
|
|
38
|
+
};
|
|
39
|
+
readonly rewardsBeacon: {
|
|
40
|
+
readonly address: "0x4768574074cf48b025457b14d109983079952134";
|
|
41
|
+
readonly codeHash: "0xa0693b5efe62447f561c327fb56d7d1ab0930a5bb147a0f8844461a6b976b7f7";
|
|
42
|
+
};
|
|
43
|
+
readonly rewardsImplementation: {
|
|
44
|
+
readonly address: "0x15a8Ef0EA82c5D087BD8D89b5D10BA85FfD3BefE";
|
|
45
|
+
readonly codeHash: "0x2cdf99c071739c5bbde722901ab43a9085674c99647372d6d66ad2bec10ee3db";
|
|
46
|
+
};
|
|
47
|
+
readonly oak: "0x6511c233790Ec10f7d673c64DC82C3F941D57828";
|
|
48
|
+
readonly dormantOak: "0x38fE199550E677Fa9caC196495460dfF97BCe28F";
|
|
49
|
+
readonly chop: "0x100765a16f42636Bd84EE1e86Bc5107b84bCdBA3";
|
|
50
|
+
readonly chainId: 4663;
|
|
51
|
+
readonly measuredAtBlock: "106718816";
|
|
52
|
+
readonly source: "https://rpc.mainnet.chain.robinhood.com";
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunks/I6PQW2JI.js";import"../../../chunks/63YRSLDK.js";export{a as CHOP_PINS};
|