Skip to content

Commit

Permalink
chore(boards2): move commondao & boards2 to "nt" namespace (#3618)
Browse files Browse the repository at this point in the history
Follow up to discussion
#3616 (comment)
  • Loading branch information
jeronimoalbi authored Jan 28, 2025
1 parent 6592035 commit 5f3a9f6
Show file tree
Hide file tree
Showing 52 changed files with 41 additions and 41 deletions.
1 change: 0 additions & 1 deletion examples/gno.land/p/demo/commondao/gno.mod

This file was deleted.

1 change: 1 addition & 0 deletions examples/gno.land/p/nt/commondao/gno.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module gno.land/p/nt/commondao
File renamed without changes.
1 change: 0 additions & 1 deletion examples/gno.land/r/demo/boards2/gno.mod

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"gno.land/p/demo/avl"
"gno.land/p/demo/commondao"
"gno.land/p/moul/txlink"
"gno.land/p/nt/commondao"
)

type BoardID uint64
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions examples/gno.land/r/nt/boards2/gno.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module gno.land/r/nt/boards2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package boards2
import (
"std"

"gno.land/p/demo/commondao"
"gno.land/p/nt/commondao"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"std"

"gno.land/p/demo/avl"
"gno.land/p/demo/commondao"
"gno.land/p/nt/commondao"

"gno.land/r/demo/users"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"std"
"testing"

"gno.land/p/demo/commondao"
"gno.land/p/demo/uassert"
"gno.land/p/demo/urequire"
"gno.land/p/nt/commondao"
)

var _ Permissions = (*DefaultPermissions)(nil)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,23 @@ func TestNewThread(t *testing.T) {
boardName := "test123"
board := newBoard(boardID, boardName, creator)
url := ufmt.Sprintf(
"/r/demo/boards2:%s/%d",
"/r/nt/boards2:%s/%d",
boardName,
uint(threadID),
)
replyURL := ufmt.Sprintf(
"/r/demo/boards2$help&func=CreateReply&bid=%d&threadID=%d&replyID=%d",
"/r/nt/boards2$help&func=CreateReply&bid=%d&threadID=%d&replyID=%d",
uint(boardID),
uint(threadID),
uint(threadID),
)
repostURL := ufmt.Sprintf(
"/r/demo/boards2$help&func=CreateRepost&bid=%d&threadID=%d",
"/r/nt/boards2$help&func=CreateRepost&bid=%d&threadID=%d",
uint(boardID),
uint(threadID),
)
deleteURL := ufmt.Sprintf(
"/r/demo/boards2$help&func=DeleteThread&bid=%d&threadID=%d",
"/r/nt/boards2$help&func=DeleteThread&bid=%d&threadID=%d",
uint(boardID),
uint(threadID),
)
Expand Down Expand Up @@ -275,19 +275,19 @@ func TestNewReply(t *testing.T) {
boardName := "test123"
board := newBoard(boardID, boardName, creator)
url := ufmt.Sprintf(
"/r/demo/boards2:%s/%d/%d",
"/r/nt/boards2:%s/%d/%d",
boardName,
uint(threadID),
uint(replyID),
)
replyURL := ufmt.Sprintf(
"/r/demo/boards2$help&func=CreateReply&bid=%d&threadID=%d&replyID=%d",
"/r/nt/boards2$help&func=CreateReply&bid=%d&threadID=%d&replyID=%d",
uint(boardID),
uint(threadID),
uint(replyID),
)
deleteURL := ufmt.Sprintf(
"/r/demo/boards2$help&func=DeleteReply&bid=%d&threadID=%d&replyID=%d",
"/r/nt/boards2$help&func=DeleteReply&bid=%d&threadID=%d&replyID=%d",
uint(boardID),
uint(threadID),
uint(replyID),
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// PKGPATH: gno.land/r/demo/boards2_test
// PKGPATH: gno.land/r/nt/boards2_test
package boards2_test

import "gno.land/r/demo/boards2"
import "gno.land/r/nt/boards2"

func main() {
boards2.CreateBoard("foo123")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const owner = std.Address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/demo/users"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/demo/users"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"std"

"gno.land/r/demo/boards2"
"gno.land/r/nt/boards2"
)

const (
Expand Down

0 comments on commit 5f3a9f6

Please sign in to comment.