From 8ac37460b1f9bbb1a3d159c0a6611e387251b74a Mon Sep 17 00:00:00 2001 From: nzhl/shuaidebeirenkan Date: Wed, 26 Oct 2022 17:02:07 +0800 Subject: [PATCH] chore: bump 1.0.11 --- package-lock.json | 94 ++- package.json | 5 +- src/constants.ts | 36 +- src/deployed-contracts.json | 1349 ----------------------------------- src/seaport.ts | 26 +- 5 files changed, 59 insertions(+), 1451 deletions(-) delete mode 100644 src/deployed-contracts.json diff --git a/package-lock.json b/package-lock.json index 159d3175..54fc34e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,16 @@ { "name": "@paraspace/seaport-js", - "version": "1.0.8", + "version": "1.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@paraspace/seaport-js", - "version": "1.0.8", + "version": "1.0.10", "license": "MIT", "dependencies": { - "@0xsequence/multicall": "^0.39.0", + "@0xsequence/multicall": "^0.39.6", "ethers": "^5.6.7", - "lodash": "^4.17.21", "merkletreejs": "^0.2.31" }, "devDependencies": { @@ -22,7 +21,6 @@ "@typechain/hardhat": "^5.0.0", "@types/chai": "^4.3.0", "@types/chai-as-promised": "^7.1.5", - "@types/lodash": "^4.14.186", "@types/mocha": "^9.1.1", "@types/node": "^12.20.47", "@typescript-eslint/eslint-plugin": "^5.27.1", @@ -62,32 +60,36 @@ } }, "node_modules/@0xsequence/abi": { - "version": "0.39.0", - "integrity": "sha512-26KvkoDEymIbuOwPFlOsgL2rwNjuWaCN+Ea9X9TD9P+MDjZ/ThCsYfyVgzdoN0IXBtxrOAUNIpQ6wk1v98RMuA==" + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/abi/-/abi-0.39.6.tgz", + "integrity": "sha512-ROHfAyQvN1N2G6DeVyWR4wxi0dd0HjJZQ+2UkxvYJrdywQZONmrUPD6MfT4Fd+JrQwdIxkcNu2/QfgkyZDerFw==" }, "node_modules/@0xsequence/multicall": { - "version": "0.39.0", - "integrity": "sha512-McLpU3zFCnIsLfvU+xRGqp30/0LjnphboId2dfgS4el4KaSQpnhNarmrGa/ON/hHHjFR3aFj4OKV6FecM5k7Yg==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/multicall/-/multicall-0.39.6.tgz", + "integrity": "sha512-oHgxAuYoanYXKArrzPF+a8f9CAzDX5xYp+U+bcCd3qOagIn1xeQCEW4zbnGDRD+ZguhlcP2I7wiW1eImmoOi1g==", "dependencies": { - "@0xsequence/abi": "^0.39.0", - "@0xsequence/network": "^0.39.0", - "@0xsequence/utils": "^0.39.0", + "@0xsequence/abi": "^0.39.6", + "@0xsequence/network": "^0.39.6", + "@0xsequence/utils": "^0.39.6", "@ethersproject/providers": "^5.5.1", "ethers": "^5.5.2" } }, "node_modules/@0xsequence/network": { - "version": "0.39.0", - "integrity": "sha512-OAJmb9NC6h9L95RN8oJSIcoDoO3QumLESpvoXsKzNNlzNkTD92QbCgQ6h7mxmqtQhwJ+6GOT08beARMf5MTS+A==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/network/-/network-0.39.6.tgz", + "integrity": "sha512-esmdTCT98tjjbYoiYjaOmJIG0aSgadg9wR1FB6lzPdAVuq+xOGvxygtTiqhTqXF+YI2Alc4b5EP7tUWC9OA10Q==", "dependencies": { - "@0xsequence/utils": "^0.39.0", + "@0xsequence/utils": "^0.39.6", "@ethersproject/providers": "^5.5.1", "ethers": "^5.5.2" } }, "node_modules/@0xsequence/utils": { - "version": "0.39.0", - "integrity": "sha512-+h0bfGomUsAoOzEnPuWSi1keuoXP0d/oAybtfLe0OQwGL+nuhJnIsW4nKlL8qelnjbV69/EqjQjTa5k5b9YHBw==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/utils/-/utils-0.39.6.tgz", + "integrity": "sha512-Zf5NTRSzrOrc48SXsmtRDs1uaJ0gaOjwQYkANoIco54Rq+IA1Dlz9HWRebgyjeCUrXLnGCckljBemAUoZbVgIg==", "dependencies": { "@ethersproject/abstract-signer": "^5.5.0", "@ethersproject/properties": "^5.5.0", @@ -2823,12 +2825,6 @@ "integrity": "sha512-vu1SrqBjbbZ3J6vwY17jBs8Sr/BKA+/a/WtjRG+whKg1iuLFOosq872EXS0eXWILdO36DHQQeku/ZcL6hz2fpg==", "dev": true }, - "node_modules/@types/lodash": { - "version": "4.14.186", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.186.tgz", - "integrity": "sha512-eHcVlLXP0c2FlMPm56ITode2AgLMSa6aJ05JTTbYbI+7EMkCEE5qk2E41d5g2lCVTqRe0GnnRFurmlCsDODrPw==", - "dev": true - }, "node_modules/@types/lru-cache": { "version": "5.1.1", "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==", @@ -13032,7 +13028,6 @@ }, "node_modules/ganache-core/node_modules/keccak": { "version": "3.0.1", - "dev": true, "hasInstallScript": true, "inBundle": true, "license": "MIT", @@ -13605,7 +13600,6 @@ }, "node_modules/ganache-core/node_modules/node-addon-api": { "version": "2.0.2", - "dev": true, "inBundle": true, "license": "MIT" }, @@ -13619,7 +13613,6 @@ }, "node_modules/ganache-core/node_modules/node-gyp-build": { "version": "4.2.3", - "dev": true, "inBundle": true, "license": "MIT", "bin": { @@ -18322,6 +18315,7 @@ }, "node_modules/js-base64": { "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" }, "node_modules/js-sha3": { @@ -18752,7 +18746,8 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, "node_modules/lodash.assign": { "version": "4.2.0", @@ -25053,32 +25048,36 @@ }, "dependencies": { "@0xsequence/abi": { - "version": "0.39.0", - "integrity": "sha512-26KvkoDEymIbuOwPFlOsgL2rwNjuWaCN+Ea9X9TD9P+MDjZ/ThCsYfyVgzdoN0IXBtxrOAUNIpQ6wk1v98RMuA==" + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/abi/-/abi-0.39.6.tgz", + "integrity": "sha512-ROHfAyQvN1N2G6DeVyWR4wxi0dd0HjJZQ+2UkxvYJrdywQZONmrUPD6MfT4Fd+JrQwdIxkcNu2/QfgkyZDerFw==" }, "@0xsequence/multicall": { - "version": "0.39.0", - "integrity": "sha512-McLpU3zFCnIsLfvU+xRGqp30/0LjnphboId2dfgS4el4KaSQpnhNarmrGa/ON/hHHjFR3aFj4OKV6FecM5k7Yg==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/multicall/-/multicall-0.39.6.tgz", + "integrity": "sha512-oHgxAuYoanYXKArrzPF+a8f9CAzDX5xYp+U+bcCd3qOagIn1xeQCEW4zbnGDRD+ZguhlcP2I7wiW1eImmoOi1g==", "requires": { - "@0xsequence/abi": "^0.39.0", - "@0xsequence/network": "^0.39.0", - "@0xsequence/utils": "^0.39.0", + "@0xsequence/abi": "^0.39.6", + "@0xsequence/network": "^0.39.6", + "@0xsequence/utils": "^0.39.6", "@ethersproject/providers": "^5.5.1", "ethers": "^5.5.2" } }, "@0xsequence/network": { - "version": "0.39.0", - "integrity": "sha512-OAJmb9NC6h9L95RN8oJSIcoDoO3QumLESpvoXsKzNNlzNkTD92QbCgQ6h7mxmqtQhwJ+6GOT08beARMf5MTS+A==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/network/-/network-0.39.6.tgz", + "integrity": "sha512-esmdTCT98tjjbYoiYjaOmJIG0aSgadg9wR1FB6lzPdAVuq+xOGvxygtTiqhTqXF+YI2Alc4b5EP7tUWC9OA10Q==", "requires": { - "@0xsequence/utils": "^0.39.0", + "@0xsequence/utils": "^0.39.6", "@ethersproject/providers": "^5.5.1", "ethers": "^5.5.2" } }, "@0xsequence/utils": { - "version": "0.39.0", - "integrity": "sha512-+h0bfGomUsAoOzEnPuWSi1keuoXP0d/oAybtfLe0OQwGL+nuhJnIsW4nKlL8qelnjbV69/EqjQjTa5k5b9YHBw==", + "version": "0.39.6", + "resolved": "https://registry.npmjs.org/@0xsequence/utils/-/utils-0.39.6.tgz", + "integrity": "sha512-Zf5NTRSzrOrc48SXsmtRDs1uaJ0gaOjwQYkANoIco54Rq+IA1Dlz9HWRebgyjeCUrXLnGCckljBemAUoZbVgIg==", "requires": { "@ethersproject/abstract-signer": "^5.5.0", "@ethersproject/properties": "^5.5.0", @@ -27251,12 +27250,6 @@ } } }, - "@types/lodash": { - "version": "4.14.186", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.186.tgz", - "integrity": "sha512-eHcVlLXP0c2FlMPm56ITode2AgLMSa6aJ05JTTbYbI+7EMkCEE5qk2E41d5g2lCVTqRe0GnnRFurmlCsDODrPw==", - "dev": true - }, "@types/lru-cache": { "version": "5.1.1", "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==", @@ -35182,7 +35175,6 @@ "keccak": { "version": "3.0.1", "bundled": true, - "dev": true, "requires": { "node-addon-api": "^2.0.0", "node-gyp-build": "^4.2.0" @@ -35612,8 +35604,7 @@ }, "node-addon-api": { "version": "2.0.2", - "bundled": true, - "dev": true + "bundled": true }, "node-fetch": { "version": "2.1.2", @@ -35621,8 +35612,7 @@ }, "node-gyp-build": { "version": "4.2.3", - "bundled": true, - "dev": true + "bundled": true }, "normalize-url": { "version": "4.5.0", @@ -39129,6 +39119,7 @@ }, "js-base64": { "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" }, "js-sha3": { @@ -39469,7 +39460,8 @@ "lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, "lodash.assign": { "version": "4.2.0", diff --git a/package.json b/package.json index 83f510f0..38e37c6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraspace/seaport-js", - "version": "1.0.10", + "version": "1.0.11", "description": "[Seaport](https://github.com/ProjectOpenSea/seaport) is a new marketplace protocol for safely and efficiently buying and selling NFTs. This is a JavaScript library intended to make interfacing with the contract reasonable and easy.", "license": "MIT", "author": "OpenSea Developers", @@ -44,7 +44,6 @@ "normalize-url": ">=4.5.1", "async": ">=2.6.4", "node-fetch": ">=2.6.7", - "lodash": ">=4.17.21", "got": ">=11.8.5", "cross-fetch": ">=2.2.6", "ws": ">=5.2.3", @@ -55,7 +54,6 @@ "dependencies": { "@0xsequence/multicall": "^0.39.0", "ethers": "^5.6.7", - "lodash": "^4.17.21", "merkletreejs": "^0.2.31" }, "devDependencies": { @@ -66,7 +64,6 @@ "@typechain/hardhat": "^5.0.0", "@types/chai": "^4.3.0", "@types/chai-as-promised": "^7.1.5", - "@types/lodash": "^4.14.186", "@types/mocha": "^9.1.1", "@types/node": "^12.20.47", "@typescript-eslint/eslint-plugin": "^5.27.1", diff --git a/src/constants.ts b/src/constants.ts index e8ae9b2b..41ec7b5a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,37 +1,7 @@ import { BigNumber } from "ethers"; -import { mapKeys, mapValues, pickBy } from "lodash"; - -import DEPLOYED_CONTRACTS from "./deployed-contracts.json"; - -export type ContractName = keyof typeof DEPLOYED_CONTRACTS; - -type ContractAddress = string; -export type ContractMap = Record; - -// map 'UniswapV3' in DEPLOYED_CONTRACTS to 'UNI-V3-POS' -const NORMALIZED_DEPLOYED_CONTRACTS = mapKeys(DEPLOYED_CONTRACTS, (_v, k) => - k === "UniswapV3" ? "UNI-V3-POS" : k -); - -const extractContractMapFromDeployedContracts = (network: "goerli") => { - const rawContractMap = mapValues(NORMALIZED_DEPLOYED_CONTRACTS, (it) => - network in it ? it[network].address : null - ); - // ignore invalid(length is not 42) contract address - return pickBy( - rawContractMap, - (v, k) => v?.length === 42 || k === "ConduitKey" - ) as ContractMap; -}; - -export const CONTRACT_MAP: ContractMap = { - ...extractContractMapFromDeployedContracts("goerli"), -}; export const SEAPORT_CONTRACT_NAME = "ParaSpace"; export const SEAPORT_CONTRACT_VERSION = "1.1"; -export const OPENSEA_CONDUIT_KEY = CONTRACT_MAP.ConduitKey; -export const OPENSEA_CONDUIT_ADDRESS = CONTRACT_MAP.Conduit; export const EIP_712_ORDER_TYPE = { OrderComponents: [ { name: "offerer", type: "address" }, @@ -107,11 +77,9 @@ export const NO_CONDUIT = "0x0000000000000000000000000000000000000000000000000000000000000000"; // Supply here any known conduit keys as well as their conduits -export const KNOWN_CONDUIT_KEYS_TO_CONDUIT = { - [OPENSEA_CONDUIT_KEY]: OPENSEA_CONDUIT_ADDRESS, -}; +export const KNOWN_CONDUIT_KEYS_TO_CONDUIT = {}; -export const CROSS_CHAIN_SEAPORT_ADDRESS = CONTRACT_MAP.Seaport; +export const CROSS_CHAIN_SEAPORT_ADDRESS = ""; export const DOMAIN_REGISTRY_ADDRESS = "0x000000000DaD0DE04D2B2D4a5A74581EBA94124A"; diff --git a/src/deployed-contracts.json b/src/deployed-contracts.json deleted file mode 100644 index 855e595e..00000000 --- a/src/deployed-contracts.json +++ /dev/null @@ -1,1349 +0,0 @@ -{ - "DAI": { - "goerli": { - "address": "0xf696a4AC243F313A127441e97643d1D40B0E47c3", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["DAI", "DAI", "18"], - "verified": false - } - }, - "WETH": { - "goerli": { - "address": "0x4e7f19d6Adb6F7e3C309eee160e665Ecb3407e88", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "USDC": { - "goerli": { - "address": "0x59D7Ac40EB4604781C4812e7d18a5c33A68F2Bb6", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["USDC", "USDC", "6"], - "verified": false - } - }, - "USDT": { - "goerli": { - "address": "0xEe6f037EA26Bb9299048F96DD0b42556644D521A", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["USDT", "USDT", "6"], - "verified": false - } - }, - "WBTC": { - "goerli": { - "address": "0xED34081f1393ee9169fB3315a1Bd2168D49e7BE2", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["WBTC", "WBTC", "8"], - "verified": false - } - }, - "STETH": { - "goerli": { - "address": "0x89fEf674aF2FF970486801095f2a29fEB226B31f", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["stETH", "stETH", "18"], - "verified": false - } - }, - "APE": { - "goerli": { - "address": "0xFd25ED19eCE9E230c340C789B40CB24fc7f50c81", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["APE", "APE", "18"], - "verified": false - } - }, - "AWETH": { - "goerli": { - "address": "0xd688e4EB2D65adC7c0d093B08CB8F8A5a8Ad9cb9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["aWETH", "aWETH", "18"], - "verified": false - } - }, - "CETH": { - "goerli": { - "address": "0x1dAdAfD1c1B92A4C8850E15d025B9E9cbd57833e", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["cETH", "cETH", "8"], - "verified": false - } - }, - "PUNK": { - "goerli": { - "address": "0x007131021C49600631E393Cf21487157620d7142", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["PUNK", "PUNK", "18"], - "verified": false - } - }, - "PUNKS": { - "goerli": { - "address": "0x8f69a49037420cF58c8318e833f6047b32F7d1BF", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "WPUNKS": { - "goerli": { - "address": "0x6EC7884E110Fd882926F44bB752eA5e09e919e99", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x8f69a49037420cF58c8318e833f6047b32F7d1BF"], - "verified": false - } - }, - "BAYC": { - "goerli": { - "address": "0x929f72FF6D819f3F77793FBF694375BDfaFe8b9D", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["BAYC", "BAYC", "8000", "0"], - "verified": false - } - }, - "MAYC": { - "goerli": { - "address": "0x1A4EA412d059A5B29F0e0BB62C46153a6Cfe60a7", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "MAYC", - "MAYC", - "0x0000000000000000000000000000000000000000", - "0x0000000000000000000000000000000000000000" - ], - "verified": false - } - }, - "DOODLE": { - "goerli": { - "address": "0x08F61e21420dD599F8cB4218E8c645CC22177e57", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "AZUKI": { - "goerli": { - "address": "0x73d306aA71a40f9409018e95D8f1Ea1023355526", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [5, 10000, 8900, 200], - "verified": false - } - }, - "CLONEX": { - "goerli": { - "address": "0xB642762bc55Cdf662d75e1631d2D4Bb6Be027664", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "MOONBIRD": { - "goerli": { - "address": "0x0b17e99401f6dD0DE5d6e83a35449c99c4e3DEe1", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "MOON", - "MOON", - "0x0000000000000000000000000000000000000000", - "0x69C33aB569816F1D564a420490AbB894a44071Fb", - "0x69C33aB569816F1D564a420490AbB894a44071Fb" - ], - "verified": false - } - }, - "MEEBITS": { - "goerli": { - "address": "0xCd4872d686a582F8935a56c4b33aC15dCDE3bCD2", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x8f69a49037420cF58c8318e833f6047b32F7d1BF", - "0x0000000000000000000000000000000000000000", - "0x69C33aB569816F1D564a420490AbB894a44071Fb" - ], - "verified": false - } - }, - "OTHR": { - "goerli": { - "address": "0xB06deB38Bc99A3E50B750Ca9C229C2dCb00C0461", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "OTHR", - "OTHR", - [ - "0x0000000000000000000000000000000000000000", - "0x0000000000000000000000000000000000000000", - "0x0000000000000000000000000000000000000000" - ], - [10, 100, 1000, 10000], - [["0x69C33aB569816F1D564a420490AbB894a44071Fb", 100]], - "0x69C33aB569816F1D564a420490AbB894a44071Fb", - "0x69C33aB569816F1D564a420490AbB894a44071Fb", - "0x63616e6469646174653100000000000000000000000000000000000000000000", - 5, - "0x69C33aB569816F1D564a420490AbB894a44071Fb" - ], - "verified": false - } - }, - "UniswapV3": { - "goerli": { - "address": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88" - } - }, - "MockTokenFaucet": { - "goerli": { - "address": "0xc3784c1aaA3DF4C6A84bf806C38349CAE39327e7", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - [ - { - "name": "DAI", - "addr": "0xf696a4AC243F313A127441e97643d1D40B0E47c3", - "mintValue": 10000 - }, - { - "name": "APE", - "addr": "0xFd25ED19eCE9E230c340C789B40CB24fc7f50c81", - "mintValue": 10000 - }, - { - "name": "USDC", - "addr": "0x59D7Ac40EB4604781C4812e7d18a5c33A68F2Bb6", - "mintValue": 10000 - }, - { - "name": "USDT", - "addr": "0xEe6f037EA26Bb9299048F96DD0b42556644D521A", - "mintValue": 10000 - }, - { - "name": "WBTC", - "addr": "0xED34081f1393ee9169fB3315a1Bd2168D49e7BE2", - "mintValue": 10 - }, - { - "name": "STETH", - "addr": "0x89fEf674aF2FF970486801095f2a29fEB226B31f", - "mintValue": 10 - }, - { - "name": "aWETH", - "addr": "0xd688e4EB2D65adC7c0d093B08CB8F8A5a8Ad9cb9", - "mintValue": 10 - }, - { - "name": "cWETH", - "addr": "0x1dAdAfD1c1B92A4C8850E15d025B9E9cbd57833e", - "mintValue": 10 - }, - { - "name": "PUNK", - "addr": "0x007131021C49600631E393Cf21487157620d7142", - "mintValue": 1000 - } - ], - [ - { - "name": "BAYC", - "addr": "0x929f72FF6D819f3F77793FBF694375BDfaFe8b9D", - "mintValue": 2 - }, - { - "name": "MAYC", - "addr": "0x1A4EA412d059A5B29F0e0BB62C46153a6Cfe60a7", - "mintValue": 2 - }, - { - "name": "DOODLES", - "addr": "0x08F61e21420dD599F8cB4218E8c645CC22177e57", - "mintValue": 2 - }, - { - "name": "MOONBIRD", - "addr": "0x0b17e99401f6dD0DE5d6e83a35449c99c4e3DEe1", - "mintValue": 2 - }, - { - "name": "MEEBITS", - "addr": "0xCd4872d686a582F8935a56c4b33aC15dCDE3bCD2", - "mintValue": 2 - }, - { - "name": "AZUKI", - "addr": "0x73d306aA71a40f9409018e95D8f1Ea1023355526", - "mintValue": 2 - }, - { - "name": "OTHR", - "addr": "0xB06deB38Bc99A3E50B750Ca9C229C2dCb00C0461", - "mintValue": 2 - }, - { - "name": "CLONEX", - "addr": "0xB642762bc55Cdf662d75e1631d2D4Bb6Be027664", - "mintValue": 2 - } - ], - { - "name": "CRYPTO_PUNK", - "addr": "0x8f69a49037420cF58c8318e833f6047b32F7d1BF", - "mintValue": 2 - } - ], - "verified": false - } - }, - "PoolAddressesProvider": { - "goerli": { - "address": "0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "ParaSpaceMM", - "0x018281853eCC543Aa251732e8FDaa7323247eBeB" - ], - "verified": false - } - }, - "ACLManager": { - "goerli": { - "address": "0x79f1efb2B78f45B35B272Ca9a0e6792170e777dF", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB"], - "verified": false - } - }, - "PoolAddressesProviderRegistry": { - "goerli": { - "address": "0x9194994BA0eA75F878E536B72485c37B5067b574", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x018281853eCC543Aa251732e8FDaa7323247eBeB"], - "verified": false - } - }, - "SupplyLogic": { - "goerli": { - "address": "0x6e5D940307F697856Cf58EEf564da941F864EAf1", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "BorrowLogic": { - "goerli": { - "address": "0xFA5b8d14Ec35E0e9f4FD3eafC91E8Fb538fB2724", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "LiquidationLogic": { - "goerli": { - "address": "0x1B4044F79E9E7Ce4Dc71e55dcEc29d2aD3657264", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PoolLogic": { - "goerli": { - "address": "0x7165F7Bb3Ed864B808E48b06dc253b4Fec461F56", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "FlashClaimLogic": { - "goerli": { - "address": "0xC1190e413b7FD3e53A0D9C812E7c3C49bEe1aCD5", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "MarketplaceLogic": { - "goerli": { - "address": "0xbFAe558C8aa3c9bF86EB2fb85A016Ad31A36C7D8", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PoolCore": { - "goerli": { - "address": "0x38a2593a8b9178908819d92e6210bC90dd4936A8", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB"], - "verified": false, - "functions": [ - { - "name": "ADDRESSES_PROVIDER()", - "signature": "0x0542975c" - }, - { - "name": "AUCTION_RECOVERY_HEALTH_FACTOR()", - "signature": "0x76d61799" - }, - { - "name": "MAX_ATOMIC_TOKENS_ALLOWED()", - "signature": "0x285140f5" - }, - { - "name": "MAX_NUMBER_RESERVES()", - "signature": "0xf8119d51" - }, - { - "name": "MAX_STABLE_RATE_BORROW_SIZE_PERCENT()", - "signature": "0xe82fec2f" - }, - { - "name": "POOL_REVISION()", - "signature": "0x0148170e" - }, - { - "name": "borrow(address,uint256,uint256,uint16,address)", - "signature": "0xa415bcad" - }, - { - "name": "endAuction(address,address,uint256)", - "signature": "0x459ac032" - }, - { - "name": "finalizeTransfer(address,address,address,bool,uint256,uint256,uint256)", - "signature": "0xd59544cb" - }, - { - "name": "finalizeTransferERC721(address,address,address,bool,uint256,uint256)", - "signature": "0xeecc07af" - }, - { - "name": "flashClaim(address,address,uint256[],bytes)", - "signature": "0x759de116" - }, - { - "name": "getAuctionData(address,uint256)", - "signature": "0xbb5ce40d" - }, - { - "name": "getConfiguration(address)", - "signature": "0xc44b11f7" - }, - { - "name": "getReserveAddressById(uint16)", - "signature": "0x52751797" - }, - { - "name": "getReserveData(address)", - "signature": "0x35ea6a75" - }, - { - "name": "getReserveNormalizedIncome(address)", - "signature": "0xd15e0053" - }, - { - "name": "getReserveNormalizedVariableDebt(address)", - "signature": "0x386497fd" - }, - { - "name": "getReservesList()", - "signature": "0xd1946dbc" - }, - { - "name": "getUserAccountData(address)", - "signature": "0xbf92857c" - }, - { - "name": "getUserConfiguration(address)", - "signature": "0x4417a583" - }, - { - "name": "initialize(address)", - "signature": "0xc4d66de8" - }, - { - "name": "liquidationCall(address,address,address,uint256,bool)", - "signature": "0x00a718a9" - }, - { - "name": "liquidationERC721(address,address,address,uint256,uint256,bool)", - "signature": "0x1ba91d46" - }, - { - "name": "onERC721Received(address,address,uint256,bytes)", - "signature": "0x150b7a02" - }, - { - "name": "repay(address,uint256,uint256,address)", - "signature": "0x573ade81" - }, - { - "name": "repayWithPTokens(address,uint256,uint256)", - "signature": "0x28790769" - }, - { - "name": "repayWithPermit(address,uint256,uint256,address,uint256,uint8,bytes32,bytes32)", - "signature": "0xee3e210b" - }, - { - "name": "setAuctionValidityTime(address)", - "signature": "0xb6f468b8" - }, - { - "name": "setUserUseERC20AsCollateral(address,bool)", - "signature": "0xc5fa1ed2" - }, - { - "name": "setUserUseERC721AsCollateral(address,uint256[],bool)", - "signature": "0x58b666b1" - }, - { - "name": "startAuction(address,address,uint256)", - "signature": "0x685b8517" - }, - { - "name": "supply(address,uint256,address,uint16)", - "signature": "0x617ba037" - }, - { - "name": "supplyERC721(address,(uint256,bool)[],address,uint16)", - "signature": "0xaeaa4ae6" - }, - { - "name": "supplyERC721FromNToken(address,(uint256,bool)[],address)", - "signature": "0x14c43a21" - }, - { - "name": "supplyWithPermit(address,uint256,address,uint16,uint256,uint8,bytes32,bytes32)", - "signature": "0x02c205f0" - }, - { - "name": "withdraw(address,uint256,address)", - "signature": "0x69328dec" - }, - { - "name": "withdrawERC721(address,uint256[],address)", - "signature": "0x3786ddfc" - } - ] - } - }, - "PoolParameters": { - "goerli": { - "address": "0x92972eB16e25A4FcCebe19932bf60b2fafDbCAdf", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB"], - "verified": false, - "functions": [ - { - "name": "decreaseUserTotalAtomicTokens(address,address,uint24)", - "signature": "0x261389e9" - }, - { - "name": "dropReserve(address)", - "signature": "0x63c9b860" - }, - { - "name": "increaseUserTotalAtomicTokens(address,address,uint24)", - "signature": "0xbbebee1a" - }, - { - "name": "initReserve(address,address,address,address,address,address)", - "signature": "0xac6abd4e" - }, - { - "name": "mintToTreasury(address[])", - "signature": "0x9cd19996" - }, - { - "name": "rescueTokens(uint8,address,address,uint256)", - "signature": "0x7b2fa0ae" - }, - { - "name": "setAuctionRecoveryHealthFactor(uint64)", - "signature": "0xffaf1eef" - }, - { - "name": "setConfiguration(address,(uint256))", - "signature": "0xf51e435b" - }, - { - "name": "setMaxAtomicTokensAllowed(uint24)", - "signature": "0x71240432" - }, - { - "name": "setReserveAuctionStrategyAddress(address,address)", - "signature": "0xe81a19f2" - }, - { - "name": "setReserveDynamicConfigsStrategyAddress(address,address)", - "signature": "0xa806374c" - }, - { - "name": "setReserveInterestRateStrategyAddress(address,address)", - "signature": "0x1d2118f9" - } - ] - } - }, - "PoolMarketplace": { - "goerli": { - "address": "0x9CD02A8B61217C57296E561C5CB7fACB188EE4ea", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB"], - "verified": false, - "functions": [ - { - "name": "acceptBidWithCredit(bytes32,bytes,(address,uint256,bytes,uint8,bytes32,bytes32),address,uint16)", - "signature": "0x5bfc0116" - }, - { - "name": "batchAcceptBidWithCredit(bytes32[],bytes[],(address,uint256,bytes,uint8,bytes32,bytes32)[],address,uint16)", - "signature": "0x7da8093e" - }, - { - "name": "batchBuyWithCredit(bytes32[],bytes[],(address,uint256,bytes,uint8,bytes32,bytes32)[],uint16)", - "signature": "0xcfa101a6" - }, - { - "name": "buyWithCredit(bytes32,bytes,(address,uint256,bytes,uint8,bytes32,bytes32),uint16)", - "signature": "0xec29874a" - } - ] - } - }, - "Pool": { - "goerli": { - "address": "0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb" - } - }, - "ConfiguratorLogic": { - "goerli": { - "address": "0x5f673EB20656b16B3a87819f91da4385d26FBa4a", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PoolConfiguratorImpl": { - "goerli": { - "address": "0xB06726996Cb9Ef05aC49e1e46D7E472f0037c3A9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PoolConfigurator": { - "goerli": { - "address": "0xDEBaB4204C60E988cCFABD666dABb4D524aA8430", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "ReservesSetupHelper": { - "goerli": { - "address": "0x7059b3D620c66BB7BEC940faF77642d8bb848A98", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "NFTFloorOracle": { - "goerli": { - "address": "0x28720dd5b1a55353dF808b797555b253785d5f64", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PriceOracle": { - "goerli": { - "address": "0x08527a5A8F783Db169a72Bc8E88EEB7C36ffc647", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "MockAggregator": { - "DAI": { - "goerli": { - "address": "0x51814d8E600689fB2849a3cCAb7ABaa03695861F", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["908578801039414"], - "verified": false - } - }, - "USDC": { - "goerli": { - "address": "0xfa7c8512B6c56BdDF5B0Ca7c58576f5Bb7b98Ebb", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["915952223931999"], - "verified": false - } - }, - "USDT": { - "goerli": { - "address": "0x4d04B424aD6bd4B8A2bD1dEDEe58181eE557061C", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["915952223931999"], - "verified": false - } - }, - "WETH": { - "goerli": { - "address": "0xd0FdC824415F3FD652ECEACba4a1CFC8030b92A5", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["1000000000000000000"], - "verified": false - } - }, - "WBTC": { - "goerli": { - "address": "0x943C4535570537F7398b9c5a1213D385FF1d7d63", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["18356369399062118000"], - "verified": false - } - }, - "stETH": { - "goerli": { - "address": "0x79784C50bBaCc1dB6E0de3B762699c8048444b30", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["1000000000000000000"], - "verified": false - } - }, - "APE": { - "goerli": { - "address": "0x678514DbF720cC546F7D7dbF6A6c1285c1E0643E", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["3690684128600000"], - "verified": false - } - }, - "aWETH": { - "goerli": { - "address": "0x2Fe2BBBed8deD5916A5651029Ec663dE41950F97", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["1000000000000000000"], - "verified": false - } - }, - "cETH": { - "goerli": { - "address": "0x0aF7E6ABd306ABe818b173dbfeA8241A74B0dAc2", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["1000000000000000000"], - "verified": false - } - }, - "PUNK": { - "goerli": { - "address": "0x07d17c246EA58E8cb2d02195EFdb13ac6B9ca190", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["140000000000000000000"], - "verified": false - } - }, - "BAYC": { - "goerli": { - "address": "0x2fB5A266D81d27E73e7C148900e7c91433D5C700", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["101000000000000000000"], - "verified": false - } - }, - "WPUNKS": { - "goerli": { - "address": "0x24DbDA8A14476C81b2Cc85c179fd3E28e9b86F6B", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["140000000000000000000"], - "verified": false - } - }, - "PUNKS": { - "goerli": { - "address": "0xf5DC3332321fDA26e8d28dC0D1fe1D5Eb9f1aFC9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["140000000000000000000"], - "verified": false - } - }, - "MAYC": { - "goerli": { - "address": "0x40C036e67B1Be27588ACa607CC5F48cFfb082E91", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["51000000000000000000"], - "verified": false - } - }, - "DOODLE": { - "goerli": { - "address": "0xef524B84cEF1E746d8E27BbAF9b88ba793dEF5f1", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["75000000000000000000"], - "verified": false - } - }, - "MOONBIRD": { - "goerli": { - "address": "0x94f1aEDD3e97beB887e2FeD40f8AAf032F73e128", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["20000000000000000"], - "verified": false - } - }, - "MEEBITS": { - "goerli": { - "address": "0xB910Ca6A7e47cD1A57d5F6dbc4aB7A3b1f3048B9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["22000000000000000000"], - "verified": false - } - }, - "AZUKI": { - "goerli": { - "address": "0xcDEe7B49a92597b65940e1534c6c8121D00D1c7D", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["21000000000000000000"], - "verified": false - } - }, - "OTHR": { - "goerli": { - "address": "0x1d0242d8326F7dBe86c7D3033E58702d05d051b5", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["25000000000000000000"], - "verified": false - } - }, - "CLONEX": { - "goerli": { - "address": "0x2dd4AbF2a13505ee79D6d2792f2E53c68353170d", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["27000000000000000000"], - "verified": false - } - } - }, - "ParaSpaceOracle": { - "goerli": { - "address": "0xB31Ee447f1091CB85380843b4bAC7974EbF84e36", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB", - [ - "0xf696a4AC243F313A127441e97643d1D40B0E47c3", - "0x4e7f19d6Adb6F7e3C309eee160e665Ecb3407e88", - "0x59D7Ac40EB4604781C4812e7d18a5c33A68F2Bb6", - "0xEe6f037EA26Bb9299048F96DD0b42556644D521A", - "0xED34081f1393ee9169fB3315a1Bd2168D49e7BE2", - "0x89fEf674aF2FF970486801095f2a29fEB226B31f", - "0xFd25ED19eCE9E230c340C789B40CB24fc7f50c81", - "0xd688e4EB2D65adC7c0d093B08CB8F8A5a8Ad9cb9", - "0x1dAdAfD1c1B92A4C8850E15d025B9E9cbd57833e", - "0x007131021C49600631E393Cf21487157620d7142", - "0x6EC7884E110Fd882926F44bB752eA5e09e919e99", - "0x929f72FF6D819f3F77793FBF694375BDfaFe8b9D", - "0x1A4EA412d059A5B29F0e0BB62C46153a6Cfe60a7", - "0x08F61e21420dD599F8cB4218E8c645CC22177e57", - "0x73d306aA71a40f9409018e95D8f1Ea1023355526", - "0xB642762bc55Cdf662d75e1631d2D4Bb6Be027664", - "0x0b17e99401f6dD0DE5d6e83a35449c99c4e3DEe1", - "0xCd4872d686a582F8935a56c4b33aC15dCDE3bCD2", - "0xB06deB38Bc99A3E50B750Ca9C229C2dCb00C0461" - ], - [ - "0x51814d8E600689fB2849a3cCAb7ABaa03695861F", - "0xd0FdC824415F3FD652ECEACba4a1CFC8030b92A5", - "0xfa7c8512B6c56BdDF5B0Ca7c58576f5Bb7b98Ebb", - "0x4d04B424aD6bd4B8A2bD1dEDEe58181eE557061C", - "0x943C4535570537F7398b9c5a1213D385FF1d7d63", - "0x79784C50bBaCc1dB6E0de3B762699c8048444b30", - "0x678514DbF720cC546F7D7dbF6A6c1285c1E0643E", - "0x2Fe2BBBed8deD5916A5651029Ec663dE41950F97", - "0x0aF7E6ABd306ABe818b173dbfeA8241A74B0dAc2", - "0x07d17c246EA58E8cb2d02195EFdb13ac6B9ca190", - "0x24DbDA8A14476C81b2Cc85c179fd3E28e9b86F6B", - "0x2fB5A266D81d27E73e7C148900e7c91433D5C700", - "0x40C036e67B1Be27588ACa607CC5F48cFfb082E91", - "0xef524B84cEF1E746d8E27BbAF9b88ba793dEF5f1", - "0xcDEe7B49a92597b65940e1534c6c8121D00D1c7D", - "0x2dd4AbF2a13505ee79D6d2792f2E53c68353170d", - "0x94f1aEDD3e97beB887e2FeD40f8AAf032F73e128", - "0xB910Ca6A7e47cD1A57d5F6dbc4aB7A3b1f3048B9", - "0x1d0242d8326F7dBe86c7D3033E58702d05d051b5" - ], - "0x08527a5A8F783Db169a72Bc8E88EEB7C36ffc647", - "0x4e7f19d6Adb6F7e3C309eee160e665Ecb3407e88", - "1000000000000000000" - ], - "verified": false - } - }, - "UniswapV3OracleWrapper": { - "goerli": { - "address": "0xe8A9F41d37e3a37e0eae3fD9C28b8BE19c7108e8", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB" - ], - "verified": false - } - }, - "ProtocolDataProvider": { - "goerli": { - "address": "0x9A2C5733758C9E7E29Ae632EebA88F077DBCfde2", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB"], - "verified": false - } - }, - "MockIncentivesController": { - "goerli": { - "address": "0x643A443A13DEC4930a07a7D9ba0E06B42183b183", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "StableDebtToken": { - "goerli": { - "address": "0xcb7Ffe27152cB6BA11dCfAF27Be04aEe9FA3BF85", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "VariableDebtToken": { - "goerli": { - "address": "0xFa2233020002ac26aB5925675E7EDd8B0Ea25Da5", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "PToken": { - "goerli": { - "address": "0xB5c05a4AB004189f9a966662F24254a08Df2C22b", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "NToken": { - "goerli": { - "address": "0xeaAD7bea25DbEfBfecC46CBdB8Ec3ED35F1Db61c", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb", false], - "verified": false - } - }, - "NTokenMoonBirds": { - "goerli": { - "address": "0xC7805A160f6B5619dD3e4Cc837930689E9d3D802", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "NTokenUniswapV3": { - "goerli": { - "address": "0x8Cd4921a70eE64e664bd872aB018546A22aAEb7C", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "pTokenImpl": { - "goerli": { - "address": "0xB5c05a4AB004189f9a966662F24254a08Df2C22b" - } - }, - "nTokenImpl": { - "goerli": { - "address": "0xeaAD7bea25DbEfBfecC46CBdB8Ec3ED35F1Db61c" - } - }, - "DefaultReserveInterestRateStrategy": { - "goerli": { - "address": "0x9cF86c8f0c4a90340a13002d59E6aca5D18Fd088", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB", - "450000000000000000000000000", - "0", - "70000000000000000000000000", - "3000000000000000000000000000", - "100000000000000000000000000", - "300000000000000000000000000", - "20000000000000000000000000", - "50000000000000000000000000", - "200000000000000000000000000" - ], - "verified": false - } - }, - "rateStrategyStableTwo": { - "goerli": { - "address": "0x3e979158550D7a7F6d984C60305B387d6DEeC235" - } - }, - "rateStrategyStableThree": { - "goerli": { - "address": "0x5fbC4793aedaC9384961a172C2d9741747Aae1e1" - } - }, - "rateStrategyXETH": { - "goerli": { - "address": "0x93921a6872F40A5492ACea33e93eFa33309226b3" - } - }, - "rateStrategyAPE": { - "goerli": { - "address": "0x58F72518d7C8D79427ac02b2A30904B4cFC48Cfb" - } - }, - "rateStrategyWBTC": { - "goerli": { - "address": "0xEd11D4ea27AfA9995a57De369d9c7Cf788a4eE15" - } - }, - "rateStrategyNFT": { - "goerli": { - "address": "0x9cF86c8f0c4a90340a13002d59E6aca5D18Fd088" - } - }, - "DefaultReserveAuctionStrategy": { - "goerli": { - "address": "0xcD45762Bd90a4DC01e55f0bB17374462942a3D16", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "3000000000000000000", - "1200000000000000000", - "500000000000000000", - "57000000000000000", - "80000000000000000", - "900" - ], - "verified": false - } - }, - "auctionStrategyExp": { - "goerli": { - "address": "0xcD45762Bd90a4DC01e55f0bB17374462942a3D16" - } - }, - "PTokenStETH": { - "goerli": { - "address": "0x271CC852646439131B332B645FbC425cc5F30658", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "PTokenAToken": { - "goerli": { - "address": "0xD7e0cE094fC1A5A473D4B47D6a8BE58b495E1d1B", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "UniswapV3DynamicConfigsStrategy": { - "goerli": { - "address": "0xa6dA50b41dc26C9137946AB2E4aae0c6e24a6F32", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "0x0e62e9831BBfa071A98E6851df7ce05f00EC57aB" - ], - "verified": false - } - }, - "UiPoolDataProvider": { - "goerli": { - "address": "0x9fC957E4a02ba5E6c211F952C6f3d150d467810B", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0xd4a33860578de61dbabdc8bfdb98fd742fa7028e", - "0xd4a33860578de61dbabdc8bfdb98fd742fa7028e" - ], - "verified": false - } - }, - "WalletBalanceProvider": { - "goerli": { - "address": "0x1A7C13E2751195b04Ac4B8922f1208805545c4D3", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "UiIncentiveDataProvider": { - "goerli": { - "address": "0x67E2F5D0e5D20b883D4B41B8195CF6Fd1C4696F0", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "WETHGateway": { - "goerli": { - "address": "0x53841Aa8D76ce5Ea08cC94317390444A0807d736", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x4e7f19d6Adb6F7e3C309eee160e665Ecb3407e88", - "0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb" - ], - "verified": false - } - }, - "WETHGatewayProxy": { - "goerli": { - "address": "0x7c8aaD11CaE8F561554EA71EAB67cd9bB02B8A61", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x28abAC3E3F1fbC8Aa4Ded74C1589026038f889d8"], - "verified": false - } - }, - "WPunkGateway": { - "goerli": { - "address": "0xc55e15Bc261cB9A09FFE1c813f8735b8bD81a3A8", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x8f69a49037420cF58c8318e833f6047b32F7d1BF", - "0x6EC7884E110Fd882926F44bB752eA5e09e919e99", - "0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb" - ], - "verified": false - } - }, - "WPunkGatewayProxy": { - "goerli": { - "address": "0x8e845dcA5A9c32022769FB1004206F75E8A9a746", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x28abAC3E3F1fbC8Aa4Ded74C1589026038f889d8"], - "verified": false - } - }, - "MoonBirdsGateway": { - "goerli": { - "address": "0xab138A573815f8B3F07A295417b06AE2379e7C84", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x0b17e99401f6dD0DE5d6e83a35449c99c4e3DEe1", - "0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb" - ], - "verified": false - } - }, - "MoonBirdsGatewayProxy": { - "goerli": { - "address": "0x22EBbAd0342BcCcd80583F905cd84ae891417687", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x28abAC3E3F1fbC8Aa4Ded74C1589026038f889d8"], - "verified": false - } - }, - "UniswapV3Gateway": { - "goerli": { - "address": "0x974620E30d942A82DDb65Af20207F09B86374B60", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb" - ], - "verified": false - } - }, - "UniswapV3GatewayProxy": { - "goerli": { - "address": "0x267462F58e5dD314F15d60F13aBb9D2293E1a03c", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x28abAC3E3F1fbC8Aa4Ded74C1589026038f889d8"], - "verified": false - } - }, - "ConduitController": { - "goerli": { - "address": "0x9F2c4F900C9E542A7de6E31a403F1aC24568B5a4", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "PausableZoneController": { - "goerli": { - "address": "0x6f1Ffe2259CEe5A00F4fB3346fb716D7A54986F0", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x018281853eCC543Aa251732e8FDaa7323247eBeB"], - "verified": false - } - }, - "Seaport": { - "goerli": { - "address": "0x4721f5e2763854aFDa8c8F37EECb2b2a28A0962F", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x9F2c4F900C9E542A7de6E31a403F1aC24568B5a4"], - "verified": false - } - }, - "SeaportAdapter": { - "goerli": { - "address": "0x350b757d6E888176Bfe01b826f73DEDaC70032ad", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "ConduitKey": { - "goerli": { - "address": "0x018281853eCC543Aa251732e8FDaa7323247eBeB000000000000000000000000" - } - }, - "Conduit": { - "goerli": { - "address": "0x13396733295EDbBa9f38673a74c8a7C4bebbbB28" - } - }, - "PausableZone": { - "goerli": { - "address": "0x6B2449A18215BB0d106F369c47A66A5E3C8b85db" - } - }, - "CurrencyManager": { - "goerli": { - "address": "0x073CE1D731676E33763C7e4717741114F051B6e2", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "ExecutionManager": { - "goerli": { - "address": "0xEF4b1f1D547d3a6F4C861F944aCCd8655B27f5DF", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "RoyaltyFeeRegistry": { - "goerli": { - "address": "0xDC3975f92b35dBf21f359D27e0eE7b2c36EdE03C", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0"], - "verified": false - } - }, - "RoyaltyFeeManager": { - "goerli": { - "address": "0xf25D4e51B6830EEE0fCEae7835ef00fF7EaBdced", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0xDC3975f92b35dBf21f359D27e0eE7b2c36EdE03C"], - "verified": false - } - }, - "LooksRareExchange": { - "goerli": { - "address": "0x07e3Eb57D6545FadDFE3816938A5a78949E21Cf9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x073CE1D731676E33763C7e4717741114F051B6e2", - "0xEF4b1f1D547d3a6F4C861F944aCCd8655B27f5DF", - "0xf25D4e51B6830EEE0fCEae7835ef00fF7EaBdced", - "0x4e7f19d6Adb6F7e3C309eee160e665Ecb3407e88", - "0x0000000000000000000000000000000000000000" - ], - "verified": false - } - }, - "LooksRareAdapter": { - "goerli": { - "address": "0x7efeE618d151F3aFa5C171D73696f1fcA8c96365", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "TransferManagerERC721": { - "goerli": { - "address": "0x10B2787B393fD73ac132def8805BAFEc65763053", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x07e3Eb57D6545FadDFE3816938A5a78949E21Cf9"], - "verified": false - } - }, - "TransferManagerERC1155": { - "goerli": { - "address": "0x33D70E0cecF6900428dac11Cc4E33c6aF8d6F658", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x07e3Eb57D6545FadDFE3816938A5a78949E21Cf9"], - "verified": false - } - }, - "TransferSelectorNFT": { - "goerli": { - "address": "0xAB93B622f7783691F8B70180a3c67b202FE036D1", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [ - "0x10B2787B393fD73ac132def8805BAFEc65763053", - "0x33D70E0cecF6900428dac11Cc4E33c6aF8d6F658" - ], - "verified": false - } - }, - "StrategyStandardSaleForFixedPrice": { - "goerli": { - "address": "0xBA89800c24bB53188FbA2A48bE5d7Bf04bBe4AA5", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0"], - "verified": false - } - }, - "X2Y2R1": { - "goerli": { - "address": "0x410DC962309aCD8828d0213F8dEb31730da9ea0d", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "ERC721Delegate": { - "goerli": { - "address": "0xd3394A3A017D793bfFA35ec860e9b5F216E9fD00", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "X2Y2Adapter": { - "goerli": { - "address": "0x2F322988A75d00a7119298c9059Df560d1bB8B76", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": [], - "verified": false - } - }, - "FlashClaimRegistry": { - "goerli": { - "address": "0xDb437e93e1dA2BE1BCCc1A7F250CFe2A236041B9", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x4d24303d7bb6B04DbF0Ff213A189C6a6F3e713Eb"], - "verified": false - } - }, - "MockAirdropProject": { - "goerli": { - "address": "0xe91F13C1e183e5BA7BF2C3cC9924264B633Ee992", - "deployer": "0x018281853eCC543Aa251732e8FDaa7323247eBeB", - "constructorArgs": ["0x929f72FF6D819f3F77793FBF694375BDfaFe8b9D"], - "verified": false - } - } -} diff --git a/src/seaport.ts b/src/seaport.ts index 237b6d72..3f6aaf08 100644 --- a/src/seaport.ts +++ b/src/seaport.ts @@ -7,40 +7,39 @@ import { PayableOverrides, providers, } from "ethers"; -import { formatBytes32String, _TypedDataEncoder } from "ethers/lib/utils"; +import { _TypedDataEncoder, formatBytes32String } from "ethers/lib/utils"; import { DomainRegistryABI } from "./abi/DomainRegistry"; import { SeaportABI } from "./abi/Seaport"; import { - SEAPORT_CONTRACT_NAME, - SEAPORT_CONTRACT_VERSION, + CROSS_CHAIN_SEAPORT_ADDRESS, + DOMAIN_REGISTRY_ADDRESS, EIP_712_ORDER_TYPE, KNOWN_CONDUIT_KEYS_TO_CONDUIT, MAX_INT, NO_CONDUIT, - OPENSEA_CONDUIT_KEY, OrderType, - CROSS_CHAIN_SEAPORT_ADDRESS, - DOMAIN_REGISTRY_ADDRESS, + SEAPORT_CONTRACT_NAME, + SEAPORT_CONTRACT_VERSION, } from "./constants"; import type { - SeaportConfig, + ContractMethodReturnType, CreateOrderAction, CreateOrderInput, DomainRegistryContract, ExchangeAction, InputCriteria, + MatchOrdersFulfillment, Order, OrderComponents, OrderParameters, OrderStatus, OrderUseCase, OrderWithCounter, - TipInputItem, - TransactionMethods, - ContractMethodReturnType, - MatchOrdersFulfillment, + SeaportConfig, SeaportContract, Signer, + TipInputItem, + TransactionMethods, } from "./types"; import { getApprovalActions } from "./utils/approval"; import { @@ -87,8 +86,6 @@ export class Seaport { private defaultConduitKey: string; - readonly OPENSEA_CONDUIT_KEY: string = OPENSEA_CONDUIT_KEY; - /** * @param providerOrSigner - The provider or signer to use for web3-related calls * @param considerationConfig - A config to provide flexibility in the usage of Seaport @@ -103,6 +100,9 @@ export class Seaport { conduitKeyToConduit, }: SeaportConfig = {} ) { + if (!overrides?.contractAddress) { + throw new Error("Seaport Contract is required !"); + } const provider = providerOrSigner instanceof providers.Provider ? providerOrSigner