From 08af677f5fb29f1fa27bd63cfbb41b06ecb3c447 Mon Sep 17 00:00:00 2001 From: Marcos Date: Mon, 11 Dec 2023 17:19:58 -0300 Subject: [PATCH 1/4] add txOverrides parameter --- packages/deploy/src/models/deployment.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/deploy/src/models/deployment.ts b/packages/deploy/src/models/deployment.ts index a03569ff..eca5c547 100644 --- a/packages/deploy/src/models/deployment.ts +++ b/packages/deploy/src/models/deployment.ts @@ -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; @@ -33,6 +40,11 @@ export interface DeployContractRequest { relayerId?: string; approvalProcessId?: string; createFactoryAddress?: string; + /** + * Only applies to Relayers apporval processes, for other default approval processes it has no effect + * @default undefined + */ + txOverrides?: TxOverrides; } export interface DeployRequestLibraries { [k: string]: string; From 4ecc3a94c2f7051f28b5f25a66bb9118ef36ed87 Mon Sep 17 00:00:00 2001 From: Marcos Date: Mon, 11 Dec 2023 17:30:56 -0300 Subject: [PATCH 2/4] fix typo --- packages/deploy/src/models/deployment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deploy/src/models/deployment.ts b/packages/deploy/src/models/deployment.ts index eca5c547..20b97f85 100644 --- a/packages/deploy/src/models/deployment.ts +++ b/packages/deploy/src/models/deployment.ts @@ -41,7 +41,7 @@ export interface DeployContractRequest { approvalProcessId?: string; createFactoryAddress?: string; /** - * Only applies to Relayers apporval processes, for other default approval processes it has no effect + * Only applies to Relayers approval processes, for other default approval processes it has no effect * @default undefined */ txOverrides?: TxOverrides; From 07a48cba5e552b3a87722d5bb20e76844ed65284 Mon Sep 17 00:00:00 2001 From: Marcos Carlomagno Date: Tue, 12 Dec 2023 11:42:35 -0300 Subject: [PATCH 3/4] Update packages/deploy/src/models/deployment.ts Co-authored-by: Nami --- packages/deploy/src/models/deployment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deploy/src/models/deployment.ts b/packages/deploy/src/models/deployment.ts index 20b97f85..b682183b 100644 --- a/packages/deploy/src/models/deployment.ts +++ b/packages/deploy/src/models/deployment.ts @@ -41,7 +41,7 @@ export interface DeployContractRequest { approvalProcessId?: string; createFactoryAddress?: string; /** - * Only applies to Relayers approval processes, for other default approval processes it has no effect + * Only applies to approval processes associated with Relayers, for other approval processes this has no effect * @default undefined */ txOverrides?: TxOverrides; From a30a42e552a99e513d36c98f9db78ae4572a1dc3 Mon Sep 17 00:00:00 2001 From: Marcos Date: Tue, 12 Dec 2023 11:47:10 -0300 Subject: [PATCH 4/4] fix property docs for txOverrides --- packages/deploy/src/models/deployment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deploy/src/models/deployment.ts b/packages/deploy/src/models/deployment.ts index b682183b..20b97f85 100644 --- a/packages/deploy/src/models/deployment.ts +++ b/packages/deploy/src/models/deployment.ts @@ -41,7 +41,7 @@ export interface DeployContractRequest { approvalProcessId?: string; createFactoryAddress?: string; /** - * Only applies to approval processes associated with Relayers, for other approval processes this has no effect + * Only applies to Relayers approval processes, for other default approval processes it has no effect * @default undefined */ txOverrides?: TxOverrides;