-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbasic.mol
More file actions
81 lines (66 loc) · 1.46 KB
/
basic.mol
File metadata and controls
81 lines (66 loc) · 1.46 KB
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
import blockchain;
array Hash [byte; 32];
vector String <byte>; // UTF-8 encoded
option Uint32Opt (Uint32);
table Action {
script_info_hash: Byte32, // script info
script_hash: Byte32, // script
data: Bytes, // action data
}
vector ActionVec <Action>;
table Message {
actions: ActionVec,
}
table ScriptInfo {
// The dapp name and domain the script belongs to
name: String,
url: String,
// Script info.
// schema: script action schema
// message_type: the entry action type used in WitnessLayout
script_hash: Byte32,
schema: String,
message_type: String,
}
vector ScriptInfoVec <ScriptInfo>;
table ResolvedInputs {
outputs: CellOutputVec,
outputs_data: BytesVec,
}
table BuildingPacketV1 {
message: Message,
payload: Transaction,
resolved_inputs: ResolvedInputs,
change_output: Uint32Opt,
script_infos: ScriptInfoVec,
lock_actions: ActionVec,
}
union BuildingPacket {
BuildingPacketV1,
}
table SighashAll {
message: Message,
seal: Bytes,
}
table SighashAllOnly {
seal: Bytes,
}
table SealPair {
script_hash: Byte32,
seal: Bytes,
}
vector SealPairVec <SealPair>;
table OtxStart {
start_input_cell: Uint32,
start_output_cell: Uint32,
start_cell_deps: Uint32,
start_header_deps: Uint32,
}
table Otx {
input_cells: Uint32,
output_cells: Uint32,
cell_deps: Uint32,
header_deps: Uint32,
message: Message,
seals: SealPairVec,
}