forked from tact-lang/tact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serialization.tact
99 lines (91 loc) · 1.78 KB
/
serialization.tact
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
87
88
89
90
91
92
93
94
95
96
97
98
99
message Update {
a: Int;
b: Int;
c: Int;
d: Int;
e: Int;
f: Int;
g: Int;
h: Int;
i: Int;
}
contract SerializationTester {
a: Int;
b: Int;
c: Int;
d: Int;
e: Int;
f: Int;
g: Int;
h: Int;
i: Int;
init(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int, g: Int, h: Int, i: Int) {
self.a = a;
self.b = b;
self.c = c;
self.d = d;
self.e = e;
self.f = f;
self.g = g;
self.h = h;
self.i = i;
// abi.dump(self.a);
// abi.dump(self.b);
// abi.dump(self.c);
// abi.dump(self.d);
// abi.dump(self.e);
// abi.dump(self.f);
// abi.dump(self.g);
// abi.dump(self.h);
// abi.dump(self.i);
}
receive() {
// Deploy
}
receive(msg: Update) {
self.a = msg.a;
self.b = msg.b;
self.c = msg.c;
self.d = msg.d;
self.e = msg.e;
self.f = msg.f;
self.h = msg.h;
self.i = msg.i;
// abi.dump(self.a);
// abi.dump(self.b);
// abi.dump(self.c);
// abi.dump(self.d);
// abi.dump(self.e);
// abi.dump(self.f);
// abi.dump(self.g);
// abi.dump(self.h);
// abi.dump(self.i);
}
get fun getA(): Int {
return self.a;
}
get fun getB(): Int {
return self.b;
}
get fun getC(): Int {
return self.c;
}
get fun getD(): Int {
return self.d;
}
get fun getE(): Int {
return self.e;
}
get fun getF(): Int {
return self.f;
}
get fun getG(): Int {
return self.g;
}
get fun getH(): Int {
return self.h;
}
get fun getI(): Int {
return self.i;
}
}