github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/grc/grc20/util.gno (about)

     1  package grc20
     2  
     3  import "std"
     4  
     5  const zeroAddress = std.Address("")
     6  
     7  func checkIsValidAddress(addr std.Address) error {
     8  	if !addr.IsValid() {
     9  		return ErrInvalidAddress
    10  	}
    11  	return nil
    12  }
    13  
    14  func emit(event interface{}) {
    15  	// TODO: setup a pubsub system here?
    16  }