-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbasic.move
More file actions
41 lines (33 loc) · 956 Bytes
/
basic.move
File metadata and controls
41 lines (33 loc) · 956 Bytes
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
module protocol::basic {
/// Function to add two numbers (complete this function to make tests pass)
public fun add(a: u64, b: u64): u64 {
0
}
/// Function to minus two numbers (complete this function to make tests pass)
public fun minus(a: u64, b: u64): u64 {
0
}
/// Function to multiply two numbers (complete this function to make tests pass)
public fun multiply(a: u64, b: u64): u64 {
0
}
/// Divides two numbers and returns the quotient
public fun div(a: u64, b: u64): u64 {
0
}
/// Returns the remainder when `a` is divided by `b`
public fun mod(a: u64, b: u64): u64 {
0
}
/// Computes the maximum of two numbers
public fun max(a: u64, b: u64): u64 {
0
}
/// Computes the minimum of two numbers
public fun min(a: u64, b: u64): u64 {
0
}
public fun is_even(a: u64): bool {
false
}
}