Skip to content

Commit

Permalink
fix: cleanup after refactor and remove branch split
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 25, 2022
1 parent da7392a commit f695629
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/account/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export abstract class AccountInterface extends ProviderInterface {
public abstract declareDeploy(
declareDeployerContractPayload: DeclareDeployContractPayload,
details?: InvocationsDetails
): Promise<DeclareDeployContractResponse | Error>;
): Promise<DeclareDeployContractResponse>;

/**
* Deploy the account on Starknet
Expand Down
6 changes: 6 additions & 0 deletions src/types/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export type UniversalDeployerContractPayload = {
additionalCalls?: AllowArray<Call>; // support multicall
};

export type DeployContractPayload = {
contract: CompiledContract | string;
constructorCalldata?: RawCalldata;
addressSalt?: string;
};

export type DeployAccountContractPayload = {
classHash: BigNumberish;
constructorCalldata?: RawCalldata;
Expand Down
15 changes: 0 additions & 15 deletions src/types/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;
salt: string;
}

export interface DeclareContractResponse {
transaction_hash: string;
class_hash: string;
Expand Down

0 comments on commit f695629

Please sign in to comment.