Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@moul
Last activeNovember 7, 2024 17:25
    • Star(0)You must be signed in to star a gist
    • Fork(1)You must be signed in to fork a gist
    Save moul/f28f4b12864fd40a2ca6b6c20294da27 to your computer and use it in GitHub Desktop.
    std.gno
    // 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

    [8]ページ先頭

    ©2009-2025 Movatter.jp