Skip to content

Commit

Permalink
Remove uneeded env var.
Browse files Browse the repository at this point in the history
raress96 committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature.
mp911de Mark Paluch
1 parent f17dc6d commit d667594
Showing 5 changed files with 5 additions and 25 deletions.
6 changes: 2 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -7,14 +7,12 @@ REDIS_URL=127.0.0.1
EVENTS_NOTIFIER_URL=amqp://user:password@rabbitmq:5672
EVENTS_NOTIFIER_QUEUE=queue

CONTRACT_GATEWAY=erd1qqqqqqqqqqqqqpgqvkhh6ex5m0sl0rgxn5790ljsscye0r48kkls7hrlaw
CONTRACT_GAS_SERVICE=erd1qqqqqqqqqqqqqpgq8fmglw6pngxsczmpa0kr3904shnclzsukklsjeykne
CONTRACT_GATEWAY=erd1qqqqqqqqqqqqqpgqvaj9w3g006wgj7avhen3au27datwgk63kklszcamgw
CONTRACT_GAS_SERVICE=erd1qqqqqqqqqqqqqpgqvr340nazahl2r0q7dnqvyakuk909yjvukklsuzx4ar
CONTRACT_ITS=erd1qqqqqqqqqqqqqpgqcv3rhjjrqpl88es4q25lw03hfhpw6s36kklsn6t9a6

CONTRACT_WEGLD_SWAP=erd1qqqqqqqqqqqqqpgqpv09kfzry5y4sj05udcngesat07umyj70n4sa2c0rp

AXELAR_CONTRACT_VOTING_VERIFIER=axelar1gajw625kz8el4ayk8fwpy7r6ew0m7zrg9jdd6grg85fle39shuxqwuaz2k

AXELAR_GMP_API_URL=https://amplifier-devnet-amplifier.devnet.axelar.dev

CHAIN_ID=D
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ export class ApprovalsProcessorService {

for (const task of tasks) {
try {
await this.processTask(task);
// await this.processTask(task);

lastTaskUUID = task.id;

@@ -83,7 +83,7 @@ export class ApprovalsProcessorService {
}
}

this.logger.debug(`Successfully processed ${tasks.length}`);
this.logger.debug(`Successfully processed ${tasks.length} tasks`);
} catch (e) {
this.logger.error('Error retrieving tasks...', e);

2 changes: 0 additions & 2 deletions libs/common/src/api/axelar.gmp.api.spec.ts
Original file line number Diff line number Diff line change
@@ -18,8 +18,6 @@ describe('ContractCallProcessor', () => {
apiClient = createMock();
apiConfigService = createMock();

apiConfigService.getAxelarContractVotingVerifier.mockReturnValueOnce('mockVotingVerifier');

const moduleRef = await Test.createTestingModule({
providers: [AxelarGmpApi],
})
9 changes: 1 addition & 8 deletions libs/common/src/api/axelar.gmp.api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Inject, Injectable, Logger } from '@nestjs/common';
import { ApiConfigService } from '@mvx-monorepo/common/config';
import { ProviderKeys } from '@mvx-monorepo/common/utils/provider.enum';
import { Client as AxelarGmpApiClient, Components } from '@mvx-monorepo/common/api/entities/axelar.gmp.api';
import { CONSTANTS } from '@mvx-monorepo/common/utils/constants.enum';
@@ -9,15 +8,9 @@ import PublishEventErrorResult = Components.Schemas.PublishEventErrorResult;

@Injectable()
export class AxelarGmpApi {
// @ts-ignore
private readonly axelarContractVotingVerifier: string;
private readonly logger: Logger;

constructor(
@Inject(ProviderKeys.AXELAR_GMP_API_CLIENT) private readonly apiClient: AxelarGmpApiClient,
apiConfigService: ApiConfigService,
) {
this.axelarContractVotingVerifier = apiConfigService.getAxelarContractVotingVerifier();
constructor(@Inject(ProviderKeys.AXELAR_GMP_API_CLIENT) private readonly apiClient: AxelarGmpApiClient) {
this.logger = new Logger(AxelarGmpApi.name);
}

9 changes: 0 additions & 9 deletions libs/common/src/config/api.config.service.ts
Original file line number Diff line number Diff line change
@@ -88,15 +88,6 @@ export class ApiConfigService {
return contractWegldSwap;
}

getAxelarContractVotingVerifier(): string {
const axelarContractVotingVerifier = this.configService.get<string>('AXELAR_CONTRACT_VOTING_VERIFIER');
if (!axelarContractVotingVerifier) {
throw new Error('No Axelar Contract Voting Verifier present');
}

return axelarContractVotingVerifier;
}

getAxelarGmpApiUrl(): string {
const axelarGmpApiUrl = this.configService.get<string>('AXELAR_GMP_API_URL');
if (!axelarGmpApiUrl) {

0 comments on commit d667594

Please sign in to comment.