-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,008 additions
and
166 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as chains from "viem/chains"; | ||
|
||
export const targetNetworks = [chains.hardhat]; | ||
export const pollingInterval = 30000; | ||
export const alchemyApiKey = process.env.NEXT_PUBLIC_ALCHEMY_API_KEY || "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF"; | ||
export const walletConnectProjectId = process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID || "3a8170812b534d0ff9d794f19a901d64"; | ||
export const onlyLocalBurnerWallet = true; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* This file is autogenerated by FIL-Frame. | ||
* You should not edit it manually or your changes might be overwritten. | ||
*/ | ||
import { GenericContractsDeclaration } from "@utils/contract"; | ||
|
||
const deployedContracts = {} as const; | ||
|
||
export default deployedContracts satisfies GenericContractsDeclaration; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { GenericContractsDeclaration } from "@utils/contract"; | ||
|
||
/** | ||
* @example | ||
* const externalContracts = { | ||
* 1: { | ||
* DAI: { | ||
* address: "0x...", | ||
* abi: [...], | ||
* }, | ||
* }, | ||
* } as const; | ||
*/ | ||
const externalContracts = {} as const; | ||
|
||
export default externalContracts satisfies GenericContractsDeclaration; |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Block, Transaction, TransactionReceipt } from "viem"; | ||
|
||
export type TransactionWithFunction = Transaction & { | ||
functionName?: string; | ||
functionArgs?: any[]; | ||
functionArgNames?: string[]; | ||
functionArgTypes?: string[]; | ||
}; | ||
|
||
type TransactionReceipts = { | ||
[key: string]: TransactionReceipt; | ||
}; | ||
|
||
export type TransactionsTableProps = { | ||
blocks: Block[]; | ||
transactionReceipts: TransactionReceipts; | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// To be used in JSON.stringify when a field might be bigint | ||
// https://wagmi.sh/react/faq#bigint-serialization | ||
export const replacer = (_key: string, value: unknown) => (typeof value === "bigint" ? value.toString() : value); | ||
|
||
export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; | ||
|
||
export const isZeroAddress = (address: string) => address === ZERO_ADDRESS; |
Oops, something went wrong.