Class SuiObjectProcessor

Hierarchy

  • SuiBaseObjectOrAddressProcessorInternal<
        (
            self: SuiMoveObject,
            dynamicFieldObjects: SuiMoveObject[],
            ctx: SuiObjectContext,
        ) => PromiseOrVoid,
    >
    • SuiObjectProcessor

Constructors

Properties

config: IndexConfigure
objectChangeHandlers: ObjectChangeHandler<Data_SuiObjectChange>[] = []
objectHandlers: ObjectHandler[] = []
ownerType: MoveOwnerType
templateId: undefined | number

Methods

  • Parameters

    • handler: (
          self: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          },
          dynamicFieldObjects: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          }[],
          ctx: SuiObjectContext,
      ) => PromiseOrVoid
    • data: Data_SuiObject
    • ctx: SuiObjectContext

    Returns Promise<any>

  • Parameters

    • handler: (
          self: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          },
          dynamicFieldObjects: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          }[],
          ctx: SuiObjectContext,
      ) => PromiseOrVoid
    • checkpointInterval: number = 100000
    • backfillCheckpointInterval: number = 400000
    • Optionaltype: string
    • OptionalfetchConfig: Partial<MoveAccountFetchConfig>

    Returns this

  • Parameters

    • handler: (
          self: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          },
          dynamicFieldObjects: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          }[],
          ctx: SuiObjectContext,
      ) => PromiseOrVoid
    • timeInterval: undefined | HandleInterval
    • checkpointInterval: undefined | HandleInterval
    • type: undefined | string
    • fetchConfig: undefined | Partial<MoveAccountFetchConfig>

    Returns this

  • Parameters

    • handler: (
          self: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          },
          dynamicFieldObjects: {
              dataType: "moveObject";
              fields: MoveStruct;
              hasPublicTransfer: boolean;
              type: string;
          }[],
          ctx: SuiObjectContext,
      ) => PromiseOrVoid
    • timeIntervalInMinutes: number = 60
    • backfillTimeIntervalInMinutes: number = 240
    • Optionaltype: string
    • OptionalfetchConfig: Partial<MoveAccountFetchConfig>

    Returns this