1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\JsonBase;
6:
7: class BlockchainRewards extends JsonBase
8: {
9: function height(): int { return $this->json->get( 'height' )->asInt(); }
10: function currentReward(): int { return $this->json->get( 'currentReward' )->asInt(); }
11: function totalWavesAmount(): int { return $this->json->get( 'totalWavesAmount' )->asInt(); }
12: function minIncrement(): int { return $this->json->get( 'minIncrement' )->asInt(); }
13: function term(): int { return $this->json->get( 'term' )->asInt(); }
14: function nextCheck(): int { return $this->json->get( 'nextCheck' )->asInt(); }
15: function votingIntervalStart(): int { return $this->json->get( 'votingIntervalStart' )->asInt(); }
16: function votingInterval(): int { return $this->json->get( 'votingInterval' )->asInt(); }
17: function votingThreshold(): int { return $this->json->get( 'votingThreshold' )->asInt(); }
18: function votes(): Votes { return $this->json->get( 'votes' )->asJson()->asVotes(); }
19: }
20: