-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
49 lines (39 loc) · 931 Bytes
/
main.go
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
package main
import (
"fmt"
"log"
client "github.com/kehiy/vv-pactus/client"
"github.com/kehiy/vv-pactus/utils"
)
var status = make(map[int]string)
type Result struct {
Address string `json:"adress"`
Discord string `json:"discord"`
Status string `json:"status"`
}
func main() {
status[1] = "valid"
status[2] = "offline"
status[3] = "noSynced"
status[4] = "invalid"
data, err := utils.ReadExcel("data.xlsx", "Form Responses 1")
if err != nil {
log.Fatalf("error reading data: %v", err)
}
fmt.Println(data)
fmt.Println(status)
c, err := client.NewClient("172.104.46.145:9090")
if err != nil {
log.Fatalf("err making client: %v", err)
}
info, err := c.GetNetworkInfo()
if err != nil {
log.Fatalf("err read network info: %v", err)
}
fmt.Print(info)
res, err := utils.AddressFromPublicKey("")
if err != nil {
log.Fatalf("error drive address from pubkey: %v", err)
}
fmt.Println("\n",res)
}