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

dev/moul/examples #2551

Draft
wants to merge 191 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
8a5ecbc
feat: grc20 registry
n0izn0iz Aug 25, 2023
9c5fcde
initial commit of receiver implied realm for pkg methods
jaekwon Oct 19, 2023
a9bee16
deref receiver before checking if object
jaekwon Oct 19, 2023
bc47c25
...
jaekwon Oct 19, 2023
ec4d717
...
jaekwon Oct 19, 2023
75b1d10
add realmtest
jaekwon Oct 19, 2023
af8f629
feat: add r/demo/atomicswap
moul Jul 5, 2024
9b7190e
chore: fixup
moul Jul 5, 2024
1b0a95f
chore: fixup
moul Jul 5, 2024
6b89115
Merge branch 'master' into dev/moul/atomicswap
moul Jul 5, 2024
86235c7
Merge remote-tracking branch 'origin/master' into grc20_registry
moul Jul 5, 2024
60162b9
feat: add p/demo/fqname
moul Jul 5, 2024
621a877
feat: add fqname.RenderLink
moul Jul 5, 2024
e545bfb
chore: refactor grc20_registry
moul Jul 5, 2024
cdbe6da
chore: rename grc20reg
moul Jul 5, 2024
a65537b
chore: emit event on registration
moul Jul 5, 2024
e8668f0
chore: fixup
moul Jul 5, 2024
e1a79fe
Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm' into d…
moul Jul 5, 2024
3f83d01
chore: fixup
moul Jul 5, 2024
10719e7
Revert "Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm…
moul Jul 5, 2024
b8a8282
override pv and rlm if method receiver has one
jaekwon Jul 5, 2024
1a86dbb
chore: fixup
moul Jul 5, 2024
23f7173
add tests
jaekwon Jul 5, 2024
b0397ed
Merge branch 'master' into dev/jae/boundmethodrealm
jaekwon Jul 5, 2024
d0cacdd
Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm' into d…
moul Jul 5, 2024
b1254a7
chore: add missing gno.mod files
moul Jul 5, 2024
03c520f
Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm' into d…
moul Jul 5, 2024
d7508a0
chore: fixup
moul Jul 5, 2024
752d9e7
chore: fixup
moul Jul 5, 2024
0bf2937
chore: fixup
moul Jul 5, 2024
9536cae
chore: fixup
moul Jul 5, 2024
61a6e39
chore: fixup
moul Jul 5, 2024
10a5456
chore: fixup
moul Jul 6, 2024
59443ee
chore: fixup
moul Jul 6, 2024
d317eaa
chore: fixup
moul Jul 6, 2024
6a41a93
resave after init
jaekwon Jul 6, 2024
3ab2e5a
chore: fixup
moul Jul 6, 2024
d23ab40
Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm' into d…
moul Jul 6, 2024
dbe4655
Merge remote-tracking branch 'origin/dev/jae/boundmethodrealm' into d…
moul Jul 6, 2024
cfef0ee
Merge branch 'master' into dev/moul/grc20reg
moul Jul 6, 2024
b1dfa2d
Merge branch 'master' into dev/moul/grc20reg
moul Jul 6, 2024
08d0c11
Merge branch 'master' into dev/moul/atomicswap
moul Jul 6, 2024
abb8b1e
Merge branch 'master' into dev/moul/grc20reg
moul Jul 6, 2024
ade3d05
Merge branch 'master' into dev/moul/atomicswap
moul Jul 6, 2024
437df89
chore: fixup
moul Jul 6, 2024
a4a6ea0
Merge branch 'master' into dev/moul/grc20reg
moul Jul 6, 2024
b45a63d
chore(examples): make lint -> verbose
moul Jul 6, 2024
4b3dabe
chore(examples): make lint -> verbose
moul Jul 6, 2024
cc07f46
Merge branch 'master' into dev/moul/grc20reg
moul Jul 6, 2024
bdb44bd
test(gnovm): add test for bounding issue
moul Jul 6, 2024
7cba9ca
chore: fixup
moul Jul 6, 2024
4ba7490
chore: fixup
moul Jul 6, 2024
621d599
chore: fixup
moul Jul 6, 2024
04bcd67
Merge branch 'master' into dev/moul/boundbug
moul Jul 6, 2024
ae76c6e
chore: fixup
moul Jul 6, 2024
552f06b
chore: fixup
moul Jul 6, 2024
25e3d6e
chore: fixup
moul Jul 6, 2024
82219a4
Merge branch 'master' into dev/moul/atomicswap
moul Jul 6, 2024
aa51902
chore: fixup
moul Jul 6, 2024
be4615c
feat(examples): refactor grc20
moul Jul 6, 2024
9ec3353
chore: fixup
moul Jul 6, 2024
d1af9ce
chore: fixup
moul Jul 6, 2024
360c0c8
chore: fixup
moul Jul 6, 2024
b0a1e1f
allow passing in an object about to be persisted in the previous realm
jaekwon Jul 6, 2024
34b35b9
chore: fixup
moul Jul 7, 2024
a854c26
chore: fixup
moul Jul 7, 2024
27e979f
chore: fixup
moul Jul 7, 2024
7445ae0
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
d8438d2
chore: fixup
moul Jul 7, 2024
5d97b41
feat: add embedmd in make -C docs/ build
moul Jul 7, 2024
d985d4f
chore: update docs
moul Jul 7, 2024
9eeb026
feat: add embedmd in make -C docs/ build
moul Jul 7, 2024
2a3c3ac
chore: regenerate docs
moul Jul 7, 2024
2d83f2b
chore(ci): check docs' build
moul Jul 7, 2024
42b2061
Merge branch 'dev/moul/docs-build' into dev/moul/refactor-grc20
moul Jul 7, 2024
d26b7c7
chore: fixup
moul Jul 7, 2024
0ec05b6
chore: fixup
moul Jul 7, 2024
15f13ef
Merge branch 'dev/moul/docs-build' into dev/moul/refactor-grc20
moul Jul 7, 2024
2bcd69f
Merge remote-tracking branch 'origin/master' into dev/moul/refactor-g…
moul Jul 7, 2024
689e42b
chore: fixup
moul Jul 7, 2024
16b9a15
chore: fixup
moul Jul 7, 2024
48f564e
Merge remote-tracking branch 'origin/master' into dev/moul/grc20reg
moul Jul 7, 2024
795f12f
Merge remote-tracking branch 'origin/master' into dev/moul/boundbug
moul Jul 7, 2024
4a2d67d
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
070f2cb
Merge branch 'master' into dev/moul/atomicswap
moul Jul 7, 2024
cbf2753
remove spurious lines
jaekwon Jul 7, 2024
5f647fb
fix for all cases
jaekwon Jul 7, 2024
bd889f7
reset new escape for both cases
jaekwon Jul 7, 2024
2a90a3d
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
00a2779
optimized fix
jaekwon Jul 7, 2024
ff894be
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
9aa33e4
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
3a498f6
optimize
jaekwon Jul 7, 2024
5ebf68f
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
60b99cc
add test for crossrealm new escaped internal objects
jaekwon Jul 7, 2024
ebd2f44
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
5eb4447
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
03e838b
chore: fixup
moul Jul 7, 2024
71b74f4
chore: fixup
moul Jul 7, 2024
4ca57af
chore: fixup
moul Jul 7, 2024
df5df54
Merge branch 'dev/moul/boundbug' into dev/moul/grc20reg
moul Jul 7, 2024
6316e48
Merge branch 'dev/moul/refactor-grc20' into dev/moul/atomicswap
moul Jul 7, 2024
3067fa0
chore: fixup
moul Jul 7, 2024
a91c84a
change realm to receiver's
jaekwon Jul 7, 2024
caf38cd
Merge remote-tracking branch 'origin/master' into dev/moul/atomicswap
moul Jul 7, 2024
90034b9
Merge remote-tracking branch 'origin/dev/jae/crossrealm' into dev/mou…
moul Jul 7, 2024
9df618e
Merge branch 'master' into dev/moul/atomicswap
moul Jul 8, 2024
5343784
chore: fixup
moul Jul 8, 2024
d8bb614
chore: fixup
moul Jul 8, 2024
f1dc45b
chore: fixup
moul Jul 8, 2024
c47a2e8
chore: fixup
moul Jul 8, 2024
90bee8b
Merge branch 'master' into dev/moul/grc20reg
moul Jul 8, 2024
f48048b
chore: fixup
moul Jul 8, 2024
9073056
chore: fixup
moul Jul 8, 2024
67e5353
chore: fixup
moul Jul 8, 2024
80977eb
chore: cleanup grc20
moul Jul 8, 2024
1967ffd
feat: r/demo/vault
moul Jul 8, 2024
79d9404
Merge branch 'master' into dev/moul/atomicswap
moul Jul 8, 2024
1e7d43d
chore: fixup
moul Jul 8, 2024
7a7c65e
feat: add r/demo/tests/test20
moul Jul 8, 2024
b05e615
Merge remote-tracking branch 'moul/dev/moul/test20' into dev/moul/ato…
moul Jul 8, 2024
305bcbd
Merge remote-tracking branch 'moul/dev/moul/test20' into dev/moul/vault
moul Jul 8, 2024
246af4f
chore: fixup
moul Jul 9, 2024
b552293
WIP various examples
moul Jul 9, 2024
a74adb3
Merge branch 'dev/moul/test20' into dev/moul/examples
moul Jul 9, 2024
34e1830
Merge branch 'dev/moul/vault' into dev/moul/examples
moul Jul 9, 2024
340ded1
Merge branch 'dev/moul/cleanup-grc20' into dev/moul/examples
moul Jul 9, 2024
3b906ad
Merge branch 'master' into dev/moul/grc20reg
moul Jul 9, 2024
18e1a45
Merge branch 'dev/moul/grc20reg' into dev/moul/examples
moul Jul 9, 2024
b97f369
Merge branch 'dev/moul/atomicswap' into dev/moul/examples
moul Jul 9, 2024
7583aeb
chore: fixup
moul Jul 9, 2024
8a975d3
chore: fixup
moul Jul 9, 2024
1041a58
chore: fixup
moul Jul 9, 2024
2fcdbba
chore: fixup
moul Jul 9, 2024
c9e175e
chore: fixup
moul Jul 10, 2024
3ed84b9
chore: fixup
moul Jul 10, 2024
5b0add1
chore: fixup
moul Jul 10, 2024
528c148
chore: fixup
moul Jul 10, 2024
f8630b3
chore: printfdebugging
moul Jul 10, 2024
f696f20
chore: fixup
moul Jul 10, 2024
3d6a94b
chore: fixup
moul Jul 10, 2024
673d4c9
chore: fixup
moul Jul 10, 2024
2d435fc
chore: fixup
moul Jul 10, 2024
5946a48
chore: fixup
moul Jul 10, 2024
04085f0
chore: fixup
moul Jul 11, 2024
c7f1dbb
chore: fixup
moul Jul 11, 2024
eb50f4f
chore: fixup
moul Jul 11, 2024
2545a26
chore: minidex v0
moul Jul 11, 2024
fe9f122
chore: fixup
moul Jul 11, 2024
b70fbf8
chore: fixup
moul Jul 11, 2024
8d0ec7e
chore: fixup
moul Jul 11, 2024
ca3eb5d
chore: fixup
moul Jul 11, 2024
2771f82
chore: fixup
moul Jul 11, 2024
50087d5
chore: fixup
moul Jul 12, 2024
588ad13
chore: fixup
moul Jul 12, 2024
60ed59e
chore: fixup
moul Jul 12, 2024
f388ebc
chore: fixup
moul Jul 14, 2024
23856d2
Merge remote-tracking branch 'origin/master' into dev/moul/examples
moul Sep 17, 2024
2e476af
Merge branch 'master' into dev/moul/examples
moul Sep 21, 2024
66d3f2c
Merge remote-tracking branch 'origin/master' into dev/moul/examples
moul Oct 17, 2024
d051246
chore: fixup
moul Oct 17, 2024
d607256
chore: fixup
moul Oct 17, 2024
1ac96f9
chore: fixup
moul Oct 17, 2024
e2d414e
chore: fixup
moul Oct 17, 2024
2513888
chore: fixup
moul Oct 17, 2024
bfa8c4b
chore: fixup
moul Oct 17, 2024
16d4e06
chore: fixup
moul Oct 17, 2024
399ba00
chore: fixup
moul Oct 17, 2024
7c77e9f
chore: fixup
moul Oct 17, 2024
8eecdae
chore: fixup
moul Oct 17, 2024
1d59dfe
chore: fixup
moul Oct 17, 2024
76b75e9
chore: fixup
moul Oct 17, 2024
4debeb2
chore: fixup
moul Oct 17, 2024
ca043e9
chore: fixup
moul Oct 17, 2024
017902b
feat(gnovm): add 'gno test -print-events' + cleanup machine between t…
moul Oct 17, 2024
68ca01d
feat(gnovm): add 'gno test -print-events' + cleanup machine between t…
moul Oct 17, 2024
be20737
Merge branch 'dev/moul/test-events' into dev/moul/examples
moul Oct 17, 2024
f098c3c
chore: fixup
moul Oct 18, 2024
b6c17fe
chore: fixup
moul Oct 18, 2024
067deba
Merge branch 'master' into dev/moul/test-events
moul Oct 18, 2024
073811c
chore: fixup
moul Oct 18, 2024
5a27c35
chore: fixup
moul Oct 18, 2024
075a3b1
Merge branch 'dev/moul/test-events' into dev/moul/examples
moul Oct 18, 2024
5846bfc
chore: fixup
moul Oct 18, 2024
316b7a7
chore: fixup
moul Oct 18, 2024
2cee5eb
Merge branch 'dev/moul/test-events' into dev/moul/examples
moul Oct 18, 2024
d53c180
Merge remote-tracking branch 'origin/master' into dev/moul/examples
moul Oct 18, 2024
4ada0a8
chore: fixup
moul Oct 19, 2024
9b45574
chore: fixup
moul Oct 19, 2024
67c5bf3
chore: fixup
moul Oct 19, 2024
133d761
Merge branch 'master' into dev/moul/examples
moul Oct 20, 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
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
echo "LOG_LEVEL=debug" >> $GITHUB_ENV
echo "LOG_PATH_DIR=$LOG_PATH_DIR" >> $GITHUB_ENV
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno test -v ./examples/...
- run: go run ./gnovm/cmd/gno test -v -print-events ./examples/...
lint:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test:

.PHONY: lint
lint:
go run ../gnovm/cmd/gno lint $(OFFICIAL_PACKAGES)
go run ../gnovm/cmd/gno lint -v $(OFFICIAL_PACKAGES)

.PHONY: test.sync
test.sync:
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 ExampleCustomGRC20Impl() {}
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 @@ -3,6 +3,7 @@ module gno.land/p/demo/grc/grc20
require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/grc/exts v0.0.0-latest
gno.land/p/demo/ownable v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/urequire v0.0.0-latest
Expand Down
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