All files / src types.ts

100% Statements 17/17
75% Branches 6/8
100% Functions 1/1
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19102x     1x 1x 1x 1x 1x 1x 1x       2x 1x 1x 1x    
import {Asset, Int64, Name, Struct, UInt32} from '@wharfkit/session'
 
@Struct.type('powerup')
export class Powerup extends Struct {
    @Struct.field(Name) payer!: Name
    @Struct.field(Name) receiver!: Name
    @Struct.field(UInt32) days!: UInt32
    @Struct.field(Int64) net_frac!: Int64
    @Struct.field(Int64) cpu_frac!: Int64
    @Struct.field(Asset) max_payment!: Asset
}
 
@Struct.type('buyrambytes')
export class Buyrambytes extends Struct {
    @Struct.field(Name) payer!: Name
    @Struct.field(Name) receiver!: Name
    @Struct.field(UInt32) bytes!: UInt32
}