This commit is contained in:
aozhiwei 2024-06-16 12:56:50 +08:00
parent be78cc942e
commit 8b75a36150
2 changed files with 8 additions and 1 deletions

View File

@ -28,3 +28,8 @@ const (
TRADE_CREATED_EVENT = "imtbl_zkevm_trade_created" TRADE_CREATED_EVENT = "imtbl_zkevm_trade_created"
ACTIVITY_SALE_EVENT = "imtbl_zkevm_activity_sale" ACTIVITY_SALE_EVENT = "imtbl_zkevm_activity_sale"
) )
const (
CONTRACT_NAME_CFHero = "CFHero"
CONTRACT_NAME_GoldBrick = "GoldBrick"
)

View File

@ -4,6 +4,7 @@ import (
"f5" "f5"
"mtb" "mtb"
"sync" "sync"
"strings"
) )
type Contract struct { type Contract struct {
@ -18,5 +19,6 @@ type ContractTable struct {
func (this *Contract) Init1() { func (this *Contract) Init1() {
} }
func (this *ContractTable) Search(name string, itemIds map[int32]int32) { func (this *Contract) GetContractAddress() string {
return strings.ToLower(this.GetAddress())
} }