1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\Base64String;
6: use Waves\Common\JsonBase;
7:
8: class ScriptInfo extends JsonBase
9: {
10: function script(): Base64String { return $this->json->get( 'script' )->asBase64String(); }
11: function complexity(): int { return $this->json->get( 'complexity' )->asInt(); }
12: function verifierComplexity(): int { return $this->json->get( 'verifierComplexity' )->asInt(); }
13: function extraFee(): int { return $this->json->get( 'extraFee' )->asInt(); }
14: /**
15: * Gets a map of callable functions with their complexities
16: *
17: * @return array<string, int>
18: */
19: function callableComplexities(): array { return $this->json->get( 'callableComplexities' )->asMapStringInt(); }
20: }
21: