-
Notifications
You must be signed in to change notification settings - Fork 27
/
types.js
86 lines (83 loc) · 1.81 KB
/
types.js
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// @flow
// Shape for sc_params and cert should stay consistent with Zendoo and bitcore-lib-zen
export type TXOBJ = {
locktime?: number,
version: number,
ins: {
output: { hash: string, vout: number },
script: string,
sequence: string,
prevScriptPubKey: string,
}[],
outs: { script: string, satoshis: number, backwardTransfer?: boolean }[],
vsc_ccout?: {
version: number,
withdrawalEpochLength: number,
value: number,
address: string,
certProvingSystem: string,
customData: string,
wCertVk: string,
constant?: string,
cswProvingSystem: string,
wCeasedVk: string,
vFieldElementCertificateFieldConfig: number[],
vBitVectorCertificateFieldConfig: number[][],
ftScFee: number,
mbtrScFee: number,
mbtrRequestDataLength: number,
totalAmount: number
}[],
vft_ccout?: {
scid: string,
value: number,
address: string,
n: number,
mcReturnAddress: string
}[],
vcsw_ccin?: {
value: number,
scId: string,
nullifer: string,
scProof: string,
actCertDataHash: string,
ceasingCumScTxCommTree: string,
redeemScript: {
hex: string
},
scriptPubKey: {
hex: string
}
}[],
vmbtr_out?: {
scid: string,
scFee: number,
mcDestinationAddress: {
pubkeyhash: string
},
vScRequestData: string[]
}[],
cert?: {
scid: string,
epochNumber: number,
quality: number,
endEpochCumScTxCommTreeRoot: string,
scProof: string,
vFieldElementCertificateField: string[],
vBitVectorCertificateField: string[],
ftScFee: number,
mbtrScFee: number,
}
}
// HISTORY Structure
export type HISTORY = {
txid: string,
vout: number,
scriptPubKey: string,
}
// RECIPIENTS Structure
export type RECIPIENTS = {
satoshis: number,
address: string,
data: string
}