Skip to content

Commit 59bd444

Browse files
committed
refactor: update royalty_shares type in ExtraData and clean up imports in registration_utils and test files
1 parent b71f850 commit 59bd444

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

src/story_protocol_python_sdk/types/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from ens.ens import Address, HexStr
55
from typing_extensions import Callable
66

7-
from story_protocol_python_sdk import RoyaltyShareInput
8-
97

108
class Multicall3Call(TypedDict):
119
target: Address
@@ -38,7 +36,7 @@ class ExtraData(TypedDict, total=False):
3836
license_terms_data: [Optional] The license terms data.
3937
"""
4038

41-
royalty_shares: list[RoyaltyShareInput]
39+
royalty_shares: list[dict]
4240
deadline: int
4341
royalty_total_amount: int
4442
nft_contract: Address

src/story_protocol_python_sdk/utils/registration/registration_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from web3 import Web3
66

77
from story_protocol_python_sdk.abi.Multicall3.Multicall3_client import Multicall3Client
8-
from story_protocol_python_sdk.types.resource.IPAsset import (
8+
from story_protocol_python_sdk.types.resource.IPAsset import IPRoyaltyVault
9+
from story_protocol_python_sdk.types.utils import (
10+
AggregatedRequestData,
911
ExtraData,
10-
IPRoyaltyVault,
1112
TransformedRegistrationRequest,
1213
)
13-
from story_protocol_python_sdk.types.utils import AggregatedRequestData
1414
from story_protocol_python_sdk.utils.registration.transform_registration_request import (
1515
transform_distribute_royalty_tokens_request,
1616
)

tests/unit/resources/test_ip_asset.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
IPAccountImplClient,
2525
)
2626
from story_protocol_python_sdk.resources.IPAsset import IPAsset
27-
from story_protocol_python_sdk.types.resource.IPAsset import (
28-
BatchMintAndRegisterIPInput,
29-
TransformedRegistrationRequest,
30-
)
27+
from story_protocol_python_sdk.types.resource.IPAsset import BatchMintAndRegisterIPInput
28+
from story_protocol_python_sdk.types.utils import TransformedRegistrationRequest
3129
from story_protocol_python_sdk.utils.derivative_data import DerivativeDataInput
3230
from story_protocol_python_sdk.utils.ip_metadata import IPMetadata, IPMetadataInput
3331
from story_protocol_python_sdk.utils.royalty import get_royalty_shares

tests/unit/utils/test_registration_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from ens.ens import HexStr
55

66
from story_protocol_python_sdk import RoyaltyShareInput
7-
from story_protocol_python_sdk.types.resource.IPAsset import (
7+
from story_protocol_python_sdk.types.resource.IPAsset import IPRoyaltyVault
8+
from story_protocol_python_sdk.types.utils import (
89
ExtraData,
9-
IPRoyaltyVault,
1010
TransformedRegistrationRequest,
1111
)
1212
from story_protocol_python_sdk.utils.registration.registration_utils import (

0 commit comments

Comments
 (0)