This commit is contained in:
aozhiwei 2024-09-19 11:03:52 +08:00
parent 59168219c4
commit a747c81a5f
3 changed files with 8 additions and 2 deletions

View File

@ -35,6 +35,7 @@ const (
CONTRACT_NAME_NFTLock = "NFTLock" CONTRACT_NAME_NFTLock = "NFTLock"
CONTRACT_NAME_GameItemMall = "GameItemMall" CONTRACT_NAME_GameItemMall = "GameItemMall"
CONTRACT_NAME_StakedEsCecRouter = "stakedEsCecRouter" CONTRACT_NAME_StakedEsCecRouter = "stakedEsCecRouter"
CONTRACT_NAME_EsCec = "esCEC"
) )
const ( const (

View File

@ -32,10 +32,12 @@ func (this *vip) Add(accountAddress string, val string, idx int64, valField stri
if ds.Next() { if ds.Next() {
bnVal, ok := new(big.Int).SetString(val, 10) bnVal, ok := new(big.Int).SetString(val, 10)
if !ok { if !ok {
f5.GetSysLog().Info("vip.Add val to bigint error:%s", val)
return false return false
} }
bnTotal, ok := new(big.Int).SetString(ds.GetByName("escec_total"), 10) bnTotal, ok := new(big.Int).SetString(ds.GetByName("escec_total"), 10)
if !ok { if !ok {
f5.GetSysLog().Info("vip.Add escec_total to bigint error:%s", val)
return false return false
} }
bnTotal = bnTotal.Add(bnTotal, bnVal) bnTotal = bnTotal.Add(bnTotal, bnVal)

View File

@ -1,6 +1,7 @@
package task package task
import ( import (
"jccommon"
"main/mt" "main/mt"
) )
@ -10,13 +11,15 @@ type esCecTransfer struct {
func (this *esCecTransfer) init() { func (this *esCecTransfer) init() {
mt.Table.Contract.Traverse(func (ele *mt.Contract) bool { mt.Table.Contract.Traverse(func (ele *mt.Contract) bool {
/*
if ele.GetName() == jccommon.CONTRACT_NAME_StakedEsCecRouter { if ele.GetName() == jccommon.CONTRACT_NAME_StakedEsCecRouter {
go this.process(ele.GetNetId(), ele.GetAddress()) go this.process(ele.GetNetId(), ele.GetAddress())
}*/ }
return true return true
}) })
} }
func (this *esCecTransfer) unInit() { func (this *esCecTransfer) unInit() {
} }
func (this *esCecTransfer) process(netId int32, contractAddress string) {
}