Skip to content

Commit

Permalink
Merge pull request #199 from OpenZeppelin/plat-3535-support-gasprice-…
Browse files Browse the repository at this point in the history
…gaslimit-for-deployment-transaction-in-sdk

Support tx overrides to deployment with relayers
  • Loading branch information
MCarlomagno authored Dec 12, 2023
2 parents ec2f85a + a30a42e commit 15b7067
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/deploy/src/models/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export type SourceCodeLicense =
| 'GNU AGPLv3'
| 'BSL 1.1';

export type TxOverrides = {
gasLimit?: number;
gasPrice?: string;
maxFeePerGas?: string;
maxPriorityFeePerGas?: string;
};

export interface DeployContractRequest {
contractName: string;
contractPath: string;
Expand All @@ -33,6 +40,11 @@ export interface DeployContractRequest {
relayerId?: string;
approvalProcessId?: string;
createFactoryAddress?: string;
/**
* Only applies to Relayers approval processes, for other default approval processes it has no effect
* @default undefined
*/
txOverrides?: TxOverrides;
}
export interface DeployRequestLibraries {
[k: string]: string;
Expand Down

0 comments on commit 15b7067

Please sign in to comment.