github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/stdlibs/std/std.gno (about) 1 package std 2 3 func AssertOriginCall() // injected 4 func IsOriginCall() bool // injected 5 func TestCurrentRealm() string // injected 6 func TestSkipHeights(count int64) // injected 7 func ClearStoreCache() // injected 8 9 func TestSetOrigCaller(addr Address) { testSetOrigCaller(string(addr)) } 10 func TestSetOrigPkgAddr(addr Address) { testSetOrigPkgAddr(string(addr)) } 11 func TestSetPrevRealm(pkgPath string) { testSetPrevRealm(pkgPath) } 12 func TestSetPrevAddr(addr Address) { testSetPrevAddr(string(addr)) } 13 func TestSetOrigSend(sent, spent Coins) { 14 sentDenom, sentAmt := sent.expandNative() 15 spentDenom, spentAmt := spent.expandNative() 16 testSetOrigSend(sentDenom, sentAmt, spentDenom, spentAmt) 17 } 18 func TestIssueCoins(addr Address, coins Coins) { 19 denom, amt := coins.expandNative() 20 testIssueCoins(string(addr), denom, amt) 21 } 22 23 // GetCallerAt calls callerAt, which we overwrite 24 func callerAt(n int) string 25 26 // native bindings 27 func testSetOrigCaller(s string) 28 func testSetOrigPkgAddr(s string) 29 func testSetPrevRealm(s string) 30 func testSetPrevAddr(s string) 31 func testSetOrigSend( 32 sentDenom []string, sentAmt []int64, 33 spentDenom []string, spentAmt []int64) 34 func testIssueCoins(addr string, denom []string, amt []int64)