• Preparing search index...
  • The search index is not available
lootex - v0.2.0
  • lootex
  • api/endpoints/asset
  • createAssetEndpoints

Function createAssetEndpoints

  • createAssetEndpoints(request): {
        getAsset: ((assetId: string) => Promise<Asset>);
        getAssetLikes: ((params: GetAssetLikesParams) => Promise<GetAssetLikesResponse>);
        getAssetsCount: ((params: GetAssetCountParams) => Promise<GetAssetCountResponse>);
        syncAsset: ((assetId: string) => Promise<unknown>);
        syncCollectionMetadata: ((params: SyncCollectionMetadataParams) => Promise<unknown>);
        syncContractAssets: ((contractId: string) => Promise<unknown>);
        syncMyAssets: (() => Promise<unknown>);
    }
  • Parameters

    • request: (<ResponseBody>(__namedParameters: RequestOptions) => Promise<ResponseBody>)
        • <ResponseBody>(__namedParameters): Promise<ResponseBody>
        • Type Parameters

          • ResponseBody

          Parameters

          • __namedParameters: RequestOptions

          Returns Promise<ResponseBody>

    Returns {
        getAsset: ((assetId: string) => Promise<Asset>);
        getAssetLikes: ((params: GetAssetLikesParams) => Promise<GetAssetLikesResponse>);
        getAssetsCount: ((params: GetAssetCountParams) => Promise<GetAssetCountResponse>);
        syncAsset: ((assetId: string) => Promise<unknown>);
        syncCollectionMetadata: ((params: SyncCollectionMetadataParams) => Promise<unknown>);
        syncContractAssets: ((contractId: string) => Promise<unknown>);
        syncMyAssets: (() => Promise<unknown>);
    }

    • getAsset: ((assetId: string) => Promise<Asset>)
        • (assetId): Promise<Asset>
        • Parameters

          • assetId: string

          Returns Promise<Asset>

    • getAssetLikes: ((params: GetAssetLikesParams) => Promise<GetAssetLikesResponse>)
        • (params): Promise<GetAssetLikesResponse>
        • Parameters

          • params: GetAssetLikesParams

          Returns Promise<GetAssetLikesResponse>

    • getAssetsCount: ((params: GetAssetCountParams) => Promise<GetAssetCountResponse>)
        • (params): Promise<GetAssetCountResponse>
        • Parameters

          • params: GetAssetCountParams

          Returns Promise<GetAssetCountResponse>

    • syncAsset: ((assetId: string) => Promise<unknown>)
        • (assetId): Promise<unknown>
        • Parameters

          • assetId: string

          Returns Promise<unknown>

    • syncCollectionMetadata: ((params: SyncCollectionMetadataParams) => Promise<unknown>)
        • (params): Promise<unknown>
        • Parameters

          • params: SyncCollectionMetadataParams

          Returns Promise<unknown>

    • syncContractAssets: ((contractId: string) => Promise<unknown>)
        • (contractId): Promise<unknown>
        • Parameters

          • contractId: string

          Returns Promise<unknown>

    • syncMyAssets: (() => Promise<unknown>)
        • (): Promise<unknown>
        • Returns Promise<unknown>

    • Defined in packages/lootex/src/api/endpoints/asset.ts:58

Settings

Member Visibility
lootex - v0.2.0
  • Loading...

Generated using TypeDoc