Skip to content

Commit

Permalink
GSW-669 chore: change prefix realm path to gno.land/r/demo
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 13, 2023
1 parent 4932209 commit 045185d
Show file tree
Hide file tree
Showing 101 changed files with 763 additions and 1,065 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To run unit tests, follow these steps:
### Run the Test Cases

```
$ gno test -root-dir $WORKDIR/gno-for-swap -verbose=true $WORKDIR/gno-for-swap/examples/gno.land/r/staker
$ gno test -root-dir $WORKDIR/gno-for-swap -verbose=true $WORKDIR/gno-for-swap/examples/gno.land/r/demo/staker
```

## Integration Tests
Expand Down
2 changes: 1 addition & 1 deletion _setup/bar/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/bar
module gno.land/r/demo/bar
2 changes: 1 addition & 1 deletion _setup/baz/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/baz
module gno.land/r/demo/baz
2 changes: 1 addition & 1 deletion _setup/foo/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/foo
module gno.land/r/demo/foo
4 changes: 2 additions & 2 deletions _setup/gnft/gnft.gno
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

var (
// position deployed
// std.DerivePkgAddr("gno.land/r/position")
admin std.Address = "g1htpxzv2dkplvzg50nd8fswrneaxmdpwn459thx"
// std.DerivePkgAddr("gno.land/r/demo/position")
admin std.Address = "g10wwa53xgu4397kvzz7akxar9370zjdpwux5th9"
nft = grc721.NewBasicNFT("GNOSWAP NFT", "GNFT")
)

Expand Down
2 changes: 1 addition & 1 deletion _setup/gnft/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/gnft
module gno.land/r/demo/gnft
2 changes: 1 addition & 1 deletion _setup/gns/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/gns
module gno.land/r/demo/gns
2 changes: 1 addition & 1 deletion _setup/gns/gns.gno
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
gns = grc20.NewAdminToken("Gnoswap", "GNS", 6)
gns.Mint(admin, 500_000_000_000_000) // @administrator (1M)

stakerAddr := std.DerivePkgAddr("gno.land/r/staker")
stakerAddr := std.DerivePkgAddr("gno.land/r/demo/staker")
admins = append(admins, string(stakerAddr))
admins = append(admins, string(admin))
}
Expand Down
2 changes: 1 addition & 1 deletion _setup/grc20_wrapper/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/grc20_wrapper
module gno.land/r/demo/grc20_wrapper
137 changes: 78 additions & 59 deletions _setup/grc20_wrapper/grc20wrapper.gno
Original file line number Diff line number Diff line change
@@ -1,66 +1,85 @@
package grc20wrapper

import (
pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

func init() {
pRegistry.RegisterGRC20Interface("gno.land/r/wugnot", WugnotTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/wugnot", WugnotTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/wugnot", WugnotTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/bar", BarTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/bar", BarTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/bar", BarTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/baz", BazTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/baz", BazTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/baz", BazTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/foo", FooTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/foo", FooTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/foo", FooTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/gns", GnsTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/gns", GnsTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/gns", GnsTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/qux", QuxTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/qux", QuxTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/qux", QuxTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st1", SwapTest1TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st1", SwapTest1TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st1", SwapTest1TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st2", SwapTest2TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st2", SwapTest2TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st2", SwapTest2TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st3", SwapTest3TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st3", SwapTest3TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st3", SwapTest3TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st4", SwapTest4TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st4", SwapTest4TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st4", SwapTest4TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st5", SwapTest5TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st5", SwapTest5TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st5", SwapTest5TokenCTokenInterface{})

// TO BE USED
// pRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})
// rRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})
// sRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})

// pRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})
// rRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})
// sRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})

// pRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
// rRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
// sRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
pRegistry.RegisterGRC20Interface("gno.land/r/demo/wugnot", WugnotTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/wugnot", WugnotTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/wugnot", WugnotTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/bar", BarTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/bar", BarTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/bar", BarTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/baz", BazTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/baz", BazTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/baz", BazTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/foo", FooTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/foo", FooTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/foo", FooTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/gns", GnsTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/gns", GnsTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/gns", GnsTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/qux", QuxTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/qux", QuxTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/qux", QuxTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/st1", SwapTest1TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/st1", SwapTest1TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/st1", SwapTest1TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/st2", SwapTest2TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/st2", SwapTest2TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/st2", SwapTest2TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/st3", SwapTest3TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/st3", SwapTest3TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/st3", SwapTest3TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/st4", SwapTest4TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/st4", SwapTest4TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/st4", SwapTest4TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/demo/st5", SwapTest5TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/demo/st5", SwapTest5TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/demo/st5", SwapTest5TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st11", SwapTest11TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st11", SwapTest11TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st11", SwapTest11TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st22", SwapTest22TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st22", SwapTest22TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st22", SwapTest22TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st33", SwapTest33TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st33", SwapTest33TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st33", SwapTest33TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st44", SwapTest44TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st44", SwapTest44TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st44", SwapTest44TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/st55", SwapTest55TokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/st55", SwapTest55TokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/st55", SwapTest55TokenCTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/testtokena", TestTokenATokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/testtokenb", TestTokenBTokenInterface{})

pRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
rRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
sRegistry.RegisterGRC20Interface("gno.land/r/testtokenc", TestTokenCTokenInterface{})
}
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_bar.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/bar"
"gno.land/r/demo/bar"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type BarTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_baz.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/baz"
"gno.land/r/demo/baz"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type BazTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_foo.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/foo"
"gno.land/r/demo/foo"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type FooTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_gns.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/gns"
"gno.land/r/demo/gns"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type GnsTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_qux.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/qux"
"gno.land/r/demo/qux"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type QuxTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_st1.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/st1"
"gno.land/r/demo/st1"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type SwapTest1TokenCTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_st2.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/st2"
"gno.land/r/demo/st2"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type SwapTest2TokenCTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_st3.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/st3"
"gno.land/r/demo/st3"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type SwapTest3TokenCTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_st4.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/st4"
"gno.land/r/demo/st4"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type SwapTest4TokenCTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_st5.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/st5"
"gno.land/r/demo/st5"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type SwapTest5TokenCTokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_testtokena.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/testtokena"
"gno.land/r/demo/testtokena"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type TestTokenATokenInterface struct{}
Expand Down
8 changes: 4 additions & 4 deletions _setup/grc20_wrapper/wrapper_testtokenb.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package grc20wrapper
import (
"gno.land/r/demo/users"

"gno.land/r/testtokenb"
"gno.land/r/demo/testtokenb"

pRegistry "gno.land/r/pool"
rRegistry "gno.land/r/router"
sRegistry "gno.land/r/staker"
pRegistry "gno.land/r/demo/pool"
rRegistry "gno.land/r/demo/router"
sRegistry "gno.land/r/demo/staker"
)

type TestTokenBTokenInterface struct{}
Expand Down
Loading

0 comments on commit 045185d

Please sign in to comment.