Skip to content

Commit

Permalink
Client fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldizsar Mezei committed Dec 13, 2023
1 parent 5d18b74 commit af91a18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/https/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import axios from 'axios';
import { ProjectWrapper } from './https';

export const https = (origin = Build5.PROD) => new HttpsWrapper(origin);
export const https = (origin: string = Build5.PROD) => new HttpsWrapper(origin as Build5);

class HttpsWrapper {
constructor(private readonly origin: Build5) {}
Expand Down
10 changes: 8 additions & 2 deletions packages/client/src/otr/datasets/common.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
import { Dataset, Network } from '@build-5/interfaces';
import { v4 as uuid } from 'uuid';
import { AuctionOtrDataset } from './AuctionOtrDataset';
import { AwardOtrDataset } from './AwardOtrDataset';
import { MemberOtrDataset } from './MemberOtrDataset';
import { NftOtrDataset } from './NftOtrDataset';
import { ProposalOtrDataset } from './ProposalOtrDataset';
import { SpaceOtrDataset } from './SpaceOtrDataset';
import { StamptOtrDataset } from './StampOtrDataset';
import { TokenOtrDataset } from './TokenOtrDataset';

// prettier-ignore
export type DatasetType<T extends Dataset> =
T extends Dataset.AUCTION ? AuctionOtrDataset:
T extends Dataset.AWARD ? AwardOtrDataset:
T extends Dataset.MEMBER ? MemberOtrDataset:
T extends Dataset.SPACE ? SpaceOtrDataset:
T extends Dataset.TOKEN ? TokenOtrDataset:
T extends Dataset.NFT ? NftOtrDataset:
T extends Dataset.PROPOSAL ? ProposalOtrDataset:
T extends Dataset.SPACE ? SpaceOtrDataset:
T extends Dataset.STAMP ? StamptOtrDataset:
T extends Dataset.TOKEN ? TokenOtrDataset:
unknown;

export interface INativeToken {
Expand Down

0 comments on commit af91a18

Please sign in to comment.