paginateMoveModuleLists

abstract suspend fun paginateMoveModuleLists(packageId: String, module: String, hasMoreFriends: Boolean, hasMoreStructs: Boolean, hasMoreFunctions: Boolean, hasMoreEnums: Boolean, afterFriends: String? = null, afterStructs: String? = null, afterFunctions: String? = null, afterEnums: String? = null): Result<PaginateMoveModuleListsQuery.Data?, SuiError>

Fetches paginated lists of components within a Move module.

This function allows for independent pagination of each component list (friends, structs, functions, enums) by using boolean flags to selectively include them in the query.

Return

A Result which is either:

  • Ok: Containing a nullable PaginateMoveModuleListsQuery.Data object with the requested paginated lists of the module's components.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

packageId

The ID of the package containing the module.

module

The name of the module.

hasMoreFriends

A flag to control whether to fetch the friends list. Set to true to include it in the response.

hasMoreStructs

A flag to control whether to fetch the structs list. Set to true to include it in the response.

hasMoreFunctions

A flag to control whether to fetch the functions list. Set to true to include it in the response.

hasMoreEnums

A flag to control whether to fetch the enums list. Set to true to include it in the response.

afterFriends

An optional cursor to paginate through the friends list.

afterStructs

An optional cursor to paginate through the structs list.

afterFunctions

An optional cursor to paginate through the functions list.

afterEnums

An optional cursor to paginate through the enums list.