라이선스

메서드

  • attach_license_terms
  • mint_license_tokens
  • register_pil_terms
  • register_non_com_social_remixing_pil
  • register_commercial_use_pil
  • register_commercial_remix_pil

attach_license_terms

IP에 라이선스 조건을 첨부합니다.

메서드
attach_license_terms

Parameters:

  • ip_id: 라이선스 조건이 첨부될 IP의 주소입니다.
  • license_template: 라이선스 템플릿의 주소입니다.
  • license_terms_id: 라이선스 조건의 ID입니다.
  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = story_client.License.attach_license_terms(
  ip_id="0x4c1f8c1035a8cE379dd4ed666758Fb29696CF721",
  license_template="0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316", # insert PILicenseTemplate from https://docs.story.foundation/docs/deployed-smart-contracts
  license_terms_id="1"
)

mint_license_tokens

IP에 첨부된 라이선스 조건에 대한 라이선스 토큰을 발행합니다.

라이선스 토큰은 수신자에게 발행됩니다.

이 함수를 호출하기 전에 라이선스 조건이 IP에 첨부되어 있어야 합니다.

IP 소유자는 라이선스 조건을 IP에 첨부하지 않고도 임의의 라이선스 조건에 대해 자신의 IP에 대한 라이선스 토큰을 발행할 수 있습니다.

라이선스 조건이나 IP 소유자의 설정에 따라 호출자가 발행 수수료를 지불해야 할 수 있습니다. 발행 수수료는 라이선스 조건에 명시되거나 IP 소유자가 설정한 발행 수수료 토큰으로 지불됩니다. IP 소유자는 자신의 IP에 대한 발행 수수료를 설정하거나 발행 수수료 모듈을 구성하여 발행 수수료를 결정할 수 있습니다.

메서드
mint_license_tokens

Parameters:

  • licensor_ip_id: 라이선스 제공자 IP ID입니다.
  • license_template: 라이선스 템플릿의 주소입니다.
  • license_terms_id: 라이선스 템플릿 내의 라이선스 조건 ID입니다.
  • amount: 발행할 라이선스 토큰의 수량입니다.
  • receiver: 수신자의 주소입니다.
  • max_minting_fee: [선택사항] 지불할 최대 발행 수수료입니다.
  • max_revenue_share: [선택사항] 최대 수익 공유 비율입니다.
  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = client.License.mint_license_tokens(
  licensor_ip_id="0xC92EC2f4c86458AFee7DD9EB5d8c57920BfCD0Ba",
  license_template="0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316", # insert PILicenseTemplate from https://docs.story.foundation/docs/deployed-smart-contracts
  license_terms_id="1",
  amount=1,
  receiver="0x14dC79964da2C08b23698B3D3cc7Ca32193d9955", # optional
  max_minting_fee=0, # disabled
  max_revenue_share=100 # default
)

register_pil_terms

새로운 라이선스 조건을 등록하고 새로 등록된 라이선스 조건의 ID를 반환합니다.

메서드
register_pil_terms

Parameters:

  • 아래의 Python 코드 예제에서 모든 매개변수를 확인하세요. 이들은 모두 PIL Terms에서 가져옵니다.
  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = story_client.License.register_pil_terms(
  transferable=False,
  royalty_policy="0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E", # RoyaltyPolicyLAP address from https://docs.story.foundation/docs/deployed-smart-contracts
  default_minting_fee=0,
  expiration=0,
  commercial_use=False,
  commercial_attribution=False,
  commercializer_checker="0x0000000000000000000000000000000000000000",
  commercializer_checker_data="0x",
  commercial_rev_share=10, # 10%
  commercial_rev_ceiling=0,
  derivatives_allowed=True,
  derivatives_attribution=False,
  derivatives_approval=False,
  derivatives_reciprocal=False,
  derivative_rev_ceiling=0,
  currency="0x1514000000000000000000000000000000000000", # $WIP address from https://docs.story.foundation/docs/deployed-smart-contracts
  uri="",
)

register_non_com_social_remixing_pil

레지스트리에 PIL 비상업적 소셜 리믹스 라이선스를 등록하는 편리한 함수입니다.

이 함수를 호출할 이유가 없습니다. 비상업적 소셜 리믹싱 조건은 이미 우리 프로토콜의 licenseTermdId = 1에 등록되어 있습니다. 다시 등록할 이유가 없습니다.

메서드
register_non_com_social_remixing_pil

Parameters:

  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = story_client.License.register_non_com_social_remixing_pil()

register_commercial_use_pil

레지스트리에 PIL 상업적 사용 라이선스를 등록하는 편리한 함수입니다.

메서드
register_commercial_use_pil

Parameters:

  • default_minting_fee: 라이선스 발행 시 지불해야 하는 수수료입니다.
  • currency: 발행 수수료를 지불하는 데 사용될 ERC20 토큰이며, 이 토큰은 Story의 프로토콜에 등록되어 있어야 합니다.
  • royalty_policy: [선택사항] 로열티 정책 계약의 주소이며, 기본값은 LAP입니다.
  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = story_client.License.register_commercial_use_pil(
  currency='0x1514000000000000000000000000000000000000', # $WIP address from https://docs.story.foundation/docs/deployed-smart-contracts
  default_minting_fee=10, # 10 of the currency (using the above currency, 10 $WIP),
  royalty_policy="0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E", # RoyaltyPolicyLAP address from https://docs.story.foundation/docs/deployed-smart-contracts
)

register_commercial_remix_pil

레지스트리에 PIL 상업적 리믹스 라이선스를 등록하는 편리한 함수입니다.

메서드
register_commercial_remix_pil

Parameters:

  • default_minting_fee: 라이선스 발행 시 지불해야 하는 수수료입니다.
  • commercial_rev_share: 라이선스 제공자와 공유해야 하는 수익의 비율입니다.
  • currency: 발행 수수료를 지불하는 데 사용될 ERC20 토큰이며, 이 토큰은 Story의 프로토콜에 등록되어 있어야 합니다.
  • royalty_policy: 로열티 정책 계약의 주소이며, 기본값은 LAP입니다.
  • tx_options: [선택사항] 트랜잭션 옵션 딕셔너리입니다.
response = story_client.License.register_commercial_remix_pil(
  currency='0x1514000000000000000000000000000000000000', # $WIP address from https://docs.story.foundation/docs/deployed-smart-contracts
  default_minting_fee=10, # 10 of the currency (using the above currency, 10 $WIP)
  royalty_policy="0xBe54FB168b3c982b7AaE60dB6CF75Bd8447b390E", # RoyaltyPolicyLAP address from https://docs.story.foundation/docs/deployed-smart-contracts
  commercial_rev_share=10 # 10%
)