Skip to content

Commit

Permalink
http method passed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nymd committed Apr 1, 2021
1 parent fe1bc85 commit 2e533be
Show file tree
Hide file tree
Showing 12 changed files with 300 additions and 225 deletions.
5 changes: 3 additions & 2 deletions dist/controllers/v1.controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FilterExcludingWhere } from '@loopback/repository';
import { Applications, LoadBalancers } from '../models';
import { ApplicationsRepository, BlockchainsRepository, LoadBalancersRepository } from '../repositories';
import { Pocket, Configuration } from '@pokt-network/pocket-js';
import { Pocket, Configuration, HTTPMethod } from '@pokt-network/pocket-js';
import { Redis } from 'ioredis';
import { Pool as PGPool } from 'pg';
import { CherryPicker } from '../services/cherry-picker';
Expand All @@ -13,6 +13,7 @@ export declare class V1Controller {
private origin;
private userAgent;
private contentType;
private httpMethod;
private relayPath;
private relayRetries;
private pocket;
Expand All @@ -29,7 +30,7 @@ export declare class V1Controller {
cherryPicker: CherryPicker;
metricsRecorder: MetricsRecorder;
pocketRelayer: PocketRelayer;
constructor(secretKey: string, host: string, origin: string, userAgent: string, contentType: string, relayPath: string, relayRetries: number, pocket: Pocket, pocketConfiguration: Configuration, redis: Redis, pgPool: PGPool, databaseEncryptionKey: string, processUID: string, fallbackURL: string, requestID: string, applicationsRepository: ApplicationsRepository, blockchainsRepository: BlockchainsRepository, loadBalancersRepository: LoadBalancersRepository);
constructor(secretKey: string, host: string, origin: string, userAgent: string, contentType: string, httpMethod: HTTPMethod, relayPath: string, relayRetries: number, pocket: Pocket, pocketConfiguration: Configuration, redis: Redis, pgPool: PGPool, databaseEncryptionKey: string, processUID: string, fallbackURL: string, requestID: string, applicationsRepository: ApplicationsRepository, blockchainsRepository: BlockchainsRepository, loadBalancersRepository: LoadBalancersRepository);
/**
* Load Balancer Relay
*
Expand Down
36 changes: 19 additions & 17 deletions dist/controllers/v1.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/controllers/v1.controller.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sequence.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sequence.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/services/pocket-relayer.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CherryPicker } from '../services/cherry-picker';
import { MetricsRecorder } from '../services/metrics-recorder';
import { RelayResponse, Pocket, Configuration } from '@pokt-network/pocket-js';
import { RelayResponse, Pocket, Configuration, HTTPMethod } from '@pokt-network/pocket-js';
import { Redis } from 'ioredis';
import { BlockchainsRepository } from '../repositories';
import { Applications } from '../models';
Expand Down Expand Up @@ -35,8 +35,8 @@ export declare class PocketRelayer {
checkDebug: boolean;
fallbackURL: string;
});
sendRelay(rawData: object, relayPath: string, application: Applications, requestID: string, requestTimeOut?: number, overallTimeOut?: number, relayRetries?: number): Promise<string | Error>;
_sendRelay(data: string, relayPath: string, requestID: string, application: Applications, requestTimeOut: number | undefined, blockchain: string, blockchainEnforceResult: string): Promise<RelayResponse | Error>;
sendRelay(rawData: object, relayPath: string, httpMethod: HTTPMethod, application: Applications, requestID: string, requestTimeOut?: number, overallTimeOut?: number, relayRetries?: number): Promise<string | Error>;
_sendRelay(data: string, relayPath: string, httpMethod: HTTPMethod, requestID: string, application: Applications, requestTimeOut: number | undefined, blockchain: string, blockchainEnforceResult: string): Promise<RelayResponse | Error>;
parseMethod(parsedRawData: any): string;
updateConfiguration(requestTimeOut: number): Configuration;
loadBlockchain(): Promise<string[]>;
Expand Down
10 changes: 5 additions & 5 deletions dist/services/pocket-relayer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e533be

Please sign in to comment.