-
Notifications
You must be signed in to change notification settings - Fork 413
feat: transpile to Gno 0.9 (latest interrealm spec) with @cross #4264
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
Merged
+6,485
−3,619
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
619bddb
add xform
jaekwon b6a4de8
add preprocess2 and hack lint
jaekwon dc00ab6
...
jaekwon cc0842f
refactor
jaekwon 32e2e78
gnomod/lint/transpile etc
jaekwon 17faaca
improve flow and documentation
jaekwon 4fc804c
gimp
jaekwon 77e5e28
fix multi error passthrough
jaekwon 4911675
added adr/lint_transpile.md; naming fixes; lint/test works
jaekwon 56b6cdb
...
jaekwon cbba489
xpiling works ish
jaekwon 7cf9fc1
...
jaekwon 07086ad
...
jaekwon 7fcfae4
...
jaekwon ca1ebe0
...
jaekwon 18159fd
fix tests/files
jaekwon cae70df
separate _test and filetest files
jaekwon f7688c5
fix tests
jaekwon f8bfd7b
fix tests
jaekwon c3ef149
fix gnovm tests; type-checking for test files work
jaekwon da16108
intermediate...
jaekwon 6c37d67
intermediate...
jaekwon 3bc9349
fix more tests
jaekwon 48675f0
fix all file tests
jaekwon 6dee37a
recursive10.gno; recursive11.gno
jaekwon 40e90e3
remove spurious files from testing/base
jaekwon 4f970ec
...
jaekwon 36e2213
...
jaekwon fe061b5
...
jaekwon 64b048a
...
jaekwon 086ff7e
...
jaekwon a27e8ed
fix stdlibs/fmt test
jaekwon 495f2c3
fix stdlib tests except one re: genstd
jaekwon 8b2b7f2
lint.*Error -> gno.*Error
jaekwon 33454fb
fix all gnovm tests; FINALLY
jaekwon 113825e
gno fix
jaekwon 7f280ba
fix tests related to span/location StringXXX().
jaekwon ce758b8
replaceWithDirPath -> guessFilePathLoc; reParseRecover works with Span
jaekwon 1184e22
don't skip preprocessing for funclitexpr inside a func decl
jaekwon 36f4f39
add two funclit tests
ltzmaxwell 6dce366
check parent blocknode to ensure correct skip for funcLit
ltzmaxwell 1ed62d7
fix grc20
ltzmaxwell 3bac84a
fix p/moul/collection
ltzmaxwell 6b39db0
fix p/moul/txlink
ltzmaxwell 1743abf
fix r/demo/atomicswap
ltzmaxwell 5a953fa
fix p/moul/helplink
ltzmaxwell e8c6bbc
fix r/gnoland/monit
ltzmaxwell b653d6c
fix r/gov/dao/v3/memberstore
moul a7d74e7
fix: generate missing gno.mod files
moul 9d643a8
fix: p/moul/helplink
moul 6aac30c
a few more simple typecheck fix
ltzmaxwell edb8830
Revert "fix: generate missing gno.mod files"
moul 009e942
merge master
ltzmaxwell 54a2a35
fix r/x/nir1218_evaluation_
ltzmaxwell 584b4b8
Merge commit 'refs/pull/4264/head' of github.com:gnolang/gno into pr-…
ltzmaxwell 427ac06
Revert "fix: generate missing gno.mod files"
moul 241cbbe
fix printf usage in gno fix
moul c7bf362
Make filetests go .Check with completely separate go fileset
jaekwon 85c6d69
add back .gnobuiltins.go for filetests
jaekwon 0c1be82
...
jaekwon 6461424
...
jaekwon 8d0bf15
future-proof ATTR_PREPROCESS_SKIPPED
jaekwon 14d28e8
lint and fix fixes regarding preprocessed package node and store caching
jaekwon c7763c8
chore: lint
gfanton fef0553
fix: gnoland
gfanton 2b8794e
fix: gnodev
gfanton c3ed31f
fix: keeper load
gfanton 371d6a2
...
jaekwon 136e0fe
...
jaekwon 8fd6cb5
property sort normal/_test/filetests
jaekwon 28f6382
type-check fix examples more
jaekwon 76fb198
fix one r/leon/hor test
jaekwon afbac72
Merge commit 'refs/pull/4264/head' of github.com:gnolang/gno into pr-…
ltzmaxwell 54bc6eb
fix import name issue
ltzmaxwell 3becb1c
chore(examples): add 'make fix'
moul 6b551a4
p/*_test.gno can import r/
moul 09fa106
validate mempackage
jaekwon d9ee35a
fix(gnodev): validate mpkg function
gfanton 82efcb3
fix: add ParseMode argument to `TypeCheckMemPackage`
gfanton 51635be
fix gno lint xxx_test
jaekwon c604710
chore: lint
gfanton 3ca93f7
chore: lint pt2
gfanton c673fd1
fix: integration gas update
gfanton 2cc60ed
Apply suggestions from code review
jaekwon 385d108
Merge remote-tracking branch 'origin/master' into fix/crossrealm/xform
jaekwon 075b205
let file names have some more dots
jaekwon 40a1c61
...
jaekwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -131,7 +131,7 @@ func TestUpdates(t *testing.T) { | |
p2 := &Person{Name: "Bob", Username: "bob456"} | ||
|
||
id1 := c.Set(p1) | ||
id2 := c.Set(p2) | ||
c.Set(p2) | ||
|
||
tests := []struct { | ||
name string | ||
|
@@ -254,7 +254,7 @@ func TestEdgeCases(t *testing.T) { | |
if entry == nil { | ||
return false | ||
} | ||
id, err := seqid.FromString(entry.ID) | ||
_, err := seqid.FromString(entry.ID) | ||
if err != nil { | ||
return false | ||
} | ||
|
@@ -330,7 +330,7 @@ func TestIndexOptions(t *testing.T) { | |
return v.(*Person).Username | ||
}, UniqueIndex) | ||
|
||
id1 := c.Set(&Person{Username: "Alice"}) | ||
c.Set(&Person{Username: "Alice"}) | ||
return c.Set(&Person{Username: "Alice"}) // Should fail | ||
}, | ||
wantID: false, | ||
|
@@ -342,7 +342,7 @@ func TestIndexOptions(t *testing.T) { | |
return v.(*Person).Email | ||
}, UniqueIndex|CaseInsensitiveIndex) | ||
|
||
id1 := c.Set(&Person{Email: "[email protected]"}) | ||
c.Set(&Person{Email: "[email protected]"}) | ||
return c.Set(&Person{Email: "[email protected]"}) // Should fail | ||
}, | ||
wantID: false, | ||
|
@@ -372,7 +372,7 @@ func TestIndexOptions(t *testing.T) { | |
return v.(*Person).Name | ||
}, UniqueIndex|CaseInsensitiveIndex|SparseIndex) | ||
|
||
id1 := c.Set(&Person{Name: "Alice"}) | ||
c.Set(&Person{Name: "Alice"}) | ||
return c.Set(&Person{Name: "ALICE"}) // Should fail | ||
}, | ||
wantID: false, | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -5,7 +5,6 @@ import ( | |
"strconv" | ||
"testing" | ||
|
||
"gno.land/p/demo/avl" | ||
"gno.land/p/demo/urequire" | ||
) | ||
|
||
|
@@ -115,7 +114,7 @@ func TestCreateMembers(t *testing.T) { | |
} | ||
|
||
func addMembers(ms MembersByTier, c int, tier string) { | ||
mt := avl.NewTree() | ||
// mt := avl.NewTree() XXX | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. examples *_test.gno files were never type-checked, and mt isn't used. |
||
ms.SetTier(tier) | ||
for i := 0; i < c; i++ { | ||
addr := std.Address(strconv.Itoa(i) + tier) | ||
|
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.