diff --git a/src/account/interface.ts b/src/account/interface.ts index 03c884a6a..dd3d82420 100644 --- a/src/account/interface.ts +++ b/src/account/interface.ts @@ -182,7 +182,7 @@ export abstract class AccountInterface extends ProviderInterface { public abstract declareDeploy( declareDeployerContractPayload: DeclareDeployContractPayload, details?: InvocationsDetails - ): Promise; + ): Promise; /** * Deploy the account on Starknet diff --git a/src/types/lib.ts b/src/types/lib.ts index 3e2178203..adc3875f0 100644 --- a/src/types/lib.ts +++ b/src/types/lib.ts @@ -27,6 +27,12 @@ export type UniversalDeployerContractPayload = { additionalCalls?: AllowArray; // support multicall }; +export type DeployContractPayload = { + contract: CompiledContract | string; + constructorCalldata?: RawCalldata; + addressSalt?: string; +}; + export type DeployAccountContractPayload = { classHash: BigNumberish; constructorCalldata?: RawCalldata; diff --git a/src/types/provider.ts b/src/types/provider.ts index 0017818fb..ae904e056 100644 --- a/src/types/provider.ts +++ b/src/types/provider.ts @@ -106,21 +106,6 @@ export interface InvokeFunctionResponse { transaction_hash: string; } -export interface DeployContractResponse { - contract_address: string; - transaction_hash: string; -} - -export interface AccountDeployContractResponse extends DeployContractResponse { - address: string; - deployer: string; - unique: string; - classHash: string; - calldata_len: string; - calldata: Array; - salt: string; -} - export interface DeclareContractResponse { transaction_hash: string; class_hash: string;