Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): grc20 refactor #2983

Merged
merged 30 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0f65a8d
feat(examples): grc20 refactor
moul Oct 19, 2024
770d1ad
chore: fixup
moul Oct 19, 2024
e2170f5
chore: fixup
moul Oct 19, 2024
e92281f
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Oct 29, 2024
a656a51
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Oct 29, 2024
a24c05f
chore: fixup
moul Oct 29, 2024
6ea4b3c
chore: fixup
moul Oct 29, 2024
6d763db
chore: fixup
moul Oct 29, 2024
37e70d4
chore: fixup
moul Oct 29, 2024
9149395
chore: put replaces on gnolang/gno for all go.mods
thehowl Oct 29, 2024
f129dc1
chore: fixup
moul Oct 29, 2024
028156c
Merge remote-tracking branch 'origin/master' into dev/moul/grc20-refacto
moul Oct 29, 2024
f25e196
attempt to unfuck dockerfiles
thehowl Oct 29, 2024
d7c4645
this hadnt been updated in a while
thehowl Oct 29, 2024
0645b3d
chore: fixup
moul Oct 29, 2024
007a2ac
oops, wrong pr
thehowl Oct 29, 2024
ce710e7
Revert "oops, wrong pr"
thehowl Oct 29, 2024
d9a0710
amend
thehowl Oct 29, 2024
f4e921a
update dockerignore
thehowl Oct 29, 2024
ea6faca
Merge remote-tracking branch 'thehowl/dev/morgan/use-replaces-gomod' …
moul Oct 29, 2024
ac63921
Merge branch 'master' into dev/moul/grc20-refacto
moul Oct 29, 2024
b83c8ca
Merge branch 'master' into dev/moul/grc20-refacto
moul Oct 30, 2024
69a26eb
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Oct 31, 2024
61f0cc2
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Oct 31, 2024
10926df
Update examples/gno.land/r/demo/bar20/bar20.gno
moul Oct 31, 2024
2f83308
Update examples/gno.land/p/demo/grc/grc20/types.gno
moul Oct 31, 2024
fb808d0
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Nov 6, 2024
36135cf
Update examples/gno.land/p/demo/grc/grc20/tellers.gno
moul Nov 6, 2024
0088930
Merge branch 'master' into dev/moul/grc20-refacto
thehowl Nov 6, 2024
b40f6fb
Merge branch 'master' into dev/moul/grc20-refacto
thehowl Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/fqname/fqname.gno
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func Parse(fqname string) (pkgpath, name string) {

// Construct a qualified identifier.
//
// fqName := fqname.Construct("gno.land/r/demo/foo20", "GRC20")
// fqName := fqname.Construct("gno.land/r/demo/foo20", "Token")
// fmt.Println("Fully Qualified Name:", fqName)
// // Output: gno.land/r/demo/foo20.GRC20
// // Output: gno.land/r/demo/foo20.Token
func Construct(pkgpath, name string) string {
// TODO: ensure pkgpath is valid - and as such last part does not contain a dot.
if name == "" {
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/fqname/fqname_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestConstruct(t *testing.T) {
name string
expected string
}{
{"gno.land/r/demo/foo20", "GRC20", "gno.land/r/demo/foo20.GRC20"},
{"gno.land/r/demo/foo20", "Token", "gno.land/r/demo/foo20.Token"},
{"gno.land/r/demo/foo20", "", "gno.land/r/demo/foo20"},
{"path", "", "path"},
{"path", "Split", "path.Split"},
Expand All @@ -62,7 +62,7 @@ func TestRenderLink(t *testing.T) {
{"gno.land/p/demo/avl", "", "[gno.land/p/demo/avl](/p/demo/avl)"},
{"github.com/a/b", "C", "github.com/a/b.C"},
{"example.com/pkg", "Func", "example.com/pkg.Func"},
{"gno.land/r/demo/foo20", "GRC20", "[gno.land/r/demo/foo20](/r/demo/foo20).GRC20"},
{"gno.land/r/demo/foo20", "Token", "[gno.land/r/demo/foo20](/r/demo/foo20).Token"},
{"gno.land/r/demo/foo20", "", "[gno.land/r/demo/foo20](/r/demo/foo20)"},
{"", "", ""},
}
Expand Down
215 changes: 0 additions & 215 deletions examples/gno.land/p/demo/grc/grc20/banker.gno

This file was deleted.

51 changes: 0 additions & 51 deletions examples/gno.land/p/demo/grc/grc20/banker_test.gno

This file was deleted.

18 changes: 18 additions & 0 deletions examples/gno.land/p/demo/grc/grc20/examples_test.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package grc20

// XXX: write Examples

func ExampleInit() {}
func ExampleExposeBankForMaketxRunOrImports() {}
func ExampleCustomTellerImpl() {}
func ExampleAllowance() {}
func ExampleRealmBanker() {}
func ExamplePrevRealmBanker() {}
func ExampleAccountBanker() {}
func ExampleTransfer() {}
func ExampleApprove() {}
func ExampleTransferFrom() {}
func ExampleMint() {}
func ExampleBurn() {}

// ...
1 change: 1 addition & 0 deletions examples/gno.land/p/demo/grc/grc20/gno.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/grc/exts v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/uassert v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/urequire v0.0.0-latest
)
3 changes: 3 additions & 0 deletions examples/gno.land/p/demo/grc/grc20/mock.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package grc20

// XXX: func Mock(t *Token)
Loading
Loading