Skip to content

Commit

Permalink
Remove deployment config resources (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahnami authored Feb 20, 2024
1 parent fb60b8d commit 8330708
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
33 changes: 0 additions & 33 deletions packages/deploy/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import {
BlockExplorerApiKeyResponse,
CreateBlockExplorerApiKeyRequest,
DeployContractRequest,
DeploymentConfigCreateRequest,
DeploymentConfigResponse,
DeploymentResponse,
RemoveBlockExplorerApiKeyResponse,
RemoveDeploymentConfigResponse,
UpdateBlockExplorerApiKeyRequest,
UpgradeContractRequest,
UpgradeContractResponse,
Expand All @@ -20,7 +17,6 @@ import { extractArtifact } from '../utils/deploy';
const DEPLOYMENTS_PATH = '/deployments';
const UPGRADES_PATH = '/upgrades';
const BLOCKEXPLORER_API_KEY_PATH = '/block-explorer-api-key';
const DEPLOYMENTS_CONFIG_PATH = '/deployment-config';

export class DeployClient extends BaseApiClient {
protected getPoolId(): string {
Expand Down Expand Up @@ -114,17 +110,6 @@ export class DeployClient extends BaseApiClient {
});
}

public async getConfig(id: string): Promise<DeploymentConfigResponse> {
return this.apiCall(async (api) => {
return api.get(`${DEPLOYMENTS_CONFIG_PATH}/${id}`);
});
}
public async listConfig(): Promise<DeploymentConfigResponse[]> {
return this.apiCall(async (api) => {
return api.get(`${DEPLOYMENTS_CONFIG_PATH}`);
});
}

public async getDeploymentVerification(
contractNetwork: Pick<VerificationRequest, 'contractNetwork'>,
contractAddress: Pick<VerificationRequest, 'contractAddress'>,
Expand All @@ -137,22 +122,4 @@ export class DeployClient extends BaseApiClient {
}
});
}

public async createConfig(params: DeploymentConfigCreateRequest): Promise<DeploymentConfigResponse> {
return this.apiCall(async (api) => {
return api.post(`${DEPLOYMENTS_CONFIG_PATH}`, params);
});
}

public async updateConfig(id: string, params: DeploymentConfigCreateRequest): Promise<DeploymentConfigResponse> {
return this.apiCall(async (api) => {
return api.put(`${DEPLOYMENTS_CONFIG_PATH}/${id}`, params);
});
}

public async removeConfig(id: string): Promise<RemoveDeploymentConfigResponse> {
return this.apiCall(async (api) => {
return api.delete(`${DEPLOYMENTS_CONFIG_PATH}/${id}`);
});
}
}
18 changes: 0 additions & 18 deletions packages/deploy/src/models/deployment-config.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/deploy/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ export type Address = string;
export * from './approval-process';
export * from './upgrade';
export * from './deployment';
export * from './deployment-config';
export * from './block-explorer';

0 comments on commit 8330708

Please sign in to comment.