Instantly share code, notes, and snippets.
Save moul/f28f4b12864fd40a2ca6b6c20294da27 to your computer and use it in GitHub Desktop.
std.gno
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
| // just reorganizing the current `std` into "categories", not yet improving the API. | |
| // chain | |
| typeAddressList []Address | |
| funcNewAddressList()*AddressList | |
| typeAddressSetinterface{... } | |
| typeRawAddress [RawAddressSize]byte | |
| constRawAddressSize=20 | |
| funcGetChainID()string | |
| funcGetHeight()int64 | |
| typeAddressstring | |
| funcDerivePkgAddr(pkgPathstring)Address | |
| funcEncodeBech32(prefixstring,bz [20]byte)Address | |
| funcGetCallerAt(nint)Address | |
| funcGetOrigCaller()Address | |
| funcGetOrigPkgAddr()Address | |
| funcDecodeBech32(addrAddress) (prefixstring,bz [20]byte,okbool) | |
| funcEmit(typstring,attrs...string) | |
| // chain/runtime | |
| typeRealmstruct{... } | |
| funcCurrentRealm()Realm | |
| funcPrevRealm()Realm | |
| funcIsOriginCall()bool | |
| funcAssertOriginCall() | |
| // chain/banker | |
| typeBankerinterface{... } | |
| funcGetBanker(btBankerType)Banker | |
| typeBankerTypeuint8 | |
| constBankerTypeReadonlyBankerType=iota ... | |
| typeCoinstruct{... } | |
| funcNewCoin(denomstring,amountint64)Coin | |
| typeCoins []Coin | |
| funcGetOrigSend()Coins | |
| funcNewCoins(coins...Coin)Coins | |
| // chain/params | |
| funcSetParamBool(keystring,valbool) | |
| funcSetParamBytes(keystring,val []byte) | |
| funcSetParamInt64(keystring,valint64) | |
| funcSetParamString(keystring,valstring) | |
| funcSetParamUint64(keystring,valuint64) |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment