All files / src types.ts

100% Statements 15/15
75% Branches 6/8
100% Functions 1/1
100% Lines 10/10

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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4088x       1x 1x 1x 1x       2x 1x 1x 1x 1x                                                
import {Asset, Name, NameType, PublicKeyType, Signature, Struct, UInt32} from '@wharfkit/session'
 
// ABI Definitions to decode data
@Struct.type('buyrambytes')
export class Buyrambytes extends Struct {
    @Struct.field(Name) payer!: Name
    @Struct.field(Name) receiver!: Name
    @Struct.field(UInt32) bytes!: UInt32
}
 
@Struct.type('transfer')
export class Transfer extends Struct {
    @Struct.field(Name) from!: Name
    @Struct.field(Name) to!: Name
    @Struct.field(Asset) quantity!: Asset
    @Struct.field('string') memo!: string
}
 
interface WAXCloudWalletResponse {
    verified: boolean
}
 
export interface WAXCloudWalletLoginResponse extends WAXCloudWalletResponse {
    pubKeys: PublicKeyType[]
    userAccount: NameType
    permission?: string
}
 
export interface WAXCloudWalletSigningResponse extends WAXCloudWalletResponse {
    cpu?: number
    estimatorWorking?: boolean
    net?: number
    ram?: number
    ramFee?: number
    serializedTransaction?: Uint8Array
    signatures: Signature[]
    type: string
    waxFee?: number
}