Skip to content

Commit

Permalink
test: more helper
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 21, 2024
1 parent 66948db commit 2a7ffe3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pool/_helper_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"gno.land/p/demo/uassert"
pusers "gno.land/p/demo/users"
"gno.land/r/demo/users"
"gno.land/r/gnoswap/v1/common"
"gno.land/r/gnoswap/v1/consts"
pn "gno.land/r/gnoswap/v1/position"
)
Expand Down Expand Up @@ -49,13 +50,21 @@ const (
)

var (
admin = pusers.AddressOrName(consts.ADMIN)
fooToken = common.GetToken(fooPath)
barToken = common.GetToken(barPath)
bazToken = common.GetToken(bazPath)
)

var (
adminAddr = consts.ADMIN
admin = pusers.AddressOrName(adminAddr)
alice = pusers.AddressOrName(testutils.TestAddress("alice"))
pool = pusers.AddressOrName(consts.POOL_ADDR)
protocolFee = pusers.AddressOrName(consts.PROTOCOL_FEE_ADDR)
router = pusers.AddressOrName(consts.ROUTER_ADDR)
adminRealm = std.NewUserRealm(users.Resolve(admin))
posRealm = std.NewCodeRealm(consts.POSITION_PATH)
rouRealm = std.NewCodeRealm(consts.ROUTER_PATH)

// addresses used in tests
addrUsedInTest = []std.Address{addr01, addr02}
Expand Down

0 comments on commit 2a7ffe3

Please sign in to comment.