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.
Signed-off-by: Norman Meier <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module gno.land/r/demo/teritori/inject_project | ||
|
||
require gno.land/r/demo/teritori/projects_manager v0.0.0-latest |
38 changes: 38 additions & 0 deletions
38
examples/gno.land/r/demo/teritori/inject_project/inject_project.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,38 @@ | ||
package inject_project | ||
|
||
import ( | ||
"std" | ||
|
||
"gno.land/r/demo/teritori/projects_manager" | ||
) | ||
|
||
func CreateDemoProject() { | ||
projects_manager.CreateContract( | ||
std.Address(""), | ||
std.CurrentRealm().Addr(), | ||
"ugnot", | ||
`{ | ||
"shortDescData": { | ||
"name": "My Awesome Blog", | ||
"desc": "A blog about my awesome life", | ||
"tags": "frontend,ui,ux", | ||
"coverImg": "ipfs://bafybeihlfopxuwgrjjgkxn46j73dse4g3v5qcpv6z7ycaujpnu2qzpdaiq" | ||
}, | ||
"teamAndLinkData": { | ||
"websiteLink": "https://website.com", | ||
"twitterProfile": "https://twitter.com", | ||
"discordLink": "https://discord.com", | ||
"githubLink": "https://github.com", | ||
"teamDesc": "This is long team description" | ||
} | ||
}`, | ||
200000, | ||
"Bootstrap repository,Create Home page", | ||
"Create a GitHub repository with\n- These\n- Tech\n- Requirements,Create the Home page with\n- These\n- UI/UX\n- Requirements", | ||
"42,420", | ||
"3600,36000", | ||
",", | ||
"MS_PRIORITY_HIGH,MS_PRIORITY_MEDIUM", | ||
"g108cszmcvs4r3k67k7h5zuhm4el3qhlrxzhshtv", | ||
) | ||
} |
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