Skip to content

Commit

Permalink
Add reward context input (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 authored Sep 12, 2023
1 parent c92474b commit ae03064
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bindings/python/iota_sdk/types/context_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class ContextInputType(IntEnum):
"""Context input types.
"""
BlockIssuanceCredit = 1
Reward = 2


@json
Expand All @@ -32,3 +33,15 @@ class BlockIssuanceCreditContextInput(ContextInput):
default_factory=lambda: int(
ContextInputType.BlockIssuanceCredit),
init=False)


@json
@dataclass
class RewardContextInput(ContextInput):
"""A Reward Context Input indicates which transaction Input is claiming Mana rewards.
"""
index: int
type: int = field(
default_factory=lambda: int(
ContextInputType.Reward),
init=False)

0 comments on commit ae03064

Please sign in to comment.