Skip to content

Commit

Permalink
feat(GatewayV3): added gateway v3 class
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed May 13, 2024
1 parent 55290c7 commit 1bb6ddc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/GatewayV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ import {
parameterChecker,
} from './utils/helper';
import { PDA } from './v3/pda/pda';
import { Auth } from './v3/auth/auth';
import { DataModel } from './v3/data-model/data-model';
import { Organization } from './v3/organization/organization';
import { Proof } from './v3/proof/proof';
import { Request } from './v3/request/request';
import { User } from './v3/user/user';

export class GatewayV3 {
private sdk: Sdk;
private pda: PDA;
public pda: PDA;
public auth: Auth;
public dataModel: DataModel;
public organization: Organization;
public proof: Proof;
public request: Request;
public user: User;

constructor({
apiKey,
Expand All @@ -32,5 +44,11 @@ export class GatewayV3 {

this.sdk = getSdk(client, logging ? clientTimingWrapper : undefined);
this.pda = new PDA(this.sdk);
this.auth = new Auth(this.sdk);
this.dataModel = new DataModel(this.sdk);
this.organization = new Organization(this.sdk);
this.proof = new Proof(this.sdk);
this.request = new Request(this.sdk);
this.user = new User(this.sdk);
}
}

0 comments on commit 1bb6ddc

Please sign in to comment.