@zoralabs/coins-sdk 0.2.10 → 0.3.0

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/actions/createCoin.d.ts +52 -21
  3. package/dist/actions/createCoin.d.ts.map +1 -1
  4. package/dist/api/create.d.ts +8 -0
  5. package/dist/api/create.d.ts.map +1 -0
  6. package/dist/api/index.d.ts +4 -0
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/pool-config.d.ts +5 -0
  9. package/dist/api/pool-config.d.ts.map +1 -0
  10. package/dist/api/queries.d.ts +9 -1
  11. package/dist/api/queries.d.ts.map +1 -1
  12. package/dist/client/sdk.gen.d.ts +307 -46
  13. package/dist/client/sdk.gen.d.ts.map +1 -1
  14. package/dist/client/types.gen.d.ts +874 -93
  15. package/dist/client/types.gen.d.ts.map +1 -1
  16. package/dist/index.cjs +419 -424
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +2 -3
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +413 -418
  21. package/dist/index.js.map +1 -1
  22. package/dist/uploader/metadata.d.ts.map +1 -1
  23. package/dist/uploader/types.d.ts +4 -1
  24. package/dist/uploader/types.d.ts.map +1 -1
  25. package/dist/utils/rethrowDecodedRevert.d.ts +3 -0
  26. package/dist/utils/rethrowDecodedRevert.d.ts.map +1 -0
  27. package/package.json +1 -1
  28. package/src/actions/createCoin.ts +154 -112
  29. package/src/api/create.ts +24 -0
  30. package/src/api/index.ts +8 -0
  31. package/src/api/pool-config.ts +17 -0
  32. package/src/api/queries.ts +36 -0
  33. package/src/client/sdk.gen.ts +98 -0
  34. package/src/client/types.gen.ts +898 -93
  35. package/src/index.ts +4 -6
  36. package/src/uploader/metadata.ts +4 -1
  37. package/src/uploader/types.ts +4 -1
  38. package/src/utils/rethrowDecodedRevert.ts +50 -0
  39. package/dist/actions/getOnchainCoinDetails.d.ts +0 -32
  40. package/dist/actions/getOnchainCoinDetails.d.ts.map +0 -1
  41. package/dist/utils/getPrepurchaseHook.d.ts +0 -16
  42. package/dist/utils/getPrepurchaseHook.d.ts.map +0 -1
  43. package/src/actions/getOnchainCoinDetails.ts +0 -68
  44. package/src/utils/getPrepurchaseHook.ts +0 -59
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @zoralabs/coins-sdk
2
2
 
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
+
57
+ ## 0.2.11
58
+
59
+ ### Patch Changes
60
+
61
+ - a60f441b: Adding new getCoinSwaps and getCoinHolders endpoints
62
+
3
63
  ## 0.2.10
4
64
 
5
65
  ### Patch Changes
@@ -1,39 +1,69 @@
1
1
  import { coinFactoryABI as zoraFactoryImplABI } from "@zoralabs/protocol-deployments";
2
- import { Address, TransactionReceipt, WalletClient, SimulateContractParameters, ContractEventArgsFromTopics, Account } from "viem";
2
+ import { Address, TransactionReceipt, WalletClient, ContractEventArgsFromTopics, Hex, Account } from "viem";
3
3
  import { GenericPublicClient } from "../utils/genericPublicClient";
4
- import { ValidMetadataURI } from "../uploader/types";
5
4
  export type CoinDeploymentLogArgs = ContractEventArgsFromTopics<typeof zoraFactoryImplABI, "CoinCreatedV4">;
