Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
remove get projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihirota committed Feb 23, 2024
1 parent f3c8509 commit f609cee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 60 deletions.
16 changes: 0 additions & 16 deletions examples/getProjects.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/ImmutableX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,31 +469,6 @@ export class ImmutableX {
});
}

/**
* Get Projects owned by the given User
* @param ethSigner - the L1 signer
* @param pageSize - the page size of the result
* @param cursor - the cursor
* @param orderBy - the property to sort by
* @param direction - direction to sort (asc/desc)
* @returns a promise that resolves with the requested Projects
* @throws {@link index.IMXError}
*/
public async getProjects(
ethSigner: EthSigner,
pageSize?: number,
cursor?: string,
orderBy?: string,
direction?: string,
) {
return this.workflows
.getProjects(ethSigner, pageSize, cursor, orderBy, direction)
.then(res => res.data)
.catch(err => {
throw formatError(err);
});
}

/**
* Get the token Balances of the User
* @param request - the request object containing the parameters to be provided in the API request
Expand Down
19 changes: 0 additions & 19 deletions src/workflows/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,25 +372,6 @@ export class Workflows {
});
}

public async getProjects(
ethSigner: EthSigner,
pageSize?: number,
cursor?: string,
orderBy?: string,
direction?: string,
) {
const imxAuthHeaders = await generateIMXAuthorisationHeaders(ethSigner);

return this.projectsApi.getProjects({
iMXSignature: imxAuthHeaders.signature,
iMXTimestamp: imxAuthHeaders.timestamp,
pageSize,
cursor,
orderBy,
direction,
});
}

public async createCollection(
ethSigner: EthSigner,
createCollectionRequest: CreateCollectionRequest,
Expand Down

0 comments on commit f609cee

Please sign in to comment.