Skip to content

Commit ee6ee37

Browse files
authored
Fix changeset formatting (#1361)
1 parent 4819056 commit ee6ee37

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.changeset/friendly-cups-clean.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"@zoralabs/coins-sdk": minor
33
---
44

5-
Create coin flow now uses server-generated calldata via the SDK API. This enables smart account compatibility and future extensibility while simplifying client-side logic.
5+
Creator coins can only be created via the Zora app. This SDK allows you to create content coins paired with existing creator coins.
6+
7+
Create content flow uses server-generated calldata via the SDK API.
68

79
- **Server-generated calldata**: `createCoinCall` now requests calldata from the SDK API and returns an array of transaction parameters `{ to, data, value }[]` instead of a Viem `SimulateContractParameters` object.
810
- **Direct transaction sending**: `createCoin` constructs and sends the transaction using `walletClient.sendTransaction` with manual gas estimation and an option to skip validation.
@@ -12,11 +14,11 @@ Create coin flow now uses server-generated calldata via the SDK API. This enable
1214
API changes (breaking changes):
1315
- **Args shape updated**
1416
- Removed: `initialPurchase`, and `currency: DeployCurrency`.
15-
- Renamed: `owners` to `additionalOwners` - adds additional owners to the coin, `payoutRecipient` to `overridePayoutReceipient` overrides the creator as the payout recipient.
16-
- Added: `creator: string`, `metadata: { type: 'RAW_URI'; uri: string }`, `currency: CoinCurrency`, `chainId: number`, `startingMarketCap: StartingMarketCap`, `skipMetadataValidation?: boolean`.
17-
- New enums: `CONTENT_COIN_CURRENCIES` (`CREATOR_COIN`, `ETH`, `ZORA`) and `StartingMarketCap` (`LOW`, `HIGH`).
17+
- Renamed: `owners` to `additionalOwners` - adds additional owners to the coin, `payoutRecipient` to `payoutRecipientOverride` overrides the creator as the payout recipient.
18+
- Added: `creator: string`, `metadata: { type: 'RAW_URI'; uri: string }`, `currency: ContentCoinCurrency`, `chainId?: number`, `startingMarketCap?: StartingMarketCap`, `platformReferrer?: string`, `skipMetadataValidation?: boolean`.
19+
- New types/constants: `ContentCoinCurrency` with runtime constants `CreateConstants.ContentCoinCurrencies` (`CREATOR_COIN`, `ETH`, `ZORA`, `CREATOR_COIN_OR_ZORA`) and `StartingMarketCap` with runtime constants `CreateConstants.StartingMarketCaps` (`LOW`, `HIGH`).
1820
- **Removed local pool/hook logic**: Internal pool config selection and prepurchase hook generation are removed and handled by the API.
19-
- **Options updated**: `createCoin(..., options)` adds `skipValidateTransaction?: boolean` (skips a dry-run call and uses a fixed gas fallback) and continues to accept `account`.
21+
- **Options updated**: `createCoin({ ..., options })` adds `skipValidateTransaction?: boolean` (skips a dry-run call and uses a fixed gas fallback) and continues to accept `account`.
2022

2123
Migration example
2224
Before (main):
@@ -30,19 +32,19 @@ await createCoin(
3032

3133
After (new):
3234
```ts
33-
await createCoin(
34-
{
35+
await createCoin({
36+
call: {
3537
creator,
3638
name,
3739
symbol,
3840
metadata: { type: 'RAW_URI', uri },
39-
currency: CoinCurrency.CREATOR_COIN,
41+
currency: CreateConstants.ContentCoinCurrencies.CREATOR_COIN,
4042
chainId,
41-
startingMarketCap: StartingMarketCap.LOW,
42-
platformReferrerAddress,
43+
startingMarketCap: CreateConstants.StartingMarketCaps.LOW,
44+
platformReferrer,
4345
},
4446
walletClient,
4547
publicClient,
46-
{ skipValidateTransaction: false },
47-
);
48+
options: { skipValidateTransaction: false },
49+
});
4850
```

0 commit comments

Comments
 (0)