-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
68 lines (61 loc) · 1.27 KB
/
constants.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
56
57
58
59
60
61
62
63
64
65
66
67
68
package main
type Encryption int64
const (
Undefined Encryption = iota
Secp256k1
Ethsecp256k1
ECSDA
)
type chain struct {
Name string
Prefix string
PrefixFull string
Encryption
}
type settings struct {
SelectedChain chain // chain selector string or nil
MatcherMode string // starts-with, ends-with, contains
SearchString string // search string
NumAccounts string // number of accounts to generate
RequiredLetters int // number of letters to generate
RequiredDigits int // number of digits to generate
}
type walletgenerator struct {
GenerateWallet func() wallet
}
type matcher struct {
Mode string
SearchString string
Chain chain
RequiredLetters int
RequiredDigits int
}
var (
AvailableChains = []chain{
{
Name: "celestia",
Prefix: "celestia",
PrefixFull: "celestia1",
Encryption: Secp256k1,
},
{
Name: "cosmos",
Prefix: "cosmos",
PrefixFull: "cosmos1",
Encryption: Secp256k1,
},
{
Name: "dydx",
Prefix: "dydx",
PrefixFull: "dydx1",
Encryption: Secp256k1,
},
{
Name: "berachain",
Prefix: "0x",
PrefixFull: "0x",
Encryption: ECSDA,
},
}
MatcherModes = []string{"contains", "starts-with", "ends-with", "regex"}
)