/
constants.go
34 lines (31 loc) · 928 Bytes
/
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
package utils
import (
"github.com/consensys/gnark-crypto/ecc/bn254/fr"
"math/big"
)
const (
BatchCreateUserOpsCounts = 864
AccountTreeDepth = 28
AssetCounts = 350
RedisLockKey = "prover_mutex_key"
R1csBatchSize = 1000000
)
var (
ZeroBigInt = new(big.Int).SetInt64(0)
Uint64MaxValueBigInt, _ = new(big.Int).SetString("18446744073709551616", 10)
Uint64MaxValueBigIntSquare, _ = new(big.Int).SetString("340282366920938463463374607431768211456", 10)
Uint64MaxValueFr = new(fr.Element).SetBigInt(Uint64MaxValueBigInt)
Uint64MaxValueFrSquare = new(fr.Element).SetBigInt(Uint64MaxValueBigIntSquare)
AssetTypeForTwoDigits = map[string]bool{
"BTTC": true,
"SHIB": true,
"LUNC": true,
"XEC": true,
"WIN": true,
"BIDR": true,
"SPELL": true,
"HOT": true,
"DOGE": true,
"PEPE": true,
}
)