ethers#ContractTransaction TypeScript Examples

The following examples show how to use ethers#ContractTransaction. 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: Gatekeeper.d.ts    From panvala with Apache License 2.0 6 votes vote down vote up
revealBallot(
    epochNumber: BigNumberish,
    voter: string,
    resources: (string)[],
    firstChoices: (BigNumberish)[],
    secondChoices: (BigNumberish)[],
    salt: BigNumberish,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #2
Source File: MockCrossDomainMessenger.d.ts    From nova with GNU Affero General Public License v3.0 6 votes vote down vote up
functions: {
    relayMessage(
      target: string,
      message: BytesLike,
      sender: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    sendMessage(
      arg0: string,
      arg1: BytesLike,
      arg2: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[void]>;

    xDomainMessageSender(overrides?: CallOverrides): Promise<[string]>;
  };
Example #3
Source File: UniswapExchange.d.ts    From panvala with Apache License 2.0 6 votes vote down vote up
tokenToExchangeTransferOutput(
    tokens_bought: BigNumberish,
    max_tokens_sold: BigNumberish,
    max_eth_sold: BigNumberish,
    deadline: BigNumberish,
    recipient: string,
    exchange_addr: string,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #4
Source File: setFixture.ts    From index-coop-smart-contracts with Apache License 2.0 6 votes vote down vote up
public async createSetToken(
    components: Address[],
    units: BigNumber[],
    modules: Address[],
    manager: Address = this._ownerAddress,
    name: string = "SetToken",
    symbol: string = "SET",
  ): Promise<SetToken> {
    const txHash: ContractTransaction = await this.factory.create(
      components,
      units,
      modules,
      manager,
      name,
      symbol,
    );

    const retrievedSetAddress = await new ProtocolUtils(this._provider).getCreatedSetTokenAddress(txHash.hash);

    return new SetToken__factory(this._ownerSigner).attach(retrievedSetAddress);
  }
Example #5
Source File: L2NovaRegistry.d.ts    From nova with GNU Affero General Public License v3.0 6 votes vote down vote up
requestExecWithTimeout(
    strategy: string,
    l1Calldata: BytesLike,
    gasLimit: BigNumberish,
    gasPrice: BigNumberish,
    tip: BigNumberish,
    inputTokens: { l2Token: string; amount: BigNumberish }[],
    autoUnlockDelaySeconds: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;
Example #6
Source File: UniswapExchange.d.ts    From panvala with Apache License 2.0 6 votes vote down vote up
tokenToTokenTransferInput(
    tokens_sold: BigNumberish,
    min_tokens_bought: BigNumberish,
    min_eth_bought: BigNumberish,
    deadline: BigNumberish,
    recipient: string,
    token_addr: string,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #7
Source File: L1NovaExecutionManager.d.ts    From nova with GNU Affero General Public License v3.0 6 votes vote down vote up
updateGasConfig(
    newGasConfig: {
      calldataByteGasEstimate: BigNumberish;
      missingGasEstimate: BigNumberish;
      strategyCallGasBuffer: BigNumberish;
      execCompletedMessageGasLimit: BigNumberish;
    },
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;
Example #8
Source File: Gatekeeper.d.ts    From panvala with Apache License 2.0 6 votes vote down vote up
revealBallot(
    epochNumber: BigNumberish,
    voter: string,
    resources: string[],
    firstChoices: BigNumberish[],
    secondChoices: BigNumberish[],
    salt: BigNumberish,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #9
Source File: IOVMCrossDomainMessenger.d.ts    From nova with GNU Affero General Public License v3.0 6 votes vote down vote up
functions: {
    sendMessage(
      _target: string,
      _message: BytesLike,
      _gasLimit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    xDomainMessageSender(overrides?: CallOverrides): Promise<[string]>;
  };
Example #10
Source File: TimeTravelingGatekeeper.d.ts    From panvala with Apache License 2.0 6 votes vote down vote up
revealBallot(
    epochNumber: BigNumberish,
    voter: string,
    resources: string[],
    firstChoices: BigNumberish[],
    secondChoices: BigNumberish[],
    salt: BigNumberish,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #11
Source File: EchidnaL1NovaExecutionManager.d.ts    From nova with GNU Affero General Public License v3.0 6 votes vote down vote up
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 #12
Source File: Gatekeeper.d.ts    From panvala with Apache License 2.0 5 votes vote down vote up
donateChallengerStakes(
    epochNumber: BigNumberish,
    resource: string,
    startIndex: BigNumberish,
    count: BigNumberish,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #13
Source File: MockStrategy.d.ts    From nova with GNU Affero General Public License v3.0 5 votes vote down vote up
functions: {
    counter(overrides?: CallOverrides): Promise<[BigNumber]>;

    registerSelfAsStrategy(
      _riskLevel: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    thisFunctionWillEmulateAMaliciousExternalContractTryingToStealRelayerTokens(
      token: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    thisFunctionWillHardRevert(overrides?: CallOverrides): Promise<[void]>;

    thisFunctionWillModifyState(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    thisFunctionWillNotRevert(overrides?: CallOverrides): Promise<[void]>;

    thisFunctionWillRevert(overrides?: CallOverrides): Promise<[void]>;

    thisFunctionWillTransferFromRelayer(
      token: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    thisFunctionWillTransferFromRelayerAndExpectUnsupportedRiskLevel(
      token: string,
      amount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    thisFunctionWillTryToReenter(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };
Example #14
Source File: Gatekeeper.d.ts    From panvala with Apache License 2.0 5 votes vote down vote up
requestPermission(
    metadataHash: Arrayish,
    overrides?: TransactionOverrides
  ): Promise<ContractTransaction>;
Example #15
Source File: Auth.d.ts    From nova with GNU Affero General Public License v3.0 5 votes vote down vote up
setAuthority(
    newAuthority: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;