Documentation ¶
Index ¶
- Constants
- Variables
- func AddNewBaseAccount(app *app.App, ctx sdk.Context, addr string, pubKey cryptotypes.PubKey, ...) error
- func AddNewSmartAccount(app *app.App, ctx sdk.Context, addr string, pubKey cryptotypes.PubKey, ...) error
- func GenerateInActivateAccount(app *app.App, ctx sdk.Context, dPubKey []byte, dCodeID uint64, dSalt []byte, ...) (*authtypes.BaseAccount, *codectypes.Any, error)
- func NewBaseAccount(app *app.App, ctx sdk.Context, addr string, pubKey cryptotypes.PubKey, ...) (*authtypes.BaseAccount, error)
- func SetupGenesisTest(t *testing.T) (sdk.Context, *app.App)
- func StoreCodeID(app *app.App, ctx sdk.Context, creator sdk.AccAddress, path string) (uint64, []byte, error)
Constants ¶
View Source
const ( WasmPath1 = "../../tests/smartaccount/wasm/" WasmPath2 = "../../../tests/smartaccount/wasm/" )
Variables ¶
View Source
var ( UserAddr = "cosmos1lg0g3jpu8luawwezcknamz0l003swknjyw9uch" GenesisState = &typesv1.GenesisState{ Params: typesv1.NewParams([]*typesv1.CodeID{{CodeID: 1, Status: true}}, []string(nil), typesv1.DefaultMaxGas), SmartAccountId: typesv1.DefaultSmartAccountId, } )
View Source
var ( DefaultSalt = []byte("test") DefaultMsg = []byte("{}") DefaultCodeID = uint64(1) DefaultPubKey = []byte("{\"@type\":\"/cosmos.crypto.secp256k1.PubKey\",\"key\":\"AnZfdXVALfIcNjpqgzH/4nWsSpP7l5PiCyZAuAWQRBUz\"}") DefaultRPubKery = []byte("{\"@type\":\"/cosmos.crypto.secp256k1.PubKey\",\"key\":\"A/2t0ru/iZ4HoiX0DkTuMy9rC2mMeXmiN6luM3pa+IvT\"}") )
Functions ¶
func AddNewBaseAccount ¶
func AddNewSmartAccount ¶
func NewBaseAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.