-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.go
55 lines (46 loc) · 850 Bytes
/
types.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
50
51
52
53
54
55
package transactions
import "math/big"
// CLI Parameters
var networkName = ""
var ips = ""
var faucet = "Faucet"
var totalTransactions = 20
var surplusCredit = 1000000
type ipmapping map[string]string
type account struct {
Moniker string
Tokens string
PubKeyHex string
Address string
}
type transaction struct {
From int
To int
Amount *big.Int
}
type fulltransaction struct {
Node string
NodeName string
From string
FromName string
To string
Amount *big.Int
}
type delta struct {
Moniker string
Address string
TransCredit *big.Int
TransDebit *big.Int
TransNet *big.Int
FaucetCredit *big.Int
TotalNet *big.Int
}
type node struct {
Moniker string
NetAddr string
}
type nodeTransactions struct {
Moniker string
Address string
Transactions []fulltransaction
}