6
- export declare enum DeployCurrency {
7
- ZORA = 1,
8
- ETH = 2
9
- }
10
- export declare enum InitialPurchaseCurrency {
11
- ETH = 1
5
+ declare const STARTING_MARKET_CAPS: {
6
+ readonly LOW: "LOW";
7
+ readonly HIGH: "HIGH";
8
+ };
9
+ export type StartingMarketCap = keyof typeof STARTING_MARKET_CAPS;
10
+ export interface RawUriMetadata {
11
+ type: "RAW_URI";
12
+ uri: string;
12
13
  }
14
+ declare const CONTENT_COIN_CURRENCIES: {
15
+ readonly CREATOR_COIN: "CREATOR_COIN";
16
+ readonly ZORA: "ZORA";
17
+ readonly ETH: "ETH";
18
+ readonly CREATOR_COIN_OR_ZORA: "CREATOR_COIN_OR_ZORA";
19
+ };
20
+ export type ContentCoinCurrency = keyof typeof CONTENT_COIN_CURRENCIES;
21
+ export declare const CreateConstants: {
22
+ readonly StartingMarketCaps: {
23
+ readonly LOW: "LOW";
24
+ readonly HIGH: "HIGH";
25
+ };
26
+ readonly ContentCoinCurrencies: {
27
+ readonly CREATOR_COIN: "CREATOR_COIN";
28
+ readonly ZORA: "ZORA";
29
+ readonly ETH: "ETH";
30
+ readonly CREATOR_COIN_OR_ZORA: "CREATOR_COIN_OR_ZORA";
31
+ };
32
+ };
13
33
  export type CreateCoinArgs = {
34
+ creator: string;
14
35
  name: string;
15
36
  symbol: string;
16
- uri: ValidMetadataURI;
37
+ metadata: RawUriMetadata;
38
+ currency: ContentCoinCurrency;
17
39
  chainId?: number;
18
- owners?: Address[];
19
- payoutRecipient: Address;
20
- platformReferrer?: Address;
21
- currency?: DeployCurrency;
22
- initialPurchase?: {
23
- currency: InitialPurchaseCurrency;
24
- amount: bigint;
25
- };
40
+ startingMarketCap?: StartingMarketCap;
41
+ platformReferrer?: string;
42
+ additionalOwners?: Address[];
43
+ payoutRecipientOverride?: Address;
44
+ skipMetadataValidation?: boolean;
26
45
  };
27
- export declare function createCoinCall({ name, symbol, uri, owners, payoutRecipient, currency, chainId, platformReferrer, initialPurchase, }: CreateCoinArgs): Promise<SimulateContractParameters<typeof zoraFactoryImplABI, "deploy">>;
46
+ type TransactionParameters = {
47
+ to: Address;
48
+ data: Hex;
49
+ value: bigint;
50
+ };
51
+ export declare function createCoinCall({ creator, name, symbol, metadata, currency, chainId, payoutRecipientOverride, additionalOwners, platformReferrer, skipMetadataValidation, }: CreateCoinArgs): Promise<TransactionParameters[]>;
28
52
  /**
29
53
  * Gets the deployed coin address from transaction receipt logs
30
54
  * @param receipt Transaction receipt containing the CoinCreated event
31
55
  * @returns The deployment information if found
32
56
  */
33
57
  export declare function getCoinCreateFromLogs(receipt: TransactionReceipt): CoinDeploymentLogArgs | undefined;
34
- export declare function createCoin(call: CreateCoinArgs, walletClient: WalletClient, publicClient: GenericPublicClient, options?: {
35
- gasMultiplier?: number;
36
- account?: Account | Address;
58
+ export declare function createCoin({ call, walletClient, publicClient, options, }: {
59
+ call: CreateCoinArgs;
60
+ walletClient: WalletClient;
61
+ publicClient: GenericPublicClient;
62
+ options?: {
63
+ gasMultiplier?: number;
64
+ account?: Account | Address;
65
+ skipValidateTransaction?: boolean;
66
+ };
37
67
  }): Promise<{
38
68
  hash: `0x${string}`;
39
69
  receipt: any;
@@ -59,4 +89,5 @@ export declare function createCoin(call: CreateCoinArgs, walletClient: WalletCli
59
89
  } | undefined;
60
90
  chain: import("viem").Chain;
61
91
  }>;
92
+ export {};
62
93
  //# sourceMappingURL=createCoin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createCoin.d.ts","sourceRoot":"","sources":["../../src/actions/createCoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAM3B,OAAO,EACR,MAAM,MAAM,CAAC;AAId,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AASrD,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAC7D,OAAO,kBAAkB,EACzB,eAAe,CAChB,CAAC;AAEF,oBAAY,cAAc;IACxB,IAAI,IAAI;IACR,GAAG,IAAI;CACR;AAED,oBAAY,uBAAuB;IACjC,GAAG,IAAI;CAER;AAED,MAAM,M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OAAO,CAAC,qBAAqB,EAAE,CAAC,CA2BnD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,kBAAkB,GAC1B,qBAAqB,GAAG,SAAS,CAOnC;AAGD,wBAAsB,UAAU,CAAC,EAC/B,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,OAAO,GACR,EAAE;IACD,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,mBAAmB,CAAC;IAClC,OAAO,CAAC,EAAE;QACR,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;QAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC,CAAC;CACH;;;;;;;;;;;;;;;;;;;;;;;;GAsFA"}
@@ -0,0 +1,8 @@
1
+ import { PostCreateContentData, PostCreateContentResponse } from "../client/types.gen";
2
+ import { RequestOptionsType } from "./query-types";
3
+ import { RequestResult } from "@hey-api/client-fetch";
4
+ type PostCreateContentQuery = PostCreateContentData["body"];
5
+ export type { PostCreateContentQuery, PostCreateContentResponse };
6
+ export type CoinCreateData = NonNullable<PostCreateContentResponse>;
7
+ export declare const postCreateContent: (body: PostCreateContentQuery, options?: RequestOptionsType<PostCreateContentData>) => Promise<RequestResult<PostCreateContentResponse>>;
8
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/api/create.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,KAAK,sBAAsB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC5D,YAAY,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,yBAAyB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,GAC5B,MAAM,sBAAsB,EAC5B,UAAU,kBAAkB,CAAC,qBAAqB,CAAC,KAClD,OAAO,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAMlD,CAAC"}
@@ -2,5 +2,9 @@ export * from "./explore";
2
2
  export type * from "./explore";
3
3
  export * from "./queries";
4
4
  export type * from "./queries";
5
+ export * from "./pool-config";
6
+ export type * from "./pool-config";
7
+ export * from "./create";
8
+ export type * from "./create";
5
9
  export { setApiKey } from "./api-key";
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAI/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAI9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { GetCreateContentPoolConfigData, GetCreateContentPoolConfigResponse } from "../client";
2
+ import { RequestOptionsType } from "./query-types";
3
+ import { RequestResult } from "@hey-api/client-fetch";
4
+ export declare const getCreateContentPoolConfig: (query: GetCreateContentPoolConfigData["query"], options?: RequestOptionsType<GetCreateContentPoolConfigData>) => Promise<RequestResult<GetCreateContentPoolConfigResponse>>;
5
+ //# sourceMappingURL=pool-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pool-config.d.ts","sourceRoot":"","sources":["../../src/api/pool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,eAAO,MAAM,0BAA0B,GACrC,OAAO,8BAA8B,CAAC,OAAO,CAAC,EAC9C,UAAU,kBAAkB,CAAC,8BAA8B,CAAC,KAC3D,OAAO,CAAC,aAAa,CAAC,kCAAkC,CAAC,CAK3D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { GetCoinCommentsData, GetCoinCommentsResponse, GetCoinData, GetCoinResponse, GetCoinsData, GetCoinsResponse, GetProfileBalancesData, GetProfileBalancesResponse, GetProfileCoinsData, GetProfileCoinsResponse, GetProfileData, GetProfileResponse } from "../client/types.gen";
1
+ import { GetCoinCommentsData, GetCoinCommentsResponse, GetCoinData, GetCoinHoldersData, GetCoinHoldersResponse, GetCoinResponse, GetCoinsData, GetCoinsResponse, GetCoinSwapsData, GetCoinSwapsResponse, GetProfileBalancesData, GetProfileBalancesResponse, GetProfileCoinsData, GetProfileCoinsResponse, GetProfileData, GetProfileResponse } from "../client/types.gen";
2
2
  import { RequestOptionsType } from "./query-types";
3
3
  import { RequestResult } from "@hey-api/client-fetch";
4
4
  export type { RequestResult };
@@ -11,6 +11,14 @@ type GetCoinsQuery = GetCoinsData["query"];
11
11
  export type { GetCoinsQuery, GetCoinsData };
12
12
  export type { GetCoinsResponse } from "../client/types.gen";
13
13
  export declare const getCoins: (query: GetCoinsQuery, options?: RequestOptionsType<GetCoinsData>) => Promise<RequestResult<GetCoinsResponse>>;
14
+ type GetCoinHoldersQuery = GetCoinHoldersData["query"];
15
+ export type { GetCoinHoldersQuery, GetCoinHoldersData };
16
+ export type { GetCoinHoldersResponse } from "../client/types.gen";
17
+ export declare const getCoinHolders: (query: GetCoinHoldersQuery, options?: RequestOptionsType<GetCoinHoldersData>) => Promise<RequestResult<GetCoinHoldersResponse>>;
18
+ type GetCoinSwapsQuery = GetCoinSwapsData["query"];
19
+ export type { GetCoinSwapsQuery, GetCoinSwapsData };
20
+ export type { GetCoinSwapsResponse } from "../client/types.gen";
21
+ export declare const getCoinSwaps: (query: GetCoinSwapsQuery, options?: RequestOptionsType<GetCoinSwapsData>) => Promise<RequestResult<GetCoinSwapsResponse>>;
14
22
  type GetCoinCommentsQuery = GetCoinCommentsData["query"];
15
23
  export type { GetCoinCommentsQuery, GetCoinCommentsData };
16
24
  export type { GetCoinCommentsResponse } from "../client/types.gen";
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/api/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,KAAK,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC;AAEnE,eAAO,MAAM,OAAO,GAClB,OAAO,YAAY,EACnB,UAAU,kBAAkB,CAAC,WAAW,CAAC,K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