validator
Class in @sentio/sdk/sui/builtin › _0x3
Defined in @sentio/sdk/sui/builtin › _0x3
Event and struct types of this Move module: @typemove/sui › 0x3::validator
Extends
Constructors
Constructor
new validator(options: SuiBindOptions): validator;Parameters
| Parameter | Type |
|---|---|
options | SuiBindOptions |
Returns
validator
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<Data_SuiCall>[] | [] | SuiBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | SuiBaseProcessor.coder |
config | public | IndexConfigure | undefined | SuiBaseProcessor.config |
eventHandlers | public | EventHandler<Data_SuiEvent>[] | [] | SuiBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | SuiBaseProcessor.moduleName |
objectChangeHandlers | public | ObjectChangeHandler<Data_SuiObjectChange>[] | [] | SuiBaseProcessor.objectChangeHandlers |
DEFAULT_OPTIONS | static | SuiBindOptions | undefined | - |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEvent()
onEvent(handler: (event: Event, ctx: SuiContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: Event, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, Event> |
Returns
this
Inherited from
onEventConvertingToFungibleStakedSuiEvent()
onEventConvertingToFungibleStakedSuiEvent(
func: (event: ConvertingToFungibleStakedSuiEventInstance, ctx: SuiContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, ConvertingToFungibleStakedSuiEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): validator;Parameters
| Parameter | Type |
|---|---|
func | (event: ConvertingToFungibleStakedSuiEventInstance, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, ConvertingToFungibleStakedSuiEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
validator
onEventRedeemingFungibleStakedSuiEvent()
onEventRedeemingFungibleStakedSuiEvent(
func: (event: RedeemingFungibleStakedSuiEventInstance, ctx: SuiContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, RedeemingFungibleStakedSuiEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): validator;Parameters
| Parameter | Type |
|---|---|
func | (event: RedeemingFungibleStakedSuiEventInstance, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, RedeemingFungibleStakedSuiEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
validator
onEventStakingRequestEvent()
onEventStakingRequestEvent(
func: (event: StakingRequestEventInstance, ctx: SuiContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, StakingRequestEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): validator;Parameters
| Parameter | Type |
|---|---|
func | (event: StakingRequestEventInstance, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, StakingRequestEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
validator
onEventUnstakingRequestEvent()
onEventUnstakingRequestEvent(
func: (event: UnstakingRequestEventInstance, ctx: SuiContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UnstakingRequestEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): validator;Parameters
| Parameter | Type |
|---|---|
func | (event: UnstakingRequestEventInstance, ctx: SuiContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UnstakingRequestEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
validator
onTransactionBlock()
onTransactionBlock(
handler: (transaction: ExecutedTransaction, ctx: SuiContext) => PromiseOrVoid,
filter?: TransactionFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, ExecutedTransaction>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: ExecutedTransaction, ctx: SuiContext) => PromiseOrVoid |
filter? | TransactionFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, ExecutedTransaction> |
Returns
this
Inherited from
SuiBaseProcessor.onTransactionBlock
bind()
static bind(options?: Partial<SuiBindOptions>): validator;For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.
Parameters
| Parameter | Type |
|---|---|
options | Partial<SuiBindOptions> |
Returns
validator