Repository navigation
Added
-
Cookiebox Zip. Three tools for trailing range orders (program
ZiPzPbbM…), behaving like
Cookiebox's /trade Zip tab:get_zip_orders(read,.cooknames accepted),start_zipand
stop_zip. A Zip sells one token for another across a price range and never fills back: it rests
as a one-sided Cookiebox CLMM position that the Cookiebox keeper trails, each move paying the
filled part (plus the LP fees earned) to the wallet.start_ziptakessell,receive,amount
and the pricesfrom/toas receive per sell (what one sold token fetches; omit them for a
range from one price step past the market to 10% above it) and an optionalfee(the pool the
order earns in; default the pair's deepest pool). The part of the range the market already beats is
sold at once, never underfrom(in the pool, or through the router); the rest starts one price
step past the market, and a range the market beats entirely is just swapped. A pair with no pool at
that fee gets one created atfrom; an empty pool parked on the wrong side has its price moved
there (trading nothing). Setup is owner-paid and idempotent (pool rent, payout accounts, the
range's tick arrays),enablepins the Cookiebox keeper as cranker unless told otherwise, and
every refusal — a hooked mint with no publishedExtraAccountMetaList, a mint the CLMM won't pool,
anamountthe wallet doesn't hold — comes before anything is sent. Re-entrant for an external
signer: each transaction is anintermediatestep, a re-call re-prices against the market and
continues with a same-range position of yours, never selling or opening twice.start_zipwith
positionzips a CLMM position you already hold, or repairs apausedorder running on it
(tick arrays, payout accounts, NFT delegation) without stopping it.stop_ziptakes everything
back: closes the order, revokes the delegation, withdraws what is left with its fees and closes the
position; on afilledorder it closes the empty position the keeper left behind. Every order's
status predicts the keeper's next move from the program's own edge rule (filling,waiting,
fully-filled,pausedfor a lost delegation, a closed payout account, a missing tick array or
an unpublished hook meta list,empty,filled,stale); all prices are receive per sell. Also
importable from the library entry (cookie-mcp). -
Several post-graduation NFT mint requests at once. MomoSwap's NFT program now lets a wallet hold
up to 10 requests open per drop (anchor-launchpad-momoswap#117), sonft_drop_mintwithcount> 1
on a target-graduated drop places that many through/v1/nft/tx/request-mint-many, one transaction
each, each verified and simulated on its own before it is signed. -
list_nftcan list through MomoSwap. Withvia: "momoswap", a MomoSwap drop's item is listed
through MomoSwap (/v1/nft/tx/list): the same Auction Housesellplus MomoSwap's listing fee. The
build is held to our ownselland a fee of at most 1% (0.001 COOK minimum) paid to the NFT
program's fee wallet as the chain names it, then rebuilt from our own instructions. The result says
via: "momoswap"and the fee paid. Only on request: it is the direct listing with a fee on top, so
it is never taken as a fallback. -
get_nft_dropshows a creator's held-back share. After a target graduation the program holds
part of the creator's share back (anchor-launchpad-momoswap#115), releasing it as items mint and
forfeiting what is left after a deadline; the creator's view reports both ascreatorHeldBack. -
MomoSwap NFT launchpad. Eight tools for NFT drops on a COOK bonding curve:
get_nft_dropsand
get_nft_drop(reads),nft_drop_mint(curve mints, or a random request after a target
graduation),nft_drop_sell(sell back to the curve),nft_drop_redeem(floor or wind-down
refund),nft_drop_claim(creator proceeds),create_nft_drop(launch from a folder of art, with a
dryRunpreview) andreveal_nft_drop. Every API build is held to the program's vendored IDL before
signing, then simulated within a spend budget. -
Aera lending. Eight tools for the Aera COOK money market (market 0, "Aera Core"):
get_lending_marketsandget_lending_position(reads,.cooknames accepted),lend/
withdraw_lend(supply for aCOOK / abCOOK share tokens),deposit_collateral/
withdraw_collateral(bCOOK in and out of the obligation in one transaction) andborrow/repay
(COOK;repay "all"clears the loan).borrowandwithdraw_collateralrefuse before signing when
the loan-to-value limit would be exceeded or the health factor would fall underminHealthFactor
(default 1.1). Aera has no API or IDL, so every instruction is built locally and simulated before
signing. Also importable ascookie-mcp/lending. -
NFT drop upkeep.
nft_drop_settlepushes a drop's mint queue to your pending request, settling
each head whose randomness is ready and refunding each whose randomness expired (until now a stuck
request had no way out).nft_drop_graduategraduates a sold-out drop. Both are checked against the
IDL like every other NFT build. -
unwrap_cookcloses the wallet's wrapped-COOK account and returns the balance as native COOK.
This is where launchpad referral earnings and NFT sell-back proceeds collect.
Fixed
- Post-graduation NFT mints, settles and refunds work with MomoSwap's request slots. The deployed
NFT program (anchor-launchpad-momoswap#117) givesrequest_minta request slot that seeds the
request address, and takes the request by account onsettle_mint/refund_mint. The IDL is
refreshed to anchor main08c149c, so the slotted builds the API now returns are verified instead of
refused, andnft_drop_settlefinds this wallet's requests in all ten slots (and the old unslotted
address) and pushes the queue through every one. Error 6063 gets a hint. The temporary acceptance of
the creator's token account for a new drop's collection NFT is removed:/v1/nft/statusreports
collectionNftHolder: "program". - MomoSwap launch with a dev buy works again. MomoSwap moved both launchpad treasury fields to its
Squads vault, so the pinned create-pool lookup tableCawUNM…no longer matched the live Config and
every create + dev-buy build was refused. The pin is now the frozen table9vExLr84…, whose keys [3]
and [4] are the vault85gdK5…and its wCOOK account5jP8CW…. - NFT launches keep working through MomoSwap's program upgrade. The NFT launchpad IDL is refreshed
to anchor-launchpad-momoswap main (#108, #110–#116). A create may now pass its royalty partner,
read-only, aftercreate_collection's accounts, and for one release its collection NFT may sit in
either the creator's or the program's token account, so builds for the live and the upgraded binary
both pass. A build whose royalty partner or share differs from the one asked for is refused, as is a
buy whosemax_costdata is missing.create_nft_droprefuses a mint window over 30 days before
uploading anything, and errors 6055–6062 get hints. - A tight
maxCookPerItemno longer turns a mint request into "the price moved".nft_drop_mint
on a target-graduated drop now sends the API a slippage that fits the cap, since the request build
refuses a stated spend below its own worst case instead of clamping to it as a buy does.