Skip to content

Commit

Permalink
Align deploy request and response models
Browse files Browse the repository at this point in the history
  • Loading branch information
shahnami committed Oct 12, 2023
1 parent 37d4b9e commit d77c78c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/deploy/src/models/deployment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Network } from '@openzeppelin/defender-sdk-base-client';
import { Address } from '.';

export type DeploymentStatus = 'submitted' | 'completed' | 'failed' | 'pending';
export type SourceCodeLicense =
| 'None'
| 'Unlicense'
Expand Down Expand Up @@ -30,6 +31,7 @@ export interface DeployContractRequest {
libraries?: DeployRequestLibraries;
constructorInputs?: (string | boolean | number)[];
relayerId?: string;
approvalProcessId?: string;
}
export interface DeployRequestLibraries {
[k: string]: string;
Expand All @@ -41,20 +43,22 @@ export interface DeploymentResponse {
contractName: string;
contractPath: string;
network: Network;
relayerId: string;
address: Address;
status: string;
relayerId?: string;
approvalProcessId?: string;
address?: Address;
status: DeploymentStatus;
pending?: number;
blockExplorerVerification: BlockExplorerVerification;
deployDataVerification: string;
bytecodeVerification: string;
deploymentArtifactId?: string;
transactionId: string;
txHash: string;
transactionId?: string;
txHash?: string;
abi: string;
bytecode: string;
constructorBytecode: string;
value: string;
salt: string;
salt?: string;
licenseType?: SourceCodeLicense;
libraries?: {
[k: string]: string;
Expand Down

0 comments on commit d77c78c

Please sign in to comment.