Documentation ¶
Index ¶
- func BuildPrePostTransactionHookMsg(tx sdk.Tx, isPreTx bool) ([]byte, error)
- func BuildPreTransactionHookMsg(tx sdk.Tx) ([]byte, error)
- func GetMultiSigSignBytes(multiPK multisig.PubKey, sig *signing.MultiSignatureData, ...) (signersBytes [][]byte, err error)
- func GetSignBytesArr(pubKey cryptotypes.PubKey, signerData authsigning.SignerData, ...) (signersBytes [][]byte, err error)
- func GetSignerAddrStrings(pubKey cryptotypes.PubKey) ([]string, error)
- type PreTransactionHookDecorator
- type SmartAccountAuthDecorator
- func (sad SmartAccountAuthDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
- func (sad SmartAccountAuthDecorator) CustomAuthVerify(ctx sdk.Context, authMsgs []*types.AuthorizationMsg, senders []string, ...) (bool, error)
- func (sad SmartAccountAuthDecorator) GetParamsForCustomAuthVerification(ctx sdk.Context, sigTx authsigning.SigVerifiableTx, account sdk.AccAddress) (senderAddrs []string, signatureBzs [][]byte, signedBzs [][]byte, err error)
- type SmartAccountKeeper
- type WasmKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrePostTransactionHookMsg ¶
TODO: to refactor
func GetMultiSigSignBytes ¶
func GetMultiSigSignBytes(multiPK multisig.PubKey, sig *signing.MultiSignatureData, signerData authsigning.SignerData, handler authsigning.SignModeHandler, tx sdk.Tx) (signersBytes [][]byte, err error)
func GetSignBytesArr ¶
func GetSignBytesArr(pubKey cryptotypes.PubKey, signerData authsigning.SignerData, sigData signing.SignatureData, handler authsigning.SignModeHandler, tx sdk.Tx) (signersBytes [][]byte, err error)
func GetSignerAddrStrings ¶
func GetSignerAddrStrings(pubKey cryptotypes.PubKey) ([]string, error)
Types ¶
type PreTransactionHookDecorator ¶
type PreTransactionHookDecorator struct {
// contains filtered or unexported fields
}
func NewPreTransactionHookDecorator ¶
func NewPreTransactionHookDecorator(sak SmartAccountKeeper, wk WasmKeeper) PreTransactionHookDecorator
func (PreTransactionHookDecorator) AnteHandle ¶
type SmartAccountAuthDecorator ¶
type SmartAccountAuthDecorator struct {
// contains filtered or unexported fields
}
SmartAccountAuthDecorator does authentication for smart accounts
func NewSmartAccountAuthDecorator ¶
func NewSmartAccountAuthDecorator( sak SmartAccountKeeper, wk WasmKeeper, ak authante.AccountKeeper, sigGasConsumer func(meter sdk.GasMeter, sig signing.SignatureV2, params authtypes.Params) error, signModeHandler authsigning.SignModeHandler, ) SmartAccountAuthDecorator
func (SmartAccountAuthDecorator) AnteHandle ¶
func (sad SmartAccountAuthDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle checks if the tx provides sufficient fee to cover the required fee from the fee market.
func (SmartAccountAuthDecorator) CustomAuthVerify ¶
func (SmartAccountAuthDecorator) GetParamsForCustomAuthVerification ¶
func (sad SmartAccountAuthDecorator) GetParamsForCustomAuthVerification( ctx sdk.Context, sigTx authsigning.SigVerifiableTx, account sdk.AccAddress, ) ( senderAddrs []string, signatureBzs [][]byte, signedBzs [][]byte, err error, )
type SmartAccountKeeper ¶
type WasmKeeper ¶
Click to show internal directories.
Click to hide internal directories.