How to use the @ethersproject/contracts.Contract function in @ethersproject/contracts

To help you get started, we’ve selected a few @ethersproject/contracts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / IERC1363Spender__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): IERC1363Spender {
    return new Contract(address, _abi, signerOrProvider) as IERC1363Spender
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / SequencerInbox__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): SequencerInbox {
    return new Contract(address, _abi, signerOrProvider) as SequencerInbox
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / L2ERC20Gateway__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): L2ERC20Gateway {
    return new Contract(address, _abi, signerOrProvider) as L2ERC20Gateway
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / RollupCreator__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): RollupCreator {
    return new Contract(address, _abi, signerOrProvider) as RollupCreator
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / Rollup__factory.ts View on Github external
static connect(address: string, signerOrProvider: Signer | Provider): Rollup {
    return new Contract(address, _abi, signerOrProvider) as Rollup
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / OZERC20__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): OZERC20 {
    return new Contract(address, _abi, signerOrProvider) as OZERC20
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / OneStepProof__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): OneStepProof {
    return new Contract(address, _abi, signerOrProvider) as OneStepProof
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / ArbBLS__factory.ts View on Github external
static connect(address: string, signerOrProvider: Signer | Provider): ArbBLS {
    return new Contract(address, _abi, signerOrProvider) as ArbBLS
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / RetryableTicketCreator__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): RetryableTicketCreator {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as RetryableTicketCreator
  }
}
github OffchainLabs / arbitrum / packages / arb-ts / src / lib / abi / factories / OneStepProof2__factory.ts View on Github external
static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): OneStepProof2 {
    return new Contract(address, _abi, signerOrProvider) as OneStepProof2
  }
}

@ethersproject/contracts

Contract abstraction meta-class for ethers.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis