-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Antonio Navarro Perez <[email protected]> Co-authored-by: Thomas Bruyelle <[email protected]> Co-authored-by: Manfred Touron <[email protected]>
- Loading branch information
1 parent
e392ab5
commit 408fc68
Showing
14 changed files
with
529 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package subtests | ||
|
||
import ( | ||
"std" | ||
) | ||
|
||
func CurrentRealmPath() string { | ||
return std.CurrentRealmPath() | ||
} | ||
|
||
func GetPrevRealm() std.Realm { | ||
return std.PrevRealm() | ||
} | ||
|
||
func Exec(fn func()) { | ||
fn() | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package subtests | ||
|
||
import ( | ||
"std" | ||
) | ||
|
||
func CurrentRealmPath() string { | ||
return std.CurrentRealmPath() | ||
} | ||
|
||
func GetPrevRealm() std.Realm { | ||
return std.PrevRealm() | ||
} | ||
|
||
func Exec(fn func()) { | ||
fn() | ||
} |
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,6 +1,8 @@ | ||
package gnolang | ||
|
||
import "fmt" | ||
import ( | ||
"fmt" | ||
) | ||
|
||
//---------------------------------------- | ||
// (runtime) Frame | ||
|
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,20 @@ | ||
package stdlibs | ||
|
||
import "github.com/gnolang/gno/tm2/pkg/crypto" | ||
|
||
type Realm struct { | ||
addr crypto.Bech32Address | ||
pkgPath string | ||
} | ||
|
||
func (r Realm) Addr() crypto.Bech32Address { | ||
return r.addr | ||
} | ||
|
||
func (r Realm) PkgPath() string { | ||
return r.pkgPath | ||
} | ||
|
||
func (r Realm) IsUser() bool { | ||
return r.pkgPath == "" | ||
} |
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,18 @@ | ||
package std | ||
|
||
type Realm struct { | ||
addr Address | ||
pkgPath string | ||
} | ||
|
||
func (r Realm) Addr() Address { | ||
return r.addr | ||
} | ||
|
||
func (r Realm) PkgPath() string { | ||
return r.pkgPath | ||
} | ||
|
||
func (r Realm) IsUser() bool { | ||
return r.pkgPath == "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package std | ||
|
||
type Realm struct { | ||
addr Address | ||
pkgPath string | ||
} | ||
|
||
func (r Realm) Addr() Address { | ||
return r.addr | ||
} | ||
|
||
func (r Realm) PkgPath() string { | ||
return r.pkgPath | ||
} | ||
|
||
func (r Realm) IsUser() bool { | ||
return r.pkgPath == "" | ||
} |
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
Oops, something went wrong.