This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO import this form actual app https://linear.app/optimism/issue/FE-484/lots-of-todos-in-e2e-tests | |
const t = { | |
CONNECT_WALLET: 'Connect Wallet', | |
} | |
//TODo move this to commands.ts https://linear.app/optimism/issue/FE-484/lots-of-todos-in-e2e-tests | |
Cypress.Commands.add('getByCy', (selector, ...args) => { | |
return cy.get(`[data-cy=${selector}]`, ...args) | |
}) | |
Cypress.Commands.add('getByCyLike', (selector, ...args) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { predeploys } from '@eth-optimism/contracts-bedrock' | |
import type { CrossChainMessenger } from '@eth-optimism/sdk' | |
import { ETHBridgeAdapter, StandardBridgeAdapter } from '@eth-optimism/sdk' | |
import type { Chain as IChain } from '@usedapp/core' | |
import { Goerli, Mainnet, Optimism } from '@usedapp/core' | |
import { | |
alchemyKeyMainnet, | |
alchemyKeyOptimism, | |
alchemyKeyOptimismGoerli, | |
infuraKey, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "postgresql" | |
url = env("DATABASE_URL") | |
} | |
model airdrops { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { attestationKeys, addresses } from "@gateway/contracts"; | |
import { useContractRead } from "wagmi"; | |
import { useChain } from "utils/chain"; | |
import attestationStationAbi from "@gateway/contracts/abis/AttestationStation.json"; | |
import { BytesLike, toUtf8String } from "ethers/lib/utils"; | |
/** | |
* Example of reading from attestation station (atst) | |
*/ | |
export const AttestationExample = () => { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"buster": "", | |
"timestamp": 1681447731400, | |
"clientState": { | |
"mutations": [ | |
{ | |
"mutationKey": [ | |
{ | |
"entity": "connect" | |
} |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"buster": "", | |
"timestamp": 1681447731400, | |
"clientState": { | |
"mutations": [ | |
{ | |
"mutationKey": [ | |
{ | |
"entity": "connect" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
postgres-mainnet: | |
image: postgres:latest | |
environment: | |
- POSTGRES_USER=db_username | |
- POSTGRES_PASSWORD=db_password | |
- POSTGRES_DB=db_name | |
- PGDATA=/data/postgres | |
- POSTGRES_HOST_AUTH_METHOD=trust | |
healthcheck: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { FallbackProvider } from '@ethersproject/providers' | |
import { useEthers } from '@usedapp/core' | |
import { AbstractConnector } from '@web3-react/abstract-connector' | |
import { useEffect } from 'react' | |
import { useAccount, useNetwork } from 'wagmi' | |
class UseDappConnector extends AbstractConnector { | |
constructor( | |
private readonly chainId: number, | |
private readonly address: string, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Autofix PR | |
on: | |
issue_comment: | |
types: [created] | |
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token | |
permissions: | |
checks: write | |
contents: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Imports: External */ | |
import type { ExpressRouter } from '@eth-optimism/common-ts' | |
import { BaseServiceV2 } from '@eth-optimism/common-ts' | |
import { CrossChainMessenger } from '@eth-optimism/sdk' | |
import { retryWithBackoff } from '@gateway/common-ts' | |
import { Storage } from '@google-cloud/storage' | |
import { PrismaClient } from '@prisma/client' | |
import type { Queue, Worker } from 'bullmq' | |
import isomorphicFetch from 'isomorphic-fetch' | |
import type { Address, Hex } from 'viem' |
OlderNewer