Skip to content

Commit 7a063d7

Browse files
Version Packages (#1357)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ee6ee37 commit 7a063d7

File tree

11 files changed

+131
-59
lines changed

11 files changed

+131
-59
lines changed

.changeset/afraid-crabs-bow.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/friendly-cups-clean.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/pages/changelogs/coins-sdk.mdx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,60 @@
11
# Coins SDK Changelog
22

33

4+
## 0.3.0
5+
6+
### Minor Changes
7+
8+
- [4819056e](https://github.com/ourzora/zora-protocol/commit/4819056e): Creator coins can only be created via the Zora app. This SDK allows you to create content coins paired with existing creator coins.
9+
10+
Create content flow uses server-generated calldata via the SDK API.
11+
12+
- **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.
13+
- **Direct transaction sending**: `createCoin` constructs and sends the transaction using `walletClient.sendTransaction` with manual gas estimation and an option to skip validation.
14+
- **Sanity checks**: Ensures the call targets the expected factory for the specified `chainId` and that no ETH value is sent with this SDK version.
15+
- **Smart accounts support**: Compatible with smart accounts thanks to server-generated calldata.
16+
17+
API changes (breaking changes):
18+
19+
- **Args shape updated**
20+
- Removed: `initialPurchase`, and `currency: DeployCurrency`.
21+
- Renamed: `owners` to `additionalOwners` - adds additional owners to the coin, `payoutRecipient` to `payoutRecipientOverride` overrides the creator as the payout recipient.
22+
- Added: `creator: string`, `metadata: { type: 'RAW_URI'; uri: string }`, `currency: ContentCoinCurrency`, `chainId?: number`, `startingMarketCap?: StartingMarketCap`, `platformReferrer?: string`, `skipMetadataValidation?: boolean`.
23+
- 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`).
24+
- **Removed local pool/hook logic**: Internal pool config selection and prepurchase hook generation are removed and handled by the API.
25+
- **Options updated**: `createCoin({ ..., options })` adds `skipValidateTransaction?: boolean` (skips a dry-run call and uses a fixed gas fallback) and continues to accept `account`.
26+
27+
Migration example
28+
Before (main):
29+
30+
```ts
31+
await createCoin(
32+
{ name, symbol, uri, payoutRecipient, chainId, currency },
33+
walletClient,
34+
publicClient,
35+
);
36+
```
37+
38+
After (new):
39+
40+
```ts
41+
await createCoin({
42+
call: {
43+
creator,
44+
name,
45+
symbol,
46+
metadata: { type: "RAW_URI", uri },
47+
currency: CreateConstants.ContentCoinCurrencies.CREATOR_COIN,
48+
chainId,
49+
startingMarketCap: CreateConstants.StartingMarketCaps.LOW,
50+
platformReferrer,
51+
},
52+
walletClient,
53+
publicClient,
54+
options: { skipValidateTransaction: false },
55+
});
56+
```
57+
458
## 0.2.11
559

660
### Patch Changes

docs/pages/changelogs/coins.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Coins Changelog
22

33

4+
## 2.1.2
5+
6+
### Patch Changes
7+
8+
- [8b85ab94](https://github.com/ourzora/zora-protocol/commit/8b85ab94): Removed some unused constants
9+
410
## 2.1.1
511

612
### Patch Changes

nft-docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# nft-docs
22

3+
## 0.0.29
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [4819056e]
8+
- @zoralabs/coins-sdk@0.3.0
9+
310
## 0.0.28
411

512
### Patch Changes

nft-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nft-docs",
3-
"version": "0.0.28",
3+
"version": "0.0.29",
44
"type": "module",
55
"private": true,
66
"scripts": {

packages/coins-sdk/CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# @zoralabs/coins-sdk
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- 4819056e: Creator coins can only be created via the Zora app. This SDK allows you to create content coins paired with existing creator coins.
8+
9+
Create content flow uses server-generated calldata via the SDK API.
10+
11+
- **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.
12+
- **Direct transaction sending**: `createCoin` constructs and sends the transaction using `walletClient.sendTransaction` with manual gas estimation and an option to skip validation.
13+
- **Sanity checks**: Ensures the call targets the expected factory for the specified `chainId` and that no ETH value is sent with this SDK version.
14+
- **Smart accounts support**: Compatible with smart accounts thanks to server-generated calldata.
15+
16+
API changes (breaking changes):
17+
18+
- **Args shape updated**
19+
- Removed: `initialPurchase`, and `currency: DeployCurrency`.
20+
- Renamed: `owners` to `additionalOwners` - adds additional owners to the coin, `payoutRecipient` to `payoutRecipientOverride` overrides the creator as the payout recipient.
21+
- Added: `creator: string`, `metadata: { type: 'RAW_URI'; uri: string }`, `currency: ContentCoinCurrency`, `chainId?: number`, `startingMarketCap?: StartingMarketCap`, `platformReferrer?: string`, `skipMetadataValidation?: boolean`.
22+
- 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`).
23+
- **Removed local pool/hook logic**: Internal pool config selection and prepurchase hook generation are removed and handled by the API.
24+
- **Options updated**: `createCoin({ ..., options })` adds `skipValidateTransaction?: boolean` (skips a dry-run call and uses a fixed gas fallback) and continues to accept `account`.
25+
26+
Migration example
27+
Before (main):
28+
29+
```ts
30+
await createCoin(
31+
{ name, symbol, uri, payoutRecipient, chainId, currency },
32+
walletClient,
33+
publicClient,
34+
);
35+
```
36+
37+
After (new):
38+
39+
```ts
40+
await createCoin({
41+
call: {
42+
creator,
43+
name,
44+
symbol,
45+
metadata: { type: "RAW_URI", uri },
46+
currency: CreateConstants.ContentCoinCurrencies.CREATOR_COIN,
47+
chainId,
48+
startingMarketCap: CreateConstants.StartingMarketCaps.LOW,
49+
platformReferrer,
50+
},
51+
walletClient,
52+
publicClient,
53+
options: { skipValidateTransaction: false },
54+
});
55+
```
56+
357
## 0.2.11
458

559
### Patch Changes

packages/coins-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zoralabs/coins-sdk",
3-
"version": "0.2.11",
3+
"version": "0.3.0",
44
"repository": "https://github.com/ourzora/zora-protocol",
55
"license": "MIT",
66
"type": "module",

packages/coins/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @zoralabs/coins
22

3+
## 2.1.2
4+
5+
### Patch Changes
6+
7+
- 8b85ab94: Removed some unused constants
8+
39
## 2.1.1
410

511
### Patch Changes

packages/coins/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zoralabs/coins",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

0 commit comments

Comments
 (0)