-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got scripts compiling and running, erroring.
- Loading branch information
1 parent
3ed9b87
commit 878f660
Showing
5 changed files
with
271 additions
and
183 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
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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import { ItemType, Seaport } from "@opensea/seaport-js"; | ||
import { JsonRpcProvider, ethers } from "ethers"; | ||
require('dotenv').config(); | ||
|
||
export const OPENSEA_API_KEY = process.env.OPENSEA_API_KEY; | ||
export const WALLET_PRIV_KEY = process.env.ARB_SEPOLIA_PK; | ||
export const ARB_SEPOLIA_RPC = process.env.ARB_SEPOLIA_RPC; | ||
export const SIP15_ZONE_SEPOLIA_ADDRESS = process.env.SIP15_ZONE_SEPOLIA_ADDRESS; | ||
export const VAULT721_SEPOLIA_ADAPATER_ADDRESS = process.env.VAULT721_SEPOLIA_ADAPATER_ADDRESS; | ||
export const VAULT721_SEPOLIA_ADDRESS = process.env.VAULT721_SEPOLIA_ADDRESS; | ||
export const ANVIL_ONE = process.env.ANVIL_ONE; | ||
export const ANVIL_RPC = process.env.ANVIL_RPC; | ||
|
||
let provider = new JsonRpcProvider(ARB_SEPOLIA_RPC); | ||
export const sepoliaProvider = new JsonRpcProvider(ARB_SEPOLIA_RPC); | ||
|
||
export const wallet = new ethers.Wallet( | ||
export const sepoliaWallet = new ethers.Wallet( | ||
WALLET_PRIV_KEY as string, | ||
provider | ||
sepoliaProvider | ||
); | ||
|
||
export const WALLET_ADDRESS = wallet.address; | ||
export const SEPOLIA_WALLET_ADDRESS = sepoliaWallet.address; | ||
|
||
export const seaport = new Seaport(wallet); |
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"module": "CommonJS", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"outDir": "./dist" | ||
"outDir": "./dist", | ||
"moduleResolution":"Node", | ||
"types": [] | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"include": ["script/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} | ||
|
Oops, something went wrong.