@story-protocol/core-sdk 1.0.0-rc.6 → 1.2.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -9
- package/dist/declarations/src/abi/generated.d.ts +30706 -11072
- package/dist/declarations/src/abi/generated.d.ts.map +1 -1
- package/dist/declarations/src/client.d.ts +18 -0
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/constants/common.d.ts +2 -1
- package/dist/declarations/src/constants/common.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +18 -8
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +8 -7
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/group.d.ts +85 -0
- package/dist/declarations/src/resources/group.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAccount.d.ts +17 -2
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +232 -8
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +45 -17
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/nftClient.d.ts +29 -0
- package/dist/declarations/src/resources/nftClient.d.ts.map +1 -0
- package/dist/declarations/src/resources/permission.d.ts +69 -8
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +76 -20
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/common.d.ts +11 -1
- package/dist/declarations/src/types/common.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +2 -2
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +4 -5
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/dispute.d.ts +13 -31
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/group.d.ts +65 -0
- package/dist/declarations/src/types/resources/group.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts +21 -11
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/ipAsset.d.ts +178 -14
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +50 -25
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/nftClient.d.ts +23 -0
- package/dist/declarations/src/types/resources/nftClient.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/permission.d.ts +44 -5
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/royalty.d.ts +86 -35
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/utils/chain.d.ts +34 -0
- package/dist/declarations/src/utils/chain.d.ts.map +1 -0
- package/dist/declarations/src/utils/sign.d.ts +16 -0
- package/dist/declarations/src/utils/sign.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +6528 -13466
- package/dist/story-protocol-core-sdk.cjs.prod.js +6528 -13466
- package/dist/story-protocol-core-sdk.esm.js +6522 -13468
- package/package.json +2 -2
@@ -1,11 +1,15 @@
|
|
1
1
|
import { PublicClient } from "viem";
|
2
|
-
import { SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
|
3
|
-
import { SimpleWalletClient } from "../abi/generated.js";
|
2
|
+
import { CreateBatchPermissionSignatureRequest, CreateSetPermissionSignatureRequest, SetAllPermissionsRequest, SetBatchPermissionsRequest, SetPermissionsRequest, SetPermissionsResponse } from "../types/resources/permission.js";
|
3
|
+
import { AccessControllerClient, CoreMetadataModuleClient, IpAssetRegistryClient, SimpleWalletClient } from "../abi/generated.js";
|
4
|
+
import { SupportedChainIds } from "../types/config.js";
|
4
5
|
export declare class PermissionClient {
|
6
|
+
accessControllerClient: AccessControllerClient;
|
7
|
+
ipAssetRegistryClient: IpAssetRegistryClient;
|
8
|
+
coreMetadataModuleClient: CoreMetadataModuleClient;
|
5
9
|
private readonly wallet;
|
6
10
|
private readonly rpcClient;
|
7
|
-
private
|
8
|
-
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
|
11
|
+
private readonly chainId;
|
12
|
+
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient, chainId: SupportedChainIds);
|
9
13
|
/**
|
10
14
|
* Sets the permission for a specific function call
|
11
15
|
* Each policy is represented as a mapping from an IP account address to a signer address to a recipient
|
@@ -16,15 +20,72 @@ export declare class PermissionClient {
|
|
16
20
|
* address(0) => wildcard
|
17
21
|
* bytes4(0) => wildcard
|
18
22
|
* Specific permission overrides wildcard permission.
|
23
|
+
* @param request - The request object containing necessary data to set `permission`.
|
24
|
+
* @param request.ipId The IP ID that grants the permission for `signer`.
|
25
|
+
* @param request.signer The address that can call `to` on behalf of the `ipAccount`.
|
26
|
+
* @param request.to The address that can be called by the `signer` (currently only modules can be `to`).
|
27
|
+
* @param request.permission The new permission level.
|
28
|
+
* @param request.func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
|
29
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
30
|
+
* @returns A Promise that resolves to an object containing the transaction hash.
|
31
|
+
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
32
|
+
*/
|
33
|
+
setPermission(request: SetPermissionsRequest): Promise<SetPermissionsResponse>;
|
34
|
+
/**
|
35
|
+
* Specific permission overrides wildcard permission with signature.
|
19
36
|
* @param request - The request object containing necessary data to set permissions.
|
20
|
-
* @param request.
|
37
|
+
* @param request.ipId The IP ID that grants the permission for `signer`
|
21
38
|
* @param request.signer The address that can call `to` on behalf of the `ipAccount`
|
22
39
|
* @param request.to The address that can be called by the `signer` (currently only modules can be `to`)
|
23
|
-
* @param request.
|
24
|
-
* @param request.
|
40
|
+
* @param request.permission The new permission level.
|
41
|
+
* @param request.func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
|
42
|
+
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
43
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
44
|
+
* @returns A Promise that resolves to an object containing the transaction hash.
|
45
|
+
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
46
|
+
*/
|
47
|
+
createSetPermissionSignature(request: CreateSetPermissionSignatureRequest): Promise<SetPermissionsResponse>;
|
48
|
+
/**
|
49
|
+
* Sets permission to a signer for all functions across all modules.
|
50
|
+
* @param request - The request object containing necessary data to set all permissions.
|
51
|
+
* @param request.ipId The IP ID that grants the permission for `signer`
|
52
|
+
* @param request.signer The address of the signer receiving the permissions.
|
53
|
+
* @param request.permission The new permission.
|
54
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
25
55
|
* @returns A Promise that resolves to an object containing the transaction hash
|
26
56
|
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
27
57
|
*/
|
28
|
-
|
58
|
+
setAllPermissions(request: SetAllPermissionsRequest): Promise<SetPermissionsResponse>;
|
59
|
+
/**
|
60
|
+
* Sets a batch of permissions in a single transaction.
|
61
|
+
* @param request - The request object containing necessary data to set all permissions.
|
62
|
+
* @param {Array} request.permissions - An array of `Permission` structure, each representing the permission to be set.
|
63
|
+
* @param request.permissions[].ipId The IP ID that grants the permission for `signer`.
|
64
|
+
* @param request.permissions[].signer The address that can call `to` on behalf of the `ipAccount`.
|
65
|
+
* @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
|
66
|
+
* @param request.permissions[].permission The new permission level.
|
67
|
+
* @param request.permissions[].func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
|
68
|
+
* @param request.deadline [Optional] The deadline for the signature in milliseconds, default is 1000ms.
|
69
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
70
|
+
* @returns A Promise that resolves to an object containing the transaction hash
|
71
|
+
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
72
|
+
*/
|
73
|
+
setBatchPermissions(request: SetBatchPermissionsRequest): Promise<SetPermissionsResponse>;
|
74
|
+
/**
|
75
|
+
* Sets a batch of permissions in a single transaction with signature.
|
76
|
+
* @param request - The request object containing necessary data to set permissions.
|
77
|
+
* @param request.ipId The IP ID that grants the permission for `signer`
|
78
|
+
* @param {Array} request.permissions - An array of `Permission` structure, each representing the permission to be set.
|
79
|
+
* @param request.permissions[].ipId The IP ID that grants the permission for `signer`.
|
80
|
+
* @param request.permissions[].signer The address that can call `to` on behalf of the `ipAccount`.
|
81
|
+
* @param request.permissions[].to The address that can be called by the `signer` (currently only modules can be `to`).
|
82
|
+
* @param request.permissions[].permission The new permission level.
|
83
|
+
* @param request.permissions[].func [Optional] The function selector string of `to` that can be called by the `signer` on behalf of the `ipAccount`. Be default, it allows all functions.
|
84
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
85
|
+
* @returns A Promise that resolves to an object containing the transaction hash.
|
86
|
+
* @emits PermissionSet (ipAccountOwner, ipAccount, signer, to, func, permission)
|
87
|
+
*/
|
88
|
+
createBatchPermissionSignature(request: CreateBatchPermissionSignatureRequest): Promise<SetPermissionsResponse>;
|
89
|
+
private checkIsRegistered;
|
29
90
|
}
|
30
91
|
//# sourceMappingURL=permission.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"../../../../src/resources","sources":["permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceR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
|
1
|
-
import { PublicClient } from "viem";
|
2
|
-
import { ClaimableRevenueRequest, ClaimableRevenueResponse,
|
3
|
-
import { IpAssetRegistryClient, RoyaltyModuleClient,
|
1
|
+
import { Address, Hex, PublicClient } from "viem";
|
2
|
+
import { ClaimableRevenueRequest, ClaimableRevenueResponse, PayRoyaltyOnBehalfRequest, PayRoyaltyOnBehalfResponse, SnapshotRequest, SnapshotResponse, TransferToVaultAndSnapshotAndClaimByTokenBatchRequest, TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest, SnapshotAndClaimByTokenBatchRequest, SnapshotAndClaimBySnapshotBatchRequest, ClaimRevenueRequest, ClaimRevenueResponse, SnapshotAndClaimBySnapshotBatchResponse, TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse, TransferToVaultAndSnapshotAndClaimByTokenBatchResponse, SnapshotAndClaimByTokenBatchResponse } from "../types/resources/royalty.js";
|
3
|
+
import { IpAssetRegistryClient, IpRoyaltyVaultImplClient, IpRoyaltyVaultImplEventClient, RoyaltyModuleClient, RoyaltyWorkflowsClient, SimpleWalletClient } from "../abi/generated.js";
|
4
4
|
import { IPAccountClient } from "./ipAccount.js";
|
5
5
|
export declare class RoyaltyClient {
|
6
|
-
royaltyPolicyLapClient: RoyaltyPolicyLapClient;
|
7
6
|
royaltyModuleClient: RoyaltyModuleClient;
|
8
7
|
ipAssetRegistryClient: IpAssetRegistryClient;
|
9
8
|
ipAccountClient: IPAccountClient;
|
9
|
+
royaltyWorkflowsClient: RoyaltyWorkflowsClient;
|
10
|
+
ipRoyaltyVaultImplClient: IpRoyaltyVaultImplClient;
|
11
|
+
ipRoyaltyVaultImplEventClient: IpRoyaltyVaultImplEventClient;
|
10
12
|
private readonly rpcClient;
|
11
13
|
private readonly wallet;
|
12
14
|
constructor(rpcClient: PublicClient, wallet: SimpleWalletClient);
|
13
|
-
/**
|
14
|
-
* Allows ancestors to claim the royalty tokens and any accrued revenue tokens
|
15
|
-
* @param request - The request object that contains all data needed to collect royalty tokens.
|
16
|
-
* @param request.parentIpId The ip id of the ancestor to whom the royalty tokens belong to.
|
17
|
-
* @param request.royaltyVaultIpId The id of the royalty vault.
|
18
|
-
* @param request.txOptions [Optional] The transaction options.
|
19
|
-
* @returns A Promise that resolves to an object containing the transaction hash and optional the amount of royalty tokens collected if waitForTxn is set to true.
|
20
|
-
* @emits RoyaltyTokensCollected (ancestorIpId, royaltyTokensCollected)
|
21
|
-
*/
|
22
|
-
collectRoyaltyTokens(request: CollectRoyaltyTokensRequest): Promise<CollectRoyaltyTokensResponse>;
|
23
15
|
/**
|
24
16
|
* Allows the function caller to pay royalties to the receiver IP asset on behalf of the payer IP asset.
|
25
17
|
* @param request - The request object that contains all data needed to pay royalty on behalf.
|
@@ -27,7 +19,7 @@ export declare class RoyaltyClient {
|
|
27
19
|
* @param request.payerIpId The ID of the IP asset that pays the royalties.
|
28
20
|
* @param request.token The token to use to pay the royalties.
|
29
21
|
* @param request.amount The amount to pay.
|
30
|
-
* @param request.txOptions [Optional]
|
22
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
31
23
|
* @returns A Promise that resolves to an object containing the transaction hash.
|
32
24
|
*/
|
33
25
|
payRoyaltyOnBehalf(request: PayRoyaltyOnBehalfRequest): Promise<PayRoyaltyOnBehalfResponse>;
|
@@ -38,7 +30,6 @@ export declare class RoyaltyClient {
|
|
38
30
|
* @param request.account The address of the token holder.
|
39
31
|
* @param request.snapshotId The snapshot id.
|
40
32
|
* @param request.token The revenue token to claim.
|
41
|
-
* @param request.txOptions [Optional] The transaction options.
|
42
33
|
* @returns A Promise that contains the amount of revenue token claimable
|
43
34
|
*/
|
44
35
|
claimableRevenue(request: ClaimableRevenueRequest): Promise<ClaimableRevenueResponse>;
|
@@ -48,20 +39,85 @@ export declare class RoyaltyClient {
|
|
48
39
|
* @param request.snapshotIds The list of snapshot ids.
|
49
40
|
* @param request.royaltyVaultIpId The id of the royalty vault.
|
50
41
|
* @param request.token The revenue token to claim.
|
51
|
-
* @param request.
|
42
|
+
* @param request.account [Optional] The ipId to send.
|
43
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
52
44
|
* @returns A Promise that resolves to an object containing the transaction hash and optional claimableToken if waitForTxn is set to true.
|
53
45
|
* @emits RevenueTokenClaimed (claimer, token, amount).
|
54
46
|
*/
|
55
|
-
claimRevenue(request:
|
47
|
+
claimRevenue(request: ClaimRevenueRequest): Promise<ClaimRevenueResponse>;
|
56
48
|
/**
|
57
49
|
* Snapshots the claimable revenue and royalty token amounts.
|
58
50
|
* @param request - The request object that contains all data needed to snapshot.
|
59
51
|
* @param request.royaltyVaultIpId The id of the royalty vault.
|
60
|
-
* @param request.txOptions [Optional]
|
52
|
+
* @param request.txOptions - [Optional] transaction. This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
61
53
|
* @returns A Promise that resolves to an object containing the transaction hash and optional snapshotId if waitForTxn is set to true.
|
62
54
|
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
63
55
|
*/
|
64
56
|
snapshot(request: SnapshotRequest): Promise<SnapshotResponse>;
|
65
|
-
|
57
|
+
/**
|
58
|
+
* Get the royalty vault proxy address of given royaltyVaultIpId.
|
59
|
+
* @param royaltyVaultIpId the id of the royalty vault.
|
60
|
+
* @returns A Promise that resolves to an object containing the royalty vault address.
|
61
|
+
*/
|
62
|
+
getRoyaltyVaultAddress(royaltyVaultIpId: Hex): Promise<Address>;
|
63
|
+
/**
|
64
|
+
* Transfers royalties from royalty policy to the ancestor IP's royalty vault, takes a snapshot, and claims revenue on that snapshot for each specified currency token.
|
65
|
+
* @param request - The request object that contains all data needed to transfer to vault and snapshot and claim by token batch.
|
66
|
+
* @param request.ancestorIpId The address of the ancestor IP.
|
67
|
+
* @param request.royaltyClaimDetails The details of the royalty claim from child IPs
|
68
|
+
* @param request.royaltyClaimDetails - The details of the royalty claim from child IPs
|
69
|
+
* @param request.royaltyClaimDetails.childIpId The address of the child IP.
|
70
|
+
* @param request.royaltyClaimDetails.royaltyPolicy The address of the royalty policy.
|
71
|
+
* @param request.royaltyClaimDetails.currencyToken The address of the currency (revenue) token to claim.
|
72
|
+
* @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
|
73
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
74
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
|
75
|
+
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
76
|
+
* @emits RevenueTokenClaimed (claimer, token, amount).
|
77
|
+
*/
|
78
|
+
transferToVaultAndSnapshotAndClaimByTokenBatch(request: TransferToVaultAndSnapshotAndClaimByTokenBatchRequest): Promise<TransferToVaultAndSnapshotAndClaimByTokenBatchResponse>;
|
79
|
+
/**
|
80
|
+
* Transfers royalties to the ancestor IP's royalty vault, takes a snapshot, claims revenue for each
|
81
|
+
* specified currency token both on the new snapshot and on each specified unclaimed snapshots.
|
82
|
+
* @param request - The request object that contains all data needed to transfer to vault and snapshot and claim by snapshot batch.
|
83
|
+
* @param request.ancestorIpId The address of the ancestor IP.
|
84
|
+
* @param request.unclaimedSnapshotIds The IDs of unclaimed snapshots to include in the claim.
|
85
|
+
* @param request.royaltyClaimDetails The details of the royalty claim from child IPs
|
86
|
+
* @param request.royaltyClaimDetails - The details of the royalty claim from child IPs
|
87
|
+
* @param request.royaltyClaimDetails.childIpId The address of the child IP.
|
88
|
+
* @param request.royaltyClaimDetails.royaltyPolicy The address of the royalty policy.
|
89
|
+
* @param request.royaltyClaimDetails.currencyToken The address of the currency (revenue) token to claim.
|
90
|
+
* @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
|
91
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
92
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
|
93
|
+
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
94
|
+
* @emits RevenueTokenClaimed (claimer, token, amount).
|
95
|
+
*/
|
96
|
+
transferToVaultAndSnapshotAndClaimBySnapshotBatch(request: TransferToVaultAndSnapshotAndClaimBySnapshotBatchRequest): Promise<TransferToVaultAndSnapshotAndClaimBySnapshotBatchResponse>;
|
97
|
+
/**
|
98
|
+
* Takes a snapshot of the IP's royalty vault and claims revenue on that snapshot for each
|
99
|
+
* @param request - The request object that contains all data needed to snapshot and claim by token batch.
|
100
|
+
* @param request.royaltyVaultIpId The address of the IP.
|
101
|
+
* @param request.currencyTokens The addresses of the currency (revenue) tokens to claim.
|
102
|
+
* @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
|
103
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
104
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
|
105
|
+
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
106
|
+
* @emits RevenueTokenClaimed (claimer, token, amount).
|
107
|
+
*/
|
108
|
+
snapshotAndClaimByTokenBatch(request: SnapshotAndClaimByTokenBatchRequest): Promise<SnapshotAndClaimByTokenBatchResponse>;
|
109
|
+
/**
|
110
|
+
* Takes a snapshot of the IP's royalty vault and claims revenue for each specified currency token
|
111
|
+
* @param request - The request object that contains all data needed to snapshot and claim by snapshot batch.
|
112
|
+
* @param request.royaltyVaultIpId The address of the IP.
|
113
|
+
* @param request.unclaimedSnapshotIds The IDs of unclaimed snapshots to include in the claim.
|
114
|
+
* @param request.currencyTokens The addresses of the currency (revenue) tokens to claim.
|
115
|
+
* @param request.claimer [Optional] The address of the claimer of the revenue tokens (must be a royalty token holder), default value is wallet address.
|
116
|
+
* @param request.txOptions [Optional] This extends `WaitForTransactionReceiptParameters` from the Viem library, excluding the `hash` property.
|
117
|
+
* @returns A Promise that resolves to a transaction hash, and if encodedTxDataOnly is true, includes encoded transaction data, or if waitForTransaction is true, includes snapshot ID and amounts claimed.
|
118
|
+
* @emits SnapshotCompleted (snapshotId, snapshotTimestamp, unclaimedTokens).
|
119
|
+
* @emits RevenueTokenClaimed (claimer, token, amount).
|
120
|
+
*/
|
121
|
+
snapshotAndClaimBySnapshotBatch(request: SnapshotAndClaimBySnapshotBatchRequest): Promise<SnapshotAndClaimBySnapshotBatchResponse>;
|
66
122
|
}
|
67
123
|
//# sourceMappingURL=royalty.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAmC,MAAM,MAAM,CAAC;AAGnF,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,qDAAqD,EACrD,wDAAwD,EACxD,mCAAmC,EACnC,sCAAsC,EACtC,mBAAmB,EACnB,oBAAoB,EACpB,uCAAuC,EACvC,yDAAyD,EACzD,sDAAsD,EACtD,oCAAoC,EACrC,sCAAmC;AACpC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,mBAAmB,EACnB,sBAAsB,EAKtB,kBAAkB,EAEnB,4BAAyB;AAC1B,OAAO,EAAE,eAAe,EAAE,uBAAoB;A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uC,CAAC;CAgDpD"}
|
@@ -1,6 +1,16 @@
|
|
1
|
-
|
1
|
+
import { Hex } from "viem";
|
2
|
+
import { TxOptions } from "./options.js";
|
2
3
|
export type TypedData = {
|
3
4
|
interface: string;
|
4
5
|
data: unknown[];
|
5
6
|
};
|
7
|
+
export type IpMetadataAndTxOption = {
|
8
|
+
ipMetadata?: {
|
9
|
+
ipMetadataURI?: string;
|
10
|
+
ipMetadataHash?: Hex;
|
11
|
+
nftMetadataURI?: string;
|
12
|
+
nftMetadataHash?: Hex;
|
13
|
+
};
|
14
|
+
txOptions?: TxOptions;
|
15
|
+
};
|
6
16
|
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"../../../../src/types","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,qBAAkB;AAEtC,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,EAAE;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,GAAG,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,eAAe,CAAC,EAAE,GAAG,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -5,7 +5,7 @@ import { SimpleWalletClient } from "../abi/generated.js";
|
|
5
5
|
*
|
6
6
|
* @public
|
7
7
|
*/
|
8
|
-
export type SupportedChainIds = "
|
8
|
+
export type SupportedChainIds = "1513" | "iliad";
|
9
9
|
/**
|
10
10
|
* Configuration for the SDK Client.
|
11
11
|
*
|
@@ -22,8 +22,8 @@ export type UseWalletStoryConfig = {
|
|
22
22
|
readonly wallet: SimpleWalletClient;
|
23
23
|
};
|
24
24
|
export type StoryConfig = {
|
25
|
-
readonly chainId?: SupportedChainIds;
|
26
25
|
readonly transport: Transport;
|
26
|
+
readonly chainId?: SupportedChainIds;
|
27
27
|
readonly wallet?: SimpleWalletClient;
|
28
28
|
readonly account?: Account | Address;
|
29
29
|
};
|
@@ -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,
|
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,OAAO,CAAC;AAEjD;;;;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,9 +1,8 @@
|
|
1
|
-
|
1
|
+
import { WaitForTransactionReceiptParameters } from "viem";
|
2
|
+
export interface TxOptions extends Omit<WaitForTransactionReceiptParameters, "hash"> {
|
2
3
|
waitForTransaction?: boolean;
|
3
|
-
|
4
|
-
|
5
|
-
numBlockConfirmations?: number;
|
6
|
-
};
|
4
|
+
encodedTxDataOnly?: boolean;
|
5
|
+
}
|
7
6
|
export type WithTxOptions<T> = T & {
|
8
7
|
txOptions?: TxOptions;
|
9
8
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
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,WAAW,SAAU,SAAQ,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC;IAIlF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAI7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -1,52 +1,34 @@
|
|
1
|
-
import { Hex } from "viem";
|
1
|
+
import { Address, Hex } from "viem";
|
2
2
|
import { TxOptions } from "../options.js";
|
3
|
-
|
4
|
-
targetIpId: Hex;
|
5
|
-
disputeInitiator: Hex;
|
6
|
-
arbitrationPolicy: Hex;
|
7
|
-
linkToDisputeEvidence: string;
|
8
|
-
targetTag: string;
|
9
|
-
currentTag: string;
|
10
|
-
};
|
3
|
+
import { EncodedTxData } from "../../abi/generated.js";
|
11
4
|
export type RaiseDisputeRequest = {
|
12
|
-
targetIpId:
|
13
|
-
|
14
|
-
linkToDisputeEvidence: string;
|
5
|
+
targetIpId: Address;
|
6
|
+
disputeEvidenceHash: Hex;
|
15
7
|
targetTag: string;
|
16
|
-
|
8
|
+
data?: Address;
|
17
9
|
txOptions?: TxOptions;
|
18
10
|
};
|
19
11
|
export type RaiseDisputeResponse = {
|
20
|
-
txHash
|
21
|
-
|
22
|
-
arbitrationPolicy?: Hex;
|
23
|
-
};
|
24
|
-
export type SetDisputeJudgementRequest = {
|
25
|
-
disputeId: number;
|
26
|
-
decision: boolean;
|
27
|
-
calldata?: Hex;
|
28
|
-
txOptions?: TxOptions;
|
29
|
-
};
|
30
|
-
export type SetDisputeJudgementResponse = {
|
31
|
-
txHash: string;
|
12
|
+
txHash?: string;
|
13
|
+
encodedTxData?: EncodedTxData;
|
32
14
|
disputeId?: bigint;
|
33
|
-
decision?: boolean;
|
34
|
-
data?: Hex;
|
35
15
|
};
|
36
16
|
export type CancelDisputeRequest = {
|
37
17
|
disputeId: number | string | bigint;
|
38
|
-
|
18
|
+
data?: Address;
|
39
19
|
txOptions?: TxOptions;
|
40
20
|
};
|
41
21
|
export type CancelDisputeResponse = {
|
42
|
-
txHash
|
22
|
+
txHash?: string;
|
23
|
+
encodedTxData?: EncodedTxData;
|
43
24
|
};
|
44
25
|
export type ResolveDisputeRequest = {
|
45
26
|
disputeId: number | string | bigint;
|
46
|
-
data:
|
27
|
+
data: Address;
|
47
28
|
txOptions?: TxOptions;
|
48
29
|
};
|
49
30
|
export type ResolveDisputeResponse = {
|
50
|
-
txHash
|
31
|
+
txHash?: string;
|
32
|
+
encodedTxData?: EncodedTxData;
|
51
33
|
};
|
52
34
|
//# 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,GAAG,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"dispute.d.ts","sourceRoot":"../../../../../src/types/resources","sources":["dispute.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,mBAAmB,GAAG;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB,EAAE,GAAG,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { Address } from "viem";
|
2
|
+
import { TxOptions } from "../options.js";
|
3
|
+
import { EncodedTxData } from "../../abi/generated.js";
|
4
|
+
import { IpMetadataAndTxOption } from "../common.js";
|
5
|
+
export type MintAndRegisterIpAndAttachLicenseAndAddToGroupRequest = {
|
6
|
+
spgNftContract: Address;
|
7
|
+
licenseTermsId: string | bigint | number;
|
8
|
+
groupId: Address;
|
9
|
+
recipient?: Address;
|
10
|
+
licenseTemplate?: Address;
|
11
|
+
deadline?: string | number | bigint;
|
12
|
+
} & IpMetadataAndTxOption;
|
13
|
+
export type MintAndRegisterIpAndAttachLicenseAndAddToGroupResponse = {
|
14
|
+
txHash?: string;
|
15
|
+
encodedTxData?: EncodedTxData;
|
16
|
+
ipId?: Address;
|
17
|
+
tokenId?: bigint;
|
18
|
+
};
|
19
|
+
export type RegisterGroupRequest = {
|
20
|
+
groupPool: Address;
|
21
|
+
txOptions?: TxOptions;
|
22
|
+
};
|
23
|
+
export type RegisterGroupResponse = {
|
24
|
+
txHash?: string;
|
25
|
+
encodedTxData?: EncodedTxData;
|
26
|
+
groupId?: Address;
|
27
|
+
};
|
28
|
+
export type RegisterIpAndAttachLicenseAndAddToGroupRequest = {
|
29
|
+
nftContract: Address;
|
30
|
+
tokenId: bigint | string | number;
|
31
|
+
groupId: Address;
|
32
|
+
licenseTermsId: bigint | string | number;
|
33
|
+
licenseTemplate?: Address;
|
34
|
+
deadline?: bigint;
|
35
|
+
} & IpMetadataAndTxOption;
|
36
|
+
export type RegisterIpAndAttachLicenseAndAddToGroupResponse = {
|
37
|
+
txHash?: string;
|
38
|
+
encodedTxData?: EncodedTxData;
|
39
|
+
ipId?: Address;
|
40
|
+
tokenId?: bigint;
|
41
|
+
};
|
42
|
+
export type RegisterGroupAndAttachLicenseRequest = {
|
43
|
+
groupPool: Address;
|
44
|
+
licenseTermsId: bigint | string | number;
|
45
|
+
licenseTemplate?: Address;
|
46
|
+
txOptions?: TxOptions;
|
47
|
+
};
|
48
|
+
export type RegisterGroupAndAttachLicenseResponse = {
|
49
|
+
txHash?: string;
|
50
|
+
encodedTxData?: EncodedTxData;
|
51
|
+
groupId?: Address;
|
52
|
+
};
|
53
|
+
export type RegisterGroupAndAttachLicenseAndAddIpsRequest = {
|
54
|
+
groupPool: Address;
|
55
|
+
ipIds: Address[];
|
56
|
+
licenseTermsId: bigint | string | number;
|
57
|
+
licenseTemplate?: Address;
|
58
|
+
txOptions?: TxOptions;
|
59
|
+
};
|
60
|
+
export type RegisterGroupAndAttachLicenseAndAddIpsResponse = {
|
61
|
+
txHash?: string;
|
62
|
+
encodedTxData?: EncodedTxData;
|
63
|
+
groupId?: Address;
|
64
|
+
};
|
65
|
+
//# sourceMappingURL=group.d.ts.map
|
@@ -0,0 +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,qBAAqB,EAAE,qBAAkB;AAElD,MAAM,MAAM,qDAAqD,GAAG;IAClE,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACrC,GAAG,qBAAqB,CA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,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,6CAA6C,GAAG;IAC1D,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,8CAA8C,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
@@ -1,25 +1,35 @@
|
|
1
|
+
import { Address, Hex } from "viem";
|
1
2
|
import { TxOptions } from "../options.js";
|
3
|
+
import { EncodedTxData } from "../../abi/generated.js";
|
2
4
|
export type IPAccountExecuteRequest = {
|
3
|
-
|
4
|
-
to:
|
5
|
+
ipId: Address;
|
6
|
+
to: Address;
|
5
7
|
value: number;
|
6
|
-
data:
|
8
|
+
data: Address;
|
7
9
|
txOptions?: TxOptions;
|
8
10
|
};
|
9
11
|
export type IPAccountExecuteResponse = {
|
10
|
-
txHash
|
12
|
+
txHash?: string;
|
13
|
+
encodedTxData?: EncodedTxData;
|
11
14
|
};
|
12
15
|
export type IPAccountExecuteWithSigRequest = {
|
13
|
-
|
14
|
-
to:
|
16
|
+
ipId: Address;
|
17
|
+
to: Address;
|
15
18
|
value: number;
|
16
|
-
data:
|
17
|
-
signer:
|
18
|
-
deadline: number;
|
19
|
-
signature:
|
19
|
+
data: Address;
|
20
|
+
signer: Address;
|
21
|
+
deadline: number | bigint | string;
|
22
|
+
signature: Address;
|
20
23
|
txOptions?: TxOptions;
|
21
24
|
};
|
22
25
|
export type IPAccountExecuteWithSigResponse = {
|
23
|
-
txHash
|
26
|
+
txHash?: string;
|
27
|
+
encodedTxData?: EncodedTxData;
|
28
|
+
};
|
29
|
+
export type IpAccountStateResponse = Hex;
|
30
|
+
export type TokenResponse = {
|
31
|
+
chainId: bigint;
|
32
|
+
tokenContract: Address;
|
33
|
+
tokenId: bigint;
|
24
34
|
};
|
25
35
|
//# 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,SAAS,EAAE,sBAAmB;
|
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;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAEzC,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|