|
| 1 | +--- |
| 2 | +'@networked-art/punks-sdk': minor |
| 3 | +--- |
| 4 | + |
| 5 | +`PunksAuction` and its escrow are deployed on mainnet; wire up their addresses |
| 6 | +and round out the auction client. |
| 7 | + |
| 8 | +- New `PUNKS_AUCTION_ADDRESS` and `PUNKS_AUCTION_ESCROW_ADDRESS` constants. |
| 9 | + `PunksAuctionClient` now defaults to the live address (so `address` is |
| 10 | + optional in config but always set) and adds the deployed reads |
| 11 | + `escrowAddress()`, `punksDataAddress()`, `activeLotFor({ seller, standard, |
| 12 | + punkId })`, and `balanceOf(account)`; `vaultFactoryAddress()` now reads |
| 13 | + `VAULTS`. |
| 14 | +- Combined create-and-execute flows `createLotAndAcceptOffer` and |
| 15 | + `createLotAndStartAuction` (mirrored on the SDK facade as `createLotAndAccept` |
| 16 | + / `createLotAndStartAuction`), plus `clearStaleLots(ids)` and `withdraw()` for |
| 17 | + ETH credited after a failed direct payout. |
| 18 | +- `adjustOfferAmount` now takes an absolute `newAmountWei` and reads the current |
| 19 | + offer on-chain to size `msg.value` (previously `{ amountWei, increase }`). |
| 20 | +- New `@networked-art/punks-sdk` `./auction` helpers mirroring the contract: |
| 21 | + the `PUNKS_AUCTION_*` constants (`MAX_LOT_ITEMS`, `MAX_INSTANT_ITEMS`, |
| 22 | + `MAX_OFFER_SLOTS`, `MAX_SLOT_IDS`, `TOTAL_WEIGHT_BPS`, `BID_INCREASE_BPS`, |
| 23 | + `BPS`, `DURATION_SECONDS`, `BIDDING_GRACE_SECONDS`), `minPunksAuctionBidWei`, |
| 24 | + `splitPunksAuctionLotWeights`, `punksAuctionOfferSlotMatchesPunk`, |
| 25 | + `punksAuctionLotMatchesOffer`, `isPunksFilterEmpty`, and the |
| 26 | + `PunksAuctionLotLike` / `PunksAuctionOfferLike` types. Lot and offer builders |
| 27 | + now enforce these bounds. |
| 28 | + |
| 29 | +Thanks [@yougogirldoteth](https://github.com/yougogirldoteth)! |
0 commit comments