Skip to content
Snippets Groups Projects
Commit 123ff67d authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

WIP to fix this.. will leave it as coupon bot is not in active use right now

parent 8187665e
Branches master
No related tags found
No related merge requests found
Pipeline #194974 failed
...@@ -9,7 +9,7 @@ package coupons ...@@ -9,7 +9,7 @@ package coupons
import ( import (
"git.xx.network/elixxir/coupons/storage" "git.xx.network/elixxir/coupons/storage"
"gitlab.com/elixxir/client/v5/api" "gitlab.com/elixxir/client/v5/cmix"
) )
// Impl struct wraps the listener for coupons // Impl struct wraps the listener for coupons
...@@ -18,7 +18,7 @@ type Impl struct { ...@@ -18,7 +18,7 @@ type Impl struct {
} }
// New initializes a listener with passed in storage and client // New initializes a listener with passed in storage and client
func New(s *storage.Storage, c *api.Client) *Impl { func New(s *storage.Storage, c *cmix.Client) *Impl {
return &Impl{ return &Impl{
&listener{ &listener{
s: s, s: s,
......
...@@ -10,22 +10,22 @@ package coupons ...@@ -10,22 +10,22 @@ package coupons
import ( import (
"errors" "errors"
"fmt" "fmt"
"strconv"
"strings"
"time"
"git.xx.network/elixxir/coupons/storage" "git.xx.network/elixxir/coupons/storage"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/v5/api"
"gitlab.com/elixxir/client/v5/interfaces/message" "gitlab.com/elixxir/client/v5/interfaces/message"
"gitlab.com/elixxir/client/v5/interfaces/params" "gitlab.com/elixxir/client/v5/interfaces/params"
"gorm.io/gorm" "gorm.io/gorm"
"strconv"
"strings"
"time"
) )
type listener struct { type listener struct {
delay time.Duration delay time.Duration
s *storage.Storage s *storage.Storage
c *api.Client c *e2e.Client
} }
var validResponse = "Thank you! You will receive %d xx in %s within 2 weeks!" var validResponse = "Thank you! You will receive %d xx in %s within 2 weeks!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment