1
1
import { UInt112 } from "./UInt112" ;
2
2
import { UInt224 } from "./UInt224" ;
3
3
4
- export class PrecisionUInt112 extends UInt112 {
5
- public static fromUInt112 ( uint : UInt112 ) {
6
- return new PrecisionUInt112 ( uint . value )
7
- }
8
-
9
- public static get precision ( ) : PrecisionUInt112 {
10
- return new PrecisionUInt112 ( UInt112 . MAXINT ( ) . value ) ;
11
- }
12
-
13
- public mulPrecision ( y : UInt112 ) : PrecisionUInt224 {
14
- return PrecisionUInt224 . fromUInt224 (
15
- UInt224 . from ( this . value ) . mul ( UInt224 . from ( y . value ) )
16
- )
17
- }
18
- }
19
-
20
- export class PrecisionUInt224 extends UInt224 {
21
- public static get precision ( ) : PrecisionUInt224 {
22
- return new PrecisionUInt224 ( UInt224 . MAXINT ( ) . value ) ;
23
- }
24
-
25
- public static fromUInt224 ( uint : UInt224 ) {
26
- return new PrecisionUInt224 ( uint . value )
27
- }
4
+ // export class PrecisionUInt112 extends UInt112 {
5
+ // public static fromUInt112(uint: UInt112){
6
+ // return new PrecisionUInt112({ value: uint.value } )
7
+ // }
8
+ //
9
+ // public static get precision(): PrecisionUInt112 {
10
+ // return new PrecisionUInt112({ value: UInt112.MAXINT().value } );
11
+ // }
12
+ //
13
+ // public mulPrecision(y: UInt112): PrecisionUInt224 {
14
+ // return PrecisionUInt224.fromUInt224(
15
+ // UInt224.Unsafe.fromField (this.value).mul(UInt224.Unsafe.fromField (y.value))
16
+ // )
17
+ // }
18
+ // }
19
+ //
20
+ // export class PrecisionUInt224 extends UInt224 {
21
+ // public static get precision(): PrecisionUInt224 {
22
+ // return new PrecisionUInt224({ value: UInt224.MAXINT().value } );
23
+ // }
24
+ //
25
+ // public static fromUInt224(uint: UInt224){
26
+ // return new PrecisionUInt224({ value: uint.value } )
27
+ // }
28
28
29
29
// public divPrecision(y: UInt112) : PrecisionUInt112 {
30
30
// return new PrecisionUInt112(
31
31
// this.div(UInt224.from(y.value)).toUInt112().value
32
32
// )
33
33
// }
34
- }
34
+ // }
0 commit comments