Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Nov 5, 2024
1 parent 381130b commit 66b8da1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/@types/Compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ export interface ComputeOutput {
whitelist?: string[]
}

export enum FileObjectType {
URL = 'url',

Check warning on line 64 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'URL' is defined but never used
IPFS = 'ipfs',

Check warning on line 65 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'IPFS' is defined but never used
ARWEAVE = 'arweave'

Check warning on line 66 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'ARWEAVE' is defined but never used
}

export enum EncryptMethod {
AES = 'AES',

Check warning on line 70 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'AES' is defined but never used
ECIES = 'ECIES'

Check warning on line 71 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'ECIES' is defined but never used
Expand All @@ -78,6 +84,7 @@ export interface ComputeAsset {
}

export interface ComputeAlgorithm {
fileObject?: BaseFileObject // C2D v2
documentId?: string
serviceId?: string
meta?: MetadataAlgorithm
Expand Down
3 changes: 2 additions & 1 deletion test/integration/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ export async function handleComputeOrder(
- have validOrder and providerFees -> then order is valid but providerFees are not valid, we need to call reuseOrder and pay only providerFees
- no validOrder -> we need to call startOrder, to pay 1 DT & providerFees
*/
if (order.providerFee && order.providerFee.providerFeeAmount) {
const hasProviderFees = order.providerFee && order.providerFee.providerFeeAmount
if (hasProviderFees && Number(order.providerFee.providerFeeAmount) > 0) {
await approveWei(
payerAccount,
config,
Expand Down

0 comments on commit 66b8da1

Please sign in to comment.