aptos_governance
Class in @sentio/sdk/aptos/builtin › _0x1
Defined in @sentio/sdk/aptos/builtin › _0x1
Event and struct types of this Move module: @typemove/aptos › 0x1::aptos_governance
Extends
Constructors
Constructor
new aptos_governance(options: AptosBindOptions): aptos_governance;Parameters
| Parameter | Type |
|---|---|
options | AptosBindOptions |
Returns
aptos_governance
Overrides
AptosBaseProcessor.constructor
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
callHandlers | public | CallHandler<AptCall>[] | [] | AptosBaseProcessor.callHandlers |
coder | public | MoveCoder | undefined | AptosBaseProcessor.coder |
config | public | IndexConfigure | undefined | AptosBaseProcessor.config |
eventHandlers | public | EventHandler<AptEvent>[] | [] | AptosBaseProcessor.eventHandlers |
moduleName | readonly | string | undefined | AptosBaseProcessor.moduleName |
resourceChangeHandlers | public | ResourceChangeHandler<AptResource>[] | [] | AptosBaseProcessor.resourceChangeHandlers |
transactionIntervalHandlers | public | TransactionIntervalHandler[] | [] | AptosBaseProcessor.transactionIntervalHandlers |
DEFAULT_OPTIONS | static | AptosBindOptions | undefined | - |
Methods
getChainId()
getChainId(): string;Returns
string
Inherited from
onEntryAddApprovedScriptHashScript()
onEntryAddApprovedScriptHashScript(
func: (call: AddApprovedScriptHashScriptPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, AddApprovedScriptHashScriptPayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: AddApprovedScriptHashScriptPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, AddApprovedScriptHashScriptPayload> |
Returns
aptos_governance
onEntryBatchPartialVote()
onEntryBatchPartialVote(
func: (call: BatchPartialVotePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, BatchPartialVotePayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: BatchPartialVotePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, BatchPartialVotePayload> |
Returns
aptos_governance
onEntryBatchVote()
onEntryBatchVote(
func: (call: BatchVotePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, BatchVotePayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: BatchVotePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, BatchVotePayload> |
Returns
aptos_governance
onEntryCreateProposal()
onEntryCreateProposal(
func: (call: CreateProposalPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalPayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: CreateProposalPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateProposalPayload> |
Returns
aptos_governance
onEntryCreateProposalV2()
onEntryCreateProposalV2(
func: (call: CreateProposalV2Payload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalV2Payload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: CreateProposalV2Payload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateProposalV2Payload> |
Returns
aptos_governance
onEntryForceEndEpoch()
onEntryForceEndEpoch(
func: (call: ForceEndEpochPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, ForceEndEpochPayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: ForceEndEpochPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, ForceEndEpochPayload> |
Returns
aptos_governance
onEntryForceEndEpochTestOnly()
onEntryForceEndEpochTestOnly(
func: (call: ForceEndEpochTestOnlyPayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, ForceEndEpochTestOnlyPayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: ForceEndEpochTestOnlyPayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, ForceEndEpochTestOnlyPayload> |
Returns
aptos_governance
onEntryPartialVote()
onEntryPartialVote(
func: (call: PartialVotePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, PartialVotePayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: PartialVotePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, PartialVotePayload> |
Returns
aptos_governance
onEntryReconfigure()
onEntryReconfigure(
func: (call: ReconfigurePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, ReconfigurePayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: ReconfigurePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, ReconfigurePayload> |
Returns
aptos_governance
onEntryVote()
onEntryVote(
func: (call: VotePayload, ctx: AptosContext) => void,
filter?: CallFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, VotePayload>
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (call: VotePayload, ctx: AptosContext) => void |
filter? | CallFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, VotePayload> |
Returns
aptos_governance
onEvent()
onEvent(handler: (event: Event, ctx: AptosContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: Event, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, Event> |
Returns
this
Inherited from
onEventCreateProposal()
onEventCreateProposal(
func: (event: CreateProposalInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: CreateProposalInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateProposalInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onEventCreateProposalEvent()
onEventCreateProposalEvent(
func: (event: CreateProposalEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, CreateProposalEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: CreateProposalEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, CreateProposalEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onEventUpdateConfig()
onEventUpdateConfig(
func: (event: UpdateConfigInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateConfigInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateConfigInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateConfigInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onEventUpdateConfigEvent()
onEventUpdateConfigEvent(
func: (event: UpdateConfigEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, UpdateConfigEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: UpdateConfigEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, UpdateConfigEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onEventVote()
onEventVote(
func: (event: VoteInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, VoteInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: VoteInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, VoteInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onEventVoteEvent()
onEventVoteEvent(
func: (event: VoteEventInstance, ctx: AptosContext) => void,
handlerOptions?: HandlerOptions<MoveFetchConfig, VoteEventInstance>,
eventFilter?: Omit<EventFilter, "account" | "type">
): aptos_governance;Parameters
| Parameter | Type |
|---|---|
func | (event: VoteEventInstance, ctx: AptosContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, VoteEventInstance> |
eventFilter? | Omit<EventFilter, "account" | "type"> |
Returns
aptos_governance
onResourceChange()
Call Signature
onResourceChange<T>(
handler: (changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid,
typeDesc:
| string
| TypeDescriptor<T>,
handlerOptions?: HandlerOptions<object, ResourceChange<T>[]>
): this;Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
handler | (changes: ResourceChange<T>[], ctx: AptosResourcesContext) => PromiseOrVoid |
typeDesc | | string | TypeDescriptor<T> |
handlerOptions? | HandlerOptions<object, ResourceChange<T>[]> |
Returns
this
Inherited from
AptosBaseProcessor.onResourceChange
Call Signature
onResourceChange<Descs extends readonly (
| string
| TypeDescriptor<any>)[]>(
handler: (changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid,
typeDesc: [...Descs[]],
handlerOptions?: HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]>
): this;Type Parameters
| Type Parameter |
|---|
Descs extends readonly ( | string | TypeDescriptor<any>)[] |
Parameters
| Parameter | Type |
|---|---|
handler | (changes: ResourceChange<ExtractDescriptorType<Descs[number]>>[], ctx: AptosResourcesContext) => PromiseOrVoid |
typeDesc | [...Descs[]] |
handlerOptions? | HandlerOptions<object, ResourceChange<ExtractDescriptorType<Descs[number]>>[]> |
Returns
this
Inherited from
AptosBaseProcessor.onResourceChange
onTimeInterval()
onTimeInterval(
handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid | undefined |
timeIntervalInMinutes | number | 60 |
backfillTimeIntervalInMinutes | number | 240 |
handlerOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> | undefined |
Returns
this
Inherited from
AptosBaseProcessor.onTimeInterval
onTransaction()
onTransaction(
handler: (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid,
transactionFilter?: object,
handleOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: UserTransactionResponse, ctx: AptosContext) => PromiseOrVoid |
transactionFilter? | { includeFailed?: boolean; sender?: string; } |
transactionFilter.includeFailed? | boolean |
transactionFilter.sender? | string |
handleOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> |
Returns
this
Inherited from
AptosBaseProcessor.onTransaction
onVersionInterval()
onVersionInterval(
handler: (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid,
versionInterval?: number,
backfillVersionInterval?: number,
handlerOptions?: HandlerOptions<MoveFetchConfig, UserTransactionResponse>
): this;Parameters
| Parameter | Type | Default value |
|---|---|---|
handler | (transaction: UserTransactionResponse, context: AptosContext) => PromiseOrVoid | undefined |
versionInterval | number | 100000 |
backfillVersionInterval | number | 400000 |
handlerOptions? | HandlerOptions<MoveFetchConfig, UserTransactionResponse> | undefined |
Returns
this
Inherited from
AptosBaseProcessor.onVersionInterval
bind()
static bind(options?: Partial<AptosBindOptions>): aptos_governance;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<AptosBindOptions> |
Returns
aptos_governance