ethers#Overrides TypeScript Examples
The following examples show how to use
ethers#Overrides.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IERC20Minimal.d.ts From hypervisor with The Unlicense | 6 votes |
populateTransaction: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
balanceOf(
account: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
Example #2
Source File: L2NovaRegistry__factory.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
deploy(
_CROSS_DOMAIN_MESSENGER: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<L2NovaRegistry> {
return super.deploy(
_CROSS_DOMAIN_MESSENGER,
overrides || {}
) as Promise<L2NovaRegistry>;
}
Example #3
Source File: Admin.d.ts From hypervisor with The Unlicense | 6 votes |
rebalance(
_hypervisor: string,
_baseLower: BigNumberish,
_baseUpper: BigNumberish,
_limitLower: BigNumberish,
_limitUpper: BigNumberish,
_feeRecipient: string,
swapQuantity: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #4
Source File: MockCrossDomainMessenger.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
populateTransaction: {
relayMessage(
target: string,
message: BytesLike,
sender: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
sendMessage(
arg0: string,
arg1: BytesLike,
arg2: BigNumberish,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
xDomainMessageSender(
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
};
Example #5
Source File: ERC20Permit.d.ts From hypervisor with The Unlicense | 6 votes |
permit(
owner: string,
spender: string,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #6
Source File: L1NovaExecutionManager.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
updateGasConfig(
newGasConfig: {
calldataByteGasEstimate: BigNumberish;
missingGasEstimate: BigNumberish;
strategyCallGasBuffer: BigNumberish;
execCompletedMessageGasLimit: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #7
Source File: Hypervisor.d.ts From hypervisor with The Unlicense | 6 votes |
permit(
owner: string,
spender: string,
value: BigNumberish,
deadline: BigNumberish,
v: BigNumberish,
r: BytesLike,
s: BytesLike,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #8
Source File: L1NovaExecutionManager.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
exec(
nonce: BigNumberish,
strategy: string,
l1Calldata: BytesLike,
gasLimit: BigNumberish,
l2Recipient: string,
deadline: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #9
Source File: IERC20Minimal.d.ts From hypervisor with The Unlicense | 6 votes |
estimateGas: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};
Example #10
Source File: EchidnaL2NovaRegistry.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
functions: {
requestExec_and_unlock_and_withdraw_tokens_should_work(
strategy: string,
l1Calldata: BytesLike,
gasLimit: BigNumberish,
gasPrice: BigNumberish,
tip: BigNumberish,
unlockDelay: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
should_always_be_able_connect_execution_manager(
newExecutionManager: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
speeding_up_a_request_multiple_times_should_fail(
strategy: string,
l1Calldata: BytesLike,
gasLimit: BigNumberish,
gasPrice: BigNumberish,
tip: BigNumberish,
gasDelta1: BigNumberish,
gasDelta2: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
};
Example #11
Source File: HypervisorFactory.d.ts From hypervisor with The Unlicense | 6 votes |
functions: {
allHypervisors(
arg0: BigNumberish,
overrides?: CallOverrides
): Promise<[string]>;
allHypervisorsLength(overrides?: CallOverrides): Promise<[BigNumber]>;
createHypervisor(
tokenA: string,
tokenB: string,
fee: BigNumberish,
name: string,
symbol: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
getHypervisor(
arg0: string,
arg1: string,
arg2: BigNumberish,
overrides?: CallOverrides
): Promise<[string]>;
owner(overrides?: CallOverrides): Promise<[string]>;
renounceOwnership(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
transferOwnership(
newOwner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
uniswapV3Factory(overrides?: CallOverrides): Promise<[string]>;
};
Example #12
Source File: EchidnaL1NovaExecutionManager.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
should_always_be_able_to_update_gas_config(
newGasConfig: {
calldataByteGasEstimate: BigNumberish;
missingGasEstimate: BigNumberish;
strategyCallGasBuffer: BigNumberish;
execCompletedMessageGasLimit: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #13
Source File: HypervisorFactory.d.ts From hypervisor with The Unlicense | 6 votes |
estimateGas: {
allHypervisors(
arg0: BigNumberish,
overrides?: CallOverrides
): Promise<BigNumber>;
allHypervisorsLength(overrides?: CallOverrides): Promise<BigNumber>;
createHypervisor(
tokenA: string,
tokenB: string,
fee: BigNumberish,
name: string,
symbol: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
getHypervisor(
arg0: string,
arg1: string,
arg2: BigNumberish,
overrides?: CallOverrides
): Promise<BigNumber>;
owner(overrides?: CallOverrides): Promise<BigNumber>;
renounceOwnership(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
transferOwnership(
newOwner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
uniswapV3Factory(overrides?: CallOverrides): Promise<BigNumber>;
};
Example #14
Source File: EchidnaL1NovaExecutionManager.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
exec_should_not_affect_currentExecHash(
nonce: BigNumberish,
strategy: string,
l1Calldata: BytesLike,
gasLimit: BigNumberish,
recipient: string,
deadline: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #15
Source File: HypervisorFactory.d.ts From hypervisor with The Unlicense | 6 votes |
populateTransaction: {
allHypervisors(
arg0: BigNumberish,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
allHypervisorsLength(
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
createHypervisor(
tokenA: string,
tokenB: string,
fee: BigNumberish,
name: string,
symbol: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
getHypervisor(
arg0: string,
arg1: string,
arg2: BigNumberish,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
renounceOwnership(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
transferOwnership(
newOwner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
uniswapV3Factory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
};
Example #16
Source File: Auth.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
estimateGas: {
authority(overrides?: CallOverrides): Promise<BigNumber>;
owner(overrides?: CallOverrides): Promise<BigNumber>;
setAuthority(
newAuthority: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
setOwner(
newOwner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};
Example #17
Source File: IERC20.d.ts From hypervisor with The Unlicense | 6 votes |
estimateGas: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};
Example #18
Source File: Auth.d.ts From nova with GNU Affero General Public License v3.0 | 6 votes |
populateTransaction: {
authority(overrides?: CallOverrides): Promise<PopulatedTransaction>;
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
setAuthority(
newAuthority: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
setOwner(
newOwner: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
Example #19
Source File: IERC20Minimal.d.ts From hypervisor with The Unlicense | 5 votes |
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #20
Source File: MockERC20__factory.ts From nova with GNU Affero General Public License v3.0 | 5 votes |
getDeployTransaction(
overrides?: Overrides & { from?: string | Promise<string> }
): TransactionRequest {
return super.getDeployTransaction(overrides || {});
}
Example #21
Source File: IERC20Minimal.d.ts From hypervisor with The Unlicense | 5 votes |
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
Example #22
Source File: NoReturnValueERC20__factory.ts From nova with GNU Affero General Public License v3.0 | 5 votes |
deploy(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<NoReturnValueERC20> {
return super.deploy(overrides || {}) as Promise<NoReturnValueERC20>;
}
Example #23
Source File: Admin.d.ts From hypervisor with The Unlicense | 5 votes |
addBaseLiquidity(
_hypervisor: string,
amount0: BigNumberish,
amount1: BigNumberish,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;