Skip to content

Commit

Permalink
Merge pull request #4 from pranav-dblocked/platformId-changes
Browse files Browse the repository at this point in the history
Updated Types with PlatformId Parameter
  • Loading branch information
pranav-dblocked authored Apr 10, 2024
2 parents 3cc4e97 + cc0e0a7 commit a34fe94
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/disputes/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TransactionHash } from '../types';

export interface IDispute {
getArbitrationCost(): Promise<any>;
getArbitrationCost(platformId?: number): Promise<any>;
setPrice(value: number | string): Promise<TransactionHash>;
}
5 changes: 3 additions & 2 deletions packages/client/src/escrow/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ export interface IEscrow {
serviceId: string,
proposalId: string,
metaEvidenceCid: string,
platformId?: number
): Promise<ClientTransactionResponse>;
release(serviceId: string, amount: bigint, userId: number): Promise<any>;
reimburse(serviceId: string, amount: bigint, userId: number): Promise<any>;
release(serviceId: string, amount: bigint, userId: number, platformId?: number): Promise<any>;
reimburse(serviceId: string, amount: bigint, userId: number, platformId?: number): Promise<any>;
getProtocolAndPlatformsFees(
originServicePlatformId: string,
originValidatedProposalPlatformId: string,
Expand Down
14 changes: 7 additions & 7 deletions packages/client/src/platform/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export type Arbitrator = {

export interface IPlatform {
getOne(id: string): Promise<any>;
update(data: PlatformDetails): Promise<ClientTransactionResponse>;
updateOriginServiceFeeRate(value: number): Promise<TransactionHash>;
updateOriginValidatedProposalFeeRate(value: number): Promise<TransactionHash>;
updateServicePostingFee(value: number): Promise<TransactionHash>;
updateProposalPostingFee(value: number): Promise<TransactionHash>;
update(data: PlatformDetails, platformId?: number): Promise<ClientTransactionResponse>;
updateOriginServiceFeeRate(value: number, platformId?: number): Promise<TransactionHash>;
updateOriginValidatedProposalFeeRate(value: number, platformId?: number): Promise<TransactionHash>;
updateServicePostingFee(value: number, platformId?: number): Promise<TransactionHash>;
updateProposalPostingFee(value: number, PlatformId?: number): Promise<TransactionHash>;
getByOwner(address: `0x${string}`): Promise<any>;
mint(platformName: string): Promise<TransactionHash>;
setFeeTimeout(timeout: number): Promise<TransactionHash>;
setFeeTimeout(timeout: number, platformId?: number): Promise<TransactionHash>;
getArbitrators(chainId: NetworkEnum): Arbitrator[];
updateArbitrator(address: `0x${string}`): Promise<TransactionHash>;
updateArbitrator(address: `0x${string}`, platformId?: number): Promise<TransactionHash>;
}
2 changes: 1 addition & 1 deletion packages/client/src/profile/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface IProfile {
upload(profileData: TalentLayerProfile): Promise<string>;
getByAddress(address: `0x${string}`): Promise<any>;
getById(userId: string): Promise<any>;
create(handle: string): Promise<any>;
create(handle: string, platformId?: number): Promise<any>;
update(profileData: TalentLayerProfile, userId: string): Promise<ClientTransactionResponse>;
getBy(params: {
numberPerPage?: number;
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/proposals/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export interface IProposal {
serviceId: string,
rateToken: string,
rateAmount: string,
expirationDate: string
expirationDate: string,
platformId?: number
): Promise<ClientTransactionResponse>;

update(
Expand Down

0 comments on commit a34fe94

Please sign in to comment.