forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5b3f9f
commit ea6a39b
Showing
7 changed files
with
92 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module gno.land/r/demo/social_feeds_dao | ||
|
||
require ( | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
examples/gno.land/r/demo/social_feeds_dao/social_feeds_dao_test.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package social_feeds_dao | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
// var ( | ||
// rootPostID = PostID(0) | ||
// postID1 = PostID(1) | ||
// feedID1 = FeedID(1) | ||
// cat1 = uint64(1) | ||
// cat2 = uint64(2) | ||
// user = testutils.TestAddress("user") | ||
// filter_all = []uint64{} | ||
// ) | ||
|
||
func Test(t *testing.T) { | ||
// Prepare feed, post | ||
// feedID := CreateFeed("teritori") | ||
// feed := mustGetFeed(feedID) | ||
|
||
// // Create Posts | ||
// postToBanID := CreatePost(feed.id, rootPostID, cat1, "metadata1") | ||
// CreatePost(feed.id, rootPostID, cat1, "metadata2") | ||
|
||
// Make proposal | ||
// Propose(0, "Ban Post "+postToBanID.String(), "We want to delete this post", "") | ||
} |