@story-protocol/core-sdk 1.3.0-beta.2 → 1.3.0-rc.1

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 (58) hide show
  1. package/dist/declarations/src/abi/generated.d.ts +4327 -3815
  2. package/dist/declarations/src/abi/generated.d.ts.map +1 -1
  3. package/dist/declarations/src/client.d.ts +1 -0
  4. package/dist/declarations/src/client.d.ts.map +1 -1
  5. package/dist/declarations/src/index.d.ts +10 -5
  6. package/dist/declarations/src/index.d.ts.map +1 -1
  7. package/dist/declarations/src/resources/dispute.d.ts +33 -20
  8. package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
  9. package/dist/declarations/src/resources/group.d.ts +11 -100
  10. package/dist/declarations/src/resources/group.d.ts.map +1 -1
  11. package/dist/declarations/src/resources/ipAccount.d.ts +9 -3
  12. package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
  13. package/dist/declarations/src/resources/ipAsset.d.ts +36 -364
  14. package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
  15. package/dist/declarations/src/resources/license.d.ts +4 -21
  16. package/dist/declarations/src/resources/license.d.ts.map +1 -1
  17. package/dist/declarations/src/resources/nftClient.d.ts +9 -1
  18. package/dist/declarations/src/resources/nftClient.d.ts.map +1 -1
  19. package/dist/declarations/src/resources/permission.d.ts +2 -2
  20. package/dist/declarations/src/resources/permission.d.ts.map +1 -1
  21. package/dist/declarations/src/resources/royalty.d.ts +22 -13
  22. package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
  23. package/dist/declarations/src/resources/wip.d.ts +15 -9
  24. package/dist/declarations/src/resources/wip.d.ts.map +1 -1
  25. package/dist/declarations/src/types/common.d.ts +20 -2
  26. package/dist/declarations/src/types/common.d.ts.map +1 -1
  27. package/dist/declarations/src/types/config.d.ts +2 -1
  28. package/dist/declarations/src/types/config.d.ts.map +1 -1
  29. package/dist/declarations/src/types/options.d.ts +67 -1
  30. package/dist/declarations/src/types/options.d.ts.map +1 -1
  31. package/dist/declarations/src/types/resources/dispute.d.ts +56 -4
  32. package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
  33. package/dist/declarations/src/types/resources/group.d.ts +30 -5
  34. package/dist/declarations/src/types/resources/group.d.ts.map +1 -1
  35. package/dist/declarations/src/types/resources/ipAccount.d.ts +10 -2
  36. package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
  37. package/dist/declarations/src/types/resources/ipAsset.d.ts +118 -117
  38. package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
  39. package/dist/declarations/src/types/resources/ipMetadata.d.ts +274 -0
  40. package/dist/declarations/src/types/resources/ipMetadata.d.ts.map +1 -0
  41. package/dist/declarations/src/types/resources/license.d.ts +6 -8
  42. package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
  43. package/dist/declarations/src/types/resources/royalty.d.ts +40 -119
  44. package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
  45. package/dist/declarations/src/types/resources/wip.d.ts +7 -0
  46. package/dist/declarations/src/types/resources/wip.d.ts.map +1 -1
  47. package/dist/declarations/src/utils/chain.d.ts +33 -1
  48. package/dist/declarations/src/utils/chain.d.ts.map +1 -1
  49. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts +4 -0
  50. package/dist/declarations/src/utils/getIpMetadataForWorkflow.d.ts.map +1 -1
  51. package/dist/story-protocol-core-sdk.cjs.dev.js +2932 -2467
  52. package/dist/story-protocol-core-sdk.cjs.prod.js +2932 -2467
  53. package/dist/story-protocol-core-sdk.esm.js +2928 -2470
  54. package/package.json +1 -1
  55. package/dist/declarations/src/types/utils/txOptions.d.ts +0 -13
  56. package/dist/declarations/src/types/utils/txOptions.d.ts.map +0 -1
  57. package/dist/declarations/src/types/utils/wip.d.ts +0 -87
  58. package/dist/declarations/src/types/utils/wip.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"../../../../src/resources","sources":["license.ts"],"names":[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,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IAmDtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IAmGrC;;;;OAIG;IACU,eAAe,CAC1B,sBAAsB,EAAE,cAAc,GACrC,OAAO,CAAC,wCAAwC,CAAC;IAUpD;;;;;;;;;;OAUG;IACU,wBAAwB,CACnC,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,+CAA+C,CAAC;IAkC3D;;OAEG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;YAsDxB,iBAAiB;CAIhC"}
@@ -1,4 +1,4 @@
1
- import { PublicClient } from "viem";
1
+ import { Address, PublicClient } from "viem";
2
2
  import { RegistrationWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
3
3
  import { CreateNFTCollectionRequest, CreateNFTCollectionResponse } from "../types/resources/nftClient.js";
4
4
  export declare class NftClient {
@@ -25,5 +25,13 @@ export declare class NftClient {
25
25
  * @emits CollectionCreated (spgNftContract);
26
26
  */
27
27
  createNFTCollection(request: CreateNFTCollectionRequest): Promise<CreateNFTCollectionResponse>;
28
+ /**
29
+ * Returns the current mint token of the collection.
30
+ */
31
+ getMintFeeToken(spgNftContract: Address): Promise<Address>;
32
+ /**
33
+ * Returns the current mint fee of the collection.
34
+ */
35
+ getMintFee(spgNftContract: Address): Promise<bigint>;
28
36
  }
29
37
  //# sourceMappingURL=nftClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEvE,OAAO,EACL,2BAA2B,EAE3B,kBAAkB,EACnB,4BAAyB;AAC1B,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,2BAA2B,EAAE,2BAA2B,CAAC;IAChE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;;;;;;OAiBG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;CAqDxC"}
1
+ {"version":3,"file":"nftClient.d.ts","sourceRoot":"../../../../src/resources","sources":["nftClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAqC,MAAM,MAAM,CAAC;AAEhF,OAAO,EACL,2BAA2B,EAE3B,kBAAkB,EAEnB,4BAAyB;AAC1B,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC5B,wCAAqC;AAItC,qBAAa,SAAS;IACb,2BAA2B,EAAE,2BAA2B,CAAC;IAEhE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;;;;;;;;;;;;;;;OAiBG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;IAqDvC;;OAEG;IACU,eAAe,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAQvE;;OAEG;IACU,UAAU,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAOlE"}
@@ -1,7 +1,7 @@
1
1
  import { PublicClient } from "viem";
2
2
  import { CreateBatchPermissionSignatureRequest, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
3
3
  import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, SimpleWalletClient } from "../abi/generated.js";
4
- import { SupportedChainIds } from "../types/config.js";
4
+ import { ChainIds } from "../types/config.js";
5
5
  export declare class PermissionClient {
6
6
  accessControllerClient: AccessControllerClient;
7
7
  ipAssetRegistryClient: IpAssetRegistryClient;
@@ -9,7 +9,7 @@ export declare class PermissionClient {
9
9
  private readonly wallet;
10
10
  private readonly rpcClient;
11
11
  private readonly chainId;
12
- constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: SupportedChainIds);
12
+ constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: ChainIds);
13
13
  /**
14
14
  * Sets the permission for a specific function call
15
15
  * Each policy is represented as a mapping from an IP account address to a signer address to a recipient
@@ -1 +1 @@
1
- {"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiE,MAAM,MAAM,CAAC;AAGnG,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACvB,yCAAsC;AACvC,OAAO,EAEL,sBAAsB,EACtB,wBAAwB,EAExB,qBAAqB,EACrB,kBAAkB,EACnB,4BAAyB;AAE1B,OAAO,EAAE,iBAAiB,EAAE,2BAAwB;AAIpD,qBAAa,gBAAgB;IACpB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,wBAAwB,EAAE,wBAAwB,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB;IAS3F;;;;;;;;;;;;;;;;;;;OAmBG;IACU,aAAa,C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Aa,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA8B3F;;;;;;;;;;;;OAYG;IACU,4BAA4B,CACvC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,sBAAsB,CAAC;IA8DlC;;;;;;;;;OASG;IACU,iBAAiB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,CAAC;IA0BlC;;;;;;;;;;;;;OAaG;IACU,mBAAmB,CAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,sBAAsB,CAAC;IAiClC;;;;;;;;;;;;;;OAcG;IACU,8BAA8B,CACzC,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;YA0DpB,iBAAiB;CAQhC"}
@@ -1,29 +1,33 @@
1
1
  import { Address, Hex, PublicClient } from "viem";
2
- import { ClaimableRevenueRequest, ClaimableRevenueResponse, ClaimAllRevenueRequest, ClaimAllRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse } from "../types/resources/royalty.js";
3
- import { Erc20TokenClient, IpAssetRegistryClient, IpRoyaltyVaultImplEventClient, IpRoyaltyVaultImplReadOnlyClient, Multicall3Client, RoyaltyModuleClient, SimpleWalletClient } from "../abi/generated.js";
4
- import { IPAccountClient } from "./ipAccount.js";
2
+ import { BatchClaimAllRevenueRequest, BatchClaimAllRevenueResponse, ClaimableRevenueRequest, ClaimableRevenueResponse, ClaimAllRevenueRequest, ClaimAllRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse } from "../types/resources/royalty.js";
3
+ import { IpAssetRegistryClient, IpRoyaltyVaultImplEventClient, IpRoyaltyVaultImplReadOnlyClient, Multicall3Client, RoyaltyModuleClient, RoyaltyWorkflowsClient, SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
5
4
  export declare class RoyaltyClient {
6
5
  royaltyModuleClient: RoyaltyModuleClient;
7
6
  ipAssetRegistryClient: IpAssetRegistryClient;
8
- ipAccountClient: IPAccountClient;
9
7
  ipRoyaltyVaultImplReadOnlyClient: IpRoyaltyVaultImplReadOnlyClient;
10
8
  ipRoyaltyVaultImplEventClient: IpRoyaltyVaultImplEventClient;
9
+ royaltyWorkflowsClient: RoyaltyWorkflowsClient;
11
10
  multicall3Client: Multicall3Client;
12
- wipClient: Erc20TokenClient;
11
+ wrappedIpClient: WrappedIpClient;
13
12
  private readonly rpcClient;
14
13
  private readonly wallet;
15
14
  private readonly walletAddress;
16
15
  constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
16
+ /**
17
+ * Claims all revenue from the child IPs of an ancestor IP, then transfer.
18
+ * all claimed tokens to the wallet if the wallet owns the IP or is the claimer.
19
+ * If claimed token is WIP, it will also be converted back to IP.
20
+ */
17
21
  claimAllRevenue(req: ClaimAllRevenueRequest): Promise<ClaimAllRevenueResponse>;
22
+ /**
23
+ * Automatically batch claims all revenue from the child IPs of multiple ancestor IPs.
24
+ * if multicall is disabled, it will call @link{claimAllRevenue} for each ancestor IP.
25
+ * Then transfer all claimed tokens to the wallet if the wallet owns the IP or is the claimer.
26
+ * If claimed token is WIP, it will also be converted back to IP.
27
+ */
28
+ batchClaimAllRevenue(request: BatchClaimAllRevenueRequest): Promise<BatchClaimAllRevenueResponse>;
18
29
  /**
19
30
  * Allows the function caller to pay royalties to the receiver IP asset on behalf of the payer IP asset.
20
- * @param request - The request object that contains all data needed to pay royalty on behalf.
21
- * @param request.receiverIpId The ipId that receives the royalties.
22
- * @param request.payerIpId The ID of the IP asset that pays the royalties.
23
- * @param request.token The token to use to pay the royalties.
24
- * @param request.amount The amount to pay.
25
- * @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
26
- * @returns A Promise that resolves to an object containing the transaction hash.
27
31
  */
28
32
  payRoyaltyOnBehalf(request: PayRoyaltyOnBehalfRequest): Promise<PayRoyaltyOnBehalfResponse>;
29
33
  /**
@@ -41,7 +45,12 @@ export declare class RoyaltyClient {
41
45
  * @returns A Promise that resolves to an object containing the royalty vault address.
42
46
  */
43
47
  getRoyaltyVaultAddress(royaltyVaultIpId: Hex): Promise<Address>;
44
- private getClaimedTokensFromReceipt;
45
48
  private transferClaimedTokensFromIpToWallet;
49
+ private getClaimerInfo;
50
+ /**
51
+ * Unwraps WIP tokens back to their underlying IP tokens. Only accepts a single WIP token entry
52
+ * in the claimed tokens array. Throws an error if multiple WIP tokens are found.
53
+ */
54
+ private unwrapWipTokens;
46
55
  }
47
56
  //# sourceMappingURL=royalty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAIP,GAAG,EACH,YAAY,EAGb,MAAM,MAAM,CAAC;AAGd,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EAEvB,yBAAyB,EACzB,0BAA0B,EAE3B,sCAAmC;AACpC,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAErB,6BAA6B,EAC7B,gCAAgC,EAChC,gBAAgB,EAChB,mBAAmB,EAGnB,kBAAkB,EACnB,4BAAyB;AAC1B,OAAO,EAAE,eAAe,EAAE,uBAAoB;AAO9C,qBAAa,aAAa;IACjB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,eAAe,EAAE,eAAe,CAAC;IACjC,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,6BAA6B,EAAE,6BAA6B,CAAC;IAC7D,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,gBAAgB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAU;gBAE5B,SAAS,EAAE,YAAY,EAAE,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,CAAC,aAAa,CAAU;gBAE5B,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAY/D;;;;OAIG;IACU,eAAe,CAAC,GAAG,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAmD3F;;;;;OAKG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;IAuGxC;;OAEG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;IA6DtC;;;;;;;OAOG;IACU,gBAAgB,CAC3B,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,wBAAwB,CAAC;IAepC;;;;OAIG;IACU,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;YAU9D,mCAAmC;YA4BnC,cAAc;IAY5B;;;OAGG;YACW,eAAe;CAe9B"}
@@ -1,8 +1,8 @@
1
- import { Address, Hex, PublicClient } from "viem";
2
- import { Erc20TokenClient, SimpleWalletClient } from "../abi/generated.js";
3
- import { ApproveRequest, DepositRequest, WithdrawRequest } from "../types/resources/wip.js";
1
+ import { Address, PublicClient } from "viem";
2
+ import { SimpleWalletClient, WrappedIpClient } from "../abi/generated.js";
3
+ import { ApproveRequest, DepositRequest, TransferFromRequest, TransferRequest, WithdrawRequest } from "../types/resources/wip.js";
4
4
  export declare class WipClient {
5
- wipClient: Erc20TokenClient;
5
+ wrappedIpClient: WrappedIpClient;
6
6
  private readonly rpcClient;
7
7
  private readonly wallet;
8
8
  constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
@@ -10,20 +10,26 @@ export declare class WipClient {
10
10
  * Wraps the selected amount of IP to WIP.
11
11
  * The WIP will be deposited to the wallet that transferred the IP.
12
12
  */
13
- deposit({ amount, txOptions }: DepositRequest): Promise<import("../types/utils/txOptions.js").HandleTxOptionsResponse>;
13
+ deposit({ amount, txOptions }: DepositRequest): Promise<import("../index.js").TransactionResponse>;
14
14
  /**
15
15
  * Unwraps the selected amount of WIP to IP.
16
16
  */
17
- withdraw({ amount, txOptions }: WithdrawRequest): Promise<import("../types/utils/txOptions.js").HandleTxOptionsResponse>;
17
+ withdraw({ amount, txOptions }: WithdrawRequest): Promise<import("../index.js").TransactionResponse>;
18
18
  /**
19
19
  * Approve a spender to use the wallet's WIP balance.
20
20
  */
21
- approve(req: ApproveRequest): Promise<{
22
- txHash: Hex;
23
- }>;
21
+ approve(req: ApproveRequest): Promise<import("../index.js").TransactionResponse>;
24
22
  /**
25
23
  * Returns the balance of WIP for an address.
26
24
  */
27
25
  balanceOf(addr: Address): Promise<bigint>;
26
+ /**
27
+ * Transfers `amount` of WIP to a recipient `to`.
28
+ */
29
+ transfer(request: TransferRequest): Promise<import("../index.js").TransactionResponse>;
30
+ /**
31
+ * Transfers `amount` of WIP from `from` to a recipient `to`.
32
+ */
33
+ transferFrom(request: TransferFromRequest): Promise<import("../index.js").TransactionResponse>;
28
34
  }
29
35
  //# sourceMappingURL=wip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wip.d.ts","sourceRoot":"../../../../src/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAA2B,MAAM,MAAM,CAAC;AAG3E,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAiB,4BAAyB;AAGvF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,kCAA+B;AAGzF,qBAAa,SAAS;IACb,SAAS,EAAE,gBAAgB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;OAGG;IACU,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc;IAuB1D;;OAEG;IACU,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe;IAiB5D;;OAEG;IACU,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,GAAG,CAAA;KAAE,CAAC;IAqBnE;;OAEG;IACU,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;CAKvD"}
1
+ {"version":3,"file":"wip.d.ts","sourceRoot":"../../../../src/resources","sources":["wip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAA2B,MAAM,MAAM,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAgB,4BAAyB;AAGrF,OAAO,EACL,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EAChB,kCAA+B;AAGhC,qBAAa,SAAS;IACb,eAAe,EAAE,eAAe,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAEhC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAM/D;;;OAGG;IACU,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,cAAc;IAuB1D;;OAEG;IACU,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe;IAiB5D;;OAEG;IACU,OAAO,CAAC,GAAG,EAAE,cAAc;IAqBxC;;OAEG;IACU,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAMtD;;OAEG;IACU,QAAQ,CAAC,OAAO,EAAE,eAAe;IAoB9C;;OAEG;IACU,YAAY,CAAC,OAAO,EAAE,mBAAmB;CAoBvD"}
@@ -6,26 +6,44 @@ export type TypedData = {
6
6
  data: unknown[];
7
7
  };
8
8
  export type IpMetadataAndTxOptions = WithTxOptions & {
9
+ /** The desired metadata for the newly minted NFT and newly registered IP. */
9
10
  ipMetadata?: Partial<IpMetadataForWorkflow>;
10
11
  };
11
12
  export type LicensingConfig = {
13
+ /** Whether the configuration is set or not */
12
14
  isSet: boolean;
15
+ /** The minting fee to be paid when minting license tokens. */
13
16
  mintingFee: bigint | string | number;
17
+ /** The hook contract address for the licensing module, or zero address if none. */
14
18
  licensingHook: Address;
19
+ /** The data to be used by the licensing hook. */
15
20
  hookData: Hex;
21
+ /** The commercial revenue share percentage (from 0 to 100%, represented as 100_000_000). */
16
22
  commercialRevShare: number | string;
23
+ /** Whether the licensing is disabled or not. */
17
24
  disabled: boolean;
25
+ /** The minimum percentage of the group’s reward share (from 0 to 100%, represented as 100_000_000) that can be allocated to the IP when it is added to the group. */
18
26
  expectMinimumGroupRewardShare: number | string;
27
+ /** The address of the expected group reward pool. The IP can only be added to a group with this specified reward pool address, or zero address if the IP does not want to be added to any group. */
19
28
  expectGroupRewardPool: Address;
20
29
  };
21
- export type InnerLicensingConfig = {
30
+ export type ValidatedLicensingConfig = LicensingConfig & {
22
31
  mintingFee: bigint;
23
32
  commercialRevShare: number;
24
33
  expectMinimumGroupRewardShare: number;
25
- } & LicensingConfig;
34
+ };
26
35
  /**
27
36
  * Input for token amount, can be bigint or number.
28
37
  * Will be converted to bigint for contract calls.
29
38
  */
30
39
  export type TokenAmountInput = bigint | number;
40
+ /**
41
+ * The type of revenue share.
42
+ * It is used to determine the type of revenue share to be used in the revenue share calculation and throw error when the revenue share is not valid.
43
+ */
44
+ export declare enum RevShareType {
45
+ COMMERCIAL_REVENUE_SHARE = "CommercialRevShare",
46
+ MAX_REVENUE_SHARE = "MaxRevenueShare",
47
+ MAX_ALLOWED_REWARD_SHARE = "MaxAllowedRewardShare"
48
+ }
31
49
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MA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AG,aAAa,GAAG;IACnD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC7C,CAAC;AACF,MAAM,MAAM,eAAe,GAAG;IAC5B,8CAA8C;IAC9C,KAAK,EAAE,OAAO,CAAC;IACf,8DAA8D;IAC9D,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACrC,mFAAmF;IACnF,aAAa,EAAE,OAAO,CAAC;IACvB,iDAAiD;IACjD,QAAQ,EAAE,GAAG,CAAC;IACd,4FAA4F;IAC5F,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,qKAAqK;IACrK,6BAA6B,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/C,oMAAoM;IACpM,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,eAAe,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6BAA6B,EAAE,MAAM,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/C;;;GAGG;AACH,oBAAY,YAAY;IACtB,wBAAwB,uBAAuB;IAC/C,iBAAiB,oBAAoB;IACrC,wBAAwB,0BAA0B;CACnD"}
@@ -5,7 +5,7 @@ import { SimpleWalletClient } from "../abi/generated.js";
5
5
  *
6
6
  * @public
7
7
  */
8
- export type SupportedChainIds = "1315" | "aeneid";
8
+ export type SupportedChainIds = "aeneid" | "mainnet" | ChainIds;
9
9
  /**
10
10
  * Configuration for the SDK Client.
11
11
  *
@@ -30,4 +30,5 @@ export type StoryConfig = {
30
30
  export type ContractAddress = {
31
31
  [key in SupportedChainIds]: Record<string, string>;
32
32
  };
33
+ export type ChainIds = "1315" | "1514";
33
34
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,4BAAyB;AAEtD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,4BAAyB;AAEtD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC;AAErF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -1,9 +1,75 @@
1
- import { WaitForTransactionReceiptParameters } from "viem";
1
+ import { Hex, PublicClient, TransactionReceipt, WaitForTransactionReceiptParameters } from "viem";
2
2
  export type TxOptions = Omit<WaitForTransactionReceiptParameters, "hash"> & {
3
+ /**
4
+ * Whether or not to wait for the transaction so you can receive a transaction receipt in return
5
+ * (which contains data about the transaction and return values).
6
+ */
3
7
  waitForTransaction?: boolean;
8
+ /**
9
+ * When this option is set, the transaction will not submit and execute.
10
+ * It will only encode the ABI and function data and return.
11
+ */
4
12
  encodedTxDataOnly?: boolean;
5
13
  };
6
14
  export type WithTxOptions = {
7
15
  txOptions?: TxOptions;
8
16
  };
17
+ export type ERC20Options = {
18
+ /**
19
+ * Automatically approve erc20 usage when erc20 is needed but current allowance
20
+ * is not sufficient.
21
+ * Set this to `false` to disable this behavior.
22
+ *
23
+ * @default true
24
+ */
25
+ enableAutoApprove?: boolean;
26
+ };
27
+ /**
28
+ * Options to override the default behavior of the auto approve logic
29
+ */
30
+ export type WithERC20Options = {
31
+ erc20Options?: ERC20Options;
32
+ };
33
+ export type WipOptions = {
34
+ /**
35
+ * Use multicall to batch the WIP calls into one transaction when possible.
36
+ *
37
+ * @default true
38
+ */
39
+ useMulticallWhenPossible?: boolean;
40
+ /**
41
+ * By default IP is converted to WIP if the current WIP
42
+ * balance does not cover the fees.
43
+ * Set this to `false` to disable this behavior.
44
+ *
45
+ * @default true
46
+ */
47
+ enableAutoWrapIp?: boolean;
48
+ /**
49
+ * Automatically approve WIP usage when WIP is needed but current allowance
50
+ * is not sufficient.
51
+ * Set this to `false` to disable this behavior.
52
+ *
53
+ * @default true
54
+ */
55
+ enableAutoApprove?: boolean;
56
+ };
57
+ /**
58
+ * Options to override the default behavior of the auto wrapping IP
59
+ * and auto approve logic.
60
+ */
61
+ export type WithWipOptions = {
62
+ /** options to configure WIP behavior */
63
+ wipOptions?: WipOptions;
64
+ };
65
+ export type HandleTxOptionsParams = {
66
+ txHash: Hex;
67
+ txOptions?: TxOptions;
68
+ rpcClient: PublicClient;
69
+ };
70
+ export type TransactionResponse = {
71
+ txHash: Hex;
72
+ /** Transaction receipt, only available if waitForTransaction is set to true */
73
+ receipt?: TransactionReceipt;
74
+ };
9
75
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,MAAM,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG,IAAI,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EAAE,SAAS,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,GAAG,CAAC;IAEZ,+EAA+E;IAC/E,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
@@ -1,13 +1,29 @@
1
- import { Address } from "viem";
2
- import { TxOptions } from "../options.js";
1
+ import { Address, Hex } from "viem";
2
+ import { TxOptions, WithTxOptions } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
- export type RaiseDisputeRequest = {
4
+ export type RaiseDisputeRequest = WithTxOptions & {
5
+ /** The IP ID that is the target of the dispute. */
5
6
  targetIpId: Address;
7
+ /**
8
+ * Content Identifier (CID) for the dispute evidence.
9
+ * This should be obtained by uploading your dispute evidence (documents, images, etc.) to IPFS.
10
+ * @example "QmX4zdp8VpzqvtKuEqMo6gfZPdoUx9TeHXCgzKLcFfSUbk"
11
+ */
6
12
  cid: string;
13
+ /**
14
+ * The target tag of the dispute.
15
+ * @see https://docs.story.foundation/docs/dispute-module#dispute-tags
16
+ * @example "IMPROPER_REGISTRATION"
17
+ */
7
18
  targetTag: string;
19
+ /** The liveness is the time window (in seconds) in which a counter dispute can be presented (30days). */
8
20
  liveness: bigint | number | string;
21
+ /**
22
+ * The amount of wrapper IP that the dispute initiator pays upfront into a pool.
23
+ * To counter that dispute the opposite party of the dispute has to place a bond of the same amount.
24
+ * The winner of the dispute gets the original bond back + 50% of the other party bond. The remaining 50% of the loser party bond goes to the reviewer.
25
+ */
9
26
  bond: bigint | number | string;
10
- txOptions?: TxOptions;
11
27
  };
12
28
  export type RaiseDisputeResponse = {
13
29
  txHash?: string;
@@ -32,4 +48,40 @@ export type ResolveDisputeResponse = {
32
48
  txHash?: string;
33
49
  encodedTxData?: EncodedTxData;
34
50
  };
51
+ export type TagIfRelatedIpInfringedRequest = {
52
+ infringementTags: {
53
+ /** The ipId to tag */
54
+ ipId: Address;
55
+ /** The dispute id that tagged the related infringing ipId */
56
+ disputeId: number | string | bigint;
57
+ }[];
58
+ options?: {
59
+ /**
60
+ * Use multicall to batch the calls into one transaction when possible.
61
+ *
62
+ * If only 1 infringementTag is provided, multicall will not be used.
63
+ * @default true
64
+ */
65
+ useMulticallWhenPossible?: boolean;
66
+ };
67
+ } & WithTxOptions;
68
+ export type DisputeAssertionRequest = {
69
+ /**
70
+ * The IP ID that is the target of the dispute.
71
+ */
72
+ ipId: Address;
73
+ /**
74
+ * The identifier of the assertion that was disputed.
75
+ *
76
+ * You can get this from the `disputeId` by calling `dispute.disputeIdToAssertionId`.
77
+ */
78
+ assertionId: Hex;
79
+ /**
80
+ * Content Identifier (CID) for the counter evidence.
81
+ * This should be obtained by uploading your dispute evidence (documents, images, etc.) to IPFS.
82
+ *
83
+ * @example "QmX4zdp8VpzqvtKuEqMo6gfZPdoUx9TeHXCgzKLcFfSUbk"
84
+ */
85
+ counterEvidenceCID: string;
86
+ } & WithTxOptions;
35
87
  //# sourceMappingURL=dispute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAA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Options } from "../options.js";
3
3
  import { EncodedTxData } from "../../abi/generated.js";
4
- import { InnerLicensingConfig, IpMetadataAndTxOptions, LicensingConfig } from "../common.js";
4
+ import { IpMetadataAndTxOptions, LicensingConfig, ValidatedLicensingConfig } from "../common.js";
5
5
  export type LicenseData = {
6
6
  licenseTermsId: string | bigint | number;
7
- licensingConfig: LicensingConfig;
7
+ licensingConfig?: LicensingConfig;
8
8
  licenseTemplate?: Address;
9
9
  };
10
- export type InnerLicenseData = {
10
+ export type ValidatedLicenseData = {
11
11
  licenseTermsId: bigint;
12
- licensingConfig: InnerLicensingConfig;
12
+ licensingConfig: ValidatedLicensingConfig;
13
13
  licenseTemplate: Address;
14
14
  };
15
15
  export type MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest = {
16
16
  spgNftContract: Address;
17
+ /** The ID of the group IP to add the newly registered IP. */
17
18
  groupId: Address;
18
- allowDuplicates: boolean;
19
+ /**
20
+ * Set to true to allow minting an NFT with a duplicate metadata hash.
21
+ * @default true
22
+ */
23
+ allowDuplicates?: boolean;
24
+ /** The maximum reward share percentage that can be allocated to each member IP. */
19
25
  maxAllowedRewardShare: number | string;
26
+ /** The data of the license and its configuration to be attached to the new group IP. */
20
27
  licenseData: LicenseData[];
28
+ /** The address of the recipient of the minted NFT. If not provided, the function will use the user's own wallet address. */
21
29
  recipient?: Address;
30
+ /**
31
+ * The deadline for the signature in seconds.
32
+ * @default 1000
33
+ */
22
34
  deadline?: string | number | bigint;
23
35
  } & IpMetadataAndTxOptions;
24
36
  export type MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse = {
@@ -39,9 +51,16 @@ export type RegisterGroupResponse = {
39
51
  export type RegisterIpAndAttachLicenseAndAddToGroupRequest = {
40
52
  nftContract: Address;
41
53
  tokenId: bigint | string | number;
54
+ /** The ID of the group IP to add the newly registered IP. */
42
55
  groupId: Address;
56
+ /**
57
+ * The deadline for the signature in seconds.
58
+ * @default 1000
59
+ */
43
60
  deadline?: bigint;
61
+ /** The data of the license and its configuration to be attached to the new group IP. */
44
62
  licenseData: LicenseData[];
63
+ /** The maximum reward share percentage that can be allocated to each member IP. */
45
64
  maxAllowedRewardShare: number | string;
46
65
  } & IpMetadataAndTxOptions;
47
66
  export type RegisterIpAndAttachLicenseAndAddToGroupResponse = {
@@ -51,7 +70,9 @@ export type RegisterIpAndAttachLicenseAndAddToGroupResponse = {
51
70
  tokenId?: bigint;
52
71
  };
53
72
  export type RegisterGroupAndAttachLicenseRequest = {
73
+ /** The address specifying how royalty will be split amongst the pool of IPs in the group. */
54
74
  groupPool: Address;
75
+ /** The data of the license and its configuration to be attached to the new group IP. */
55
76
  licenseData: LicenseData;
56
77
  txOptions?: TxOptions;
57
78
  };
@@ -61,9 +82,13 @@ export type RegisterGroupAndAttachLicenseResponse = {
61
82
  groupId?: Address;
62
83
  };
63
84
  export type RegisterGroupAndAttachLicenseAndAddIpsRequest = {
85
+ /** The address specifying how royalty will be split amongst the pool of IPs in the group. */
64
86
  groupPool: Address;
87
+ /** The IP IDs of the IPs to be added to the group. */
65
88
  ipIds: Address[];
89
+ /** The data of the license and its configuration to be attached to the new group IP. */
66
90
  licenseData: LicenseData;
91
+ /** The maximum reward share percentage that can be allocated to each member IP. */
67
92
  maxAllowedRewardShare: number | string;
68
93
  txOptions?: TxOptions;
69
94
  };
@@ -1 +1 @@
1
- {"version":3,"file":"group.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,eAAe,EAAE,qBAAkB;AAE1F,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,E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10
10
  };
11
11
  export type IPAccountExecuteResponse = {
12
- txHash?: string;
12
+ txHash?: Hex;
13
13
  encodedTxData?: EncodedTxData;
14
14
  };
15
15
  export type IPAccountExecuteWithSigRequest = {
@@ -23,7 +23,7 @@ export type IPAccountExecuteWithSigRequest = {
23
23
  txOptions?: TxOptions;
24
24
  };
25
25
  export type IPAccountExecuteWithSigResponse = {
26
- txHash?: string;
26
+ txHash?: Hex;
27
27
  encodedTxData?: EncodedTxData;
28
28
  };
29
29
  export type IpAccountStateResponse = Hex;
@@ -32,4 +32,12 @@ export type TokenResponse = {
32
32
  tokenContract: Address;
33
33
  tokenId: bigint;
34
34
  };
35
+ export type SetIpMetadataRequest = {
36
+ ipId: Address;
37
+ /** The metadataURI to set for the IP asset. */
38
+ metadataURI: string;
39
+ /** The hash of metadata at metadataURI. */
40
+ metadataHash: Hex;
41
+ txOptions?: Omit<TxOptions, "encodedTxDataOnly">;
42
+ };
35
43
  //# sourceMappingURL=ipAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipAccount.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["ipAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,sBAAmB;AACvC,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,OAAO,CAAC;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