migration_research_store.gno
1.10 Kb · 59 lines
1package acr
2
3import oldacr "gno.land/r/g1nqnrt3aldzhu6zzeg75yw97wvavqy7wr77g56q/deploy-test/v0/v0/acr"
4
5type ACRStore = oldacr.ACRStore
6
7var (
8 acrStore *ACRStore
9 frozen bool
10 listLimit int
11)
12
13func TotalSupply() int64 {
14 return acrStore.TotalSupply()
15}
16
17func BalanceOf(owner address) int64 {
18 return acrStore.BalanceOf(owner)
19}
20
21func MintedOf(owner address) int64 {
22 return acrStore.MintedOf(owner)
23}
24
25func IsRequestProcessed(requestID string) bool {
26 return acrStore.IsRequestProcessed(requestID)
27}
28
29func ListTopUsersByBalance(count int) []map[string]string {
30 return acrStore.ListTopUsersByBalance(count)
31}
32
33func ListTopUsersByMinting(count int) []map[string]string {
34 return acrStore.ListTopUsersByMinting(count)
35}
36
37func ListHofCategories() []string {
38 return acrStore.ListHofCategories()
39}
40
41func GetHofEntries(category string) string {
42 return acrStore.GetHofEntries(category)
43}
44
45func IsFrozen() bool {
46 return frozen
47}
48
49func Freeze(cur realm) {
50 frozen = true
51}
52
53func Unfreeze(cur realm) {
54 frozen = false
55}
56
57func Mint(cur realm, requestID string, to address, amount int64) {
58 acrStore.Mint(requestID, to, amount)
59}