All files / src/storage/schema/tables Output.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64                                                                          57x                                                    
import { Base64String, DescriptionString5to50Bytes, PubKeyHex } from '@bsv/sdk'
import { OutputBasket, OutputTag } from "."
import { sdk } from "../../../index.client"
 
export interface Output extends sdk.EntityTimeStamp {
   created_at: Date
   updated_at: Date
   outputId: number
   userId: number
   transactionId: number
   basketId?: number
   spendable: boolean
   change: boolean
   outputDescription: DescriptionString5to50Bytes
   vout: number
   satoshis: number
   providedBy: sdk.StorageProvidedBy
   purpose: string
   type: string
   txid?: string
   senderIdentityKey?: PubKeyHex
   derivationPrefix?: Base64String
   derivationSuffix?: Base64String
   customInstructions?: string
   spentBy?: number
   sequenceNumber?: number
   spendingDescription?: string
   scriptLength?: number
   scriptOffset?: number
   lockingScript?: number[]
}
 
export interface OutputX extends Output {
   basket?: OutputBasket
   tags?: OutputTag[]
}
 
export const outputColumnsWithoutLockingScript = [
   'created_at',
   'updated_at',
   'outputId',
   'userId',
   'transactionId',
   'basketId',
   'spendable',
   'change',
   'vout',
   'satoshis',
   'providedBy',
   'purpose',
   'type',
   'outputDescription',
   'txid',
   'senderIdentityKey',
   'derivationPrefix',
   'derivationSuffix',
   'customInstructions',
   'spentBy',
   'sequenceNumber',
   'spendingDescription',
   'scriptLength',
   'scriptOffset',
   //'lockingScript',
]