Documentation ¶
Index ¶
- Constants
- Variables
- func GetGasMeterSetter(aclkeeper aclkeeper.Keeper) func(bool, sdk.Context, uint64, sdk.Tx) sdk.Context
- type ACLWasmDependencyDecorator
- func (ad ACLWasmDependencyDecorator) AnteDeps(txDeps []sdkacltypes.AccessOperation, tx sdk.Tx, txIndex int, ...) (newTxDeps []sdkacltypes.AccessOperation, err error)
- func (ad ACLWasmDependencyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
- func (ad ACLWasmDependencyDecorator) SenderMatchesContractAdmin(ctx sdk.Context, msg *acltypes.MsgRegisterWasmDependency) (bool, error)
- type GaslessDecorator
- type PriorityDecorator
- type TracedAnteDecorator
Constants ¶
View Source
const ( GasMultiplierNumerator uint64 = 1 DefaultGasMultiplierDenominator uint64 = 1 WasmCorrectDependencyDiscountDenominator uint64 = 2 )
Variables ¶
View Source
var WhitelistedGaslessCancellationAddrs = []sdk.AccAddress{}
WhitelistedGaslessCancellationAddrs TODO: migrate this into params state
Functions ¶
Types ¶
type ACLWasmDependencyDecorator ¶
type ACLWasmDependencyDecorator struct {
// contains filtered or unexported fields
}
func NewACLWasmDependencyDecorator ¶
func NewACLWasmDependencyDecorator(aclKeeper aclkeeper.Keeper, wasmKeeper wasm.Keeper) ACLWasmDependencyDecorator
func (ACLWasmDependencyDecorator) AnteDeps ¶
func (ad ACLWasmDependencyDecorator) AnteDeps(txDeps []sdkacltypes.AccessOperation, tx sdk.Tx, txIndex int, next sdk.AnteDepGenerator) (newTxDeps []sdkacltypes.AccessOperation, err error)
func (ACLWasmDependencyDecorator) AnteHandle ¶
func (ACLWasmDependencyDecorator) SenderMatchesContractAdmin ¶
func (ad ACLWasmDependencyDecorator) SenderMatchesContractAdmin(ctx sdk.Context, msg *acltypes.MsgRegisterWasmDependency) (bool, error)
type GaslessDecorator ¶
type GaslessDecorator struct {
// contains filtered or unexported fields
}
func NewGaslessDecorator ¶
func NewGaslessDecorator(wrapped []sdk.AnteFullDecorator, oracleKeeper oraclekeeper.Keeper) GaslessDecorator
func (GaslessDecorator) AnteDeps ¶
func (gd GaslessDecorator) AnteDeps(txDeps []sdkacltypes.AccessOperation, tx sdk.Tx, txIndex int, next sdk.AnteDepGenerator) (newTxDeps []sdkacltypes.AccessOperation, err error)
func (GaslessDecorator) AnteHandle ¶
type PriorityDecorator ¶
type PriorityDecorator struct{}
func NewPriorityDecorator ¶
func NewPriorityDecorator() PriorityDecorator
func (PriorityDecorator) AnteHandle ¶
func (pd PriorityDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
Assigns higher priority to certain types of transactions including oracle
type TracedAnteDecorator ¶
type TracedAnteDecorator struct {
// contains filtered or unexported fields
}
func NewTracedAnteDecorator ¶
func NewTracedAnteDecorator(wrapped sdk.AnteDecorator, tracingInfo *tracing.Info) TracedAnteDecorator
func (TracedAnteDecorator) AnteHandle ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.