diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fbe829b70..30f684a50 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ on: jobs: lint-build-test: name: Lint, build and test - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: JOB_LINT: ${{ steps.lint.outcome }} JOB_TEST: ${{ steps.test.outcome }} @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" cache: "npm" - name: Turbo Cache id: turbo-cache @@ -38,7 +38,7 @@ jobs: e2e-tests: name: Run e2e tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 needs: [lint-build-test] steps: - uses: actions/checkout@v3 @@ -47,7 +47,7 @@ jobs: token: ${{ secrets.BSNORG_ACTIONS_SECRET }} - uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" # NOTE: Disabled until https://github.com/actions/setup-node/issues/516 is resolved # cache: "npm" - name: Turbo Cache diff --git a/.github/workflows/pin-to-pinata.yaml b/.github/workflows/pin-to-pinata.yaml index a56945ca0..0d256e9e6 100644 --- a/.github/workflows/pin-to-pinata.yaml +++ b/.github/workflows/pin-to-pinata.yaml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" cache: "npm" - name: Turbo Cache id: turbo-cache diff --git a/.github/workflows/publish-alpha.yaml b/.github/workflows/publish-alpha.yaml index f35ba3bbc..d4aa8f98f 100644 --- a/.github/workflows/publish-alpha.yaml +++ b/.github/workflows/publish-alpha.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup .npmrc file for publish uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" registry-url: "https://registry.npmjs.org" cache: "npm" - name: Turbo Cache diff --git a/.github/workflows/publish-latest.yaml b/.github/workflows/publish-latest.yaml index 816b9697f..7c338472e 100644 --- a/.github/workflows/publish-latest.yaml +++ b/.github/workflows/publish-latest.yaml @@ -18,7 +18,7 @@ jobs: - name: Setup .npmrc file for publish uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" registry-url: "https://registry.npmjs.org" cache: "npm" - name: Turbo Cache diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index 283bb03c8..cbd3125ad 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -123,18 +123,32 @@ module.exports = { }, viaIR: true }, + { + version: "0.8.21", + settings: { + viaIR: false, + optimizer: { + enabled: true, + runs: 100, + details: { + yul: true + } + }, + evmVersion: "shanghai" // for ethereum mainnet, use shanghai, for polygon, use london + }, + }, { version: "0.8.22", settings: { viaIR: false, optimizer: { enabled: true, - runs: 200, + runs: 100, details: { yul: true } }, - evmVersion: "london" // for ethereum mainnet, use shanghai, for polygon, use london + evmVersion: "shanghai" // for ethereum mainnet, use shanghai, for polygon, use london } }, { @@ -148,7 +162,7 @@ module.exports = { settings: { optimizer: { enabled: true, - runs: 200, + runs: 190, details: { yul: true } @@ -223,6 +237,7 @@ module.exports = { "ProtocolDiamond", "IBosonAccountHandler", "IBosonExchangeHandler", + "IBosonExchangeCommit", "IBosonFundsHandler", "IBosonOfferHandler", "IBosonOrchestrationHandler", @@ -236,8 +251,10 @@ module.exports = { "IBosonPriceDiscoveryHandler", "Seaport", "OpenSeaWrapper", - "OpenSeaWrapperFactory" - ] + "OpenSeaWrapperFactory", + "DRFeeMutualizer" + ], + except: ["MockDRFeeMutualizer"] } }; @@ -319,7 +336,7 @@ function getWrapperConfig(chainId) { return { protocolAddress: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", priceDiscoveryClient: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", - seaport: "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF" + seaport: "0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf" }; } } diff --git a/contracts/package-lock.json b/contracts/package-lock.json index e6a3d134c..54ecf450d 100644 --- a/contracts/package-lock.json +++ b/contracts/package-lock.json @@ -7,22 +7,22 @@ "name": "hardhat-project", "hasInstallScript": true, "dependencies": { - "@openzeppelin/contracts": "^4.9.0", - "@openzeppelin/contracts-upgradeable": "4.9.3" + "@openzeppelin/contracts": "^4.9.6", + "@openzeppelin/contracts-upgradeable": "4.9.6" }, "devDependencies": { - "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#db298d6b7efcc0fa9902966dbf1e1e6822b93da6", + "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#6a14c31bead936ed03b2d51ab82010ecd1047f40", "@manifoldxyz/royalty-registry-solidity": "github:manifoldxyz/royalty-registry-solidity#e5369fc79279ce2e4c6ea2eb5914df51e89e8bd8", - "@nomicfoundation/hardhat-ethers": "^3.0.5", - "@nomicfoundation/hardhat-network-helpers": "^1.0.10", - "@nomicfoundation/hardhat-toolbox": "^3.0.0", + "@nomicfoundation/hardhat-ethers": "^3.0.9", + "@nomicfoundation/hardhat-network-helpers": "^1.0.13", + "@nomicfoundation/hardhat-toolbox": "^6.0.0", "chai": "^4.3.6", "dotenv": "^16.0.1", "ethereum-waffle": "^3.4.4", - "ethers": "^6.9.0", + "ethers": "^6.15.0", "ethersv5": "npm:ethers@^5.7.2", "glob": "^9.1.0", - "hardhat": "^2.19.2", + "hardhat": "^2.25.0", "hardhat-abi-exporter": "^2.9.0", "patch-package": "^8.0.0", "seaport": "github:ProjectOpenSea/seaport#e9c5a9f17cb5ee658ccc9cb1a8eeab02c1f5a4cd" @@ -36,14 +36,26 @@ "license": "MIT" }, "node_modules/@bosonprotocol/boson-protocol-contracts": { - "version": "2.4.1", - "resolved": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#db298d6b7efcc0fa9902966dbf1e1e6822b93da6", - "integrity": "sha512-mx8xdzHPBpt8ZWZAUtx/cZET8NMDLs0O0U5CQDS1lm+lGdBcbKSenkpnoN+TFb43ajQRx9QDebIufYV5RAWoyA==", + "version": "2.4.2", + "resolved": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#6a14c31bead936ed03b2d51ab82010ecd1047f40", + "integrity": "sha512-iFITQfvZWTa5SfqXciRAk/cqZXxwafXyEJ94IzCneujQl7R/8O5aKAVOtoO9Sdfpz8zEO7J6GGuClbJmBTVm8w==", "dev": true, "license": "GPL-3.0-or-later", "dependencies": { "@openzeppelin/contracts": "^4.9.6", - "@openzeppelin/contracts-upgradeable": "4.9.3" + "@openzeppelin/contracts-upgradeable": "4.9.6" + } + }, + "node_modules/@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=0.1.90" } }, "node_modules/@cspotcode/source-map-support": { @@ -707,59 +719,6 @@ "node": ">=10.0" } }, - "node_modules/@ethereum-waffle/provider/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@ethereum-waffle/provider/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@ethereum-waffle/provider/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@ethereum-waffle/provider/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/@ethereum-waffle/provider/node_modules/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -826,14 +785,20 @@ "@ethersproject/wordlists": "5.8.0" } }, - "node_modules/@ethereum-waffle/provider/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@ethereum-waffle/provider/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/@ethereum-waffle/provider/node_modules/patch-package": { @@ -909,19 +874,6 @@ "node": ">=0.10.0" } }, - "node_modules/@ethereum-waffle/provider/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@ethereum-waffle/provider/node_modules/which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -998,6 +950,45 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/@ethereumjs/util/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@ethereumjs/util/node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@ethereumjs/util/node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", @@ -1781,6 +1772,116 @@ "node": ">=14" } }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", @@ -1793,9 +1894,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.3.tgz", - "integrity": "sha512-AiR5uKpFxP3PjO4R19kQGIMwxyRyPuXmKEEy301V1C0+1rVjS94EZQXf1QKZYN8Q0YM+estSPhmx5JwNftv6nw==", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "dev": true, "license": "MIT", "peer": true @@ -1849,6 +1950,20 @@ "@openzeppelin/contracts-upgradeable": "^4.8.0" } }, + "node_modules/@noble/ciphers": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", + "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -1930,28 +2045,28 @@ } }, "node_modules/@nomicfoundation/edr": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.11.2.tgz", - "integrity": "sha512-JEFMTs5Tju+YiCsv6EO+657O/fvPaQ7bkUCkWqHFYFFbCKH1yh0PeRIaqj5h4z4O16ckxbVpAM676ZFTmvFUGQ==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.11.3.tgz", + "integrity": "sha512-kqILRkAd455Sd6v8mfP3C1/0tCOynJWY+Ir+k/9Boocu2kObCrsFgG+ZWB7fSBVdd9cPVSNrnhWS+V+PEo637g==", "dev": true, "license": "MIT", "dependencies": { - "@nomicfoundation/edr-darwin-arm64": "0.11.2", - "@nomicfoundation/edr-darwin-x64": "0.11.2", - "@nomicfoundation/edr-linux-arm64-gnu": "0.11.2", - "@nomicfoundation/edr-linux-arm64-musl": "0.11.2", - "@nomicfoundation/edr-linux-x64-gnu": "0.11.2", - "@nomicfoundation/edr-linux-x64-musl": "0.11.2", - "@nomicfoundation/edr-win32-x64-msvc": "0.11.2" + "@nomicfoundation/edr-darwin-arm64": "0.11.3", + "@nomicfoundation/edr-darwin-x64": "0.11.3", + "@nomicfoundation/edr-linux-arm64-gnu": "0.11.3", + "@nomicfoundation/edr-linux-arm64-musl": "0.11.3", + "@nomicfoundation/edr-linux-x64-gnu": "0.11.3", + "@nomicfoundation/edr-linux-x64-musl": "0.11.3", + "@nomicfoundation/edr-win32-x64-msvc": "0.11.3" }, "engines": { "node": ">= 18" } }, "node_modules/@nomicfoundation/edr-darwin-arm64": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.11.2.tgz", - "integrity": "sha512-/QU0GHeoLFOJp28qK46kkTG849NN/5Qgq9ifKzhqBas1MCqwcdjrUI3raGkvE9SWJevljWd1HdW16fFpxUrzbA==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.11.3.tgz", + "integrity": "sha512-w0tksbdtSxz9nuzHKsfx4c2mwaD0+l5qKL2R290QdnN9gi9AV62p9DHkOgfBdyg6/a6ZlnQqnISi7C9avk/6VA==", "dev": true, "license": "MIT", "engines": { @@ -1959,9 +2074,9 @@ } }, "node_modules/@nomicfoundation/edr-darwin-x64": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.11.2.tgz", - "integrity": "sha512-Dam+k00vyYNXCkM7JZGQBm0McNaL6ilbfY8BuIdHU2mpIVO5hpAFk8IQnMnG3FRuXuPJ0JoSTkn1R495T8AKqw==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.11.3.tgz", + "integrity": "sha512-QR4jAFrPbOcrO7O2z2ESg+eUeIZPe2bPIlQYgiJ04ltbSGW27FblOzdd5+S3RoOD/dsZGKAvvy6dadBEl0NgoA==", "dev": true, "license": "MIT", "engines": { @@ -1969,9 +2084,9 @@ } }, "node_modules/@nomicfoundation/edr-linux-arm64-gnu": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.11.2.tgz", - "integrity": "sha512-6Z+hZ61c0v5EPVhCAc/rV36eN20GbPRfcmUeFJ3t+RjdY20EiUQzP85YU0q3AgCuwr410W27pazoBoL73cCPbg==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.11.3.tgz", + "integrity": "sha512-Ktjv89RZZiUmOFPspuSBVJ61mBZQ2+HuLmV67InNlh9TSUec/iDjGIwAn59dx0bF/LOSrM7qg5od3KKac4LJDQ==", "dev": true, "license": "MIT", "engines": { @@ -1979,9 +2094,9 @@ } }, "node_modules/@nomicfoundation/edr-linux-arm64-musl": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.11.2.tgz", - "integrity": "sha512-AqC4AI3pR4vSsEcFyW/6rI1q16wEjIRYIR25IJO/EdBmXdsuVZgxsf/kMUCWQhhTuy89RTgIGTbMAQA0+DfSvA==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.11.3.tgz", + "integrity": "sha512-B3sLJx1rL2E9pfdD4mApiwOZSrX0a/KQSBWdlq1uAhFKqkl00yZaY4LejgZndsJAa4iKGQJlGnw4HCGeVt0+jA==", "dev": true, "license": "MIT", "engines": { @@ -1989,9 +2104,9 @@ } }, "node_modules/@nomicfoundation/edr-linux-x64-gnu": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.11.2.tgz", - "integrity": "sha512-vz1uiof1ZIi6RnXfHZiAXRgkloLciuYGD1rNDrqm1Pp7Nf0pbxw+e4TBQLoMYKzZn0MYS4u4Fa0AV2S7NjfptQ==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.11.3.tgz", + "integrity": "sha512-D/4cFKDXH6UYyKPu6J3Y8TzW11UzeQI0+wS9QcJzjlrrfKj0ENW7g9VihD1O2FvXkdkTjcCZYb6ai8MMTCsaVw==", "dev": true, "license": "MIT", "engines": { @@ -1999,9 +2114,9 @@ } }, "node_modules/@nomicfoundation/edr-linux-x64-musl": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.11.2.tgz", - "integrity": "sha512-ArAbcrWwn+8Ze8JAaA9349N2E7hfs9PYvxDgfhujEH9iVC9XI6L+OhMATPsS3wkOST/+ykxELAF1KT4YjSxcrA==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.11.3.tgz", + "integrity": "sha512-ergXuIb4nIvmf+TqyiDX5tsE49311DrBky6+jNLgsGDTBaN1GS3OFwFS8I6Ri/GGn6xOaT8sKu3q7/m+WdlFzg==", "dev": true, "license": "MIT", "engines": { @@ -2009,9 +2124,9 @@ } }, "node_modules/@nomicfoundation/edr-win32-x64-msvc": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.11.2.tgz", - "integrity": "sha512-GDXBhxy5wlmZYQrTXu9Oh9OPTsi4tCdmHy1z8O9XqdH9wsP674Frh6Fb43yjVoS2Ek1F9yX11nexIrFXSuNyJQ==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.11.3.tgz", + "integrity": "sha512-snvEf+WB3OV0wj2A7kQ+ZQqBquMcrozSLXcdnMdEl7Tmn+KDCbmFKBt3Tk0X3qOU4RKQpLPnTxdM07TJNVtung==", "dev": true, "license": "MIT", "engines": { @@ -2019,9 +2134,9 @@ } }, "node_modules/@nomicfoundation/hardhat-chai-matchers": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.9.tgz", - "integrity": "sha512-AbCoBuTKMlwlf1lesSmi/4VvJHNG9EP13EmkCJ+MJS1SBdtVtU4YrBbdYmnYPEvRFcAIMFB/cwcQGmuBYeCoVg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.1.0.tgz", + "integrity": "sha512-GPhBNafh1fCnVD9Y7BYvoLnblnvfcq3j8YDbO1gGe/1nOFWzGmV7gFu5DkwFXF+IpYsS+t96o9qc/mPu3V3Vfw==", "dev": true, "license": "MIT", "peer": true, @@ -2032,16 +2147,16 @@ "ordinal": "^1.0.3" }, "peerDependencies": { - "@nomicfoundation/hardhat-ethers": "^3.0.9", + "@nomicfoundation/hardhat-ethers": "^3.1.0", "chai": "^4.2.0", "ethers": "^6.14.0", - "hardhat": "^2.9.4" + "hardhat": "^2.26.0" } }, "node_modules/@nomicfoundation/hardhat-ethers": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.9.tgz", - "integrity": "sha512-xBJdRUiCwKpr0OYrOzPwAyNGtsVzoBx32HFPJVv6S+sFA9TmBIBDaqNlFPmBH58ZjgNnGhEr/4oBZvGr4q4TjQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.1.0.tgz", + "integrity": "sha512-jx6fw3Ms7QBwFGT2MU6ICG292z0P81u6g54JjSV105+FbTZOF4FJqPksLfDybxkkOeq28eDxbqq7vpxRYyIlxA==", "dev": true, "license": "MIT", "dependencies": { @@ -2050,52 +2165,89 @@ }, "peerDependencies": { "ethers": "^6.14.0", - "hardhat": "^2.0.0" + "hardhat": "^2.26.0" + } + }, + "node_modules/@nomicfoundation/hardhat-ignition": { + "version": "0.15.13", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ignition/-/hardhat-ignition-0.15.13.tgz", + "integrity": "sha512-G4XGPWvxs9DJhZ6PE1wdvKjHkjErWbsETf4c7YxO6GUz+MJGlw+PtgbnCwhL3tQzSq3oD4MB0LGi+sK0polpUA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@nomicfoundation/ignition-core": "^0.15.13", + "@nomicfoundation/ignition-ui": "^0.15.12", + "chalk": "^4.0.0", + "debug": "^4.3.2", + "fs-extra": "^10.0.0", + "json5": "^2.2.3", + "prompts": "^2.4.2" + }, + "peerDependencies": { + "@nomicfoundation/hardhat-verify": "^2.1.0", + "hardhat": "^2.26.0" + } + }, + "node_modules/@nomicfoundation/hardhat-ignition-ethers": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ignition-ethers/-/hardhat-ignition-ethers-0.15.14.tgz", + "integrity": "sha512-eq+5n+c1DW18/Xp8/QrHBBvG5QaKUxYF/byol4f1jrnZ1zAy0OrqEa/oaNFWchhpLalX7d7suk/2EL0PbT0CDQ==", + "dev": true, + "license": "MIT", + "peer": true, + "peerDependencies": { + "@nomicfoundation/hardhat-ethers": "^3.1.0", + "@nomicfoundation/hardhat-ignition": "^0.15.13", + "@nomicfoundation/ignition-core": "^0.15.13", + "ethers": "^6.14.0", + "hardhat": "^2.26.0" } }, "node_modules/@nomicfoundation/hardhat-network-helpers": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.13.tgz", - "integrity": "sha512-ptg0+SH8jnfoYHlR3dKWTNTB43HZSxkuy3OeDk+AufEKQvQ7Ru9LQEbJtLuDTQ4HGRBkhl4oJ9RABsEIbn7Taw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.1.0.tgz", + "integrity": "sha512-ZS+NulZuR99NUHt2VwcgZvgeD6Y63qrbORNRuKO+lTowJxNVsrJ0zbRx1j5De6G3dOno5pVGvuYSq2QVG0qCYg==", "dev": true, "license": "MIT", "dependencies": { "ethereumjs-util": "^7.1.4" }, "peerDependencies": { - "hardhat": "^2.9.5" + "hardhat": "^2.26.0" } }, "node_modules/@nomicfoundation/hardhat-toolbox": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-3.0.0.tgz", - "integrity": "sha512-MsteDXd0UagMksqm9KvcFG6gNKYNa3GGNCy73iQ6bEasEgg2v8Qjl6XA5hjs8o5UD5A3153B6W2BIVJ8SxYUtA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-6.1.0.tgz", + "integrity": "sha512-iAIl6pIK3F4R3JXeq+b6tiShXUrp1sQRiPfqoCMUE7QLUzoFifzGV97IDRL6e73pWsMKpUQBsHBvTCsqn+ZdpA==", "dev": true, "license": "MIT", "peerDependencies": { - "@nomicfoundation/hardhat-chai-matchers": "^2.0.0", - "@nomicfoundation/hardhat-ethers": "^3.0.0", - "@nomicfoundation/hardhat-network-helpers": "^1.0.0", - "@nomicfoundation/hardhat-verify": "^1.0.0", - "@typechain/ethers-v6": "^0.4.0", - "@typechain/hardhat": "^8.0.0", + "@nomicfoundation/hardhat-chai-matchers": "^2.1.0", + "@nomicfoundation/hardhat-ethers": "^3.1.0", + "@nomicfoundation/hardhat-ignition-ethers": "^0.15.14", + "@nomicfoundation/hardhat-network-helpers": "^1.1.0", + "@nomicfoundation/hardhat-verify": "^2.1.0", + "@typechain/ethers-v6": "^0.5.0", + "@typechain/hardhat": "^9.0.0", "@types/chai": "^4.2.0", "@types/mocha": ">=9.1.0", - "@types/node": ">=12.0.0", + "@types/node": ">=20.0.0", "chai": "^4.2.0", - "ethers": "^6.4.0", - "hardhat": "^2.11.0", - "hardhat-gas-reporter": "^1.0.8", + "ethers": "^6.14.0", + "hardhat": "^2.26.0", + "hardhat-gas-reporter": "^2.3.0", "solidity-coverage": "^0.8.1", "ts-node": ">=8.0.0", - "typechain": "^8.2.0", + "typechain": "^8.3.0", "typescript": ">=4.5.0" } }, "node_modules/@nomicfoundation/hardhat-verify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-1.1.1.tgz", - "integrity": "sha512-9QsTYD7pcZaQFEA3tBb/D/oCStYDiEVDN7Dxeo/4SCyHRSm86APypxxdOMEPlGmXsAvd+p1j/dTODcpxb8aztA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.1.1.tgz", + "integrity": "sha512-K1plXIS42xSHDJZRkrE2TZikqxp9T4y6jUMUNI/imLgN5uCcEQokmfU0DlyP9zzHncYK92HlT5IWP35UVCLrPw==", "dev": true, "license": "MIT", "peer": true, @@ -2103,34 +2255,99 @@ "@ethersproject/abi": "^5.1.2", "@ethersproject/address": "^5.0.2", "cbor": "^8.1.0", - "chalk": "^2.4.2", "debug": "^4.1.1", "lodash.clonedeep": "^4.5.0", + "picocolors": "^1.1.0", "semver": "^6.3.0", "table": "^6.8.0", "undici": "^5.14.0" }, "peerDependencies": { - "hardhat": "^2.0.4" + "hardhat": "^2.26.0" } }, - "node_modules/@nomicfoundation/solidity-analyzer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.2.tgz", - "integrity": "sha512-q4n32/FNKIhQ3zQGGw5CvPF6GTvDCpYwIf7bEY/dZTZbgfDsHyjJwURxUJf3VQuuJj+fDIFl4+KkBVbw4Ef6jA==", + "node_modules/@nomicfoundation/ignition-core": { + "version": "0.15.13", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ignition-core/-/ignition-core-0.15.13.tgz", + "integrity": "sha512-Z4T1WIbw0EqdsN9RxtnHeQXBi7P/piAmCu8bZmReIdDo/2h06qgKWxjDoNfc9VBFZJ0+Dx79tkgQR3ewxMDcpA==", "dev": true, "license": "MIT", - "engines": { - "node": ">= 12" - }, - "optionalDependencies": { - "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.2", - "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.2", - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.2", - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.2", - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.2", - "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.2", - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.2" + "peer": true, + "dependencies": { + "@ethersproject/address": "5.6.1", + "@nomicfoundation/solidity-analyzer": "^0.1.1", + "cbor": "^9.0.0", + "debug": "^4.3.2", + "ethers": "^6.14.0", + "fs-extra": "^10.0.0", + "immer": "10.0.2", + "lodash": "4.17.21", + "ndjson": "2.0.0" + } + }, + "node_modules/@nomicfoundation/ignition-core/node_modules/@ethersproject/address": { + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.6.1.tgz", + "integrity": "sha512-uOgF0kS5MJv9ZvCz7x6T2EXJSzotiybApn4XlOgoTX0xdtyVIJ7pF+6cGPxiEq/dpBiTfMiw7Yc81JcwhSYA0Q==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "@ethersproject/bignumber": "^5.6.2", + "@ethersproject/bytes": "^5.6.1", + "@ethersproject/keccak256": "^5.6.1", + "@ethersproject/logger": "^5.6.0", + "@ethersproject/rlp": "^5.6.1" + } + }, + "node_modules/@nomicfoundation/ignition-core/node_modules/cbor": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/cbor/-/cbor-9.0.2.tgz", + "integrity": "sha512-JPypkxsB10s9QOWwa6zwPzqE1Md3vqpPc+cai4sAecuCsRyAtAl/pMyhPlMbT/xtPnm2dznJZYRLui57qiRhaQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "nofilter": "^3.1.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@nomicfoundation/ignition-ui": { + "version": "0.15.12", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ignition-ui/-/ignition-ui-0.15.12.tgz", + "integrity": "sha512-nQl8tusvmt1ANoyIj5RQl9tVSEmG0FnNbtwnWbTim+F8JLm4YLHWS0yEgYUZC+BEO3oS0D8r6V8a02JGZJgqiQ==", + "dev": true, + "peer": true + }, + "node_modules/@nomicfoundation/solidity-analyzer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.2.tgz", + "integrity": "sha512-q4n32/FNKIhQ3zQGGw5CvPF6GTvDCpYwIf7bEY/dZTZbgfDsHyjJwURxUJf3VQuuJj+fDIFl4+KkBVbw4Ef6jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" + }, + "optionalDependencies": { + "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.2", + "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.2", + "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.2", + "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.2", + "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.2", + "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.2", + "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.2" } }, "node_modules/@nomicfoundation/solidity-analyzer-darwin-arm64": { @@ -2199,7 +2416,7 @@ "node": ">= 12" } }, - "node_modules/@nomicfoundation/solidity-analyzer-win32-x64-msvc": { + "node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-x64-msvc": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.2.tgz", "integrity": "sha512-Fdjli4DCcFHb4Zgsz0uEJXZ2K7VEO+w5KVv7HmT7WO10iODdU9csC2az4jrhEsRtiR9Gfd74FlG0NYlw1BMdyA==", @@ -2217,11 +2434,23 @@ "license": "MIT" }, "node_modules/@openzeppelin/contracts-upgradeable": { - "version": "4.9.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.3.tgz", - "integrity": "sha512-jjaHAVRMrE4UuZNfDwjlLGDxTHWIOwTJS2ldnc278a0gevfXfPr8hxKEVBGFBE96kl2G3VHDZhUimw/+G3TG2A==", + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.6.tgz", + "integrity": "sha512-m4iHazOsOCv1DgM7eD7GupTJ+NFVujRZt1wzddDPSVGpWdKq1SKkla5htKG7+IS4d2XOCtzkUNwRZ7Vq5aEUMA==", "license": "MIT" }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@resolver-engine/core": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@resolver-engine/core/-/core-0.3.3.tgz", @@ -2322,93 +2551,81 @@ } }, "node_modules/@scure/bip32": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", - "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz", + "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@noble/curves": "~1.4.0", - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" + "@noble/curves": "~1.9.0", + "@noble/hashes": "~1.8.0", + "@scure/base": "~1.2.5" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip32/node_modules/@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz", + "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@noble/hashes": "1.4.0" + "@noble/hashes": "1.8.0" + }, + "engines": { + "node": "^14.21.3 || >=16" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip32/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", "dev": true, "license": "MIT", + "peer": true, "engines": { - "node": ">= 16" + "node": "^14.21.3 || >=16" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/@scure/bip32/node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/@scure/bip39": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", - "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", + "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" + "@noble/hashes": "~1.8.0", + "@scure/base": "~1.2.5" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip39/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", "dev": true, "license": "MIT", + "peer": true, "engines": { - "node": ">= 16" + "node": "^14.21.3 || >=16" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/@scure/bip39/node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/@sentry/core": { "version": "5.30.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz", @@ -2561,15 +2778,12 @@ "license": "0BSD" }, "node_modules/@solidity-parser/parser": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.14.5.tgz", - "integrity": "sha512-6dKnHZn7fg/iQATVEzqyUOyEidbn05q7YA2mQ9hC0MMXhhV3/JrsxmFSYZAcr7j1yUP700LLhTruvJ3MiQmjJg==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.20.2.tgz", + "integrity": "sha512-rbu0bzwNvMcwAjH86hiEAcOeRI2EeK8zCkHDrFykh/Al8mvJeFmjy3UrE7GYQjNwOgbGUUtCn5/k8CB8zIu7QA==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "antlr4ts": "^0.5.0-alpha.4" - } + "peer": true }, "node_modules/@tsconfig/node10": { "version": "1.0.11", @@ -2604,9 +2818,9 @@ "peer": true }, "node_modules/@typechain/ethers-v6": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v6/-/ethers-v6-0.4.3.tgz", - "integrity": "sha512-TrxBsyb4ryhaY9keP6RzhFCviWYApcLCIRMPyWaKp2cZZrfaM3QBoxXTnw/eO4+DAY3l+8O0brNW0WgeQeOiDA==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@typechain/ethers-v6/-/ethers-v6-0.5.1.tgz", + "integrity": "sha512-F+GklO8jBWlsaVV+9oHaPh5NJdd6rAKN4tklGfInX1Q7h0xPgVLP39Jl3eCulPB5qexI71ZFHwbljx4ZXNfouA==", "dev": true, "license": "MIT", "peer": true, @@ -2616,14 +2830,14 @@ }, "peerDependencies": { "ethers": "6.x", - "typechain": "^8.3.1", + "typechain": "^8.3.2", "typescript": ">=4.7.0" } }, "node_modules/@typechain/hardhat": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-8.0.3.tgz", - "integrity": "sha512-MytSmJJn+gs7Mqrpt/gWkTCOpOQ6ZDfRrRT2gtZL0rfGe4QrU4x9ZdW15fFbVM/XTa+5EsKiOMYXhRABibNeng==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-9.1.0.tgz", + "integrity": "sha512-mtaUlzLlkqTlfPwB3FORdejqBskSnh+Jl8AIJGjXNAQfRQ4ofHADPl1+oU7Z3pAJzmZbUXII8MhOLQltcHgKnA==", "dev": true, "license": "MIT", "peer": true, @@ -2631,10 +2845,27 @@ "fs-extra": "^9.1.0" }, "peerDependencies": { - "@typechain/ethers-v6": "^0.4.3", + "@typechain/ethers-v6": "^0.5.1", "ethers": "^6.1.0", "hardhat": "^2.9.9", - "typechain": "^8.3.1" + "typechain": "^8.3.2" + } + }, + "node_modules/@typechain/hardhat/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" } }, "node_modules/@types/bn.js": { @@ -2666,28 +2897,6 @@ "@types/chai": "*" } }, - "node_modules/@types/concat-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.1.tgz", - "integrity": "sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/form-data": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", - "integrity": "sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", @@ -2700,13 +2909,6 @@ "@types/node": "*" } }, - "node_modules/@types/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/minimatch": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", @@ -2734,24 +2936,24 @@ "peer": true }, "node_modules/@types/node": { - "version": "24.0.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.8.tgz", - "integrity": "sha512-WytNrFSgWO/esSH9NbpWUfTMGQwCGIKfCmNlmFDNiI5gGhgMmEA+V1AEvKLeBNvvtBnailJtkrEa2OIISwrVAA==", + "version": "24.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", + "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.8.0" + "undici-types": "~7.10.0" } }, "node_modules/@types/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "version": "2.6.13", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", + "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", - "form-data": "^4.0.0" + "form-data": "^4.0.4" } }, "node_modules/@types/pbkdf2": { @@ -2771,14 +2973,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/@types/resolve": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", @@ -2814,6 +3008,29 @@ "license": "ISC", "peer": true }, + "node_modules/abitype": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.1.0.tgz", + "integrity": "sha512-6Vh4HcRxNMLA0puzPjM5GBgT4aAcFGKZzSgAXvuZ27shJP6NEpielTuqbBmZILR5/xd0PizkBGy5hReKz9jl5A==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "url": "https://github.com/sponsors/wevm" + }, + "peerDependencies": { + "typescript": ">=5.0.4", + "zod": "^3.22.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", @@ -2962,26 +3179,21 @@ } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/antlr4ts": { - "version": "0.5.0-alpha.4", - "resolved": "https://registry.npmjs.org/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz", - "integrity": "sha512-WPQDt1B74OfPv/IMS2ekXAKkTZIHl88uMetg6q3OTqgFxZ/dxDXI0EWLyZid/1Pe6hTftyg5N7gel5wNAGxXyQ==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true - }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -3033,25 +3245,6 @@ "node": ">=8" } }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -3098,8 +3291,7 @@ "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/asynckit": { "version": "0.4.0", @@ -3152,15 +3344,15 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.10.0.tgz", - "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz", + "integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", + "form-data": "^4.0.4", "proxy-from-env": "^1.1.0" } }, @@ -3199,9 +3391,9 @@ "license": "MIT" }, "node_modules/bignumber.js": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.0.tgz", - "integrity": "sha512-EM7aMFTXbptt/wZdMlBv2t8IViwQL+h6SLHosp8Yf0dqJMTnY6iL32opnAB6kAdL0SZPuvcAzFr31o0c/R3/RA==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", "dev": true, "license": "MIT", "engines": { @@ -3265,103 +3457,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/boxen/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, + "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/boxen/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/boxen/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/boxen/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/boxen/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { @@ -3384,6 +3500,14 @@ "dev": true, "license": "MIT" }, + "node_modules/brotli-wasm": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brotli-wasm/-/brotli-wasm-2.0.1.tgz", + "integrity": "sha512-+3USgYsC7bzb5yU0/p2HnnynZl0ak0E6uoIm4UW4Aby/8s8HFCq6NCfrrf1E9c3O8OCSzq3oYO1tUVqIi61Nww==", + "dev": true, + "license": "Apache-2.0", + "peer": true + }, "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -3577,18 +3701,20 @@ } }, "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "node_modules/charenc": { @@ -3676,72 +3802,20 @@ } }, "node_modules/cli-table3": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", - "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz", + "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "object-assign": "^4.1.0", - "string-width": "^2.1.1" + "string-width": "^4.2.0" }, "engines": { - "node": ">=6" + "node": "10.* || >= 12.*" }, "optionalDependencies": { - "colors": "^1.1.2" - } - }, - "node_modules/cli-table3/node_modules/ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/cli-table3/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/cli-table3/node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cli-table3/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" + "@colors/colors": "1.5.0" } }, "node_modules/cliui": { @@ -3767,33 +3841,25 @@ } }, "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, "license": "MIT" }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.1.90" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -3848,6 +3914,20 @@ "node": ">=8.0.0" } }, + "node_modules/command-line-usage/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/command-line-usage/node_modules/array-back": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", @@ -3859,92 +3939,102 @@ "node": ">=8" } }, - "node_modules/command-line-usage/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", + "node_modules/command-line-usage/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "license": "MIT", "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/commander": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", - "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "node_modules/command-line-usage/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "engines": [ - "node >= 0.8" - ], "license": "MIT", "peer": true, "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" + "color-name": "1.1.3" } }, - "node_modules/concat-stream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "node_modules/command-line-usage/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true, "license": "MIT", "peer": true }, - "node_modules/concat-stream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "node_modules/command-line-usage/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, "license": "MIT", "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "engines": { + "node": ">=0.8.0" } }, - "node_modules/concat-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "node_modules/command-line-usage/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "license": "MIT", - "peer": true + "peer": true, + "engines": { + "node": ">=4" + } }, - "node_modules/concat-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/command-line-usage/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "safe-buffer": "~5.1.0" + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/command-line-usage/node_modules/typical": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", + "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" } }, + "node_modules/commander": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", + "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, "node_modules/cookie": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", @@ -4237,6 +4327,14 @@ "node": ">= 0.4" } }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -4372,13 +4470,16 @@ } }, "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/escodegen": { @@ -4445,177 +4546,20 @@ "version": "2.0.8", "resolved": "https://registry.npmjs.org/eth-ens-namehash/-/eth-ens-namehash-2.0.8.tgz", "integrity": "sha512-VWEI1+KJfz4Km//dadyvBBoBeSQ0MHTXPvr8UIXiLW6IanxvAV+DmlZAijZwAyggqGUfwQBeHf7tc9wzc1piSw==", - "dev": true, - "license": "ISC", - "dependencies": { - "idna-uts46-hx": "^2.3.1", - "js-sha3": "^0.5.7" - } - }, - "node_modules/eth-ens-namehash/node_modules/js-sha3": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", - "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/eth-gas-reporter": { - "version": "0.2.27", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.27.tgz", - "integrity": "sha512-femhvoAM7wL0GcI8ozTdxfuBtBFJ9qsyIAsmKVjlWAHUbdnnXHt+lKzz/kmldM5lA9jLuNHGwuIxorNpLbR1Zw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@solidity-parser/parser": "^0.14.0", - "axios": "^1.5.1", - "cli-table3": "^0.5.0", - "colors": "1.4.0", - "ethereum-cryptography": "^1.0.3", - "ethers": "^5.7.2", - "fs-readdir-recursive": "^1.1.0", - "lodash": "^4.17.14", - "markdown-table": "^1.1.3", - "mocha": "^10.2.0", - "req-cwd": "^2.0.0", - "sha1": "^1.1.1", - "sync-request": "^6.0.0" - }, - "peerDependencies": { - "@codechecks/client": "^0.1.0" - }, - "peerDependenciesMeta": { - "@codechecks/client": { - "optional": true - } - } - }, - "node_modules/eth-gas-reporter/node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "dev": true, - "license": "MIT", - "peer": true, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/eth-gas-reporter/node_modules/@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "node_modules/eth-gas-reporter/node_modules/ethers": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.8.0.tgz", - "integrity": "sha512-DUq+7fHrCg1aPDFCHx6UIPb3nmt2XMpM7Y/g2gLhsl3lIBqeAfOJIl1qEvRf2uq3BiKxmh6Fh5pfp2ieyek7Kg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, + "dev": true, + "license": "ISC", "dependencies": { - "@ethersproject/abi": "5.8.0", - "@ethersproject/abstract-provider": "5.8.0", - "@ethersproject/abstract-signer": "5.8.0", - "@ethersproject/address": "5.8.0", - "@ethersproject/base64": "5.8.0", - "@ethersproject/basex": "5.8.0", - "@ethersproject/bignumber": "5.8.0", - "@ethersproject/bytes": "5.8.0", - "@ethersproject/constants": "5.8.0", - "@ethersproject/contracts": "5.8.0", - "@ethersproject/hash": "5.8.0", - "@ethersproject/hdnode": "5.8.0", - "@ethersproject/json-wallets": "5.8.0", - "@ethersproject/keccak256": "5.8.0", - "@ethersproject/logger": "5.8.0", - "@ethersproject/networks": "5.8.0", - "@ethersproject/pbkdf2": "5.8.0", - "@ethersproject/properties": "5.8.0", - "@ethersproject/providers": "5.8.0", - "@ethersproject/random": "5.8.0", - "@ethersproject/rlp": "5.8.0", - "@ethersproject/sha2": "5.8.0", - "@ethersproject/signing-key": "5.8.0", - "@ethersproject/solidity": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@ethersproject/transactions": "5.8.0", - "@ethersproject/units": "5.8.0", - "@ethersproject/wallet": "5.8.0", - "@ethersproject/web": "5.8.0", - "@ethersproject/wordlists": "5.8.0" + "idna-uts46-hx": "^2.3.1", + "js-sha3": "^0.5.7" } }, + "node_modules/eth-ens-namehash/node_modules/js-sha3": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", + "integrity": "sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g==", + "dev": true, + "license": "MIT" + }, "node_modules/ethereum-bloom-filters": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz", @@ -4750,9 +4694,9 @@ } }, "node_modules/ethers": { - "version": "6.14.4", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.14.4.tgz", - "integrity": "sha512-Jm/dzRs2Z9iBrT6e9TvGxyb5YVKAPLlpna7hjxH7KH/++DSh2T/JVmQUv7iHI5E55hDbp/gEVvstWYXVxXFzsA==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.15.0.tgz", + "integrity": "sha512-Kf/3ZW54L4UT0pZtsY/rf+EkBU7Qi5nnhonjUb8yTXcxH3cdcWrV2cRyk0Xk/4jK6OoHhxxZHriyhje20If2hQ==", "dev": true, "funding": [ { @@ -4867,6 +4811,14 @@ "dev": true, "license": "MIT" }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/evp_bytestokey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", @@ -4936,9 +4888,9 @@ "peer": true }, "node_modules/fast-uri": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", - "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", "dev": true, "funding": [ { @@ -5029,9 +4981,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", "dev": true, "funding": [ { @@ -5065,6 +5017,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -5076,9 +5046,9 @@ } }, "node_modules/form-data": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz", - "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", "dev": true, "license": "MIT", "dependencies": { @@ -5100,29 +5070,21 @@ "license": "MIT" }, "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=12" } }, - "node_modules/fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -5130,6 +5092,21 @@ "dev": true, "license": "ISC" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -14364,17 +14341,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", @@ -14414,6 +14380,91 @@ "testrpc-sc": "index.js" } }, + "node_modules/ghost-testrpc/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ghost-testrpc/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ghost-testrpc/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/ghost-testrpc/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/ghost-testrpc/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/ghost-testrpc/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ghost-testrpc/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/glob": { "version": "9.3.5", "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", @@ -14651,19 +14702,17 @@ } }, "node_modules/hardhat": { - "version": "2.25.0", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.25.0.tgz", - "integrity": "sha512-yBiA74Yj3VnTRj7lhnn8GalvBdvsMOqTKRrRATSy/2v0VIR2hR0Jcnmfn4aQBLtGAnr3Q2c8CxL0g3LYegUp+g==", + "version": "2.26.3", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.26.3.tgz", + "integrity": "sha512-gBfjbxCCEaRgMCRgTpjo1CEoJwqNPhyGMMVHYZJxoQ3LLftp2erSVf8ZF6hTQC0r2wst4NcqNmLWqMnHg1quTw==", "dev": true, "license": "MIT", "dependencies": { "@ethereumjs/util": "^9.1.0", "@ethersproject/abi": "^5.1.2", - "@nomicfoundation/edr": "^0.11.1", + "@nomicfoundation/edr": "^0.11.3", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", - "@types/bn.js": "^5.1.0", - "@types/lru-cache": "^5.1.0", "adm-zip": "^0.4.16", "aggregate-error": "^3.0.0", "ansi-escapes": "^4.3.0", @@ -14702,50 +14751,196 @@ "bin": { "hardhat": "internal/cli/bootstrap.js" }, - "peerDependencies": { - "ts-node": "*", - "typescript": "*" + "peerDependencies": { + "ts-node": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/hardhat-abi-exporter": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/hardhat-abi-exporter/-/hardhat-abi-exporter-2.11.0.tgz", + "integrity": "sha512-hBC4Xzncew9pdqVpzWoEEBJUthp99TCH39cHlMehVxBBQ6EIsIFyj3N0yd0hkVDfM8/s/FMRAuO5jntZBpwCZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "delete-empty": "^3.0.0" + }, + "engines": { + "node": ">=14.14.0" + }, + "peerDependencies": { + "hardhat": "^2.0.0" + } + }, + "node_modules/hardhat-gas-reporter": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-2.3.0.tgz", + "integrity": "sha512-ySdA+044xMQv1BlJu5CYXToHzMexKFfIWxlQTBNNoerx1x96+d15IMdN01iQZ/TJ7NH2V5sU73bz77LoS/PEVw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/units": "^5.7.0", + "@solidity-parser/parser": "^0.20.1", + "axios": "^1.6.7", + "brotli-wasm": "^2.0.1", + "chalk": "4.1.2", + "cli-table3": "^0.6.3", + "ethereum-cryptography": "^2.1.3", + "glob": "^10.3.10", + "jsonschema": "^1.4.1", + "lodash": "^4.17.21", + "markdown-table": "2.0.0", + "sha1": "^1.1.1", + "viem": "^2.27.0" + }, + "peerDependencies": { + "hardhat": "^2.16.0" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - }, - "typescript": { - "optional": true - } + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/hardhat-abi-exporter": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/hardhat-abi-exporter/-/hardhat-abi-exporter-2.11.0.tgz", - "integrity": "sha512-hBC4Xzncew9pdqVpzWoEEBJUthp99TCH39cHlMehVxBBQ6EIsIFyj3N0yd0hkVDfM8/s/FMRAuO5jntZBpwCZQ==", + "node_modules/hardhat-gas-reporter/node_modules/ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "@ethersproject/abi": "^5.7.0", - "delete-empty": "^3.0.0" + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, - "engines": { - "node": ">=14.14.0" + "bin": { + "glob": "dist/esm/bin.mjs" }, - "peerDependencies": { - "hardhat": "^2.0.0" + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/hardhat-gas-reporter": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.10.tgz", - "integrity": "sha512-02N4+So/fZrzJ88ci54GqwVA3Zrf0C9duuTyGt0CFRIh/CdNwbnTgkXkRfojOMLBQ+6t+lBIkgbsOtqMvNwikA==", + "node_modules/hardhat-gas-reporter/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, - "license": "MIT", + "license": "ISC", "peer": true, "dependencies": { - "array-uniq": "1.0.3", - "eth-gas-reporter": "^0.2.25", - "sha1": "^1.1.1" + "brace-expansion": "^2.0.1" }, - "peerDependencies": { - "hardhat": "^2.0.2" + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/hardhat-gas-reporter/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" } }, "node_modules/hardhat/node_modules/@noble/hashes": { @@ -14919,13 +15114,13 @@ } }, "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/has-property-descriptors": { @@ -15024,8 +15219,7 @@ "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/hmac-drbg": { "version": "1.0.1", @@ -15046,23 +15240,6 @@ "dev": true, "license": "ISC" }, - "node_modules/http-basic": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz", - "integrity": "sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "caseless": "^0.12.0", - "concat-stream": "^1.6.2", - "http-response-object": "^3.0.1", - "parse-cache-control": "^1.0.1" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -15080,25 +15257,6 @@ "node": ">= 0.8" } }, - "node_modules/http-response-object": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz", - "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "^10.0.3" - } - }, - "node_modules/http-response-object/node_modules/@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -15166,6 +15324,18 @@ "node": ">= 4" } }, + "node_modules/immer": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/immer/-/immer-10.0.2.tgz", + "integrity": "sha512-Rx3CqeqQ19sxUtYV9CU911Vhy8/721wRFnJv3REVGWUmoAcIwzifTsdmJte/MV+0/XpM35LZdQMBGkRIoLPwQA==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, "node_modules/immutable": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.7.tgz", @@ -15444,6 +15614,23 @@ "dev": true, "license": "ISC" }, + "node_modules/isows": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", + "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peer": true, + "peerDependencies": { + "ws": "*" + } + }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", @@ -15451,6 +15638,23 @@ "dev": true, "license": "MIT" }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "peer": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/js-sha3": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", @@ -15529,10 +15733,24 @@ "dev": true, "license": "ISC" }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", "dev": true, "license": "MIT", "dependencies": { @@ -15626,6 +15844,17 @@ "graceful-fs": "^4.1.11" } }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, "node_modules/lcid": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", @@ -15760,82 +15989,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/loupe": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", @@ -15869,12 +16022,19 @@ "peer": true }, "node_modules/markdown-table": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.3.tgz", - "integrity": "sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-2.0.0.tgz", + "integrity": "sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==", "dev": true, "license": "MIT", - "peer": true + "peer": true, + "dependencies": { + "repeat-string": "^1.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } }, "node_modules/math-intrinsics": { "version": "1.1.0", @@ -16155,29 +16315,16 @@ "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", + "readdirp": "~3.6.0" + }, "engines": { - "node": ">=10" + "node": ">= 8.10.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, "node_modules/mocha/node_modules/glob": { @@ -16201,16 +16348,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/mocha/node_modules/minimatch": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", @@ -16260,6 +16397,27 @@ "dev": true, "license": "MIT" }, + "node_modules/ndjson": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ndjson/-/ndjson-2.0.0.tgz", + "integrity": "sha512-nGl7LRGrzugTtaFcJMhLbpzJM6XdivmbkdlaGcrk/LXg2KL/YBC6z1g70xh0/al+oFuVFP8N8kiWRucmeEH/qQ==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "json-stringify-safe": "^5.0.1", + "minimist": "^1.2.5", + "readable-stream": "^3.6.0", + "split2": "^3.0.0", + "through2": "^4.0.0" + }, + "bin": { + "ndjson": "cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", @@ -16426,17 +16584,6 @@ "node": "*" } }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", @@ -16544,6 +16691,77 @@ "node": ">=0.10.0" } }, + "node_modules/ox": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.9.3.tgz", + "integrity": "sha512-KzyJP+fPV4uhuuqrTZyok4DC7vFzi7HLUFiUNEmpbyh59htKWkOC98IONC1zgXJPbHAhQgqs6B0Z6StCGhmQvg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "@adraffy/ens-normalize": "^1.11.0", + "@noble/ciphers": "^1.3.0", + "@noble/curves": "1.9.1", + "@noble/hashes": "^1.8.0", + "@scure/bip32": "^1.7.0", + "@scure/bip39": "^1.6.0", + "abitype": "^1.0.9", + "eventemitter3": "5.0.1" + }, + "peerDependencies": { + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/ox/node_modules/@adraffy/ens-normalize": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", + "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/ox/node_modules/@noble/curves": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", + "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/hashes": "1.8.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ox/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -16592,11 +16810,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse-cache-control": { + "node_modules/package-json-from-dist": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", - "integrity": "sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg==", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true, + "license": "BlueOak-1.0.0", "peer": true }, "node_modules/parse-json": { @@ -16643,39 +16862,6 @@ "npm": ">5" } }, - "node_modules/patch-package/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/patch-package/node_modules/ci-info": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", @@ -16692,34 +16878,20 @@ "node": ">=8" } }, - "node_modules/patch-package/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/patch-package/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/patch-package/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/patch-package/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/patch-package/node_modules/semver": { @@ -16735,19 +16907,6 @@ "node": ">=10" } }, - "node_modules/patch-package/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", @@ -17007,23 +17166,19 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "asap": "~2.0.6" + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" } }, "node_modules/proxy-from-env": { @@ -17299,32 +17454,15 @@ "node": ">=6" } }, - "node_modules/req-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", - "integrity": "sha512-ueoIoLo1OfB6b05COxAA9UpeoscNpYyM+BqYlA7H6LVF4hKGPXQQSSaD2YmvDVJMkk4UDpAHIeU1zG53IqjvlQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "req-from": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/req-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-from/-/req-from-2.0.0.tgz", - "integrity": "sha512-LzTfEVDVQHBRfjOUMgNBA+V6DWsSnoeKzf42J7l0xa/B4jyPOuuF5MlNSmomLNGemWTnV2TIdjSSLnEn95fOQA==", + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true, "license": "MIT", "peer": true, - "dependencies": { - "resolve-from": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10" } }, "node_modules/request": { @@ -17426,17 +17564,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, "node_modules/reusify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", @@ -17962,17 +18089,24 @@ "license": "ISC" }, "node_modules/sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "version": "2.4.12", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", + "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", "dev": true, "license": "(MIT AND BSD-3-Clause)", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.0" }, "bin": { "sha.js": "bin.js" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/sha1": { @@ -18157,6 +18291,28 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "peer": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", @@ -18177,54 +18333,15 @@ "dependencies": { "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" + "is-fullwidth-code-point": "^3.0.0" }, "engines": { - "node": ">=7.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/solady": { "version": "0.0.84", "resolved": "https://registry.npmjs.org/solady/-/solady-0.0.84.tgz", @@ -18324,14 +18441,66 @@ "hardhat": "^2.11.0" } }, - "node_modules/solidity-coverage/node_modules/@solidity-parser/parser": { - "version": "0.20.1", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.20.1.tgz", - "integrity": "sha512-58I2sRpzaQUN+jJmWbHfbWf9AKfzqCI8JAdFB0vbyY+u8tBRcuTt9LxzasvR0LGQpcRv97eyV7l61FQ3Ib7zVw==", + "node_modules/solidity-coverage/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/solidity-coverage/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/solidity-coverage/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/solidity-coverage/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true, "license": "MIT", "peer": true }, + "node_modules/solidity-coverage/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/solidity-coverage/node_modules/fs-extra": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", @@ -18348,6 +18517,17 @@ "node": ">=6 <7 || >=8" } }, + "node_modules/solidity-coverage/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=4" + } + }, "node_modules/solidity-coverage/node_modules/jsonfile": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", @@ -18373,6 +18553,20 @@ "node": ">=10" } }, + "node_modules/solidity-coverage/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/solidity-coverage/node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", @@ -18449,12 +18643,23 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.21", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz", - "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==", + "version": "3.0.22", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.22.tgz", + "integrity": "sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==", "dev": true, "license": "CC0-1.0" }, + "node_modules/split2": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "readable-stream": "^3.0.0" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -18555,6 +18760,23 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -18568,6 +18790,21 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", @@ -18609,43 +18846,16 @@ } }, "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sync-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-6.1.0.tgz", - "integrity": "sha512-8fjNkrNlNCrVc/av+Jn+xxqfCjYaBoHqCsDz6mt030UMxJGr+GSfCV1dQt2gRtlL63+VPidwDVLr7V2OcTSdRw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "http-response-object": "^3.0.1", - "sync-rpc": "^1.2.1", - "then-request": "^6.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/sync-rpc": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.6.tgz", - "integrity": "sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "get-port": "^3.1.0" + "node": ">=8" } }, "node_modules/table": { @@ -18772,65 +18982,26 @@ "deprecated": "testrpc has been renamed to ganache-cli, please use this package from now on.", "dev": true }, - "node_modules/then-request": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz", - "integrity": "sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/concat-stream": "^1.6.0", - "@types/form-data": "0.0.33", - "@types/node": "^8.0.0", - "@types/qs": "^6.2.31", - "caseless": "~0.12.0", - "concat-stream": "^1.6.0", - "form-data": "^2.2.0", - "http-basic": "^8.1.1", - "http-response-object": "^3.0.1", - "promise": "^8.0.0", - "qs": "^6.4.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/then-request/node_modules/@types/node": { - "version": "8.10.66", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz", - "integrity": "sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/then-request/node_modules/form-data": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.3.tgz", - "integrity": "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ==", + "node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.12" + "readable-stream": "3" } }, "node_modules/tinyglobby": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", - "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", "dev": true, "license": "MIT", "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" + "fdir": "^6.5.0", + "picomatch": "^4.0.3" }, "engines": { "node": ">=12.0.0" @@ -18840,11 +19011,14 @@ } }, "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", - "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, "peerDependencies": { "picomatch": "^3 || ^4" }, @@ -18855,9 +19029,9 @@ } }, "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", "engines": { @@ -18933,129 +19107,47 @@ } }, "node_modules/tough-cookie/node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true, - "license": "MIT" - }, - "node_modules/treeify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/treeify/-/treeify-1.1.0.tgz", - "integrity": "sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/ts-command-line-args": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", - "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "chalk": "^4.1.0", - "command-line-args": "^5.1.1", - "command-line-usage": "^6.1.0", - "string-format": "^2.0.0" - }, - "bin": { - "write-markdown": "dist/write-markdown.js" - } - }, - "node_modules/ts-command-line-args/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/ts-command-line-args/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/ts-command-line-args/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">=6" } }, - "node_modules/ts-command-line-args/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/ts-command-line-args/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/treeify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/treeify/-/treeify-1.1.0.tgz", + "integrity": "sha512-1m4RA7xVAJrSGrrXGs0L3YTwyvBs2S8PbRHaLZAkFw7JR8oIFwYtysxlBZhYIa7xSyiYJKZ3iGrrk55cGA3i9A==", "dev": true, "license": "MIT", - "peer": true, "engines": { - "node": ">=8" + "node": ">=0.6" } }, - "node_modules/ts-command-line-args/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/ts-command-line-args": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", + "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", "dev": true, - "license": "MIT", + "license": "ISC", "peer": true, "dependencies": { - "has-flag": "^4.0.0" + "chalk": "^4.1.0", + "command-line-args": "^5.1.1", + "command-line-usage": "^6.1.0", + "string-format": "^2.0.0" }, - "engines": { - "node": ">=8" + "bin": { + "write-markdown": "dist/write-markdown.js" } }, "node_modules/ts-essentials": { @@ -19090,6 +19182,19 @@ "ts-generator": "dist/cli/run.js" } }, + "node_modules/ts-generator/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/ts-generator/node_modules/brace-expansion": { "version": "1.1.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", @@ -19101,6 +19206,48 @@ "concat-map": "0.0.1" } }, + "node_modules/ts-generator/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ts-generator/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/ts-generator/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true, + "license": "MIT" + }, + "node_modules/ts-generator/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/ts-generator/node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -19123,6 +19270,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/ts-generator/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/ts-generator/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -19136,6 +19293,19 @@ "node": "*" } }, + "node_modules/ts-generator/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/ts-generator/node_modules/ts-essentials": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-1.0.4.tgz", @@ -19412,18 +19582,10 @@ "node": ">= 0.4" } }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "dev": true, - "license": "MIT", - "peer": true - }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "dev": true, "license": "Apache-2.0", "peer": true, @@ -19475,9 +19637,9 @@ } }, "node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", "dev": true, "license": "MIT" }, @@ -19606,6 +19768,92 @@ "extsprintf": "^1.2.0" } }, + "node_modules/viem": { + "version": "2.37.5", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.37.5.tgz", + "integrity": "sha512-bLKvKgLcge6KWBMLk8iP9weu5tHNr0hkxPNwQd+YQrHEgek7ogTBBeE10T0V6blwBMYmeZFZHLnMhDmPjp63/A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/curves": "1.9.1", + "@noble/hashes": "1.8.0", + "@scure/bip32": "1.7.0", + "@scure/bip39": "1.6.0", + "abitype": "1.1.0", + "isows": "1.0.7", + "ox": "0.9.3", + "ws": "8.18.3" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/viem/node_modules/@noble/curves": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", + "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@noble/hashes": "1.8.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/viem/node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/web3-utils": { "version": "1.10.4", "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.4.tgz", @@ -19680,6 +19928,45 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/web3-utils/node_modules/@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/web3-utils/node_modules/@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/web3-utils/node_modules/@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/web3-utils/node_modules/ethereum-cryptography": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", @@ -19852,42 +20139,26 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { - "color-convert": "^2.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -19928,9 +20199,9 @@ } }, "node_modules/yaml": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", - "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", "dev": true, "license": "ISC", "bin": { diff --git a/contracts/package.json b/contracts/package.json index 36193b320..6dc83ba51 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -8,24 +8,24 @@ "node": "hardhat node --hostname 0.0.0.0" }, "devDependencies": { - "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#db298d6b7efcc0fa9902966dbf1e1e6822b93da6", + "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#6a14c31bead936ed03b2d51ab82010ecd1047f40", "@manifoldxyz/royalty-registry-solidity": "github:manifoldxyz/royalty-registry-solidity#e5369fc79279ce2e4c6ea2eb5914df51e89e8bd8", - "@nomicfoundation/hardhat-ethers": "^3.0.5", - "@nomicfoundation/hardhat-network-helpers": "^1.0.10", - "@nomicfoundation/hardhat-toolbox": "^3.0.0", + "@nomicfoundation/hardhat-ethers": "^3.0.9", + "@nomicfoundation/hardhat-network-helpers": "^1.0.13", + "@nomicfoundation/hardhat-toolbox": "^6.0.0", "chai": "^4.3.6", "dotenv": "^16.0.1", "ethereum-waffle": "^3.4.4", - "ethers": "^6.9.0", + "ethers": "^6.15.0", "ethersv5": "npm:ethers@^5.7.2", "glob": "^9.1.0", - "hardhat": "^2.19.2", + "hardhat": "^2.25.0", "hardhat-abi-exporter": "^2.9.0", "patch-package": "^8.0.0", "seaport": "github:ProjectOpenSea/seaport#e9c5a9f17cb5ee658ccc9cb1a8eeab02c1f5a4cd" }, "dependencies": { - "@openzeppelin/contracts": "^4.9.0", - "@openzeppelin/contracts-upgradeable": "4.9.3" + "@openzeppelin/contracts": "^4.9.6", + "@openzeppelin/contracts-upgradeable": "4.9.6" } } diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml index 3443c0d73..ab7297fcb 100644 --- a/e2e/docker-compose.yml +++ b/e2e/docker-compose.yml @@ -15,6 +15,8 @@ services: - API_KEYS=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - 'API_IDS={"BOSON": ["xxxxxxxx-xxxx-xxxx-xxxx-111111111111"], "FERMION": ["xxxxxxxx-xxxx-xxxx-xxxx-222222222222"], "ERC20": ["xxxxxxxx-xxxx-xxxx-xxxx-333333333333"], "FORWARDER": ["xxxxxxxx-xxxx-xxxx-xxxx-444444444444"]}' - BOSON_VOUCHER_INTERFACE_ID=0x6a474d2c + - 'BOSON_META_TX_ABI=[{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"string","name":"_functionName","type":"string"},{"internalType":"bytes","name":"_functionSignature","type":"bytes"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"}]' + - MOCK_ERC20_ADDRESS=0x70e0bA845a1A0F2DA3359C97E0285013525FFC49 depends_on: - boson-protocol-node extra_hosts: @@ -37,6 +39,7 @@ services: - host.docker.internal:host-gateway boson-protocol-node: + image: boson-protocol-node:6a14c31bead936ed03b2d51ab82010ecd1047f40_0 build: context: ../. dockerfile: ./contracts/Dockerfile @@ -44,6 +47,7 @@ services: - "8545:8545" boson-subgraph: + image: boson-subgraph:6a14c31bead936ed03b2d51ab82010ecd1047f40_0 build: context: ../ dockerfile: ./packages/subgraph/Dockerfile diff --git a/e2e/tests/core-sdk-premint.test.ts b/e2e/tests/core-sdk-premint.test.ts index eb39d9186..2866368e7 100644 --- a/e2e/tests/core-sdk-premint.test.ts +++ b/e2e/tests/core-sdk-premint.test.ts @@ -369,7 +369,7 @@ describe("orchestration", () => { test("#createPremintedOfferAddToGroup()", async () => { const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet(seedWallet); - await createSeller(coreSDK, fundedWallet.address); + const seller = await createSeller(coreSDK, fundedWallet.address); // Ensure the condition token is minted const tokenID = Date.now().toString(); @@ -392,7 +392,8 @@ describe("orchestration", () => { const { offer, groupId } = await createPremintedOfferAddToGroup( coreSDK, condition, - premintParameters + premintParameters, + seller.id.toString() ); expect(offer).toBeTruthy(); expect(offer.range).toBeTruthy(); diff --git a/e2e/tests/core-sdk.test.ts b/e2e/tests/core-sdk.test.ts index eb986b16f..bd42d0247 100644 --- a/e2e/tests/core-sdk.test.ts +++ b/e2e/tests/core-sdk.test.ts @@ -250,6 +250,7 @@ describe("core-sdk", () => { maxCommits: "3" }; const groupToCreate = { + sellerId: offer1.seller.id, offerIds, ...condition }; @@ -300,6 +301,7 @@ describe("core-sdk", () => { maxCommits: "3" }; const groupToCreate = { + sellerId: offer1.seller.id, offerIds, ...condition }; @@ -522,6 +524,7 @@ describe("core-sdk", () => { maxCommits: "3" }; groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], ...condition }; @@ -539,6 +542,7 @@ describe("core-sdk", () => { maxCommits: "3" }; groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], ...condition }; @@ -556,6 +560,7 @@ describe("core-sdk", () => { maxCommits: "1" }; groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], ...condition }; @@ -619,6 +624,7 @@ describe("core-sdk", () => { if (token === "ERC721") { await ensureMintedERC721(buyerWallet, tokenId); groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], method: EvaluationMethod.TokenRange, tokenType: TokenType.NonFungibleToken, @@ -633,6 +639,7 @@ describe("core-sdk", () => { if (token === "ERC1155") { await ensureMintedERC1155(buyerWallet, tokenId, "3"); groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], method: EvaluationMethod.Threshold, tokenType: TokenType.MultiToken, @@ -647,6 +654,7 @@ describe("core-sdk", () => { if (token === "ERC20") { await ensureMintedAndAllowedTokens([buyerWallet], "5"); groupToCreate = { + sellerId: createdOffer.seller.id, offerIds: [createdOffer.id], method: EvaluationMethod.Threshold, tokenType: TokenType.FungibleToken, @@ -934,7 +942,7 @@ describe("core-sdk", () => { maxCommits: "3" }; } else if (token === "ERC721-pertokenid-tokenrange-high-tokenid") { - const tokenId3 = (Number.MAX_SAFE_INTEGER + 1).toString(); + const tokenId3 = constants.MaxUint256.sub(Date.now()).toString(); // Ensure the value is new at each test execution await ensureMintedERC721(buyerWallet, tokenId3); conditionToCreate = { method: EvaluationMethod.TokenRange, @@ -947,8 +955,8 @@ describe("core-sdk", () => { maxCommits: "3" }; } else if (token === "ERC721-pertokenid-tokenrange-wide-range") { - await ensureMintedERC721(buyerWallet, "100"); - await ensureMintedERC721(buyerWallet, "10000000000"); + await ensureMintedERC721(buyerWallet, "100", true); + await ensureMintedERC721(buyerWallet, "10000000000", true); conditionToCreate = { method: EvaluationMethod.TokenRange, tokenType: TokenType.NonFungibleToken, @@ -1546,7 +1554,8 @@ describe("core-sdk", () => { exchange.id, buyerPercent, sellerCoreSDK, - buyerCoreSDK + buyerCoreSDK, + true ); await checkDisputeResolved(exchange.id, buyerPercent, sellerCoreSDK); @@ -1813,27 +1822,37 @@ async function resolveDispute( exchangeId: string, buyerPercentBasisPoints: string, resolverSDK: CoreSDK, - signerSDK: CoreSDK + signerSDK: CoreSDK, + useRSV = false ) { { // sign the message from seller const { r: sigR, s: sigS, - v: sigV + v: sigV, + signature } = await signerSDK.signDisputeResolutionProposal({ exchangeId, buyerPercentBasisPoints }); // send the Resolve transaction from buyer - const txResponse = await resolverSDK.resolveDispute({ - exchangeId: exchangeId, - buyerPercentBasisPoints, - sigR, - sigS, - sigV - }); + const txResponse = await resolverSDK.resolveDispute( + useRSV + ? { + exchangeId: exchangeId, + buyerPercentBasisPoints, + sigR, + sigS, + sigV + } + : { + exchangeId: exchangeId, + buyerPercentBasisPoints, + signature + } + ); await txResponse.wait(); await resolverSDK.waitForGraphNodeIndexing(txResponse); } diff --git a/e2e/tests/meta-tx.test.ts b/e2e/tests/meta-tx.test.ts index 7cec9a8db..2bbcc686f 100644 --- a/e2e/tests/meta-tx.test.ts +++ b/e2e/tests/meta-tx.test.ts @@ -392,6 +392,7 @@ describe("meta-tx", () => { maxCommits: "3" }; const groupToCreate = { + sellerId: createdOffer.seller.id, offerIds, ...condition }; @@ -853,7 +854,7 @@ describe("meta-tx", () => { // Seller signs meta tx const { r, s, v, functionName, functionSignature } = await newSellerCoreSDK.signMetaTxDepositFunds({ - sellerId: seller.id, + entityId: seller.id, fundsTokenAddress, fundsAmount, nonce diff --git a/e2e/tests/utils.ts b/e2e/tests/utils.ts index c6ef85bba..b3b386d30 100644 --- a/e2e/tests/utils.ts +++ b/e2e/tests/utils.ts @@ -97,15 +97,15 @@ const getFirstEnvConfig = (arg0: Parameters[0]) => export const MOCK_ERC20_ADDRESS = (getFirstEnvConfig("local").contracts.testErc20 as string) || - "0x998abeb3E57409262aE5b751f60747921B33613E"; + "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49"; export const MOCK_ERC721_ADDRESS = (getFirstEnvConfig("local").contracts.testErc721 as string) || - "0xCD8a1C3ba11CF5ECfa6267617243239504a98d90"; + "0x4826533B4897376654Bb4d4AD88B7faFD0C98528"; export const MOCK_ERC1155_ADDRESS = (getFirstEnvConfig("local").contracts.testErc1155 as string) || - "0x82e01223d51Eb87e16A03E24687EDF0F294da6f1"; + "0x99bbA657f2BbC93c02D617f8bA121cB8Fc104Acf"; export const MOCK_FORWARDER_ADDRESS = (getFirstEnvConfig("local").contracts.forwarder as string) || @@ -113,7 +113,7 @@ export const MOCK_FORWARDER_ADDRESS = export const MOCK_SEAPORT_ADDRESS = (getFirstEnvConfig("local").contracts.seaport as string) || - "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF"; + "0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf"; export const OPENSEA_FEE_RECIPIENT = "0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199"; @@ -401,10 +401,23 @@ export async function ensureMintedAndAllowedTokens( export async function ensureMintedERC721( wallet: Wallet, - tokenId: BigNumberish + tokenId: BigNumberish, + increment = false ) { - const tx = await mockErc721Contract.connect(wallet).mint(tokenId, 1); - await tx.wait(); + let loop = true; + while (loop) { + try { + const tx = await mockErc721Contract.connect(wallet).mint(tokenId, 1); + await tx.wait(); + loop = false; + } catch (e) { + if (increment && e.toString().includes("ERC721: token already minted")) { + tokenId = BigNumber.from(tokenId).add(1); + } else { + throw e; + } + } + } } export async function ensureMintedERC1155( @@ -586,6 +599,7 @@ export async function createPremintedOfferAddToGroup( coreSDK: CoreSDK, condition: ConditionStruct, premintParameters: PremintParametersStruct, + sellerId: string, overrides: { offerParams?: Partial; metadata?: Partial; @@ -604,6 +618,7 @@ export async function createPremintedOfferAddToGroup( ...overrides.offerParams }); const groupToCreate = { + sellerId: sellerId, offerIds: [], ...condition }; diff --git a/package-lock.json b/package-lock.json index cdc9dc8ce..c30d778bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,8 +17,8 @@ "graphql-request": "^6.1.0" }, "devDependencies": { - "@graphprotocol/graph-cli": "0.68.5", - "@graphprotocol/graph-ts": "0.33.0", + "@graphprotocol/graph-cli": "^0.97.1", + "@graphprotocol/graph-ts": "^0.38.1", "@graphql-codegen/cli": "^5.0.2", "@graphql-codegen/typescript": "^4.0.6", "@graphql-codegen/typescript-graphql-request": "^6.2.0", @@ -2512,6 +2512,21 @@ "resolved": "packages/subgraph", "link": true }, + "node_modules/@chainsafe/is-ip": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.1.0.tgz", + "integrity": "sha512-KIjt+6IfysQ4GCv66xihEitBjvhU/bixbbbFxdJ1sqCp4uJ0wuZiYBPhksZoy4lfaF0k9cwNzY5upEW/VWdw3w==", + "license": "MIT" + }, + "node_modules/@chainsafe/netmask": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@chainsafe/netmask/-/netmask-2.0.0.tgz", + "integrity": "sha512-I3Z+6SWUoaljh3TBzCnCxjlUyN8tA+NAk5L6m9IxvCf1BENQTePzPMis97CoN/iMW1St3WN+AWCCRp+TTBRiDg==", + "license": "MIT", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1" + } + }, "node_modules/@chromatic-com/storybook": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/@chromatic-com/storybook/-/storybook-1.9.0.tgz", @@ -2563,6 +2578,7 @@ "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" @@ -2575,6 +2591,7 @@ "version": "0.3.9", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", @@ -4514,177 +4531,141 @@ "license": "MIT" }, "node_modules/@graphprotocol/graph-cli": { - "version": "0.68.5", - "resolved": "https://registry.npmjs.org/@graphprotocol/graph-cli/-/graph-cli-0.68.5.tgz", - "integrity": "sha512-3GY2pYr5LksO6JY6s5nvePnSKVdtzDEn1CUGezyjCMR1uq9YIXMPXKqcnrzCX/DLugioEabiEi2+yOg9+rnFDQ==", + "version": "0.97.1", + "resolved": "https://registry.npmjs.org/@graphprotocol/graph-cli/-/graph-cli-0.97.1.tgz", + "integrity": "sha512-j5dc2Tl694jMZmVQu8SSl5Yt3VURiBPgglQEpx30aW6UJ89eLR/x46Nn7S6eflV69fmB5IHAuAACnuTzo8MD0Q==", "license": "(Apache-2.0 OR MIT)", "dependencies": { - "@float-capital/float-subgraph-uncrashable": "^0.0.0-alpha.4", - "@oclif/core": "2.8.6", - "@oclif/plugin-autocomplete": "^2.3.6", - "@oclif/plugin-not-found": "^2.4.0", - "@whatwg-node/fetch": "^0.8.4", + "@float-capital/float-subgraph-uncrashable": "0.0.0-internal-testing.5", + "@oclif/core": "4.3.0", + "@oclif/plugin-autocomplete": "^3.2.11", + "@oclif/plugin-not-found": "^3.2.29", + "@oclif/plugin-warn-if-update-available": "^3.1.24", + "@pinax/graph-networks-registry": "^0.6.5", + "@whatwg-node/fetch": "^0.10.1", "assemblyscript": "0.19.23", - "binary-install-raw": "0.0.13", - "chalk": "3.0.0", - "chokidar": "3.5.3", - "debug": "4.3.4", - "docker-compose": "0.23.19", - "dockerode": "2.5.8", - "fs-extra": "9.1.0", - "glob": "9.3.5", - "gluegun": "5.1.6", - "graphql": "15.5.0", - "immutable": "4.2.1", - "ipfs-http-client": "55.0.0", - "jayson": "4.0.0", - "js-yaml": "3.14.1", - "prettier": "3.0.3", - "semver": "7.4.0", - "sync-request": "6.1.0", + "chokidar": "4.0.3", + "debug": "4.4.1", + "docker-compose": "1.2.0", + "fs-extra": "11.3.0", + "glob": "11.0.2", + "gluegun": "5.2.0", + "graphql": "16.11.0", + "immutable": "5.1.2", + "jayson": "4.2.0", + "js-yaml": "4.1.0", + "kubo-rpc-client": "^5.0.2", + "open": "10.1.2", + "prettier": "3.5.3", + "semver": "7.7.2", "tmp-promise": "3.0.3", - "web3-eth-abi": "1.7.0", - "which": "2.0.2", - "yaml": "1.10.2" + "undici": "7.9.0", + "web3-eth-abi": "4.4.1", + "yaml": "2.8.0" }, "bin": { - "graph": "bin/run" + "graph": "bin/run.js" }, "engines": { - "node": ">=18" + "node": ">=20.18.1" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/any-signal": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/any-signal/-/any-signal-2.1.2.tgz", - "integrity": "sha512-B+rDnWasMi/eWcajPcCWSlYc7muXOrcYrqgyzcdKisl2H/WTlQ0gip1KyQfr0ZlxJdsuWCj/LWwQm7fhyhRfIQ==", - "license": "MIT", - "dependencies": { - "abort-controller": "^3.0.0", - "native-abort-controller": "^1.0.3" - } + "node_modules/@graphprotocol/graph-cli/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" }, - "node_modules/@graphprotocol/graph-cli/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/@graphprotocol/graph-cli/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", "license": "MIT", "dependencies": { - "ms": "2.1.2" + "readdirp": "^4.0.1" }, "engines": { - "node": ">=6.0" + "node": ">= 14.16.0" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/graphql": { - "version": "15.5.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.0.tgz", - "integrity": "sha512-OmaM7y0kaK31NKG31q4YbD2beNYa6jBBKtMFT6gLYJljHLJr42IqJ8KX08u3Li/0ifzTU5HjmoOOrwa5BRLeDA==", + "node_modules/@graphprotocol/graph-cli/node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", "license": "MIT", "engines": { - "node": ">= 10.x" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-core-types": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/ipfs-core-types/-/ipfs-core-types-0.9.0.tgz", - "integrity": "sha512-VJ8vJSHvI1Zm7/SxsZo03T+zzpsg8pkgiIi5hfwSJlsrJ1E2v68QPlnLshGHUSYw89Oxq0IbETYl2pGTFHTWfg==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", - "license": "(Apache-2.0 OR MIT)", + "node_modules/@graphprotocol/graph-cli/node_modules/fs-extra": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", + "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", + "license": "MIT", "dependencies": { - "interface-datastore": "^6.0.2", - "multiaddr": "^10.0.0", - "multiformats": "^9.4.13" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-core-utils": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/ipfs-core-utils/-/ipfs-core-utils-0.13.0.tgz", - "integrity": "sha512-HP5EafxU4/dLW3U13CFsgqVO5Ika8N4sRSIb/dTg16NjLOozMH31TXV0Grtu2ZWo1T10ahTzMvrfT5f4mhioXw==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", + "node_modules/@graphprotocol/graph-cli/node_modules/is-wsl": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", "license": "MIT", "dependencies": { - "any-signal": "^2.1.2", - "blob-to-it": "^1.0.1", - "browser-readablestream-to-it": "^1.0.1", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.9.0", - "ipfs-unixfs": "^6.0.3", - "ipfs-utils": "^9.0.2", - "it-all": "^1.0.4", - "it-map": "^1.0.4", - "it-peekable": "^1.0.2", - "it-to-stream": "^1.0.0", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiaddr-to-uri": "^8.0.0", - "multiformats": "^9.4.13", - "nanoid": "^3.1.23", - "parse-duration": "^1.0.0", - "timeout-abort-controller": "^2.0.0", - "uint8arrays": "^3.0.0" + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-http-client": { - "version": "55.0.0", - "resolved": "https://registry.npmjs.org/ipfs-http-client/-/ipfs-http-client-55.0.0.tgz", - "integrity": "sha512-GpvEs7C7WL9M6fN/kZbjeh4Y8YN7rY8b18tVWZnKxRsVwM25cIFrRI8CwNt3Ugin9yShieI3i9sPyzYGMrLNnQ==", - "deprecated": "js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details", - "license": "(Apache-2.0 OR MIT)", + "node_modules/@graphprotocol/graph-cli/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { - "@ipld/dag-cbor": "^7.0.0", - "@ipld/dag-json": "^8.0.1", - "@ipld/dag-pb": "^2.1.3", - "abort-controller": "^3.0.0", - "any-signal": "^2.1.2", - "debug": "^4.1.1", - "err-code": "^3.0.1", - "ipfs-core-types": "^0.9.0", - "ipfs-core-utils": "^0.13.0", - "ipfs-utils": "^9.0.2", - "it-first": "^1.0.6", - "it-last": "^1.0.4", - "merge-options": "^3.0.4", - "multiaddr": "^10.0.0", - "multiformats": "^9.4.13", - "native-abort-controller": "^1.0.3", - "parse-duration": "^1.0.0", - "stream-to-it": "^0.2.2", - "uint8arrays": "^3.0.0" + "argparse": "^2.0.1" }, - "engines": { - "node": ">=14.0.0", - "npm": ">=3.0.0" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", + "node_modules/@graphprotocol/graph-cli/node_modules/open": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz", + "integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==", + "license": "MIT", "dependencies": { - "yallist": "^4.0.0" + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^3.1.0" }, "engines": { - "node": ">=10" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "license": "MIT" - }, "node_modules/@graphprotocol/graph-cli/node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" @@ -4696,14 +4677,24 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/@graphprotocol/graph-cli/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@graphprotocol/graph-cli/node_modules/semver": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.4.0.tgz", - "integrity": "sha512-RgOxM8Mw+7Zus0+zcLEUn8+JfoLpj/huFTItQy2hsM4khuC1HYRDp0cU482Ewn/Fcy6bCjufD8vAj7voC66KQw==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -4711,43 +4702,51 @@ "node": ">=10" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/timeout-abort-controller": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/timeout-abort-controller/-/timeout-abort-controller-2.0.0.tgz", - "integrity": "sha512-2FAPXfzTPYEgw27bQGTHc0SzrbmnU2eso4qo172zMLZzaGqeu09PFa5B2FCUHM1tflgRqPgn5KQgp6+Vex4uNA==", + "node_modules/@graphprotocol/graph-cli/node_modules/undici": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.9.0.tgz", + "integrity": "sha512-e696y354tf5cFZPXsF26Yg+5M63+5H3oE6Vtkh2oqbvsE2Oe7s2nIbcQh5lmG7Lp/eS29vJtTpw9+p6PX0qNSg==", "license": "MIT", - "dependencies": { - "abort-controller": "^3.0.0", - "native-abort-controller": "^1.0.4", - "retimer": "^3.0.0" + "engines": { + "node": ">=20.18.1" } }, - "node_modules/@graphprotocol/graph-cli/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "node_modules/@graphprotocol/graph-cli/node_modules/yaml": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", + "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + } }, "node_modules/@graphprotocol/graph-ts": { - "version": "0.33.0", - "resolved": "https://registry.npmjs.org/@graphprotocol/graph-ts/-/graph-ts-0.33.0.tgz", - "integrity": "sha512-HBUVblHUdjQZ/MEjjYPzVgmh+SiuF9VV0D8KubYfFAtzkqpVJlvdyk+RZTAJUiu8hpyYy0EVIcAnLEPtKlwMGQ==", + "version": "0.38.1", + "resolved": "https://registry.npmjs.org/@graphprotocol/graph-ts/-/graph-ts-0.38.1.tgz", + "integrity": "sha512-CEE2mJugPuukPugMY4bJRW8t8lOqdNa6Y3Oc0x8xc0EwidjF1LRBcfbuC5Ep5gfvWILNC/IQTT1p+QYW8cz4Hw==", "dependencies": { - "assemblyscript": "0.19.10" + "assemblyscript": "0.27.31" } }, "node_modules/@graphprotocol/graph-ts/node_modules/assemblyscript": { - "version": "0.19.10", - "resolved": "https://registry.npmjs.org/assemblyscript/-/assemblyscript-0.19.10.tgz", - "integrity": "sha512-HavcUBXB3mBTRGJcpvaQjmnmaqKHBGREjSPNsIvnAk2f9dj78y4BkMaSSdvBQYWcDDzsHQjyUC8stICFkD1Odg==", + "version": "0.27.31", + "resolved": "https://registry.npmjs.org/assemblyscript/-/assemblyscript-0.27.31.tgz", + "integrity": "sha512-Ra8kiGhgJQGZcBxjtMcyVRxOEJZX64kd+XGpjWzjcjgxWJVv+CAQO0aDBk4GQVhjYbOkATarC83mHjAVGtwPBQ==", "license": "Apache-2.0", "dependencies": { - "binaryen": "101.0.0-nightly.20210723", - "long": "^4.0.0" + "binaryen": "116.0.0-nightly.20240114", + "long": "^5.2.1" }, "bin": { - "asc": "bin/asc", - "asinit": "bin/asinit" + "asc": "bin/asc.js", + "asinit": "bin/asinit.js" + }, + "engines": { + "node": ">=16", + "npm": ">=7" }, "funding": { "type": "opencollective", @@ -4755,20 +4754,15 @@ } }, "node_modules/@graphprotocol/graph-ts/node_modules/binaryen": { - "version": "101.0.0-nightly.20210723", - "resolved": "https://registry.npmjs.org/binaryen/-/binaryen-101.0.0-nightly.20210723.tgz", - "integrity": "sha512-eioJNqhHlkguVSbblHOtLqlhtC882SOEPKmNFZaDuz1hzQjolxZ+eu3/kaS10n3sGPONsIZsO7R9fR00UyhEUA==", + "version": "116.0.0-nightly.20240114", + "resolved": "https://registry.npmjs.org/binaryen/-/binaryen-116.0.0-nightly.20240114.tgz", + "integrity": "sha512-0GZrojJnuhoe+hiwji7QFaL3tBlJoA+KFUN7ouYSDGZLSo9CKM8swQX8n/UcbR0d1VuZKU+nhogNzv423JEu5A==", "license": "Apache-2.0", "bin": { - "wasm-opt": "bin/wasm-opt" + "wasm-opt": "bin/wasm-opt", + "wasm2js": "bin/wasm2js" } }, - "node_modules/@graphprotocol/graph-ts/node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", - "license": "Apache-2.0" - }, "node_modules/@graphql-codegen/add": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/@graphql-codegen/add/-/add-5.0.3.tgz", @@ -4852,43 +4846,6 @@ } } }, - "node_modules/@graphql-codegen/cli/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-codegen/cli/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-codegen/cli/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@graphql-codegen/cli/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -4919,13 +4876,6 @@ "node": ">=8" } }, - "node_modules/@graphql-codegen/cli/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-codegen/cli/node_modules/yaml": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz", @@ -5589,50 +5539,6 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/apollo-engine-loader/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-tools/batch-execute": { "version": "9.0.17", "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-9.0.17.tgz", @@ -5797,50 +5703,6 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/executor-http/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/executor-http/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/executor-http/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/executor-http/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-tools/executor-legacy-ws": { "version": "1.1.17", "resolved": "https://registry.npmjs.org/@graphql-tools/executor-legacy-ws/-/executor-legacy-ws-1.1.17.tgz", @@ -5904,50 +5766,6 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/github-loader/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/github-loader/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/github-loader/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/github-loader/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-tools/graphql-file-loader": { "version": "8.0.20", "resolved": "https://registry.npmjs.org/@graphql-tools/graphql-file-loader/-/graphql-file-loader-8.0.20.tgz", @@ -6110,43 +5928,6 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/prisma-loader/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, "node_modules/@graphql-tools/prisma-loader/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -6197,13 +5978,6 @@ "node": ">=8" } }, - "node_modules/@graphql-tools/prisma-loader/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-tools/relay-operation-optimizer": { "version": "7.0.19", "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.0.19.tgz", @@ -6267,50 +6041,6 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/url-loader/node_modules/@fastify/busboy": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.1.1.tgz", - "integrity": "sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@graphql-tools/url-loader/node_modules/@whatwg-node/fetch": { - "version": "0.10.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.8.tgz", - "integrity": "sha512-Rw9z3ctmeEj8QIB9MavkNJqekiu9usBCSMZa+uuAvM0lF3v70oQVCXNppMIqaV6OTZbdaHF1M2HLow58DEw+wg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@whatwg-node/node-fetch": "^0.7.21", - "urlpattern-polyfill": "^10.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/@whatwg-node/node-fetch": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.21.tgz", - "integrity": "sha512-QC16IdsEyIW7kZd77aodrMO7zAoDyyqRCTLg+qG4wqtP4JV9AA+p7/lgqMdD29XyiYdVvIdFrfI9yh7B1QvRvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@fastify/busboy": "^3.1.1", - "@whatwg-node/disposablestack": "^0.0.6", - "@whatwg-node/promise-helpers": "^1.3.2", - "tslib": "^2.6.3" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@graphql-tools/url-loader/node_modules/urlpattern-polyfill": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", - "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", - "dev": true, - "license": "MIT" - }, "node_modules/@graphql-tools/utils": { "version": "10.8.6", "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.8.6.tgz", @@ -6423,6 +6153,405 @@ "react": ">=0.14.0" } }, + "node_modules/@inquirer/checkbox": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.2.2.tgz", + "integrity": "sha512-E+KExNurKcUJJdxmjglTl141EwxWyAHplvsYJQgSwXf8qiNWkTxTuCCqmhFEmbIXd4zLaGMfQFJ6WrZ7fSeV3g==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/confirm": { + "version": "5.1.16", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.16.tgz", + "integrity": "sha512-j1a5VstaK5KQy8Mu8cHmuQvN1Zc62TbLhjJxwHvKPPKEoowSF6h/0UdOpA9DNdWZ+9Inq73+puRq1df6OJ8Sag==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/core": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.2.0.tgz", + "integrity": "sha512-NyDSjPqhSvpZEMZrLCYUquWNl+XC/moEcVFqS55IEYIYsY0a1cUCevSqk7ctOlnm/RaSBU5psFryNlxcmGrjaA==", + "license": "MIT", + "dependencies": { + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/core/node_modules/cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", + "license": "ISC", + "engines": { + "node": ">= 12" + } + }, + "node_modules/@inquirer/core/node_modules/mute-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/@inquirer/core/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@inquirer/core/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@inquirer/core/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@inquirer/editor": { + "version": "4.2.18", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.18.tgz", + "integrity": "sha512-yeQN3AXjCm7+Hmq5L6Dm2wEDeBRdAZuyZ4I7tWSSanbxDzqM0KqzoDbKM7p4ebllAYdoQuPJS6N71/3L281i6w==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/external-editor": "^1.0.1", + "@inquirer/type": "^3.0.8" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/expand": { + "version": "4.0.18", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.18.tgz", + "integrity": "sha512-xUjteYtavH7HwDMzq4Cn2X4Qsh5NozoDHCJTdoXg9HfZ4w3R6mxV1B9tL7DGJX2eq/zqtsFjhm0/RJIMGlh3ag==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/external-editor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz", + "integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==", + "license": "MIT", + "dependencies": { + "chardet": "^2.1.0", + "iconv-lite": "^0.6.3" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/external-editor/node_modules/chardet": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", + "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==", + "license": "MIT" + }, + "node_modules/@inquirer/external-editor/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@inquirer/figures": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz", + "integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@inquirer/input": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.2.2.tgz", + "integrity": "sha512-hqOvBZj/MhQCpHUuD3MVq18SSoDNHy7wEnQ8mtvs71K8OPZVXJinOzcvQna33dNYLYE4LkA9BlhAhK6MJcsVbw==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/number": { + "version": "3.0.18", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.18.tgz", + "integrity": "sha512-7exgBm52WXZRczsydCVftozFTrrwbG5ySE0GqUd2zLNSBXyIucs2Wnm7ZKLe/aUu6NUg9dg7Q80QIHCdZJiY4A==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/password": { + "version": "4.0.18", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.18.tgz", + "integrity": "sha512-zXvzAGxPQTNk/SbT3carAD4Iqi6A2JS2qtcqQjsL22uvD+JfQzUrDEtPjLL7PLn8zlSNyPdY02IiQjzoL9TStA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/prompts": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.8.4.tgz", + "integrity": "sha512-MuxVZ1en1g5oGamXV3DWP89GEkdD54alcfhHd7InUW5BifAdKQEK9SLFa/5hlWbvuhMPlobF0WAx7Okq988Jxg==", + "license": "MIT", + "dependencies": { + "@inquirer/checkbox": "^4.2.2", + "@inquirer/confirm": "^5.1.16", + "@inquirer/editor": "^4.2.18", + "@inquirer/expand": "^4.0.18", + "@inquirer/input": "^4.2.2", + "@inquirer/number": "^3.0.18", + "@inquirer/password": "^4.0.18", + "@inquirer/rawlist": "^4.1.6", + "@inquirer/search": "^3.1.1", + "@inquirer/select": "^4.3.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/rawlist": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.6.tgz", + "integrity": "sha512-KOZqa3QNr3f0pMnufzL7K+nweFFCCBs6LCXZzXDrVGTyssjLeudn5ySktZYv1XiSqobyHRYYK0c6QsOxJEhXKA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/search": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.1.1.tgz", + "integrity": "sha512-TkMUY+A2p2EYVY3GCTItYGvqT6LiLzHBnqsU1rJbrpXUijFfM6zvUx0R4civofVwFCmJZcKqOVwwWAjplKkhxA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/select": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.3.2.tgz", + "integrity": "sha512-nwous24r31M+WyDEHV+qckXkepvihxhnyIaod2MG7eCE6G0Zm/HUF6jgN8GXgf4U7AU6SLseKdanY195cwvU6w==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.2.0", + "@inquirer/figures": "^1.0.13", + "@inquirer/type": "^3.0.8", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/type": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz", + "integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, "node_modules/@ipld/dag-cbor": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-7.0.3.tgz", @@ -6456,7 +6585,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", - "dev": true, "license": "MIT", "engines": { "node": "20 || >=22" @@ -6466,7 +6594,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", - "dev": true, "license": "MIT", "dependencies": { "@isaacs/balanced-match": "^4.0.1" @@ -6479,7 +6606,6 @@ "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, "license": "ISC", "dependencies": { "string-width": "^5.1.2", @@ -6497,7 +6623,6 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -6510,7 +6635,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", @@ -6528,7 +6652,6 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", @@ -7229,7 +7352,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz", "integrity": "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==", - "dev": true, "license": "MIT" }, "node_modules/@lerna/add": { @@ -8703,6 +8825,156 @@ "node": "^14.15.0 || >=16.0.0" } }, + "node_modules/@libp2p/crypto": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-5.1.8.tgz", + "integrity": "sha512-zkfWd2x12E0NbSRU52Wb0A5I9v5a1uLgCauR8uuTqnC21OVznXUGkMg4A2Xoj90M98lReDHo+Khc/hlQFbJ5Vw==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@libp2p/interface": "^2.11.0", + "@noble/curves": "^1.9.1", + "@noble/hashes": "^1.8.0", + "multiformats": "^13.3.6", + "protons-runtime": "^5.5.0", + "uint8arraylist": "^2.4.8", + "uint8arrays": "^5.1.0" + } + }, + "node_modules/@libp2p/crypto/node_modules/@noble/curves": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz", + "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.8.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@libp2p/crypto/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@libp2p/crypto/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@libp2p/crypto/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, + "node_modules/@libp2p/interface": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-2.11.0.tgz", + "integrity": "sha512-0MUFKoXWHTQW3oWIgSHApmYMUKWO/Y02+7Hpyp+n3z+geD4Xo2Rku2gYWmxcq+Pyjkz6Q9YjDWz3Yb2SoV2E8Q==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@multiformats/dns": "^1.0.6", + "@multiformats/multiaddr": "^12.4.4", + "it-pushable": "^3.2.3", + "it-stream-types": "^2.0.2", + "main-event": "^1.0.1", + "multiformats": "^13.3.6", + "progress-events": "^1.0.1", + "uint8arraylist": "^2.4.8" + } + }, + "node_modules/@libp2p/interface/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@libp2p/logger": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-5.2.0.tgz", + "integrity": "sha512-OEFS529CnIKfbWEHmuCNESw9q0D0hL8cQ8klQfjIVPur15RcgAEgc1buQ7Y6l0B6tCYg120bp55+e9tGvn8c0g==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@libp2p/interface": "^2.11.0", + "@multiformats/multiaddr": "^12.4.4", + "interface-datastore": "^8.3.1", + "multiformats": "^13.3.6", + "weald": "^1.0.4" + } + }, + "node_modules/@libp2p/logger/node_modules/interface-datastore": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-8.3.2.tgz", + "integrity": "sha512-R3NLts7pRbJKc3qFdQf+u40hK8XWc0w4Qkx3OFEstC80VoaDUABY/dXA2EJPhtNC+bsrf41Ehvqb6+pnIclyRA==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "interface-store": "^6.0.0", + "uint8arrays": "^5.1.0" + } + }, + "node_modules/@libp2p/logger/node_modules/interface-store": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/interface-store/-/interface-store-6.0.3.tgz", + "integrity": "sha512-+WvfEZnFUhRwFxgz+QCQi7UC6o9AM0EHM9bpIe2Nhqb100NHCsTvNAn4eJgvgV2/tmLo1MP9nGxQKEcZTAueLA==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@libp2p/logger/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@libp2p/logger/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, + "node_modules/@libp2p/peer-id": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-5.1.9.tgz", + "integrity": "sha512-cVDp7lX187Epmi/zr0Qq2RsEMmueswP9eIxYSFoMcHL/qcvRFhsxOfUGB8361E26s2WJvC9sXZ0oJS9XVueJhQ==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@libp2p/crypto": "^5.1.8", + "@libp2p/interface": "^2.11.0", + "multiformats": "^13.3.6", + "uint8arrays": "^5.1.0" + } + }, + "node_modules/@libp2p/peer-id/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@libp2p/peer-id/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, "node_modules/@lit-labs/ssr-dom-shim": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.3.0.tgz", @@ -9145,6 +9417,102 @@ "integrity": "sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==", "license": "MIT" }, + "node_modules/@multiformats/dns": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@multiformats/dns/-/dns-1.0.9.tgz", + "integrity": "sha512-Ja4hevWI9p96ICx11K3suFvFirnMmXILzS7FpsR2KG3FoKF/XJijm8ylf3vY6kRFGr98yfZYM+zIn18KaINs3A==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "buffer": "^6.0.3", + "dns-packet": "^5.6.1", + "hashlru": "^2.3.0", + "p-queue": "^8.0.1", + "progress-events": "^1.0.0", + "uint8arrays": "^5.0.2" + } + }, + "node_modules/@multiformats/dns/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@multiformats/dns/node_modules/p-queue": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.1.1.tgz", + "integrity": "sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.1", + "p-timeout": "^6.1.2" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@multiformats/dns/node_modules/p-timeout": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz", + "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==", + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@multiformats/dns/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, + "node_modules/@multiformats/multiaddr": { + "version": "12.5.1", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.5.1.tgz", + "integrity": "sha512-+DDlr9LIRUS8KncI1TX/FfUn8F2dl6BIxJgshS/yFQCNB5IAF0OGzcwB39g5NLE22s4qqDePv0Qof6HdpJ/4aQ==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@multiformats/dns": "^1.0.3", + "abort-error": "^1.0.1", + "multiformats": "^13.0.0", + "uint8-varint": "^2.0.1", + "uint8arrays": "^5.0.0" + } + }, + "node_modules/@multiformats/multiaddr-to-uri": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr-to-uri/-/multiaddr-to-uri-11.0.2.tgz", + "integrity": "sha512-SiLFD54zeOJ0qMgo9xv1Tl9O5YktDKAVDP4q4hL16mSq4O4sfFNagNADz8eAofxd6TfQUzGQ3TkRRG9IY2uHRg==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@multiformats/multiaddr": "^12.3.0" + } + }, + "node_modules/@multiformats/multiaddr/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/@multiformats/multiaddr/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", @@ -9750,71 +10118,68 @@ } }, "node_modules/@oclif/core": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@oclif/core/-/core-2.8.6.tgz", - "integrity": "sha512-1QlPaHMhOORySCXkQyzjsIsy2GYTilOw3LkjeHkCgsPJQjAT4IclVytJusWktPbYNys9O+O4V23J44yomQvnBQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.3.0.tgz", + "integrity": "sha512-lIzHY+JMP6evrS5E/sGijNnwrCoNtGy8703jWXcMuPOYKiFhWoAqnIm1BGgoRgmxczkbSfRsHUL/lwsSgh74Lw==", "license": "MIT", "dependencies": { - "@types/cli-progress": "^3.11.0", "ansi-escapes": "^4.3.2", - "ansi-styles": "^4.3.0", - "cardinal": "^2.1.1", - "chalk": "^4.1.2", + "ansis": "^3.17.0", "clean-stack": "^3.0.1", - "cli-progress": "^3.12.0", - "debug": "^4.3.4", - "ejs": "^3.1.8", - "fs-extra": "^9.1.0", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", "get-package-type": "^0.1.0", "globby": "^11.1.0", - "hyperlinker": "^1.0.0", "indent-string": "^4.0.0", "is-wsl": "^2.2.0", - "js-yaml": "^3.14.1", - "natural-orderby": "^2.0.3", - "object-treeify": "^1.1.33", - "password-prompt": "^1.1.2", - "semver": "^7.3.7", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "supports-color": "^8.1.1", - "supports-hyperlinks": "^2.2.0", - "ts-node": "^10.9.1", - "tslib": "^2.5.0", + "supports-color": "^8", "widest-line": "^3.1.0", "wordwrap": "^1.0.0", "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, - "node_modules/@oclif/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@oclif/core/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "balanced-match": "^1.0.0" + } + }, + "node_modules/@oclif/core/node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@oclif/core/node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "license": "MIT", + "node_modules/@oclif/core/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", "dependencies": { - "has-flag": "^4.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@oclif/core/node_modules/semver": { @@ -9829,236 +10194,205 @@ "node": ">=10" } }, - "node_modules/@oclif/core/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/@oclif/plugin-autocomplete": { + "version": "3.2.34", + "resolved": "https://registry.npmjs.org/@oclif/plugin-autocomplete/-/plugin-autocomplete-3.2.34.tgz", + "integrity": "sha512-KhbPcNjitAU7jUojMXJ3l7duWVub0L0pEr3r3bLrpJBNuIJhoIJ7p56Ropcb7OMH2xcaz5B8HGq56cTOe1FHEg==", "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "@oclif/core": "^4", + "ansis": "^3.16.0", + "debug": "^4.4.1", + "ejs": "^3.1.10" }, "engines": { - "node": ">=8" + "node": ">=18.0.0" } }, - "node_modules/@oclif/plugin-autocomplete": { - "version": "2.3.10", - "resolved": "https://registry.npmjs.org/@oclif/plugin-autocomplete/-/plugin-autocomplete-2.3.10.tgz", - "integrity": "sha512-Ow1AR8WtjzlyCtiWWPgzMyT8SbcDJFr47009riLioHa+MHX2BCDtVn2DVnN/E6b9JlPV5ptQpjefoRSNWBesmg==", + "node_modules/@oclif/plugin-not-found": { + "version": "3.2.67", + "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.67.tgz", + "integrity": "sha512-Q2VluSwTrh7Sk0ey88Lk5WSATn9AZ6TjYQIyt2QrQolOBErAgpDoDSMVRYuVNtjxPBTDBzz4MM54QRFa/nN4IQ==", "license": "MIT", "dependencies": { - "@oclif/core": "^2.15.0", - "chalk": "^4.1.0", - "debug": "^4.3.4" + "@inquirer/prompts": "^7.8.4", + "@oclif/core": "^4.5.2", + "ansis": "^3.17.0", + "fast-levenshtein": "^3.0.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=18.0.0" } }, - "node_modules/@oclif/plugin-autocomplete/node_modules/@oclif/core": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@oclif/core/-/core-2.16.0.tgz", - "integrity": "sha512-dL6atBH0zCZl1A1IXCKJgLPrM/wR7K+Wi401E/IvqsK8m2iCHW+0TEOGrans/cuN3oTW+uxIyJFHJ8Im0k4qBw==", + "node_modules/@oclif/plugin-not-found/node_modules/@oclif/core": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.5.3.tgz", + "integrity": "sha512-ISoFlfmsuxJvNKXhabCO4/KqNXDQdLHchZdTPfZbtqAsQbqTw5IKitLVZq9Sz1LWizN37HILp4u0350B8scBjg==", "license": "MIT", "dependencies": { - "@types/cli-progress": "^3.11.0", "ansi-escapes": "^4.3.2", - "ansi-styles": "^4.3.0", - "cardinal": "^2.1.1", - "chalk": "^4.1.2", + "ansis": "^3.17.0", "clean-stack": "^3.0.1", - "cli-progress": "^3.12.0", - "debug": "^4.3.4", - "ejs": "^3.1.8", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", "get-package-type": "^0.1.0", - "globby": "^11.1.0", - "hyperlinker": "^1.0.0", "indent-string": "^4.0.0", "is-wsl": "^2.2.0", - "js-yaml": "^3.14.1", - "natural-orderby": "^2.0.3", - "object-treeify": "^1.1.33", - "password-prompt": "^1.1.2", - "slice-ansi": "^4.0.0", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "supports-color": "^8.1.1", - "supports-hyperlinks": "^2.2.0", - "ts-node": "^10.9.1", - "tslib": "^2.5.0", + "supports-color": "^8", + "tinyglobby": "^0.2.14", "widest-line": "^3.1.0", "wordwrap": "^1.0.0", "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, - "node_modules/@oclif/plugin-autocomplete/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@oclif/plugin-not-found/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "balanced-match": "^1.0.0" } }, - "node_modules/@oclif/plugin-autocomplete/node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@oclif/plugin-not-found/node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@oclif/plugin-autocomplete/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "license": "MIT", + "node_modules/@oclif/plugin-not-found/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@oclif/plugin-autocomplete/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" + "node_modules/@oclif/plugin-not-found/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/@oclif/plugin-not-found": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-2.4.3.tgz", - "integrity": "sha512-nIyaR4y692frwh7wIHZ3fb+2L6XEecQwRDIb4zbEam0TvaVmBQWZoColQyWA84ljFBPZ8XWiQyTz+ixSwdRkqg==", + "node_modules/@oclif/plugin-warn-if-update-available": { + "version": "3.1.46", + "resolved": "https://registry.npmjs.org/@oclif/plugin-warn-if-update-available/-/plugin-warn-if-update-available-3.1.46.tgz", + "integrity": "sha512-YDlr//SHmC80eZrt+0wNFWSo1cOSU60RoWdhSkAoPB3pUGPSNHZDquXDpo7KniinzYPsj1rfetCYk7UVXwYu7A==", "license": "MIT", "dependencies": { - "@oclif/core": "^2.15.0", - "chalk": "^4", - "fast-levenshtein": "^3.0.0" + "@oclif/core": "^4", + "ansis": "^3.17.0", + "debug": "^4.4.1", + "http-call": "^5.2.2", + "lodash": "^4.17.21", + "registry-auth-token": "^5.1.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=18.0.0" } }, - "node_modules/@oclif/plugin-not-found/node_modules/@oclif/core": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/@oclif/core/-/core-2.16.0.tgz", - "integrity": "sha512-dL6atBH0zCZl1A1IXCKJgLPrM/wR7K+Wi401E/IvqsK8m2iCHW+0TEOGrans/cuN3oTW+uxIyJFHJ8Im0k4qBw==", + "node_modules/@oclif/plugin-warn-if-update-available/node_modules/@oclif/core": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.5.3.tgz", + "integrity": "sha512-ISoFlfmsuxJvNKXhabCO4/KqNXDQdLHchZdTPfZbtqAsQbqTw5IKitLVZq9Sz1LWizN37HILp4u0350B8scBjg==", "license": "MIT", "dependencies": { - "@types/cli-progress": "^3.11.0", "ansi-escapes": "^4.3.2", - "ansi-styles": "^4.3.0", - "cardinal": "^2.1.1", - "chalk": "^4.1.2", + "ansis": "^3.17.0", "clean-stack": "^3.0.1", - "cli-progress": "^3.12.0", - "debug": "^4.3.4", - "ejs": "^3.1.8", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", "get-package-type": "^0.1.0", - "globby": "^11.1.0", - "hyperlinker": "^1.0.0", "indent-string": "^4.0.0", "is-wsl": "^2.2.0", - "js-yaml": "^3.14.1", - "natural-orderby": "^2.0.3", - "object-treeify": "^1.1.33", - "password-prompt": "^1.1.2", - "slice-ansi": "^4.0.0", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "supports-color": "^8.1.1", - "supports-hyperlinks": "^2.2.0", - "ts-node": "^10.9.1", - "tslib": "^2.5.0", + "supports-color": "^8", + "tinyglobby": "^0.2.14", "widest-line": "^3.1.0", "wordwrap": "^1.0.0", "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0" } }, - "node_modules/@oclif/plugin-not-found/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@oclif/plugin-warn-if-update-available/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "balanced-match": "^1.0.0" } }, - "node_modules/@oclif/plugin-not-found/node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@oclif/plugin-warn-if-update-available/node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@oclif/plugin-not-found/node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "license": "MIT", + "node_modules/@oclif/plugin-warn-if-update-available/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" }, "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@oclif/plugin-not-found/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" + "node_modules/@oclif/plugin-warn-if-update-available/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/@octokit/auth-token": { @@ -10726,44 +11060,11 @@ "optional": true, "peer": true }, - "node_modules/@peculiar/asn1-schema": { - "version": "2.3.15", - "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.3.15.tgz", - "integrity": "sha512-QPeD8UA8axQREpgR5UTAfu2mqQmm97oUqahDtNdBcfj3qAnoXzFdQW+aNf/tD2WVXF8Fhmftxoj0eMIT++gX2w==", - "license": "MIT", - "dependencies": { - "asn1js": "^3.0.5", - "pvtsutils": "^1.3.6", - "tslib": "^2.8.1" - } - }, - "node_modules/@peculiar/json-schema": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz", - "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==", - "license": "MIT", - "dependencies": { - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@peculiar/webcrypto": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.5.0.tgz", - "integrity": "sha512-BRs5XUAwiyCDQMsVA9IDvDa7UBR9gAvPHgugOeGng3YN6vJ9JYonyDc0lNczErgtCWtucjR5N7VtaonboD/ezg==", - "license": "MIT", - "dependencies": { - "@peculiar/asn1-schema": "^2.3.8", - "@peculiar/json-schema": "^1.1.12", - "pvtsutils": "^1.3.5", - "tslib": "^2.6.2", - "webcrypto-core": "^1.8.0" - }, - "engines": { - "node": ">=10.12.0" - } + "node_modules/@pinax/graph-networks-registry": { + "version": "0.6.7", + "resolved": "https://registry.npmjs.org/@pinax/graph-networks-registry/-/graph-networks-registry-0.6.7.tgz", + "integrity": "sha512-xogeCEZ50XRMxpBwE3TZjJ8RCO8Guv39gDRrrKtlpDEDEMLm0MzD3A0SQObgj7aF7qTZNRTWzsuvQdxgzw25wQ==", + "license": "MIT" }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", @@ -10868,6 +11169,47 @@ "node": ">= 8" } }, + "node_modules/@pnpm/config.env-replace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", + "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", + "license": "MIT", + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", + "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", + "license": "MIT", + "dependencies": { + "graceful-fs": "4.2.10" + }, + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "license": "ISC" + }, + "node_modules/@pnpm/npm-conf": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.3.1.tgz", + "integrity": "sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==", + "license": "MIT", + "dependencies": { + "@pnpm/config.env-replace": "^1.1.0", + "@pnpm/network.ca-file": "^1.0.1", + "config-chain": "^1.1.11" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@polka/url": { "version": "1.0.0-next.29", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", @@ -13631,7 +13973,6 @@ "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", "license": "MIT", - "peer": true, "dependencies": { "@noble/curves": "~1.4.0", "@noble/hashes": "~1.4.0", @@ -13646,7 +13987,6 @@ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", "license": "MIT", - "peer": true, "dependencies": { "@noble/hashes": "1.4.0" }, @@ -13659,7 +13999,6 @@ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 16" }, @@ -13672,7 +14011,6 @@ "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", "license": "MIT", - "peer": true, "funding": { "url": "https://paulmillr.com/funding/" } @@ -13682,7 +14020,6 @@ "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", "license": "MIT", - "peer": true, "dependencies": { "@noble/hashes": "~1.4.0", "@scure/base": "~1.1.6" @@ -13696,7 +14033,6 @@ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 16" }, @@ -13709,7 +14045,6 @@ "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", "license": "MIT", - "peer": true, "funding": { "url": "https://paulmillr.com/funding/" } @@ -14894,7 +15229,7 @@ "version": "1.12.9", "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.12.9.tgz", "integrity": "sha512-O+LfT2JlVMsIMWG9x+rdxg8GzpzeGtCZQfXV7cKc1PjIKUkLFf1QJ7okuseA4f/9vncu37dQ2ZcRrPKy0Ndd5g==", - "devOptional": true, + "dev": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -14936,6 +15271,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -14953,6 +15289,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -14970,6 +15307,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -14987,6 +15325,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15004,6 +15343,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15021,6 +15361,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15038,6 +15379,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15055,6 +15397,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15072,6 +15415,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15089,6 +15433,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0 AND MIT", "optional": true, "os": [ @@ -15103,14 +15448,14 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", - "devOptional": true, + "dev": true, "license": "Apache-2.0" }, "node_modules/@swc/types": { "version": "0.1.23", "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.23.tgz", "integrity": "sha512-u1iIVZV9Q0jxY+yM2vw/hZGDNudsN85bBpTqzAQ9rzkxW9D+e3aEM4Han+ow518gSewkXgjmEK0BD79ZcNVgPw==", - "devOptional": true, + "dev": true, "license": "Apache-2.0", "dependencies": { "@swc/counter": "^0.1.3" @@ -15318,24 +15663,28 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, "license": "MIT" }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, "license": "MIT" }, "node_modules/@typechain/ethers-v5": { @@ -15448,24 +15797,6 @@ "@types/deep-eql": "*" } }, - "node_modules/@types/cli-progress": { - "version": "3.11.6", - "resolved": "https://registry.npmjs.org/@types/cli-progress/-/cli-progress-3.11.6.tgz", - "integrity": "sha512-cE3+jb9WRlu+uOSAugewNpITJDt1VF8dHOopPO4IABFc3SXYL5WE/+PTz/FCdZRRfIujiWW3n3aMbv1eIGVRWA==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/concat-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.1.tgz", - "integrity": "sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/connect": { "version": "3.4.38", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", @@ -15603,15 +15934,6 @@ "@types/send": "*" } }, - "node_modules/@types/form-data": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", - "integrity": "sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/glidejs__glide": { "version": "3.6.6", "resolved": "https://registry.npmjs.org/@types/glidejs__glide/-/glidejs__glide-3.6.6.tgz", @@ -15922,6 +16244,7 @@ "version": "6.14.0", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "dev": true, "license": "MIT" }, "node_modules/@types/range-parser": { @@ -18714,7 +19037,6 @@ "version": "0.0.6", "resolved": "https://registry.npmjs.org/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz", "integrity": "sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==", - "dev": true, "license": "MIT", "dependencies": { "@whatwg-node/promise-helpers": "^1.0.0", @@ -18724,43 +19046,44 @@ "node": ">=18.0.0" } }, - "node_modules/@whatwg-node/events": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/@whatwg-node/events/-/events-0.0.3.tgz", - "integrity": "sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA==", - "license": "MIT" - }, "node_modules/@whatwg-node/fetch": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.8.8.tgz", - "integrity": "sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg==", + "version": "0.10.10", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.10.tgz", + "integrity": "sha512-watz4i/Vv4HpoJ+GranJ7HH75Pf+OkPQ63NoVmru6Srgc8VezTArB00i/oQlnn0KWh14gM42F22Qcc9SU9mo/w==", "license": "MIT", "dependencies": { - "@peculiar/webcrypto": "^1.4.0", - "@whatwg-node/node-fetch": "^0.3.6", - "busboy": "^1.6.0", - "urlpattern-polyfill": "^8.0.0", - "web-streams-polyfill": "^3.2.1" + "@whatwg-node/node-fetch": "^0.7.25", + "urlpattern-polyfill": "^10.0.0" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@whatwg-node/node-fetch": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.3.6.tgz", - "integrity": "sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA==", + "version": "0.7.25", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.25.tgz", + "integrity": "sha512-szCTESNJV+Xd56zU6ShOi/JWROxE9IwCic8o5D9z5QECZloas6Ez5tUuKqXTAdu6fHFx1t6C+5gwj8smzOLjtg==", "license": "MIT", "dependencies": { - "@whatwg-node/events": "^0.0.3", - "busboy": "^1.6.0", - "fast-querystring": "^1.1.1", - "fast-url-parser": "^1.1.3", - "tslib": "^2.3.1" + "@fastify/busboy": "^3.1.1", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/promise-helpers": "^1.3.2", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" } }, + "node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.2.0.tgz", + "integrity": "sha512-m9FVDXU3GT2ITSe0UaMA5rU3QkfC/UXtCU8y0gSN/GugTqtVldOBWIB5V6V3sbmenVZUIpU6f+mPEO2+m5iTaA==", + "license": "MIT" + }, "node_modules/@whatwg-node/promise-helpers": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@whatwg-node/promise-helpers/-/promise-helpers-1.3.2.tgz", "integrity": "sha512-Nst5JdK47VIl9UcGwtv2Rcgyn5lWtZ0/mhRQ4G8NN2isxpq2TO30iqHzmwoJycjWuyUfg3GFXqP/gFHXeV57IA==", - "dev": true, "license": "MIT", "dependencies": { "tslib": "^2.6.3" @@ -18944,17 +19267,11 @@ } } }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } + "node_modules/abort-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/abort-error/-/abort-error-1.0.1.tgz", + "integrity": "sha512-fxqCblJiIPdSXIUrxI0PL+eJG49QdP9SQ70qtB65MVAoMr2rASlOyAbJFOylfB467F/f+5BCLJJq58RYi7mGfg==", + "license": "Apache-2.0 OR MIT" }, "node_modules/accepts": { "version": "1.3.8", @@ -18982,6 +19299,7 @@ "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "devOptional": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -19038,6 +19356,7 @@ "version": "8.3.4", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, "license": "MIT", "dependencies": { "acorn": "^8.11.0" @@ -19251,11 +19570,14 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ansicolors": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", - "integrity": "sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg==", - "license": "MIT" + "node_modules/ansis": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz", + "integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==", + "license": "ISC", + "engines": { + "node": ">=14" + } }, "node_modules/any-promise": { "version": "1.3.0", @@ -19346,6 +19668,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" @@ -19598,22 +19921,9 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true, "license": "MIT" }, - "node_modules/asn1js": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.0.6.tgz", - "integrity": "sha512-UOCGPYbl0tv8+006qks/dTgV9ajs97X2p0FAbyS2iyCRrmLSRolDaHdp+v/CLgnzHc3fVB+CwYiUmei7ndFcgA==", - "license": "BSD-3-Clause", - "dependencies": { - "pvtsutils": "^1.3.6", - "pvutils": "^1.1.3", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/assemblyscript": { "version": "0.19.23", "resolved": "https://registry.npmjs.org/assemblyscript/-/assemblyscript-0.19.23.tgz", @@ -19666,6 +19976,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -19707,6 +20018,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, "license": "ISC", "engines": { "node": ">= 4.0.0" @@ -20424,6 +20736,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -20432,20 +20745,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/binary-install-raw": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/binary-install-raw/-/binary-install-raw-0.0.13.tgz", - "integrity": "sha512-v7ms6N/H7iciuk6QInon3/n2mu7oRX+6knJ9xFPsJ3rQePgAqcR3CRTwUheFd8SLbiq4LL7Z4G/44L9zscdt9A==", - "license": "MIT", - "dependencies": { - "axios": "^0.21.1", - "rimraf": "^3.0.2", - "tar": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/binaryen": { "version": "102.0.0-nightly.20211028", "resolved": "https://registry.npmjs.org/binaryen/-/binaryen-102.0.0-nightly.20211028.tgz", @@ -20809,28 +21108,6 @@ "ieee754": "^1.2.1" } }, - "node_modules/buffer-alloc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", - "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "license": "MIT", - "dependencies": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" - } - }, - "node_modules/buffer-alloc-unsafe": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "license": "MIT" - }, - "node_modules/buffer-fill": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "license": "MIT" - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -20904,15 +21181,19 @@ "node": ">=10" } }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "license": "MIT", "dependencies": { - "streamsearch": "^1.1.0" + "run-applescript": "^7.0.0" }, "engines": { - "node": ">=10.16.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/byte-size": { @@ -21219,19 +21500,6 @@ "upper-case-first": "^2.0.2" } }, - "node_modules/cardinal": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", - "integrity": "sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw==", - "license": "MIT", - "dependencies": { - "ansicolors": "~0.3.2", - "redeyed": "~2.1.0" - }, - "bin": { - "cdl": "bin/cdl.js" - } - }, "node_modules/case-sensitive-paths-webpack-plugin": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", @@ -21242,12 +21510,6 @@ "node": ">=4" } }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "license": "Apache-2.0" - }, "node_modules/cborg": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/cborg/-/cborg-1.10.2.tgz", @@ -21287,6 +21549,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -21300,6 +21563,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -21407,6 +21671,7 @@ "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, "funding": [ { "type": "individual", @@ -21434,6 +21699,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true, "license": "ISC", "engines": { "node": ">=10" @@ -21592,18 +21858,6 @@ "node": ">=8" } }, - "node_modules/cli-progress": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.12.0.tgz", - "integrity": "sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A==", - "license": "MIT", - "dependencies": { - "string-width": "^4.2.3" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/cli-spinners": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", @@ -22239,26 +22493,10 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "license": "MIT" }, - "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "engines": [ - "node >= 0.8" - ], - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, "node_modules/config-chain": { "version": "1.1.13", "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", - "dev": true, "license": "MIT", "dependencies": { "ini": "^1.3.4", @@ -22732,6 +22970,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, "license": "MIT" }, "node_modules/cors": { @@ -22892,6 +23131,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, "license": "MIT" }, "node_modules/cross-env": { @@ -23874,6 +24114,34 @@ "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", + "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", + "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/default-gateway": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", @@ -24142,6 +24410,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" @@ -24197,7 +24466,6 @@ "version": "5.6.1", "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", - "dev": true, "license": "MIT", "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" @@ -24207,77 +24475,27 @@ } }, "node_modules/docker-compose": { - "version": "0.23.19", - "resolved": "https://registry.npmjs.org/docker-compose/-/docker-compose-0.23.19.tgz", - "integrity": "sha512-v5vNLIdUqwj4my80wxFDkNH+4S85zsRuH29SO7dCWVWPCMt/ohZBsGN6g6KXWifT0pzQ7uOxqEKCYCDPJ8Vz4g==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/docker-compose/-/docker-compose-1.2.0.tgz", + "integrity": "sha512-wIU1eHk3Op7dFgELRdmOYlPYS4gP8HhH1ZmZa13QZF59y0fblzFDFmKPhyc05phCy2hze9OEvNZAsoljrs+72w==", "license": "MIT", "dependencies": { - "yaml": "^1.10.2" + "yaml": "^2.2.2" }, "engines": { "node": ">= 6.0.0" } }, - "node_modules/docker-modem": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/docker-modem/-/docker-modem-1.0.9.tgz", - "integrity": "sha512-lVjqCSCIAUDZPAZIeyM125HXfNvOmYYInciphNrLrylUtKyW66meAjSPXWchKVzoIYZx69TPnAepVSSkeawoIw==", - "license": "Apache-2.0", - "dependencies": { - "debug": "^3.2.6", - "JSONStream": "1.3.2", - "readable-stream": "~1.0.26-4", - "split-ca": "^1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/docker-modem/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/docker-modem/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "license": "MIT" - }, - "node_modules/docker-modem/node_modules/readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/docker-modem/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "license": "MIT" - }, - "node_modules/dockerode": { - "version": "2.5.8", - "resolved": "https://registry.npmjs.org/dockerode/-/dockerode-2.5.8.tgz", - "integrity": "sha512-+7iOUYBeDTScmOmQqpUYQaE7F4vvIt6+gIZNHWhqAQEI887tiPFB9OvXI/HzQYqfUNvukMK+9myLW63oTJPZpw==", - "license": "Apache-2.0", - "dependencies": { - "concat-stream": "~1.6.2", - "docker-modem": "^1.0.8", - "tar-fs": "~1.16.3" + "node_modules/docker-compose/node_modules/yaml": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" }, "engines": { - "node": ">= 0.8" + "node": ">= 14.6" } }, "node_modules/doctrine": { @@ -24532,7 +24750,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, "license": "MIT" }, "node_modules/ee-first": { @@ -24612,7 +24829,6 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, "license": "MIT" }, "node_modules/emojis-list": { @@ -25994,6 +26210,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "devOptional": true, "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", @@ -26274,7 +26491,6 @@ "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", "license": "MIT", - "peer": true, "dependencies": { "@noble/curves": "1.4.2", "@noble/hashes": "1.4.0", @@ -26287,7 +26503,6 @@ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", "license": "MIT", - "peer": true, "dependencies": { "@noble/hashes": "1.4.0" }, @@ -26300,7 +26515,6 @@ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 16" }, @@ -26535,15 +26749,6 @@ "es5-ext": "~0.10.14" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/eventemitter3": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", @@ -26810,12 +27015,6 @@ "node": "> 0.1.90" } }, - "node_modules/fast-decode-uri-component": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz", - "integrity": "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==", - "license": "MIT" - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -26874,15 +27073,6 @@ "fastest-levenshtein": "^1.0.7" } }, - "node_modules/fast-querystring": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.1.2.tgz", - "integrity": "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==", - "license": "MIT", - "dependencies": { - "fast-decode-uri-component": "^1.0.1" - } - }, "node_modules/fast-redact": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.5.0.tgz", @@ -26915,15 +27105,6 @@ ], "license": "BSD-3-Clause" }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", - "license": "MIT", - "dependencies": { - "punycode": "^1.3.2" - } - }, "node_modules/fastest-levenshtein": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", @@ -27303,7 +27484,6 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", @@ -27320,7 +27500,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, "license": "ISC", "engines": { "node": ">=14" @@ -27520,12 +27699,14 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true, "license": "MIT" }, "node_modules/fs-extra": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", @@ -27585,6 +27766,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^3.0.0" @@ -27597,6 +27779,7 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -27609,6 +27792,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, "license": "ISC" }, "node_modules/fs-monkey": { @@ -28011,18 +28195,23 @@ } }, "node_modules/glob": { - "version": "9.3.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", - "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.2.tgz", + "integrity": "sha512-YT7U7Vye+t5fZ/QMkBFrTJ7ZQxInIUjwyAjVj84CYXqgBdv30MFUPGnBR6sQaVq6Is15wYJUsnzTuWaGRBhBAQ==", "license": "ISC", "dependencies": { - "fs.realpath": "^1.0.0", - "minimatch": "^8.0.2", - "minipass": "^4.2.4", - "path-scurry": "^1.6.1" + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -28047,25 +28236,56 @@ "dev": true, "license": "BSD-2-Clause" }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "license": "MIT", + "node_modules/glob/node_modules/jackspeak": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "license": "BlueOak-1.0.0", "dependencies": { - "balanced-match": "^1.0.0" + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob/node_modules/lru-cache": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.1.tgz", + "integrity": "sha512-r8LA6i4LP4EeWOhqBaZZjDWwehd1xUJPCJd9Sv300H0ZmcUER4+JPh7bqqZeqs1o5pgtgvXm+d9UGrB5zZGDiQ==", + "license": "ISC", + "engines": { + "node": "20 || >=22" } }, "node_modules/glob/node_modules/minimatch": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz", - "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -28189,9 +28409,9 @@ } }, "node_modules/gluegun": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/gluegun/-/gluegun-5.1.6.tgz", - "integrity": "sha512-9zbi4EQWIVvSOftJWquWzr9gLX2kaDgPkNR5dYWbM53eVvCI3iKuxLlnKoHC0v4uPoq+Kr/+F569tjoFbA4DSA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/gluegun/-/gluegun-5.2.0.tgz", + "integrity": "sha512-jSUM5xUy2ztYFQANne17OUm/oAd7qSX7EBksS9bQDt9UvLPqcEkeWUebmaposb8Tx7eTTD8uJVWGRe6PYSsYkg==", "license": "MIT", "dependencies": { "apisauce": "^2.1.5", @@ -28715,6 +28935,12 @@ "minimalistic-assert": "^1.0.1" } }, + "node_modules/hashlru": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/hashlru/-/hashlru-2.3.0.tgz", + "integrity": "sha512-0cMsjjIC8I+D3M44pOQdsy0OHXGLVz6Z0beRuufhKa0KfaD2wGwAev6jILzXsd3/vpnNQJmWyZtIILqM1N+n5A==", + "license": "MIT" + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -29072,21 +29298,6 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/http-basic": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz", - "integrity": "sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw==", - "license": "MIT", - "dependencies": { - "caseless": "^0.12.0", - "concat-stream": "^1.6.2", - "http-response-object": "^3.0.1", - "parse-cache-control": "^1.0.1" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/http-cache-semantics": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", @@ -29094,6 +29305,36 @@ "dev": true, "license": "BSD-2-Clause" }, + "node_modules/http-call": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/http-call/-/http-call-5.3.0.tgz", + "integrity": "sha512-ahwimsC23ICE4kPl9xTBjKB4inbRaeLyZeRunC/1Jy/Z6X8tv22MEAjK+KBOMSVLaqXPTTmd8638waVIKLGx2w==", + "license": "ISC", + "dependencies": { + "content-type": "^1.0.4", + "debug": "^4.1.1", + "is-retry-allowed": "^1.1.0", + "is-stream": "^2.0.0", + "parse-json": "^4.0.0", + "tunnel-agent": "^0.6.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-call/node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "license": "MIT", + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/http-deceiver": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", @@ -29204,21 +29445,6 @@ "dev": true, "license": "MIT" }, - "node_modules/http-response-object": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz", - "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==", - "license": "MIT", - "dependencies": { - "@types/node": "^10.0.3" - } - }, - "node_modules/http-response-object/node_modules/@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", - "license": "MIT" - }, "node_modules/https-proxy-agent": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", @@ -29268,15 +29494,6 @@ "url": "https://github.com/sponsors/typicode" } }, - "node_modules/hyperlinker": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/hyperlinker/-/hyperlinker-1.0.0.tgz", - "integrity": "sha512-Ty8UblRWFEcfSuIaajM34LdPXIhbs1ajEX/BBPv24J+enSVaEVY63xQ6lTO9VRYS5LAoghIG0IDJ+p+IPzKUQQ==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/hyphenate-style-name": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.1.0.tgz", @@ -29424,9 +29641,9 @@ } }, "node_modules/immutable": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.2.1.tgz", - "integrity": "sha512-7WYV7Q5BTs0nlQm7tl92rDYYoyELLKHoDMBKhrxEoiV4mrfVdRz8hzPiYOzH7yWjzoVEamxRuAqhxL2PLRwZYQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.2.tgz", + "integrity": "sha512-qHKXW1q6liAk1Oys6umoaZbDRqjcjgSrbnrifHsfsttza7zcvRAsL7mMV6xWcyhwQy7Xj5v4hhbr6b+iDYwlmQ==", "license": "MIT" }, "node_modules/import-fresh": { @@ -29534,7 +29751,6 @@ "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true, "license": "ISC" }, "node_modules/init-package-json": { @@ -30077,6 +30293,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" @@ -30318,6 +30535,39 @@ "npm": ">=3" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container/node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", @@ -30504,6 +30754,15 @@ "node": ">=0.10.0" } }, + "node_modules/is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-root": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", @@ -30742,6 +31001,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, "license": "MIT" }, "node_modules/isexe": { @@ -30959,6 +31219,33 @@ "integrity": "sha512-5+8zemFS+wSfIkSZyf0Zh5kNN+iGyccN02914BY4w/Dj+uoFEoPSvj5vaWn8pNZJNSxzjW0zHRxC3LUb2KWJTQ==", "license": "ISC" }, + "node_modules/it-pushable": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.2.3.tgz", + "integrity": "sha512-gzYnXYK8Y5t5b/BnJUr7glfQLO4U5vyb05gPx/TyTw+4Bv1zM9gFk4YsOrnulWefMewlphCjKkakFvj1y99Tcg==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "p-defer": "^4.0.0" + } + }, + "node_modules/it-pushable/node_modules/p-defer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-4.0.1.tgz", + "integrity": "sha512-Mr5KC5efvAK5VUptYEIopP1bakB85k2IWXaRC0rsh1uwn1L6M0LVml8OIQ4Gudg4oyZakf7FmeRLkMMtZW1i5A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/it-stream-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.2.tgz", + "integrity": "sha512-Rz/DEZ6Byn/r9+/SBCuJhpPATDF9D+dz5pbgSUyBsCDtza6wtNATrz/jz1gDyNanC3XdLboriHnOC925bZRBww==", + "license": "Apache-2.0 OR MIT" + }, "node_modules/it-to-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/it-to-stream/-/it-to-stream-1.0.0.tgz", @@ -31068,9 +31355,9 @@ } }, "node_modules/jayson": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.0.0.tgz", - "integrity": "sha512-v2RNpDCMu45fnLzSk47vx7I+QUaOsox6f5X0CUlabAFwxoP+8MfAY0NQRFwOEYXIxm8Ih5y6OaEa5KYiQMkyAA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.2.0.tgz", + "integrity": "sha512-VfJ9t1YLwacIubLhONk0KFeosUBwstRWQ0IRT1KDjEjnVnSOVHC3uwugyV7L0c7R9lpVyrUGT2XWiBA1UTtpyg==", "license": "MIT", "dependencies": { "@types/connect": "^3.4.33", @@ -31082,9 +31369,9 @@ "eyes": "^0.1.8", "isomorphic-ws": "^4.0.1", "json-stringify-safe": "^5.0.1", - "JSONStream": "^1.3.5", + "stream-json": "^1.9.1", "uuid": "^8.3.2", - "ws": "^7.4.5" + "ws": "^7.5.10" }, "bin": { "jayson": "bin/jayson.js" @@ -31123,22 +31410,6 @@ "ws": "*" } }, - "node_modules/jayson/node_modules/JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "license": "(MIT OR Apache-2.0)", - "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" - }, - "engines": { - "node": "*" - } - }, "node_modules/jayson/node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -33456,6 +33727,7 @@ "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, "license": "MIT", "dependencies": { "argparse": "^1.0.7", @@ -33735,7 +34007,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true, "license": "MIT" }, "node_modules/json-parse-even-better-errors": { @@ -33866,6 +34137,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, "engines": [ "node >= 0.2.0" ], @@ -33910,6 +34182,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.2.tgz", "integrity": "sha512-mn0KSip7N4e0UDPZHnqDsHECo5uGQrixQKnAskOM1BIB8hd7QKbd6il8IPRPudPHOeHiECoCFqhyMaRO9+nWyA==", + "dev": true, "license": "(MIT OR Apache-2.0)", "dependencies": { "jsonparse": "^1.2.0", @@ -34033,6 +34306,247 @@ "node": ">= 8" } }, + "node_modules/kubo-rpc-client": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/kubo-rpc-client/-/kubo-rpc-client-5.2.0.tgz", + "integrity": "sha512-J3ppL1xf7f27NDI9jUPGkr1QiExXLyxUTUwHUMMB1a4AZR4s6113SVXPHRYwe1pFIO3hRb5G+0SuHaxYSfhzBA==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "@ipld/dag-cbor": "^9.0.0", + "@ipld/dag-json": "^10.0.0", + "@ipld/dag-pb": "^4.0.0", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", + "@multiformats/multiaddr": "^12.2.1", + "@multiformats/multiaddr-to-uri": "^11.0.0", + "any-signal": "^4.1.1", + "blob-to-it": "^2.0.5", + "browser-readablestream-to-it": "^2.0.5", + "dag-jose": "^5.0.0", + "electron-fetch": "^1.9.1", + "err-code": "^3.0.1", + "ipfs-unixfs": "^11.1.4", + "iso-url": "^1.2.1", + "it-all": "^3.0.4", + "it-first": "^3.0.4", + "it-glob": "^3.0.1", + "it-last": "^3.0.4", + "it-map": "^3.0.5", + "it-peekable": "^3.0.3", + "it-to-stream": "^1.0.0", + "merge-options": "^3.0.4", + "multiformats": "^13.1.0", + "nanoid": "^5.0.7", + "native-fetch": "^4.0.2", + "parse-duration": "^2.1.2", + "react-native-fetch-api": "^3.0.0", + "stream-to-it": "^1.0.1", + "uint8arrays": "^5.0.3", + "wherearewe": "^2.0.1" + } + }, + "node_modules/kubo-rpc-client/node_modules/@ipld/dag-cbor": { + "version": "9.2.5", + "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-9.2.5.tgz", + "integrity": "sha512-84wSr4jv30biui7endhobYhXBQzQE4c/wdoWlFrKcfiwH+ofaPg8fwsM8okX9cOzkkrsAsNdDyH3ou+kiLquwQ==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "cborg": "^4.0.0", + "multiformats": "^13.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/@ipld/dag-json": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/@ipld/dag-json/-/dag-json-10.2.5.tgz", + "integrity": "sha512-Q4Fr3IBDEN8gkpgNefynJ4U/ZO5Kwr7WSUMBDbZx0c37t0+IwQCTM9yJh8l5L4SRFjm31MuHwniZ/kM+P7GQ3Q==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "cborg": "^4.0.0", + "multiformats": "^13.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/@ipld/dag-pb": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@ipld/dag-pb/-/dag-pb-4.1.5.tgz", + "integrity": "sha512-w4PZ2yPqvNmlAir7/2hsCRMqny1EY5jj26iZcSgxREJexmbAc2FI21jp26MqiNdfgAxvkCnf2N/TJI18GaDNwA==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/any-signal": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/any-signal/-/any-signal-4.1.1.tgz", + "integrity": "sha512-iADenERppdC+A2YKbOXXB2WUeABLaM6qnpZ70kZbPZ1cZMMJ7eF+3CaYm+/PhBizgkzlvssC7QuHS30oOiQYWA==", + "license": "Apache-2.0 OR MIT", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/blob-to-it": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/blob-to-it/-/blob-to-it-2.0.10.tgz", + "integrity": "sha512-I39vO57y+LBEIcAV7fif0sn96fYOYVqrPiOD+53MxQGv4DBgt1/HHZh0BHheWx2hVe24q5LTSXxqeV1Y3Nzkgg==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "browser-readablestream-to-it": "^2.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/browser-readablestream-to-it": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/browser-readablestream-to-it/-/browser-readablestream-to-it-2.0.10.tgz", + "integrity": "sha512-I/9hEcRtjct8CzD9sVo9Mm4ntn0D+7tOVrjbPl69XAoOfgJ8NBdOQU+WX+5SHhcELJDb14mWt7zuvyqha+MEAQ==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/cborg": { + "version": "4.2.15", + "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.2.15.tgz", + "integrity": "sha512-T+YVPemWyXcBVQdp0k61lQp2hJniRNmul0lAwTj2DTS/6dI4eCq/MRMucGqqvFqMBfmnD8tJ9aFtPu5dEGAbgw==", + "license": "Apache-2.0", + "bin": { + "cborg": "lib/bin.js" + } + }, + "node_modules/kubo-rpc-client/node_modules/dag-jose": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/dag-jose/-/dag-jose-5.1.1.tgz", + "integrity": "sha512-9alfZ8Wh1XOOMel8bMpDqWsDT72ojFQCJPtwZSev9qh4f8GoCV9qrJW8jcOUhcstO8Kfm09FHGo//jqiZq3z9w==", + "license": "(Apache-2.0 OR MIT)", + "dependencies": { + "@ipld/dag-cbor": "^9.0.0", + "multiformats": "~13.1.3" + } + }, + "node_modules/kubo-rpc-client/node_modules/dag-jose/node_modules/multiformats": { + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.3.tgz", + "integrity": "sha512-CZPi9lFZCM/+7oRolWYsvalsyWQGFo+GpdaTmjxXXomC+nP/W1Rnxb9sUgjvmNmRZ5bOPqRAl4nuK+Ydw/4tGw==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/ipfs-unixfs": { + "version": "11.2.5", + "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-11.2.5.tgz", + "integrity": "sha512-uasYJ0GLPbViaTFsOLnL9YPjX5VmhnqtWRriogAHOe4ApmIi9VAOFBzgDHsUW2ub4pEa/EysbtWk126g2vkU/g==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "protons-runtime": "^5.5.0", + "uint8arraylist": "^2.4.8" + } + }, + "node_modules/kubo-rpc-client/node_modules/it-all": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.9.tgz", + "integrity": "sha512-fz1oJJ36ciGnu2LntAlE6SA97bFZpW7Rnt0uEc1yazzR2nKokZLr8lIRtgnpex4NsmaBcvHF+Z9krljWFy/mmg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/it-first": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/it-first/-/it-first-3.0.9.tgz", + "integrity": "sha512-ZWYun273Gbl7CwiF6kK5xBtIKR56H1NoRaiJek2QzDirgen24u8XZ0Nk+jdnJSuCTPxC2ul1TuXKxu/7eK6NuA==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/it-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/it-glob/-/it-glob-3.0.4.tgz", + "integrity": "sha512-73PbGBTK/dHp5PX4l8pkQH1ozCONP0U+PB3qMqltxPonRJQNomINE3Hn9p02m2GOu95VoeVvSZdHI2N+qub0pw==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "fast-glob": "^3.3.3" + } + }, + "node_modules/kubo-rpc-client/node_modules/it-last": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/it-last/-/it-last-3.0.9.tgz", + "integrity": "sha512-AtfUEnGDBHBEwa1LjrpGHsJMzJAWDipD6zilvhakzJcm+BCvNX8zlX2BsHClHJLLTrsY4lY9JUjc+TQV4W7m1w==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/it-map": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.1.4.tgz", + "integrity": "sha512-QB9PYQdE9fUfpVFYfSxBIyvKynUCgblb143c+ktTK6ZuKSKkp7iH58uYFzagqcJ5HcqIfn1xbfaralHWam+3fg==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "it-peekable": "^3.0.0" + } + }, + "node_modules/kubo-rpc-client/node_modules/it-peekable": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/it-peekable/-/it-peekable-3.0.8.tgz", + "integrity": "sha512-7IDBQKSp/dtBxXV3Fj0v3qM1jftJ9y9XrWLRIuU1X6RdKqWiN60syNwP0fiDxZD97b8SYM58dD3uklIk1TTQAw==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/kubo-rpc-client/node_modules/nanoid": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz", + "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, + "node_modules/kubo-rpc-client/node_modules/native-fetch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/native-fetch/-/native-fetch-4.0.2.tgz", + "integrity": "sha512-4QcVlKFtv2EYVS5MBgsGX5+NWKtbDbIECdUXDBGDMAZXq3Jkv9zf+y8iS7Ub8fEdga3GpYeazp9gauNqXHJOCg==", + "license": "MIT", + "peerDependencies": { + "undici": "*" + } + }, + "node_modules/kubo-rpc-client/node_modules/parse-duration": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-2.1.4.tgz", + "integrity": "sha512-b98m6MsCh+akxfyoz9w9dt0AlH2dfYLOBss5SdDsr9pkhKNvkWBXU/r8A4ahmIGByBOLV2+4YwfCuFxbDDaGyg==", + "license": "MIT" + }, + "node_modules/kubo-rpc-client/node_modules/stream-to-it": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-to-it/-/stream-to-it-1.0.1.tgz", + "integrity": "sha512-AqHYAYPHcmvMrcLNgncE/q0Aj/ajP6A4qGhxP6EVn7K3YTNs0bJpJyk57wc2Heb7MUL64jurvmnmui8D9kjZgA==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "it-stream-types": "^2.0.1" + } + }, + "node_modules/kubo-rpc-client/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, "node_modules/kuler": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", @@ -34321,7 +34835,6 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", - "dev": true, "license": "MIT", "engines": { "node": ">=14" @@ -35307,6 +35820,12 @@ "@jridgewell/sourcemap-codec": "^1.5.0" } }, + "node_modules/main-event": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/main-event/-/main-event-1.0.1.tgz", + "integrity": "sha512-NWtdGrAca/69fm6DIVd8T9rtfDII4Q8NQbIbsKQq2VzS9eqOGYs8uaNQjcuaCq/d9H/o625aOTJX2Qoxzqw0Pw==", + "license": "Apache-2.0 OR MIT" + }, "node_modules/make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -35327,6 +35846,7 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, "license": "ISC" }, "node_modules/make-fetch-happen": { @@ -36812,6 +37332,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -36843,12 +37364,12 @@ } }, "node_modules/minipass": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", - "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "license": "ISC", "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" } }, "node_modules/minipass-collect": { @@ -37056,6 +37577,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, "license": "MIT", "dependencies": { "minipass": "^3.0.0", @@ -37069,6 +37591,7 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -37081,12 +37604,14 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, "license": "ISC" }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -37383,15 +37908,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/native-abort-controller": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/native-abort-controller/-/native-abort-controller-1.0.4.tgz", - "integrity": "sha512-zp8yev7nxczDJMoP6pDxyD20IU0T22eX8VwN2ztDccKvSZhRaV33yP1BGwKSZfXuqWUzsXopVFjBdau9OOAwMQ==", - "license": "MIT", - "peerDependencies": { - "abort-controller": "*" - } - }, "node_modules/native-fetch": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/native-fetch/-/native-fetch-3.0.0.tgz", @@ -37415,15 +37931,6 @@ "dev": true, "license": "MIT" }, - "node_modules/natural-orderby": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/natural-orderby/-/natural-orderby-2.0.3.tgz", - "integrity": "sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==", - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/ncp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", @@ -38541,15 +39048,6 @@ "node": ">= 0.4" } }, - "node_modules/object-treeify": { - "version": "1.1.33", - "resolved": "https://registry.npmjs.org/object-treeify/-/object-treeify-1.1.33.tgz", - "integrity": "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==", - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, "node_modules/object.assign": { "version": "4.1.7", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", @@ -39394,7 +39892,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, "license": "BlueOak-1.0.0" }, "node_modules/pacote": { @@ -39528,11 +40025,6 @@ "node": ">=6" } }, - "node_modules/parse-cache-control": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", - "integrity": "sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg==" - }, "node_modules/parse-conflict-json": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/parse-conflict-json/-/parse-conflict-json-2.0.2.tgz", @@ -39648,16 +40140,6 @@ "tslib": "^2.0.3" } }, - "node_modules/password-prompt": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/password-prompt/-/password-prompt-1.1.3.tgz", - "integrity": "sha512-HkrjG2aJlvF0t2BMH0e2LB/EHf3Lcq3fNMzy4GYHcQblAvOl+QQji1Lx7WRBMqpVK8p+KR7bCg7oqAMXtdgqyw==", - "license": "0BSD", - "dependencies": { - "ansi-escapes": "^4.3.2", - "cross-spawn": "^7.0.3" - } - }, "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", @@ -39736,6 +40218,7 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", @@ -39752,17 +40235,9 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, "license": "ISC" }, - "node_modules/path-scurry/node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/path-to-regexp": { "version": "0.1.12", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", @@ -41938,6 +42413,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true, "license": "MIT" }, "node_modules/process-warning": { @@ -41946,10 +42422,17 @@ "integrity": "sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==", "license": "MIT" }, + "node_modules/progress-events": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/progress-events/-/progress-events-1.0.1.tgz", + "integrity": "sha512-MOzLIwhpt64KIVN64h1MwdKWiyKFNc/S6BoYKPIVUHFg0/eIEyBulhWCgn678v/4c0ri3FdGuzXymNCv02MUIw==", + "license": "Apache-2.0 OR MIT" + }, "node_modules/promise": { "version": "8.3.0", "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "dev": true, "license": "MIT", "dependencies": { "asap": "~2.0.6" @@ -42068,7 +42551,6 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", - "dev": true, "license": "ISC" }, "node_modules/protobufjs": { @@ -42102,6 +42584,32 @@ "dev": true, "license": "MIT" }, + "node_modules/protons-runtime": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.6.0.tgz", + "integrity": "sha512-/Kde+sB9DsMFrddJT/UZWe6XqvL7SL5dbag/DBCElFKhkwDj7XKt53S+mzLyaDP5OqS0wXjV5SA572uWDaT0Hg==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "uint8-varint": "^2.0.2", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^5.0.1" + } + }, + "node_modules/protons-runtime/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/protons-runtime/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -42160,20 +42668,11 @@ "node": ">=6" } }, - "node_modules/pump": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", - "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "node_modules/punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true, "license": "MIT" }, "node_modules/pure-rand": { @@ -42193,24 +42692,6 @@ ], "license": "MIT" }, - "node_modules/pvtsutils": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz", - "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==", - "license": "MIT", - "dependencies": { - "tslib": "^2.8.1" - } - }, - "node_modules/pvutils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.1.3.tgz", - "integrity": "sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", @@ -42384,6 +42865,7 @@ "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -45689,6 +46171,7 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", @@ -45718,6 +46201,7 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, "license": "MIT", "dependencies": { "picomatch": "^2.2.1" @@ -45801,15 +46285,6 @@ "node": ">=8" } }, - "node_modules/redeyed": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", - "integrity": "sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ==", - "license": "MIT", - "dependencies": { - "esprima": "~4.0.0" - } - }, "node_modules/reduce-flatten": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", @@ -45941,6 +46416,18 @@ "node": ">=4" } }, + "node_modules/registry-auth-token": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.1.0.tgz", + "integrity": "sha512-GdekYuwLXLxMuFTwAPg5UKGLW/UXzQrZvH/Zj791BQif5T05T0RsaLfHc9q3ZOKi7n+BoprPD9mJ0O0k4xzUlw==", + "license": "MIT", + "dependencies": { + "@pnpm/npm-conf": "^2.1.0" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/regjsgen": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", @@ -46456,6 +46943,18 @@ "node": ">=8" } }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -47636,12 +48135,6 @@ "node": "*" } }, - "node_modules/split-ca": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split-ca/-/split-ca-1.0.1.tgz", - "integrity": "sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==", - "license": "ISC" - }, "node_modules/split-on-first": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-3.0.0.tgz", @@ -47693,6 +48186,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, "license": "BSD-3-Clause" }, "node_modules/ssri": { @@ -47849,6 +48343,21 @@ } } }, + "node_modules/stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", + "license": "BSD-3-Clause" + }, + "node_modules/stream-json": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.9.1.tgz", + "integrity": "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==", + "license": "BSD-3-Clause", + "dependencies": { + "stream-chain": "^2.2.5" + } + }, "node_modules/stream-shift": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", @@ -47864,14 +48373,6 @@ "get-iterator": "^1.0.2" } }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/strict-uri-encode": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", @@ -47972,7 +48473,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -47987,14 +48487,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, "license": "MIT" }, "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -48163,7 +48661,6 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" @@ -48180,7 +48677,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -48193,7 +48689,6 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -48535,16 +49030,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/sucrase/node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/superstruct": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", @@ -48574,6 +49059,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0", @@ -48587,6 +49073,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -48752,38 +49239,6 @@ "node": ">=18" } }, - "node_modules/sync-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-6.1.0.tgz", - "integrity": "sha512-8fjNkrNlNCrVc/av+Jn+xxqfCjYaBoHqCsDz6mt030UMxJGr+GSfCV1dQt2gRtlL63+VPidwDVLr7V2OcTSdRw==", - "license": "MIT", - "dependencies": { - "http-response-object": "^3.0.1", - "sync-rpc": "^1.2.1", - "then-request": "^6.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/sync-rpc": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.6.tgz", - "integrity": "sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw==", - "license": "MIT", - "dependencies": { - "get-port": "^3.1.0" - } - }, - "node_modules/sync-rpc/node_modules/get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/synckit": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.8.tgz", @@ -48950,6 +49405,7 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "dev": true, "license": "ISC", "dependencies": { "chownr": "^2.0.0", @@ -48963,64 +49419,6 @@ "node": ">=10" } }, - "node_modules/tar-fs": { - "version": "1.16.5", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.5.tgz", - "integrity": "sha512-1ergVCCysmwHQNrOS+Pjm4DQ4nrGp43+Xnu4MRGjCnQu/m3hEgLNS78d5z+B8OJ1hN5EejJdCSFZE1oM6AQXAQ==", - "license": "MIT", - "dependencies": { - "chownr": "^1.0.1", - "mkdirp": "^0.5.1", - "pump": "^1.0.0", - "tar-stream": "^1.1.2" - } - }, - "node_modules/tar-fs/node_modules/bl": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", - "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/tar-fs/node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" - }, - "node_modules/tar-fs/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/tar-fs/node_modules/tar-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", - "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "license": "MIT", - "dependencies": { - "bl": "^1.0.0", - "buffer-alloc": "^1.2.0", - "end-of-stream": "^1.0.0", - "fs-constants": "^1.0.0", - "readable-stream": "^2.3.0", - "to-buffer": "^1.1.1", - "xtend": "^4.0.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/tar-stream": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", @@ -49057,6 +49455,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "dev": true, "license": "ISC", "engines": { "node": ">=8" @@ -49066,6 +49465,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, "license": "ISC" }, "node_modules/temp-dir": { @@ -49293,70 +49693,6 @@ "dev": true, "license": "MIT" }, - "node_modules/then-request": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz", - "integrity": "sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA==", - "license": "MIT", - "dependencies": { - "@types/concat-stream": "^1.6.0", - "@types/form-data": "0.0.33", - "@types/node": "^8.0.0", - "@types/qs": "^6.2.31", - "caseless": "~0.12.0", - "concat-stream": "^1.6.0", - "form-data": "^2.2.0", - "http-basic": "^8.1.1", - "http-response-object": "^3.0.1", - "promise": "^8.0.0", - "qs": "^6.4.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/then-request/node_modules/@types/node": { - "version": "8.10.66", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz", - "integrity": "sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==", - "license": "MIT" - }, - "node_modules/then-request/node_modules/form-data": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.3.tgz", - "integrity": "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/then-request/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", @@ -49409,6 +49745,7 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true, "license": "MIT" }, "node_modules/through2": { @@ -49494,7 +49831,6 @@ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", "license": "MIT", - "peer": true, "dependencies": { "fdir": "^6.4.4", "picomatch": "^4.0.2" @@ -49511,7 +49847,6 @@ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", "license": "MIT", - "peer": true, "peerDependencies": { "picomatch": "^3 || ^4" }, @@ -49526,7 +49861,6 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -49957,6 +50291,7 @@ "version": "10.9.2", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", @@ -50071,6 +50406,7 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, "license": "MIT" }, "node_modules/tsconfig": { @@ -50160,6 +50496,18 @@ "dev": true, "license": "0BSD" }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, "node_modules/turbo": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.13.4.tgz", @@ -50542,6 +50890,7 @@ "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true, "license": "MIT" }, "node_modules/typedarray-to-buffer": { @@ -50838,6 +51187,55 @@ "node": ">=0.8.0" } }, + "node_modules/uint8-varint": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.4.tgz", + "integrity": "sha512-FwpTa7ZGA/f/EssWAb5/YV6pHgVF1fViKdW8cWaEarjB8t7NyofSWBdOTyFPaGuUG4gx3v1O3PQ8etsiOs3lcw==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^5.0.0" + } + }, + "node_modules/uint8-varint/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/uint8-varint/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, + "node_modules/uint8arraylist": { + "version": "2.4.8", + "resolved": "https://registry.npmjs.org/uint8arraylist/-/uint8arraylist-2.4.8.tgz", + "integrity": "sha512-vc1PlGOzglLF0eae1M8mLRTBivsvrGsdmJ5RbK3e+QRvRLOZfZhQROTwH/OfyF3+ZVUg9/8hE8bmKP2CvP9quQ==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "uint8arrays": "^5.0.1" + } + }, + "node_modules/uint8arraylist/node_modules/multiformats": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.4.0.tgz", + "integrity": "sha512-Mkb/QcclrJxKC+vrcIFl297h52QcKh2Az/9A5vbWytbQt4225UWWWmIuSsKksdww9NkIeYcA7DkfftyLuC/JSg==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/uint8arraylist/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "multiformats": "^13.0.0" + } + }, "node_modules/uint8arrays": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.1.tgz", @@ -51365,9 +51763,9 @@ "license": "MIT" }, "node_modules/urlpattern-polyfill": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", - "integrity": "sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", + "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", "license": "MIT" }, "node_modules/use-async-effect": { @@ -51560,6 +51958,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, "license": "MIT" }, "node_modules/v8-to-istanbul": { @@ -52447,6 +52846,37 @@ "defaults": "^1.0.3" } }, + "node_modules/weald": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/weald/-/weald-1.0.6.tgz", + "integrity": "sha512-sX1PzkcMJZUJ848JbFzB6aKHHglTxqACEnq2KgI75b7vWYvfXFBNbOuDKqFKwCT44CrP6c5r+L4+5GmPnb5/SQ==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "ms": "^3.0.0-canary.1", + "supports-color": "^10.0.0" + } + }, + "node_modules/weald/node_modules/ms": { + "version": "3.0.0-canary.202508261828", + "resolved": "https://registry.npmjs.org/ms/-/ms-3.0.0-canary.202508261828.tgz", + "integrity": "sha512-NotsCoUCIUkojWCzQff4ttdCfIPoA1UGZsyQbi7KmqkNRfKCrvga8JJi2PknHymHOuor0cJSn/ylj52Cbt2IrQ==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/weald/node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/web-namespaces": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", @@ -52457,15 +52887,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/web-streams-polyfill": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", - "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, "node_modules/web3-core": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.5.2.tgz", @@ -52583,58 +53004,66 @@ "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", "license": "MIT" }, - "node_modules/web3-eth-abi": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.7.0.tgz", - "integrity": "sha512-heqR0bWxgCJwjWIhq2sGyNj9bwun5+Xox/LdZKe+WMyTSy0cXDXEAgv3XKNkXC4JqdDt/ZlbTEx4TWak4TRMSg==", + "node_modules/web3-errors": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/web3-errors/-/web3-errors-1.3.1.tgz", + "integrity": "sha512-w3NMJujH+ZSW4ltIZZKtdbkbyQEvBzyp3JRn59Ckli0Nz4VMsVq8aF1bLWM7A2kuQ+yVEm3ySeNU+7mSRwx7RQ==", "license": "LGPL-3.0", "dependencies": { - "@ethersproject/abi": "5.0.7", - "web3-utils": "1.7.0" + "web3-types": "^1.10.0" }, "engines": { - "node": ">=8.0.0" + "node": ">=14", + "npm": ">=6.12.0" } }, - "node_modules/web3-eth-abi/node_modules/@ethersproject/abi": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.0.7.tgz", - "integrity": "sha512-Cqktk+hSIckwP/W8O47Eef60VwmoSC/L3lY0+dIBhQPCNn9E4V7rwmm2aFrNRRDJfFlGuZ1khkQUOc3oBX+niw==", - "license": "MIT", + "node_modules/web3-eth-abi": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-4.4.1.tgz", + "integrity": "sha512-60ecEkF6kQ9zAfbTY04Nc9q4eEYM0++BySpGi8wZ2PD1tw/c0SDvsKhV6IKURxLJhsDlb08dATc3iD6IbtWJmg==", + "license": "LGPL-3.0", "dependencies": { - "@ethersproject/address": "^5.0.4", - "@ethersproject/bignumber": "^5.0.7", - "@ethersproject/bytes": "^5.0.4", - "@ethersproject/constants": "^5.0.4", - "@ethersproject/hash": "^5.0.4", - "@ethersproject/keccak256": "^5.0.3", - "@ethersproject/logger": "^5.0.5", - "@ethersproject/properties": "^5.0.3", - "@ethersproject/strings": "^5.0.4" + "abitype": "0.7.1", + "web3-errors": "^1.3.1", + "web3-types": "^1.10.0", + "web3-utils": "^4.3.3", + "web3-validator": "^2.0.6" + }, + "engines": { + "node": ">=14", + "npm": ">=6.12.0" } }, - "node_modules/web3-eth-abi/node_modules/bn.js": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", - "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", - "license": "MIT" + "node_modules/web3-eth-abi/node_modules/abitype": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.7.1.tgz", + "integrity": "sha512-VBkRHTDZf9Myaek/dO3yMmOzB/y2s3Zo6nVU7yaw1G+TvCHAjwaJzNGN9yo4K5D8bU/VZXKP1EJpRhFr862PlQ==", + "license": "MIT", + "peerDependencies": { + "typescript": ">=4.9.4", + "zod": "^3 >=3.19.1" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } + } }, "node_modules/web3-eth-abi/node_modules/web3-utils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.7.0.tgz", - "integrity": "sha512-O8Tl4Ky40Sp6pe89Olk2FsaUkgHyb5QAXuaKo38ms3CxZZ4d3rPGfjP9DNKGm5+IUgAZBNpF1VmlSmNCqfDI1w==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-4.3.3.tgz", + "integrity": "sha512-kZUeCwaQm+RNc2Bf1V3BYbF29lQQKz28L0y+FA4G0lS8IxtJVGi5SeDTUkpwqqkdHHC7JcapPDnyyzJ1lfWlOw==", "license": "LGPL-3.0", "dependencies": { - "bn.js": "^4.11.9", - "ethereum-bloom-filters": "^1.0.6", - "ethereumjs-util": "^7.1.0", - "ethjs-unit": "0.1.6", - "number-to-bn": "1.7.0", - "randombytes": "^2.1.0", - "utf8": "3.0.0" + "ethereum-cryptography": "^2.0.0", + "eventemitter3": "^5.0.1", + "web3-errors": "^1.3.1", + "web3-types": "^1.10.0", + "web3-validator": "^2.0.6" }, "engines": { - "node": ">=8.0.0" + "node": ">=14", + "npm": ">=6.12.0" } }, "node_modules/web3-eth-iban": { @@ -52702,6 +53131,16 @@ "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==", "license": "MIT" }, + "node_modules/web3-types": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/web3-types/-/web3-types-1.10.0.tgz", + "integrity": "sha512-0IXoaAFtFc8Yin7cCdQfB9ZmjafrbP6BO0f0KT/khMhXKUpoJ6yShrVhiNpyRBo8QQjuOagsWzwSK2H49I7sbw==", + "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + } + }, "node_modules/web3-utils": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.5.2.tgz", @@ -52726,17 +53165,21 @@ "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", "license": "MIT" }, - "node_modules/webcrypto-core": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.8.1.tgz", - "integrity": "sha512-P+x1MvlNCXlKbLSOY4cYrdreqPG5hbzkmawbcXLKN/mf6DZW0SdNNkZ+sjwsqVkI4A4Ko2sPZmkZtCKY58w83A==", - "license": "MIT", + "node_modules/web3-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/web3-validator/-/web3-validator-2.0.6.tgz", + "integrity": "sha512-qn9id0/l1bWmvH4XfnG/JtGKKwut2Vokl6YXP5Kfg424npysmtRLe9DgiNBM9Op7QL/aSiaA0TVXibuIuWcizg==", + "license": "LGPL-3.0", "dependencies": { - "@peculiar/asn1-schema": "^2.3.13", - "@peculiar/json-schema": "^1.1.12", - "asn1js": "^3.0.5", - "pvtsutils": "^1.3.5", - "tslib": "^2.7.0" + "ethereum-cryptography": "^2.0.0", + "util": "^0.12.5", + "web3-errors": "^1.2.0", + "web3-types": "^1.6.0", + "zod": "^3.21.4" + }, + "engines": { + "node": ">=14", + "npm": ">=6.12.0" } }, "node_modules/webidl-conversions": { @@ -53207,6 +53650,19 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/wherearewe": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wherearewe/-/wherearewe-2.0.1.tgz", + "integrity": "sha512-XUguZbDxCA2wBn2LoFtcEhXL6AXo+hVjGonwhSTTTU9SzbWG8Xu3onNIpzf9j/mYUcJQ0f+m37SzG77G851uFw==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "is-electron": "^2.2.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -53831,7 +54287,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -53849,7 +54304,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -54278,6 +54732,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -54296,6 +54751,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz", + "integrity": "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/yup": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/yup/-/yup-1.6.1.tgz", @@ -54895,10 +55362,11 @@ "version": "1.34.10", "license": "Apache-2.0", "dependencies": { - "@graphprotocol/graph-cli": "0.68.5", - "@graphprotocol/graph-ts": "0.33.0" + "@graphprotocol/graph-cli": "^0.97.1", + "@graphprotocol/graph-ts": "^0.38.1" }, "devDependencies": { + "@bosonprotocol/common": "^1.31.0-alpha.11", "assemblyscript": "0.19.23", "ethers": "^5.5.4", "handlebars": "^4.7.7", diff --git a/package.json b/package.json index 372f0c0fb..b8ec1b6b7 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,8 @@ }, "homepage": "https://github.com/bosonprotocol/core-components#readme", "devDependencies": { - "@graphprotocol/graph-cli": "0.68.5", - "@graphprotocol/graph-ts": "0.33.0", + "@graphprotocol/graph-cli": "^0.97.1", + "@graphprotocol/graph-ts": "^0.38.1", "@graphql-codegen/cli": "^5.0.2", "@graphql-codegen/typescript": "^4.0.6", "@graphql-codegen/typescript-graphql-request": "^6.2.0", diff --git a/packages/common/src/abis/DRFeeMutualizer.json b/packages/common/src/abis/DRFeeMutualizer.json new file mode 100644 index 000000000..4d447e6ec --- /dev/null +++ b/packages/common/src/abis/DRFeeMutualizer.json @@ -0,0 +1,832 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "_bosonProtocol", + "type": "address" + }, + { + "internalType": "address", + "name": "_forwarder", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AccessDenied", + "type": "error" + }, + { + "inputs": [], + "name": "AgreementAlreadyActive", + "type": "error" + }, + { + "inputs": [], + "name": "AgreementAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "AgreementAlreadyVoided", + "type": "error" + }, + { + "inputs": [], + "name": "AgreementIsVoided", + "type": "error" + }, + { + "inputs": [], + "name": "AgreementTimePeriodTooLong", + "type": "error" + }, + { + "inputs": [], + "name": "DepositsRestrictedToOwner", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientPoolBalance", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientValueReceived", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientValueReceived", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAgreementId", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAmount", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidExchangeId", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidProtocolAddress", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSellerId", + "type": "error" + }, + { + "inputs": [], + "name": "MaxAmountPerTxMustBeGreaterThanZero", + "type": "error" + }, + { + "inputs": [], + "name": "MaxTotalMustBeGreaterThanOrEqualToMaxPerTx", + "type": "error" + }, + { + "inputs": [], + "name": "NativeNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "NativeNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "OnlyProtocol", + "type": "error" + }, + { + "inputs": [], + "name": "TimePeriodMustBeGreaterThanZero", + "type": "error" + }, + { + "inputs": [], + "name": "TokenTransferFailed", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "agreementId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + } + ], + "name": "AgreementActivated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "agreementId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + } + ], + "name": "AgreementCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "agreementId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "premiumRefunded", + "type": "bool" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountRefunded", + "type": "uint256" + } + ], + "name": "AgreementVoided", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + } + ], + "name": "DRFeeProvided", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "originalFeeAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnedAmount", + "type": "uint256" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "FundsDeposited", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "FundsWithdrawn", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "depositRestrictedToOwner", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "feeInfoByExchange", + "outputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_agreementId", + "type": "uint256" + } + ], + "name": "getAgreement", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "maxAmountPerTx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxAmountTotal", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "premium", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "bool", + "name": "refundOnCancel", + "type": "bool" + }, + { + "internalType": "bool", + "name": "isVoided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "startTime", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalMutualized", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + } + ], + "internalType": "struct DRFeeMutualizer.Agreement", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + } + ], + "name": "getAgreementId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + } + ], + "name": "getPoolBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + } + ], + "name": "isSellerCovered", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "forwarder", + "type": "address" + } + ], + "name": "isTrustedForwarder", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_maxAmountPerTx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_maxAmountTotal", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_timePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_premium", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_refundOnCancel", + "type": "bool" + } + ], + "name": "newAgreement", + "outputs": [ + { + "internalType": "uint256", + "name": "agreementId", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_agreementId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + } + ], + "name": "payPremium", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "poolBalances", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_exchangeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + } + ], + "name": "requestDRFee", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_exchangeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_returnedFeeAmount", + "type": "uint256" + } + ], + "name": "returnDRFee", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "sellerToTokenToDisputeResolverToAgreement", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_restricted", + "type": "bool" + } + ], + "name": "setDepositRestriction", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_agreementId", + "type": "uint256" + } + ], + "name": "voidAgreement", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "_to", + "type": "address" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/packages/common/src/abis/IBosonAccountHandler.json b/packages/common/src/abis/IBosonAccountHandler.json index a8154fba3..d850e2d76 100644 --- a/packages/common/src/abis/IBosonAccountHandler.json +++ b/packages/common/src/abis/IBosonAccountHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", diff --git a/packages/common/src/abis/IBosonConfigHandler.json b/packages/common/src/abis/IBosonConfigHandler.json index 59120e803..bf59fb8d6 100644 --- a/packages/common/src/abis/IBosonConfigHandler.json +++ b/packages/common/src/abis/IBosonConfigHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", diff --git a/packages/common/src/abis/IBosonDisputeHandler.json b/packages/common/src/abis/IBosonDisputeHandler.json index ea895c4bd..0eda0517f 100644 --- a/packages/common/src/abis/IBosonDisputeHandler.json +++ b/packages/common/src/abis/IBosonDisputeHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -855,6 +916,80 @@ "name": "ZeroDepositNotAllowed", "type": "error" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1465,19 +1600,9 @@ "type": "uint256" }, { - "internalType": "bytes32", - "name": "_sigR", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "_sigS", - "type": "bytes32" - }, - { - "internalType": "uint8", - "name": "_sigV", - "type": "uint8" + "internalType": "bytes", + "name": "_signature", + "type": "bytes" } ], "name": "resolveDispute", diff --git a/packages/common/src/abis/IBosonExchangeCommitHandler.json b/packages/common/src/abis/IBosonExchangeCommitHandler.json new file mode 100644 index 000000000..364ee5d61 --- /dev/null +++ b/packages/common/src/abis/IBosonExchangeCommitHandler.json @@ -0,0 +1,2071 @@ +[ + { + "inputs": [], + "name": "AccessDenied", + "type": "error" + }, + { + "inputs": [], + "name": "AddressesAndCalldataLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "AdminOrAuthToken", + "type": "error" + }, + { + "inputs": [], + "name": "AgentAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "AgentFeeAmountTooHigh", + "type": "error" + }, + { + "inputs": [], + "name": "AlreadyInitialized", + "type": "error" + }, + { + "inputs": [], + "name": "AmbiguousVoucherExpiry", + "type": "error" + }, + { + "inputs": [], + "name": "AmountExceedsRangeOrNothingToBurn", + "type": "error" + }, + { + "inputs": [], + "name": "ArrayLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "AuthTokenMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "BundleForTwinExists", + "type": "error" + }, + { + "inputs": [], + "name": "BundleOfferMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "BundleRequiresAtLeastOneTwinAndOneOffer", + "type": "error" + }, + { + "inputs": [], + "name": "BundleTwinMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "BuyerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "CannotCommit", + "type": "error" + }, + { + "inputs": [], + "name": "CannotRemoveDefaultRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "ClerkDeprecated", + "type": "error" + }, + { + "inputs": [], + "name": "CloneCreationFailed", + "type": "error" + }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, + { + "inputs": [], + "name": "DRUnsupportedFee", + "type": "error" + }, + { + "inputs": [], + "name": "DirectInitializationNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeHasExpired", + "type": "error" + }, + { + "inputs": [], + "name": "DisputePeriodHasElapsed", + "type": "error" + }, + { + "inputs": [], + "name": "DisputePeriodNotElapsed", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeResolverAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeResolverFeeNotFound", + "type": "error" + }, + { + "inputs": [], + "name": "DisputeStillValid", + "type": "error" + }, + { + "inputs": [], + "name": "DuplicateDisputeResolverFees", + "type": "error" + }, + { + "inputs": [], + "name": "EscalationNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "ExchangeAlreadyExists", + "type": "error" + }, + { + "inputs": [], + "name": "ExchangeForOfferExists", + "type": "error" + }, + { + "inputs": [], + "name": "ExchangeIdInReservedRange", + "type": "error" + }, + { + "inputs": [], + "name": "ExchangeIsNotInAFinalState", + "type": "error" + }, + { + "inputs": [], + "name": "ExternalCallFailed", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "type": "error" + }, + { + "inputs": [], + "name": "FeeTableAssetNotSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FunctionNotAllowlisted", + "type": "error" + }, + { + "inputs": [], + "name": "GroupHasCondition", + "type": "error" + }, + { + "inputs": [], + "name": "GroupHasNoCondition", + "type": "error" + }, + { + "inputs": [], + "name": "IncomingVoucherAlreadySet", + "type": "error" + }, + { + "inputs": [], + "name": "InexistentAllowedSellersList", + "type": "error" + }, + { + "inputs": [], + "name": "InexistentDisputeResolverFees", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientAvailableFunds", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientTwinSupplyToCoverBundleOffers", + "type": "error" + }, + { + "inputs": [], + "name": "InsufficientValueReceived", + "type": "error" + }, + { + "inputs": [], + "name": "InteractionNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAddress", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAgentFeePercentage", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAmount", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAmountToMint", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidAuthTokenType", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidBuyerPercent", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidConditionParameters", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidConduitAddress", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidDisputePeriod", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidDisputeResolver", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidDisputeTimeout", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidEscalationPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidFeePercentage", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidFunctionName", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferPenalty", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidPriceDiscovery", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidPriceDiscoveryPrice", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidPriceType", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidQuantityAvailable", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRangeLength", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRangeStart", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRedemptionPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidResolutionPeriod", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRoyaltyFee", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRoyaltyInfo", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRoyaltyPercentage", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRoyaltyRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidRoyaltyRecipientId", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSignature", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidState", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSupplyAvailable", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTargeDisputeState", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTargeExchangeState", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidToAddress", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTokenAddress", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTokenId", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTwinProperty", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidTwinTokenRange", + "type": "error" + }, + { + "inputs": [], + "name": "MaxCommitsReached", + "type": "error" + }, + { + "inputs": [], + "name": "MustBeActive", + "type": "error" + }, + { + "inputs": [], + "name": "NativeNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "NativeWrongAddress", + "type": "error" + }, + { + "inputs": [], + "name": "NativeWrongAmount", + "type": "error" + }, + { + "inputs": [], + "name": "NegativePriceNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "NoPendingUpdateForAccount", + "type": "error" + }, + { + "inputs": [], + "name": "NoReservedRangeForOffer", + "type": "error" + }, + { + "inputs": [], + "name": "NoSilentMintAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchAgent", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchBundle", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchBuyer", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchCollection", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchDisputeResolver", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchExchange", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchGroup", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchOffer", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchSeller", + "type": "error" + }, + { + "inputs": [], + "name": "NoSuchTwin", + "type": "error" + }, + { + "inputs": [], + "name": "NoTransferApproved", + "type": "error" + }, + { + "inputs": [], + "name": "NoUpdateApplied", + "type": "error" + }, + { + "inputs": [], + "name": "NonAscendingOrder", + "type": "error" + }, + { + "inputs": [], + "name": "NonceUsedAlready", + "type": "error" + }, + { + "inputs": [], + "name": "NotAdmin", + "type": "error" + }, + { + "inputs": [], + "name": "NotAdminAndAssistant", + "type": "error" + }, + { + "inputs": [], + "name": "NotAgentWallet", + "type": "error" + }, + { + "inputs": [], + "name": "NotAssistant", + "type": "error" + }, + { + "inputs": [], + "name": "NotAuthorized", + "type": "error" + }, + { + "inputs": [], + "name": "NotBuyerOrSeller", + "type": "error" + }, + { + "inputs": [], + "name": "NotBuyerWallet", + "type": "error" + }, + { + "inputs": [], + "name": "NotDisputeResolverAssistant", + "type": "error" + }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, + { + "inputs": [], + "name": "NotPaused", + "type": "error" + }, + { + "inputs": [], + "name": "NotVoucherHolder", + "type": "error" + }, + { + "inputs": [], + "name": "NothingToWithdraw", + "type": "error" + }, + { + "inputs": [], + "name": "NothingUpdated", + "type": "error" + }, + { + "inputs": [], + "name": "OfferExpiredOrVoided", + "type": "error" + }, + { + "inputs": [], + "name": "OfferHasBeenVoided", + "type": "error" + }, + { + "inputs": [], + "name": "OfferHasExpired", + "type": "error" + }, + { + "inputs": [], + "name": "OfferMustBeActive", + "type": "error" + }, + { + "inputs": [], + "name": "OfferMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "OfferNotAvailable", + "type": "error" + }, + { + "inputs": [], + "name": "OfferNotInBundle", + "type": "error" + }, + { + "inputs": [], + "name": "OfferNotInGroup", + "type": "error" + }, + { + "inputs": [], + "name": "OfferRangeAlreadyReserved", + "type": "error" + }, + { + "inputs": [], + "name": "OfferSoldOut", + "type": "error" + }, + { + "inputs": [], + "name": "OfferStillValid", + "type": "error" + }, + { + "inputs": [], + "name": "PriceDoesNotCoverPenalty", + "type": "error" + }, + { + "inputs": [], + "name": "PriceMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ProtocolInitializationFailed", + "type": "error" + }, + { + "inputs": [], + "name": "RecipientNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "ReentrancyGuard", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "enum BosonTypes.PausableRegion", + "name": "region", + "type": "uint8" + } + ], + "name": "RegionPaused", + "type": "error" + }, + { + "inputs": [], + "name": "RoyaltyRecipientIdsNotSorted", + "type": "error" + }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignatureValidationFailed", + "type": "error" + }, + { + "inputs": [], + "name": "TokenAmountMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "TokenIdMandatory", + "type": "error" + }, + { + "inputs": [], + "name": "TokenIdMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "TokenIdNotInConditionRange", + "type": "error" + }, + { + "inputs": [], + "name": "TokenIdNotSet", + "type": "error" + }, + { + "inputs": [], + "name": "TokenTransferFailed", + "type": "error" + }, + { + "inputs": [], + "name": "TotalFeeExceedsLimit", + "type": "error" + }, + { + "inputs": [], + "name": "TwinNotInBundle", + "type": "error" + }, + { + "inputs": [], + "name": "TwinTransferUnsuccessful", + "type": "error" + }, + { + "inputs": [], + "name": "TwinsAlreadyExist", + "type": "error" + }, + { + "inputs": [], + "name": "UnauthorizedCallerUpdate", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, + { + "inputs": [], + "name": "UnexpectedERC721Received", + "type": "error" + }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, + { + "inputs": [], + "name": "UnsupportedToken", + "type": "error" + }, + { + "inputs": [], + "name": "ValueZeroNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "VersionMustBeSet", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherExtensionNotValid", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherHasExpired", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherNotReceived", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherNotRedeemable", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherNotTransferred", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherStillValid", + "type": "error" + }, + { + "inputs": [], + "name": "VoucherTransferNotAllowed", + "type": "error" + }, + { + "inputs": [], + "name": "WalletOwnsVouchers", + "type": "error" + }, + { + "inputs": [], + "name": "WrongCurrentVersion", + "type": "error" + }, + { + "inputs": [], + "name": "WrongDefaultRecipient", + "type": "error" + }, + { + "inputs": [], + "name": "ZeroDepositNotAllowed", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "finalizedDate", + "type": "uint256" + }, + { + "internalType": "enum BosonTypes.ExchangeState", + "name": "state", + "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Exchange", + "name": "exchange", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "committedDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntilDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "redeemedDate", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "expired", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Voucher", + "name": "voucher", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "BuyerCommitted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.SellerOfferParams", + "name": "sellerParams", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "BuyerInitiatedOfferSetSellerParams", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum BosonTypes.GatingType", + "name": "gating", + "type": "uint8" + }, + { + "indexed": true, + "internalType": "address", + "name": "buyerAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "commitCount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + } + ], + "name": "ConditionalCommitAuthorized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "ExchangeCompleted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "entityId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "FundsEncumbered", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "entityId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "FundsReleased", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "withdrawnTo", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "FundsWithdrawn", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "ProtocolFeeCollected", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "finalizedDate", + "type": "uint256" + }, + { + "internalType": "enum BosonTypes.ExchangeState", + "name": "state", + "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Exchange", + "name": "exchange", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "committedDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntilDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "redeemedDate", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "expired", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Voucher", + "name": "voucher", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "SellerCommitted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherCanceled", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherExpired", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherExtended", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherRedeemed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "newBuyerId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "VoucherTransferred", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_offerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.SellerOfferParams", + "name": "_sellerParams", + "type": "tuple" + } + ], + "name": "commitToBuyerOffer", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "_buyer", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "commitToConditionalOffer", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "_buyer", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_offerId", + "type": "uint256" + } + ], + "name": "commitToOffer", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerCancelPenalty", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantityAvailable", + "type": "uint256" + }, + { + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, + { + "internalType": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo[]", + "name": "royaltyInfo", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Offer", + "name": "offer", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "validFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableUntil", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDates", + "name": "offerDates", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherValid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resolutionPeriod", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDurations", + "name": "offerDurations", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "drParameters", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum BosonTypes.EvaluationMethod", + "name": "method", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.TokenType", + "name": "tokenType", + "type": "uint8" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "enum BosonTypes.GatingType", + "name": "gating", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "minTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "threshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxTokenId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Condition", + "name": "condition", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feeLimit", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "useDepositedFunds", + "type": "bool" + } + ], + "internalType": "struct BosonTypes.FullOffer", + "name": "_fullOffer", + "type": "tuple" + }, + { + "internalType": "address", + "name": "_offerCreator", + "type": "address" + }, + { + "internalType": "address payable", + "name": "_committer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_signature", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "_conditionalTokenId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.SellerOfferParams", + "name": "_sellerParams", + "type": "tuple" + } + ], + "name": "createOfferAndCommit", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_buyer", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "isEligibleToCommit", + "outputs": [ + { + "internalType": "bool", + "name": "isEligible", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "commitCount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "_to", + "type": "address" + }, + { + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "internalType": "address", + "name": "_rangeOwner", + "type": "address" + } + ], + "name": "onPremintedVoucherTransferred", + "outputs": [ + { + "internalType": "bool", + "name": "committed", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/packages/common/src/abis/IBosonExchangeHandler.json b/packages/common/src/abis/IBosonExchangeHandler.json index 5d2e9d16d..0d56027db 100644 --- a/packages/common/src/abis/IBosonExchangeHandler.json +++ b/packages/common/src/abis/IBosonExchangeHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -902,6 +963,11 @@ "internalType": "enum BosonTypes.ExchangeState", "name": "state", "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "indexed": false, @@ -947,6 +1013,66 @@ "name": "BuyerCommitted", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.SellerOfferParams", + "name": "sellerParams", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "BuyerInitiatedOfferSetSellerParams", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -990,6 +1116,80 @@ "name": "ConditionalCommitAuthorized", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1157,6 +1357,103 @@ "name": "ProtocolFeeCollected", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "finalizedDate", + "type": "uint256" + }, + { + "internalType": "enum BosonTypes.ExchangeState", + "name": "state", + "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Exchange", + "name": "exchange", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "committedDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntilDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "redeemedDate", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "expired", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Voucher", + "name": "voucher", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "SellerCommitted", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1536,47 +1833,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_buyer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_offerId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "commitToConditionalOffer", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_buyer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_offerId", - "type": "uint256" - } - ], - "name": "commitToOffer", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, { "inputs": [ { @@ -1704,6 +1960,11 @@ "internalType": "enum BosonTypes.ExchangeState", "name": "state", "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "internalType": "struct BosonTypes.Exchange", @@ -2004,45 +2265,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [ - { - "internalType": "address", - "name": "_buyer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_offerId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "isEligibleToCommit", - "outputs": [ - { - "internalType": "bool", - "name": "isEligible", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "commitCount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "maxCommits", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [ { @@ -2067,40 +2289,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_tokenId", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "_to", - "type": "address" - }, - { - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "internalType": "address", - "name": "_rangeOwner", - "type": "address" - } - ], - "name": "onPremintedVoucherTransferred", - "outputs": [ - { - "internalType": "bool", - "name": "committed", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { diff --git a/packages/common/src/abis/IBosonExchangeHandler240.json b/packages/common/src/abis/IBosonExchangeHandler240.json new file mode 100644 index 000000000..6ef17808b --- /dev/null +++ b/packages/common/src/abis/IBosonExchangeHandler240.json @@ -0,0 +1,94 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "finalizedDate", + "type": "uint256" + }, + { + "internalType": "enum BosonTypes.ExchangeState", + "name": "state", + "type": "uint8" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Exchange", + "name": "exchange", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "committedDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntilDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "redeemedDate", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "expired", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Voucher", + "name": "voucher", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "BuyerCommitted", + "type": "event" + } +] diff --git a/packages/common/src/abis/IBosonFundsHandler.json b/packages/common/src/abis/IBosonFundsHandler.json index 7cc68c0f3..26ee55c45 100644 --- a/packages/common/src/abis/IBosonFundsHandler.json +++ b/packages/common/src/abis/IBosonFundsHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -855,6 +916,80 @@ "name": "ZeroDepositNotAllowed", "type": "error" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1026,7 +1161,7 @@ "inputs": [ { "internalType": "uint256", - "name": "_sellerId", + "name": "_entityId", "type": "uint256" }, { diff --git a/packages/common/src/abis/IBosonGroupHandler.json b/packages/common/src/abis/IBosonGroupHandler.json index 588bb1b4a..e7a12070b 100644 --- a/packages/common/src/abis/IBosonGroupHandler.json +++ b/packages/common/src/abis/IBosonGroupHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", diff --git a/packages/common/src/abis/IBosonMetaTransactionsHandler.json b/packages/common/src/abis/IBosonMetaTransactionsHandler.json index e62b643fc..4ad3b3c31 100644 --- a/packages/common/src/abis/IBosonMetaTransactionsHandler.json +++ b/packages/common/src/abis/IBosonMetaTransactionsHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -934,19 +995,9 @@ "type": "uint256" }, { - "internalType": "bytes32", - "name": "_sigR", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "_sigS", - "type": "bytes32" - }, - { - "internalType": "uint8", - "name": "_sigV", - "type": "uint8" + "internalType": "bytes", + "name": "_signature", + "type": "bytes" } ], "name": "executeMetaTransaction", diff --git a/packages/common/src/abis/IBosonOfferHandler.json b/packages/common/src/abis/IBosonOfferHandler.json index 2c75d402a..63a0c3cb9 100644 --- a/packages/common/src/abis/IBosonOfferHandler.json +++ b/packages/common/src/abis/IBosonOfferHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -855,6 +916,31 @@ "name": "ZeroDepositNotAllowed", "type": "error" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "offerHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "offererId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "NonListedOfferVoided", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -912,6 +998,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -948,6 +1039,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "indexed": false, @@ -1027,6 +1123,11 @@ "internalType": "uint256", "name": "buyerEscalationDeposit", "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "indexed": false, @@ -1099,6 +1200,37 @@ "name": "OfferExtended", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "newMutualizer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferMutualizerUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1154,7 +1286,7 @@ { "indexed": true, "internalType": "uint256", - "name": "sellerId", + "name": "creatorId", "type": "uint256" }, { @@ -1254,6 +1386,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1290,6 +1427,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -1346,9 +1488,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "internalType": "uint256", @@ -1410,6 +1564,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1446,6 +1605,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer[]", @@ -1502,9 +1666,21 @@ "type": "tuple[]" }, { - "internalType": "uint256[]", - "name": "_disputeResolverIds", - "type": "uint256[]" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters[]", + "name": "_drParameters", + "type": "tuple[]" }, { "internalType": "uint256[]", @@ -1652,6 +1828,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1688,6 +1869,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -1764,6 +1950,11 @@ "internalType": "uint256", "name": "buyerEscalationDeposit", "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "internalType": "struct BosonTypes.DisputeResolutionTerms", @@ -1791,6 +1982,249 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerCancelPenalty", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantityAvailable", + "type": "uint256" + }, + { + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, + { + "internalType": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo[]", + "name": "royaltyInfo", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Offer", + "name": "offer", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "validFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableUntil", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDates", + "name": "offerDates", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherValid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resolutionPeriod", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDurations", + "name": "offerDurations", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "drParameters", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum BosonTypes.EvaluationMethod", + "name": "method", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.TokenType", + "name": "tokenType", + "type": "uint8" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "enum BosonTypes.GatingType", + "name": "gating", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "minTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "threshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxTokenId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Condition", + "name": "condition", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feeLimit", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "useDepositedFunds", + "type": "bool" + } + ], + "internalType": "struct BosonTypes.FullOffer", + "name": "_fullOffer", + "type": "tuple" + } + ], + "name": "getOfferHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "offerHash", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1838,6 +2272,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_offerId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_newMutualizer", + "type": "address" + } + ], + "name": "updateOfferMutualizer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -1898,6 +2350,480 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerCancelPenalty", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantityAvailable", + "type": "uint256" + }, + { + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, + { + "internalType": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo[]", + "name": "royaltyInfo", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Offer", + "name": "offer", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "validFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableUntil", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDates", + "name": "offerDates", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherValid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resolutionPeriod", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDurations", + "name": "offerDurations", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "drParameters", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum BosonTypes.EvaluationMethod", + "name": "method", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.TokenType", + "name": "tokenType", + "type": "uint8" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "enum BosonTypes.GatingType", + "name": "gating", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "minTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "threshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxTokenId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Condition", + "name": "condition", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feeLimit", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "useDepositedFunds", + "type": "bool" + } + ], + "internalType": "struct BosonTypes.FullOffer", + "name": "_fullOffer", + "type": "tuple" + } + ], + "name": "voidNonListedOffer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerCancelPenalty", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantityAvailable", + "type": "uint256" + }, + { + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, + { + "internalType": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo[]", + "name": "royaltyInfo", + "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Offer", + "name": "offer", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "validFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableUntil", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDates", + "name": "offerDates", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherValid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resolutionPeriod", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.OfferDurations", + "name": "offerDurations", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "drParameters", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum BosonTypes.EvaluationMethod", + "name": "method", + "type": "uint8" + }, + { + "internalType": "enum BosonTypes.TokenType", + "name": "tokenType", + "type": "uint8" + }, + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "enum BosonTypes.GatingType", + "name": "gating", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "minTokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "threshold", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxCommits", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxTokenId", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.Condition", + "name": "condition", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feeLimit", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "useDepositedFunds", + "type": "bool" + } + ], + "internalType": "struct BosonTypes.FullOffer[]", + "name": "_fullOffers", + "type": "tuple[]" + } + ], + "name": "voidNonListedOfferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/packages/common/src/abis/IBosonOfferHandler240.json b/packages/common/src/abis/IBosonOfferHandler240.json new file mode 100644 index 000000000..a02cec353 --- /dev/null +++ b/packages/common/src/abis/IBosonOfferHandler240.json @@ -0,0 +1,240 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellerDeposit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerCancelPenalty", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "quantityAvailable", + "type": "uint256" + }, + { + "internalType": "address", + "name": "exchangeToken", + "type": "address" + }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, + { + "internalType": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo[]", + "name": "royaltyInfo", + "type": "tuple[]" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Offer", + "name": "offer", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "validFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntil", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableFrom", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherRedeemableUntil", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.OfferDates", + "name": "offerDates", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "voucherValid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "resolutionPeriod", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.OfferDurations", + "name": "offerDurations", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "escalationResponsePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerEscalationDeposit", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.DisputeResolutionTerms", + "name": "disputeResolutionTerms", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "protocolFee", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "agentFee", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.OfferFees", + "name": "offerFees", + "type": "tuple" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "agentId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferVoided", + "type": "event" + } +] diff --git a/packages/common/src/abis/IBosonOrchestrationHandler.json b/packages/common/src/abis/IBosonOrchestrationHandler.json index 1eeefbbf0..21bce2d48 100644 --- a/packages/common/src/abis/IBosonOrchestrationHandler.json +++ b/packages/common/src/abis/IBosonOrchestrationHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -1710,6 +1771,31 @@ "name": "GroupUpdated", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "offerHash", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "offererId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "NonListedOfferVoided", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1767,6 +1853,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1803,6 +1894,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "indexed": false, @@ -1882,6 +1978,11 @@ "internalType": "uint256", "name": "buyerEscalationDeposit", "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "indexed": false, @@ -1954,6 +2055,37 @@ "name": "OfferExtended", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "newMutualizer", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferMutualizerUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -2009,7 +2141,7 @@ { "indexed": true, "internalType": "uint256", - "name": "sellerId", + "name": "creatorId", "type": "uint256" }, { @@ -2657,6 +2789,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2693,6 +2830,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -2749,9 +2891,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "internalType": "uint256", @@ -2818,6 +2972,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2854,6 +3013,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -2910,9 +3074,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -3016,6 +3192,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3052,6 +3233,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -3108,9 +3294,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -3219,6 +3417,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3255,6 +3458,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -3311,9 +3519,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -3464,6 +3684,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3500,6 +3725,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -3556,9 +3786,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -3642,6 +3884,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3678,6 +3925,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -3734,9 +3986,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -3857,6 +4121,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3893,6 +4162,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -3949,9 +4223,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -4077,6 +4363,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4113,6 +4404,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -4169,9 +4465,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -4381,6 +4689,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4417,6 +4730,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -4473,9 +4791,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -4618,6 +4948,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4654,6 +4989,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -4710,9 +5050,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -4897,6 +5249,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4933,6 +5290,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -4989,9 +5351,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -5181,6 +5555,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -5217,6 +5596,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -5273,9 +5657,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -5507,6 +5903,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -5543,6 +5944,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -5599,9 +6005,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -5761,6 +6179,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -5797,6 +6220,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -5853,9 +6281,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -6057,6 +6497,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -6093,6 +6538,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -6149,9 +6599,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ @@ -6358,6 +6820,11 @@ "name": "priceType", "type": "uint8" }, + { + "internalType": "enum BosonTypes.OfferCreator", + "name": "creator", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -6394,6 +6861,11 @@ "internalType": "struct BosonTypes.RoyaltyInfo[]", "name": "royaltyInfo", "type": "tuple[]" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" } ], "internalType": "struct BosonTypes.Offer", @@ -6450,9 +6922,21 @@ "type": "tuple" }, { - "internalType": "uint256", - "name": "_disputeResolverId", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "disputeResolverId", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "internalType": "struct BosonTypes.DRParameters", + "name": "_drParameters", + "type": "tuple" }, { "components": [ diff --git a/packages/common/src/abis/IBosonPriceDiscoveryHandler.json b/packages/common/src/abis/IBosonPriceDiscoveryHandler.json index 45f4fc3f0..92b1b9a89 100644 --- a/packages/common/src/abis/IBosonPriceDiscoveryHandler.json +++ b/packages/common/src/abis/IBosonPriceDiscoveryHandler.json @@ -94,6 +94,11 @@ "name": "CloneCreationFailed", "type": "error" }, + { + "inputs": [], + "name": "DRFeeMutualizerCannotProvideCoverage", + "type": "error" + }, { "inputs": [], "name": "DRUnsupportedFee", @@ -169,11 +174,6 @@ "name": "ExternalCallFailed", "type": "error" }, - { - "inputs": [], - "name": "FeeAmountNotYetSupported", - "type": "error" - }, { "inputs": [], "name": "FeeAmountTooHigh", @@ -259,11 +259,21 @@ "name": "InvalidAuthTokenType", "type": "error" }, + { + "inputs": [], + "name": "InvalidBuyerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidBuyerPercent", "type": "error" }, + { + "inputs": [], + "name": "InvalidCollectionIndex", + "type": "error" + }, { "inputs": [], "name": "InvalidConditionParameters", @@ -304,6 +314,16 @@ "name": "InvalidFunctionName", "type": "error" }, + { + "inputs": [], + "name": "InvalidOffer", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidOfferCreator", + "type": "error" + }, { "inputs": [], "name": "InvalidOfferPenalty", @@ -379,6 +399,11 @@ "name": "InvalidRoyaltyRecipientId", "type": "error" }, + { + "inputs": [], + "name": "InvalidSellerOfferFields", + "type": "error" + }, { "inputs": [], "name": "InvalidSignature", @@ -499,6 +524,11 @@ "name": "NoSuchDisputeResolver", "type": "error" }, + { + "inputs": [], + "name": "NoSuchEntity", + "type": "error" + }, { "inputs": [], "name": "NoSuchExchange", @@ -584,6 +614,11 @@ "name": "NotDisputeResolverAssistant", "type": "error" }, + { + "inputs": [], + "name": "NotOfferCreator", + "type": "error" + }, { "inputs": [], "name": "NotPaused", @@ -700,6 +735,11 @@ "name": "RoyaltyRecipientIdsNotSorted", "type": "error" }, + { + "inputs": [], + "name": "SameMutualizerAddress", + "type": "error" + }, { "inputs": [], "name": "SellerAddressMustBeUnique", @@ -715,6 +755,11 @@ "name": "SellerNotApproved", "type": "error" }, + { + "inputs": [], + "name": "SellerParametersNotAllowed", + "type": "error" + }, { "inputs": [], "name": "SellerSaltNotUnique", @@ -722,7 +767,7 @@ }, { "inputs": [], - "name": "SignerAndSignatureDoNotMatch", + "name": "SignatureValidationFailed", "type": "error" }, { @@ -780,11 +825,27 @@ "name": "UnauthorizedCallerUpdate", "type": "error" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "UnexpectedDataReturned", + "type": "error" + }, { "inputs": [], "name": "UnexpectedERC721Received", "type": "error" }, + { + "inputs": [], + "name": "UnsupportedMutualizer", + "type": "error" + }, { "inputs": [], "name": "UnsupportedToken", @@ -902,6 +963,11 @@ "internalType": "enum BosonTypes.ExchangeState", "name": "state", "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" } ], "indexed": false, @@ -947,6 +1013,66 @@ "name": "BuyerCommitted", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.SellerOfferParams", + "name": "sellerParams", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "BuyerInitiatedOfferSetSellerParams", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -990,6 +1116,80 @@ "name": "ConditionalCommitAuthorized", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeRequested", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "returnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "DRFeeReturned", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1157,6 +1357,103 @@ "name": "ProtocolFeeCollected", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "exchangeId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "finalizedDate", + "type": "uint256" + }, + { + "internalType": "enum BosonTypes.ExchangeState", + "name": "state", + "type": "uint8" + }, + { + "internalType": "address payable", + "name": "mutualizerAddress", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Exchange", + "name": "exchange", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "committedDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validUntilDate", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "redeemedDate", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "expired", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.Voucher", + "name": "voucher", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "SellerCommitted", + "type": "event" + }, { "anonymous": false, "inputs": [ diff --git a/packages/common/src/abis/IDRFeeMutualizer.json b/packages/common/src/abis/IDRFeeMutualizer.json new file mode 100644 index 000000000..db477a1ae --- /dev/null +++ b/packages/common/src/abis/IDRFeeMutualizer.json @@ -0,0 +1,112 @@ +[ + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + } + ], + "name": "isSellerCovered", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_exchangeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_disputeResolverId", + "type": "uint256" + } + ], + "name": "requestDRFee", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_exchangeId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeAmount", + "type": "uint256" + } + ], + "name": "returnDRFee", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } +] diff --git a/packages/common/src/abis/index.ts b/packages/common/src/abis/index.ts index 5c24490b7..e7a094cb5 100644 --- a/packages/common/src/abis/index.ts +++ b/packages/common/src/abis/index.ts @@ -1,6 +1,7 @@ /** auto-generated code: do not edit */ import BiconomyForwarderABI from "./BiconomyForwarder.json"; +import DRFeeMutualizerABI from "./DRFeeMutualizer.json"; import ERC1155ABI from "./ERC1155.json"; import ERC165ABI from "./ERC165.json"; import ERC20ABI from "./ERC20.json"; @@ -9,17 +10,21 @@ import IBosonAccountHandlerABI from "./IBosonAccountHandler.json"; import IBosonAccountHandlerLegacyABI from "./IBosonAccountHandlerLegacy.json"; import IBosonConfigHandlerABI from "./IBosonConfigHandler.json"; import IBosonDisputeHandlerABI from "./IBosonDisputeHandler.json"; +import IBosonExchangeCommitHandlerABI from "./IBosonExchangeCommitHandler.json"; import IBosonExchangeHandlerABI from "./IBosonExchangeHandler.json"; +import IBosonExchangeHandler240ABI from "./IBosonExchangeHandler240.json"; import IBosonFundsHandlerABI from "./IBosonFundsHandler.json"; import IBosonGroupHandlerABI from "./IBosonGroupHandler.json"; import IBosonGroupHandlerLegacyABI from "./IBosonGroupHandlerLegacy.json"; import IBosonMetaTransactionsHandlerABI from "./IBosonMetaTransactionsHandler.json"; import IBosonOfferHandlerABI from "./IBosonOfferHandler.json"; import IBosonOfferHandler230ABI from "./IBosonOfferHandler230.json"; +import IBosonOfferHandler240ABI from "./IBosonOfferHandler240.json"; import IBosonOfferHandlerLegacyABI from "./IBosonOfferHandlerLegacy.json"; import IBosonOrchestrationHandlerABI from "./IBosonOrchestrationHandler.json"; import IBosonPriceDiscoveryHandlerABI from "./IBosonPriceDiscoveryHandler.json"; import IBosonVoucherABI from "./IBosonVoucher.json"; +import IDRFeeMutualizerABI from "./IDRFeeMutualizer.json"; import MockForwarderABI from "./MockForwarder.json"; import NativeMetaTransactionABI from "./MockNativeMetaTransaction.json"; import OpenSeaWrapperABI from "./OpenSeaWrapper.json"; @@ -30,6 +35,7 @@ import SeaportInterfaceABI from "./SeaportInterface.json"; export { BiconomyForwarderABI, + DRFeeMutualizerABI, ERC1155ABI, ERC165ABI, ERC20ABI, @@ -38,17 +44,21 @@ export { IBosonAccountHandlerLegacyABI, IBosonConfigHandlerABI, IBosonDisputeHandlerABI, + IBosonExchangeCommitHandlerABI, IBosonExchangeHandlerABI, + IBosonExchangeHandler240ABI, IBosonFundsHandlerABI, IBosonGroupHandlerABI, IBosonGroupHandlerLegacyABI, IBosonMetaTransactionsHandlerABI, IBosonOfferHandlerABI, IBosonOfferHandler230ABI, + IBosonOfferHandler240ABI, IBosonOfferHandlerLegacyABI, IBosonOrchestrationHandlerABI, IBosonPriceDiscoveryHandlerABI, IBosonVoucherABI, + IDRFeeMutualizerABI, MockForwarderABI, NativeMetaTransactionABI, OpenSeaWrapperABI, diff --git a/packages/common/src/configs.ts b/packages/common/src/configs.ts index 546b2f289..86c08724e 100644 --- a/packages/common/src/configs.ts +++ b/packages/common/src/configs.ts @@ -33,12 +33,12 @@ export const envConfigs = { contracts: { protocolDiamond: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", priceDiscoveryClient: "0x8A791620dd6260079BF849Dc5567aDC3F2FdC318", - testErc20: "0x998abeb3E57409262aE5b751f60747921B33613E", // Foreign20 contract - testErc721: "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49", // Foreign721 contract - testErc1155: "0x4826533B4897376654Bb4d4AD88B7faFD0C98528", // Foreign1155 contract + testErc20: "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49", // Foreign20 contract + testErc721: "0x4826533B4897376654Bb4d4AD88B7faFD0C98528", // Foreign721 contract + testErc1155: "0x99bbA657f2BbC93c02D617f8bA121cB8Fc104Acf", // Foreign1155 contract forwarder: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", // MockForwarder contract - seaport: "0x0E801D84Fa97b50751Dbf25036d067dCf18858bF", // MockSeaport contract - openseaWrapper: "0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf" + seaport: "0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf", // MockSeaport contract + openseaWrapper: "0x9d4454B023096f34B160D6B654540c56A1F81688" }, metaTx: { relayerUrl: "http://localhost:8888", diff --git a/packages/common/src/mappings.ts b/packages/common/src/mappings.ts index c97c59614..7821d70b3 100644 --- a/packages/common/src/mappings.ts +++ b/packages/common/src/mappings.ts @@ -140,7 +140,7 @@ export const chainIdToDefaultTokens = new Map([ { symbol: "WETH", name: "testErc20", - address: "0x998abeb3E57409262aE5b751f60747921B33613E", + address: "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49", decimals: "18" } ] diff --git a/packages/common/src/types/enums.ts b/packages/common/src/types/enums.ts new file mode 100644 index 000000000..db537d1bc --- /dev/null +++ b/packages/common/src/types/enums.ts @@ -0,0 +1,6 @@ +export enum OfferCreator { + Seller = 0, + Buyer = 1 +} + +// TODO: move all enum types here diff --git a/packages/common/src/types/groups.ts b/packages/common/src/types/groups.ts index c2b830886..9f5849836 100644 --- a/packages/common/src/types/groups.ts +++ b/packages/common/src/types/groups.ts @@ -35,5 +35,6 @@ export type ConditionStruct = { }; export type CreateGroupArgs = ConditionStruct & { + sellerId: BigNumberish; offerIds: BigNumberish[]; }; diff --git a/packages/common/src/types/index.ts b/packages/common/src/types/index.ts index 9e404c236..aea770d59 100644 --- a/packages/common/src/types/index.ts +++ b/packages/common/src/types/index.ts @@ -5,6 +5,7 @@ export * from "./accounts"; export * from "./groups"; export * from "./vouchers"; export * from "./errors"; +export * from "./enums"; import { AnyMetadata as _AnyMetadata, diff --git a/packages/common/src/types/offers.ts b/packages/common/src/types/offers.ts index ed1764f54..e4c8d1d6f 100644 --- a/packages/common/src/types/offers.ts +++ b/packages/common/src/types/offers.ts @@ -1,4 +1,5 @@ import { BigNumberish } from "@ethersproject/bignumber"; +import { OfferCreator } from "./enums"; export enum PriceType { Static = 0, @@ -31,17 +32,21 @@ export type CreateOfferArgs = { feeLimit?: BigNumberish; priceType?: PriceType; royaltyInfo?: RoyaltyInfo[]; + creator?: OfferCreator; + mutualizerAddress?: string; }; export type OfferStruct = { id: BigNumberish; sellerId: BigNumberish; + buyerId: BigNumberish; + creator: OfferCreator; price: BigNumberish; sellerDeposit: BigNumberish; buyerCancelPenalty: BigNumberish; quantityAvailable: BigNumberish; exchangeToken: string; - priceType: number; + priceType: PriceType; metadataUri: string; metadataHash: string; voided: boolean; @@ -62,6 +67,11 @@ export type OfferDurationsStruct = { resolutionPeriod: BigNumberish; }; +export type DRParametersStruct = { + disputeResolverId: BigNumberish; + mutualizerAddress: string; +}; + export type DisputeResolutionTermsStruct = { disputeResolverId: BigNumberish; escalationResponsePeriod: BigNumberish; diff --git a/packages/common/tests/mocks.ts b/packages/common/tests/mocks.ts index 367db8a81..713a1cd75 100644 --- a/packages/common/tests/mocks.ts +++ b/packages/common/tests/mocks.ts @@ -13,7 +13,8 @@ import { OfferDurationsStruct, TransactionRequest, TransactionReceipt, - PriceType + PriceType, + OfferCreator } from "../src/types"; import { MetadataType } from "@bosonprotocol/metadata"; @@ -37,6 +38,8 @@ export function mockOfferStruct(overrides?: Partial): OfferStruct { metadataHash: IPFS_HASH, priceType: PriceType.Static, royaltyInfo: [{ recipients: [AddressZero], bps: [0] }], + buyerId: "0", + creator: OfferCreator.Seller, ...overrides }; } @@ -226,10 +229,12 @@ export class MockMetadataStorage implements MetadataStorage { }; } + // eslint-disable-next-line @typescript-eslint/no-unused-vars async getMetadata(metadataUri: string): Promise { return this._returnValues.getMetadata; } + // eslint-disable-next-line @typescript-eslint/no-unused-vars async storeMetadata(metadata: AnyMetadata): Promise { return this._returnValues.storeMetadata; } diff --git a/packages/core-sdk/src/disputes/handler.ts b/packages/core-sdk/src/disputes/handler.ts index 939913651..d722951e5 100644 --- a/packages/core-sdk/src/disputes/handler.ts +++ b/packages/core-sdk/src/disputes/handler.ts @@ -188,38 +188,71 @@ export async function expireDisputeBatch(args: { } // Overload: returnTxInfo is true → returns TransactionRequest -export async function resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - contractAddress: string; - web3Lib: Web3LibAdapter; - returnTxInfo: true; -}): Promise; +export async function resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo: true; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo: true; + } +): Promise; // Overload: returnTxInfo is false or undefined → returns TransactionResponse -export async function resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - contractAddress: string; - web3Lib: Web3LibAdapter; - returnTxInfo?: false | undefined; -}): Promise; +export async function resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo?: false | undefined; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo?: false | undefined; + } +): Promise; // Implementation -export async function resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - contractAddress: string; - web3Lib: Web3LibAdapter; - returnTxInfo?: boolean; -}): Promise { +export async function resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo?: boolean; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + contractAddress: string; + web3Lib: Web3LibAdapter; + returnTxInfo?: boolean; + } +): Promise { const transactionRequest = { to: args.contractAddress, data: encodeResolveDispute(args) diff --git a/packages/core-sdk/src/disputes/interface.ts b/packages/core-sdk/src/disputes/interface.ts index 85654d6ae..7379c6d2b 100644 --- a/packages/core-sdk/src/disputes/interface.ts +++ b/packages/core-sdk/src/disputes/interface.ts @@ -2,6 +2,7 @@ import { abis } from "@bosonprotocol/common"; import { Interface } from "@ethersproject/abi"; import { BigNumberish } from "@ethersproject/bignumber"; import { BytesLike } from "@ethersproject/bytes"; +import { rebuildSignature } from "../utils/signature"; export const bosonDisputeHandlerIface = new Interface( abis.IBosonDisputeHandlerABI @@ -63,19 +64,35 @@ export function encodeRefuseEscalatedDispute(exchangeId: BigNumberish) { ]); } -export function encodeResolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; -}) { +export function encodeResolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + } +) { + let signature: string; + if (!("signature" in args)) { + signature = rebuildSignature({ + r: args.sigR.toString(), + s: args.sigS.toString(), + v: Number(args.sigV) + }); + } else { + signature = args.signature; + } return bosonDisputeHandlerIface.encodeFunctionData("resolveDispute", [ args.exchangeId, args.buyerPercentBasisPoints, - args.sigR, - args.sigS, - args.sigV + signature ]); } diff --git a/packages/core-sdk/src/disputes/mixin.ts b/packages/core-sdk/src/disputes/mixin.ts index f49674a59..e30f29de0 100644 --- a/packages/core-sdk/src/disputes/mixin.ts +++ b/packages/core-sdk/src/disputes/mixin.ts @@ -254,40 +254,76 @@ export class DisputesMixin extends BaseCoreSDK { * - `args.sigV` - v signature value of counterparty. * @returns Transaction response. */ - public async resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - returnTxInfo: true; - }): Promise; - public async resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - returnTxInfo?: false | undefined; - }): Promise; - public async resolveDispute(args: { - exchangeId: BigNumberish; - buyerPercentBasisPoints: BigNumberish; - sigR: BytesLike; - sigS: BytesLike; - sigV: BigNumberish; - returnTxInfo?: boolean; - }): Promise { + public async resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + returnTxInfo: true; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + returnTxInfo: true; + } + ): Promise; + public async resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + returnTxInfo?: false | undefined; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + returnTxInfo?: false | undefined; + } + ): Promise; + public async resolveDispute( + args: + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + sigR: BytesLike; + sigS: BytesLike; + sigV: BigNumberish; + returnTxInfo?: boolean; + } + | { + exchangeId: BigNumberish; + buyerPercentBasisPoints: BigNumberish; + signature: string; + returnTxInfo?: boolean; + } + ): Promise { const { returnTxInfo } = args; - const resolveArgs = { - exchangeId: args.exchangeId, - buyerPercentBasisPoints: args.buyerPercentBasisPoints, - sigR: args.sigR, - sigS: args.sigS, - sigV: args.sigV, - contractAddress: this._protocolDiamond, - web3Lib: this._web3Lib - } as const satisfies Parameters[0]; + const resolveArgs = + "signature" in args + ? { + exchangeId: args.exchangeId, + buyerPercentBasisPoints: args.buyerPercentBasisPoints, + signature: args.signature, + contractAddress: this._protocolDiamond, + web3Lib: this._web3Lib + } + : ({ + exchangeId: args.exchangeId, + buyerPercentBasisPoints: args.buyerPercentBasisPoints, + sigR: args.sigR, + sigS: args.sigS, + sigV: args.sigV, + contractAddress: this._protocolDiamond, + web3Lib: this._web3Lib + } as const satisfies Parameters[0]); if (returnTxInfo === true) { return resolveDispute({ diff --git a/packages/core-sdk/src/exchanges/interface.ts b/packages/core-sdk/src/exchanges/interface.ts index 03d915c73..8e37f7bd7 100644 --- a/packages/core-sdk/src/exchanges/interface.ts +++ b/packages/core-sdk/src/exchanges/interface.ts @@ -6,8 +6,12 @@ export const bosonExchangeHandlerIface = new Interface( abis.IBosonExchangeHandlerABI ); +export const bosonExchangeCommitHandlerIface = new Interface( + abis.IBosonExchangeCommitHandlerABI +); + export function encodeCommitToOffer(buyer: string, offerId: BigNumberish) { - return bosonExchangeHandlerIface.encodeFunctionData("commitToOffer", [ + return bosonExchangeCommitHandlerIface.encodeFunctionData("commitToOffer", [ buyer, offerId ]); @@ -18,7 +22,7 @@ export function encodeCommitToConditionalOffer( offerId: BigNumberish, tokenId: BigNumberish ) { - return bosonExchangeHandlerIface.encodeFunctionData( + return bosonExchangeCommitHandlerIface.encodeFunctionData( "commitToConditionalOffer", [buyer, offerId, tokenId] ); diff --git a/packages/core-sdk/src/funds/handler.ts b/packages/core-sdk/src/funds/handler.ts index 8d3363aaf..f02b1c874 100644 --- a/packages/core-sdk/src/funds/handler.ts +++ b/packages/core-sdk/src/funds/handler.ts @@ -11,7 +11,7 @@ import { getFunds } from "./subgraph"; // Overload: returnTxInfo is true -> returns TransactionRequest export async function depositFunds(args: { - sellerId: BigNumberish; + entityId: BigNumberish; fundsTokenAddress?: string; fundsAmount: BigNumberish; contractAddress: string; @@ -21,7 +21,7 @@ export async function depositFunds(args: { // Overload: returnTxInfo is false or undefined -> returns TransactionResponse export async function depositFunds(args: { - sellerId: BigNumberish; + entityId: BigNumberish; fundsTokenAddress?: string; fundsAmount: BigNumberish; contractAddress: string; @@ -31,7 +31,7 @@ export async function depositFunds(args: { // Implementation export async function depositFunds(args: { - sellerId: BigNumberish; + entityId: BigNumberish; fundsTokenAddress?: string; fundsAmount: BigNumberish; contractAddress: string; @@ -49,7 +49,7 @@ export async function depositFunds(args: { const transactionRequest: TransactionRequest = { to: args.contractAddress, data: encodeDepositFunds( - args.sellerId, + args.entityId, fundsTokenAddress, args.fundsAmount ), diff --git a/packages/core-sdk/src/funds/interface.ts b/packages/core-sdk/src/funds/interface.ts index 3b8d807f8..678384ab3 100644 --- a/packages/core-sdk/src/funds/interface.ts +++ b/packages/core-sdk/src/funds/interface.ts @@ -5,12 +5,12 @@ import { BigNumberish } from "@ethersproject/bignumber"; export const bosonFundsHandlerIface = new Interface(abis.IBosonFundsHandlerABI); export function encodeDepositFunds( - sellerId: BigNumberish, + entityId: BigNumberish, tokenAddress: string, amount: BigNumberish ) { return bosonFundsHandlerIface.encodeFunctionData("depositFunds", [ - sellerId, + entityId, tokenAddress, amount ]); diff --git a/packages/core-sdk/src/funds/mixin.ts b/packages/core-sdk/src/funds/mixin.ts index bc18b823e..50dce87bd 100644 --- a/packages/core-sdk/src/funds/mixin.ts +++ b/packages/core-sdk/src/funds/mixin.ts @@ -21,8 +21,8 @@ export class FundsMixin extends BaseCoreSDK { /** * Deposit funds by calling the `FundsHandlerFacet` contract. - * This transaction only succeeds if there is an existing seller account for connected signer. - * @param sellerId - ID of seller account to deposit funds for. + * This transaction only succeeds if there is an existing entity account for connected signer. + * @param entityId - ID of the account to deposit funds for. * @param fundsAmount - Amount of funds. * @param fundsTokenAddress - Address of funds token. * @param overrides - Optional overrides. @@ -30,7 +30,7 @@ export class FundsMixin extends BaseCoreSDK { */ // Overload: returnTxInfo is true → returns TransactionRequest public async depositFunds( - sellerId: BigNumberish, + entityId: BigNumberish, fundsAmount: BigNumberish, fundsTokenAddress: string, overrides: Partial<{ @@ -42,7 +42,7 @@ export class FundsMixin extends BaseCoreSDK { // Overload: returnTxInfo is false or undefined → returns TransactionResponse public async depositFunds( - sellerId: BigNumberish, + entityId: BigNumberish, fundsAmount: BigNumberish, fundsTokenAddress?: string, overrides?: Partial<{ @@ -54,7 +54,7 @@ export class FundsMixin extends BaseCoreSDK { // Implementation public async depositFunds( - sellerId: BigNumberish, + entityId: BigNumberish, fundsAmount: BigNumberish, fundsTokenAddress: string = AddressZero, overrides: Partial<{ @@ -66,7 +66,7 @@ export class FundsMixin extends BaseCoreSDK { const { returnTxInfo } = overrides; const depositArgs = { - sellerId, + entityId, fundsAmount, fundsTokenAddress, web3Lib: this._web3Lib, diff --git a/packages/core-sdk/src/groups/interface.ts b/packages/core-sdk/src/groups/interface.ts index a77911635..af036aaf2 100644 --- a/packages/core-sdk/src/groups/interface.ts +++ b/packages/core-sdk/src/groups/interface.ts @@ -21,7 +21,7 @@ export function createGroupArgsToStructs( return [ { id: "0", - sellerId: "0", + sellerId: args.sellerId, offerIds: args.offerIds }, conditionArgsToStructs(args) diff --git a/packages/core-sdk/src/meta-tx/handler.ts b/packages/core-sdk/src/meta-tx/handler.ts index 74c683caa..a632ead0d 100644 --- a/packages/core-sdk/src/meta-tx/handler.ts +++ b/packages/core-sdk/src/meta-tx/handler.ts @@ -22,14 +22,20 @@ import { encodeOptInToSellerUpdate, encodeUpdateSeller } from "../accounts/interface"; -import { bosonExchangeHandlerIface } from "../exchanges/interface"; +import { + bosonExchangeCommitHandlerIface, + bosonExchangeHandlerIface +} from "../exchanges/interface"; import { bosonOfferHandlerIface, encodeCreateOffer, encodeCreateOfferBatch, encodeReserveRange } from "../offers/interface"; -import { prepareDataSignatureParameters } from "../utils/signature"; +import { + prepareDataSignatureParameters, + rebuildSignature +} from "../utils/signature"; import { Biconomy, ForwarderDomainData, @@ -476,7 +482,7 @@ export async function signMetaTxCreateOffer( return signMetaTx({ ...args, functionName: - "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,uint256)", + "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),uint256,uint256)", functionSignature: encodeCreateOffer(args.createOfferArgs) }); } @@ -508,7 +514,7 @@ export async function signMetaTxCreateOfferBatch( return signMetaTx({ ...args, functionName: - "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[])[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],uint256[],uint256[],uint256[])", + "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256)[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],(uint256,address)[],uint256[],uint256[])", functionSignature: encodeCreateOfferBatch(args.createOffersArgs) }); } @@ -813,7 +819,7 @@ export async function signMetaTxCreateOfferWithCondition( return signMetaTx({ ...args, functionName: - "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)", + "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)", functionSignature: encodeCreateOfferWithCondition( args.offerToCreate, args.condition @@ -871,7 +877,7 @@ export async function signMetaTxCommitToOffer( return { ...signatureParams, functionName, - functionSignature: bosonExchangeHandlerIface.encodeFunctionData( + functionSignature: bosonExchangeCommitHandlerIface.encodeFunctionData( "commitToOffer", [buyerAddress, args.offerId] ) @@ -931,7 +937,7 @@ export async function signMetaTxCommitToConditionalOffer( return { ...signatureParams, functionName, - functionSignature: bosonExchangeHandlerIface.encodeFunctionData( + functionSignature: bosonExchangeCommitHandlerIface.encodeFunctionData( "commitToConditionalOffer", [buyerAddress, args.offerId, args.tokenId] ) @@ -999,21 +1005,25 @@ export async function signMetaTxResolveDispute( args: BaseMetaTxArgs & { exchangeId: BigNumberish; buyerPercent: BigNumberish; - counterpartySig: { - r: string; - s: string; - v: number; - }; + counterpartySig: + | { + r: string; + s: string; + v: number; + } + | string; } ): Promise { - const functionName = "resolveDispute(uint256,uint256,bytes32,bytes32,uint8)"; + const functionName = "resolveDispute(uint256,uint256,bytes)"; + const counterpartySig = + typeof args.counterpartySig === "string" + ? args.counterpartySig + : rebuildSignature(args.counterpartySig); const disputeResolutionType = [ { name: "exchangeId", type: "uint256" }, { name: "buyerPercentBasisPoints", type: "uint256" }, - { name: "sigR", type: "bytes32" }, - { name: "sigS", type: "bytes32" }, - { name: "sigV", type: "uint8" } + { name: "signature", type: "bytes" } ]; const metaTransactionType = [ @@ -1037,9 +1047,7 @@ export async function signMetaTxResolveDispute( disputeResolutionDetails: { exchangeId: args.exchangeId.toString(), buyerPercentBasisPoints: args.buyerPercent.toString(), - sigR: args.counterpartySig.r, - sigS: args.counterpartySig.s, - sigV: args.counterpartySig.v + signature: counterpartySig } }; @@ -1058,13 +1066,7 @@ export async function signMetaTxResolveDispute( functionSignature: bosonDisputeHandlerIface.encodeFunctionData( // remove params in brackets from string functionName.replace(/\(([^)]*)\)[^(]*$/, ""), - [ - args.exchangeId, - args.buyerPercent, - args.counterpartySig.r, - args.counterpartySig.s, - args.counterpartySig.v - ] + [args.exchangeId, args.buyerPercent, counterpartySig] ) }; } @@ -1147,7 +1149,7 @@ export async function signMetaTxWithdrawFunds( export async function signMetaTxDepositFunds( args: BaseMetaTxArgs & { - sellerId: BigNumberish; + entityId: BigNumberish; fundsTokenAddress: string; fundsAmount: BigNumberish; } @@ -1166,7 +1168,7 @@ export async function signMetaTxDepositFunds( ...args, functionName: "depositFunds(uint256,address,uint256)", functionSignature: encodeDepositFunds( - args.sellerId, + args.entityId, args.fundsTokenAddress, args.fundsAmount ) @@ -1268,9 +1270,11 @@ export async function relayMetaTransaction(args: { metaTx.params.functionName, metaTx.params.functionSignature, metaTx.params.nonce, - metaTx.params.sigR, - metaTx.params.sigS, - metaTx.params.sigV + rebuildSignature({ + r: metaTx.params.sigR.toString(), + s: metaTx.params.sigS.toString(), + v: Number(metaTx.params.sigV) + }) ], from: metaTx.params.userAddress }); diff --git a/packages/core-sdk/src/offers/interface.ts b/packages/core-sdk/src/offers/interface.ts index d70a28e68..75a2ddf0d 100644 --- a/packages/core-sdk/src/offers/interface.ts +++ b/packages/core-sdk/src/offers/interface.ts @@ -5,12 +5,15 @@ import { OfferDatesStruct, OfferDurationsStruct, PriceType, - RoyaltyInfo + RoyaltyInfo, + OfferCreator, + DRParametersStruct } from "@bosonprotocol/common"; import { Interface } from "@ethersproject/abi"; import { getAddress } from "@ethersproject/address"; import { BigNumberish } from "@ethersproject/bignumber"; import { CreateOfferArgs } from "./types"; +import { AddressZero } from "@ethersproject/constants"; export const bosonOfferHandlerIface = new Interface(abis.IBosonOfferHandlerABI); @@ -46,7 +49,7 @@ export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { Partial, Partial, Partial, - BigNumberish, + Partial, BigNumberish, BigNumberish ][] = argsBatch.map((args) => createOfferArgsToStructs(args)); @@ -54,23 +57,32 @@ export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { offers, offerDates, offerDurations, - disputeResolverIds, + drParameters, agentIds, feeLimits ]: [ Partial[], Partial[], Partial[], - BigNumberish[], + Partial[], BigNumberish[], BigNumberish[] - ] = argsTuples.reduce( + ] = argsTuples.reduce< + [ + Partial[], + Partial[], + Partial[], + Partial[], + BigNumberish[], + BigNumberish[] + ] + >( (acc, tuple) => { const [ offer, offerDates, offerDurations, - disputeResolverId, + drParameters, agentId, feeLimit ] = tuple; @@ -78,7 +90,7 @@ export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { [...acc[0], offer], [...acc[1], offerDates], [...acc[2], offerDurations], - [...acc[3], disputeResolverId], + [...acc[3], drParameters], [...acc[4], agentId], [...acc[5], feeLimit] ]; @@ -90,7 +102,7 @@ export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { offers, offerDates, offerDurations, - disputeResolverIds, + drParameters, agentIds, feeLimits ]); @@ -102,7 +114,7 @@ export function createOfferArgsToStructs( Partial, Partial, Partial, - BigNumberish, + Partial, BigNumberish, BigNumberish ] { @@ -111,7 +123,7 @@ export function createOfferArgsToStructs( argsToOfferStruct(args), argsToOfferDatesStruct(args), argsToOfferDurationsStruct(args), - args.disputeResolverId, + argsToDRParametersStruct(args), args.agentId, feeLimit ]; @@ -122,6 +134,8 @@ export function argsToOfferStruct(args: CreateOfferArgs): Partial { const priceType = args.priceType !== undefined ? args.priceType : PriceType.Static; + const creator = + args.creator !== undefined ? args.creator : OfferCreator.Seller; const royaltyInfo = args.royaltyInfo !== undefined ? args.royaltyInfo @@ -135,6 +149,7 @@ export function argsToOfferStruct(args: CreateOfferArgs): Partial { return { id: "0", sellerId: "0", + buyerId: "0", ...restArgs, exchangeToken: getAddress(exchangeToken), priceType, @@ -145,7 +160,8 @@ export function argsToOfferStruct(args: CreateOfferArgs): Partial { getAddress(recipient) ) }; - }) + }), + creator }; } @@ -187,6 +203,15 @@ export function argsToOfferDurationsStruct( }; } +export function argsToDRParametersStruct( + args: CreateOfferArgs +): Partial { + return { + disputeResolverId: args.disputeResolverId, + mutualizerAddress: args.mutualizerAddress || AddressZero + }; +} + export function encodeReserveRange( offerId: BigNumberish, length: BigNumberish, diff --git a/packages/core-sdk/src/utils/signature.ts b/packages/core-sdk/src/utils/signature.ts index 901b63ea6..19c7a55f0 100644 --- a/packages/core-sdk/src/utils/signature.ts +++ b/packages/core-sdk/src/utils/signature.ts @@ -117,3 +117,27 @@ export function getSignatureParameters(signature: string): { signature }; } + +export function rebuildSignature({ + r, + s, + v +}: { + r: string; + s: string; + v: number; +}): string { + if (!isHexString(r) || !isHexString(s)) { + throw new Error("r and s must be valid hex strings"); + } + + // Remove '0x' prefix if present + const rValue = r.startsWith("0x") ? r.substring(2) : r; + const sValue = s.startsWith("0x") ? s.substring(2) : s; + + // Convert v to two digit hex, handle Ledger signature conversion + const vValue = v.toString(16).padStart(2, "0"); + + // Concatenate the signature parts + return "0x" + rValue + sValue + vValue; +} diff --git a/packages/core-sdk/tests/meta-tx/biconomy.test.ts b/packages/core-sdk/tests/meta-tx/biconomy.test.ts index 9a1dc3ccc..477b34780 100644 --- a/packages/core-sdk/tests/meta-tx/biconomy.test.ts +++ b/packages/core-sdk/tests/meta-tx/biconomy.test.ts @@ -39,12 +39,16 @@ describe("Biconomy handler", () => { expect(response.txHash).toEqual("txHash"); }); test("GET /api/v1/meta-tx/resubmitted should fail", async () => { - await expect( - new Biconomy(BICONOMY_URL + "xxx").getResubmitted({ + nock(BICONOMY_URL) + .persist() + .get("/api/v1/meta-tx/resubmitted?networkId=31337&transactionHash=txHash") + .replyWithError("something awful happened"); + await expect(() => + new Biconomy(BICONOMY_URL).getResubmitted({ networkId: 31337, transactionHash: "txHash" }) - ).rejects.toThrow(/reason: getaddrinfo ENOTFOUND/); + ).rejects.toThrow(/something awful happened/); }); test("POST /api/v2/meta-tx/native should not fail after 2 errors", async () => { nock(BICONOMY_URL) diff --git a/packages/core-sdk/tests/meta-tx/handler.test.ts b/packages/core-sdk/tests/meta-tx/handler.test.ts new file mode 100644 index 000000000..8501091aa --- /dev/null +++ b/packages/core-sdk/tests/meta-tx/handler.test.ts @@ -0,0 +1,183 @@ +import { MockWeb3LibAdapter } from "@bosonprotocol/common/tests/mocks"; +import { + getResubmitted, + signMetaTxPreMint, + signMetaTxResolveDispute, + signMetaTxSetApprovalForAll +} from "../../src/meta-tx/handler"; +import * as mockInterface from "../../src/forwarder/mock-interface"; +import nock from "nock"; + +jest.setTimeout(60_000); + +describe("meta-tx handler", () => { + describe("#signMetaTxResolveDispute()", () => { + const counterpartySignature = { + signature: + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a1b", + r: "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392", + s: "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a1b", + v: 27 + }; + const expectedSignedMetaTx = { + signature: + "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b", + r: "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd", + s: "0x72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a", + v: 27 + }; + test("call with string format signature", async () => { + const signedMetaTx = await signMetaTxResolveDispute({ + chainId: 31337, + metaTxHandlerAddress: "0x0000000000000000000000000000000000000000", + nonce: 1, + web3Lib: new MockWeb3LibAdapter({ + getSignerAddress: "0x0000000000000000000000000000000000000001", + send: expectedSignedMetaTx.signature + }), + exchangeId: 1, + buyerPercent: 10, + counterpartySig: counterpartySignature.signature + }); + expect(signedMetaTx.r).toEqual(expectedSignedMetaTx.r); + expect(signedMetaTx.s).toEqual(expectedSignedMetaTx.s); + expect(signedMetaTx.v).toEqual(expectedSignedMetaTx.v); + }); + test("call with {r,s,v} format signature", async () => { + const signedMetaTx = await signMetaTxResolveDispute({ + chainId: 31337, + metaTxHandlerAddress: "0x0000000000000000000000000000000000000000", + nonce: 1, + web3Lib: new MockWeb3LibAdapter({ + getSignerAddress: "0x0000000000000000000000000000000000000001", + send: expectedSignedMetaTx.signature + }), + exchangeId: 1, + buyerPercent: 10, + counterpartySig: { + r: counterpartySignature.r, + s: counterpartySignature.s, + v: counterpartySignature.v + } + }); + expect(signedMetaTx.r).toEqual(expectedSignedMetaTx.r); + expect(signedMetaTx.s).toEqual(expectedSignedMetaTx.s); + expect(signedMetaTx.v).toEqual(expectedSignedMetaTx.v); + }); + }); + describe("#signMetaTxPreMint()", () => { + const biconomyUrl = "https://api.biconomy.io"; + const expectedSignedMetaTx = { + signature: + "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b", + r: "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd", + s: "0x72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a", + v: 27 + }; + + test("call signMetaTxPreMint", async () => { + nock(biconomyUrl) + .get("/api/v2/meta-tx/systemInfo?networkId=1") + .reply(200, { + code: 200, + message: "OK", + forwarderDomainDetails: { + key1: { + verifyingContract: "0x0000000000000000000000000000000000000000", + name: "Biconomy Forwarder", + version: "1", + salt: "0x0000000000000000000000000000000000000000000000000000000000000001" + } + } + }); + + const signedMetaTx = await signMetaTxPreMint({ + chainId: 1, // do not use local chain to force use of Biconomy methods + bosonVoucherAddress: "0x0000000000000000000000000000000000000000", + web3Lib: new MockWeb3LibAdapter({ + getSignerAddress: "0x0000000000000000000000000000000000000001", + send: expectedSignedMetaTx.signature, + getChainId: 1, + call: "0x0000000000000000000000000000000000000000000000000000000000000042" // mock isTrustedForwarder call + }), + offerId: 1, + amount: 1, + relayerUrl: biconomyUrl, + forwarderAbi: mockInterface.abi + }); + expect(signedMetaTx.r).toEqual(expectedSignedMetaTx.r); + expect(signedMetaTx.s).toEqual(expectedSignedMetaTx.s); + expect(signedMetaTx.v).toEqual(expectedSignedMetaTx.v); + }); + }); + describe("#signMetaTxSetApprovalForAll()", () => { + const biconomyUrl = "https://api.biconomy.io"; + const expectedSignedMetaTx = { + signature: + "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b", + r: "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd", + s: "0x72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a", + v: 27 + }; + + test("call signMetaTxSetApprovalForAll()", async () => { + nock(biconomyUrl) + .get("/api/v2/meta-tx/systemInfo?networkId=1") + .reply(200, { + code: 200, + message: "OK", + forwarderDomainDetails: { + key1: { + verifyingContract: "0x0000000000000000000000000000000000000000", + name: "Biconomy Forwarder", + version: "1", + salt: "0x0000000000000000000000000000000000000000000000000000000000000001" + } + } + }); + + const signedMetaTx = await signMetaTxSetApprovalForAll({ + chainId: 1, // do not use local chain to force use of Biconomy methods + bosonVoucherAddress: "0x0000000000000000000000000000000000000000", + web3Lib: new MockWeb3LibAdapter({ + getSignerAddress: "0x0000000000000000000000000000000000000001", + send: expectedSignedMetaTx.signature, + getChainId: 1, + call: "0x0000000000000000000000000000000000000000000000000000000000000042" // mock isTrustedForwarder call + }), + operator: "0x0000000000000000000000000000000000000001", + approved: true, + relayerUrl: biconomyUrl, + forwarderAbi: mockInterface.abi + }); + expect(signedMetaTx.r).toEqual(expectedSignedMetaTx.r); + expect(signedMetaTx.s).toEqual(expectedSignedMetaTx.s); + expect(signedMetaTx.v).toEqual(expectedSignedMetaTx.v); + }); + }); + + test("getResubmitted", async () => { + const biconomyUrl = "https://api.biconomy.io"; + nock(biconomyUrl) + .get("/api/v1/meta-tx/resubmitted?networkId=1&transactionHash=0x1234") + .reply(200, { + code: 200, + message: "OK", + data: { + key1: "value1" + } + }); + const data = await getResubmitted({ + chainId: 1, + metaTx: { + config: { + relayerUrl: biconomyUrl, + apiId: "1234", + apiKey: "abcd" + }, + originalHash: "0x1234" + } + }); + expect(data).toEqual({ key1: "value1" }); + }); +}); diff --git a/packages/core-sdk/tests/offers/interface.test.ts b/packages/core-sdk/tests/offers/interface.test.ts index 5eacfe677..78f9f4d64 100644 --- a/packages/core-sdk/tests/offers/interface.test.ts +++ b/packages/core-sdk/tests/offers/interface.test.ts @@ -2,7 +2,7 @@ import { encodeCreateOffer, bosonOfferHandlerIface } from "../../src/offers/interface"; -import { PriceType, utils } from "@bosonprotocol/common"; +import { OfferCreator, PriceType, utils } from "@bosonprotocol/common"; import { mockCreateOfferArgs } from "@bosonprotocol/common/tests/mocks"; import { getAddress } from "@ethersproject/address"; import { AddressZero } from "@ethersproject/constants"; @@ -38,12 +38,14 @@ describe("#encodeCreateOffer()", () => { quantityAvailable, exchangeToken, priceType, + creator, metadataUri, metadataHash, voided, collectionIndex, - ...royaltyInfos - ] = decodedCalldata[0].toString().split(","); // Offer struct + [royaltyInfos], + buyerId + ] = decodedCalldata[0]; // Offer struct const [ validFrom, validUntil, @@ -53,24 +55,29 @@ describe("#encodeCreateOffer()", () => { const [disputePeriod, voucherValid, resolutionPeriod] = decodedCalldata[2] .toString() .split(","); // OfferDurations struct - const disputeResolverId = decodedCalldata[3].toString(); + const [disputeResolverId, mutualizerAddress] = decodedCalldata[3] + .toString() + .split(","); const agentId = decodedCalldata[4].toString(); expect(id).toBeTruthy(); expect(sellerId).toBeTruthy(); - expect(voided).toBeTruthy(); - expect(price).toBe(mockedCreateOfferArgs.price.toString()); - expect(sellerDeposit).toBe(mockedCreateOfferArgs.sellerDeposit.toString()); - expect(buyerCancelPenalty).toBe( + expect(voided).toEqual(false); + expect(price.toString()).toBe(mockedCreateOfferArgs.price.toString()); + expect(sellerDeposit.toString()).toBe( + mockedCreateOfferArgs.sellerDeposit.toString() + ); + expect(buyerCancelPenalty.toString()).toBe( mockedCreateOfferArgs.buyerCancelPenalty.toString() ); - expect(quantityAvailable).toBe( + expect(quantityAvailable.toString()).toBe( mockedCreateOfferArgs.quantityAvailable.toString() ); - expect(disputeResolverId).toBe( + expect(disputeResolverId.toString()).toBe( mockedCreateOfferArgs.disputeResolverId.toString() ); - expect(agentId).toBe(mockedCreateOfferArgs.agentId.toString()); + expect(mutualizerAddress).toBe(AddressZero); + expect(agentId.toString()).toBe(mockedCreateOfferArgs.agentId.toString()); expect(validFrom).toBe( utils.timestamp .msToSec(mockedCreateOfferArgs.validFromDateInMS) @@ -109,12 +116,14 @@ describe("#encodeCreateOffer()", () => { expect(exchangeToken).toBe(mockedCreateOfferArgs.exchangeToken); expect(metadataUri).toBe(mockedCreateOfferArgs.metadataUri); expect(metadataHash).toBe(mockedCreateOfferArgs.metadataHash); - expect(priceType).toBe(PriceType.Static.toString()); - expect(collectionIndex).toBe("0"); - expect(royaltyInfos.length).toBe(4); - expect(royaltyInfos[0]).toBe(royaltyRecipients[0]); - expect(royaltyInfos[1]).toBe(royaltyRecipients[1]); - expect(royaltyInfos[2]).toBe(royaltyBps[0].toString()); - expect(royaltyInfos[3]).toBe(royaltyBps[1].toString()); + expect(priceType).toBe(PriceType.Static); + expect(creator).toBe(OfferCreator.Seller); + expect(collectionIndex.toString()).toBe("0"); + expect(royaltyInfos.length).toBe(royaltyRecipients.length); + expect(royaltyInfos[0]).toEqual(royaltyRecipients); + expect(royaltyInfos[1].length).toEqual(royaltyBps.length); + expect(royaltyInfos[1][0].toString()).toBe(royaltyBps[0].toString()); + expect(royaltyInfos[1][1].toString()).toBe(royaltyBps[1].toString()); + expect(buyerId.toString()).toBe("0"); }); }); diff --git a/packages/core-sdk/tests/offers/offer-status.test.ts b/packages/core-sdk/tests/offers/offer-status.test.ts new file mode 100644 index 000000000..edb0986fc --- /dev/null +++ b/packages/core-sdk/tests/offers/offer-status.test.ts @@ -0,0 +1,33 @@ +import { getOfferStatus, OfferState } from "../../src/offers"; + +describe("offer-status", () => { + let validOffer; + let now; + beforeEach(() => { + now = Math.floor(Date.now() / 1000); + validOffer = { + voidedAt: null, + validFromDate: (now - 1).toString(), + validUntilDate: (now + 1).toString() + }; + }); + test("offer is valid", () => { + const offerStatus = getOfferStatus(validOffer); + expect(offerStatus).toBe(OfferState.VALID); + }); + test("offer is not yet valid", () => { + validOffer.validFromDate = (now + 1).toString(); + const offerStatus = getOfferStatus(validOffer); + expect(offerStatus).toBe(OfferState.NOT_YET_VALID); + }); + test("offer is expired", () => { + validOffer.validUntilDate = (now - 1).toString(); + const offerStatus = getOfferStatus(validOffer); + expect(offerStatus).toBe(OfferState.EXPIRED); + }); + test("offer is voided", () => { + validOffer.voidedAt = (now - 1).toString(); + const offerStatus = getOfferStatus(validOffer); + expect(offerStatus).toBe(OfferState.VOIDED); + }); +}); diff --git a/packages/core-sdk/tests/utils/signature.test.ts b/packages/core-sdk/tests/utils/signature.test.ts new file mode 100644 index 000000000..61b492e60 --- /dev/null +++ b/packages/core-sdk/tests/utils/signature.test.ts @@ -0,0 +1,91 @@ +import { + getSignatureParameters, + rebuildSignature +} from "../../src/utils/signature"; + +describe("signature utils", () => { + // minimal test to check that the function runs without error + test("getSignatureParameters()", () => { + const signature = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a1b"; + const { r, s, v, signature: sig } = getSignatureParameters(signature); + expect(r).toBe( + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392" + ); + expect(s).toBe( + "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a" + ); + expect(v).toBe(27); + expect(sig).toBe(signature); + }); + + test("getSignatureParameters() - support Ledger signature", () => { + const signature = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a01"; + const { r, s, v, signature: sig } = getSignatureParameters(signature); + expect(r).toBe( + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392" + ); + expect(s).toBe( + "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a" + ); + expect(v).toBe(28); + expect(sig).toBe(signature); + }); + + test("getSignatureParameters() errors - signature is not a valid hex string", () => { + const signature = + "0xzz93bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a1b"; + expect(() => getSignatureParameters(signature)).toThrow( + "not a valid hex string" + ); + }); + + test("getSignatureParameters() errors - v is not a number", () => { + const signature = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a"; + const { r, s, v, signature: sig } = getSignatureParameters(signature); + expect(r).toBe( + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392" + ); + expect(s).toBe( + "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a" + ); + expect(isNaN(v)).toBe(true); + expect(sig).toBe(signature); + }); + + test("rebuildSignature()", () => { + const r = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392"; + const s = + "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a"; + const v = 27; + const signature = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a1b"; + const sig = rebuildSignature({ r, s, v }); + expect(sig).toBe(signature); + }); + + test("rebuildSignature() errors - r is not a valid hex string", () => { + const r = + "0xz093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392"; + const s = + "0x024b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a"; + const v = 27; + expect(() => rebuildSignature({ r, s, v })).toThrow( + "r and s must be valid hex strings" + ); + }); + + test("rebuildSignature() errors - s is not a valid hex string", () => { + const r = + "0xd093bf19f8e5d7526953f63b7721628b95820e94cf42298f97cd4502b61ff392"; + const s = + "0xz24b4030ee7db3f74690e721289b287583d72ccd8ad297e69c822eb4f1f87c2a"; + const v = 27; + expect(() => rebuildSignature({ r, s, v })).toThrow( + "r and s must be valid hex strings" + ); + }); +}); diff --git a/packages/ethers-sdk/src/contracts/DRFeeMutualizer.ts b/packages/ethers-sdk/src/contracts/DRFeeMutualizer.ts new file mode 100644 index 000000000..e2ce27cde --- /dev/null +++ b/packages/ethers-sdk/src/contracts/DRFeeMutualizer.ts @@ -0,0 +1,1058 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace DRFeeMutualizer { + export type AgreementStruct = { + maxAmountPerTx: BigNumberish; + maxAmountTotal: BigNumberish; + timePeriod: BigNumberish; + premium: BigNumberish; + tokenAddress: string; + refundOnCancel: boolean; + isVoided: boolean; + startTime: BigNumberish; + totalMutualized: BigNumberish; + sellerId: BigNumberish; + }; + + export type AgreementStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + boolean, + boolean, + BigNumber, + BigNumber, + BigNumber + ] & { + maxAmountPerTx: BigNumber; + maxAmountTotal: BigNumber; + timePeriod: BigNumber; + premium: BigNumber; + tokenAddress: string; + refundOnCancel: boolean; + isVoided: boolean; + startTime: BigNumber; + totalMutualized: BigNumber; + sellerId: BigNumber; + }; +} + +export interface DRFeeMutualizerInterface extends utils.Interface { + contractName: "DRFeeMutualizer"; + functions: { + "deposit(address,uint256)": FunctionFragment; + "depositRestrictedToOwner()": FunctionFragment; + "feeInfoByExchange(uint256)": FunctionFragment; + "getAgreement(uint256)": FunctionFragment; + "getAgreementId(uint256,address,uint256)": FunctionFragment; + "getPoolBalance(address)": FunctionFragment; + "isSellerCovered(uint256,uint256,address,uint256)": FunctionFragment; + "isTrustedForwarder(address)": FunctionFragment; + "newAgreement(uint256,address,uint256,uint256,uint256,uint256,uint256,bool)": FunctionFragment; + "owner()": FunctionFragment; + "payPremium(uint256,uint256)": FunctionFragment; + "poolBalances(address)": FunctionFragment; + "renounceOwnership()": FunctionFragment; + "requestDRFee(uint256,uint256,address,uint256,uint256)": FunctionFragment; + "returnDRFee(uint256,uint256)": FunctionFragment; + "sellerToTokenToDisputeResolverToAgreement(uint256,address,uint256)": FunctionFragment; + "setDepositRestriction(bool)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + "transferOwnership(address)": FunctionFragment; + "voidAgreement(uint256)": FunctionFragment; + "withdraw(address,uint256,address)": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "deposit", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "depositRestrictedToOwner", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "feeInfoByExchange", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getAgreement", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getAgreementId", + values: [BigNumberish, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getPoolBalance", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "isSellerCovered", + values: [BigNumberish, BigNumberish, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "isTrustedForwarder", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "newAgreement", + values: [ + BigNumberish, + string, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + boolean + ] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "payPremium", + values: [BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "poolBalances", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "renounceOwnership", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "requestDRFee", + values: [BigNumberish, BigNumberish, string, BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "returnDRFee", + values: [BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "sellerToTokenToDisputeResolverToAgreement", + values: [BigNumberish, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setDepositRestriction", + values: [boolean] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "transferOwnership", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "voidAgreement", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "withdraw", + values: [string, BigNumberish, string] + ): string; + + decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "depositRestrictedToOwner", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "feeInfoByExchange", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getAgreement", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getAgreementId", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getPoolBalance", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isSellerCovered", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isTrustedForwarder", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "newAgreement", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "payPremium", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "poolBalances", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "renounceOwnership", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "requestDRFee", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "returnDRFee", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "sellerToTokenToDisputeResolverToAgreement", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setDepositRestriction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferOwnership", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "voidAgreement", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; + + events: { + "AgreementActivated(uint256,uint256)": EventFragment; + "AgreementCreated(uint256,uint256,address,uint256)": EventFragment; + "AgreementVoided(uint256,bool,uint256)": EventFragment; + "DRFeeProvided(uint256,uint256,uint256)": EventFragment; + "DRFeeReturned(uint256,uint256,uint256)": EventFragment; + "FundsDeposited(address,address,uint256)": EventFragment; + "FundsWithdrawn(address,address,uint256)": EventFragment; + "OwnershipTransferred(address,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AgreementActivated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "AgreementCreated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "AgreementVoided"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeProvided"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsDeposited"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsWithdrawn"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; +} + +export type AgreementActivatedEvent = TypedEvent< + [BigNumber, BigNumber], + { agreementId: BigNumber; sellerId: BigNumber } +>; + +export type AgreementActivatedEventFilter = + TypedEventFilter; + +export type AgreementCreatedEvent = TypedEvent< + [BigNumber, BigNumber, string, BigNumber], + { + agreementId: BigNumber; + sellerId: BigNumber; + tokenAddress: string; + disputeResolverId: BigNumber; + } +>; + +export type AgreementCreatedEventFilter = + TypedEventFilter; + +export type AgreementVoidedEvent = TypedEvent< + [BigNumber, boolean, BigNumber], + { + agreementId: BigNumber; + premiumRefunded: boolean; + amountRefunded: BigNumber; + } +>; + +export type AgreementVoidedEventFilter = TypedEventFilter; + +export type DRFeeProvidedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber], + { exchangeId: BigNumber; sellerId: BigNumber; feeAmount: BigNumber } +>; + +export type DRFeeProvidedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber], + { + exchangeId: BigNumber; + originalFeeAmount: BigNumber; + returnedAmount: BigNumber; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + +export type FundsDepositedEvent = TypedEvent< + [string, string, BigNumber], + { depositor: string; tokenAddress: string; amount: BigNumber } +>; + +export type FundsDepositedEventFilter = TypedEventFilter; + +export type FundsWithdrawnEvent = TypedEvent< + [string, string, BigNumber], + { to: string; tokenAddress: string; amount: BigNumber } +>; + +export type FundsWithdrawnEventFilter = TypedEventFilter; + +export type OwnershipTransferredEvent = TypedEvent< + [string, string], + { previousOwner: string; newOwner: string } +>; + +export type OwnershipTransferredEventFilter = + TypedEventFilter; + +export interface DRFeeMutualizer extends BaseContract { + contractName: "DRFeeMutualizer"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: DRFeeMutualizerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + deposit( + _tokenAddress: string, + _amount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + depositRestrictedToOwner(overrides?: CallOverrides): Promise<[boolean]>; + + feeInfoByExchange( + arg0: BigNumberish, + overrides?: CallOverrides + ): Promise<[string, BigNumber] & { token: string; amount: BigNumber }>; + + getAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise<[DRFeeMutualizer.AgreementStructOutput]>; + + getAgreementId( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + getPoolBalance( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise<[BigNumber] & { balance: BigNumber }>; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean]>; + + isTrustedForwarder( + forwarder: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + newAgreement( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + _maxAmountPerTx: BigNumberish, + _maxAmountTotal: BigNumberish, + _timePeriod: BigNumberish, + _premium: BigNumberish, + _refundOnCancel: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + owner(overrides?: CallOverrides): Promise<[string]>; + + payPremium( + _agreementId: BigNumberish, + _sellerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + poolBalances(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _returnedFeeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + sellerToTokenToDisputeResolverToAgreement( + arg0: BigNumberish, + arg1: string, + arg2: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + setDepositRestriction( + _restricted: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidAgreement( + _agreementId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + withdraw( + _tokenAddress: string, + _amount: BigNumberish, + _to: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + deposit( + _tokenAddress: string, + _amount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + depositRestrictedToOwner(overrides?: CallOverrides): Promise; + + feeInfoByExchange( + arg0: BigNumberish, + overrides?: CallOverrides + ): Promise<[string, BigNumber] & { token: string; amount: BigNumber }>; + + getAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreementId( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getPoolBalance( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isTrustedForwarder( + forwarder: string, + overrides?: CallOverrides + ): Promise; + + newAgreement( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + _maxAmountPerTx: BigNumberish, + _maxAmountTotal: BigNumberish, + _timePeriod: BigNumberish, + _premium: BigNumberish, + _refundOnCancel: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + owner(overrides?: CallOverrides): Promise; + + payPremium( + _agreementId: BigNumberish, + _sellerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + poolBalances(arg0: string, overrides?: CallOverrides): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _returnedFeeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + sellerToTokenToDisputeResolverToAgreement( + arg0: BigNumberish, + arg1: string, + arg2: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setDepositRestriction( + _restricted: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidAgreement( + _agreementId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + withdraw( + _tokenAddress: string, + _amount: BigNumberish, + _to: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + deposit( + _tokenAddress: string, + _amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + depositRestrictedToOwner(overrides?: CallOverrides): Promise; + + feeInfoByExchange( + arg0: BigNumberish, + overrides?: CallOverrides + ): Promise<[string, BigNumber] & { token: string; amount: BigNumber }>; + + getAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreementId( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getPoolBalance( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isTrustedForwarder( + forwarder: string, + overrides?: CallOverrides + ): Promise; + + newAgreement( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + _maxAmountPerTx: BigNumberish, + _maxAmountTotal: BigNumberish, + _timePeriod: BigNumberish, + _premium: BigNumberish, + _refundOnCancel: boolean, + overrides?: CallOverrides + ): Promise; + + owner(overrides?: CallOverrides): Promise; + + payPremium( + _agreementId: BigNumberish, + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + poolBalances(arg0: string, overrides?: CallOverrides): Promise; + + renounceOwnership(overrides?: CallOverrides): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _returnedFeeAmount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + sellerToTokenToDisputeResolverToAgreement( + arg0: BigNumberish, + arg1: string, + arg2: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setDepositRestriction( + _restricted: boolean, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: CallOverrides + ): Promise; + + voidAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + withdraw( + _tokenAddress: string, + _amount: BigNumberish, + _to: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AgreementActivated(uint256,uint256)"( + agreementId?: BigNumberish | null, + sellerId?: BigNumberish | null + ): AgreementActivatedEventFilter; + AgreementActivated( + agreementId?: BigNumberish | null, + sellerId?: BigNumberish | null + ): AgreementActivatedEventFilter; + + "AgreementCreated(uint256,uint256,address,uint256)"( + agreementId?: null, + sellerId?: BigNumberish | null, + tokenAddress?: string | null, + disputeResolverId?: BigNumberish | null + ): AgreementCreatedEventFilter; + AgreementCreated( + agreementId?: null, + sellerId?: BigNumberish | null, + tokenAddress?: string | null, + disputeResolverId?: BigNumberish | null + ): AgreementCreatedEventFilter; + + "AgreementVoided(uint256,bool,uint256)"( + agreementId?: BigNumberish | null, + premiumRefunded?: null, + amountRefunded?: null + ): AgreementVoidedEventFilter; + AgreementVoided( + agreementId?: BigNumberish | null, + premiumRefunded?: null, + amountRefunded?: null + ): AgreementVoidedEventFilter; + + "DRFeeProvided(uint256,uint256,uint256)"( + exchangeId?: BigNumberish | null, + sellerId?: BigNumberish | null, + feeAmount?: null + ): DRFeeProvidedEventFilter; + DRFeeProvided( + exchangeId?: BigNumberish | null, + sellerId?: BigNumberish | null, + feeAmount?: null + ): DRFeeProvidedEventFilter; + + "DRFeeReturned(uint256,uint256,uint256)"( + exchangeId?: BigNumberish | null, + originalFeeAmount?: null, + returnedAmount?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + originalFeeAmount?: null, + returnedAmount?: null + ): DRFeeReturnedEventFilter; + + "FundsDeposited(address,address,uint256)"( + depositor?: string | null, + tokenAddress?: string | null, + amount?: null + ): FundsDepositedEventFilter; + FundsDeposited( + depositor?: string | null, + tokenAddress?: string | null, + amount?: null + ): FundsDepositedEventFilter; + + "FundsWithdrawn(address,address,uint256)"( + to?: string | null, + tokenAddress?: string | null, + amount?: null + ): FundsWithdrawnEventFilter; + FundsWithdrawn( + to?: string | null, + tokenAddress?: string | null, + amount?: null + ): FundsWithdrawnEventFilter; + + "OwnershipTransferred(address,address)"( + previousOwner?: string | null, + newOwner?: string | null + ): OwnershipTransferredEventFilter; + OwnershipTransferred( + previousOwner?: string | null, + newOwner?: string | null + ): OwnershipTransferredEventFilter; + }; + + estimateGas: { + deposit( + _tokenAddress: string, + _amount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + depositRestrictedToOwner(overrides?: CallOverrides): Promise; + + feeInfoByExchange( + arg0: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreementId( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getPoolBalance( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isTrustedForwarder( + forwarder: string, + overrides?: CallOverrides + ): Promise; + + newAgreement( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + _maxAmountPerTx: BigNumberish, + _maxAmountTotal: BigNumberish, + _timePeriod: BigNumberish, + _premium: BigNumberish, + _refundOnCancel: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + owner(overrides?: CallOverrides): Promise; + + payPremium( + _agreementId: BigNumberish, + _sellerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + poolBalances(arg0: string, overrides?: CallOverrides): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _returnedFeeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + sellerToTokenToDisputeResolverToAgreement( + arg0: BigNumberish, + arg1: string, + arg2: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setDepositRestriction( + _restricted: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidAgreement( + _agreementId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + withdraw( + _tokenAddress: string, + _amount: BigNumberish, + _to: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + deposit( + _tokenAddress: string, + _amount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + depositRestrictedToOwner( + overrides?: CallOverrides + ): Promise; + + feeInfoByExchange( + arg0: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreement( + _agreementId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getAgreementId( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getPoolBalance( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isTrustedForwarder( + forwarder: string, + overrides?: CallOverrides + ): Promise; + + newAgreement( + _sellerId: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + _maxAmountPerTx: BigNumberish, + _maxAmountTotal: BigNumberish, + _timePeriod: BigNumberish, + _premium: BigNumberish, + _refundOnCancel: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + owner(overrides?: CallOverrides): Promise; + + payPremium( + _agreementId: BigNumberish, + _sellerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + poolBalances( + arg0: string, + overrides?: CallOverrides + ): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _returnedFeeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + sellerToTokenToDisputeResolverToAgreement( + arg0: BigNumberish, + arg1: string, + arg2: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setDepositRestriction( + _restricted: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidAgreement( + _agreementId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + withdraw( + _tokenAddress: string, + _amount: BigNumberish, + _to: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts b/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts index 6f79fbef9..47b0e422c 100644 --- a/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts @@ -147,13 +147,6 @@ export declare namespace BosonTypes { collectionSalt: string; }; - export type RoyaltyRecipientStruct = { id: BigNumberish; wallet: string }; - - export type RoyaltyRecipientStructOutput = [BigNumber, string] & { - id: BigNumber; - wallet: string; - }; - export type CollectionStruct = { collectionAddress: string; externalId: string; @@ -901,8 +894,8 @@ export interface IBosonAccountHandler extends BaseContract { _sellerId: BigNumberish, overrides?: CallOverrides ): Promise< - [BosonTypes.RoyaltyRecipientStructOutput[]] & { - royaltyRecipients: BosonTypes.RoyaltyRecipientStructOutput[]; + [BosonTypes.RoyaltyRecipientInfoStructOutput[]] & { + royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStructOutput[]; } >; @@ -1170,7 +1163,7 @@ export interface IBosonAccountHandler extends BaseContract { getRoyaltyRecipients( _sellerId: BigNumberish, overrides?: CallOverrides - ): Promise; + ): Promise; getSeller( _sellerId: BigNumberish, @@ -1436,7 +1429,7 @@ export interface IBosonAccountHandler extends BaseContract { getRoyaltyRecipients( _sellerId: BigNumberish, overrides?: CallOverrides - ): Promise; + ): Promise; getSeller( _sellerId: BigNumberish, diff --git a/packages/ethers-sdk/src/contracts/IBosonConfigHandler.ts b/packages/ethers-sdk/src/contracts/IBosonConfigHandler.ts new file mode 100644 index 000000000..09d4bfad5 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonConfigHandler.ts @@ -0,0 +1,1516 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export interface IBosonConfigHandlerInterface extends utils.Interface { + contractName: "IBosonConfigHandler"; + functions: { + "getAccessControllerAddress()": FunctionFragment; + "getAuthTokenContract(uint8)": FunctionFragment; + "getBeaconProxyAddress()": FunctionFragment; + "getBuyerEscalationDepositPercentage()": FunctionFragment; + "getMaxEscalationResponsePeriod()": FunctionFragment; + "getMaxResolutionPeriod()": FunctionFragment; + "getMaxRoyaltyPercentage()": FunctionFragment; + "getMaxTotalOfferFeePercentage()": FunctionFragment; + "getMinDisputePeriod()": FunctionFragment; + "getMinResolutionPeriod()": FunctionFragment; + "getPriceDiscoveryAddress()": FunctionFragment; + "getProtocolFee(address,uint256)": FunctionFragment; + "getProtocolFeeFlatBoson()": FunctionFragment; + "getProtocolFeePercentage()": FunctionFragment; + "getProtocolFeeTable(address)": FunctionFragment; + "getTokenAddress()": FunctionFragment; + "getTreasuryAddress()": FunctionFragment; + "getVoucherBeaconAddress()": FunctionFragment; + "setAccessControllerAddress(address)": FunctionFragment; + "setAuthTokenContract(uint8,address)": FunctionFragment; + "setBeaconProxyAddress(address)": FunctionFragment; + "setBuyerEscalationDepositPercentage(uint256)": FunctionFragment; + "setMaxEscalationResponsePeriod(uint256)": FunctionFragment; + "setMaxResolutionPeriod(uint256)": FunctionFragment; + "setMaxRoyaltyPercentage(uint16)": FunctionFragment; + "setMaxTotalOfferFeePercentage(uint16)": FunctionFragment; + "setMinDisputePeriod(uint256)": FunctionFragment; + "setMinResolutionPeriod(uint256)": FunctionFragment; + "setPriceDiscoveryAddress(address)": FunctionFragment; + "setProtocolFeeFlatBoson(uint256)": FunctionFragment; + "setProtocolFeePercentage(uint256)": FunctionFragment; + "setProtocolFeeTable(address,uint256[],uint256[])": FunctionFragment; + "setTokenAddress(address)": FunctionFragment; + "setTreasuryAddress(address)": FunctionFragment; + "setVoucherBeaconAddress(address)": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "getAccessControllerAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getAuthTokenContract", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getBeaconProxyAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getBuyerEscalationDepositPercentage", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMaxEscalationResponsePeriod", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMaxResolutionPeriod", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMaxRoyaltyPercentage", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMaxTotalOfferFeePercentage", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMinDisputePeriod", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getMinResolutionPeriod", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getPriceDiscoveryAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getProtocolFee", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getProtocolFeeFlatBoson", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getProtocolFeePercentage", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getProtocolFeeTable", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "getTokenAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getTreasuryAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getVoucherBeaconAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "setAccessControllerAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "setAuthTokenContract", + values: [BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "setBeaconProxyAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "setBuyerEscalationDepositPercentage", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMaxEscalationResponsePeriod", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMaxResolutionPeriod", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMaxRoyaltyPercentage", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMaxTotalOfferFeePercentage", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMinDisputePeriod", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setMinResolutionPeriod", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setPriceDiscoveryAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "setProtocolFeeFlatBoson", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setProtocolFeePercentage", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setProtocolFeeTable", + values: [string, BigNumberish[], BigNumberish[]] + ): string; + encodeFunctionData( + functionFragment: "setTokenAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "setTreasuryAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "setVoucherBeaconAddress", + values: [string] + ): string; + + decodeFunctionResult( + functionFragment: "getAccessControllerAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getAuthTokenContract", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getBeaconProxyAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getBuyerEscalationDepositPercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMaxEscalationResponsePeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMaxResolutionPeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMaxRoyaltyPercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMaxTotalOfferFeePercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMinDisputePeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getMinResolutionPeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getPriceDiscoveryAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getProtocolFee", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getProtocolFeeFlatBoson", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getProtocolFeePercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getProtocolFeeTable", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTreasuryAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getVoucherBeaconAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setAccessControllerAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setAuthTokenContract", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setBeaconProxyAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setBuyerEscalationDepositPercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMaxEscalationResponsePeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMaxResolutionPeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMaxRoyaltyPercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMaxTotalOfferFeePercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMinDisputePeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setMinResolutionPeriod", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setPriceDiscoveryAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setProtocolFeeFlatBoson", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setProtocolFeePercentage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setProtocolFeeTable", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setTokenAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setTreasuryAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setVoucherBeaconAddress", + data: BytesLike + ): Result; + + events: { + "AccessControllerAddressChanged(address,address)": EventFragment; + "AuthTokenContractChanged(uint8,address,address)": EventFragment; + "BeaconProxyAddressChanged(address,address)": EventFragment; + "BuyerEscalationFeePercentageChanged(uint256,address)": EventFragment; + "FeeTableUpdated(address,uint256[],uint256[],address)": EventFragment; + "MaxEscalationResponsePeriodChanged(uint256,address)": EventFragment; + "MaxPremintedVouchersChanged(uint256,address)": EventFragment; + "MaxResolutionPeriodChanged(uint256,address)": EventFragment; + "MaxRoyaltyPercentageChanged(uint16,address)": EventFragment; + "MaxTotalOfferFeePercentageChanged(uint16,address)": EventFragment; + "MinDisputePeriodChanged(uint256,address)": EventFragment; + "MinResolutionPeriodChanged(uint256,address)": EventFragment; + "PriceDiscoveryAddressChanged(address,address)": EventFragment; + "ProtocolFeeFlatBosonChanged(uint256,address)": EventFragment; + "ProtocolFeePercentageChanged(uint256,address)": EventFragment; + "TokenAddressChanged(address,address)": EventFragment; + "TreasuryAddressChanged(address,address)": EventFragment; + "VoucherBeaconAddressChanged(address,address)": EventFragment; + }; + + getEvent( + nameOrSignatureOrTopic: "AccessControllerAddressChanged" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "AuthTokenContractChanged"): EventFragment; + getEvent(nameOrSignatureOrTopic: "BeaconProxyAddressChanged"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "BuyerEscalationFeePercentageChanged" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "FeeTableUpdated"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "MaxEscalationResponsePeriodChanged" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "MaxPremintedVouchersChanged" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "MaxResolutionPeriodChanged"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "MaxRoyaltyPercentageChanged" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "MaxTotalOfferFeePercentageChanged" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "MinDisputePeriodChanged"): EventFragment; + getEvent(nameOrSignatureOrTopic: "MinResolutionPeriodChanged"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "PriceDiscoveryAddressChanged" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "ProtocolFeeFlatBosonChanged" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "ProtocolFeePercentageChanged" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "TokenAddressChanged"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TreasuryAddressChanged"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "VoucherBeaconAddressChanged" + ): EventFragment; +} + +export type AccessControllerAddressChangedEvent = TypedEvent< + [string, string], + { accessControllerAddress: string; executedBy: string } +>; + +export type AccessControllerAddressChangedEventFilter = + TypedEventFilter; + +export type AuthTokenContractChangedEvent = TypedEvent< + [number, string, string], + { authTokenType: number; authTokenContract: string; executedBy: string } +>; + +export type AuthTokenContractChangedEventFilter = + TypedEventFilter; + +export type BeaconProxyAddressChangedEvent = TypedEvent< + [string, string], + { beaconProxyAddress: string; executedBy: string } +>; + +export type BeaconProxyAddressChangedEventFilter = + TypedEventFilter; + +export type BuyerEscalationFeePercentageChangedEvent = TypedEvent< + [BigNumber, string], + { buyerEscalationFeePercentage: BigNumber; executedBy: string } +>; + +export type BuyerEscalationFeePercentageChangedEventFilter = + TypedEventFilter; + +export type FeeTableUpdatedEvent = TypedEvent< + [string, BigNumber[], BigNumber[], string], + { + token: string; + priceRanges: BigNumber[]; + feePercentages: BigNumber[]; + executedBy: string; + } +>; + +export type FeeTableUpdatedEventFilter = TypedEventFilter; + +export type MaxEscalationResponsePeriodChangedEvent = TypedEvent< + [BigNumber, string], + { maxEscalationResponsePeriod: BigNumber; executedBy: string } +>; + +export type MaxEscalationResponsePeriodChangedEventFilter = + TypedEventFilter; + +export type MaxPremintedVouchersChangedEvent = TypedEvent< + [BigNumber, string], + { maxPremintedVouchers: BigNumber; executedBy: string } +>; + +export type MaxPremintedVouchersChangedEventFilter = + TypedEventFilter; + +export type MaxResolutionPeriodChangedEvent = TypedEvent< + [BigNumber, string], + { maxResolutionPeriod: BigNumber; executedBy: string } +>; + +export type MaxResolutionPeriodChangedEventFilter = + TypedEventFilter; + +export type MaxRoyaltyPercentageChangedEvent = TypedEvent< + [number, string], + { maxRoyaltyPercentage: number; executedBy: string } +>; + +export type MaxRoyaltyPercentageChangedEventFilter = + TypedEventFilter; + +export type MaxTotalOfferFeePercentageChangedEvent = TypedEvent< + [number, string], + { maxTotalOfferFeePercentage: number; executedBy: string } +>; + +export type MaxTotalOfferFeePercentageChangedEventFilter = + TypedEventFilter; + +export type MinDisputePeriodChangedEvent = TypedEvent< + [BigNumber, string], + { minDisputePeriod: BigNumber; executedBy: string } +>; + +export type MinDisputePeriodChangedEventFilter = + TypedEventFilter; + +export type MinResolutionPeriodChangedEvent = TypedEvent< + [BigNumber, string], + { minResolutionPeriod: BigNumber; executedBy: string } +>; + +export type MinResolutionPeriodChangedEventFilter = + TypedEventFilter; + +export type PriceDiscoveryAddressChangedEvent = TypedEvent< + [string, string], + { priceDiscoveryAddress: string; executedBy: string } +>; + +export type PriceDiscoveryAddressChangedEventFilter = + TypedEventFilter; + +export type ProtocolFeeFlatBosonChangedEvent = TypedEvent< + [BigNumber, string], + { feeFlatBoson: BigNumber; executedBy: string } +>; + +export type ProtocolFeeFlatBosonChangedEventFilter = + TypedEventFilter; + +export type ProtocolFeePercentageChangedEvent = TypedEvent< + [BigNumber, string], + { feePercentage: BigNumber; executedBy: string } +>; + +export type ProtocolFeePercentageChangedEventFilter = + TypedEventFilter; + +export type TokenAddressChangedEvent = TypedEvent< + [string, string], + { tokenAddress: string; executedBy: string } +>; + +export type TokenAddressChangedEventFilter = + TypedEventFilter; + +export type TreasuryAddressChangedEvent = TypedEvent< + [string, string], + { treasuryAddress: string; executedBy: string } +>; + +export type TreasuryAddressChangedEventFilter = + TypedEventFilter; + +export type VoucherBeaconAddressChangedEvent = TypedEvent< + [string, string], + { voucherBeaconAddress: string; executedBy: string } +>; + +export type VoucherBeaconAddressChangedEventFilter = + TypedEventFilter; + +export interface IBosonConfigHandler extends BaseContract { + contractName: "IBosonConfigHandler"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonConfigHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + getAccessControllerAddress(overrides?: CallOverrides): Promise<[string]>; + + getAuthTokenContract( + _authTokenType: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + getBeaconProxyAddress(overrides?: CallOverrides): Promise<[string]>; + + getBuyerEscalationDepositPercentage( + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + getMaxEscalationResponsePeriod( + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + getMaxResolutionPeriod(overrides?: CallOverrides): Promise<[BigNumber]>; + + getMaxRoyaltyPercentage(overrides?: CallOverrides): Promise<[number]>; + + getMaxTotalOfferFeePercentage(overrides?: CallOverrides): Promise<[number]>; + + getMinDisputePeriod(overrides?: CallOverrides): Promise<[BigNumber]>; + + getMinResolutionPeriod(overrides?: CallOverrides): Promise<[BigNumber]>; + + getPriceDiscoveryAddress(overrides?: CallOverrides): Promise<[string]>; + + getProtocolFee( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + getProtocolFeeFlatBoson(overrides?: CallOverrides): Promise<[BigNumber]>; + + "getProtocolFeePercentage()"( + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + "getProtocolFeePercentage(address,uint256)"( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + getProtocolFeeTable( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise< + [BigNumber[], BigNumber[]] & { + priceRanges: BigNumber[]; + feePercentages: BigNumber[]; + } + >; + + getTokenAddress(overrides?: CallOverrides): Promise<[string]>; + + getTreasuryAddress(overrides?: CallOverrides): Promise<[string]>; + + getVoucherBeaconAddress(overrides?: CallOverrides): Promise<[string]>; + + setAccessControllerAddress( + _accessControllerAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setAuthTokenContract( + _authTokenType: BigNumberish, + _authTokenContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBeaconProxyAddress( + _beaconProxyAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBuyerEscalationDepositPercentage( + _buyerEscalationDepositPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxEscalationResponsePeriod( + _maxEscalationResponsePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxResolutionPeriod( + _maxResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxRoyaltyPercentage( + _maxRoyaltyPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxTotalOfferFeePercentage( + _maxTotalOfferFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinDisputePeriod( + _minDisputePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinResolutionPeriod( + _minResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setPriceDiscoveryAddress( + _priceDiscovery: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeFlatBoson( + _protocolFeeFlatBoson: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeePercentage( + _protocolFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeTable( + _tokenAddress: string, + _priceRanges: BigNumberish[], + _feePercentages: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTokenAddress( + _tokenAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTreasuryAddress( + _treasuryAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setVoucherBeaconAddress( + _voucherBeaconAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + getAccessControllerAddress(overrides?: CallOverrides): Promise; + + getAuthTokenContract( + _authTokenType: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getBeaconProxyAddress(overrides?: CallOverrides): Promise; + + getBuyerEscalationDepositPercentage( + overrides?: CallOverrides + ): Promise; + + getMaxEscalationResponsePeriod(overrides?: CallOverrides): Promise; + + getMaxResolutionPeriod(overrides?: CallOverrides): Promise; + + getMaxRoyaltyPercentage(overrides?: CallOverrides): Promise; + + getMaxTotalOfferFeePercentage(overrides?: CallOverrides): Promise; + + getMinDisputePeriod(overrides?: CallOverrides): Promise; + + getMinResolutionPeriod(overrides?: CallOverrides): Promise; + + getPriceDiscoveryAddress(overrides?: CallOverrides): Promise; + + getProtocolFee( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeFlatBoson(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage()"(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage(address,uint256)"( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeTable( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise< + [BigNumber[], BigNumber[]] & { + priceRanges: BigNumber[]; + feePercentages: BigNumber[]; + } + >; + + getTokenAddress(overrides?: CallOverrides): Promise; + + getTreasuryAddress(overrides?: CallOverrides): Promise; + + getVoucherBeaconAddress(overrides?: CallOverrides): Promise; + + setAccessControllerAddress( + _accessControllerAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setAuthTokenContract( + _authTokenType: BigNumberish, + _authTokenContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBeaconProxyAddress( + _beaconProxyAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBuyerEscalationDepositPercentage( + _buyerEscalationDepositPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxEscalationResponsePeriod( + _maxEscalationResponsePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxResolutionPeriod( + _maxResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxRoyaltyPercentage( + _maxRoyaltyPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxTotalOfferFeePercentage( + _maxTotalOfferFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinDisputePeriod( + _minDisputePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinResolutionPeriod( + _minResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setPriceDiscoveryAddress( + _priceDiscovery: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeFlatBoson( + _protocolFeeFlatBoson: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeePercentage( + _protocolFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeTable( + _tokenAddress: string, + _priceRanges: BigNumberish[], + _feePercentages: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTokenAddress( + _tokenAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTreasuryAddress( + _treasuryAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setVoucherBeaconAddress( + _voucherBeaconAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + getAccessControllerAddress(overrides?: CallOverrides): Promise; + + getAuthTokenContract( + _authTokenType: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getBeaconProxyAddress(overrides?: CallOverrides): Promise; + + getBuyerEscalationDepositPercentage( + overrides?: CallOverrides + ): Promise; + + getMaxEscalationResponsePeriod( + overrides?: CallOverrides + ): Promise; + + getMaxResolutionPeriod(overrides?: CallOverrides): Promise; + + getMaxRoyaltyPercentage(overrides?: CallOverrides): Promise; + + getMaxTotalOfferFeePercentage(overrides?: CallOverrides): Promise; + + getMinDisputePeriod(overrides?: CallOverrides): Promise; + + getMinResolutionPeriod(overrides?: CallOverrides): Promise; + + getPriceDiscoveryAddress(overrides?: CallOverrides): Promise; + + getProtocolFee( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeFlatBoson(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage()"(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage(address,uint256)"( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeTable( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise< + [BigNumber[], BigNumber[]] & { + priceRanges: BigNumber[]; + feePercentages: BigNumber[]; + } + >; + + getTokenAddress(overrides?: CallOverrides): Promise; + + getTreasuryAddress(overrides?: CallOverrides): Promise; + + getVoucherBeaconAddress(overrides?: CallOverrides): Promise; + + setAccessControllerAddress( + _accessControllerAddress: string, + overrides?: CallOverrides + ): Promise; + + setAuthTokenContract( + _authTokenType: BigNumberish, + _authTokenContract: string, + overrides?: CallOverrides + ): Promise; + + setBeaconProxyAddress( + _beaconProxyAddress: string, + overrides?: CallOverrides + ): Promise; + + setBuyerEscalationDepositPercentage( + _buyerEscalationDepositPercentage: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMaxEscalationResponsePeriod( + _maxEscalationResponsePeriod: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMaxResolutionPeriod( + _maxResolutionPeriod: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMaxRoyaltyPercentage( + _maxRoyaltyPercentage: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMaxTotalOfferFeePercentage( + _maxTotalOfferFeePercentage: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMinDisputePeriod( + _minDisputePeriod: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setMinResolutionPeriod( + _minResolutionPeriod: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setPriceDiscoveryAddress( + _priceDiscovery: string, + overrides?: CallOverrides + ): Promise; + + setProtocolFeeFlatBoson( + _protocolFeeFlatBoson: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setProtocolFeePercentage( + _protocolFeePercentage: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setProtocolFeeTable( + _tokenAddress: string, + _priceRanges: BigNumberish[], + _feePercentages: BigNumberish[], + overrides?: CallOverrides + ): Promise; + + setTokenAddress( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + setTreasuryAddress( + _treasuryAddress: string, + overrides?: CallOverrides + ): Promise; + + setVoucherBeaconAddress( + _voucherBeaconAddress: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AccessControllerAddressChanged(address,address)"( + accessControllerAddress?: string | null, + executedBy?: string | null + ): AccessControllerAddressChangedEventFilter; + AccessControllerAddressChanged( + accessControllerAddress?: string | null, + executedBy?: string | null + ): AccessControllerAddressChangedEventFilter; + + "AuthTokenContractChanged(uint8,address,address)"( + authTokenType?: BigNumberish | null, + authTokenContract?: string | null, + executedBy?: string | null + ): AuthTokenContractChangedEventFilter; + AuthTokenContractChanged( + authTokenType?: BigNumberish | null, + authTokenContract?: string | null, + executedBy?: string | null + ): AuthTokenContractChangedEventFilter; + + "BeaconProxyAddressChanged(address,address)"( + beaconProxyAddress?: string | null, + executedBy?: string | null + ): BeaconProxyAddressChangedEventFilter; + BeaconProxyAddressChanged( + beaconProxyAddress?: string | null, + executedBy?: string | null + ): BeaconProxyAddressChangedEventFilter; + + "BuyerEscalationFeePercentageChanged(uint256,address)"( + buyerEscalationFeePercentage?: null, + executedBy?: string | null + ): BuyerEscalationFeePercentageChangedEventFilter; + BuyerEscalationFeePercentageChanged( + buyerEscalationFeePercentage?: null, + executedBy?: string | null + ): BuyerEscalationFeePercentageChangedEventFilter; + + "FeeTableUpdated(address,uint256[],uint256[],address)"( + token?: string | null, + priceRanges?: null, + feePercentages?: null, + executedBy?: string | null + ): FeeTableUpdatedEventFilter; + FeeTableUpdated( + token?: string | null, + priceRanges?: null, + feePercentages?: null, + executedBy?: string | null + ): FeeTableUpdatedEventFilter; + + "MaxEscalationResponsePeriodChanged(uint256,address)"( + maxEscalationResponsePeriod?: null, + executedBy?: string | null + ): MaxEscalationResponsePeriodChangedEventFilter; + MaxEscalationResponsePeriodChanged( + maxEscalationResponsePeriod?: null, + executedBy?: string | null + ): MaxEscalationResponsePeriodChangedEventFilter; + + "MaxPremintedVouchersChanged(uint256,address)"( + maxPremintedVouchers?: null, + executedBy?: string | null + ): MaxPremintedVouchersChangedEventFilter; + MaxPremintedVouchersChanged( + maxPremintedVouchers?: null, + executedBy?: string | null + ): MaxPremintedVouchersChangedEventFilter; + + "MaxResolutionPeriodChanged(uint256,address)"( + maxResolutionPeriod?: null, + executedBy?: string | null + ): MaxResolutionPeriodChangedEventFilter; + MaxResolutionPeriodChanged( + maxResolutionPeriod?: null, + executedBy?: string | null + ): MaxResolutionPeriodChangedEventFilter; + + "MaxRoyaltyPercentageChanged(uint16,address)"( + maxRoyaltyPercentage?: null, + executedBy?: string | null + ): MaxRoyaltyPercentageChangedEventFilter; + MaxRoyaltyPercentageChanged( + maxRoyaltyPercentage?: null, + executedBy?: string | null + ): MaxRoyaltyPercentageChangedEventFilter; + + "MaxTotalOfferFeePercentageChanged(uint16,address)"( + maxTotalOfferFeePercentage?: null, + executedBy?: string | null + ): MaxTotalOfferFeePercentageChangedEventFilter; + MaxTotalOfferFeePercentageChanged( + maxTotalOfferFeePercentage?: null, + executedBy?: string | null + ): MaxTotalOfferFeePercentageChangedEventFilter; + + "MinDisputePeriodChanged(uint256,address)"( + minDisputePeriod?: null, + executedBy?: string | null + ): MinDisputePeriodChangedEventFilter; + MinDisputePeriodChanged( + minDisputePeriod?: null, + executedBy?: string | null + ): MinDisputePeriodChangedEventFilter; + + "MinResolutionPeriodChanged(uint256,address)"( + minResolutionPeriod?: null, + executedBy?: string | null + ): MinResolutionPeriodChangedEventFilter; + MinResolutionPeriodChanged( + minResolutionPeriod?: null, + executedBy?: string | null + ): MinResolutionPeriodChangedEventFilter; + + "PriceDiscoveryAddressChanged(address,address)"( + priceDiscoveryAddress?: string | null, + executedBy?: string | null + ): PriceDiscoveryAddressChangedEventFilter; + PriceDiscoveryAddressChanged( + priceDiscoveryAddress?: string | null, + executedBy?: string | null + ): PriceDiscoveryAddressChangedEventFilter; + + "ProtocolFeeFlatBosonChanged(uint256,address)"( + feeFlatBoson?: null, + executedBy?: string | null + ): ProtocolFeeFlatBosonChangedEventFilter; + ProtocolFeeFlatBosonChanged( + feeFlatBoson?: null, + executedBy?: string | null + ): ProtocolFeeFlatBosonChangedEventFilter; + + "ProtocolFeePercentageChanged(uint256,address)"( + feePercentage?: null, + executedBy?: string | null + ): ProtocolFeePercentageChangedEventFilter; + ProtocolFeePercentageChanged( + feePercentage?: null, + executedBy?: string | null + ): ProtocolFeePercentageChangedEventFilter; + + "TokenAddressChanged(address,address)"( + tokenAddress?: string | null, + executedBy?: string | null + ): TokenAddressChangedEventFilter; + TokenAddressChanged( + tokenAddress?: string | null, + executedBy?: string | null + ): TokenAddressChangedEventFilter; + + "TreasuryAddressChanged(address,address)"( + treasuryAddress?: string | null, + executedBy?: string | null + ): TreasuryAddressChangedEventFilter; + TreasuryAddressChanged( + treasuryAddress?: string | null, + executedBy?: string | null + ): TreasuryAddressChangedEventFilter; + + "VoucherBeaconAddressChanged(address,address)"( + voucherBeaconAddress?: string | null, + executedBy?: string | null + ): VoucherBeaconAddressChangedEventFilter; + VoucherBeaconAddressChanged( + voucherBeaconAddress?: string | null, + executedBy?: string | null + ): VoucherBeaconAddressChangedEventFilter; + }; + + estimateGas: { + getAccessControllerAddress(overrides?: CallOverrides): Promise; + + getAuthTokenContract( + _authTokenType: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getBeaconProxyAddress(overrides?: CallOverrides): Promise; + + getBuyerEscalationDepositPercentage( + overrides?: CallOverrides + ): Promise; + + getMaxEscalationResponsePeriod( + overrides?: CallOverrides + ): Promise; + + getMaxResolutionPeriod(overrides?: CallOverrides): Promise; + + getMaxRoyaltyPercentage(overrides?: CallOverrides): Promise; + + getMaxTotalOfferFeePercentage( + overrides?: CallOverrides + ): Promise; + + getMinDisputePeriod(overrides?: CallOverrides): Promise; + + getMinResolutionPeriod(overrides?: CallOverrides): Promise; + + getPriceDiscoveryAddress(overrides?: CallOverrides): Promise; + + getProtocolFee( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeFlatBoson(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage()"(overrides?: CallOverrides): Promise; + + "getProtocolFeePercentage(address,uint256)"( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeTable( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + getTokenAddress(overrides?: CallOverrides): Promise; + + getTreasuryAddress(overrides?: CallOverrides): Promise; + + getVoucherBeaconAddress(overrides?: CallOverrides): Promise; + + setAccessControllerAddress( + _accessControllerAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setAuthTokenContract( + _authTokenType: BigNumberish, + _authTokenContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBeaconProxyAddress( + _beaconProxyAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBuyerEscalationDepositPercentage( + _buyerEscalationDepositPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxEscalationResponsePeriod( + _maxEscalationResponsePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxResolutionPeriod( + _maxResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxRoyaltyPercentage( + _maxRoyaltyPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxTotalOfferFeePercentage( + _maxTotalOfferFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinDisputePeriod( + _minDisputePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinResolutionPeriod( + _minResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setPriceDiscoveryAddress( + _priceDiscovery: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeFlatBoson( + _protocolFeeFlatBoson: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeePercentage( + _protocolFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeTable( + _tokenAddress: string, + _priceRanges: BigNumberish[], + _feePercentages: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTokenAddress( + _tokenAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTreasuryAddress( + _treasuryAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setVoucherBeaconAddress( + _voucherBeaconAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + getAccessControllerAddress( + overrides?: CallOverrides + ): Promise; + + getAuthTokenContract( + _authTokenType: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getBeaconProxyAddress( + overrides?: CallOverrides + ): Promise; + + getBuyerEscalationDepositPercentage( + overrides?: CallOverrides + ): Promise; + + getMaxEscalationResponsePeriod( + overrides?: CallOverrides + ): Promise; + + getMaxResolutionPeriod( + overrides?: CallOverrides + ): Promise; + + getMaxRoyaltyPercentage( + overrides?: CallOverrides + ): Promise; + + getMaxTotalOfferFeePercentage( + overrides?: CallOverrides + ): Promise; + + getMinDisputePeriod( + overrides?: CallOverrides + ): Promise; + + getMinResolutionPeriod( + overrides?: CallOverrides + ): Promise; + + getPriceDiscoveryAddress( + overrides?: CallOverrides + ): Promise; + + getProtocolFee( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeFlatBoson( + overrides?: CallOverrides + ): Promise; + + "getProtocolFeePercentage()"( + overrides?: CallOverrides + ): Promise; + + "getProtocolFeePercentage(address,uint256)"( + _exchangeToken: string, + _price: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getProtocolFeeTable( + _tokenAddress: string, + overrides?: CallOverrides + ): Promise; + + getTokenAddress(overrides?: CallOverrides): Promise; + + getTreasuryAddress( + overrides?: CallOverrides + ): Promise; + + getVoucherBeaconAddress( + overrides?: CallOverrides + ): Promise; + + setAccessControllerAddress( + _accessControllerAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setAuthTokenContract( + _authTokenType: BigNumberish, + _authTokenContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBeaconProxyAddress( + _beaconProxyAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setBuyerEscalationDepositPercentage( + _buyerEscalationDepositPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxEscalationResponsePeriod( + _maxEscalationResponsePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxResolutionPeriod( + _maxResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxRoyaltyPercentage( + _maxRoyaltyPercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMaxTotalOfferFeePercentage( + _maxTotalOfferFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinDisputePeriod( + _minDisputePeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setMinResolutionPeriod( + _minResolutionPeriod: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setPriceDiscoveryAddress( + _priceDiscovery: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeFlatBoson( + _protocolFeeFlatBoson: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeePercentage( + _protocolFeePercentage: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setProtocolFeeTable( + _tokenAddress: string, + _priceRanges: BigNumberish[], + _feePercentages: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTokenAddress( + _tokenAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setTreasuryAddress( + _treasuryAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setVoucherBeaconAddress( + _voucherBeaconAddress: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonDisputeHandler.ts b/packages/ethers-sdk/src/contracts/IBosonDisputeHandler.ts index 50725a7cb..d47e92184 100644 --- a/packages/ethers-sdk/src/contracts/IBosonDisputeHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonDisputeHandler.ts @@ -66,7 +66,7 @@ export interface IBosonDisputeHandlerInterface extends utils.Interface { "isDisputeFinalized(uint256)": FunctionFragment; "raiseDispute(uint256)": FunctionFragment; "refuseEscalatedDispute(uint256)": FunctionFragment; - "resolveDispute(uint256,uint256,bytes32,bytes32,uint8)": FunctionFragment; + "resolveDispute(uint256,uint256,bytes)": FunctionFragment; "retractDispute(uint256)": FunctionFragment; }; @@ -120,7 +120,7 @@ export interface IBosonDisputeHandlerInterface extends utils.Interface { ): string; encodeFunctionData( functionFragment: "resolveDispute", - values: [BigNumberish, BigNumberish, BytesLike, BytesLike, BigNumberish] + values: [BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "retractDispute", @@ -182,6 +182,8 @@ export interface IBosonDisputeHandlerInterface extends utils.Interface { ): Result; events: { + "DRFeeRequested(uint256,address,uint256,address,address)": EventFragment; + "DRFeeReturned(uint256,address,uint256,address,address)": EventFragment; "DisputeDecided(uint256,uint256,address)": EventFragment; "DisputeEscalated(uint256,uint256,address)": EventFragment; "DisputeExpired(uint256,address)": EventFragment; @@ -197,6 +199,8 @@ export interface IBosonDisputeHandlerInterface extends utils.Interface { "ProtocolFeeCollected(uint256,address,uint256,address)": EventFragment; }; + getEvent(nameOrSignatureOrTopic: "DRFeeRequested"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; getEvent(nameOrSignatureOrTopic: "DisputeDecided"): EventFragment; getEvent(nameOrSignatureOrTopic: "DisputeEscalated"): EventFragment; getEvent(nameOrSignatureOrTopic: "DisputeExpired"): EventFragment; @@ -212,6 +216,32 @@ export interface IBosonDisputeHandlerInterface extends utils.Interface { getEvent(nameOrSignatureOrTopic: "ProtocolFeeCollected"): EventFragment; } +export type DRFeeRequestedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + feeAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeRequestedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + returnAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + export type DisputeDecidedEvent = TypedEvent< [BigNumber, BigNumber, string], { exchangeId: BigNumber; _buyerPercent: BigNumber; executedBy: string } @@ -439,9 +469,7 @@ export interface IBosonDisputeHandler extends BaseContract { resolveDispute( _exchangeId: BigNumberish, _buyerPercent: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -526,9 +554,7 @@ export interface IBosonDisputeHandler extends BaseContract { resolveDispute( _exchangeId: BigNumberish, _buyerPercent: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -613,9 +639,7 @@ export interface IBosonDisputeHandler extends BaseContract { resolveDispute( _exchangeId: BigNumberish, _buyerPercent: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: CallOverrides ): Promise; @@ -626,6 +650,36 @@ export interface IBosonDisputeHandler extends BaseContract { }; filters: { + "DRFeeRequested(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + DRFeeRequested( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + + "DRFeeReturned(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + "DisputeDecided(uint256,uint256,address)"( exchangeId?: BigNumberish | null, _buyerPercent?: null, @@ -842,9 +896,7 @@ export interface IBosonDisputeHandler extends BaseContract { resolveDispute( _exchangeId: BigNumberish, _buyerPercent: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -920,9 +972,7 @@ export interface IBosonDisputeHandler extends BaseContract { resolveDispute( _exchangeId: BigNumberish, _buyerPercent: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; diff --git a/packages/ethers-sdk/src/contracts/IBosonExchangeCommitHandler.ts b/packages/ethers-sdk/src/contracts/IBosonExchangeCommitHandler.ts new file mode 100644 index 000000000..0d0d6451b --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonExchangeCommitHandler.ts @@ -0,0 +1,1076 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace BosonTypes { + export type ExchangeStruct = { + id: BigNumberish; + offerId: BigNumberish; + buyerId: BigNumberish; + finalizedDate: BigNumberish; + state: BigNumberish; + mutualizerAddress: string; + }; + + export type ExchangeStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + number, + string + ] & { + id: BigNumber; + offerId: BigNumber; + buyerId: BigNumber; + finalizedDate: BigNumber; + state: number; + mutualizerAddress: string; + }; + + export type VoucherStruct = { + committedDate: BigNumberish; + validUntilDate: BigNumberish; + redeemedDate: BigNumberish; + expired: boolean; + }; + + export type VoucherStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + boolean + ] & { + committedDate: BigNumber; + validUntilDate: BigNumber; + redeemedDate: BigNumber; + expired: boolean; + }; + + export type RoyaltyInfoStruct = { recipients: string[]; bps: BigNumberish[] }; + + export type RoyaltyInfoStructOutput = [string[], BigNumber[]] & { + recipients: string[]; + bps: BigNumber[]; + }; + + export type SellerOfferParamsStruct = { + collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct; + mutualizerAddress: string; + }; + + export type SellerOfferParamsStructOutput = [ + BigNumber, + BosonTypes.RoyaltyInfoStructOutput, + string + ] & { + collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput; + mutualizerAddress: string; + }; + + export type OfferStruct = { + id: BigNumberish; + sellerId: BigNumberish; + price: BigNumberish; + sellerDeposit: BigNumberish; + buyerCancelPenalty: BigNumberish; + quantityAvailable: BigNumberish; + exchangeToken: string; + priceType: BigNumberish; + creator: BigNumberish; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; + buyerId: BigNumberish; + }; + + export type OfferStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + number, + number, + string, + string, + boolean, + BigNumber, + BosonTypes.RoyaltyInfoStructOutput[], + BigNumber + ] & { + id: BigNumber; + sellerId: BigNumber; + price: BigNumber; + sellerDeposit: BigNumber; + buyerCancelPenalty: BigNumber; + quantityAvailable: BigNumber; + exchangeToken: string; + priceType: number; + creator: number; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; + buyerId: BigNumber; + }; + + export type OfferDatesStruct = { + validFrom: BigNumberish; + validUntil: BigNumberish; + voucherRedeemableFrom: BigNumberish; + voucherRedeemableUntil: BigNumberish; + }; + + export type OfferDatesStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber + ] & { + validFrom: BigNumber; + validUntil: BigNumber; + voucherRedeemableFrom: BigNumber; + voucherRedeemableUntil: BigNumber; + }; + + export type OfferDurationsStruct = { + disputePeriod: BigNumberish; + voucherValid: BigNumberish; + resolutionPeriod: BigNumberish; + }; + + export type OfferDurationsStructOutput = [BigNumber, BigNumber, BigNumber] & { + disputePeriod: BigNumber; + voucherValid: BigNumber; + resolutionPeriod: BigNumber; + }; + + export type DRParametersStruct = { + disputeResolverId: BigNumberish; + mutualizerAddress: string; + }; + + export type DRParametersStructOutput = [BigNumber, string] & { + disputeResolverId: BigNumber; + mutualizerAddress: string; + }; + + export type ConditionStruct = { + method: BigNumberish; + tokenType: BigNumberish; + tokenAddress: string; + gating: BigNumberish; + minTokenId: BigNumberish; + threshold: BigNumberish; + maxCommits: BigNumberish; + maxTokenId: BigNumberish; + }; + + export type ConditionStructOutput = [ + number, + number, + string, + number, + BigNumber, + BigNumber, + BigNumber, + BigNumber + ] & { + method: number; + tokenType: number; + tokenAddress: string; + gating: number; + minTokenId: BigNumber; + threshold: BigNumber; + maxCommits: BigNumber; + maxTokenId: BigNumber; + }; + + export type FullOfferStruct = { + offer: BosonTypes.OfferStruct; + offerDates: BosonTypes.OfferDatesStruct; + offerDurations: BosonTypes.OfferDurationsStruct; + drParameters: BosonTypes.DRParametersStruct; + condition: BosonTypes.ConditionStruct; + agentId: BigNumberish; + feeLimit: BigNumberish; + useDepositedFunds: boolean; + }; + + export type FullOfferStructOutput = [ + BosonTypes.OfferStructOutput, + BosonTypes.OfferDatesStructOutput, + BosonTypes.OfferDurationsStructOutput, + BosonTypes.DRParametersStructOutput, + BosonTypes.ConditionStructOutput, + BigNumber, + BigNumber, + boolean + ] & { + offer: BosonTypes.OfferStructOutput; + offerDates: BosonTypes.OfferDatesStructOutput; + offerDurations: BosonTypes.OfferDurationsStructOutput; + drParameters: BosonTypes.DRParametersStructOutput; + condition: BosonTypes.ConditionStructOutput; + agentId: BigNumber; + feeLimit: BigNumber; + useDepositedFunds: boolean; + }; +} + +export interface IBosonExchangeCommitHandlerInterface extends utils.Interface { + contractName: "IBosonExchangeCommitHandler"; + functions: { + "commitToBuyerOffer(uint256,(uint256,(address[],uint256[]),address))": FunctionFragment; + "commitToConditionalOffer(address,uint256,uint256)": FunctionFragment; + "commitToOffer(address,uint256)": FunctionFragment; + "createOfferAndCommit(((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256,bool),address,address,bytes,uint256,(uint256,(address[],uint256[]),address))": FunctionFragment; + "isEligibleToCommit(address,uint256,uint256)": FunctionFragment; + "onPremintedVoucherTransferred(uint256,address,address,address)": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "commitToBuyerOffer", + values: [BigNumberish, BosonTypes.SellerOfferParamsStruct] + ): string; + encodeFunctionData( + functionFragment: "commitToConditionalOffer", + values: [string, BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "commitToOffer", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "createOfferAndCommit", + values: [ + BosonTypes.FullOfferStruct, + string, + string, + BytesLike, + BigNumberish, + BosonTypes.SellerOfferParamsStruct + ] + ): string; + encodeFunctionData( + functionFragment: "isEligibleToCommit", + values: [string, BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "onPremintedVoucherTransferred", + values: [BigNumberish, string, string, string] + ): string; + + decodeFunctionResult( + functionFragment: "commitToBuyerOffer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "commitToConditionalOffer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "commitToOffer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "createOfferAndCommit", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isEligibleToCommit", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "onPremintedVoucherTransferred", + data: BytesLike + ): Result; + + events: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)": EventFragment; + "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)": EventFragment; + "DRFeeRequested(uint256,address,uint256,address,address)": EventFragment; + "DRFeeReturned(uint256,address,uint256,address,address)": EventFragment; + "ExchangeCompleted(uint256,uint256,uint256,address)": EventFragment; + "FundsEncumbered(uint256,address,uint256,address)": EventFragment; + "FundsReleased(uint256,uint256,address,uint256,address)": EventFragment; + "FundsWithdrawn(uint256,address,address,uint256,address)": EventFragment; + "ProtocolFeeCollected(uint256,address,uint256,address)": EventFragment; + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + "VoucherCanceled(uint256,uint256,address)": EventFragment; + "VoucherExpired(uint256,uint256,address)": EventFragment; + "VoucherExtended(uint256,uint256,uint256,address)": EventFragment; + "VoucherRedeemed(uint256,uint256,address)": EventFragment; + "VoucherRevoked(uint256,uint256,address)": EventFragment; + "VoucherTransferred(uint256,uint256,uint256,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "BuyerCommitted"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "BuyerInitiatedOfferSetSellerParams" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "ConditionalCommitAuthorized" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeRequested"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExchangeCompleted"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsEncumbered"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsReleased"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsWithdrawn"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ProtocolFeeCollected"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SellerCommitted"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherCanceled"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherExpired"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherRedeemed"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherRevoked"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherTransferred"): EventFragment; +} + +export type BuyerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + buyerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type BuyerCommittedEventFilter = TypedEventFilter; + +export type BuyerInitiatedOfferSetSellerParamsEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.SellerOfferParamsStructOutput, string], + { + offerId: BigNumber; + sellerId: BigNumber; + sellerParams: BosonTypes.SellerOfferParamsStructOutput; + executedBy: string; + } +>; + +export type BuyerInitiatedOfferSetSellerParamsEventFilter = + TypedEventFilter; + +export type ConditionalCommitAuthorizedEvent = TypedEvent< + [BigNumber, number, string, BigNumber, BigNumber, BigNumber], + { + offerId: BigNumber; + gating: number; + buyerAddress: string; + tokenId: BigNumber; + commitCount: BigNumber; + maxCommits: BigNumber; + } +>; + +export type ConditionalCommitAuthorizedEventFilter = + TypedEventFilter; + +export type DRFeeRequestedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + feeAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeRequestedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + returnAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + +export type ExchangeCompletedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + buyerId: BigNumber; + exchangeId: BigNumber; + executedBy: string; + } +>; + +export type ExchangeCompletedEventFilter = + TypedEventFilter; + +export type FundsEncumberedEvent = TypedEvent< + [BigNumber, string, BigNumber, string], + { + entityId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsEncumberedEventFilter = TypedEventFilter; + +export type FundsReleasedEvent = TypedEvent< + [BigNumber, BigNumber, string, BigNumber, string], + { + exchangeId: BigNumber; + entityId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsReleasedEventFilter = TypedEventFilter; + +export type FundsWithdrawnEvent = TypedEvent< + [BigNumber, string, string, BigNumber, string], + { + sellerId: BigNumber; + withdrawnTo: string; + tokenAddress: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsWithdrawnEventFilter = TypedEventFilter; + +export type ProtocolFeeCollectedEvent = TypedEvent< + [BigNumber, string, BigNumber, string], + { + exchangeId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type ProtocolFeeCollectedEventFilter = + TypedEventFilter; + +export type SellerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + sellerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type SellerCommittedEventFilter = TypedEventFilter; + +export type VoucherCanceledEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherCanceledEventFilter = TypedEventFilter; + +export type VoucherExpiredEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherExpiredEventFilter = TypedEventFilter; + +export type VoucherExtendedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + exchangeId: BigNumber; + validUntil: BigNumber; + executedBy: string; + } +>; + +export type VoucherExtendedEventFilter = TypedEventFilter; + +export type VoucherRedeemedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherRedeemedEventFilter = TypedEventFilter; + +export type VoucherRevokedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherRevokedEventFilter = TypedEventFilter; + +export type VoucherTransferredEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + exchangeId: BigNumber; + newBuyerId: BigNumber; + executedBy: string; + } +>; + +export type VoucherTransferredEventFilter = + TypedEventFilter; + +export interface IBosonExchangeCommitHandler extends BaseContract { + contractName: "IBosonExchangeCommitHandler"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonExchangeCommitHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + commitToBuyerOffer( + _offerId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToConditionalOffer( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToOffer( + _buyer: string, + _offerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + createOfferAndCommit( + _fullOffer: BosonTypes.FullOfferStruct, + _offerCreator: string, + _committer: string, + _signature: BytesLike, + _conditionalTokenId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + isEligibleToCommit( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [boolean, BigNumber, BigNumber] & { + isEligible: boolean; + commitCount: BigNumber; + maxCommits: BigNumber; + } + >; + + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + commitToBuyerOffer( + _offerId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToConditionalOffer( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToOffer( + _buyer: string, + _offerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + createOfferAndCommit( + _fullOffer: BosonTypes.FullOfferStruct, + _offerCreator: string, + _committer: string, + _signature: BytesLike, + _conditionalTokenId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + isEligibleToCommit( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [boolean, BigNumber, BigNumber] & { + isEligible: boolean; + commitCount: BigNumber; + maxCommits: BigNumber; + } + >; + + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + commitToBuyerOffer( + _offerId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: CallOverrides + ): Promise; + + commitToConditionalOffer( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + commitToOffer( + _buyer: string, + _offerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + createOfferAndCommit( + _fullOffer: BosonTypes.FullOfferStruct, + _offerCreator: string, + _committer: string, + _signature: BytesLike, + _conditionalTokenId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: CallOverrides + ): Promise; + + isEligibleToCommit( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [boolean, BigNumber, BigNumber] & { + isEligible: boolean; + commitCount: BigNumber; + maxCommits: BigNumber; + } + >; + + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + BuyerCommitted( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + BuyerInitiatedOfferSetSellerParams( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + + "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)"( + offerId?: BigNumberish | null, + gating?: null, + buyerAddress?: string | null, + tokenId?: BigNumberish | null, + commitCount?: null, + maxCommits?: null + ): ConditionalCommitAuthorizedEventFilter; + ConditionalCommitAuthorized( + offerId?: BigNumberish | null, + gating?: null, + buyerAddress?: string | null, + tokenId?: BigNumberish | null, + commitCount?: null, + maxCommits?: null + ): ConditionalCommitAuthorizedEventFilter; + + "DRFeeRequested(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + DRFeeRequested( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + + "DRFeeReturned(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + + "ExchangeCompleted(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: null + ): ExchangeCompletedEventFilter; + ExchangeCompleted( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: null + ): ExchangeCompletedEventFilter; + + "FundsEncumbered(uint256,address,uint256,address)"( + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): FundsEncumberedEventFilter; + FundsEncumbered( + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): FundsEncumberedEventFilter; + + "FundsReleased(uint256,uint256,address,uint256,address)"( + exchangeId?: BigNumberish | null, + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: null + ): FundsReleasedEventFilter; + FundsReleased( + exchangeId?: BigNumberish | null, + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: null + ): FundsReleasedEventFilter; + + "FundsWithdrawn(uint256,address,address,uint256,address)"( + sellerId?: BigNumberish | null, + withdrawnTo?: string | null, + tokenAddress?: string | null, + amount?: null, + executedBy?: null + ): FundsWithdrawnEventFilter; + FundsWithdrawn( + sellerId?: BigNumberish | null, + withdrawnTo?: string | null, + tokenAddress?: string | null, + amount?: null, + executedBy?: null + ): FundsWithdrawnEventFilter; + + "ProtocolFeeCollected(uint256,address,uint256,address)"( + exchangeId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): ProtocolFeeCollectedEventFilter; + ProtocolFeeCollected( + exchangeId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): ProtocolFeeCollectedEventFilter; + + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + SellerCommitted( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + + "VoucherCanceled(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherCanceledEventFilter; + VoucherCanceled( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherCanceledEventFilter; + + "VoucherExpired(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherExpiredEventFilter; + VoucherExpired( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherExpiredEventFilter; + + "VoucherExtended(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + validUntil?: null, + executedBy?: string | null + ): VoucherExtendedEventFilter; + VoucherExtended( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + validUntil?: null, + executedBy?: string | null + ): VoucherExtendedEventFilter; + + "VoucherRedeemed(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRedeemedEventFilter; + VoucherRedeemed( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRedeemedEventFilter; + + "VoucherRevoked(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRevokedEventFilter; + VoucherRevoked( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRevokedEventFilter; + + "VoucherTransferred(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + newBuyerId?: BigNumberish | null, + executedBy?: null + ): VoucherTransferredEventFilter; + VoucherTransferred( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + newBuyerId?: BigNumberish | null, + executedBy?: null + ): VoucherTransferredEventFilter; + }; + + estimateGas: { + commitToBuyerOffer( + _offerId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToConditionalOffer( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToOffer( + _buyer: string, + _offerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + createOfferAndCommit( + _fullOffer: BosonTypes.FullOfferStruct, + _offerCreator: string, + _committer: string, + _signature: BytesLike, + _conditionalTokenId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + isEligibleToCommit( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + commitToBuyerOffer( + _offerId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToConditionalOffer( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + commitToOffer( + _buyer: string, + _offerId: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + createOfferAndCommit( + _fullOffer: BosonTypes.FullOfferStruct, + _offerCreator: string, + _committer: string, + _signature: BytesLike, + _conditionalTokenId: BigNumberish, + _sellerParams: BosonTypes.SellerOfferParamsStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + isEligibleToCommit( + _buyer: string, + _offerId: BigNumberish, + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts index 25c72baf9..55de99458 100644 --- a/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts @@ -9,7 +9,6 @@ import { CallOverrides, ContractTransaction, Overrides, - PayableOverrides, PopulatedTransaction, Signer, utils, @@ -25,6 +24,7 @@ export declare namespace BosonTypes { buyerId: BigNumberish; finalizedDate: BigNumberish; state: BigNumberish; + mutualizerAddress: string; }; export type ExchangeStructOutput = [ @@ -32,13 +32,15 @@ export declare namespace BosonTypes { BigNumber, BigNumber, BigNumber, - number + number, + string ] & { id: BigNumber; offerId: BigNumber; buyerId: BigNumber; finalizedDate: BigNumber; state: number; + mutualizerAddress: string; }; export type VoucherStruct = { @@ -60,6 +62,29 @@ export declare namespace BosonTypes { expired: boolean; }; + export type RoyaltyInfoStruct = { recipients: string[]; bps: BigNumberish[] }; + + export type RoyaltyInfoStructOutput = [string[], BigNumber[]] & { + recipients: string[]; + bps: BigNumber[]; + }; + + export type SellerOfferParamsStruct = { + collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct; + mutualizerAddress: string; + }; + + export type SellerOfferParamsStructOutput = [ + BigNumber, + BosonTypes.RoyaltyInfoStructOutput, + string + ] & { + collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput; + mutualizerAddress: string; + }; + export type TwinStruct = { id: BigNumberish; sellerId: BigNumberish; @@ -223,8 +248,6 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { contractName: "IBosonExchangeHandler"; functions: { "cancelVoucher(uint256)": FunctionFragment; - "commitToConditionalOffer(address,uint256,uint256)": FunctionFragment; - "commitToOffer(address,uint256)": FunctionFragment; "completeExchange(uint256)": FunctionFragment; "completeExchangeBatch(uint256[])": FunctionFragment; "expireVoucher(uint256)": FunctionFragment; @@ -235,9 +258,7 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { "getNextExchangeId()": FunctionFragment; "getReceipt(uint256)": FunctionFragment; "getRoyalties(uint256)": FunctionFragment; - "isEligibleToCommit(address,uint256,uint256)": FunctionFragment; "isExchangeFinalized(uint256)": FunctionFragment; - "onPremintedVoucherTransferred(uint256,address,address,address)": FunctionFragment; "onVoucherTransferred(uint256,address)": FunctionFragment; "redeemVoucher(uint256)": FunctionFragment; "revokeVoucher(uint256)": FunctionFragment; @@ -247,14 +268,6 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "cancelVoucher", values: [BigNumberish] ): string; - encodeFunctionData( - functionFragment: "commitToConditionalOffer", - values: [string, BigNumberish, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "commitToOffer", - values: [string, BigNumberish] - ): string; encodeFunctionData( functionFragment: "completeExchange", values: [BigNumberish] @@ -295,18 +308,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "getRoyalties", values: [BigNumberish] ): string; - encodeFunctionData( - functionFragment: "isEligibleToCommit", - values: [string, BigNumberish, BigNumberish] - ): string; encodeFunctionData( functionFragment: "isExchangeFinalized", values: [BigNumberish] ): string; - encodeFunctionData( - functionFragment: "onPremintedVoucherTransferred", - values: [BigNumberish, string, string, string] - ): string; encodeFunctionData( functionFragment: "onVoucherTransferred", values: [BigNumberish, string] @@ -324,14 +329,6 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "cancelVoucher", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "commitToConditionalOffer", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "commitToOffer", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "completeExchange", data: BytesLike @@ -369,18 +366,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "getRoyalties", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "isEligibleToCommit", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "isExchangeFinalized", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "onPremintedVoucherTransferred", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "onVoucherTransferred", data: BytesLike @@ -396,12 +385,16 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { events: { "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)": EventFragment; "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)": EventFragment; + "DRFeeRequested(uint256,address,uint256,address,address)": EventFragment; + "DRFeeReturned(uint256,address,uint256,address,address)": EventFragment; "ExchangeCompleted(uint256,uint256,uint256,address)": EventFragment; "FundsEncumbered(uint256,address,uint256,address)": EventFragment; "FundsReleased(uint256,uint256,address,uint256,address)": EventFragment; "FundsWithdrawn(uint256,address,address,uint256,address)": EventFragment; "ProtocolFeeCollected(uint256,address,uint256,address)": EventFragment; + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; "TwinCreated(uint256,uint256,tuple,address)": EventFragment; "TwinDeleted(uint256,uint256,address)": EventFragment; "TwinTransferFailed(uint256,address,uint256,uint256,uint256,address)": EventFragment; @@ -416,14 +409,20 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { }; getEvent(nameOrSignatureOrTopic: "BuyerCommitted"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "BuyerInitiatedOfferSetSellerParams" + ): EventFragment; getEvent( nameOrSignatureOrTopic: "ConditionalCommitAuthorized" ): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeRequested"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; getEvent(nameOrSignatureOrTopic: "ExchangeCompleted"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsEncumbered"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsReleased"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsWithdrawn"): EventFragment; getEvent(nameOrSignatureOrTopic: "ProtocolFeeCollected"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SellerCommitted"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinDeleted"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinTransferFailed"): EventFragment; @@ -458,6 +457,19 @@ export type BuyerCommittedEvent = TypedEvent< export type BuyerCommittedEventFilter = TypedEventFilter; +export type BuyerInitiatedOfferSetSellerParamsEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.SellerOfferParamsStructOutput, string], + { + offerId: BigNumber; + sellerId: BigNumber; + sellerParams: BosonTypes.SellerOfferParamsStructOutput; + executedBy: string; + } +>; + +export type BuyerInitiatedOfferSetSellerParamsEventFilter = + TypedEventFilter; + export type ConditionalCommitAuthorizedEvent = TypedEvent< [BigNumber, number, string, BigNumber, BigNumber, BigNumber], { @@ -473,6 +485,32 @@ export type ConditionalCommitAuthorizedEvent = TypedEvent< export type ConditionalCommitAuthorizedEventFilter = TypedEventFilter; +export type DRFeeRequestedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + feeAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeRequestedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + returnAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + export type ExchangeCompletedEvent = TypedEvent< [BigNumber, BigNumber, BigNumber, string], { @@ -537,6 +575,27 @@ export type ProtocolFeeCollectedEvent = TypedEvent< export type ProtocolFeeCollectedEventFilter = TypedEventFilter; +export type SellerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + sellerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type SellerCommittedEventFilter = TypedEventFilter; + export type TwinCreatedEvent = TypedEvent< [BigNumber, BigNumber, BosonTypes.TwinStructOutput, string], { @@ -679,19 +738,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - commitToConditionalOffer( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - - commitToOffer( - _buyer: string, - _offerId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -761,32 +807,11 @@ export interface IBosonExchangeHandler extends BaseContract { [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } >; - isEligibleToCommit( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise< - [boolean, BigNumber, BigNumber] & { - isEligible: boolean; - commitCount: BigNumber; - maxCommits: BigNumber; - } - >; - isExchangeFinalized( _exchangeId: BigNumberish, overrides?: CallOverrides ): Promise<[boolean, boolean] & { exists: boolean; isFinalized: boolean }>; - onPremintedVoucherTransferred( - _tokenId: BigNumberish, - _to: string, - _from: string, - _rangeOwner: string, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - onVoucherTransferred( _tokenId: BigNumberish, _newBuyer: string, @@ -809,19 +834,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - commitToConditionalOffer( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - - commitToOffer( - _buyer: string, - _offerId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -885,32 +897,11 @@ export interface IBosonExchangeHandler extends BaseContract { [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } >; - isEligibleToCommit( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise< - [boolean, BigNumber, BigNumber] & { - isEligible: boolean; - commitCount: BigNumber; - maxCommits: BigNumber; - } - >; - isExchangeFinalized( _exchangeId: BigNumberish, overrides?: CallOverrides ): Promise<[boolean, boolean] & { exists: boolean; isFinalized: boolean }>; - onPremintedVoucherTransferred( - _tokenId: BigNumberish, - _to: string, - _from: string, - _rangeOwner: string, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - onVoucherTransferred( _tokenId: BigNumberish, _newBuyer: string, @@ -933,19 +924,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; - commitToConditionalOffer( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise; - - commitToOffer( - _buyer: string, - _offerId: BigNumberish, - overrides?: CallOverrides - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -1009,32 +987,11 @@ export interface IBosonExchangeHandler extends BaseContract { [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } >; - isEligibleToCommit( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise< - [boolean, BigNumber, BigNumber] & { - isEligible: boolean; - commitCount: BigNumber; - maxCommits: BigNumber; - } - >; - isExchangeFinalized( _exchangeId: BigNumberish, overrides?: CallOverrides ): Promise<[boolean, boolean] & { exists: boolean; isFinalized: boolean }>; - onPremintedVoucherTransferred( - _tokenId: BigNumberish, - _to: string, - _from: string, - _rangeOwner: string, - overrides?: CallOverrides - ): Promise; - onVoucherTransferred( _tokenId: BigNumberish, _newBuyer: string, @@ -1070,6 +1027,19 @@ export interface IBosonExchangeHandler extends BaseContract { executedBy?: null ): BuyerCommittedEventFilter; + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + BuyerInitiatedOfferSetSellerParams( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)"( offerId?: BigNumberish | null, gating?: null, @@ -1087,6 +1057,36 @@ export interface IBosonExchangeHandler extends BaseContract { maxCommits?: null ): ConditionalCommitAuthorizedEventFilter; + "DRFeeRequested(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + DRFeeRequested( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + + "DRFeeReturned(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + "ExchangeCompleted(uint256,uint256,uint256,address)"( offerId?: BigNumberish | null, buyerId?: BigNumberish | null, @@ -1156,6 +1156,23 @@ export interface IBosonExchangeHandler extends BaseContract { executedBy?: string | null ): ProtocolFeeCollectedEventFilter; + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + SellerCommitted( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + "TwinCreated(uint256,uint256,tuple,address)"( twinId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -1302,19 +1319,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - commitToConditionalOffer( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - - commitToOffer( - _buyer: string, - _offerId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -1364,26 +1368,11 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; - isEligibleToCommit( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise; - isExchangeFinalized( _exchangeId: BigNumberish, overrides?: CallOverrides ): Promise; - onPremintedVoucherTransferred( - _tokenId: BigNumberish, - _to: string, - _from: string, - _rangeOwner: string, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - onVoucherTransferred( _tokenId: BigNumberish, _newBuyer: string, @@ -1407,19 +1396,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - commitToConditionalOffer( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - - commitToOffer( - _buyer: string, - _offerId: BigNumberish, - overrides?: PayableOverrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -1469,26 +1445,11 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; - isEligibleToCommit( - _buyer: string, - _offerId: BigNumberish, - _tokenId: BigNumberish, - overrides?: CallOverrides - ): Promise; - isExchangeFinalized( _exchangeId: BigNumberish, overrides?: CallOverrides ): Promise; - onPremintedVoucherTransferred( - _tokenId: BigNumberish, - _to: string, - _from: string, - _rangeOwner: string, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - onVoucherTransferred( _tokenId: BigNumberish, _newBuyer: string, diff --git a/packages/ethers-sdk/src/contracts/IBosonExchangeHandler240.ts b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler240.ts new file mode 100644 index 000000000..1ec71d70a --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler240.ts @@ -0,0 +1,137 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { BaseContract, BigNumber, BigNumberish, Signer, utils } from "ethers"; +import { EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace BosonTypes { + export type ExchangeStruct = { + id: BigNumberish; + offerId: BigNumberish; + buyerId: BigNumberish; + finalizedDate: BigNumberish; + state: BigNumberish; + }; + + export type ExchangeStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + number + ] & { + id: BigNumber; + offerId: BigNumber; + buyerId: BigNumber; + finalizedDate: BigNumber; + state: number; + }; + + export type VoucherStruct = { + committedDate: BigNumberish; + validUntilDate: BigNumberish; + redeemedDate: BigNumberish; + expired: boolean; + }; + + export type VoucherStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + boolean + ] & { + committedDate: BigNumber; + validUntilDate: BigNumber; + redeemedDate: BigNumber; + expired: boolean; + }; +} + +export interface IBosonExchangeHandler240Interface extends utils.Interface { + contractName: "IBosonExchangeHandler240"; + functions: {}; + + events: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "BuyerCommitted"): EventFragment; +} + +export type BuyerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + buyerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type BuyerCommittedEventFilter = TypedEventFilter; + +export interface IBosonExchangeHandler240 extends BaseContract { + contractName: "IBosonExchangeHandler240"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonExchangeHandler240Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + BuyerCommitted( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonFundsHandler.ts b/packages/ethers-sdk/src/contracts/IBosonFundsHandler.ts index 39d37f580..27bdc048b 100644 --- a/packages/ethers-sdk/src/contracts/IBosonFundsHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonFundsHandler.ts @@ -103,6 +103,8 @@ export interface IBosonFundsHandlerInterface extends utils.Interface { ): Result; events: { + "DRFeeRequested(uint256,address,uint256,address,address)": EventFragment; + "DRFeeReturned(uint256,address,uint256,address,address)": EventFragment; "FundsDeposited(uint256,address,address,uint256)": EventFragment; "FundsEncumbered(uint256,address,uint256,address)": EventFragment; "FundsReleased(uint256,uint256,address,uint256,address)": EventFragment; @@ -110,6 +112,8 @@ export interface IBosonFundsHandlerInterface extends utils.Interface { "ProtocolFeeCollected(uint256,address,uint256,address)": EventFragment; }; + getEvent(nameOrSignatureOrTopic: "DRFeeRequested"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsDeposited"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsEncumbered"): EventFragment; getEvent(nameOrSignatureOrTopic: "FundsReleased"): EventFragment; @@ -117,6 +121,32 @@ export interface IBosonFundsHandlerInterface extends utils.Interface { getEvent(nameOrSignatureOrTopic: "ProtocolFeeCollected"): EventFragment; } +export type DRFeeRequestedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + feeAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeRequestedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + returnAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + export type FundsDepositedEvent = TypedEvent< [BigNumber, string, string, BigNumber], { @@ -209,7 +239,7 @@ export interface IBosonFundsHandler extends BaseContract { functions: { depositFunds( - _sellerId: BigNumberish, + _entityId: BigNumberish, _tokenAddress: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } @@ -261,7 +291,7 @@ export interface IBosonFundsHandler extends BaseContract { }; depositFunds( - _sellerId: BigNumberish, + _entityId: BigNumberish, _tokenAddress: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } @@ -305,7 +335,7 @@ export interface IBosonFundsHandler extends BaseContract { callStatic: { depositFunds( - _sellerId: BigNumberish, + _entityId: BigNumberish, _tokenAddress: string, _amount: BigNumberish, overrides?: CallOverrides @@ -349,6 +379,36 @@ export interface IBosonFundsHandler extends BaseContract { }; filters: { + "DRFeeRequested(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + DRFeeRequested( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + + "DRFeeReturned(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + "FundsDeposited(uint256,address,address,uint256)"( sellerId?: BigNumberish | null, executedBy?: string | null, @@ -421,7 +481,7 @@ export interface IBosonFundsHandler extends BaseContract { estimateGas: { depositFunds( - _sellerId: BigNumberish, + _entityId: BigNumberish, _tokenAddress: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } @@ -466,7 +526,7 @@ export interface IBosonFundsHandler extends BaseContract { populateTransaction: { depositFunds( - _sellerId: BigNumberish, + _entityId: BigNumberish, _tokenAddress: string, _amount: BigNumberish, overrides?: PayableOverrides & { from?: string | Promise } diff --git a/packages/ethers-sdk/src/contracts/IBosonMetaTransactionsHandler.ts b/packages/ethers-sdk/src/contracts/IBosonMetaTransactionsHandler.ts index cc9c5155a..a5d7a0a1e 100644 --- a/packages/ethers-sdk/src/contracts/IBosonMetaTransactionsHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonMetaTransactionsHandler.ts @@ -22,7 +22,7 @@ export interface IBosonMetaTransactionsHandlerInterface extends utils.Interface { contractName: "IBosonMetaTransactionsHandler"; functions: { - "executeMetaTransaction(address,string,bytes,uint256,bytes32,bytes32,uint8)": FunctionFragment; + "executeMetaTransaction(address,string,bytes,uint256,bytes)": FunctionFragment; "isFunctionAllowlisted(string)": FunctionFragment; "isUsedNonce(address,uint256)": FunctionFragment; "setAllowlistedFunctions(bytes32[],bool)": FunctionFragment; @@ -30,15 +30,7 @@ export interface IBosonMetaTransactionsHandlerInterface encodeFunctionData( functionFragment: "executeMetaTransaction", - values: [ - string, - string, - BytesLike, - BigNumberish, - BytesLike, - BytesLike, - BigNumberish - ] + values: [string, string, BytesLike, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "isFunctionAllowlisted", @@ -133,9 +125,7 @@ export interface IBosonMetaTransactionsHandler extends BaseContract { _functionName: string, _functionSignature: BytesLike, _nonce: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; @@ -167,9 +157,7 @@ export interface IBosonMetaTransactionsHandler extends BaseContract { _functionName: string, _functionSignature: BytesLike, _nonce: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; @@ -201,9 +189,7 @@ export interface IBosonMetaTransactionsHandler extends BaseContract { _functionName: string, _functionSignature: BytesLike, _nonce: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: CallOverrides ): Promise; @@ -262,9 +248,7 @@ export interface IBosonMetaTransactionsHandler extends BaseContract { _functionName: string, _functionSignature: BytesLike, _nonce: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; @@ -297,9 +281,7 @@ export interface IBosonMetaTransactionsHandler extends BaseContract { _functionName: string, _functionSignature: BytesLike, _nonce: BigNumberish, - _sigR: BytesLike, - _sigS: BytesLike, - _sigV: BigNumberish, + _signature: BytesLike, overrides?: PayableOverrides & { from?: string | Promise } ): Promise; diff --git a/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts b/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts index 7492c1f24..4efbd9da5 100644 --- a/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts @@ -34,11 +34,13 @@ export declare namespace BosonTypes { quantityAvailable: BigNumberish; exchangeToken: string; priceType: BigNumberish; + creator: BigNumberish; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumberish; royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; + buyerId: BigNumberish; }; export type OfferStructOutput = [ @@ -50,11 +52,13 @@ export declare namespace BosonTypes { BigNumber, string, number, + number, string, string, boolean, BigNumber, - BosonTypes.RoyaltyInfoStructOutput[] + BosonTypes.RoyaltyInfoStructOutput[], + BigNumber ] & { id: BigNumber; sellerId: BigNumber; @@ -64,11 +68,13 @@ export declare namespace BosonTypes { quantityAvailable: BigNumber; exchangeToken: string; priceType: number; + creator: number; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumber; royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; + buyerId: BigNumber; }; export type OfferDatesStruct = { @@ -107,18 +113,21 @@ export declare namespace BosonTypes { escalationResponsePeriod: BigNumberish; feeAmount: BigNumberish; buyerEscalationDeposit: BigNumberish; + mutualizerAddress: string; }; export type DisputeResolutionTermsStructOutput = [ BigNumber, BigNumber, BigNumber, - BigNumber + BigNumber, + string ] & { disputeResolverId: BigNumber; escalationResponsePeriod: BigNumber; feeAmount: BigNumber; buyerEscalationDeposit: BigNumber; + mutualizerAddress: string; }; export type OfferFeesStruct = { @@ -130,22 +139,98 @@ export declare namespace BosonTypes { protocolFee: BigNumber; agentFee: BigNumber; }; + + export type DRParametersStruct = { + disputeResolverId: BigNumberish; + mutualizerAddress: string; + }; + + export type DRParametersStructOutput = [BigNumber, string] & { + disputeResolverId: BigNumber; + mutualizerAddress: string; + }; + + export type ConditionStruct = { + method: BigNumberish; + tokenType: BigNumberish; + tokenAddress: string; + gating: BigNumberish; + minTokenId: BigNumberish; + threshold: BigNumberish; + maxCommits: BigNumberish; + maxTokenId: BigNumberish; + }; + + export type ConditionStructOutput = [ + number, + number, + string, + number, + BigNumber, + BigNumber, + BigNumber, + BigNumber + ] & { + method: number; + tokenType: number; + tokenAddress: string; + gating: number; + minTokenId: BigNumber; + threshold: BigNumber; + maxCommits: BigNumber; + maxTokenId: BigNumber; + }; + + export type FullOfferStruct = { + offer: BosonTypes.OfferStruct; + offerDates: BosonTypes.OfferDatesStruct; + offerDurations: BosonTypes.OfferDurationsStruct; + drParameters: BosonTypes.DRParametersStruct; + condition: BosonTypes.ConditionStruct; + agentId: BigNumberish; + feeLimit: BigNumberish; + useDepositedFunds: boolean; + }; + + export type FullOfferStructOutput = [ + BosonTypes.OfferStructOutput, + BosonTypes.OfferDatesStructOutput, + BosonTypes.OfferDurationsStructOutput, + BosonTypes.DRParametersStructOutput, + BosonTypes.ConditionStructOutput, + BigNumber, + BigNumber, + boolean + ] & { + offer: BosonTypes.OfferStructOutput; + offerDates: BosonTypes.OfferDatesStructOutput; + offerDurations: BosonTypes.OfferDurationsStructOutput; + drParameters: BosonTypes.DRParametersStructOutput; + condition: BosonTypes.ConditionStructOutput; + agentId: BigNumber; + feeLimit: BigNumber; + useDepositedFunds: boolean; + }; } export interface IBosonOfferHandlerInterface extends utils.Interface { contractName: "IBosonOfferHandler"; functions: { - "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,uint256)": FunctionFragment; - "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[])[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],uint256[],uint256[],uint256[])": FunctionFragment; + "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),uint256,uint256)": FunctionFragment; + "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256)[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],(uint256,address)[],uint256[],uint256[])": FunctionFragment; "extendOffer(uint256,uint256)": FunctionFragment; "extendOfferBatch(uint256[],uint256)": FunctionFragment; "getAgentIdByOffer(uint256)": FunctionFragment; "getNextOfferId()": FunctionFragment; "getOffer(uint256)": FunctionFragment; + "getOfferHash(((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256,bool))": FunctionFragment; "isOfferVoided(uint256)": FunctionFragment; "reserveRange(uint256,uint256,address)": FunctionFragment; + "updateOfferMutualizer(uint256,address)": FunctionFragment; "updateOfferRoyaltyRecipients(uint256,(address[],uint256[]))": FunctionFragment; "updateOfferRoyaltyRecipientsBatch(uint256[],(address[],uint256[]))": FunctionFragment; + "voidNonListedOffer(((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256,bool))": FunctionFragment; + "voidNonListedOfferBatch(((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256,bool)[])": FunctionFragment; "voidOffer(uint256)": FunctionFragment; "voidOfferBatch(uint256[])": FunctionFragment; }; @@ -156,7 +241,7 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BigNumberish, BigNumberish ] @@ -167,7 +252,7 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { BosonTypes.OfferStruct[], BosonTypes.OfferDatesStruct[], BosonTypes.OfferDurationsStruct[], - BigNumberish[], + BosonTypes.DRParametersStruct[], BigNumberish[], BigNumberish[] ] @@ -192,6 +277,10 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "getOffer", values: [BigNumberish] ): string; + encodeFunctionData( + functionFragment: "getOfferHash", + values: [BosonTypes.FullOfferStruct] + ): string; encodeFunctionData( functionFragment: "isOfferVoided", values: [BigNumberish] @@ -200,6 +289,10 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "reserveRange", values: [BigNumberish, BigNumberish, string] ): string; + encodeFunctionData( + functionFragment: "updateOfferMutualizer", + values: [BigNumberish, string] + ): string; encodeFunctionData( functionFragment: "updateOfferRoyaltyRecipients", values: [BigNumberish, BosonTypes.RoyaltyInfoStruct] @@ -208,6 +301,14 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "updateOfferRoyaltyRecipientsBatch", values: [BigNumberish[], BosonTypes.RoyaltyInfoStruct] ): string; + encodeFunctionData( + functionFragment: "voidNonListedOffer", + values: [BosonTypes.FullOfferStruct] + ): string; + encodeFunctionData( + functionFragment: "voidNonListedOfferBatch", + values: [BosonTypes.FullOfferStruct[]] + ): string; encodeFunctionData( functionFragment: "voidOffer", values: [BigNumberish] @@ -242,6 +343,10 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getOffer", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getOfferHash", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "isOfferVoided", data: BytesLike @@ -250,6 +355,10 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "reserveRange", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "updateOfferMutualizer", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "updateOfferRoyaltyRecipients", data: BytesLike @@ -258,6 +367,14 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "updateOfferRoyaltyRecipientsBatch", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "voidNonListedOffer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "voidNonListedOfferBatch", + data: BytesLike + ): Result; decodeFunctionResult(functionFragment: "voidOffer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "voidOfferBatch", @@ -265,20 +382,32 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { ): Result; events: { + "NonListedOfferVoided(bytes32,uint256,address)": EventFragment; "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; "OfferExtended(uint256,uint256,uint256,address)": EventFragment; + "OfferMutualizerUpdated(uint256,uint256,address,address)": EventFragment; "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)": EventFragment; "OfferVoided(uint256,uint256,address)": EventFragment; "RangeReserved(uint256,uint256,uint256,uint256,address,address)": EventFragment; }; + getEvent(nameOrSignatureOrTopic: "NonListedOfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OfferMutualizerUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferRoyaltyInfoUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "RangeReserved"): EventFragment; } +export type NonListedOfferVoidedEvent = TypedEvent< + [string, BigNumber, string], + { offerHash: string; offererId: BigNumber; executedBy: string } +>; + +export type NonListedOfferVoidedEventFilter = + TypedEventFilter; + export type OfferCreatedEvent = TypedEvent< [ BigNumber, @@ -318,6 +447,19 @@ export type OfferExtendedEvent = TypedEvent< export type OfferExtendedEventFilter = TypedEventFilter; +export type OfferMutualizerUpdatedEvent = TypedEvent< + [BigNumber, BigNumber, string, string], + { + offerId: BigNumber; + sellerId: BigNumber; + newMutualizer: string; + executedBy: string; + } +>; + +export type OfferMutualizerUpdatedEventFilter = + TypedEventFilter; + export type OfferRoyaltyInfoUpdatedEvent = TypedEvent< [BigNumber, BigNumber, BosonTypes.RoyaltyInfoStructOutput, string], { @@ -333,7 +475,7 @@ export type OfferRoyaltyInfoUpdatedEventFilter = export type OfferVoidedEvent = TypedEvent< [BigNumber, BigNumber, string], - { offerId: BigNumber; sellerId: BigNumber; executedBy: string } + { offerId: BigNumber; creatorId: BigNumber; executedBy: string } >; export type OfferVoidedEventFilter = TypedEventFilter; @@ -384,7 +526,7 @@ export interface IBosonOfferHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -394,7 +536,7 @@ export interface IBosonOfferHandler extends BaseContract { _offers: BosonTypes.OfferStruct[], _offerDates: BosonTypes.OfferDatesStruct[], _offerDurations: BosonTypes.OfferDurationsStruct[], - _disputeResolverIds: BigNumberish[], + _drParameters: BosonTypes.DRParametersStruct[], _agentIds: BigNumberish[], _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } @@ -442,6 +584,11 @@ export interface IBosonOfferHandler extends BaseContract { } >; + getOfferHash( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise<[string] & { offerHash: string }>; + isOfferVoided( _offerId: BigNumberish, overrides?: CallOverrides @@ -454,6 +601,12 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferMutualizer( + _offerId: BigNumberish, + _newMutualizer: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateOfferRoyaltyRecipients( _offerId: BigNumberish, _royaltyInfo: BosonTypes.RoyaltyInfoStruct, @@ -466,6 +619,16 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + voidNonListedOffer( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidNonListedOfferBatch( + _fullOffers: BosonTypes.FullOfferStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -481,7 +644,7 @@ export interface IBosonOfferHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -491,7 +654,7 @@ export interface IBosonOfferHandler extends BaseContract { _offers: BosonTypes.OfferStruct[], _offerDates: BosonTypes.OfferDatesStruct[], _offerDurations: BosonTypes.OfferDurationsStruct[], - _disputeResolverIds: BigNumberish[], + _drParameters: BosonTypes.DRParametersStruct[], _agentIds: BigNumberish[], _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } @@ -537,6 +700,11 @@ export interface IBosonOfferHandler extends BaseContract { } >; + getOfferHash( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise; + isOfferVoided( _offerId: BigNumberish, overrides?: CallOverrides @@ -549,6 +717,12 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferMutualizer( + _offerId: BigNumberish, + _newMutualizer: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateOfferRoyaltyRecipients( _offerId: BigNumberish, _royaltyInfo: BosonTypes.RoyaltyInfoStruct, @@ -561,6 +735,16 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + voidNonListedOffer( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidNonListedOfferBatch( + _fullOffers: BosonTypes.FullOfferStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -576,7 +760,7 @@ export interface IBosonOfferHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, overrides?: CallOverrides @@ -586,7 +770,7 @@ export interface IBosonOfferHandler extends BaseContract { _offers: BosonTypes.OfferStruct[], _offerDates: BosonTypes.OfferDatesStruct[], _offerDurations: BosonTypes.OfferDurationsStruct[], - _disputeResolverIds: BigNumberish[], + _drParameters: BosonTypes.DRParametersStruct[], _agentIds: BigNumberish[], _feeLimits: BigNumberish[], overrides?: CallOverrides @@ -632,6 +816,11 @@ export interface IBosonOfferHandler extends BaseContract { } >; + getOfferHash( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise; + isOfferVoided( _offerId: BigNumberish, overrides?: CallOverrides @@ -644,6 +833,12 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: CallOverrides ): Promise; + updateOfferMutualizer( + _offerId: BigNumberish, + _newMutualizer: string, + overrides?: CallOverrides + ): Promise; + updateOfferRoyaltyRecipients( _offerId: BigNumberish, _royaltyInfo: BosonTypes.RoyaltyInfoStruct, @@ -656,6 +851,16 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: CallOverrides ): Promise; + voidNonListedOffer( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise; + + voidNonListedOfferBatch( + _fullOffers: BosonTypes.FullOfferStruct[], + overrides?: CallOverrides + ): Promise; + voidOffer(_offerId: BigNumberish, overrides?: CallOverrides): Promise; voidOfferBatch( @@ -665,6 +870,17 @@ export interface IBosonOfferHandler extends BaseContract { }; filters: { + "NonListedOfferVoided(bytes32,uint256,address)"( + offerHash?: null, + offererId?: BigNumberish | null, + executedBy?: string | null + ): NonListedOfferVoidedEventFilter; + NonListedOfferVoided( + offerHash?: null, + offererId?: BigNumberish | null, + executedBy?: string | null + ): NonListedOfferVoidedEventFilter; + "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -701,6 +917,19 @@ export interface IBosonOfferHandler extends BaseContract { executedBy?: string | null ): OfferExtendedEventFilter; + "OfferMutualizerUpdated(uint256,uint256,address,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + newMutualizer?: string | null, + executedBy?: null + ): OfferMutualizerUpdatedEventFilter; + OfferMutualizerUpdated( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + newMutualizer?: string | null, + executedBy?: null + ): OfferMutualizerUpdatedEventFilter; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -716,12 +945,12 @@ export interface IBosonOfferHandler extends BaseContract { "OfferVoided(uint256,uint256,address)"( offerId?: BigNumberish | null, - sellerId?: BigNumberish | null, + creatorId?: BigNumberish | null, executedBy?: string | null ): OfferVoidedEventFilter; OfferVoided( offerId?: BigNumberish | null, - sellerId?: BigNumberish | null, + creatorId?: BigNumberish | null, executedBy?: string | null ): OfferVoidedEventFilter; @@ -748,7 +977,7 @@ export interface IBosonOfferHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -758,7 +987,7 @@ export interface IBosonOfferHandler extends BaseContract { _offers: BosonTypes.OfferStruct[], _offerDates: BosonTypes.OfferDatesStruct[], _offerDurations: BosonTypes.OfferDurationsStruct[], - _disputeResolverIds: BigNumberish[], + _drParameters: BosonTypes.DRParametersStruct[], _agentIds: BigNumberish[], _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } @@ -788,6 +1017,11 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getOfferHash( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise; + isOfferVoided( _offerId: BigNumberish, overrides?: CallOverrides @@ -800,6 +1034,12 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferMutualizer( + _offerId: BigNumberish, + _newMutualizer: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateOfferRoyaltyRecipients( _offerId: BigNumberish, _royaltyInfo: BosonTypes.RoyaltyInfoStruct, @@ -812,6 +1052,16 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + voidNonListedOffer( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidNonListedOfferBatch( + _fullOffers: BosonTypes.FullOfferStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -828,7 +1078,7 @@ export interface IBosonOfferHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -838,7 +1088,7 @@ export interface IBosonOfferHandler extends BaseContract { _offers: BosonTypes.OfferStruct[], _offerDates: BosonTypes.OfferDatesStruct[], _offerDurations: BosonTypes.OfferDurationsStruct[], - _disputeResolverIds: BigNumberish[], + _drParameters: BosonTypes.DRParametersStruct[], _agentIds: BigNumberish[], _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } @@ -868,6 +1118,11 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getOfferHash( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: CallOverrides + ): Promise; + isOfferVoided( _offerId: BigNumberish, overrides?: CallOverrides @@ -880,6 +1135,12 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferMutualizer( + _offerId: BigNumberish, + _newMutualizer: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateOfferRoyaltyRecipients( _offerId: BigNumberish, _royaltyInfo: BosonTypes.RoyaltyInfoStruct, @@ -892,6 +1153,16 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + voidNonListedOffer( + _fullOffer: BosonTypes.FullOfferStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + voidNonListedOfferBatch( + _fullOffers: BosonTypes.FullOfferStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } diff --git a/packages/ethers-sdk/src/contracts/IBosonOfferHandler240.ts b/packages/ethers-sdk/src/contracts/IBosonOfferHandler240.ts new file mode 100644 index 000000000..915fc23ae --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonOfferHandler240.ts @@ -0,0 +1,241 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { BaseContract, BigNumber, BigNumberish, Signer, utils } from "ethers"; +import { EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace BosonTypes { + export type RoyaltyInfoStruct = { recipients: string[]; bps: BigNumberish[] }; + + export type RoyaltyInfoStructOutput = [string[], BigNumber[]] & { + recipients: string[]; + bps: BigNumber[]; + }; + + export type OfferStruct = { + id: BigNumberish; + sellerId: BigNumberish; + price: BigNumberish; + sellerDeposit: BigNumberish; + buyerCancelPenalty: BigNumberish; + quantityAvailable: BigNumberish; + exchangeToken: string; + priceType: BigNumberish; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; + }; + + export type OfferStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + number, + string, + string, + boolean, + BigNumber, + BosonTypes.RoyaltyInfoStructOutput[] + ] & { + id: BigNumber; + sellerId: BigNumber; + price: BigNumber; + sellerDeposit: BigNumber; + buyerCancelPenalty: BigNumber; + quantityAvailable: BigNumber; + exchangeToken: string; + priceType: number; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; + }; + + export type OfferDatesStruct = { + validFrom: BigNumberish; + validUntil: BigNumberish; + voucherRedeemableFrom: BigNumberish; + voucherRedeemableUntil: BigNumberish; + }; + + export type OfferDatesStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber + ] & { + validFrom: BigNumber; + validUntil: BigNumber; + voucherRedeemableFrom: BigNumber; + voucherRedeemableUntil: BigNumber; + }; + + export type OfferDurationsStruct = { + disputePeriod: BigNumberish; + voucherValid: BigNumberish; + resolutionPeriod: BigNumberish; + }; + + export type OfferDurationsStructOutput = [BigNumber, BigNumber, BigNumber] & { + disputePeriod: BigNumber; + voucherValid: BigNumber; + resolutionPeriod: BigNumber; + }; + + export type DisputeResolutionTermsStruct = { + disputeResolverId: BigNumberish; + escalationResponsePeriod: BigNumberish; + feeAmount: BigNumberish; + buyerEscalationDeposit: BigNumberish; + }; + + export type DisputeResolutionTermsStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber + ] & { + disputeResolverId: BigNumber; + escalationResponsePeriod: BigNumber; + feeAmount: BigNumber; + buyerEscalationDeposit: BigNumber; + }; + + export type OfferFeesStruct = { + protocolFee: BigNumberish; + agentFee: BigNumberish; + }; + + export type OfferFeesStructOutput = [BigNumber, BigNumber] & { + protocolFee: BigNumber; + agentFee: BigNumber; + }; +} + +export interface IBosonOfferHandler240Interface extends utils.Interface { + contractName: "IBosonOfferHandler240"; + functions: {}; + + events: { + "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; + "OfferVoided(uint256,uint256,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "OfferCreated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OfferVoided"): EventFragment; +} + +export type OfferCreatedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BosonTypes.OfferStructOutput, + BosonTypes.OfferDatesStructOutput, + BosonTypes.OfferDurationsStructOutput, + BosonTypes.DisputeResolutionTermsStructOutput, + BosonTypes.OfferFeesStructOutput, + BigNumber, + string + ], + { + offerId: BigNumber; + sellerId: BigNumber; + offer: BosonTypes.OfferStructOutput; + offerDates: BosonTypes.OfferDatesStructOutput; + offerDurations: BosonTypes.OfferDurationsStructOutput; + disputeResolutionTerms: BosonTypes.DisputeResolutionTermsStructOutput; + offerFees: BosonTypes.OfferFeesStructOutput; + agentId: BigNumber; + executedBy: string; + } +>; + +export type OfferCreatedEventFilter = TypedEventFilter; + +export type OfferVoidedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; sellerId: BigNumber; executedBy: string } +>; + +export type OfferVoidedEventFilter = TypedEventFilter; + +export interface IBosonOfferHandler240 extends BaseContract { + contractName: "IBosonOfferHandler240"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonOfferHandler240Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: { + "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + offer?: null, + offerDates?: null, + offerDurations?: null, + disputeResolutionTerms?: null, + offerFees?: null, + agentId?: BigNumberish | null, + executedBy?: null + ): OfferCreatedEventFilter; + OfferCreated( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + offer?: null, + offerDates?: null, + offerDurations?: null, + disputeResolutionTerms?: null, + offerFees?: null, + agentId?: BigNumberish | null, + executedBy?: null + ): OfferCreatedEventFilter; + + "OfferVoided(uint256,uint256,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + executedBy?: string | null + ): OfferVoidedEventFilter; + OfferVoided( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + executedBy?: string | null + ): OfferVoidedEventFilter; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts b/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts index 4b0981824..973d13db3 100644 --- a/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts @@ -166,11 +166,13 @@ export declare namespace BosonTypes { quantityAvailable: BigNumberish; exchangeToken: string; priceType: BigNumberish; + creator: BigNumberish; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumberish; royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; + buyerId: BigNumberish; }; export type OfferStructOutput = [ @@ -182,11 +184,13 @@ export declare namespace BosonTypes { BigNumber, string, number, + number, string, string, boolean, BigNumber, - BosonTypes.RoyaltyInfoStructOutput[] + BosonTypes.RoyaltyInfoStructOutput[], + BigNumber ] & { id: BigNumber; sellerId: BigNumber; @@ -196,11 +200,13 @@ export declare namespace BosonTypes { quantityAvailable: BigNumber; exchangeToken: string; priceType: number; + creator: number; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumber; royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; + buyerId: BigNumber; }; export type OfferDatesStruct = { @@ -239,18 +245,21 @@ export declare namespace BosonTypes { escalationResponsePeriod: BigNumberish; feeAmount: BigNumberish; buyerEscalationDeposit: BigNumberish; + mutualizerAddress: string; }; export type DisputeResolutionTermsStructOutput = [ BigNumber, BigNumber, BigNumber, - BigNumber + BigNumber, + string ] & { disputeResolverId: BigNumber; escalationResponsePeriod: BigNumber; feeAmount: BigNumber; buyerEscalationDeposit: BigNumber; + mutualizerAddress: string; }; export type OfferFeesStruct = { @@ -339,6 +348,16 @@ export declare namespace BosonTypes { tokenType: number; }; + export type DRParametersStruct = { + disputeResolverId: BigNumberish; + mutualizerAddress: string; + }; + + export type DRParametersStructOutput = [BigNumber, string] & { + disputeResolverId: BigNumber; + mutualizerAddress: string; + }; + export type PremintParametersStruct = { reservedRangeLength: BigNumberish; to: string; @@ -365,22 +384,22 @@ export declare namespace BosonTypes { export interface IBosonOrchestrationHandlerInterface extends utils.Interface { contractName: "IBosonOrchestrationHandler"; functions: { - "createOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,uint256,uint256)": FunctionFragment; - "createOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; - "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)": FunctionFragment; - "createOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; - "createPremintedOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),uint256,uint256,uint256)": FunctionFragment; - "createPremintedOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; - "createPremintedOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)": FunctionFragment; - "createPremintedOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; - "createSellerAndOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndPremintedOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndPremintedOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndPremintedOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; - "createSellerAndPremintedOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),uint256,uint256,uint256)": FunctionFragment; + "createOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; + "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)": FunctionFragment; + "createOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; + "createPremintedOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),uint256,uint256,uint256)": FunctionFragment; + "createPremintedOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; + "createPremintedOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256,uint256)": FunctionFragment; + "createPremintedOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256,uint256)": FunctionFragment; + "createSellerAndOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndPremintedOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndPremintedOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndPremintedOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; + "createSellerAndPremintedOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,address),(uint256,address),(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256,uint256)": FunctionFragment; "raiseAndEscalateDispute(uint256)": FunctionFragment; }; @@ -390,7 +409,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BigNumberish, BigNumberish, BigNumberish @@ -402,7 +421,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.TwinStruct, BigNumberish, BigNumberish @@ -414,7 +433,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.ConditionStruct, BigNumberish, BigNumberish @@ -426,7 +445,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, BigNumberish, @@ -439,7 +458,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BigNumberish, BigNumberish, @@ -452,7 +471,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.TwinStruct, BigNumberish, @@ -465,7 +484,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BigNumberish, @@ -478,7 +497,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, @@ -493,7 +512,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, BigNumberish, @@ -507,7 +526,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, @@ -522,7 +541,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.ConditionStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, @@ -537,7 +556,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, @@ -553,7 +572,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, @@ -568,7 +587,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, @@ -584,7 +603,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.AuthTokenStruct, @@ -600,7 +619,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferStruct, BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, - BigNumberish, + BosonTypes.DRParametersStruct, BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, @@ -700,8 +719,10 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { "DisputeResolverUpdatePending(uint256,tuple,address)": EventFragment; "GroupCreated(uint256,uint256,tuple,tuple,address)": EventFragment; "GroupUpdated(uint256,uint256,tuple,tuple,address)": EventFragment; + "NonListedOfferVoided(bytes32,uint256,address)": EventFragment; "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; "OfferExtended(uint256,uint256,uint256,address)": EventFragment; + "OfferMutualizerUpdated(uint256,uint256,address,address)": EventFragment; "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)": EventFragment; "OfferVoided(uint256,uint256,address)": EventFragment; "RangeReserved(uint256,uint256,uint256,uint256,address,address)": EventFragment; @@ -735,8 +756,10 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { ): EventFragment; getEvent(nameOrSignatureOrTopic: "GroupCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "GroupUpdated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "NonListedOfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OfferMutualizerUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferRoyaltyInfoUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "RangeReserved"): EventFragment; @@ -957,6 +980,14 @@ export type GroupUpdatedEvent = TypedEvent< export type GroupUpdatedEventFilter = TypedEventFilter; +export type NonListedOfferVoidedEvent = TypedEvent< + [string, BigNumber, string], + { offerHash: string; offererId: BigNumber; executedBy: string } +>; + +export type NonListedOfferVoidedEventFilter = + TypedEventFilter; + export type OfferCreatedEvent = TypedEvent< [ BigNumber, @@ -996,6 +1027,19 @@ export type OfferExtendedEvent = TypedEvent< export type OfferExtendedEventFilter = TypedEventFilter; +export type OfferMutualizerUpdatedEvent = TypedEvent< + [BigNumber, BigNumber, string, string], + { + offerId: BigNumber; + sellerId: BigNumber; + newMutualizer: string; + executedBy: string; + } +>; + +export type OfferMutualizerUpdatedEventFilter = + TypedEventFilter; + export type OfferRoyaltyInfoUpdatedEvent = TypedEvent< [BigNumber, BigNumber, BosonTypes.RoyaltyInfoStructOutput, string], { @@ -1011,7 +1055,7 @@ export type OfferRoyaltyInfoUpdatedEventFilter = export type OfferVoidedEvent = TypedEvent< [BigNumber, BigNumber, string], - { offerId: BigNumber; sellerId: BigNumber; executedBy: string } + { offerId: BigNumber; creatorId: BigNumber; executedBy: string } >; export type OfferVoidedEventFilter = TypedEventFilter; @@ -1189,7 +1233,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1200,7 +1244,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1211,7 +1255,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1222,7 +1266,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1234,7 +1278,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, @@ -1246,7 +1290,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1258,7 +1302,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, @@ -1270,7 +1314,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -1284,7 +1328,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, @@ -1297,7 +1341,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1311,7 +1355,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1325,7 +1369,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1340,7 +1384,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1354,7 +1398,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1369,7 +1413,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1384,7 +1428,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -1405,7 +1449,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1416,7 +1460,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1427,7 +1471,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1438,7 +1482,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1450,7 +1494,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, @@ -1462,7 +1506,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1474,7 +1518,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, @@ -1486,7 +1530,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -1500,7 +1544,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, @@ -1513,7 +1557,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1527,7 +1571,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1541,7 +1585,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1556,7 +1600,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1570,7 +1614,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1585,7 +1629,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1600,7 +1644,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -1621,7 +1665,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1632,7 +1676,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1643,7 +1687,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -1654,7 +1698,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1666,7 +1710,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, @@ -1678,7 +1722,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -1690,7 +1734,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, @@ -1702,7 +1746,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -1716,7 +1760,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, @@ -1729,7 +1773,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1743,7 +1787,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1757,7 +1801,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1772,7 +1816,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -1786,7 +1830,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1801,7 +1845,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1816,7 +1860,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -2019,6 +2063,17 @@ export interface IBosonOrchestrationHandler extends BaseContract { executedBy?: string | null ): GroupUpdatedEventFilter; + "NonListedOfferVoided(bytes32,uint256,address)"( + offerHash?: null, + offererId?: BigNumberish | null, + executedBy?: string | null + ): NonListedOfferVoidedEventFilter; + NonListedOfferVoided( + offerHash?: null, + offererId?: BigNumberish | null, + executedBy?: string | null + ): NonListedOfferVoidedEventFilter; + "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -2055,6 +2110,19 @@ export interface IBosonOrchestrationHandler extends BaseContract { executedBy?: string | null ): OfferExtendedEventFilter; + "OfferMutualizerUpdated(uint256,uint256,address,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + newMutualizer?: string | null, + executedBy?: null + ): OfferMutualizerUpdatedEventFilter; + OfferMutualizerUpdated( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + newMutualizer?: string | null, + executedBy?: null + ): OfferMutualizerUpdatedEventFilter; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -2070,12 +2138,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { "OfferVoided(uint256,uint256,address)"( offerId?: BigNumberish | null, - sellerId?: BigNumberish | null, + creatorId?: BigNumberish | null, executedBy?: string | null ): OfferVoidedEventFilter; OfferVoided( offerId?: BigNumberish | null, - sellerId?: BigNumberish | null, + creatorId?: BigNumberish | null, executedBy?: string | null ): OfferVoidedEventFilter; @@ -2227,7 +2295,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2238,7 +2306,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2249,7 +2317,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2260,7 +2328,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -2272,7 +2340,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, @@ -2284,7 +2352,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -2296,7 +2364,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, @@ -2308,7 +2376,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -2322,7 +2390,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, @@ -2335,7 +2403,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2349,7 +2417,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2363,7 +2431,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2378,7 +2446,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2392,7 +2460,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2407,7 +2475,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2422,7 +2490,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -2444,7 +2512,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2455,7 +2523,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2466,7 +2534,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, _feeLimit: BigNumberish, @@ -2477,7 +2545,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -2489,7 +2557,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, @@ -2501,7 +2569,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, @@ -2513,7 +2581,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, @@ -2525,7 +2593,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, @@ -2539,7 +2607,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, @@ -2552,7 +2620,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2566,7 +2634,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2580,7 +2648,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2595,7 +2663,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, @@ -2609,7 +2677,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2624,7 +2692,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -2639,7 +2707,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offer: BosonTypes.OfferStruct, _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, - _disputeResolverId: BigNumberish, + _drParameters: BosonTypes.DRParametersStruct, _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, diff --git a/packages/ethers-sdk/src/contracts/IBosonPriceDiscoveryHandler.ts b/packages/ethers-sdk/src/contracts/IBosonPriceDiscoveryHandler.ts new file mode 100644 index 000000000..cdd76e2ad --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonPriceDiscoveryHandler.ts @@ -0,0 +1,850 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace BosonTypes { + export type ExchangeStruct = { + id: BigNumberish; + offerId: BigNumberish; + buyerId: BigNumberish; + finalizedDate: BigNumberish; + state: BigNumberish; + mutualizerAddress: string; + }; + + export type ExchangeStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + number, + string + ] & { + id: BigNumber; + offerId: BigNumber; + buyerId: BigNumber; + finalizedDate: BigNumber; + state: number; + mutualizerAddress: string; + }; + + export type VoucherStruct = { + committedDate: BigNumberish; + validUntilDate: BigNumberish; + redeemedDate: BigNumberish; + expired: boolean; + }; + + export type VoucherStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + boolean + ] & { + committedDate: BigNumber; + validUntilDate: BigNumber; + redeemedDate: BigNumber; + expired: boolean; + }; + + export type RoyaltyInfoStruct = { recipients: string[]; bps: BigNumberish[] }; + + export type RoyaltyInfoStructOutput = [string[], BigNumber[]] & { + recipients: string[]; + bps: BigNumber[]; + }; + + export type SellerOfferParamsStruct = { + collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct; + mutualizerAddress: string; + }; + + export type SellerOfferParamsStructOutput = [ + BigNumber, + BosonTypes.RoyaltyInfoStructOutput, + string + ] & { + collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput; + mutualizerAddress: string; + }; + + export type TwinStruct = { + id: BigNumberish; + sellerId: BigNumberish; + amount: BigNumberish; + supplyAvailable: BigNumberish; + tokenId: BigNumberish; + tokenAddress: string; + tokenType: BigNumberish; + }; + + export type TwinStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + number + ] & { + id: BigNumber; + sellerId: BigNumber; + amount: BigNumber; + supplyAvailable: BigNumber; + tokenId: BigNumber; + tokenAddress: string; + tokenType: number; + }; + + export type PriceDiscoveryStruct = { + price: BigNumberish; + side: BigNumberish; + priceDiscoveryContract: string; + conduit: string; + priceDiscoveryData: BytesLike; + }; + + export type PriceDiscoveryStructOutput = [ + BigNumber, + number, + string, + string, + string + ] & { + price: BigNumber; + side: number; + priceDiscoveryContract: string; + conduit: string; + priceDiscoveryData: string; + }; +} + +export interface IBosonPriceDiscoveryHandlerInterface extends utils.Interface { + contractName: "IBosonPriceDiscoveryHandler"; + functions: { + "commitToPriceDiscoveryOffer(address,uint256,(uint256,uint8,address,address,bytes))": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "commitToPriceDiscoveryOffer", + values: [string, BigNumberish, BosonTypes.PriceDiscoveryStruct] + ): string; + + decodeFunctionResult( + functionFragment: "commitToPriceDiscoveryOffer", + data: BytesLike + ): Result; + + events: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)": EventFragment; + "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)": EventFragment; + "DRFeeRequested(uint256,address,uint256,address,address)": EventFragment; + "DRFeeReturned(uint256,address,uint256,address,address)": EventFragment; + "ExchangeCompleted(uint256,uint256,uint256,address)": EventFragment; + "FundsEncumbered(uint256,address,uint256,address)": EventFragment; + "FundsReleased(uint256,uint256,address,uint256,address)": EventFragment; + "FundsWithdrawn(uint256,address,address,uint256,address)": EventFragment; + "ProtocolFeeCollected(uint256,address,uint256,address)": EventFragment; + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)": EventFragment; + "TwinCreated(uint256,uint256,tuple,address)": EventFragment; + "TwinDeleted(uint256,uint256,address)": EventFragment; + "TwinTransferFailed(uint256,address,uint256,uint256,uint256,address)": EventFragment; + "TwinTransferSkipped(uint256,uint256,address)": EventFragment; + "TwinTransferred(uint256,address,uint256,uint256,uint256,address)": EventFragment; + "VoucherCanceled(uint256,uint256,address)": EventFragment; + "VoucherExpired(uint256,uint256,address)": EventFragment; + "VoucherExtended(uint256,uint256,uint256,address)": EventFragment; + "VoucherRedeemed(uint256,uint256,address)": EventFragment; + "VoucherRevoked(uint256,uint256,address)": EventFragment; + "VoucherTransferred(uint256,uint256,uint256,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "BuyerCommitted"): EventFragment; + getEvent( + nameOrSignatureOrTopic: "BuyerInitiatedOfferSetSellerParams" + ): EventFragment; + getEvent( + nameOrSignatureOrTopic: "ConditionalCommitAuthorized" + ): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeRequested"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DRFeeReturned"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExchangeCompleted"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsEncumbered"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsReleased"): EventFragment; + getEvent(nameOrSignatureOrTopic: "FundsWithdrawn"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ProtocolFeeCollected"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SellerCommitted"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinCreated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinDeleted"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinTransferFailed"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinTransferSkipped"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinTransferred"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherCanceled"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherExpired"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherRedeemed"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherRevoked"): EventFragment; + getEvent(nameOrSignatureOrTopic: "VoucherTransferred"): EventFragment; +} + +export type BuyerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + buyerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type BuyerCommittedEventFilter = TypedEventFilter; + +export type BuyerInitiatedOfferSetSellerParamsEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.SellerOfferParamsStructOutput, string], + { + offerId: BigNumber; + sellerId: BigNumber; + sellerParams: BosonTypes.SellerOfferParamsStructOutput; + executedBy: string; + } +>; + +export type BuyerInitiatedOfferSetSellerParamsEventFilter = + TypedEventFilter; + +export type ConditionalCommitAuthorizedEvent = TypedEvent< + [BigNumber, number, string, BigNumber, BigNumber, BigNumber], + { + offerId: BigNumber; + gating: number; + buyerAddress: string; + tokenId: BigNumber; + commitCount: BigNumber; + maxCommits: BigNumber; + } +>; + +export type ConditionalCommitAuthorizedEventFilter = + TypedEventFilter; + +export type DRFeeRequestedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + feeAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeRequestedEventFilter = TypedEventFilter; + +export type DRFeeReturnedEvent = TypedEvent< + [BigNumber, string, BigNumber, string, string], + { + exchangeId: BigNumber; + tokenAddress: string; + returnAmount: BigNumber; + mutualizerAddress: string; + executedBy: string; + } +>; + +export type DRFeeReturnedEventFilter = TypedEventFilter; + +export type ExchangeCompletedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + buyerId: BigNumber; + exchangeId: BigNumber; + executedBy: string; + } +>; + +export type ExchangeCompletedEventFilter = + TypedEventFilter; + +export type FundsEncumberedEvent = TypedEvent< + [BigNumber, string, BigNumber, string], + { + entityId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsEncumberedEventFilter = TypedEventFilter; + +export type FundsReleasedEvent = TypedEvent< + [BigNumber, BigNumber, string, BigNumber, string], + { + exchangeId: BigNumber; + entityId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsReleasedEventFilter = TypedEventFilter; + +export type FundsWithdrawnEvent = TypedEvent< + [BigNumber, string, string, BigNumber, string], + { + sellerId: BigNumber; + withdrawnTo: string; + tokenAddress: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type FundsWithdrawnEventFilter = TypedEventFilter; + +export type ProtocolFeeCollectedEvent = TypedEvent< + [BigNumber, string, BigNumber, string], + { + exchangeId: BigNumber; + exchangeToken: string; + amount: BigNumber; + executedBy: string; + } +>; + +export type ProtocolFeeCollectedEventFilter = + TypedEventFilter; + +export type SellerCommittedEvent = TypedEvent< + [ + BigNumber, + BigNumber, + BigNumber, + BosonTypes.ExchangeStructOutput, + BosonTypes.VoucherStructOutput, + string + ], + { + offerId: BigNumber; + sellerId: BigNumber; + exchangeId: BigNumber; + exchange: BosonTypes.ExchangeStructOutput; + voucher: BosonTypes.VoucherStructOutput; + executedBy: string; + } +>; + +export type SellerCommittedEventFilter = TypedEventFilter; + +export type TwinCreatedEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.TwinStructOutput, string], + { + twinId: BigNumber; + sellerId: BigNumber; + twin: BosonTypes.TwinStructOutput; + executedBy: string; + } +>; + +export type TwinCreatedEventFilter = TypedEventFilter; + +export type TwinDeletedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { twinId: BigNumber; sellerId: BigNumber; executedBy: string } +>; + +export type TwinDeletedEventFilter = TypedEventFilter; + +export type TwinTransferFailedEvent = TypedEvent< + [BigNumber, string, BigNumber, BigNumber, BigNumber, string], + { + twinId: BigNumber; + tokenAddress: string; + exchangeId: BigNumber; + tokenId: BigNumber; + amount: BigNumber; + executedBy: string; + } +>; + +export type TwinTransferFailedEventFilter = + TypedEventFilter; + +export type TwinTransferSkippedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { exchangeId: BigNumber; twinCount: BigNumber; executedBy: string } +>; + +export type TwinTransferSkippedEventFilter = + TypedEventFilter; + +export type TwinTransferredEvent = TypedEvent< + [BigNumber, string, BigNumber, BigNumber, BigNumber, string], + { + twinId: BigNumber; + tokenAddress: string; + exchangeId: BigNumber; + tokenId: BigNumber; + amount: BigNumber; + executedBy: string; + } +>; + +export type TwinTransferredEventFilter = TypedEventFilter; + +export type VoucherCanceledEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherCanceledEventFilter = TypedEventFilter; + +export type VoucherExpiredEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherExpiredEventFilter = TypedEventFilter; + +export type VoucherExtendedEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + exchangeId: BigNumber; + validUntil: BigNumber; + executedBy: string; + } +>; + +export type VoucherExtendedEventFilter = TypedEventFilter; + +export type VoucherRedeemedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherRedeemedEventFilter = TypedEventFilter; + +export type VoucherRevokedEvent = TypedEvent< + [BigNumber, BigNumber, string], + { offerId: BigNumber; exchangeId: BigNumber; executedBy: string } +>; + +export type VoucherRevokedEventFilter = TypedEventFilter; + +export type VoucherTransferredEvent = TypedEvent< + [BigNumber, BigNumber, BigNumber, string], + { + offerId: BigNumber; + exchangeId: BigNumber; + newBuyerId: BigNumber; + executedBy: string; + } +>; + +export type VoucherTransferredEventFilter = + TypedEventFilter; + +export interface IBosonPriceDiscoveryHandler extends BaseContract { + contractName: "IBosonPriceDiscoveryHandler"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonPriceDiscoveryHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + commitToPriceDiscoveryOffer( + _buyer: string, + _tokenIdOrOfferId: BigNumberish, + _priceDiscovery: BosonTypes.PriceDiscoveryStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + }; + + commitToPriceDiscoveryOffer( + _buyer: string, + _tokenIdOrOfferId: BigNumberish, + _priceDiscovery: BosonTypes.PriceDiscoveryStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + callStatic: { + commitToPriceDiscoveryOffer( + _buyer: string, + _tokenIdOrOfferId: BigNumberish, + _priceDiscovery: BosonTypes.PriceDiscoveryStruct, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "BuyerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + BuyerCommitted( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): BuyerCommittedEventFilter; + + "BuyerInitiatedOfferSetSellerParams(uint256,uint256,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + BuyerInitiatedOfferSetSellerParams( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + sellerParams?: null, + executedBy?: null + ): BuyerInitiatedOfferSetSellerParamsEventFilter; + + "ConditionalCommitAuthorized(uint256,uint8,address,uint256,uint256,uint256)"( + offerId?: BigNumberish | null, + gating?: null, + buyerAddress?: string | null, + tokenId?: BigNumberish | null, + commitCount?: null, + maxCommits?: null + ): ConditionalCommitAuthorizedEventFilter; + ConditionalCommitAuthorized( + offerId?: BigNumberish | null, + gating?: null, + buyerAddress?: string | null, + tokenId?: BigNumberish | null, + commitCount?: null, + maxCommits?: null + ): ConditionalCommitAuthorizedEventFilter; + + "DRFeeRequested(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + DRFeeRequested( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + feeAmount?: null, + mutualizerAddress?: string | null, + executedBy?: null + ): DRFeeRequestedEventFilter; + + "DRFeeReturned(uint256,address,uint256,address,address)"( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + DRFeeReturned( + exchangeId?: BigNumberish | null, + tokenAddress?: string | null, + returnAmount?: null, + mutualizerAddress?: null, + executedBy?: null + ): DRFeeReturnedEventFilter; + + "ExchangeCompleted(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: null + ): ExchangeCompletedEventFilter; + ExchangeCompleted( + offerId?: BigNumberish | null, + buyerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: null + ): ExchangeCompletedEventFilter; + + "FundsEncumbered(uint256,address,uint256,address)"( + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): FundsEncumberedEventFilter; + FundsEncumbered( + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): FundsEncumberedEventFilter; + + "FundsReleased(uint256,uint256,address,uint256,address)"( + exchangeId?: BigNumberish | null, + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: null + ): FundsReleasedEventFilter; + FundsReleased( + exchangeId?: BigNumberish | null, + entityId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: null + ): FundsReleasedEventFilter; + + "FundsWithdrawn(uint256,address,address,uint256,address)"( + sellerId?: BigNumberish | null, + withdrawnTo?: string | null, + tokenAddress?: string | null, + amount?: null, + executedBy?: null + ): FundsWithdrawnEventFilter; + FundsWithdrawn( + sellerId?: BigNumberish | null, + withdrawnTo?: string | null, + tokenAddress?: string | null, + amount?: null, + executedBy?: null + ): FundsWithdrawnEventFilter; + + "ProtocolFeeCollected(uint256,address,uint256,address)"( + exchangeId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): ProtocolFeeCollectedEventFilter; + ProtocolFeeCollected( + exchangeId?: BigNumberish | null, + exchangeToken?: string | null, + amount?: null, + executedBy?: string | null + ): ProtocolFeeCollectedEventFilter; + + "SellerCommitted(uint256,uint256,uint256,tuple,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + SellerCommitted( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + exchange?: null, + voucher?: null, + executedBy?: null + ): SellerCommittedEventFilter; + + "TwinCreated(uint256,uint256,tuple,address)"( + twinId?: BigNumberish | null, + sellerId?: BigNumberish | null, + twin?: null, + executedBy?: string | null + ): TwinCreatedEventFilter; + TwinCreated( + twinId?: BigNumberish | null, + sellerId?: BigNumberish | null, + twin?: null, + executedBy?: string | null + ): TwinCreatedEventFilter; + + "TwinDeleted(uint256,uint256,address)"( + twinId?: BigNumberish | null, + sellerId?: BigNumberish | null, + executedBy?: string | null + ): TwinDeletedEventFilter; + TwinDeleted( + twinId?: BigNumberish | null, + sellerId?: BigNumberish | null, + executedBy?: string | null + ): TwinDeletedEventFilter; + + "TwinTransferFailed(uint256,address,uint256,uint256,uint256,address)"( + twinId?: BigNumberish | null, + tokenAddress?: string | null, + exchangeId?: BigNumberish | null, + tokenId?: null, + amount?: null, + executedBy?: null + ): TwinTransferFailedEventFilter; + TwinTransferFailed( + twinId?: BigNumberish | null, + tokenAddress?: string | null, + exchangeId?: BigNumberish | null, + tokenId?: null, + amount?: null, + executedBy?: null + ): TwinTransferFailedEventFilter; + + "TwinTransferSkipped(uint256,uint256,address)"( + exchangeId?: BigNumberish | null, + twinCount?: null, + executedBy?: string | null + ): TwinTransferSkippedEventFilter; + TwinTransferSkipped( + exchangeId?: BigNumberish | null, + twinCount?: null, + executedBy?: string | null + ): TwinTransferSkippedEventFilter; + + "TwinTransferred(uint256,address,uint256,uint256,uint256,address)"( + twinId?: BigNumberish | null, + tokenAddress?: string | null, + exchangeId?: BigNumberish | null, + tokenId?: null, + amount?: null, + executedBy?: null + ): TwinTransferredEventFilter; + TwinTransferred( + twinId?: BigNumberish | null, + tokenAddress?: string | null, + exchangeId?: BigNumberish | null, + tokenId?: null, + amount?: null, + executedBy?: null + ): TwinTransferredEventFilter; + + "VoucherCanceled(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherCanceledEventFilter; + VoucherCanceled( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherCanceledEventFilter; + + "VoucherExpired(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherExpiredEventFilter; + VoucherExpired( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherExpiredEventFilter; + + "VoucherExtended(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + validUntil?: null, + executedBy?: string | null + ): VoucherExtendedEventFilter; + VoucherExtended( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + validUntil?: null, + executedBy?: string | null + ): VoucherExtendedEventFilter; + + "VoucherRedeemed(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRedeemedEventFilter; + VoucherRedeemed( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRedeemedEventFilter; + + "VoucherRevoked(uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRevokedEventFilter; + VoucherRevoked( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + executedBy?: string | null + ): VoucherRevokedEventFilter; + + "VoucherTransferred(uint256,uint256,uint256,address)"( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + newBuyerId?: BigNumberish | null, + executedBy?: null + ): VoucherTransferredEventFilter; + VoucherTransferred( + offerId?: BigNumberish | null, + exchangeId?: BigNumberish | null, + newBuyerId?: BigNumberish | null, + executedBy?: null + ): VoucherTransferredEventFilter; + }; + + estimateGas: { + commitToPriceDiscoveryOffer( + _buyer: string, + _tokenIdOrOfferId: BigNumberish, + _priceDiscovery: BosonTypes.PriceDiscoveryStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + commitToPriceDiscoveryOffer( + _buyer: string, + _tokenIdOrOfferId: BigNumberish, + _priceDiscovery: BosonTypes.PriceDiscoveryStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/IDRFeeMutualizer.ts b/packages/ethers-sdk/src/contracts/IDRFeeMutualizer.ts new file mode 100644 index 000000000..012e5a5f9 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IDRFeeMutualizer.ts @@ -0,0 +1,243 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export interface IDRFeeMutualizerInterface extends utils.Interface { + contractName: "IDRFeeMutualizer"; + functions: { + "isSellerCovered(uint256,uint256,address,uint256)": FunctionFragment; + "requestDRFee(uint256,uint256,address,uint256,uint256)": FunctionFragment; + "returnDRFee(uint256,uint256)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "isSellerCovered", + values: [BigNumberish, BigNumberish, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "requestDRFee", + values: [BigNumberish, BigNumberish, string, BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "returnDRFee", + values: [BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "isSellerCovered", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "requestDRFee", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "returnDRFee", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface IDRFeeMutualizer extends BaseContract { + contractName: "IDRFeeMutualizer"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IDRFeeMutualizerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean]>; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _feeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _feeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _feeAmount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _feeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + isSellerCovered( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _disputeResolverId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + requestDRFee( + _sellerId: BigNumberish, + _feeAmount: BigNumberish, + _tokenAddress: string, + _exchangeId: BigNumberish, + _disputeResolverId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + returnDRFee( + _exchangeId: BigNumberish, + _feeAmount: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/OpenSeaWrapper.ts b/packages/ethers-sdk/src/contracts/OpenSeaWrapper.ts new file mode 100644 index 000000000..00728891d --- /dev/null +++ b/packages/ethers-sdk/src/contracts/OpenSeaWrapper.ts @@ -0,0 +1,879 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace SeaportInterface { + export type OfferItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; + }; + + export type OfferItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber + ] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; + }; + + export type ConsiderationItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; + recipient: string; + }; + + export type ConsiderationItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber, + string + ] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; + recipient: string; + }; + + export type OrderParametersStruct = { + offerer: string; + zone: string; + offer: SeaportInterface.OfferItemStruct[]; + consideration: SeaportInterface.ConsiderationItemStruct[]; + orderType: BigNumberish; + startTime: BigNumberish; + endTime: BigNumberish; + zoneHash: BytesLike; + salt: BigNumberish; + conduitKey: BytesLike; + totalOriginalConsiderationItems: BigNumberish; + }; + + export type OrderParametersStructOutput = [ + string, + string, + SeaportInterface.OfferItemStructOutput[], + SeaportInterface.ConsiderationItemStructOutput[], + number, + BigNumber, + BigNumber, + string, + BigNumber, + string, + BigNumber + ] & { + offerer: string; + zone: string; + offer: SeaportInterface.OfferItemStructOutput[]; + consideration: SeaportInterface.ConsiderationItemStructOutput[]; + orderType: number; + startTime: BigNumber; + endTime: BigNumber; + zoneHash: string; + salt: BigNumber; + conduitKey: string; + totalOriginalConsiderationItems: BigNumber; + }; + + export type AdvancedOrderStruct = { + parameters: SeaportInterface.OrderParametersStruct; + numerator: BigNumberish; + denominator: BigNumberish; + signature: BytesLike; + extraData: BytesLike; + }; + + export type AdvancedOrderStructOutput = [ + SeaportInterface.OrderParametersStructOutput, + BigNumber, + BigNumber, + string, + string + ] & { + parameters: SeaportInterface.OrderParametersStructOutput; + numerator: BigNumber; + denominator: BigNumber; + signature: string; + extraData: string; + }; +} + +export interface OpenSeaWrapperInterface extends utils.Interface { + contractName: "OpenSeaWrapper"; + functions: { + "approve(address,uint256)": FunctionFragment; + "balanceOf(address)": FunctionFragment; + "finalizeAuction(uint256,((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes))": FunctionFragment; + "getApproved(uint256)": FunctionFragment; + "isApprovedForAll(address,address)": FunctionFragment; + "listFixedPriceOrder(uint256[],uint256,uint256)": FunctionFragment; + "name()": FunctionFragment; + "owner()": FunctionFragment; + "ownerOf(uint256)": FunctionFragment; + "renounceOwnership()": FunctionFragment; + "safeTransferFrom(address,address,uint256)": FunctionFragment; + "setApprovalForAll(address,bool)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + "symbol()": FunctionFragment; + "tokenURI(uint256)": FunctionFragment; + "transferFrom(address,address,uint256)": FunctionFragment; + "transferOwnership(address)": FunctionFragment; + "unwrap(uint256)": FunctionFragment; + "wrapForAuction(uint256[])": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "approve", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; + encodeFunctionData( + functionFragment: "finalizeAuction", + values: [BigNumberish, SeaportInterface.AdvancedOrderStruct] + ): string; + encodeFunctionData( + functionFragment: "getApproved", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "isApprovedForAll", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "listFixedPriceOrder", + values: [BigNumberish[], BigNumberish, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "ownerOf", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "renounceOwnership", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setApprovalForAll", + values: [string, boolean] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "tokenURI", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferOwnership", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "unwrap", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "wrapForAuction", + values: [BigNumberish[]] + ): string; + + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "finalizeAuction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getApproved", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isApprovedForAll", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "listFixedPriceOrder", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "renounceOwnership", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setApprovalForAll", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferOwnership", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "unwrap", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "wrapForAuction", + data: BytesLike + ): Result; + + events: { + "Approval(address,address,uint256)": EventFragment; + "ApprovalForAll(address,address,bool)": EventFragment; + "OwnershipTransferred(address,address)": EventFragment; + "Transfer(address,address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; + getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; +} + +export type ApprovalEvent = TypedEvent< + [string, string, BigNumber], + { owner: string; approved: string; tokenId: BigNumber } +>; + +export type ApprovalEventFilter = TypedEventFilter; + +export type ApprovalForAllEvent = TypedEvent< + [string, string, boolean], + { owner: string; operator: string; approved: boolean } +>; + +export type ApprovalForAllEventFilter = TypedEventFilter; + +export type OwnershipTransferredEvent = TypedEvent< + [string, string], + { previousOwner: string; newOwner: string } +>; + +export type OwnershipTransferredEventFilter = + TypedEventFilter; + +export type TransferEvent = TypedEvent< + [string, string, BigNumber], + { from: string; to: string; tokenId: BigNumber } +>; + +export type TransferEventFilter = TypedEventFilter; + +export interface OpenSeaWrapper extends BaseContract { + contractName: "OpenSeaWrapper"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: OpenSeaWrapperInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + approve( + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + balanceOf(owner: string, overrides?: CallOverrides): Promise<[BigNumber]>; + + finalizeAuction( + _tokenId: BigNumberish, + _buyerOrder: SeaportInterface.AdvancedOrderStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getApproved( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + isApprovedForAll( + owner: string, + operator: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + listFixedPriceOrder( + _tokenIds: BigNumberish[], + _price: BigNumberish, + _endTime: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise<[string]>; + + owner(overrides?: CallOverrides): Promise<[string]>; + + ownerOf( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: string, + to: string, + tokenId: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setApprovalForAll( + operator: string, + approved: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + _interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + + symbol(overrides?: CallOverrides): Promise<[string]>; + + tokenURI( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + transferFrom( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + unwrap( + _tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + wrapForAuction( + _tokenIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + approve( + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + balanceOf(owner: string, overrides?: CallOverrides): Promise; + + finalizeAuction( + _tokenId: BigNumberish, + _buyerOrder: SeaportInterface.AdvancedOrderStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getApproved( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: string, + operator: string, + overrides?: CallOverrides + ): Promise; + + listFixedPriceOrder( + _tokenIds: BigNumberish[], + _price: BigNumberish, + _endTime: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + owner(overrides?: CallOverrides): Promise; + + ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: string, + to: string, + tokenId: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setApprovalForAll( + operator: string, + approved: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + _interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise; + + transferFrom( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + unwrap( + _tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + wrapForAuction( + _tokenIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + approve( + to: string, + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + balanceOf(owner: string, overrides?: CallOverrides): Promise; + + finalizeAuction( + _tokenId: BigNumberish, + _buyerOrder: SeaportInterface.AdvancedOrderStruct, + overrides?: CallOverrides + ): Promise; + + getApproved( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: string, + operator: string, + overrides?: CallOverrides + ): Promise; + + listFixedPriceOrder( + _tokenIds: BigNumberish[], + _price: BigNumberish, + _endTime: BigNumberish, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + owner(overrides?: CallOverrides): Promise; + + ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise; + + renounceOwnership(overrides?: CallOverrides): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: string, + to: string, + tokenId: BigNumberish, + data: BytesLike, + overrides?: CallOverrides + ): Promise; + + setApprovalForAll( + operator: string, + approved: boolean, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + _interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise; + + transferFrom( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: CallOverrides + ): Promise; + + unwrap(_tokenId: BigNumberish, overrides?: CallOverrides): Promise; + + wrapForAuction( + _tokenIds: BigNumberish[], + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "Approval(address,address,uint256)"( + owner?: string | null, + approved?: string | null, + tokenId?: BigNumberish | null + ): ApprovalEventFilter; + Approval( + owner?: string | null, + approved?: string | null, + tokenId?: BigNumberish | null + ): ApprovalEventFilter; + + "ApprovalForAll(address,address,bool)"( + owner?: string | null, + operator?: string | null, + approved?: null + ): ApprovalForAllEventFilter; + ApprovalForAll( + owner?: string | null, + operator?: string | null, + approved?: null + ): ApprovalForAllEventFilter; + + "OwnershipTransferred(address,address)"( + previousOwner?: string | null, + newOwner?: string | null + ): OwnershipTransferredEventFilter; + OwnershipTransferred( + previousOwner?: string | null, + newOwner?: string | null + ): OwnershipTransferredEventFilter; + + "Transfer(address,address,uint256)"( + from?: string | null, + to?: string | null, + tokenId?: BigNumberish | null + ): TransferEventFilter; + Transfer( + from?: string | null, + to?: string | null, + tokenId?: BigNumberish | null + ): TransferEventFilter; + }; + + estimateGas: { + approve( + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + balanceOf(owner: string, overrides?: CallOverrides): Promise; + + finalizeAuction( + _tokenId: BigNumberish, + _buyerOrder: SeaportInterface.AdvancedOrderStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getApproved( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: string, + operator: string, + overrides?: CallOverrides + ): Promise; + + listFixedPriceOrder( + _tokenIds: BigNumberish[], + _price: BigNumberish, + _endTime: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + owner(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: string, + to: string, + tokenId: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setApprovalForAll( + operator: string, + approved: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + _interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferFrom( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + unwrap( + _tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + wrapForAuction( + _tokenIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + approve( + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + balanceOf( + owner: string, + overrides?: CallOverrides + ): Promise; + + finalizeAuction( + _tokenId: BigNumberish, + _buyerOrder: SeaportInterface.AdvancedOrderStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getApproved( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isApprovedForAll( + owner: string, + operator: string, + overrides?: CallOverrides + ): Promise; + + listFixedPriceOrder( + _tokenIds: BigNumberish[], + _price: BigNumberish, + _endTime: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + owner(overrides?: CallOverrides): Promise; + + ownerOf( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + renounceOwnership( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256)"( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + "safeTransferFrom(address,address,uint256,bytes)"( + from: string, + to: string, + tokenId: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + setApprovalForAll( + operator: string, + approved: boolean, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + supportsInterface( + _interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + symbol(overrides?: CallOverrides): Promise; + + tokenURI( + tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferFrom( + from: string, + to: string, + tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + transferOwnership( + newOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + unwrap( + _tokenId: BigNumberish, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + wrapForAuction( + _tokenIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/OpenSeaWrapperFactory.ts b/packages/ethers-sdk/src/contracts/OpenSeaWrapperFactory.ts new file mode 100644 index 000000000..af83a355b --- /dev/null +++ b/packages/ethers-sdk/src/contracts/OpenSeaWrapperFactory.ts @@ -0,0 +1,121 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export interface OpenSeaWrapperFactoryInterface extends utils.Interface { + contractName: "OpenSeaWrapperFactory"; + functions: { + "create(address)": FunctionFragment; + "getWrapper(address)": FunctionFragment; + }; + + encodeFunctionData(functionFragment: "create", values: [string]): string; + encodeFunctionData(functionFragment: "getWrapper", values: [string]): string; + + decodeFunctionResult(functionFragment: "create", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "getWrapper", data: BytesLike): Result; + + events: {}; +} + +export interface OpenSeaWrapperFactory extends BaseContract { + contractName: "OpenSeaWrapperFactory"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: OpenSeaWrapperFactoryInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + create( + _voucherContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getWrapper( + _voucherContract: string, + overrides?: CallOverrides + ): Promise<[string]>; + }; + + create( + _voucherContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getWrapper( + _voucherContract: string, + overrides?: CallOverrides + ): Promise; + + callStatic: { + create( + _voucherContract: string, + overrides?: CallOverrides + ): Promise; + + getWrapper( + _voucherContract: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + create( + _voucherContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getWrapper( + _voucherContract: string, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + create( + _voucherContract: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + getWrapper( + _voucherContract: string, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/Seaport.ts b/packages/ethers-sdk/src/contracts/Seaport.ts new file mode 100644 index 000000000..e8608abb9 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/Seaport.ts @@ -0,0 +1,1193 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export type SpentItemStruct = { + itemType: BigNumberish; + token: string; + identifier: BigNumberish; + amount: BigNumberish; +}; + +export type SpentItemStructOutput = [number, string, BigNumber, BigNumber] & { + itemType: number; + token: string; + identifier: BigNumber; + amount: BigNumber; +}; + +export type ReceivedItemStruct = { + itemType: BigNumberish; + token: string; + identifier: BigNumberish; + amount: BigNumberish; + recipient: string; +}; + +export type ReceivedItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + string +] & { + itemType: number; + token: string; + identifier: BigNumber; + amount: BigNumber; + recipient: string; +}; + +export type OfferItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; +}; + +export type OfferItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber +] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; +}; + +export type ConsiderationItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; + recipient: string; +}; + +export type ConsiderationItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber, + string +] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; + recipient: string; +}; + +export type OrderParametersStruct = { + offerer: string; + zone: string; + offer: OfferItemStruct[]; + consideration: ConsiderationItemStruct[]; + orderType: BigNumberish; + startTime: BigNumberish; + endTime: BigNumberish; + zoneHash: BytesLike; + salt: BigNumberish; + conduitKey: BytesLike; + totalOriginalConsiderationItems: BigNumberish; +}; + +export type OrderParametersStructOutput = [ + string, + string, + OfferItemStructOutput[], + ConsiderationItemStructOutput[], + number, + BigNumber, + BigNumber, + string, + BigNumber, + string, + BigNumber +] & { + offerer: string; + zone: string; + offer: OfferItemStructOutput[]; + consideration: ConsiderationItemStructOutput[]; + orderType: number; + startTime: BigNumber; + endTime: BigNumber; + zoneHash: string; + salt: BigNumber; + conduitKey: string; + totalOriginalConsiderationItems: BigNumber; +}; + +export type OrderComponentsStruct = { + offerer: string; + zone: string; + offer: OfferItemStruct[]; + consideration: ConsiderationItemStruct[]; + orderType: BigNumberish; + startTime: BigNumberish; + endTime: BigNumberish; + zoneHash: BytesLike; + salt: BigNumberish; + conduitKey: BytesLike; + counter: BigNumberish; +}; + +export type OrderComponentsStructOutput = [ + string, + string, + OfferItemStructOutput[], + ConsiderationItemStructOutput[], + number, + BigNumber, + BigNumber, + string, + BigNumber, + string, + BigNumber +] & { + offerer: string; + zone: string; + offer: OfferItemStructOutput[]; + consideration: ConsiderationItemStructOutput[]; + orderType: number; + startTime: BigNumber; + endTime: BigNumber; + zoneHash: string; + salt: BigNumber; + conduitKey: string; + counter: BigNumber; +}; + +export type AdvancedOrderStruct = { + parameters: OrderParametersStruct; + numerator: BigNumberish; + denominator: BigNumberish; + signature: BytesLike; + extraData: BytesLike; +}; + +export type AdvancedOrderStructOutput = [ + OrderParametersStructOutput, + BigNumber, + BigNumber, + string, + string +] & { + parameters: OrderParametersStructOutput; + numerator: BigNumber; + denominator: BigNumber; + signature: string; + extraData: string; +}; + +export type CriteriaResolverStruct = { + orderIndex: BigNumberish; + side: BigNumberish; + index: BigNumberish; + identifier: BigNumberish; + criteriaProof: BytesLike[]; +}; + +export type CriteriaResolverStructOutput = [ + BigNumber, + number, + BigNumber, + BigNumber, + string[] +] & { + orderIndex: BigNumber; + side: number; + index: BigNumber; + identifier: BigNumber; + criteriaProof: string[]; +}; + +export type FulfillmentComponentStruct = { + orderIndex: BigNumberish; + itemIndex: BigNumberish; +}[]; + +export type FulfillmentComponentStructOutput = ([BigNumber, BigNumber] & { + orderIndex: BigNumber; + itemIndex: BigNumber; +})[]; + +export type ExecutionStruct = { + item: ReceivedItemStruct; + offerer: string; + conduitKey: BytesLike; +}; + +export type ExecutionStructOutput = [ + ReceivedItemStructOutput, + string, + string +] & { item: ReceivedItemStructOutput; offerer: string; conduitKey: string }; + +export type OrderStruct = { + parameters: OrderParametersStruct; + signature: BytesLike; +}; + +export type OrderStructOutput = [OrderParametersStructOutput, string] & { + parameters: OrderParametersStructOutput; + signature: string; +}; + +export type AdditionalRecipientStruct = { + amount: BigNumberish; + recipient: string; +}; + +export type AdditionalRecipientStructOutput = [BigNumber, string] & { + amount: BigNumber; + recipient: string; +}; + +export type BasicOrderParametersStruct = { + considerationToken: string; + considerationIdentifier: BigNumberish; + considerationAmount: BigNumberish; + offerer: string; + zone: string; + offerToken: string; + offerIdentifier: BigNumberish; + offerAmount: BigNumberish; + basicOrderType: BigNumberish; + startTime: BigNumberish; + endTime: BigNumberish; + zoneHash: BytesLike; + salt: BigNumberish; + offererConduitKey: BytesLike; + fulfillerConduitKey: BytesLike; + totalOriginalAdditionalRecipients: BigNumberish; + additionalRecipients: AdditionalRecipientStruct[]; + signature: BytesLike; +}; + +export type BasicOrderParametersStructOutput = [ + string, + BigNumber, + BigNumber, + string, + string, + string, + BigNumber, + BigNumber, + number, + BigNumber, + BigNumber, + string, + BigNumber, + string, + string, + BigNumber, + AdditionalRecipientStructOutput[], + string +] & { + considerationToken: string; + considerationIdentifier: BigNumber; + considerationAmount: BigNumber; + offerer: string; + zone: string; + offerToken: string; + offerIdentifier: BigNumber; + offerAmount: BigNumber; + basicOrderType: number; + startTime: BigNumber; + endTime: BigNumber; + zoneHash: string; + salt: BigNumber; + offererConduitKey: string; + fulfillerConduitKey: string; + totalOriginalAdditionalRecipients: BigNumber; + additionalRecipients: AdditionalRecipientStructOutput[]; + signature: string; +}; + +export type FulfillmentStruct = { + offerComponents: FulfillmentComponentStruct[]; + considerationComponents: FulfillmentComponentStruct[]; +}; + +export type FulfillmentStructOutput = [ + FulfillmentComponentStructOutput[], + FulfillmentComponentStructOutput[] +] & { + offerComponents: FulfillmentComponentStructOutput[]; + considerationComponents: FulfillmentComponentStructOutput[]; +}; + +export interface SeaportInterface extends utils.Interface { + contractName: "Seaport"; + functions: { + "__activateTstore()": FunctionFragment; + "cancel((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256)[])": FunctionFragment; + "fulfillAdvancedOrder(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes),(uint256,uint8,uint256,uint256,bytes32[])[],bytes32,address)": FunctionFragment; + "fulfillAvailableAdvancedOrders(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes)[],(uint256,uint8,uint256,uint256,bytes32[])[],tuple[][],tuple[][],bytes32,address,uint256)": FunctionFragment; + "fulfillAvailableOrders(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),bytes)[],tuple[][],tuple[][],bytes32,uint256)": FunctionFragment; + "fulfillBasicOrder((address,uint256,uint256,address,address,address,uint256,uint256,uint8,uint256,uint256,bytes32,uint256,bytes32,bytes32,uint256,(uint256,address)[],bytes))": FunctionFragment; + "fulfillBasicOrder_efficient_6GL6yc((address,uint256,uint256,address,address,address,uint256,uint256,uint8,uint256,uint256,bytes32,uint256,bytes32,bytes32,uint256,(uint256,address)[],bytes))": FunctionFragment; + "fulfillOrder(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),bytes),bytes32)": FunctionFragment; + "getContractOffererNonce(address)": FunctionFragment; + "getCounter(address)": FunctionFragment; + "getOrderHash((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256))": FunctionFragment; + "getOrderStatus(bytes32)": FunctionFragment; + "incrementCounter()": FunctionFragment; + "information()": FunctionFragment; + "matchAdvancedOrders(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes)[],(uint256,uint8,uint256,uint256,bytes32[])[],((uint256,uint256)[],(uint256,uint256)[])[],address)": FunctionFragment; + "matchOrders(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),bytes)[],((uint256,uint256)[],(uint256,uint256)[])[])": FunctionFragment; + "name()": FunctionFragment; + "validate(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),bytes)[])": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "__activateTstore", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "cancel", + values: [OrderComponentsStruct[]] + ): string; + encodeFunctionData( + functionFragment: "fulfillAdvancedOrder", + values: [AdvancedOrderStruct, CriteriaResolverStruct[], BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "fulfillAvailableAdvancedOrders", + values: [ + AdvancedOrderStruct[], + CriteriaResolverStruct[], + FulfillmentComponentStruct[], + FulfillmentComponentStruct[], + BytesLike, + string, + BigNumberish + ] + ): string; + encodeFunctionData( + functionFragment: "fulfillAvailableOrders", + values: [ + OrderStruct[], + FulfillmentComponentStruct[], + FulfillmentComponentStruct[], + BytesLike, + BigNumberish + ] + ): string; + encodeFunctionData( + functionFragment: "fulfillBasicOrder", + values: [BasicOrderParametersStruct] + ): string; + encodeFunctionData( + functionFragment: "fulfillBasicOrder_efficient_6GL6yc", + values: [BasicOrderParametersStruct] + ): string; + encodeFunctionData( + functionFragment: "fulfillOrder", + values: [OrderStruct, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "getContractOffererNonce", + values: [string] + ): string; + encodeFunctionData(functionFragment: "getCounter", values: [string]): string; + encodeFunctionData( + functionFragment: "getOrderHash", + values: [OrderComponentsStruct] + ): string; + encodeFunctionData( + functionFragment: "getOrderStatus", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "incrementCounter", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "information", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "matchAdvancedOrders", + values: [ + AdvancedOrderStruct[], + CriteriaResolverStruct[], + FulfillmentStruct[], + string + ] + ): string; + encodeFunctionData( + functionFragment: "matchOrders", + values: [OrderStruct[], FulfillmentStruct[]] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData( + functionFragment: "validate", + values: [OrderStruct[]] + ): string; + + decodeFunctionResult( + functionFragment: "__activateTstore", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "cancel", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "fulfillAdvancedOrder", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "fulfillAvailableAdvancedOrders", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "fulfillAvailableOrders", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "fulfillBasicOrder", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "fulfillBasicOrder_efficient_6GL6yc", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "fulfillOrder", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getContractOffererNonce", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "getCounter", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getOrderHash", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getOrderStatus", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "incrementCounter", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "information", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "matchAdvancedOrders", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "matchOrders", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "validate", data: BytesLike): Result; + + events: { + "CounterIncremented(uint256,address)": EventFragment; + "OrderCancelled(bytes32,address,address)": EventFragment; + "OrderFulfilled(bytes32,address,address,address,tuple[],tuple[])": EventFragment; + "OrderValidated(bytes32,tuple)": EventFragment; + "OrdersMatched(bytes32[])": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "CounterIncremented"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OrderCancelled"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OrderFulfilled"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OrderValidated"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OrdersMatched"): EventFragment; +} + +export type CounterIncrementedEvent = TypedEvent< + [BigNumber, string], + { newCounter: BigNumber; offerer: string } +>; + +export type CounterIncrementedEventFilter = + TypedEventFilter; + +export type OrderCancelledEvent = TypedEvent< + [string, string, string], + { orderHash: string; offerer: string; zone: string } +>; + +export type OrderCancelledEventFilter = TypedEventFilter; + +export type OrderFulfilledEvent = TypedEvent< + [ + string, + string, + string, + string, + SpentItemStructOutput[], + ReceivedItemStructOutput[] + ], + { + orderHash: string; + offerer: string; + zone: string; + recipient: string; + offer: SpentItemStructOutput[]; + consideration: ReceivedItemStructOutput[]; + } +>; + +export type OrderFulfilledEventFilter = TypedEventFilter; + +export type OrderValidatedEvent = TypedEvent< + [string, OrderParametersStructOutput], + { orderHash: string; orderParameters: OrderParametersStructOutput } +>; + +export type OrderValidatedEventFilter = TypedEventFilter; + +export type OrdersMatchedEvent = TypedEvent< + [string[]], + { orderHashes: string[] } +>; + +export type OrdersMatchedEventFilter = TypedEventFilter; + +export interface Seaport extends BaseContract { + contractName: "Seaport"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SeaportInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + __activateTstore( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + cancel( + orders: OrderComponentsStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + fulfillAdvancedOrder( + arg0: AdvancedOrderStruct, + arg1: CriteriaResolverStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentComponentStruct[], + arg3: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableOrders( + arg0: OrderStruct[], + arg1: FulfillmentComponentStruct[], + arg2: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder_efficient_6GL6yc( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillOrder( + arg0: OrderStruct, + fulfillerConduitKey: BytesLike, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + getContractOffererNonce( + contractOfferer: string, + overrides?: CallOverrides + ): Promise<[BigNumber] & { nonce: BigNumber }>; + + getCounter( + offerer: string, + overrides?: CallOverrides + ): Promise<[BigNumber] & { counter: BigNumber }>; + + getOrderHash( + arg0: OrderComponentsStruct, + overrides?: CallOverrides + ): Promise<[string] & { orderHash: string }>; + + getOrderStatus( + orderHash: BytesLike, + overrides?: CallOverrides + ): Promise< + [boolean, boolean, BigNumber, BigNumber] & { + isValidated: boolean; + isCancelled: boolean; + totalFilled: BigNumber; + totalSize: BigNumber; + } + >; + + incrementCounter( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + information( + overrides?: CallOverrides + ): Promise< + [string, string, string] & { + version: string; + domainSeparator: string; + conduitController: string; + } + >; + + matchAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + matchOrders( + arg0: OrderStruct[], + arg1: FulfillmentStruct[], + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise<[string]>; + + validate( + arg0: OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + __activateTstore( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + cancel( + orders: OrderComponentsStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + fulfillAdvancedOrder( + arg0: AdvancedOrderStruct, + arg1: CriteriaResolverStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentComponentStruct[], + arg3: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableOrders( + arg0: OrderStruct[], + arg1: FulfillmentComponentStruct[], + arg2: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder_efficient_6GL6yc( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillOrder( + arg0: OrderStruct, + fulfillerConduitKey: BytesLike, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + getContractOffererNonce( + contractOfferer: string, + overrides?: CallOverrides + ): Promise; + + getCounter(offerer: string, overrides?: CallOverrides): Promise; + + getOrderHash( + arg0: OrderComponentsStruct, + overrides?: CallOverrides + ): Promise; + + getOrderStatus( + orderHash: BytesLike, + overrides?: CallOverrides + ): Promise< + [boolean, boolean, BigNumber, BigNumber] & { + isValidated: boolean; + isCancelled: boolean; + totalFilled: BigNumber; + totalSize: BigNumber; + } + >; + + incrementCounter( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + information( + overrides?: CallOverrides + ): Promise< + [string, string, string] & { + version: string; + domainSeparator: string; + conduitController: string; + } + >; + + matchAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + matchOrders( + arg0: OrderStruct[], + arg1: FulfillmentStruct[], + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + validate( + arg0: OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + __activateTstore(overrides?: CallOverrides): Promise; + + cancel( + orders: OrderComponentsStruct[], + overrides?: CallOverrides + ): Promise; + + fulfillAdvancedOrder( + arg0: AdvancedOrderStruct, + arg1: CriteriaResolverStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + overrides?: CallOverrides + ): Promise; + + fulfillAvailableAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentComponentStruct[], + arg3: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + maximumFulfilled: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean[], ExecutionStructOutput[]]>; + + fulfillAvailableOrders( + arg0: OrderStruct[], + arg1: FulfillmentComponentStruct[], + arg2: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + maximumFulfilled: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean[], ExecutionStructOutput[]]>; + + fulfillBasicOrder( + arg0: BasicOrderParametersStruct, + overrides?: CallOverrides + ): Promise; + + fulfillBasicOrder_efficient_6GL6yc( + arg0: BasicOrderParametersStruct, + overrides?: CallOverrides + ): Promise; + + fulfillOrder( + arg0: OrderStruct, + fulfillerConduitKey: BytesLike, + overrides?: CallOverrides + ): Promise; + + getContractOffererNonce( + contractOfferer: string, + overrides?: CallOverrides + ): Promise; + + getCounter(offerer: string, overrides?: CallOverrides): Promise; + + getOrderHash( + arg0: OrderComponentsStruct, + overrides?: CallOverrides + ): Promise; + + getOrderStatus( + orderHash: BytesLike, + overrides?: CallOverrides + ): Promise< + [boolean, boolean, BigNumber, BigNumber] & { + isValidated: boolean; + isCancelled: boolean; + totalFilled: BigNumber; + totalSize: BigNumber; + } + >; + + incrementCounter(overrides?: CallOverrides): Promise; + + information( + overrides?: CallOverrides + ): Promise< + [string, string, string] & { + version: string; + domainSeparator: string; + conduitController: string; + } + >; + + matchAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentStruct[], + recipient: string, + overrides?: CallOverrides + ): Promise; + + matchOrders( + arg0: OrderStruct[], + arg1: FulfillmentStruct[], + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + validate(arg0: OrderStruct[], overrides?: CallOverrides): Promise; + }; + + filters: { + "CounterIncremented(uint256,address)"( + newCounter?: null, + offerer?: string | null + ): CounterIncrementedEventFilter; + CounterIncremented( + newCounter?: null, + offerer?: string | null + ): CounterIncrementedEventFilter; + + "OrderCancelled(bytes32,address,address)"( + orderHash?: null, + offerer?: string | null, + zone?: string | null + ): OrderCancelledEventFilter; + OrderCancelled( + orderHash?: null, + offerer?: string | null, + zone?: string | null + ): OrderCancelledEventFilter; + + "OrderFulfilled(bytes32,address,address,address,tuple[],tuple[])"( + orderHash?: null, + offerer?: string | null, + zone?: string | null, + recipient?: null, + offer?: null, + consideration?: null + ): OrderFulfilledEventFilter; + OrderFulfilled( + orderHash?: null, + offerer?: string | null, + zone?: string | null, + recipient?: null, + offer?: null, + consideration?: null + ): OrderFulfilledEventFilter; + + "OrderValidated(bytes32,tuple)"( + orderHash?: null, + orderParameters?: null + ): OrderValidatedEventFilter; + OrderValidated( + orderHash?: null, + orderParameters?: null + ): OrderValidatedEventFilter; + + "OrdersMatched(bytes32[])"(orderHashes?: null): OrdersMatchedEventFilter; + OrdersMatched(orderHashes?: null): OrdersMatchedEventFilter; + }; + + estimateGas: { + __activateTstore( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + cancel( + orders: OrderComponentsStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + fulfillAdvancedOrder( + arg0: AdvancedOrderStruct, + arg1: CriteriaResolverStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentComponentStruct[], + arg3: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableOrders( + arg0: OrderStruct[], + arg1: FulfillmentComponentStruct[], + arg2: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder_efficient_6GL6yc( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillOrder( + arg0: OrderStruct, + fulfillerConduitKey: BytesLike, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + getContractOffererNonce( + contractOfferer: string, + overrides?: CallOverrides + ): Promise; + + getCounter(offerer: string, overrides?: CallOverrides): Promise; + + getOrderHash( + arg0: OrderComponentsStruct, + overrides?: CallOverrides + ): Promise; + + getOrderStatus( + orderHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + incrementCounter( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + information(overrides?: CallOverrides): Promise; + + matchAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + matchOrders( + arg0: OrderStruct[], + arg1: FulfillmentStruct[], + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + validate( + arg0: OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + __activateTstore( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + cancel( + orders: OrderComponentsStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + fulfillAdvancedOrder( + arg0: AdvancedOrderStruct, + arg1: CriteriaResolverStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentComponentStruct[], + arg3: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + recipient: string, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillAvailableOrders( + arg0: OrderStruct[], + arg1: FulfillmentComponentStruct[], + arg2: FulfillmentComponentStruct[], + fulfillerConduitKey: BytesLike, + maximumFulfilled: BigNumberish, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillBasicOrder_efficient_6GL6yc( + arg0: BasicOrderParametersStruct, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + fulfillOrder( + arg0: OrderStruct, + fulfillerConduitKey: BytesLike, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + getContractOffererNonce( + contractOfferer: string, + overrides?: CallOverrides + ): Promise; + + getCounter( + offerer: string, + overrides?: CallOverrides + ): Promise; + + getOrderHash( + arg0: OrderComponentsStruct, + overrides?: CallOverrides + ): Promise; + + getOrderStatus( + orderHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + incrementCounter( + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + information(overrides?: CallOverrides): Promise; + + matchAdvancedOrders( + arg0: AdvancedOrderStruct[], + arg1: CriteriaResolverStruct[], + arg2: FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + matchOrders( + arg0: OrderStruct[], + arg1: FulfillmentStruct[], + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + validate( + arg0: OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/SeaportInterface.ts b/packages/ethers-sdk/src/contracts/SeaportInterface.ts new file mode 100644 index 000000000..d3a89294a --- /dev/null +++ b/packages/ethers-sdk/src/contracts/SeaportInterface.ts @@ -0,0 +1,359 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import { FunctionFragment, Result } from "@ethersproject/abi"; +import { Listener, Provider } from "@ethersproject/providers"; +import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; + +export declare namespace SeaportInterface { + export type OfferItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; + }; + + export type OfferItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber + ] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; + }; + + export type ConsiderationItemStruct = { + itemType: BigNumberish; + token: string; + identifierOrCriteria: BigNumberish; + startAmount: BigNumberish; + endAmount: BigNumberish; + recipient: string; + }; + + export type ConsiderationItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + BigNumber, + string + ] & { + itemType: number; + token: string; + identifierOrCriteria: BigNumber; + startAmount: BigNumber; + endAmount: BigNumber; + recipient: string; + }; + + export type OrderParametersStruct = { + offerer: string; + zone: string; + offer: SeaportInterface.OfferItemStruct[]; + consideration: SeaportInterface.ConsiderationItemStruct[]; + orderType: BigNumberish; + startTime: BigNumberish; + endTime: BigNumberish; + zoneHash: BytesLike; + salt: BigNumberish; + conduitKey: BytesLike; + totalOriginalConsiderationItems: BigNumberish; + }; + + export type OrderParametersStructOutput = [ + string, + string, + SeaportInterface.OfferItemStructOutput[], + SeaportInterface.ConsiderationItemStructOutput[], + number, + BigNumber, + BigNumber, + string, + BigNumber, + string, + BigNumber + ] & { + offerer: string; + zone: string; + offer: SeaportInterface.OfferItemStructOutput[]; + consideration: SeaportInterface.ConsiderationItemStructOutput[]; + orderType: number; + startTime: BigNumber; + endTime: BigNumber; + zoneHash: string; + salt: BigNumber; + conduitKey: string; + totalOriginalConsiderationItems: BigNumber; + }; + + export type AdvancedOrderStruct = { + parameters: SeaportInterface.OrderParametersStruct; + numerator: BigNumberish; + denominator: BigNumberish; + signature: BytesLike; + extraData: BytesLike; + }; + + export type AdvancedOrderStructOutput = [ + SeaportInterface.OrderParametersStructOutput, + BigNumber, + BigNumber, + string, + string + ] & { + parameters: SeaportInterface.OrderParametersStructOutput; + numerator: BigNumber; + denominator: BigNumber; + signature: string; + extraData: string; + }; + + export type CriteriaResolverStruct = { + orderIndex: BigNumberish; + side: BigNumberish; + index: BigNumberish; + identifier: BigNumberish; + criteriaProof: BytesLike[]; + }; + + export type CriteriaResolverStructOutput = [ + BigNumber, + number, + BigNumber, + BigNumber, + string[] + ] & { + orderIndex: BigNumber; + side: number; + index: BigNumber; + identifier: BigNumber; + criteriaProof: string[]; + }; + + export type FulfillmentComponentStruct = { + orderIndex: BigNumberish; + itemIndex: BigNumberish; + }; + + export type FulfillmentComponentStructOutput = [BigNumber, BigNumber] & { + orderIndex: BigNumber; + itemIndex: BigNumber; + }; + + export type FulfillmentStruct = { + offerComponents: SeaportInterface.FulfillmentComponentStruct[]; + considerationComponents: SeaportInterface.FulfillmentComponentStruct[]; + }; + + export type FulfillmentStructOutput = [ + SeaportInterface.FulfillmentComponentStructOutput[], + SeaportInterface.FulfillmentComponentStructOutput[] + ] & { + offerComponents: SeaportInterface.FulfillmentComponentStructOutput[]; + considerationComponents: SeaportInterface.FulfillmentComponentStructOutput[]; + }; + + export type ReceivedItemStruct = { + itemType: BigNumberish; + token: string; + identifier: BigNumberish; + amount: BigNumberish; + recipient: string; + }; + + export type ReceivedItemStructOutput = [ + number, + string, + BigNumber, + BigNumber, + string + ] & { + itemType: number; + token: string; + identifier: BigNumber; + amount: BigNumber; + recipient: string; + }; + + export type ExecutionStruct = { + item: SeaportInterface.ReceivedItemStruct; + offerer: string; + conduitKey: BytesLike; + }; + + export type ExecutionStructOutput = [ + SeaportInterface.ReceivedItemStructOutput, + string, + string + ] & { + item: SeaportInterface.ReceivedItemStructOutput; + offerer: string; + conduitKey: string; + }; + + export type OrderStruct = { + parameters: SeaportInterface.OrderParametersStruct; + signature: BytesLike; + }; + + export type OrderStructOutput = [ + SeaportInterface.OrderParametersStructOutput, + string + ] & { + parameters: SeaportInterface.OrderParametersStructOutput; + signature: string; + }; +} + +export interface SeaportInterfaceInterface extends utils.Interface { + contractName: "SeaportInterface"; + functions: { + "matchAdvancedOrders(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),uint120,uint120,bytes,bytes)[],(uint256,uint8,uint256,uint256,bytes32[])[],((uint256,uint256)[],(uint256,uint256)[])[],address)": FunctionFragment; + "validate(((address,address,(uint8,address,uint256,uint256,uint256)[],(uint8,address,uint256,uint256,uint256,address)[],uint8,uint256,uint256,bytes32,uint256,bytes32,uint256),bytes)[])": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "matchAdvancedOrders", + values: [ + SeaportInterface.AdvancedOrderStruct[], + SeaportInterface.CriteriaResolverStruct[], + SeaportInterface.FulfillmentStruct[], + string + ] + ): string; + encodeFunctionData( + functionFragment: "validate", + values: [SeaportInterface.OrderStruct[]] + ): string; + + decodeFunctionResult( + functionFragment: "matchAdvancedOrders", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "validate", data: BytesLike): Result; + + events: {}; +} + +export interface SeaportInterface extends BaseContract { + contractName: "SeaportInterface"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SeaportInterfaceInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + matchAdvancedOrders( + orders: SeaportInterface.AdvancedOrderStruct[], + criteriaResolvers: SeaportInterface.CriteriaResolverStruct[], + fulfillments: SeaportInterface.FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + validate( + orders: SeaportInterface.OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + matchAdvancedOrders( + orders: SeaportInterface.AdvancedOrderStruct[], + criteriaResolvers: SeaportInterface.CriteriaResolverStruct[], + fulfillments: SeaportInterface.FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + validate( + orders: SeaportInterface.OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + callStatic: { + matchAdvancedOrders( + orders: SeaportInterface.AdvancedOrderStruct[], + criteriaResolvers: SeaportInterface.CriteriaResolverStruct[], + fulfillments: SeaportInterface.FulfillmentStruct[], + recipient: string, + overrides?: CallOverrides + ): Promise; + + validate( + orders: SeaportInterface.OrderStruct[], + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + matchAdvancedOrders( + orders: SeaportInterface.AdvancedOrderStruct[], + criteriaResolvers: SeaportInterface.CriteriaResolverStruct[], + fulfillments: SeaportInterface.FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + validate( + orders: SeaportInterface.OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; + + populateTransaction: { + matchAdvancedOrders( + orders: SeaportInterface.AdvancedOrderStruct[], + criteriaResolvers: SeaportInterface.CriteriaResolverStruct[], + fulfillments: SeaportInterface.FulfillmentStruct[], + recipient: string, + overrides?: PayableOverrides & { from?: string | Promise } + ): Promise; + + validate( + orders: SeaportInterface.OrderStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/factories/DRFeeMutualizer__factory.ts b/packages/ethers-sdk/src/contracts/factories/DRFeeMutualizer__factory.ts new file mode 100644 index 000000000..4873d5023 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/DRFeeMutualizer__factory.ts @@ -0,0 +1,856 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + DRFeeMutualizer, + DRFeeMutualizerInterface, +} from "../DRFeeMutualizer"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_bosonProtocol", + type: "address", + }, + { + internalType: "address", + name: "_forwarder", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [], + name: "AccessDenied", + type: "error", + }, + { + inputs: [], + name: "AgreementAlreadyActive", + type: "error", + }, + { + inputs: [], + name: "AgreementAlreadyExists", + type: "error", + }, + { + inputs: [], + name: "AgreementAlreadyVoided", + type: "error", + }, + { + inputs: [], + name: "AgreementIsVoided", + type: "error", + }, + { + inputs: [], + name: "AgreementTimePeriodTooLong", + type: "error", + }, + { + inputs: [], + name: "DepositsRestrictedToOwner", + type: "error", + }, + { + inputs: [], + name: "InsufficientPoolBalance", + type: "error", + }, + { + inputs: [], + name: "InsufficientValueReceived", + type: "error", + }, + { + inputs: [], + name: "InsufficientValueReceived", + type: "error", + }, + { + inputs: [], + name: "InvalidAgreementId", + type: "error", + }, + { + inputs: [], + name: "InvalidAmount", + type: "error", + }, + { + inputs: [], + name: "InvalidExchangeId", + type: "error", + }, + { + inputs: [], + name: "InvalidProtocolAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidRecipient", + type: "error", + }, + { + inputs: [], + name: "InvalidSellerId", + type: "error", + }, + { + inputs: [], + name: "MaxAmountPerTxMustBeGreaterThanZero", + type: "error", + }, + { + inputs: [], + name: "MaxTotalMustBeGreaterThanOrEqualToMaxPerTx", + type: "error", + }, + { + inputs: [], + name: "NativeNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NativeNotAllowed", + type: "error", + }, + { + inputs: [], + name: "OnlyProtocol", + type: "error", + }, + { + inputs: [], + name: "TimePeriodMustBeGreaterThanZero", + type: "error", + }, + { + inputs: [], + name: "TokenTransferFailed", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "agreementId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + ], + name: "AgreementActivated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "agreementId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + ], + name: "AgreementCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "agreementId", + type: "uint256", + }, + { + indexed: false, + internalType: "bool", + name: "premiumRefunded", + type: "bool", + }, + { + indexed: false, + internalType: "uint256", + name: "amountRefunded", + type: "uint256", + }, + ], + name: "AgreementVoided", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + ], + name: "DRFeeProvided", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "originalFeeAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "returnedAmount", + type: "uint256", + }, + ], + name: "DRFeeReturned", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "depositor", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "FundsDeposited", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "FundsWithdrawn", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "previousOwner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnershipTransferred", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + ], + name: "deposit", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "depositRestrictedToOwner", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "feeInfoByExchange", + outputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_agreementId", + type: "uint256", + }, + ], + name: "getAgreement", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "maxAmountPerTx", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxAmountTotal", + type: "uint256", + }, + { + internalType: "uint256", + name: "timePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "premium", + type: "uint256", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "bool", + name: "refundOnCancel", + type: "bool", + }, + { + internalType: "bool", + name: "isVoided", + type: "bool", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "totalMutualized", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + ], + internalType: "struct DRFeeMutualizer.Agreement", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + ], + name: "getAgreementId", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + ], + name: "getPoolBalance", + outputs: [ + { + internalType: "uint256", + name: "balance", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + ], + name: "isSellerCovered", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "forwarder", + type: "address", + }, + ], + name: "isTrustedForwarder", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_maxAmountPerTx", + type: "uint256", + }, + { + internalType: "uint256", + name: "_maxAmountTotal", + type: "uint256", + }, + { + internalType: "uint256", + name: "_timePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "_premium", + type: "uint256", + }, + { + internalType: "bool", + name: "_refundOnCancel", + type: "bool", + }, + ], + name: "newAgreement", + outputs: [ + { + internalType: "uint256", + name: "agreementId", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_agreementId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + ], + name: "payPremium", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "poolBalances", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "renounceOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_exchangeId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + ], + name: "requestDRFee", + outputs: [ + { + internalType: "bool", + name: "success", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_exchangeId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_returnedFeeAmount", + type: "uint256", + }, + ], + name: "returnDRFee", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "sellerToTokenToDisputeResolverToAgreement", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bool", + name: "_restricted", + type: "bool", + }, + ], + name: "setDepositRestriction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "transferOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_agreementId", + type: "uint256", + }, + ], + name: "voidAgreement", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "_to", + type: "address", + }, + ], + name: "withdraw", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +]; + +export class DRFeeMutualizer__factory { + static readonly abi = _abi; + static createInterface(): DRFeeMutualizerInterface { + return new utils.Interface(_abi) as DRFeeMutualizerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): DRFeeMutualizer { + return new Contract(address, _abi, signerOrProvider) as DRFeeMutualizer; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts index 9ebb77cda..3936838ed 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -2499,18 +2586,18 @@ const _abi = [ outputs: [ { components: [ - { - internalType: "uint256", - name: "id", - type: "uint256", - }, { internalType: "address payable", name: "wallet", type: "address", }, + { + internalType: "uint256", + name: "minRoyaltyPercentage", + type: "uint256", + }, ], - internalType: "struct BosonTypes.RoyaltyRecipient[]", + internalType: "struct BosonTypes.RoyaltyRecipientInfo[]", name: "royaltyRecipients", type: "tuple[]", }, diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonConfigHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonConfigHandler__factory.ts new file mode 100644 index 000000000..132d841f0 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonConfigHandler__factory.ts @@ -0,0 +1,1825 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonConfigHandler, + IBosonConfigHandlerInterface, +} from "../IBosonConfigHandler"; + +const _abi = [ + { + inputs: [], + name: "AccessDenied", + type: "error", + }, + { + inputs: [], + name: "AddressesAndCalldataLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AdminOrAuthToken", + type: "error", + }, + { + inputs: [], + name: "AgentAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "AgentFeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AmbiguousVoucherExpiry", + type: "error", + }, + { + inputs: [], + name: "AmountExceedsRangeOrNothingToBurn", + type: "error", + }, + { + inputs: [], + name: "ArrayLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AuthTokenMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleForTwinExists", + type: "error", + }, + { + inputs: [], + name: "BundleOfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleRequiresAtLeastOneTwinAndOneOffer", + type: "error", + }, + { + inputs: [], + name: "BundleTwinMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BuyerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "CannotCommit", + type: "error", + }, + { + inputs: [], + name: "CannotRemoveDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ClerkDeprecated", + type: "error", + }, + { + inputs: [], + name: "CloneCreationFailed", + type: "error", + }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, + { + inputs: [], + name: "DRUnsupportedFee", + type: "error", + }, + { + inputs: [], + name: "DirectInitializationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "DisputeHasExpired", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodHasElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodNotElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverFeeNotFound", + type: "error", + }, + { + inputs: [], + name: "DisputeStillValid", + type: "error", + }, + { + inputs: [], + name: "DuplicateDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "EscalationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "ExchangeAlreadyExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeForOfferExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeIdInReservedRange", + type: "error", + }, + { + inputs: [], + name: "ExchangeIsNotInAFinalState", + type: "error", + }, + { + inputs: [], + name: "ExternalCallFailed", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "FeeTableAssetNotSupported", + type: "error", + }, + { + inputs: [], + name: "FunctionNotAllowlisted", + type: "error", + }, + { + inputs: [], + name: "GroupHasCondition", + type: "error", + }, + { + inputs: [], + name: "GroupHasNoCondition", + type: "error", + }, + { + inputs: [], + name: "IncomingVoucherAlreadySet", + type: "error", + }, + { + inputs: [], + name: "InexistentAllowedSellersList", + type: "error", + }, + { + inputs: [], + name: "InexistentDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "InsufficientAvailableFunds", + type: "error", + }, + { + inputs: [], + name: "InsufficientTwinSupplyToCoverBundleOffers", + type: "error", + }, + { + inputs: [], + name: "InsufficientValueReceived", + type: "error", + }, + { + inputs: [], + name: "InteractionNotAllowed", + type: "error", + }, + { + inputs: [], + name: "InvalidAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidAgentFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidAmount", + type: "error", + }, + { + inputs: [], + name: "InvalidAmountToMint", + type: "error", + }, + { + inputs: [], + name: "InvalidAuthTokenType", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerPercent", + type: "error", + }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, + { + inputs: [], + name: "InvalidConditionParameters", + type: "error", + }, + { + inputs: [], + name: "InvalidConduitAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputePeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeTimeout", + type: "error", + }, + { + inputs: [], + name: "InvalidEscalationPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidFunctionName", + type: "error", + }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceType", + type: "error", + }, + { + inputs: [], + name: "InvalidQuantityAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeLength", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeStart", + type: "error", + }, + { + inputs: [], + name: "InvalidRedemptionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidResolutionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyFee", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyInfo", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyPercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipient", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipientId", + type: "error", + }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidSignature", + type: "error", + }, + { + inputs: [], + name: "InvalidState", + type: "error", + }, + { + inputs: [], + name: "InvalidSupplyAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeDisputeState", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeExchangeState", + type: "error", + }, + { + inputs: [], + name: "InvalidToAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenId", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinProperty", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinTokenRange", + type: "error", + }, + { + inputs: [], + name: "MaxCommitsReached", + type: "error", + }, + { + inputs: [], + name: "MustBeActive", + type: "error", + }, + { + inputs: [], + name: "NativeNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAddress", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAmount", + type: "error", + }, + { + inputs: [], + name: "NegativePriceNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NoPendingUpdateForAccount", + type: "error", + }, + { + inputs: [], + name: "NoReservedRangeForOffer", + type: "error", + }, + { + inputs: [], + name: "NoSilentMintAllowed", + type: "error", + }, + { + inputs: [], + name: "NoSuchAgent", + type: "error", + }, + { + inputs: [], + name: "NoSuchBundle", + type: "error", + }, + { + inputs: [], + name: "NoSuchBuyer", + type: "error", + }, + { + inputs: [], + name: "NoSuchCollection", + type: "error", + }, + { + inputs: [], + name: "NoSuchDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, + { + inputs: [], + name: "NoSuchExchange", + type: "error", + }, + { + inputs: [], + name: "NoSuchGroup", + type: "error", + }, + { + inputs: [], + name: "NoSuchOffer", + type: "error", + }, + { + inputs: [], + name: "NoSuchSeller", + type: "error", + }, + { + inputs: [], + name: "NoSuchTwin", + type: "error", + }, + { + inputs: [], + name: "NoTransferApproved", + type: "error", + }, + { + inputs: [], + name: "NoUpdateApplied", + type: "error", + }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, + { + inputs: [], + name: "NonceUsedAlready", + type: "error", + }, + { + inputs: [], + name: "NotAdmin", + type: "error", + }, + { + inputs: [], + name: "NotAdminAndAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAgentWallet", + type: "error", + }, + { + inputs: [], + name: "NotAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAuthorized", + type: "error", + }, + { + inputs: [], + name: "NotBuyerOrSeller", + type: "error", + }, + { + inputs: [], + name: "NotBuyerWallet", + type: "error", + }, + { + inputs: [], + name: "NotDisputeResolverAssistant", + type: "error", + }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, + { + inputs: [], + name: "NotPaused", + type: "error", + }, + { + inputs: [], + name: "NotVoucherHolder", + type: "error", + }, + { + inputs: [], + name: "NothingToWithdraw", + type: "error", + }, + { + inputs: [], + name: "NothingUpdated", + type: "error", + }, + { + inputs: [], + name: "OfferExpiredOrVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasBeenVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasExpired", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeActive", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "OfferNotAvailable", + type: "error", + }, + { + inputs: [], + name: "OfferNotInBundle", + type: "error", + }, + { + inputs: [], + name: "OfferNotInGroup", + type: "error", + }, + { + inputs: [], + name: "OfferRangeAlreadyReserved", + type: "error", + }, + { + inputs: [], + name: "OfferSoldOut", + type: "error", + }, + { + inputs: [], + name: "OfferStillValid", + type: "error", + }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, + { + inputs: [], + name: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignatureValidationFailed", + type: "error", + }, + { + inputs: [], + name: "TokenAmountMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdMandatory", + type: "error", + }, + { + inputs: [], + name: "TokenIdMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotInConditionRange", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotSet", + type: "error", + }, + { + inputs: [], + name: "TokenTransferFailed", + type: "error", + }, + { + inputs: [], + name: "TotalFeeExceedsLimit", + type: "error", + }, + { + inputs: [], + name: "TwinNotInBundle", + type: "error", + }, + { + inputs: [], + name: "TwinTransferUnsuccessful", + type: "error", + }, + { + inputs: [], + name: "TwinsAlreadyExist", + type: "error", + }, + { + inputs: [], + name: "UnauthorizedCallerUpdate", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, + { + inputs: [], + name: "UnexpectedERC721Received", + type: "error", + }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, + { + inputs: [], + name: "UnsupportedToken", + type: "error", + }, + { + inputs: [], + name: "ValueZeroNotAllowed", + type: "error", + }, + { + inputs: [], + name: "VersionMustBeSet", + type: "error", + }, + { + inputs: [], + name: "VoucherExtensionNotValid", + type: "error", + }, + { + inputs: [], + name: "VoucherHasExpired", + type: "error", + }, + { + inputs: [], + name: "VoucherNotReceived", + type: "error", + }, + { + inputs: [], + name: "VoucherNotRedeemable", + type: "error", + }, + { + inputs: [], + name: "VoucherNotTransferred", + type: "error", + }, + { + inputs: [], + name: "VoucherStillValid", + type: "error", + }, + { + inputs: [], + name: "VoucherTransferNotAllowed", + type: "error", + }, + { + inputs: [], + name: "WalletOwnsVouchers", + type: "error", + }, + { + inputs: [], + name: "WrongCurrentVersion", + type: "error", + }, + { + inputs: [], + name: "WrongDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ZeroDepositNotAllowed", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "accessControllerAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "AccessControllerAddressChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "enum BosonTypes.AuthTokenType", + name: "authTokenType", + type: "uint8", + }, + { + indexed: true, + internalType: "address", + name: "authTokenContract", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "AuthTokenContractChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "beaconProxyAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BeaconProxyAddressChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "buyerEscalationFeePercentage", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerEscalationFeePercentageChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "token", + type: "address", + }, + { + indexed: false, + internalType: "uint256[]", + name: "priceRanges", + type: "uint256[]", + }, + { + indexed: false, + internalType: "uint256[]", + name: "feePercentages", + type: "uint256[]", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FeeTableUpdated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "maxEscalationResponsePeriod", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MaxEscalationResponsePeriodChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "maxPremintedVouchers", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MaxPremintedVouchersChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "maxResolutionPeriod", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MaxResolutionPeriodChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint16", + name: "maxRoyaltyPercentage", + type: "uint16", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MaxRoyaltyPercentageChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint16", + name: "maxTotalOfferFeePercentage", + type: "uint16", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MaxTotalOfferFeePercentageChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "minDisputePeriod", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MinDisputePeriodChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "minResolutionPeriod", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "MinResolutionPeriodChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "priceDiscoveryAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "PriceDiscoveryAddressChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "feeFlatBoson", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ProtocolFeeFlatBosonChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "feePercentage", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ProtocolFeePercentageChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TokenAddressChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "treasuryAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TreasuryAddressChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "voucherBeaconAddress", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherBeaconAddressChanged", + type: "event", + }, + { + inputs: [], + name: "getAccessControllerAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "enum BosonTypes.AuthTokenType", + name: "_authTokenType", + type: "uint8", + }, + ], + name: "getAuthTokenContract", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBeaconProxyAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getBuyerEscalationDepositPercentage", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMaxEscalationResponsePeriod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMaxResolutionPeriod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMaxRoyaltyPercentage", + outputs: [ + { + internalType: "uint16", + name: "", + type: "uint16", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMaxTotalOfferFeePercentage", + outputs: [ + { + internalType: "uint16", + name: "", + type: "uint16", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMinDisputePeriod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getMinResolutionPeriod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getPriceDiscoveryAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_exchangeToken", + type: "address", + }, + { + internalType: "uint256", + name: "_price", + type: "uint256", + }, + ], + name: "getProtocolFee", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getProtocolFeeFlatBoson", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getProtocolFeePercentage", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_exchangeToken", + type: "address", + }, + { + internalType: "uint256", + name: "_price", + type: "uint256", + }, + ], + name: "getProtocolFeePercentage", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + ], + name: "getProtocolFeeTable", + outputs: [ + { + internalType: "uint256[]", + name: "priceRanges", + type: "uint256[]", + }, + { + internalType: "uint256[]", + name: "feePercentages", + type: "uint256[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getTokenAddress", + outputs: [ + { + internalType: "address payable", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getTreasuryAddress", + outputs: [ + { + internalType: "address payable", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getVoucherBeaconAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_accessControllerAddress", + type: "address", + }, + ], + name: "setAccessControllerAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "enum BosonTypes.AuthTokenType", + name: "_authTokenType", + type: "uint8", + }, + { + internalType: "address", + name: "_authTokenContract", + type: "address", + }, + ], + name: "setAuthTokenContract", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_beaconProxyAddress", + type: "address", + }, + ], + name: "setBeaconProxyAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_buyerEscalationDepositPercentage", + type: "uint256", + }, + ], + name: "setBuyerEscalationDepositPercentage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_maxEscalationResponsePeriod", + type: "uint256", + }, + ], + name: "setMaxEscalationResponsePeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_maxResolutionPeriod", + type: "uint256", + }, + ], + name: "setMaxResolutionPeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint16", + name: "_maxRoyaltyPercentage", + type: "uint16", + }, + ], + name: "setMaxRoyaltyPercentage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint16", + name: "_maxTotalOfferFeePercentage", + type: "uint16", + }, + ], + name: "setMaxTotalOfferFeePercentage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_minDisputePeriod", + type: "uint256", + }, + ], + name: "setMinDisputePeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_minResolutionPeriod", + type: "uint256", + }, + ], + name: "setMinResolutionPeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_priceDiscovery", + type: "address", + }, + ], + name: "setPriceDiscoveryAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_protocolFeeFlatBoson", + type: "uint256", + }, + ], + name: "setProtocolFeeFlatBoson", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_protocolFeePercentage", + type: "uint256", + }, + ], + name: "setProtocolFeePercentage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256[]", + name: "_priceRanges", + type: "uint256[]", + }, + { + internalType: "uint256[]", + name: "_feePercentages", + type: "uint256[]", + }, + ], + name: "setProtocolFeeTable", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_tokenAddress", + type: "address", + }, + ], + name: "setTokenAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_treasuryAddress", + type: "address", + }, + ], + name: "setTreasuryAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_voucherBeaconAddress", + type: "address", + }, + ], + name: "setVoucherBeaconAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +]; + +export class IBosonConfigHandler__factory { + static readonly abi = _abi; + static createInterface(): IBosonConfigHandlerInterface { + return new utils.Interface(_abi) as IBosonConfigHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonConfigHandler { + return new Contract(address, _abi, signerOrProvider) as IBosonConfigHandler; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts index 3b8714b8d..d92b92904 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -840,6 +927,80 @@ const _abi = [ name: "ZeroDepositNotAllowed", type: "error", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeRequested", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "returnAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeReturned", + type: "event", + }, { anonymous: false, inputs: [ @@ -1450,19 +1611,9 @@ const _abi = [ type: "uint256", }, { - internalType: "bytes32", - name: "_sigR", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "_sigS", - type: "bytes32", - }, - { - internalType: "uint8", - name: "_sigV", - type: "uint8", + internalType: "bytes", + name: "_signature", + type: "bytes", }, ], name: "resolveDispute", diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeCommitHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeCommitHandler__factory.ts new file mode 100644 index 000000000..47e98f3e4 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeCommitHandler__factory.ts @@ -0,0 +1,2099 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonExchangeCommitHandler, + IBosonExchangeCommitHandlerInterface, +} from "../IBosonExchangeCommitHandler"; + +const _abi = [ + { + inputs: [], + name: "AccessDenied", + type: "error", + }, + { + inputs: [], + name: "AddressesAndCalldataLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AdminOrAuthToken", + type: "error", + }, + { + inputs: [], + name: "AgentAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "AgentFeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AmbiguousVoucherExpiry", + type: "error", + }, + { + inputs: [], + name: "AmountExceedsRangeOrNothingToBurn", + type: "error", + }, + { + inputs: [], + name: "ArrayLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AuthTokenMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleForTwinExists", + type: "error", + }, + { + inputs: [], + name: "BundleOfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleRequiresAtLeastOneTwinAndOneOffer", + type: "error", + }, + { + inputs: [], + name: "BundleTwinMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BuyerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "CannotCommit", + type: "error", + }, + { + inputs: [], + name: "CannotRemoveDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ClerkDeprecated", + type: "error", + }, + { + inputs: [], + name: "CloneCreationFailed", + type: "error", + }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, + { + inputs: [], + name: "DRUnsupportedFee", + type: "error", + }, + { + inputs: [], + name: "DirectInitializationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "DisputeHasExpired", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodHasElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodNotElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverFeeNotFound", + type: "error", + }, + { + inputs: [], + name: "DisputeStillValid", + type: "error", + }, + { + inputs: [], + name: "DuplicateDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "EscalationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "ExchangeAlreadyExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeForOfferExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeIdInReservedRange", + type: "error", + }, + { + inputs: [], + name: "ExchangeIsNotInAFinalState", + type: "error", + }, + { + inputs: [], + name: "ExternalCallFailed", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "FeeTableAssetNotSupported", + type: "error", + }, + { + inputs: [], + name: "FunctionNotAllowlisted", + type: "error", + }, + { + inputs: [], + name: "GroupHasCondition", + type: "error", + }, + { + inputs: [], + name: "GroupHasNoCondition", + type: "error", + }, + { + inputs: [], + name: "IncomingVoucherAlreadySet", + type: "error", + }, + { + inputs: [], + name: "InexistentAllowedSellersList", + type: "error", + }, + { + inputs: [], + name: "InexistentDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "InsufficientAvailableFunds", + type: "error", + }, + { + inputs: [], + name: "InsufficientTwinSupplyToCoverBundleOffers", + type: "error", + }, + { + inputs: [], + name: "InsufficientValueReceived", + type: "error", + }, + { + inputs: [], + name: "InteractionNotAllowed", + type: "error", + }, + { + inputs: [], + name: "InvalidAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidAgentFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidAmount", + type: "error", + }, + { + inputs: [], + name: "InvalidAmountToMint", + type: "error", + }, + { + inputs: [], + name: "InvalidAuthTokenType", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerPercent", + type: "error", + }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, + { + inputs: [], + name: "InvalidConditionParameters", + type: "error", + }, + { + inputs: [], + name: "InvalidConduitAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputePeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeTimeout", + type: "error", + }, + { + inputs: [], + name: "InvalidEscalationPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidFunctionName", + type: "error", + }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceType", + type: "error", + }, + { + inputs: [], + name: "InvalidQuantityAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeLength", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeStart", + type: "error", + }, + { + inputs: [], + name: "InvalidRedemptionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidResolutionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyFee", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyInfo", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyPercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipient", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipientId", + type: "error", + }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidSignature", + type: "error", + }, + { + inputs: [], + name: "InvalidState", + type: "error", + }, + { + inputs: [], + name: "InvalidSupplyAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeDisputeState", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeExchangeState", + type: "error", + }, + { + inputs: [], + name: "InvalidToAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenId", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinProperty", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinTokenRange", + type: "error", + }, + { + inputs: [], + name: "MaxCommitsReached", + type: "error", + }, + { + inputs: [], + name: "MustBeActive", + type: "error", + }, + { + inputs: [], + name: "NativeNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAddress", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAmount", + type: "error", + }, + { + inputs: [], + name: "NegativePriceNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NoPendingUpdateForAccount", + type: "error", + }, + { + inputs: [], + name: "NoReservedRangeForOffer", + type: "error", + }, + { + inputs: [], + name: "NoSilentMintAllowed", + type: "error", + }, + { + inputs: [], + name: "NoSuchAgent", + type: "error", + }, + { + inputs: [], + name: "NoSuchBundle", + type: "error", + }, + { + inputs: [], + name: "NoSuchBuyer", + type: "error", + }, + { + inputs: [], + name: "NoSuchCollection", + type: "error", + }, + { + inputs: [], + name: "NoSuchDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, + { + inputs: [], + name: "NoSuchExchange", + type: "error", + }, + { + inputs: [], + name: "NoSuchGroup", + type: "error", + }, + { + inputs: [], + name: "NoSuchOffer", + type: "error", + }, + { + inputs: [], + name: "NoSuchSeller", + type: "error", + }, + { + inputs: [], + name: "NoSuchTwin", + type: "error", + }, + { + inputs: [], + name: "NoTransferApproved", + type: "error", + }, + { + inputs: [], + name: "NoUpdateApplied", + type: "error", + }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, + { + inputs: [], + name: "NonceUsedAlready", + type: "error", + }, + { + inputs: [], + name: "NotAdmin", + type: "error", + }, + { + inputs: [], + name: "NotAdminAndAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAgentWallet", + type: "error", + }, + { + inputs: [], + name: "NotAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAuthorized", + type: "error", + }, + { + inputs: [], + name: "NotBuyerOrSeller", + type: "error", + }, + { + inputs: [], + name: "NotBuyerWallet", + type: "error", + }, + { + inputs: [], + name: "NotDisputeResolverAssistant", + type: "error", + }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, + { + inputs: [], + name: "NotPaused", + type: "error", + }, + { + inputs: [], + name: "NotVoucherHolder", + type: "error", + }, + { + inputs: [], + name: "NothingToWithdraw", + type: "error", + }, + { + inputs: [], + name: "NothingUpdated", + type: "error", + }, + { + inputs: [], + name: "OfferExpiredOrVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasBeenVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasExpired", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeActive", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "OfferNotAvailable", + type: "error", + }, + { + inputs: [], + name: "OfferNotInBundle", + type: "error", + }, + { + inputs: [], + name: "OfferNotInGroup", + type: "error", + }, + { + inputs: [], + name: "OfferRangeAlreadyReserved", + type: "error", + }, + { + inputs: [], + name: "OfferSoldOut", + type: "error", + }, + { + inputs: [], + name: "OfferStillValid", + type: "error", + }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, + { + inputs: [], + name: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignatureValidationFailed", + type: "error", + }, + { + inputs: [], + name: "TokenAmountMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdMandatory", + type: "error", + }, + { + inputs: [], + name: "TokenIdMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotInConditionRange", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotSet", + type: "error", + }, + { + inputs: [], + name: "TokenTransferFailed", + type: "error", + }, + { + inputs: [], + name: "TotalFeeExceedsLimit", + type: "error", + }, + { + inputs: [], + name: "TwinNotInBundle", + type: "error", + }, + { + inputs: [], + name: "TwinTransferUnsuccessful", + type: "error", + }, + { + inputs: [], + name: "TwinsAlreadyExist", + type: "error", + }, + { + inputs: [], + name: "UnauthorizedCallerUpdate", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, + { + inputs: [], + name: "UnexpectedERC721Received", + type: "error", + }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, + { + inputs: [], + name: "UnsupportedToken", + type: "error", + }, + { + inputs: [], + name: "ValueZeroNotAllowed", + type: "error", + }, + { + inputs: [], + name: "VersionMustBeSet", + type: "error", + }, + { + inputs: [], + name: "VoucherExtensionNotValid", + type: "error", + }, + { + inputs: [], + name: "VoucherHasExpired", + type: "error", + }, + { + inputs: [], + name: "VoucherNotReceived", + type: "error", + }, + { + inputs: [], + name: "VoucherNotRedeemable", + type: "error", + }, + { + inputs: [], + name: "VoucherNotTransferred", + type: "error", + }, + { + inputs: [], + name: "VoucherStillValid", + type: "error", + }, + { + inputs: [], + name: "VoucherTransferNotAllowed", + type: "error", + }, + { + inputs: [], + name: "WalletOwnsVouchers", + type: "error", + }, + { + inputs: [], + name: "WrongCurrentVersion", + type: "error", + }, + { + inputs: [], + name: "WrongDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ZeroDepositNotAllowed", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerCommitted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.SellerOfferParams", + name: "sellerParams", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerInitiatedOfferSetSellerParams", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: false, + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + indexed: true, + internalType: "address", + name: "buyerAddress", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "commitCount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + ], + name: "ConditionalCommitAuthorized", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeRequested", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "returnAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeReturned", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ExchangeCompleted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "entityId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsEncumbered", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "entityId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsReleased", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "withdrawnTo", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsWithdrawn", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ProtocolFeeCollected", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "SellerCommitted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherCanceled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherExpired", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherExtended", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherRedeemed", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherRevoked", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "newBuyerId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherTransferred", + type: "event", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.SellerOfferParams", + name: "_sellerParams", + type: "tuple", + }, + ], + name: "commitToBuyerOffer", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_buyer", + type: "address", + }, + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + ], + name: "commitToConditionalOffer", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_buyer", + type: "address", + }, + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + ], + name: "commitToOffer", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerDeposit", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerCancelPenalty", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityAvailable", + type: "uint256", + }, + { + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, + { + internalType: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo[]", + name: "royaltyInfo", + type: "tuple[]", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Offer", + name: "offer", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "validFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableUntil", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDates", + name: "offerDates", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherValid", + type: "uint256", + }, + { + internalType: "uint256", + name: "resolutionPeriod", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDurations", + name: "offerDurations", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "drParameters", + type: "tuple", + }, + { + components: [ + { + internalType: "enum BosonTypes.EvaluationMethod", + name: "method", + type: "uint8", + }, + { + internalType: "enum BosonTypes.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + internalType: "uint256", + name: "minTokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "threshold", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxTokenId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Condition", + name: "condition", + type: "tuple", + }, + { + internalType: "uint256", + name: "agentId", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeLimit", + type: "uint256", + }, + { + internalType: "bool", + name: "useDepositedFunds", + type: "bool", + }, + ], + internalType: "struct BosonTypes.FullOffer", + name: "_fullOffer", + type: "tuple", + }, + { + internalType: "address", + name: "_offerCreator", + type: "address", + }, + { + internalType: "address payable", + name: "_committer", + type: "address", + }, + { + internalType: "bytes", + name: "_signature", + type: "bytes", + }, + { + internalType: "uint256", + name: "_conditionalTokenId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.SellerOfferParams", + name: "_sellerParams", + type: "tuple", + }, + ], + name: "createOfferAndCommit", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_buyer", + type: "address", + }, + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + ], + name: "isEligibleToCommit", + outputs: [ + { + internalType: "bool", + name: "isEligible", + type: "bool", + }, + { + internalType: "uint256", + name: "commitCount", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + { + internalType: "address payable", + name: "_to", + type: "address", + }, + { + internalType: "address", + name: "_from", + type: "address", + }, + { + internalType: "address", + name: "_rangeOwner", + type: "address", + }, + ], + name: "onPremintedVoucherTransferred", + outputs: [ + { + internalType: "bool", + name: "committed", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +]; + +export class IBosonExchangeCommitHandler__factory { + static readonly abi = _abi; + static createInterface(): IBosonExchangeCommitHandlerInterface { + return new utils.Interface(_abi) as IBosonExchangeCommitHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonExchangeCommitHandler { + return new Contract( + address, + _abi, + signerOrProvider + ) as IBosonExchangeCommitHandler; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler240__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler240__factory.ts new file mode 100644 index 000000000..f2f36a1b2 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler240__factory.ts @@ -0,0 +1,122 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonExchangeHandler240, + IBosonExchangeHandler240Interface, +} from "../IBosonExchangeHandler240"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerCommitted", + type: "event", + }, +]; + +export class IBosonExchangeHandler240__factory { + static readonly abi = _abi; + static createInterface(): IBosonExchangeHandler240Interface { + return new utils.Interface(_abi) as IBosonExchangeHandler240Interface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonExchangeHandler240 { + return new Contract( + address, + _abi, + signerOrProvider + ) as IBosonExchangeHandler240; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts index dc36158b4..97df34a5e 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -888,6 +975,11 @@ const _abi = [ name: "state", type: "uint8", }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, ], indexed: false, internalType: "struct BosonTypes.Exchange", @@ -932,6 +1024,66 @@ const _abi = [ name: "BuyerCommitted", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.SellerOfferParams", + name: "sellerParams", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerInitiatedOfferSetSellerParams", + type: "event", + }, { anonymous: false, inputs: [ @@ -975,6 +1127,80 @@ const _abi = [ name: "ConditionalCommitAuthorized", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeRequested", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "returnAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeReturned", + type: "event", + }, { anonymous: false, inputs: [ @@ -1142,6 +1368,103 @@ const _abi = [ name: "ProtocolFeeCollected", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "SellerCommitted", + type: "event", + }, { anonymous: false, inputs: [ @@ -1521,47 +1844,6 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, - { - inputs: [ - { - internalType: "address payable", - name: "_buyer", - type: "address", - }, - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - { - internalType: "uint256", - name: "_tokenId", - type: "uint256", - }, - ], - name: "commitToConditionalOffer", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address payable", - name: "_buyer", - type: "address", - }, - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - ], - name: "commitToOffer", - outputs: [], - stateMutability: "payable", - type: "function", - }, { inputs: [ { @@ -1690,6 +1972,11 @@ const _abi = [ name: "state", type: "uint8", }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, ], internalType: "struct BosonTypes.Exchange", name: "exchange", @@ -1989,45 +2276,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "address", - name: "_buyer", - type: "address", - }, - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - { - internalType: "uint256", - name: "_tokenId", - type: "uint256", - }, - ], - name: "isEligibleToCommit", - outputs: [ - { - internalType: "bool", - name: "isEligible", - type: "bool", - }, - { - internalType: "uint256", - name: "commitCount", - type: "uint256", - }, - { - internalType: "uint256", - name: "maxCommits", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -2052,40 +2300,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "uint256", - name: "_tokenId", - type: "uint256", - }, - { - internalType: "address payable", - name: "_to", - type: "address", - }, - { - internalType: "address", - name: "_from", - type: "address", - }, - { - internalType: "address", - name: "_rangeOwner", - type: "address", - }, - ], - name: "onPremintedVoucherTransferred", - outputs: [ - { - internalType: "bool", - name: "committed", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts index 36da53c54..57f6b9838 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -840,6 +927,80 @@ const _abi = [ name: "ZeroDepositNotAllowed", type: "error", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeRequested", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "returnAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeReturned", + type: "event", + }, { anonymous: false, inputs: [ @@ -1011,7 +1172,7 @@ const _abi = [ inputs: [ { internalType: "uint256", - name: "_sellerId", + name: "_entityId", type: "uint256", }, { diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts index f6352518e..173329772 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts index 7d1920a73..aaa270b96 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -919,19 +1006,9 @@ const _abi = [ type: "uint256", }, { - internalType: "bytes32", - name: "_sigR", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "_sigS", - type: "bytes32", - }, - { - internalType: "uint8", - name: "_sigV", - type: "uint8", + internalType: "bytes", + name: "_signature", + type: "bytes", }, ], name: "executeMetaTransaction", diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler240__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler240__factory.ts new file mode 100644 index 000000000..e9af7e03d --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler240__factory.ts @@ -0,0 +1,268 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonOfferHandler240, + IBosonOfferHandler240Interface, +} from "../IBosonOfferHandler240"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerDeposit", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerCancelPenalty", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityAvailable", + type: "uint256", + }, + { + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, + { + internalType: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo[]", + name: "royaltyInfo", + type: "tuple[]", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Offer", + name: "offer", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "validFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableUntil", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.OfferDates", + name: "offerDates", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherValid", + type: "uint256", + }, + { + internalType: "uint256", + name: "resolutionPeriod", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.OfferDurations", + name: "offerDurations", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "uint256", + name: "escalationResponsePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerEscalationDeposit", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.DisputeResolutionTerms", + name: "disputeResolutionTerms", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "protocolFee", + type: "uint256", + }, + { + internalType: "uint256", + name: "agentFee", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.OfferFees", + name: "offerFees", + type: "tuple", + }, + { + indexed: true, + internalType: "uint256", + name: "agentId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferVoided", + type: "event", + }, +]; + +export class IBosonOfferHandler240__factory { + static readonly abi = _abi; + static createInterface(): IBosonOfferHandler240Interface { + return new utils.Interface(_abi) as IBosonOfferHandler240Interface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonOfferHandler240 { + return new Contract( + address, + _abi, + signerOrProvider + ) as IBosonOfferHandler240; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts index 12e413c5d..fdbed0663 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -840,6 +927,31 @@ const _abi = [ name: "ZeroDepositNotAllowed", type: "error", }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32", + name: "offerHash", + type: "bytes32", + }, + { + indexed: true, + internalType: "uint256", + name: "offererId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "NonListedOfferVoided", + type: "event", + }, { anonymous: false, inputs: [ @@ -897,6 +1009,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -934,6 +1051,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], indexed: false, internalType: "struct BosonTypes.Offer", @@ -1013,6 +1135,11 @@ const _abi = [ name: "buyerEscalationDeposit", type: "uint256", }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, ], indexed: false, internalType: "struct BosonTypes.DisputeResolutionTerms", @@ -1084,6 +1211,37 @@ const _abi = [ name: "OfferExtended", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "newMutualizer", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferMutualizerUpdated", + type: "event", + }, { anonymous: false, inputs: [ @@ -1139,7 +1297,7 @@ const _abi = [ { indexed: true, internalType: "uint256", - name: "sellerId", + name: "creatorId", type: "uint256", }, { @@ -1239,6 +1397,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1276,6 +1439,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -1331,9 +1499,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { internalType: "uint256", @@ -1395,6 +1575,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1432,6 +1617,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer[]", name: "_offers", @@ -1487,9 +1677,21 @@ const _abi = [ type: "tuple[]", }, { - internalType: "uint256[]", - name: "_disputeResolverIds", - type: "uint256[]", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters[]", + name: "_drParameters", + type: "tuple[]", }, { internalType: "uint256[]", @@ -1637,6 +1839,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1674,6 +1881,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "offer", @@ -1750,6 +1962,11 @@ const _abi = [ name: "buyerEscalationDeposit", type: "uint256", }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, ], internalType: "struct BosonTypes.DisputeResolutionTerms", name: "disputeResolutionTerms", @@ -1778,85 +1995,346 @@ const _abi = [ }, { inputs: [ - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - ], - name: "isOfferVoided", - outputs: [ - { - internalType: "bool", - name: "exists", - type: "bool", - }, - { - internalType: "bool", - name: "offerVoided", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - { - internalType: "uint256", - name: "_length", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", - }, - ], - name: "reserveRange", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, { components: [ { - internalType: "address payable[]", - name: "recipients", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "bps", - type: "uint256[]", - }, - ], - internalType: "struct BosonTypes.RoyaltyInfo", - name: "_royaltyInfo", - type: "tuple", - }, - ], - name: "updateOfferRoyaltyRecipients", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256[]", + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerDeposit", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerCancelPenalty", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityAvailable", + type: "uint256", + }, + { + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, + { + internalType: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo[]", + name: "royaltyInfo", + type: "tuple[]", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Offer", + name: "offer", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "validFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableUntil", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDates", + name: "offerDates", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherValid", + type: "uint256", + }, + { + internalType: "uint256", + name: "resolutionPeriod", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDurations", + name: "offerDurations", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "drParameters", + type: "tuple", + }, + { + components: [ + { + internalType: "enum BosonTypes.EvaluationMethod", + name: "method", + type: "uint8", + }, + { + internalType: "enum BosonTypes.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + internalType: "uint256", + name: "minTokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "threshold", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxTokenId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Condition", + name: "condition", + type: "tuple", + }, + { + internalType: "uint256", + name: "agentId", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeLimit", + type: "uint256", + }, + { + internalType: "bool", + name: "useDepositedFunds", + type: "bool", + }, + ], + internalType: "struct BosonTypes.FullOffer", + name: "_fullOffer", + type: "tuple", + }, + ], + name: "getOfferHash", + outputs: [ + { + internalType: "bytes32", + name: "offerHash", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + ], + name: "isOfferVoided", + outputs: [ + { + internalType: "bool", + name: "exists", + type: "bool", + }, + { + internalType: "bool", + name: "offerVoided", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_length", + type: "uint256", + }, + { + internalType: "address", + name: "_to", + type: "address", + }, + ], + name: "reserveRange", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + internalType: "address", + name: "_newMutualizer", + type: "address", + }, + ], + name: "updateOfferMutualizer", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_offerId", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "_royaltyInfo", + type: "tuple", + }, + ], + name: "updateOfferRoyaltyRecipients", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256[]", name: "_offerIds", type: "uint256[]", }, @@ -1883,6 +2361,480 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerDeposit", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerCancelPenalty", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityAvailable", + type: "uint256", + }, + { + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, + { + internalType: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo[]", + name: "royaltyInfo", + type: "tuple[]", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Offer", + name: "offer", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "validFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableUntil", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDates", + name: "offerDates", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherValid", + type: "uint256", + }, + { + internalType: "uint256", + name: "resolutionPeriod", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDurations", + name: "offerDurations", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "drParameters", + type: "tuple", + }, + { + components: [ + { + internalType: "enum BosonTypes.EvaluationMethod", + name: "method", + type: "uint8", + }, + { + internalType: "enum BosonTypes.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + internalType: "uint256", + name: "minTokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "threshold", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxTokenId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Condition", + name: "condition", + type: "tuple", + }, + { + internalType: "uint256", + name: "agentId", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeLimit", + type: "uint256", + }, + { + internalType: "bool", + name: "useDepositedFunds", + type: "bool", + }, + ], + internalType: "struct BosonTypes.FullOffer", + name: "_fullOffer", + type: "tuple", + }, + ], + name: "voidNonListedOffer", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerDeposit", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerCancelPenalty", + type: "uint256", + }, + { + internalType: "uint256", + name: "quantityAvailable", + type: "uint256", + }, + { + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, + { + internalType: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo[]", + name: "royaltyInfo", + type: "tuple[]", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Offer", + name: "offer", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "validFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableFrom", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherRedeemableUntil", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDates", + name: "offerDates", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputePeriod", + type: "uint256", + }, + { + internalType: "uint256", + name: "voucherValid", + type: "uint256", + }, + { + internalType: "uint256", + name: "resolutionPeriod", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.OfferDurations", + name: "offerDurations", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "drParameters", + type: "tuple", + }, + { + components: [ + { + internalType: "enum BosonTypes.EvaluationMethod", + name: "method", + type: "uint8", + }, + { + internalType: "enum BosonTypes.TokenType", + name: "tokenType", + type: "uint8", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + internalType: "uint256", + name: "minTokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "threshold", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxTokenId", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.Condition", + name: "condition", + type: "tuple", + }, + { + internalType: "uint256", + name: "agentId", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeLimit", + type: "uint256", + }, + { + internalType: "bool", + name: "useDepositedFunds", + type: "bool", + }, + ], + internalType: "struct BosonTypes.FullOffer[]", + name: "_fullOffers", + type: "tuple[]", + }, + ], + name: "voidNonListedOfferBatch", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts index 66b59beb0..22bc58cf7 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts @@ -105,6 +105,11 @@ const _abi = [ name: "CloneCreationFailed", type: "error", }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, { inputs: [], name: "DRUnsupportedFee", @@ -182,12 +187,12 @@ const _abi = [ }, { inputs: [], - name: "FeeAmountNotYetSupported", + name: "FeeAmountTooHigh", type: "error", }, { inputs: [], - name: "FeeAmountTooHigh", + name: "FeeTableAssetNotSupported", type: "error", }, { @@ -265,11 +270,21 @@ const _abi = [ name: "InvalidAuthTokenType", type: "error", }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidBuyerPercent", type: "error", }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, { inputs: [], name: "InvalidConditionParameters", @@ -310,6 +325,16 @@ const _abi = [ name: "InvalidFunctionName", type: "error", }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, { inputs: [], name: "InvalidOfferPenalty", @@ -325,6 +350,11 @@ const _abi = [ name: "InvalidPriceDiscovery", type: "error", }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, { inputs: [], name: "InvalidPriceType", @@ -380,6 +410,11 @@ const _abi = [ name: "InvalidRoyaltyRecipientId", type: "error", }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, { inputs: [], name: "InvalidSignature", @@ -500,6 +535,11 @@ const _abi = [ name: "NoSuchDisputeResolver", type: "error", }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, { inputs: [], name: "NoSuchExchange", @@ -535,6 +575,11 @@ const _abi = [ name: "NoUpdateApplied", type: "error", }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, { inputs: [], name: "NonceUsedAlready", @@ -580,6 +625,11 @@ const _abi = [ name: "NotDisputeResolverAssistant", type: "error", }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, { inputs: [], name: "NotPaused", @@ -655,6 +705,11 @@ const _abi = [ name: "OfferStillValid", type: "error", }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, { inputs: [], name: "PriceMismatch", @@ -676,7 +731,13 @@ const _abi = [ type: "error", }, { - inputs: [], + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], name: "RegionPaused", type: "error", }, @@ -685,6 +746,11 @@ const _abi = [ name: "RoyaltyRecipientIdsNotSorted", type: "error", }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, { inputs: [], name: "SellerAddressMustBeUnique", @@ -700,6 +766,11 @@ const _abi = [ name: "SellerNotApproved", type: "error", }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, { inputs: [], name: "SellerSaltNotUnique", @@ -707,7 +778,7 @@ const _abi = [ }, { inputs: [], - name: "SignerAndSignatureDoNotMatch", + name: "SignatureValidationFailed", type: "error", }, { @@ -765,11 +836,27 @@ const _abi = [ name: "UnauthorizedCallerUpdate", type: "error", }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, { inputs: [], name: "UnexpectedERC721Received", type: "error", }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, { inputs: [], name: "UnsupportedToken", @@ -1695,6 +1782,31 @@ const _abi = [ name: "GroupUpdated", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32", + name: "offerHash", + type: "bytes32", + }, + { + indexed: true, + internalType: "uint256", + name: "offererId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "NonListedOfferVoided", + type: "event", + }, { anonymous: false, inputs: [ @@ -1752,6 +1864,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1789,6 +1906,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], indexed: false, internalType: "struct BosonTypes.Offer", @@ -1868,6 +1990,11 @@ const _abi = [ name: "buyerEscalationDeposit", type: "uint256", }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, ], indexed: false, internalType: "struct BosonTypes.DisputeResolutionTerms", @@ -1939,6 +2066,37 @@ const _abi = [ name: "OfferExtended", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "newMutualizer", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferMutualizerUpdated", + type: "event", + }, { anonymous: false, inputs: [ @@ -1994,7 +2152,7 @@ const _abi = [ { indexed: true, internalType: "uint256", - name: "sellerId", + name: "creatorId", type: "uint256", }, { @@ -2642,6 +2800,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2679,6 +2842,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -2734,9 +2902,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { internalType: "uint256", @@ -2803,6 +2983,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2840,6 +3025,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -2895,9 +3085,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -3001,6 +3203,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3038,6 +3245,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -3093,9 +3305,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -3204,6 +3428,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3241,6 +3470,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -3296,9 +3530,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -3449,6 +3695,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3486,6 +3737,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -3541,9 +3797,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -3627,6 +3895,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3664,6 +3937,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -3719,9 +3997,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -3842,6 +4132,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3879,6 +4174,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -3934,9 +4234,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -4062,6 +4374,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4099,6 +4416,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -4154,9 +4476,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -4366,6 +4700,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4403,6 +4742,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -4458,9 +4802,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -4603,6 +4959,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4640,6 +5001,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -4695,9 +5061,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -4882,6 +5260,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4919,6 +5302,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -4974,9 +5362,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -5166,6 +5566,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -5203,6 +5608,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -5258,9 +5668,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -5492,6 +5914,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -5529,6 +5956,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -5584,9 +6016,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -5746,6 +6190,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -5783,6 +6232,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -5838,9 +6292,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -6042,6 +6508,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -6079,6 +6550,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -6134,9 +6610,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ @@ -6343,6 +6831,11 @@ const _abi = [ name: "priceType", type: "uint8", }, + { + internalType: "enum BosonTypes.OfferCreator", + name: "creator", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -6380,6 +6873,11 @@ const _abi = [ name: "royaltyInfo", type: "tuple[]", }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, ], internalType: "struct BosonTypes.Offer", name: "_offer", @@ -6435,9 +6933,21 @@ const _abi = [ type: "tuple", }, { - internalType: "uint256", - name: "_disputeResolverId", - type: "uint256", + components: [ + { + internalType: "uint256", + name: "disputeResolverId", + type: "uint256", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + internalType: "struct BosonTypes.DRParameters", + name: "_drParameters", + type: "tuple", }, { components: [ diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonPriceDiscoveryHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonPriceDiscoveryHandler__factory.ts new file mode 100644 index 000000000..b57e28feb --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonPriceDiscoveryHandler__factory.ts @@ -0,0 +1,1901 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonPriceDiscoveryHandler, + IBosonPriceDiscoveryHandlerInterface, +} from "../IBosonPriceDiscoveryHandler"; + +const _abi = [ + { + inputs: [], + name: "AccessDenied", + type: "error", + }, + { + inputs: [], + name: "AddressesAndCalldataLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AdminOrAuthToken", + type: "error", + }, + { + inputs: [], + name: "AgentAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "AgentFeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AmbiguousVoucherExpiry", + type: "error", + }, + { + inputs: [], + name: "AmountExceedsRangeOrNothingToBurn", + type: "error", + }, + { + inputs: [], + name: "ArrayLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "AuthTokenMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleForTwinExists", + type: "error", + }, + { + inputs: [], + name: "BundleOfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BundleRequiresAtLeastOneTwinAndOneOffer", + type: "error", + }, + { + inputs: [], + name: "BundleTwinMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "BuyerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "CannotCommit", + type: "error", + }, + { + inputs: [], + name: "CannotRemoveDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ClerkDeprecated", + type: "error", + }, + { + inputs: [], + name: "CloneCreationFailed", + type: "error", + }, + { + inputs: [], + name: "DRFeeMutualizerCannotProvideCoverage", + type: "error", + }, + { + inputs: [], + name: "DRUnsupportedFee", + type: "error", + }, + { + inputs: [], + name: "DirectInitializationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "DisputeHasExpired", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodHasElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputePeriodNotElapsed", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "DisputeResolverFeeNotFound", + type: "error", + }, + { + inputs: [], + name: "DisputeStillValid", + type: "error", + }, + { + inputs: [], + name: "DuplicateDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "EscalationNotAllowed", + type: "error", + }, + { + inputs: [], + name: "ExchangeAlreadyExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeForOfferExists", + type: "error", + }, + { + inputs: [], + name: "ExchangeIdInReservedRange", + type: "error", + }, + { + inputs: [], + name: "ExchangeIsNotInAFinalState", + type: "error", + }, + { + inputs: [], + name: "ExternalCallFailed", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + type: "error", + }, + { + inputs: [], + name: "FeeTableAssetNotSupported", + type: "error", + }, + { + inputs: [], + name: "FunctionNotAllowlisted", + type: "error", + }, + { + inputs: [], + name: "GroupHasCondition", + type: "error", + }, + { + inputs: [], + name: "GroupHasNoCondition", + type: "error", + }, + { + inputs: [], + name: "IncomingVoucherAlreadySet", + type: "error", + }, + { + inputs: [], + name: "InexistentAllowedSellersList", + type: "error", + }, + { + inputs: [], + name: "InexistentDisputeResolverFees", + type: "error", + }, + { + inputs: [], + name: "InsufficientAvailableFunds", + type: "error", + }, + { + inputs: [], + name: "InsufficientTwinSupplyToCoverBundleOffers", + type: "error", + }, + { + inputs: [], + name: "InsufficientValueReceived", + type: "error", + }, + { + inputs: [], + name: "InteractionNotAllowed", + type: "error", + }, + { + inputs: [], + name: "InvalidAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidAgentFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidAmount", + type: "error", + }, + { + inputs: [], + name: "InvalidAmountToMint", + type: "error", + }, + { + inputs: [], + name: "InvalidAuthTokenType", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidBuyerPercent", + type: "error", + }, + { + inputs: [], + name: "InvalidCollectionIndex", + type: "error", + }, + { + inputs: [], + name: "InvalidConditionParameters", + type: "error", + }, + { + inputs: [], + name: "InvalidConduitAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputePeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "InvalidDisputeTimeout", + type: "error", + }, + { + inputs: [], + name: "InvalidEscalationPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidFeePercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidFunctionName", + type: "error", + }, + { + inputs: [], + name: "InvalidOffer", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferCreator", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscoveryPrice", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceType", + type: "error", + }, + { + inputs: [], + name: "InvalidQuantityAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeLength", + type: "error", + }, + { + inputs: [], + name: "InvalidRangeStart", + type: "error", + }, + { + inputs: [], + name: "InvalidRedemptionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidResolutionPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyFee", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyInfo", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyPercentage", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipient", + type: "error", + }, + { + inputs: [], + name: "InvalidRoyaltyRecipientId", + type: "error", + }, + { + inputs: [], + name: "InvalidSellerOfferFields", + type: "error", + }, + { + inputs: [], + name: "InvalidSignature", + type: "error", + }, + { + inputs: [], + name: "InvalidState", + type: "error", + }, + { + inputs: [], + name: "InvalidSupplyAvailable", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeDisputeState", + type: "error", + }, + { + inputs: [], + name: "InvalidTargeExchangeState", + type: "error", + }, + { + inputs: [], + name: "InvalidToAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenAddress", + type: "error", + }, + { + inputs: [], + name: "InvalidTokenId", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinProperty", + type: "error", + }, + { + inputs: [], + name: "InvalidTwinTokenRange", + type: "error", + }, + { + inputs: [], + name: "MaxCommitsReached", + type: "error", + }, + { + inputs: [], + name: "MustBeActive", + type: "error", + }, + { + inputs: [], + name: "NativeNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAddress", + type: "error", + }, + { + inputs: [], + name: "NativeWrongAmount", + type: "error", + }, + { + inputs: [], + name: "NegativePriceNotAllowed", + type: "error", + }, + { + inputs: [], + name: "NoPendingUpdateForAccount", + type: "error", + }, + { + inputs: [], + name: "NoReservedRangeForOffer", + type: "error", + }, + { + inputs: [], + name: "NoSilentMintAllowed", + type: "error", + }, + { + inputs: [], + name: "NoSuchAgent", + type: "error", + }, + { + inputs: [], + name: "NoSuchBundle", + type: "error", + }, + { + inputs: [], + name: "NoSuchBuyer", + type: "error", + }, + { + inputs: [], + name: "NoSuchCollection", + type: "error", + }, + { + inputs: [], + name: "NoSuchDisputeResolver", + type: "error", + }, + { + inputs: [], + name: "NoSuchEntity", + type: "error", + }, + { + inputs: [], + name: "NoSuchExchange", + type: "error", + }, + { + inputs: [], + name: "NoSuchGroup", + type: "error", + }, + { + inputs: [], + name: "NoSuchOffer", + type: "error", + }, + { + inputs: [], + name: "NoSuchSeller", + type: "error", + }, + { + inputs: [], + name: "NoSuchTwin", + type: "error", + }, + { + inputs: [], + name: "NoTransferApproved", + type: "error", + }, + { + inputs: [], + name: "NoUpdateApplied", + type: "error", + }, + { + inputs: [], + name: "NonAscendingOrder", + type: "error", + }, + { + inputs: [], + name: "NonceUsedAlready", + type: "error", + }, + { + inputs: [], + name: "NotAdmin", + type: "error", + }, + { + inputs: [], + name: "NotAdminAndAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAgentWallet", + type: "error", + }, + { + inputs: [], + name: "NotAssistant", + type: "error", + }, + { + inputs: [], + name: "NotAuthorized", + type: "error", + }, + { + inputs: [], + name: "NotBuyerOrSeller", + type: "error", + }, + { + inputs: [], + name: "NotBuyerWallet", + type: "error", + }, + { + inputs: [], + name: "NotDisputeResolverAssistant", + type: "error", + }, + { + inputs: [], + name: "NotOfferCreator", + type: "error", + }, + { + inputs: [], + name: "NotPaused", + type: "error", + }, + { + inputs: [], + name: "NotVoucherHolder", + type: "error", + }, + { + inputs: [], + name: "NothingToWithdraw", + type: "error", + }, + { + inputs: [], + name: "NothingUpdated", + type: "error", + }, + { + inputs: [], + name: "OfferExpiredOrVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasBeenVoided", + type: "error", + }, + { + inputs: [], + name: "OfferHasExpired", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeActive", + type: "error", + }, + { + inputs: [], + name: "OfferMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "OfferNotAvailable", + type: "error", + }, + { + inputs: [], + name: "OfferNotInBundle", + type: "error", + }, + { + inputs: [], + name: "OfferNotInGroup", + type: "error", + }, + { + inputs: [], + name: "OfferRangeAlreadyReserved", + type: "error", + }, + { + inputs: [], + name: "OfferSoldOut", + type: "error", + }, + { + inputs: [], + name: "OfferStillValid", + type: "error", + }, + { + inputs: [], + name: "PriceDoesNotCoverPenalty", + type: "error", + }, + { + inputs: [], + name: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [ + { + internalType: "enum BosonTypes.PausableRegion", + name: "region", + type: "uint8", + }, + ], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SameMutualizerAddress", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerParametersNotAllowed", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignatureValidationFailed", + type: "error", + }, + { + inputs: [], + name: "TokenAmountMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdMandatory", + type: "error", + }, + { + inputs: [], + name: "TokenIdMismatch", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotInConditionRange", + type: "error", + }, + { + inputs: [], + name: "TokenIdNotSet", + type: "error", + }, + { + inputs: [], + name: "TokenTransferFailed", + type: "error", + }, + { + inputs: [], + name: "TotalFeeExceedsLimit", + type: "error", + }, + { + inputs: [], + name: "TwinNotInBundle", + type: "error", + }, + { + inputs: [], + name: "TwinTransferUnsuccessful", + type: "error", + }, + { + inputs: [], + name: "TwinsAlreadyExist", + type: "error", + }, + { + inputs: [], + name: "UnauthorizedCallerUpdate", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "UnexpectedDataReturned", + type: "error", + }, + { + inputs: [], + name: "UnexpectedERC721Received", + type: "error", + }, + { + inputs: [], + name: "UnsupportedMutualizer", + type: "error", + }, + { + inputs: [], + name: "UnsupportedToken", + type: "error", + }, + { + inputs: [], + name: "ValueZeroNotAllowed", + type: "error", + }, + { + inputs: [], + name: "VersionMustBeSet", + type: "error", + }, + { + inputs: [], + name: "VoucherExtensionNotValid", + type: "error", + }, + { + inputs: [], + name: "VoucherHasExpired", + type: "error", + }, + { + inputs: [], + name: "VoucherNotReceived", + type: "error", + }, + { + inputs: [], + name: "VoucherNotRedeemable", + type: "error", + }, + { + inputs: [], + name: "VoucherNotTransferred", + type: "error", + }, + { + inputs: [], + name: "VoucherStillValid", + type: "error", + }, + { + inputs: [], + name: "VoucherTransferNotAllowed", + type: "error", + }, + { + inputs: [], + name: "WalletOwnsVouchers", + type: "error", + }, + { + inputs: [], + name: "WrongCurrentVersion", + type: "error", + }, + { + inputs: [], + name: "WrongDefaultRecipient", + type: "error", + }, + { + inputs: [], + name: "ZeroDepositNotAllowed", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerCommitted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.SellerOfferParams", + name: "sellerParams", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "BuyerInitiatedOfferSetSellerParams", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: false, + internalType: "enum BosonTypes.GatingType", + name: "gating", + type: "uint8", + }, + { + indexed: true, + internalType: "address", + name: "buyerAddress", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "commitCount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "maxCommits", + type: "uint256", + }, + ], + name: "ConditionalCommitAuthorized", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "feeAmount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeRequested", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "returnAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "DRFeeReturned", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ExchangeCompleted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "entityId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsEncumbered", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "entityId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsReleased", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "withdrawnTo", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "FundsWithdrawn", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "exchangeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "ProtocolFeeCollected", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "buyerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "finalizedDate", + type: "uint256", + }, + { + internalType: "enum BosonTypes.ExchangeState", + name: "state", + type: "uint8", + }, + { + internalType: "address payable", + name: "mutualizerAddress", + type: "address", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Exchange", + name: "exchange", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "committedDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "validUntilDate", + type: "uint256", + }, + { + internalType: "uint256", + name: "redeemedDate", + type: "uint256", + }, + { + internalType: "bool", + name: "expired", + type: "bool", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Voucher", + name: "voucher", + type: "tuple", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "SellerCommitted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "twinId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "uint256", + name: "supplyAvailable", + type: "uint256", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + internalType: "enum BosonTypes.TokenType", + name: "tokenType", + type: "uint8", + }, + ], + indexed: false, + internalType: "struct BosonTypes.Twin", + name: "twin", + type: "tuple", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TwinCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "twinId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TwinDeleted", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "twinId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TwinTransferFailed", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "twinCount", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TwinTransferSkipped", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "twinId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "tokenAddress", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "TwinTransferred", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherCanceled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherExpired", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "validUntil", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherExtended", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherRedeemed", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherRevoked", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "offerId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "exchangeId", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "newBuyerId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "VoucherTransferred", + type: "event", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_buyer", + type: "address", + }, + { + internalType: "uint256", + name: "_tokenIdOrOfferId", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "price", + type: "uint256", + }, + { + internalType: "enum BosonTypes.Side", + name: "side", + type: "uint8", + }, + { + internalType: "address", + name: "priceDiscoveryContract", + type: "address", + }, + { + internalType: "address", + name: "conduit", + type: "address", + }, + { + internalType: "bytes", + name: "priceDiscoveryData", + type: "bytes", + }, + ], + internalType: "struct BosonTypes.PriceDiscovery", + name: "_priceDiscovery", + type: "tuple", + }, + ], + name: "commitToPriceDiscoveryOffer", + outputs: [], + stateMutability: "payable", + type: "function", + }, +]; + +export class IBosonPriceDiscoveryHandler__factory { + static readonly abi = _abi; + static createInterface(): IBosonPriceDiscoveryHandlerInterface { + return new utils.Interface(_abi) as IBosonPriceDiscoveryHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonPriceDiscoveryHandler { + return new Contract( + address, + _abi, + signerOrProvider + ) as IBosonPriceDiscoveryHandler; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IDRFeeMutualizer__factory.ts b/packages/ethers-sdk/src/contracts/factories/IDRFeeMutualizer__factory.ts new file mode 100644 index 000000000..1d9a3d04e --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IDRFeeMutualizer__factory.ts @@ -0,0 +1,136 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IDRFeeMutualizer, + IDRFeeMutualizerInterface, +} from "../IDRFeeMutualizer"; + +const _abi = [ + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + ], + name: "isSellerCovered", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + internalType: "address", + name: "_tokenAddress", + type: "address", + }, + { + internalType: "uint256", + name: "_exchangeId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_disputeResolverId", + type: "uint256", + }, + ], + name: "requestDRFee", + outputs: [ + { + internalType: "bool", + name: "success", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_exchangeId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + ], + name: "returnDRFee", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, +]; + +export class IDRFeeMutualizer__factory { + static readonly abi = _abi; + static createInterface(): IDRFeeMutualizerInterface { + return new utils.Interface(_abi) as IDRFeeMutualizerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IDRFeeMutualizer { + return new Contract(address, _abi, signerOrProvider) as IDRFeeMutualizer; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapperFactory__factory.ts b/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapperFactory__factory.ts new file mode 100644 index 000000000..68b0b235e --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapperFactory__factory.ts @@ -0,0 +1,109 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + OpenSeaWrapperFactory, + OpenSeaWrapperFactoryInterface, +} from "../OpenSeaWrapperFactory"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_protocolAddress", + type: "address", + }, + { + internalType: "address", + name: "_unwrapperAddress", + type: "address", + }, + { + internalType: "address", + name: "_seaport", + type: "address", + }, + { + internalType: "uint256", + name: "_openSeaFee", + type: "uint256", + }, + { + internalType: "address payable", + name: "_openSeaRecipient", + type: "address", + }, + { + internalType: "bytes32", + name: "_openSeaConduitKey", + type: "bytes32", + }, + { + internalType: "address", + name: "_openSeaConduit", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "address", + name: "_voucherContract", + type: "address", + }, + ], + name: "create", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_voucherContract", + type: "address", + }, + ], + name: "getWrapper", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, +]; + +export class OpenSeaWrapperFactory__factory { + static readonly abi = _abi; + static createInterface(): OpenSeaWrapperFactoryInterface { + return new utils.Interface(_abi) as OpenSeaWrapperFactoryInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): OpenSeaWrapperFactory { + return new Contract( + address, + _abi, + signerOrProvider + ) as OpenSeaWrapperFactory; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapper__factory.ts b/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapper__factory.ts new file mode 100644 index 000000000..9f9e706f9 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/OpenSeaWrapper__factory.ts @@ -0,0 +1,664 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + OpenSeaWrapper, + OpenSeaWrapperInterface, +} from "../OpenSeaWrapper"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_voucherAddress", + type: "address", + }, + { + internalType: "address", + name: "_protocolAddress", + type: "address", + }, + { + internalType: "address", + name: "_unwrapperAddress", + type: "address", + }, + { + internalType: "address", + name: "_seaport", + type: "address", + }, + { + internalType: "uint256", + name: "_openSeaFee", + type: "uint256", + }, + { + internalType: "address payable", + name: "_openSeaRecipient", + type: "address", + }, + { + internalType: "bytes32", + name: "_openSeaConduitKey", + type: "bytes32", + }, + { + internalType: "address", + name: "_openSeaConduit", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "approved", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: false, + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "previousOwner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "OwnershipTransferred", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct SeaportInterface.ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum SeaportInterface.OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "uint120", + name: "numerator", + type: "uint120", + }, + { + internalType: "uint120", + name: "denominator", + type: "uint120", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + { + internalType: "bytes", + name: "extraData", + type: "bytes", + }, + ], + internalType: "struct SeaportInterface.AdvancedOrder", + name: "_buyerOrder", + type: "tuple", + }, + ], + name: "finalizeAuction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "getApproved", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "operator", + type: "address", + }, + ], + name: "isApprovedForAll", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256[]", + name: "_tokenIds", + type: "uint256[]", + }, + { + internalType: "uint256", + name: "_price", + type: "uint256", + }, + { + internalType: "uint256", + name: "_endTime", + type: "uint256", + }, + ], + name: "listFixedPriceOrder", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "ownerOf", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "renounceOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "operator", + type: "address", + }, + { + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + name: "setApprovalForAll", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "_interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "tokenURI", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "transferOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + ], + name: "unwrap", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256[]", + name: "_tokenIds", + type: "uint256[]", + }, + ], + name: "wrapForAuction", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +]; + +export class OpenSeaWrapper__factory { + static readonly abi = _abi; + static createInterface(): OpenSeaWrapperInterface { + return new utils.Interface(_abi) as OpenSeaWrapperInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): OpenSeaWrapper { + return new Contract(address, _abi, signerOrProvider) as OpenSeaWrapper; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/SeaportInterface__factory.ts b/packages/ethers-sdk/src/contracts/factories/SeaportInterface__factory.ts new file mode 100644 index 000000000..912c847c6 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/SeaportInterface__factory.ts @@ -0,0 +1,457 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + SeaportInterface, + SeaportInterfaceInterface, +} from "../SeaportInterface"; + +const _abi = [ + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct SeaportInterface.ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum SeaportInterface.OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "uint120", + name: "numerator", + type: "uint120", + }, + { + internalType: "uint120", + name: "denominator", + type: "uint120", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + { + internalType: "bytes", + name: "extraData", + type: "bytes", + }, + ], + internalType: "struct SeaportInterface.AdvancedOrder[]", + name: "orders", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "enum SeaportInterface.Side", + name: "side", + type: "uint8", + }, + { + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "bytes32[]", + name: "criteriaProof", + type: "bytes32[]", + }, + ], + internalType: "struct SeaportInterface.CriteriaResolver[]", + name: "criteriaResolvers", + type: "tuple[]", + }, + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.FulfillmentComponent[]", + name: "offerComponents", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.FulfillmentComponent[]", + name: "considerationComponents", + type: "tuple[]", + }, + ], + internalType: "struct SeaportInterface.Fulfillment[]", + name: "fulfillments", + type: "tuple[]", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "matchAdvancedOrders", + outputs: [ + { + components: [ + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct SeaportInterface.ReceivedItem", + name: "item", + type: "tuple", + }, + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + ], + internalType: "struct SeaportInterface.Execution[]", + name: "executions", + type: "tuple[]", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum SeaportInterface.ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct SeaportInterface.ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum SeaportInterface.OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct SeaportInterface.OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct SeaportInterface.Order[]", + name: "orders", + type: "tuple[]", + }, + ], + name: "validate", + outputs: [ + { + internalType: "bool", + name: "validated", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +]; + +export class SeaportInterface__factory { + static readonly abi = _abi; + static createInterface(): SeaportInterfaceInterface { + return new utils.Interface(_abi) as SeaportInterfaceInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SeaportInterface { + return new Contract(address, _abi, signerOrProvider) as SeaportInterface; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/Seaport__factory.ts b/packages/ethers-sdk/src/contracts/factories/Seaport__factory.ts new file mode 100644 index 000000000..88d4116e5 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/Seaport__factory.ts @@ -0,0 +1,2979 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { Seaport, SeaportInterface } from "../Seaport"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "conduitController", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [], + name: "BadContractSignature", + type: "error", + }, + { + inputs: [], + name: "BadFraction", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "BadReturnValueFromERC20OnTransfer", + type: "error", + }, + { + inputs: [ + { + internalType: "uint8", + name: "v", + type: "uint8", + }, + ], + name: "BadSignatureV", + type: "error", + }, + { + inputs: [], + name: "CannotCancelOrder", + type: "error", + }, + { + inputs: [], + name: "ConsiderationCriteriaResolverOutOfRange", + type: "error", + }, + { + inputs: [], + name: "ConsiderationLengthNotEqualToTotalOriginal", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "considerationIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "shortfallAmount", + type: "uint256", + }, + ], + name: "ConsiderationNotMet", + type: "error", + }, + { + inputs: [], + name: "CriteriaNotEnabledForItem", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256[]", + name: "identifiers", + type: "uint256[]", + }, + { + internalType: "uint256[]", + name: "amounts", + type: "uint256[]", + }, + ], + name: "ERC1155BatchTransferGenericFailure", + type: "error", + }, + { + inputs: [], + name: "InexactFraction", + type: "error", + }, + { + inputs: [], + name: "InsufficientNativeTokensSupplied", + type: "error", + }, + { + inputs: [], + name: "Invalid1155BatchTransferEncoding", + type: "error", + }, + { + inputs: [], + name: "InvalidBasicOrderParameterEncoding", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "conduit", + type: "address", + }, + ], + name: "InvalidCallToConduit", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "address", + name: "conduit", + type: "address", + }, + ], + name: "InvalidConduit", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "InvalidContractOrder", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "InvalidERC721TransferAmount", + type: "error", + }, + { + inputs: [], + name: "InvalidFulfillmentComponentData", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "InvalidMsgValue", + type: "error", + }, + { + inputs: [], + name: "InvalidNativeOfferItem", + type: "error", + }, + { + inputs: [], + name: "InvalidProof", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "InvalidRestrictedOrder", + type: "error", + }, + { + inputs: [], + name: "InvalidSignature", + type: "error", + }, + { + inputs: [], + name: "InvalidSigner", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + ], + name: "InvalidTime", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "fulfillmentIndex", + type: "uint256", + }, + ], + name: "MismatchedFulfillmentOfferAndConsiderationComponents", + type: "error", + }, + { + inputs: [ + { + internalType: "enum Side", + name: "side", + type: "uint8", + }, + ], + name: "MissingFulfillmentComponentOnAggregation", + type: "error", + }, + { + inputs: [], + name: "MissingItemAmount", + type: "error", + }, + { + inputs: [], + name: "MissingOriginalConsiderationItems", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "NativeTokenTransferGenericFailure", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "NoContract", + type: "error", + }, + { + inputs: [], + name: "NoReentrantCalls", + type: "error", + }, + { + inputs: [], + name: "NoSpecifiedOrdersAvailable", + type: "error", + }, + { + inputs: [], + name: "OfferAndConsiderationRequiredOnFulfillment", + type: "error", + }, + { + inputs: [], + name: "OfferCriteriaResolverOutOfRange", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "OrderAlreadyFilled", + type: "error", + }, + { + inputs: [ + { + internalType: "enum Side", + name: "side", + type: "uint8", + }, + ], + name: "OrderCriteriaResolverOutOfRange", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "OrderIsCancelled", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "OrderPartiallyFilled", + type: "error", + }, + { + inputs: [], + name: "PartialFillsNotEnabledForOrder", + type: "error", + }, + { + inputs: [], + name: "TStoreAlreadyActivated", + type: "error", + }, + { + inputs: [], + name: "TStoreNotSupported", + type: "error", + }, + { + inputs: [], + name: "TloadTestContractDeploymentFailed", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "TokenTransferGenericFailure", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "considerationIndex", + type: "uint256", + }, + ], + name: "UnresolvedConsiderationCriteria", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerIndex", + type: "uint256", + }, + ], + name: "UnresolvedOfferCriteria", + type: "error", + }, + { + inputs: [], + name: "UnusedItemParameters", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "newCounter", + type: "uint256", + }, + { + indexed: true, + internalType: "address", + name: "offerer", + type: "address", + }, + ], + name: "CounterIncremented", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + { + indexed: true, + internalType: "address", + name: "offerer", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "zone", + type: "address", + }, + ], + name: "OrderCancelled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + { + indexed: true, + internalType: "address", + name: "offerer", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "zone", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "recipient", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct SpentItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + indexed: false, + internalType: "struct ReceivedItem[]", + name: "consideration", + type: "tuple[]", + }, + ], + name: "OrderFulfilled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct OrderParameters", + name: "orderParameters", + type: "tuple", + }, + ], + name: "OrderValidated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bytes32[]", + name: "orderHashes", + type: "bytes32[]", + }, + ], + name: "OrdersMatched", + type: "event", + }, + { + inputs: [], + name: "__activateTstore", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "counter", + type: "uint256", + }, + ], + internalType: "struct OrderComponents[]", + name: "orders", + type: "tuple[]", + }, + ], + name: "cancel", + outputs: [ + { + internalType: "bool", + name: "cancelled", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "uint120", + name: "numerator", + type: "uint120", + }, + { + internalType: "uint120", + name: "denominator", + type: "uint120", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + { + internalType: "bytes", + name: "extraData", + type: "bytes", + }, + ], + internalType: "struct AdvancedOrder", + name: "", + type: "tuple", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "enum Side", + name: "side", + type: "uint8", + }, + { + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "bytes32[]", + name: "criteriaProof", + type: "bytes32[]", + }, + ], + internalType: "struct CriteriaResolver[]", + name: "", + type: "tuple[]", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "fulfillAdvancedOrder", + outputs: [ + { + internalType: "bool", + name: "fulfilled", + type: "bool", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "uint120", + name: "numerator", + type: "uint120", + }, + { + internalType: "uint120", + name: "denominator", + type: "uint120", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + { + internalType: "bytes", + name: "extraData", + type: "bytes", + }, + ], + internalType: "struct AdvancedOrder[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "enum Side", + name: "side", + type: "uint8", + }, + { + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "bytes32[]", + name: "criteriaProof", + type: "bytes32[]", + }, + ], + internalType: "struct CriteriaResolver[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[][]", + name: "", + type: "tuple[][]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[][]", + name: "", + type: "tuple[][]", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "uint256", + name: "maximumFulfilled", + type: "uint256", + }, + ], + name: "fulfillAvailableAdvancedOrders", + outputs: [ + { + internalType: "bool[]", + name: "", + type: "bool[]", + }, + { + components: [ + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ReceivedItem", + name: "item", + type: "tuple", + }, + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + ], + internalType: "struct Execution[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct Order[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[][]", + name: "", + type: "tuple[][]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[][]", + name: "", + type: "tuple[][]", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "maximumFulfilled", + type: "uint256", + }, + ], + name: "fulfillAvailableOrders", + outputs: [ + { + internalType: "bool[]", + name: "", + type: "bool[]", + }, + { + components: [ + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ReceivedItem", + name: "item", + type: "tuple", + }, + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + ], + internalType: "struct Execution[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "considerationToken", + type: "address", + }, + { + internalType: "uint256", + name: "considerationIdentifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "considerationAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + internalType: "address", + name: "offerToken", + type: "address", + }, + { + internalType: "uint256", + name: "offerIdentifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerAmount", + type: "uint256", + }, + { + internalType: "enum BasicOrderType", + name: "basicOrderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "offererConduitKey", + type: "bytes32", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalAdditionalRecipients", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct AdditionalRecipient[]", + name: "additionalRecipients", + type: "tuple[]", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct BasicOrderParameters", + name: "", + type: "tuple", + }, + ], + name: "fulfillBasicOrder", + outputs: [ + { + internalType: "bool", + name: "fulfilled", + type: "bool", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "considerationToken", + type: "address", + }, + { + internalType: "uint256", + name: "considerationIdentifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "considerationAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + internalType: "address", + name: "offerToken", + type: "address", + }, + { + internalType: "uint256", + name: "offerIdentifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "offerAmount", + type: "uint256", + }, + { + internalType: "enum BasicOrderType", + name: "basicOrderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "offererConduitKey", + type: "bytes32", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalAdditionalRecipients", + type: "uint256", + }, + { + components: [ + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct AdditionalRecipient[]", + name: "additionalRecipients", + type: "tuple[]", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct BasicOrderParameters", + name: "", + type: "tuple", + }, + ], + name: "fulfillBasicOrder_efficient_6GL6yc", + outputs: [ + { + internalType: "bool", + name: "fulfilled", + type: "bool", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct Order", + name: "", + type: "tuple", + }, + { + internalType: "bytes32", + name: "fulfillerConduitKey", + type: "bytes32", + }, + ], + name: "fulfillOrder", + outputs: [ + { + internalType: "bool", + name: "fulfilled", + type: "bool", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "contractOfferer", + type: "address", + }, + ], + name: "getContractOffererNonce", + outputs: [ + { + internalType: "uint256", + name: "nonce", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + ], + name: "getCounter", + outputs: [ + { + internalType: "uint256", + name: "counter", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "counter", + type: "uint256", + }, + ], + internalType: "struct OrderComponents", + name: "", + type: "tuple", + }, + ], + name: "getOrderHash", + outputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "orderHash", + type: "bytes32", + }, + ], + name: "getOrderStatus", + outputs: [ + { + internalType: "bool", + name: "isValidated", + type: "bool", + }, + { + internalType: "bool", + name: "isCancelled", + type: "bool", + }, + { + internalType: "uint256", + name: "totalFilled", + type: "uint256", + }, + { + internalType: "uint256", + name: "totalSize", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "incrementCounter", + outputs: [ + { + internalType: "uint256", + name: "newCounter", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "information", + outputs: [ + { + internalType: "string", + name: "version", + type: "string", + }, + { + internalType: "bytes32", + name: "domainSeparator", + type: "bytes32", + }, + { + internalType: "address", + name: "conduitController", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "uint120", + name: "numerator", + type: "uint120", + }, + { + internalType: "uint120", + name: "denominator", + type: "uint120", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + { + internalType: "bytes", + name: "extraData", + type: "bytes", + }, + ], + internalType: "struct AdvancedOrder[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "enum Side", + name: "side", + type: "uint8", + }, + { + internalType: "uint256", + name: "index", + type: "uint256", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "bytes32[]", + name: "criteriaProof", + type: "bytes32[]", + }, + ], + internalType: "struct CriteriaResolver[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[]", + name: "offerComponents", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[]", + name: "considerationComponents", + type: "tuple[]", + }, + ], + internalType: "struct Fulfillment[]", + name: "", + type: "tuple[]", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + ], + name: "matchAdvancedOrders", + outputs: [ + { + components: [ + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ReceivedItem", + name: "item", + type: "tuple", + }, + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + ], + internalType: "struct Execution[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct Order[]", + name: "", + type: "tuple[]", + }, + { + components: [ + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[]", + name: "offerComponents", + type: "tuple[]", + }, + { + components: [ + { + internalType: "uint256", + name: "orderIndex", + type: "uint256", + }, + { + internalType: "uint256", + name: "itemIndex", + type: "uint256", + }, + ], + internalType: "struct FulfillmentComponent[]", + name: "considerationComponents", + type: "tuple[]", + }, + ], + internalType: "struct Fulfillment[]", + name: "", + type: "tuple[]", + }, + ], + name: "matchOrders", + outputs: [ + { + components: [ + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifier", + type: "uint256", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ReceivedItem", + name: "item", + type: "tuple", + }, + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + ], + internalType: "struct Execution[]", + name: "", + type: "tuple[]", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "offerer", + type: "address", + }, + { + internalType: "address", + name: "zone", + type: "address", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + ], + internalType: "struct OfferItem[]", + name: "offer", + type: "tuple[]", + }, + { + components: [ + { + internalType: "enum ItemType", + name: "itemType", + type: "uint8", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "identifierOrCriteria", + type: "uint256", + }, + { + internalType: "uint256", + name: "startAmount", + type: "uint256", + }, + { + internalType: "uint256", + name: "endAmount", + type: "uint256", + }, + { + internalType: "address payable", + name: "recipient", + type: "address", + }, + ], + internalType: "struct ConsiderationItem[]", + name: "consideration", + type: "tuple[]", + }, + { + internalType: "enum OrderType", + name: "orderType", + type: "uint8", + }, + { + internalType: "uint256", + name: "startTime", + type: "uint256", + }, + { + internalType: "uint256", + name: "endTime", + type: "uint256", + }, + { + internalType: "bytes32", + name: "zoneHash", + type: "bytes32", + }, + { + internalType: "uint256", + name: "salt", + type: "uint256", + }, + { + internalType: "bytes32", + name: "conduitKey", + type: "bytes32", + }, + { + internalType: "uint256", + name: "totalOriginalConsiderationItems", + type: "uint256", + }, + ], + internalType: "struct OrderParameters", + name: "parameters", + type: "tuple", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct Order[]", + name: "", + type: "tuple[]", + }, + ], + name: "validate", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", + }, +]; + +export class Seaport__factory { + static readonly abi = _abi; + static createInterface(): SeaportInterface { + return new utils.Interface(_abi) as SeaportInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Seaport { + return new Contract(address, _abi, signerOrProvider) as Seaport; + } +} diff --git a/packages/ethers-sdk/src/contracts/index.ts b/packages/ethers-sdk/src/contracts/index.ts index d95869f22..d1182766c 100644 --- a/packages/ethers-sdk/src/contracts/index.ts +++ b/packages/ethers-sdk/src/contracts/index.ts @@ -2,45 +2,67 @@ /* tslint:disable */ /* eslint-disable */ export type { BiconomyForwarder } from "./BiconomyForwarder"; +export type { DRFeeMutualizer } from "./DRFeeMutualizer"; export type { ERC1155 } from "./ERC1155"; export type { ERC165 } from "./ERC165"; export type { ERC20 } from "./ERC20"; export type { ERC721Enumerable } from "./ERC721Enumerable"; export type { IBosonAccountHandler } from "./IBosonAccountHandler"; export type { IBosonAccountHandlerLegacy } from "./IBosonAccountHandlerLegacy"; +export type { IBosonConfigHandler } from "./IBosonConfigHandler"; export type { IBosonDisputeHandler } from "./IBosonDisputeHandler"; +export type { IBosonExchangeCommitHandler } from "./IBosonExchangeCommitHandler"; export type { IBosonExchangeHandler } from "./IBosonExchangeHandler"; +export type { IBosonExchangeHandler240 } from "./IBosonExchangeHandler240"; export type { IBosonFundsHandler } from "./IBosonFundsHandler"; export type { IBosonGroupHandler } from "./IBosonGroupHandler"; export type { IBosonGroupHandlerLegacy } from "./IBosonGroupHandlerLegacy"; export type { IBosonMetaTransactionsHandler } from "./IBosonMetaTransactionsHandler"; export type { IBosonOfferHandler } from "./IBosonOfferHandler"; export type { IBosonOfferHandler230 } from "./IBosonOfferHandler230"; +export type { IBosonOfferHandler240 } from "./IBosonOfferHandler240"; export type { IBosonOfferHandlerLegacy } from "./IBosonOfferHandlerLegacy"; export type { IBosonOrchestrationHandler } from "./IBosonOrchestrationHandler"; +export type { IBosonPriceDiscoveryHandler } from "./IBosonPriceDiscoveryHandler"; export type { IBosonVoucher } from "./IBosonVoucher"; +export type { IDRFeeMutualizer } from "./IDRFeeMutualizer"; export type { MockForwarder } from "./MockForwarder"; export type { MockNativeMetaTransaction } from "./MockNativeMetaTransaction"; +export type { OpenSeaWrapper } from "./OpenSeaWrapper"; +export type { OpenSeaWrapperFactory } from "./OpenSeaWrapperFactory"; export type { ProtocolDiamond } from "./ProtocolDiamond"; +export type { Seaport } from "./Seaport"; +export type { SeaportInterface } from "./SeaportInterface"; export { BiconomyForwarder__factory } from "./factories/BiconomyForwarder__factory"; +export { DRFeeMutualizer__factory } from "./factories/DRFeeMutualizer__factory"; export { ERC1155__factory } from "./factories/ERC1155__factory"; export { ERC165__factory } from "./factories/ERC165__factory"; export { ERC20__factory } from "./factories/ERC20__factory"; export { ERC721Enumerable__factory } from "./factories/ERC721Enumerable__factory"; export { IBosonAccountHandler__factory } from "./factories/IBosonAccountHandler__factory"; export { IBosonAccountHandlerLegacy__factory } from "./factories/IBosonAccountHandlerLegacy__factory"; +export { IBosonConfigHandler__factory } from "./factories/IBosonConfigHandler__factory"; export { IBosonDisputeHandler__factory } from "./factories/IBosonDisputeHandler__factory"; +export { IBosonExchangeCommitHandler__factory } from "./factories/IBosonExchangeCommitHandler__factory"; export { IBosonExchangeHandler__factory } from "./factories/IBosonExchangeHandler__factory"; +export { IBosonExchangeHandler240__factory } from "./factories/IBosonExchangeHandler240__factory"; export { IBosonFundsHandler__factory } from "./factories/IBosonFundsHandler__factory"; export { IBosonGroupHandler__factory } from "./factories/IBosonGroupHandler__factory"; export { IBosonGroupHandlerLegacy__factory } from "./factories/IBosonGroupHandlerLegacy__factory"; export { IBosonMetaTransactionsHandler__factory } from "./factories/IBosonMetaTransactionsHandler__factory"; export { IBosonOfferHandler__factory } from "./factories/IBosonOfferHandler__factory"; export { IBosonOfferHandler230__factory } from "./factories/IBosonOfferHandler230__factory"; +export { IBosonOfferHandler240__factory } from "./factories/IBosonOfferHandler240__factory"; export { IBosonOfferHandlerLegacy__factory } from "./factories/IBosonOfferHandlerLegacy__factory"; export { IBosonOrchestrationHandler__factory } from "./factories/IBosonOrchestrationHandler__factory"; +export { IBosonPriceDiscoveryHandler__factory } from "./factories/IBosonPriceDiscoveryHandler__factory"; export { IBosonVoucher__factory } from "./factories/IBosonVoucher__factory"; +export { IDRFeeMutualizer__factory } from "./factories/IDRFeeMutualizer__factory"; export { MockForwarder__factory } from "./factories/MockForwarder__factory"; export { MockNativeMetaTransaction__factory } from "./factories/MockNativeMetaTransaction__factory"; +export { OpenSeaWrapper__factory } from "./factories/OpenSeaWrapper__factory"; +export { OpenSeaWrapperFactory__factory } from "./factories/OpenSeaWrapperFactory__factory"; export { ProtocolDiamond__factory } from "./factories/ProtocolDiamond__factory"; +export { Seaport__factory } from "./factories/Seaport__factory"; +export { SeaportInterface__factory } from "./factories/SeaportInterface__factory"; diff --git a/packages/react-kit/src/components/cta/funds/DepositFundsButton.tsx b/packages/react-kit/src/components/cta/funds/DepositFundsButton.tsx index ff0a62003..f8c9ce438 100644 --- a/packages/react-kit/src/components/cta/funds/DepositFundsButton.tsx +++ b/packages/react-kit/src/components/cta/funds/DepositFundsButton.tsx @@ -64,7 +64,7 @@ export const DepositFundsButton = withQueryClientProvider( coreSdk.depositFunds(accountId, amountToDeposit, exchangeToken), signMetaTxFn: () => coreSdk.signMetaTxDepositFunds({ - sellerId: accountId, + entityId: accountId, fundsTokenAddress: exchangeToken, fundsAmount: amountToDeposit, nonce: Date.now() diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 33ab0079f..947447a2e 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -27,10 +27,11 @@ } }, "dependencies": { - "@graphprotocol/graph-cli": "0.68.5", - "@graphprotocol/graph-ts": "0.33.0" + "@graphprotocol/graph-cli": "^0.97.1", + "@graphprotocol/graph-ts": "^0.38.1" }, "devDependencies": { + "@bosonprotocol/common": "^1.31.0-alpha.11", "assemblyscript": "0.19.23", "ethers": "^5.5.4", "handlebars": "^4.7.7", diff --git a/packages/subgraph/schema.graphql b/packages/subgraph/schema.graphql index a76b46492..6f1f5ab61 100644 --- a/packages/subgraph/schema.graphql +++ b/packages/subgraph/schema.graphql @@ -52,20 +52,20 @@ interface ItemMetadataInterface { metadataUri: String! } -type SellerContactLink @entity { +type SellerContactLink @entity(immutable: true) { id: ID! url: String! tag: String! } -type SellerSocialLink @entity { +type SellerSocialLink @entity(immutable: true) { id: ID! url: String! tag: String! } -type SellerMetadataMedia @entity { +type SellerMetadataMedia @entity(immutable: false) { id: ID! url: String! tag: String @@ -80,7 +80,7 @@ enum SellerMetadataType { SELLER } -type SalesChannelDeployment @entity { +type SalesChannelDeployment @entity(immutable: false) { id: ID! product: ProductV1Product status: String @@ -88,7 +88,7 @@ type SalesChannelDeployment @entity { lastUpdated: String } -type SalesChannel @entity { +type SalesChannel @entity(immutable: false) { id: ID! tag: String! name: String @@ -98,7 +98,7 @@ type SalesChannel @entity { deployments: [SalesChannelDeployment!] } -type SellerMetadata @entity { +type SellerMetadata @entity(immutable: false) { id: ID! type: SellerMetadataType! createdAt: BigInt! @@ -114,21 +114,21 @@ type SellerMetadata @entity { salesChannels: [SalesChannel!] } -type AnimationMetadata @entity { +type AnimationMetadata @entity(immutable: true) { id: ID! height: Int type: String width: Int } -type MetadataAttribute @entity { +type MetadataAttribute @entity(immutable: true) { id: ID! traitType: String! value: String! displayType: String! } -type BaseMetadataEntity implements MetadataInterface @entity { +type BaseMetadataEntity implements MetadataInterface @entity(immutable: false) { """ Fields compliant to metadata standard """ @@ -163,7 +163,7 @@ type BaseMetadataEntity implements MetadataInterface @entity { numberOfRedemptions: BigInt! } -type ProductV1MetadataEntity implements MetadataInterface @entity { +type ProductV1MetadataEntity implements MetadataInterface @entity(immutable: false) { """ Fields compliant to metadata standard """ @@ -210,7 +210,7 @@ type ProductV1MetadataEntity implements MetadataInterface @entity { productOverrides: ProductV1ProductOverrides } -type BundleMetadataEntity implements MetadataInterface @entity { +type BundleMetadataEntity implements MetadataInterface @entity(immutable: false) { """ Fields compliant to metadata standard """ @@ -255,7 +255,7 @@ type BundleMetadataEntity implements MetadataInterface @entity { productUuids: [String!]! # Products unique ID (unique for all variants of the same product) } -type UnknownItemMetadataEntity implements ItemMetadataInterface @entity { +type UnknownItemMetadataEntity implements ItemMetadataInterface @entity(immutable: false) { id: ID! schemaUrl: String! # JSON schema URL type: ItemMetadataType! @@ -263,7 +263,7 @@ type UnknownItemMetadataEntity implements ItemMetadataInterface @entity { metadataUri: String! } -type ProductV1ItemMetadataEntity implements ItemMetadataInterface @entity { +type ProductV1ItemMetadataEntity implements ItemMetadataInterface @entity(immutable: false) { id: ID! schemaUrl: String! # JSON schema URL type: ItemMetadataType! @@ -280,13 +280,13 @@ type ProductV1ItemMetadataEntity implements ItemMetadataInterface @entity { metadataUri: String! } -type TokenIdRange @entity { +type TokenIdRange @entity(immutable: true) { id: ID! min: String! max: String! } -type Term @entity { +type Term @entity(immutable: true) { id: ID! key: String! value: String! @@ -294,7 +294,7 @@ type Term @entity { } -type NftItemMetadataEntity implements ItemMetadataInterface @entity { +type NftItemMetadataEntity implements ItemMetadataInterface @entity(immutable: false) { id: ID! schemaUrl: String! # JSON schema URL type: ItemMetadataType! @@ -315,7 +315,7 @@ type NftItemMetadataEntity implements ItemMetadataInterface @entity { metadataUri: String! } -type ProductV1Product @entity { +type ProductV1Product @entity(immutable: false) { id: ID! uuid: String! version: Int! @@ -387,28 +387,28 @@ type ProductV1Product @entity { maxValidUntilDate: BigInt! } -type ProductV1Brand @entity { +type ProductV1Brand @entity(immutable: true) { id: ID! name: String! products: [ProductV1Product!]! @derivedFrom(field: "brand") } -type ProductV1Category @entity { +type ProductV1Category @entity(immutable: true) { id: ID! name: String! } -type ProductV1Tag @entity { +type ProductV1Tag @entity(immutable: true) { id: ID! name: String! } -type ProductV1Section @entity { +type ProductV1Section @entity(immutable: true) { id: ID! name: String! } -type ProductV1Media @entity { +type ProductV1Media @entity(immutable: false) { id: ID! url: String! tag: String @@ -417,25 +417,25 @@ type ProductV1Media @entity { height: Int } -type ProductV1Personalisation @entity { +type ProductV1Personalisation @entity(immutable: true) { id: ID! name: String! } -type ProductV1Variation @entity { +type ProductV1Variation @entity(immutable: true) { id: ID! type: String! option: String! } -type ProductV1Variant @entity { +type ProductV1Variant @entity(immutable: false) { id: ID! variations: [ProductV1Variation!] offer: Offer! bundle: BundleMetadataEntity } -type ProductV1Seller @entity { +type ProductV1Seller @entity(immutable: false) { id: ID! defaultVersion: Int! name: String @@ -452,13 +452,13 @@ type ProductV1Seller @entity { seller: Seller! } -type ProductV1SellerContactLink @entity { +type ProductV1SellerContactLink @entity(immutable: true) { id: ID! url: String! tag: String! } -type ProductV1ShippingOption @entity { +type ProductV1ShippingOption @entity(immutable: false) { id: ID! defaultVersion: Int countryOfOrigin: String @@ -467,13 +467,13 @@ type ProductV1ShippingOption @entity { returnPeriodInDays: Int! } -type ProductV1ShippingJurisdiction @entity { +type ProductV1ShippingJurisdiction @entity(immutable: true) { id: ID! label: String! deliveryTime: String! } -type ProductV1ExchangePolicy @entity { +type ProductV1ExchangePolicy @entity(immutable: false) { id: ID! uuid: String! version: Int! @@ -483,7 +483,7 @@ type ProductV1ExchangePolicy @entity { disputeResolverContactMethod: String! } -type ProductV1ProductOverrides @entity { +type ProductV1ProductOverrides @entity(immutable: false) { id: ID! version: Int! title: String! @@ -524,28 +524,33 @@ enum PriceType { DISCOVERY } -type RoyaltyRecipientXSeller @entity { +enum OfferCreator { + SELLER + BUYER +} + +type RoyaltyRecipientXSeller @entity(immutable: false) { id: ID! seller: Seller! recipient: RoyaltyRecipient! minRoyaltyPercentage: BigInt! } -type RoyaltyRecipient @entity { +type RoyaltyRecipient @entity(immutable: true) { id: ID! wallet: Bytes! royalties: [RoyaltyRecipientXOffer!]! @derivedFrom(field: "recipient") sellers: [RoyaltyRecipientXSeller!]! @derivedFrom(field: "recipient") } -type RoyaltyRecipientXOffer @entity { +type RoyaltyRecipientXOffer @entity(immutable: false) { id: ID! recipient: RoyaltyRecipient! bps: BigInt! offer: Offer! } -type RoyaltyInfo @entity { +type RoyaltyInfo @entity(immutable: false) { id: ID! offer: Offer! recipients: [RoyaltyRecipientXOffer!] @@ -555,7 +560,7 @@ type RoyaltyInfo @entity { """ Offer """ -type Offer @entity { +type Offer @entity(immutable: false) { id: ID! createdAt: BigInt! price: BigInt! @@ -587,7 +592,7 @@ type Offer @entity { disputeResolver: DisputeResolver! disputeResolutionTerms: DisputeResolutionTermsEntity! sellerId: BigInt! - seller: Seller! + seller: Seller exchangeToken: ExchangeToken! priceType: Int! royaltyInfos: [RoyaltyInfo!]! @derivedFrom(field: "offer") @@ -595,6 +600,9 @@ type Offer @entity { voidedAt: BigInt exchanges: [Exchange!]! @derivedFrom(field: "offer") condition: ConditionEntity + creator: Int! + buyerId: BigInt! + buyer: Buyer "Range" range: RangeEntity @@ -607,7 +615,7 @@ type Offer @entity { """ Offer Collection """ -type OfferCollection @entity { +type OfferCollection @entity(immutable: true) { id: ID! seller: Seller! sellerId: BigInt! @@ -622,7 +630,7 @@ type OfferCollection @entity { """ Collection Contract """ -type CollectionContract @entity { +type CollectionContract @entity(immutable: false) { id: ID! address: Bytes! contractUri: String! @@ -632,7 +640,7 @@ type CollectionContract @entity { """ Nft Contract Metadata """ -type NftContractMetadata @entity { +type NftContractMetadata @entity(immutable: false) { id: ID! createdAt: BigInt! name: String @@ -654,7 +662,7 @@ enum ExchangeState { DISPUTED } -type Exchange @entity { +type Exchange @entity(immutable: false) { id: ID! offer: Offer! buyer: Buyer! @@ -673,6 +681,7 @@ type Exchange @entity { expired: Boolean! dispute: Dispute protocolFeeCollected: ProtocolFeeCollected @derivedFrom(field: "exchange") + mutualizerAddress: Bytes! } """ @@ -684,7 +693,7 @@ interface Account { logs: [EventLog!]! @derivedFrom(field: "account") } -type PendingSeller @entity { +type PendingSeller @entity(immutable: false) { id: ID! assistant: Bytes admin: Bytes @@ -695,7 +704,7 @@ type PendingSeller @entity { metadataUri: String! } -type Seller implements Account @entity { +type Seller implements Account @entity(immutable: false) { id: ID! # Offer.sellerId sellerId: BigInt! # Allows sorting numerically by id offers: [Offer!]! @derivedFrom(field: "seller") @@ -718,7 +727,7 @@ type Seller implements Account @entity { metadata: SellerMetadata } -type Buyer implements Account @entity { +type Buyer implements Account @entity(immutable: false) { id: ID! exchanges: [Exchange!]! @derivedFrom(field: "buyer") wallet: Bytes! @@ -727,7 +736,7 @@ type Buyer implements Account @entity { logs: [EventLog!]! @derivedFrom(field: "account") } -type PendingDisputeResolver @entity { +type PendingDisputeResolver @entity(immutable: false) { id: ID! assistant: Bytes admin: Bytes @@ -735,7 +744,7 @@ type PendingDisputeResolver @entity { disputeResolver: DisputeResolver! } -type DisputeResolver implements Account @entity { +type DisputeResolver implements Account @entity(immutable: false) { id: ID! escalationResponsePeriod: BigInt! admin: Bytes! @@ -752,7 +761,7 @@ type DisputeResolver implements Account @entity { pendingDisputeResolver: PendingDisputeResolver @derivedFrom(field: "disputeResolver") } -type DisputeResolutionTermsEntity @entity { +type DisputeResolutionTermsEntity @entity(immutable: false) { "-terms" id: ID! disputeResolverId: BigInt! @@ -761,9 +770,10 @@ type DisputeResolutionTermsEntity @entity { buyerEscalationDeposit: BigInt! disputeResolver: DisputeResolver! offer: Offer! + mutualizerAddress: Bytes! } -type DisputeResolverFee @entity { +type DisputeResolverFee @entity(immutable: false) { "--fee" id: ID! tokenAddress: Bytes! @@ -784,7 +794,7 @@ enum DisputeState { REFUSED } -type Dispute @entity { +type Dispute @entity(immutable: false) { id: ID! exchangeId: BigInt! exchange: Exchange! @@ -806,7 +816,7 @@ type Dispute @entity { """ Funds """ -type FundsEntity @entity { +type FundsEntity @entity(immutable: false) { id: ID! # sellerId + "-" + tokenAddress availableAmount: BigInt! tokenAddress: Bytes! @@ -818,7 +828,7 @@ type FundsEntity @entity { """ Tokens """ -type ExchangeToken @entity { +type ExchangeToken @entity(immutable: true) { id: ID! address: Bytes! decimals: BigInt! @@ -884,7 +894,7 @@ interface EventLog { account: Account! } -type AccountEventLog implements EventLog @entity { +type AccountEventLog implements EventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -893,7 +903,7 @@ type AccountEventLog implements EventLog @entity { account: Account! } -type OfferEventLog implements EventLog @entity { +type OfferEventLog implements EventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -904,7 +914,7 @@ type OfferEventLog implements EventLog @entity { offer: Offer! } -type ExchangeEventLog implements EventLog @entity { +type ExchangeEventLog implements EventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -915,7 +925,7 @@ type ExchangeEventLog implements EventLog @entity { exchange: Exchange! } -type ConditionalCommitAuthorizedEventLog @entity { +type ConditionalCommitAuthorizedEventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -930,7 +940,7 @@ type ConditionalCommitAuthorizedEventLog @entity { maxCommits: BigInt! } -type FundsEventLog implements EventLog @entity { +type FundsEventLog implements EventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -941,7 +951,7 @@ type FundsEventLog implements EventLog @entity { funds: FundsEntity! } -type ProtocolFeeCollected @entity { +type ProtocolFeeCollected @entity(immutable: true) { id: ID! exchangeId: BigInt!, exchange: Exchange!, @@ -950,7 +960,7 @@ type ProtocolFeeCollected @entity { executedBy: Bytes! } -type DisputeEventLog implements EventLog @entity { +type DisputeEventLog implements EventLog @entity(immutable: true) { id: ID! hash: String! type: EventType! @@ -964,7 +974,7 @@ type DisputeEventLog implements EventLog @entity { """ Groups """ -type ConditionEntity @entity { +type ConditionEntity @entity(immutable: false) { id: ID! # groupId method: Int! tokenType: Int! @@ -980,7 +990,7 @@ type ConditionEntity @entity { """ Offer Ranges """ -type RangeEntity @entity { +type RangeEntity @entity(immutable: false) { id: ID! # rangeId start: BigInt! end: BigInt! diff --git a/packages/subgraph/src/entities/dispute-resolution.ts b/packages/subgraph/src/entities/dispute-resolution.ts index 061ee231f..d8be6fe4c 100644 --- a/packages/subgraph/src/entities/dispute-resolution.ts +++ b/packages/subgraph/src/entities/dispute-resolution.ts @@ -3,6 +3,7 @@ import { Address, BigInt } from "@graphprotocol/graph-ts"; import { OfferCreatedDisputeResolutionTermsStruct } from "../../generated/BosonOfferHandler/IBosonOfferHandler"; import { OfferCreatedDisputeResolutionTermsStruct as OfferCreatedDisputeResolutionTermsStructLegacy } from "../../generated/BosonOfferHandlerLegacy/IBosonOfferHandlerLegacy"; import { OfferCreatedDisputeResolutionTermsStruct as OfferCreatedDisputeResolutionTermsStruct230 } from "../../generated/BosonOfferHandler230/IBosonOfferHandler230"; +import { OfferCreatedDisputeResolutionTermsStruct as OfferCreatedDisputeResolutionTermsStruct240 } from "../../generated/BosonOfferHandler240/IBosonOfferHandler240"; import { IBosonAccountHandler } from "../../generated/BosonAccountHandler/IBosonAccountHandler"; import { DisputeResolutionTermsEntity, @@ -10,6 +11,7 @@ import { DisputeResolver } from "../../generated/schema"; import { saveExchangeToken } from "./token"; +import { ZERO_ADDRESS } from "../utils/eth"; export function getDisputeResolutionTermsId( disputeResolverId: string, @@ -41,6 +43,36 @@ export function saveDisputeResolutionTerms( terms.offer = offerId; terms.feeAmount = disputeResolutionTerms.feeAmount; terms.offer = offerId; + terms.mutualizerAddress = disputeResolutionTerms.mutualizerAddress; + terms.save(); + + return disputeResolutionTermsId; +} + +export function saveDisputeResolutionTerms240( + disputeResolutionTerms: OfferCreatedDisputeResolutionTermsStruct240, + offerId: string +): string | null { + const disputeResolutionTermsId = getDisputeResolutionTermsId( + disputeResolutionTerms.disputeResolverId.toString(), + offerId + ); + + let terms = DisputeResolutionTermsEntity.load(disputeResolutionTermsId); + + if (!terms) { + terms = new DisputeResolutionTermsEntity(disputeResolutionTermsId); + } + + terms.escalationResponsePeriod = + disputeResolutionTerms.escalationResponsePeriod; + terms.buyerEscalationDeposit = disputeResolutionTerms.buyerEscalationDeposit; + terms.disputeResolverId = disputeResolutionTerms.disputeResolverId; + terms.disputeResolver = disputeResolutionTerms.disputeResolverId.toString(); + terms.offer = offerId; + terms.feeAmount = disputeResolutionTerms.feeAmount; + terms.offer = offerId; + terms.mutualizerAddress = Address.fromString(ZERO_ADDRESS); terms.save(); return disputeResolutionTermsId; @@ -68,6 +100,7 @@ export function saveDisputeResolutionTerms230( terms.disputeResolver = disputeResolutionTerms.disputeResolverId.toString(); terms.feeAmount = disputeResolutionTerms.feeAmount; terms.offer = offerId; + terms.mutualizerAddress = Address.fromString(ZERO_ADDRESS); terms.save(); return disputeResolutionTermsId; @@ -95,6 +128,7 @@ export function saveDisputeResolutionTermsLegacy( terms.disputeResolver = disputeResolutionTerms.disputeResolverId.toString(); terms.feeAmount = disputeResolutionTerms.feeAmount; terms.offer = offerId; + terms.mutualizerAddress = Address.fromString(ZERO_ADDRESS); terms.save(); return disputeResolutionTermsId; diff --git a/packages/subgraph/src/entities/event-log.ts b/packages/subgraph/src/entities/event-log.ts index 3323b279a..1622ee3d6 100644 --- a/packages/subgraph/src/entities/event-log.ts +++ b/packages/subgraph/src/entities/event-log.ts @@ -33,15 +33,14 @@ export function saveAccountEventLog( if (!eventLog) { eventLog = new AccountEventLog(eventLogId); + eventLog.type = type; + eventLog.hash = txHash; + eventLog.timestamp = timestamp; + eventLog.executedBy = executedBy; + eventLog.account = accountId; + eventLog.save(); } - eventLog.type = type; - eventLog.hash = txHash; - eventLog.timestamp = timestamp; - eventLog.executedBy = executedBy; - eventLog.account = accountId; - eventLog.save(); - return eventLogId; } @@ -60,16 +59,15 @@ export function saveOfferEventLog( if (!eventLog) { eventLog = new OfferEventLog(eventLogId); + eventLog.type = type; + eventLog.hash = txHash; + eventLog.timestamp = timestamp; + eventLog.executedBy = executedBy; + eventLog.account = accountId; + eventLog.offer = offerId; + eventLog.save(); } - eventLog.type = type; - eventLog.hash = txHash; - eventLog.timestamp = timestamp; - eventLog.executedBy = executedBy; - eventLog.account = accountId; - eventLog.offer = offerId; - eventLog.save(); - return eventLogId; } @@ -120,16 +118,15 @@ function saveExchangeEventLog( if (!eventLog) { eventLog = new ExchangeEventLog(eventLogId); + eventLog.type = type; + eventLog.hash = txHash; + eventLog.timestamp = timestamp; + eventLog.executedBy = executedBy; + eventLog.account = accountId; + eventLog.exchange = exchangeId; + eventLog.save(); } - eventLog.type = type; - eventLog.hash = txHash; - eventLog.timestamp = timestamp; - eventLog.executedBy = executedBy; - eventLog.account = accountId; - eventLog.exchange = exchangeId; - eventLog.save(); - return eventLogId; } @@ -148,16 +145,15 @@ export function saveFundsEventLog( if (!eventLog) { eventLog = new FundsEventLog(eventLogId); + eventLog.type = type; + eventLog.hash = txHash; + eventLog.timestamp = timestamp; + eventLog.executedBy = executedBy; + eventLog.account = accountId; + eventLog.funds = fundsId; + eventLog.save(); } - eventLog.type = type; - eventLog.hash = txHash; - eventLog.timestamp = timestamp; - eventLog.executedBy = executedBy; - eventLog.account = accountId; - eventLog.funds = fundsId; - eventLog.save(); - return eventLogId; } @@ -217,16 +213,15 @@ function saveDisputeEventLog( if (!eventLog) { eventLog = new DisputeEventLog(eventLogId); + eventLog.type = type; + eventLog.hash = txHash; + eventLog.timestamp = timestamp; + eventLog.executedBy = executedBy; + eventLog.account = accountId; + eventLog.dispute = disputeId; + eventLog.save(); } - eventLog.type = type; - eventLog.hash = txHash; - eventLog.timestamp = timestamp; - eventLog.executedBy = executedBy; - eventLog.account = accountId; - eventLog.dispute = disputeId; - eventLog.save(); - return eventLogId; } @@ -249,19 +244,18 @@ export function saveConditionalCommitAuthorizedEventLog( if (!eventLog) { eventLog = new ConditionalCommitAuthorizedEventLog(eventLogId); + eventLog.hash = txHash; + eventLog.type = type; + eventLog.timestamp = timestamp; + eventLog.buyerAddress = buyerAddress; + eventLog.commitCount = commitCount; + eventLog.maxCommits = maxCommits; + eventLog.gating = gating; + eventLog.tokenId = tokenId; + eventLog.groupId = groupId; + eventLog.offerId = offerId.toString(); + eventLog.save(); } - eventLog.hash = txHash; - eventLog.type = type; - eventLog.timestamp = timestamp; - eventLog.buyerAddress = buyerAddress; - eventLog.commitCount = commitCount; - eventLog.maxCommits = maxCommits; - eventLog.gating = gating; - eventLog.tokenId = tokenId; - eventLog.groupId = groupId; - eventLog.offerId = offerId.toString(); - eventLog.save(); - return eventLogId; } diff --git a/packages/subgraph/src/entities/metadata/animationMetadata.ts b/packages/subgraph/src/entities/metadata/animationMetadata.ts index 1c41cce39..b02ad69f9 100644 --- a/packages/subgraph/src/entities/metadata/animationMetadata.ts +++ b/packages/subgraph/src/entities/metadata/animationMetadata.ts @@ -26,18 +26,13 @@ export function saveAnimationMetadata( let animationMetadataEntity = AnimationMetadata.load(animationMetadataId); - if (animationMetadataEntity) { - animationMetadataEntity.height = height; - animationMetadataEntity.width = width; - animationMetadataEntity.type = type; - } else { + if (!animationMetadataEntity) { animationMetadataEntity = new AnimationMetadata(animationMetadataId); animationMetadataEntity.height = height; animationMetadataEntity.type = type; animationMetadataEntity.width = width; + animationMetadataEntity.save(); } - animationMetadataEntity.save(); - return animationMetadataId; } diff --git a/packages/subgraph/src/entities/metadata/product-v1/variation.ts b/packages/subgraph/src/entities/metadata/product-v1/variation.ts index 03c8a63b6..cab29b6b7 100644 --- a/packages/subgraph/src/entities/metadata/product-v1/variation.ts +++ b/packages/subgraph/src/entities/metadata/product-v1/variation.ts @@ -29,12 +29,11 @@ export function saveProductV1Variations( if (!variation) { variation = new ProductV1Variation(variationId); + variation.type = variationType; + variation.option = variationOption; + variation.save(); } - variation.type = variationType; - variation.option = variationOption; - variation.save(); - savedVariations.push(variationId); } diff --git a/packages/subgraph/src/entities/metadata/seller/links.ts b/packages/subgraph/src/entities/metadata/seller/links.ts index e37a8d766..e7a04e0c7 100644 --- a/packages/subgraph/src/entities/metadata/seller/links.ts +++ b/packages/subgraph/src/entities/metadata/seller/links.ts @@ -30,8 +30,8 @@ export function saveContactLinks( sellerContactLink = new SellerContactLink(id); sellerContactLink.url = url; sellerContactLink.tag = tag; + sellerContactLink.save(); } - sellerContactLink.save(); savedContactLinks.push(id); } @@ -63,8 +63,8 @@ export function saveSocialLinks( sellerSocialLink = new SellerSocialLink(id); sellerSocialLink.url = url; sellerSocialLink.tag = tag; + sellerSocialLink.save(); } - sellerSocialLink.save(); savedSocialLinks.push(id); } diff --git a/packages/subgraph/src/entities/metadata/utils.ts b/packages/subgraph/src/entities/metadata/utils.ts index a4cbffae8..38a4f313b 100644 --- a/packages/subgraph/src/entities/metadata/utils.ts +++ b/packages/subgraph/src/entities/metadata/utils.ts @@ -41,12 +41,12 @@ export function saveMetadataAttributes( if (!metadataAttribute) { metadataAttribute = new MetadataAttribute(attributeId); + metadataAttribute.traitType = traitType; + metadataAttribute.value = value; + metadataAttribute.displayType = displayType; + metadataAttribute.save(); } - metadataAttribute.traitType = traitType; - metadataAttribute.value = value; - metadataAttribute.displayType = displayType; - metadataAttribute.save(); savedMetadataAttributeIds.push(attributeId); } @@ -77,12 +77,12 @@ export function saveTerms( if (!term) { term = new Term(termId); + term.key = key; + term.value = value; + term.displayKey = displayKey; + term.save(); } - term.key = key; - term.value = value; - term.displayKey = displayKey; - term.save(); savedTermsIds.push(termId); } diff --git a/packages/subgraph/src/entities/token.ts b/packages/subgraph/src/entities/token.ts index d754c7fff..50dea43aa 100644 --- a/packages/subgraph/src/entities/token.ts +++ b/packages/subgraph/src/entities/token.ts @@ -4,6 +4,7 @@ import { ERC20 } from "../../generated/BosonOfferHandler/ERC20"; import { ERC20SymbolBytes } from "../../generated/BosonOfferHandler/ERC20SymbolBytes"; import { ERC20NameBytes } from "../../generated/BosonOfferHandler/ERC20NameBytes"; import { ExchangeToken } from "../../generated/schema"; +import { ZERO_ADDRESS } from "../utils/eth"; export function saveExchangeToken(exchangeTokenAddress: Address): void { let exchangeToken = ExchangeToken.load(exchangeTokenAddress.toHexString()); @@ -100,5 +101,5 @@ export function isNullEthValue(value: string): boolean { } export function isZeroAddress(value: string): boolean { - return value == "0x0000000000000000000000000000000000000000"; + return value == ZERO_ADDRESS; } diff --git a/packages/subgraph/src/mappings/account-handler.ts b/packages/subgraph/src/mappings/account-handler.ts index ba6cf4d76..048c96e2c 100644 --- a/packages/subgraph/src/mappings/account-handler.ts +++ b/packages/subgraph/src/mappings/account-handler.ts @@ -753,8 +753,8 @@ export function saveRoyaltyRecipient(wallet: Address): string { let royaltyRecipient = RoyaltyRecipient.load(royaltyRecipientId); if (!royaltyRecipient) { royaltyRecipient = new RoyaltyRecipient(royaltyRecipientId); + royaltyRecipient.wallet = wallet; + royaltyRecipient.save(); } - royaltyRecipient.wallet = wallet; - royaltyRecipient.save(); return royaltyRecipientId; } diff --git a/packages/subgraph/src/mappings/exchange-handler.ts b/packages/subgraph/src/mappings/exchange-handler.ts index 8b62ef7ef..cfb2b4782 100644 --- a/packages/subgraph/src/mappings/exchange-handler.ts +++ b/packages/subgraph/src/mappings/exchange-handler.ts @@ -1,4 +1,4 @@ -import { BigInt, log } from "@graphprotocol/graph-ts"; +import { Address, BigInt, log } from "@graphprotocol/graph-ts"; import { BuyerCommitted, VoucherCanceled, @@ -10,6 +10,7 @@ import { VoucherExpired, ConditionalCommitAuthorized } from "../../generated/BosonExchangeHandler/IBosonExchangeHandler"; +import { BuyerCommitted as BuyerCommitted240 } from "../../generated/BosonExchangeHandler240/IBosonExchangeHandler240"; import { ConditionEntity, Exchange, Offer } from "../../generated/schema"; import { saveMetadata } from "../entities/metadata/handler"; @@ -17,6 +18,7 @@ import { saveConditionalCommitAuthorizedEventLog, saveExchangeEventLogs } from "../entities/event-log"; +import { ZERO_ADDRESS } from "../utils/eth"; export function handleBuyerCommittedEvent(event: BuyerCommitted): void { const exchangeFromEvent = event.params.exchange; @@ -36,7 +38,7 @@ export function handleBuyerCommittedEvent(event: BuyerCommitted): void { saveMetadata(offer, offer.createdAt); - exchange.seller = offer.seller; + exchange.seller = offer.seller as string; // We assume seller in defined when BuyerCommitted is emitted exchange.disputeResolver = offer.disputeResolver; } else { log.warning("Unable to find Offer with id '{}'", [ @@ -51,6 +53,54 @@ export function handleBuyerCommittedEvent(event: BuyerCommitted): void { exchange.committedDate = event.params.voucher.committedDate; exchange.validUntilDate = event.params.voucher.validUntilDate; exchange.expired = false; + exchange.mutualizerAddress = exchangeFromEvent.mutualizerAddress; + + exchange.save(); + + saveExchangeEventLogs( + event.transaction.hash.toHexString(), + event.logIndex, + "BUYER_COMMITTED", + event.block.timestamp, + event.params.executedBy, + exchangeId + ); +} + +export function handleBuyerCommittedEvent240(event: BuyerCommitted240): void { + const exchangeFromEvent = event.params.exchange; + const exchangeId = exchangeFromEvent.id.toString(); + + let exchange = Exchange.load(exchangeId); + + if (!exchange) { + exchange = new Exchange(exchangeId); + } + + const offer = Offer.load(exchangeFromEvent.offerId.toString()); + if (offer) { + offer.quantityAvailable = offer.quantityAvailable.minus(BigInt.fromI32(1)); + offer.numberOfCommits = offer.numberOfCommits.plus(BigInt.fromI32(1)); + offer.save(); + + saveMetadata(offer, offer.createdAt); + + exchange.seller = offer.seller as string; // We assume seller is defined when BuyerCommitted is emitted + exchange.disputeResolver = offer.disputeResolver; + } else { + log.warning("Unable to find Offer with id '{}'", [ + exchangeFromEvent.offerId.toString() + ]); + } + + exchange.buyer = exchangeFromEvent.buyerId.toString(); + exchange.offer = exchangeFromEvent.offerId.toString(); + exchange.disputed = false; + exchange.state = "COMMITTED"; + exchange.committedDate = event.params.voucher.committedDate; + exchange.validUntilDate = event.params.voucher.validUntilDate; + exchange.expired = false; + exchange.mutualizerAddress = Address.fromString(ZERO_ADDRESS); exchange.save(); diff --git a/packages/subgraph/src/mappings/funds-handler.ts b/packages/subgraph/src/mappings/funds-handler.ts index f27d83b76..fe2ce4134 100644 --- a/packages/subgraph/src/mappings/funds-handler.ts +++ b/packages/subgraph/src/mappings/funds-handler.ts @@ -164,11 +164,11 @@ export function handleProtocolFeeCollectedEvent( ]); } else { protocolFeeCollected = new ProtocolFeeCollected(protocolFeeCollectedId); + protocolFeeCollected.amount = event.params.amount; + protocolFeeCollected.exchange = event.params.exchangeId.toString(); + protocolFeeCollected.exchangeId = event.params.exchangeId; + protocolFeeCollected.exchangeToken = event.params.exchangeToken; + protocolFeeCollected.executedBy = event.params.executedBy; + protocolFeeCollected.save(); } - protocolFeeCollected.amount = event.params.amount; - protocolFeeCollected.exchange = event.params.exchangeId.toString(); - protocolFeeCollected.exchangeId = event.params.exchangeId; - protocolFeeCollected.exchangeToken = event.params.exchangeToken; - protocolFeeCollected.executedBy = event.params.executedBy; - protocolFeeCollected.save(); } diff --git a/packages/subgraph/src/mappings/offer-handler.ts b/packages/subgraph/src/mappings/offer-handler.ts index a06113903..10c40f084 100644 --- a/packages/subgraph/src/mappings/offer-handler.ts +++ b/packages/subgraph/src/mappings/offer-handler.ts @@ -1,5 +1,6 @@ /* eslint-disable @typescript-eslint/ban-types */ import { Address, BigInt, log } from "@graphprotocol/graph-ts"; +import { OfferCreator } from "@bosonprotocol/common/src/types/enums"; import { OfferCreated, OfferVoided, @@ -7,6 +8,10 @@ import { RangeReserved, OfferRoyaltyInfoUpdated } from "../../generated/BosonOfferHandler/IBosonOfferHandler"; +import { + OfferCreated as OfferCreated240, + OfferVoided as OfferVoided240 +} from "../../generated/BosonOfferHandler240/IBosonOfferHandler240"; import { OfferCreated as OfferCreated230 } from "../../generated/BosonOfferHandler230/IBosonOfferHandler230"; import { OfferCreated as OfferCreatedLegacy } from "../../generated/BosonOfferHandlerLegacy/IBosonOfferHandlerLegacy"; @@ -23,6 +28,7 @@ import { getDisputeResolutionTermsId, saveDisputeResolutionTerms, saveDisputeResolutionTerms230, + saveDisputeResolutionTerms240, saveDisputeResolutionTermsLegacy } from "../entities/dispute-resolution"; import { saveOfferEventLog } from "../entities/event-log"; @@ -71,13 +77,21 @@ export function handleOfferCreatedEvent(event: OfferCreated): void { offer.resolutionPeriodDuration = offerDurationsStruct.resolutionPeriod; offer.disputeResolverId = disputeResolutionTermsStruct.disputeResolverId; offer.sellerId = offerStruct.sellerId; + offer.creator = offerStruct.creator; + offer.buyerId = offerStruct.buyerId; offer.disputeResolver = disputeResolutionTermsStruct.disputeResolverId.toString(); offer.disputeResolutionTerms = getDisputeResolutionTermsId( disputeResolutionTermsStruct.disputeResolverId.toString(), offerId.toString() ); - offer.seller = offerStruct.sellerId.toString(); + if (offerStruct.creator == OfferCreator.Buyer) { + offer.seller = null; + offer.buyer = offerStruct.buyerId.toString(); + } else { + offer.seller = offerStruct.sellerId.toString(); + offer.buyer = null; + } offer.exchangeToken = offerStruct.exchangeToken.toHexString(); offer.metadataUri = offerStruct.metadataUri; offer.metadataHash = offerStruct.metadataHash; @@ -180,6 +194,98 @@ function saveRoyaltyRecipientXOffer( return royaltyRecipientXOfferId; } +export function handleOfferCreatedEvent240(event: OfferCreated240): void { + const offerId = event.params.offerId; + + let offer = Offer.load(offerId.toString()); + + if (!offer) { + const offerStruct = event.params.offer; + const offerDatesStruct = event.params.offerDates; + const offerDurationsStruct = event.params.offerDurations; + const offerFeesStruct = event.params.offerFees; + const disputeResolutionTermsStruct = event.params.disputeResolutionTerms; + + if (!checkSellerExist(offerStruct.sellerId)) { + log.warning( + "Offer '{}' won't be created because seller '{}' does not exist", + [offerId.toString(), offerStruct.sellerId.toString()] + ); + return; + } + + offer = new Offer(offerId.toString()); + offer.createdAt = event.block.timestamp; + offer.price = offerStruct.price; + offer.sellerDeposit = offerStruct.sellerDeposit; + offer.protocolFee = offerFeesStruct.protocolFee; + offer.agentFee = offerFeesStruct.agentFee; + offer.agentId = event.params.agentId; + offer.buyerCancelPenalty = offerStruct.buyerCancelPenalty; + offer.quantityInitial = offerStruct.quantityAvailable; + offer.quantityAvailable = offerStruct.quantityAvailable; + offer.validFromDate = offerDatesStruct.validFrom; + offer.validUntilDate = offerDatesStruct.validUntil; + offer.voucherRedeemableFromDate = offerDatesStruct.voucherRedeemableFrom; + offer.voucherRedeemableUntilDate = offerDatesStruct.voucherRedeemableUntil; + offer.disputePeriodDuration = offerDurationsStruct.disputePeriod; + offer.voucherValidDuration = offerDurationsStruct.voucherValid; + offer.resolutionPeriodDuration = offerDurationsStruct.resolutionPeriod; + offer.disputeResolverId = disputeResolutionTermsStruct.disputeResolverId; + offer.sellerId = offerStruct.sellerId; + offer.creator = i8(OfferCreator.Seller); + offer.buyerId = BigInt.fromI32(0); + offer.disputeResolver = + disputeResolutionTermsStruct.disputeResolverId.toString(); + offer.disputeResolutionTerms = getDisputeResolutionTermsId( + disputeResolutionTermsStruct.disputeResolverId.toString(), + offerId.toString() + ); + offer.seller = offerStruct.sellerId.toString(); + offer.exchangeToken = offerStruct.exchangeToken.toHexString(); + offer.metadataUri = offerStruct.metadataUri; + offer.metadataHash = offerStruct.metadataHash; + offer.priceType = offerStruct.priceType; + const royaltyInfos = offerStruct.royaltyInfo; + for (let i = 0; i < royaltyInfos.length; i++) { + saveRoyaltyInfo( + offerId.toString(), + royaltyInfos[i].recipients, + royaltyInfos[i].bps, + i8(i), + event.block.timestamp + ); + } + offer.metadata = offerId.toString() + "-metadata"; + offer.voided = false; + offer.collectionIndex = offerStruct.collectionIndex; + offer.collection = getOfferCollectionId( + offerStruct.sellerId.toString(), + offerStruct.collectionIndex.toString() + ); + offer.numberOfCommits = BigInt.fromI32(0); + offer.numberOfRedemptions = BigInt.fromI32(0); + + offer.save(); + + saveExchangeToken(offerStruct.exchangeToken); + saveMetadata(offer, event.block.timestamp); + saveDisputeResolutionTerms240( + disputeResolutionTermsStruct, + offerId.toString() + ); + saveOfferEventLog( + event.transaction.hash.toHexString(), + event.logIndex, + "OFFER_CREATED", + event.block.timestamp, + event.params.executedBy, + offerStruct.sellerId.toString(), + offerId.toString() + ); + } +} + export function handleOfferCreatedEvent230(event: OfferCreated230): void { const offerId = event.params.offerId; @@ -240,6 +346,8 @@ export function handleOfferCreatedEvent230(event: OfferCreated230): void { offer.numberOfRedemptions = BigInt.fromI32(0); offer.priceType = i8(0); // default value for legacy offers // TODO: set default royalty recipients for legacy offers? + offer.creator = i8(OfferCreator.Seller); + offer.buyerId = BigInt.fromI32(0); offer.save(); @@ -323,6 +431,8 @@ export function handleOfferCreatedEventLegacy(event: OfferCreatedLegacy): void { offer.numberOfRedemptions = BigInt.fromI32(0); offer.priceType = i8(0); // default value for legacy offers // TODO: set default royalty recipients for legacy offers? + offer.creator = i8(OfferCreator.Seller); + offer.buyerId = BigInt.fromI32(0); offer.save(); @@ -362,7 +472,31 @@ export function handleOfferVoidedEvent(event: OfferVoided): void { "OFFER_VOIDED", event.block.timestamp, event.params.executedBy, - offer.sellerId.toString(), + event.params.creatorId.toString(), + offerId.toString() + ); + } +} + +export function handleOfferVoidedEvent240(event: OfferVoided240): void { + const offerId = event.params.offerId; + + const offer = Offer.load(offerId.toString()); + + if (offer) { + offer.voided = true; + offer.voidedAt = event.block.timestamp; + + offer.save(); + + saveMetadata(offer, offer.createdAt); + saveOfferEventLog( + event.transaction.hash.toHexString(), + event.logIndex, + "OFFER_VOIDED", + event.block.timestamp, + event.params.executedBy, + event.params.sellerId.toString(), offerId.toString() ); } diff --git a/packages/subgraph/src/utils/eth.ts b/packages/subgraph/src/utils/eth.ts new file mode 100644 index 000000000..6cfbec2fd --- /dev/null +++ b/packages/subgraph/src/utils/eth.ts @@ -0,0 +1 @@ +export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; diff --git a/packages/subgraph/subgraph.template.yaml b/packages/subgraph/subgraph.template.yaml index 2ef807ca4..03e8f2359 100644 --- a/packages/subgraph/subgraph.template.yaml +++ b/packages/subgraph/subgraph.template.yaml @@ -31,7 +31,7 @@ dataSources: - name: ERC20SymbolBytes file: ./abis/ERC20SymbolBytes.json eventHandlers: - - event: OfferCreated(indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256),indexed uint256,address) + - event: OfferCreated(indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,uint8,string,string,bool,uint256,(address[],uint256[])[],uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,uint256,uint256,uint256,address),(uint256,uint256),indexed uint256,address) handler: handleOfferCreatedEvent - event: OfferVoided(indexed uint256,indexed uint256,indexed address) handler: handleOfferVoidedEvent @@ -42,6 +42,38 @@ dataSources: - event: OfferRoyaltyInfoUpdated(indexed uint256,indexed uint256,(address[],uint256[]),indexed address) handler: handleOfferRoyaltyInfoUpdatedEvent file: ./src/mappings/offer-handler.ts + - kind: ethereum/contract + name: BosonOfferHandler240 + network: {{network}} + source: + address: "{{protocolDiamond}}" + abi: IBosonOfferHandler240 + startBlock: {{startBlock}} + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - BaseMetadataEntity + - ProductV1MetadataEntity + - Offer + - ExchangeToken + - ProductV1Brand + abis: + - name: IBosonOfferHandler240 + file: ../common/src/abis/IBosonOfferHandler240.json + - name: ERC20 + file: ../common/src/abis/ERC20.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + eventHandlers: + - event: OfferCreated(indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint256,uint256,address,uint8,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256),indexed uint256,address) + handler: handleOfferCreatedEvent240 + - event: OfferVoided(indexed uint256,indexed uint256,indexed address) + handler: handleOfferVoidedEvent240 + file: ./src/mappings/offer-handler.ts - kind: ethereum/contract name: BosonOfferHandler230 network: {{network}} @@ -192,6 +224,33 @@ dataSources: - event: DisputeResolverActivated(indexed uint256,(uint256,uint256,address,address,address,address,string,bool),indexed address) handler: handleDisputeResolverActivatedEvent file: ./src/mappings/account-handler.ts + - kind: ethereum/contract + name: BosonExchangeHandler240 + network: {{network}} + source: + address: "{{protocolDiamond}}" + abi: IBosonExchangeHandler240 + startBlock: {{startBlock}} + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - Offer + - Exchange + abis: + - name: IBosonExchangeHandler240 + file: ../common/src/abis/IBosonExchangeHandler240.json + - name: ERC20 + file: ../common/src/abis/ERC20.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + eventHandlers: + - event: BuyerCommitted(indexed uint256,indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint8),(uint256,uint256,uint256,bool),address) + handler: handleBuyerCommittedEvent240 + file: ./src/mappings/exchange-handler.ts - kind: ethereum/contract name: BosonExchangeHandler network: {{network}} @@ -216,7 +275,7 @@ dataSources: - name: ERC20SymbolBytes file: ./abis/ERC20SymbolBytes.json eventHandlers: - - event: BuyerCommitted(indexed uint256,indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint8),(uint256,uint256,uint256,bool),address) + - event: BuyerCommitted(indexed uint256,indexed uint256,indexed uint256,(uint256,uint256,uint256,uint256,uint8,address),(uint256,uint256,uint256,bool),address) handler: handleBuyerCommittedEvent - event: VoucherExtended(indexed uint256,indexed uint256,uint256,indexed address) handler: handleVoucherExtendedEvent diff --git a/packages/subgraph/tests/exchange-handler.test.ts b/packages/subgraph/tests/exchange-handler.test.ts index 6190dc7e9..f45b936c2 100644 --- a/packages/subgraph/tests/exchange-handler.test.ts +++ b/packages/subgraph/tests/exchange-handler.test.ts @@ -1,3 +1,4 @@ +import { OfferCreator } from "@bosonprotocol/common/src/types/enums"; import { Exchange, Offer } from "./../generated/schema"; import { beforeEach, @@ -6,7 +7,7 @@ import { clearStore, mockIpfsFile } from "matchstick-as/assembly/index"; -import { BigInt } from "@graphprotocol/graph-ts"; +import { Address, BigInt } from "@graphprotocol/graph-ts"; import { BaseMetadataEntity } from "../generated/schema"; import { handleBuyerCommittedEvent, @@ -37,6 +38,7 @@ import { getOfferCollectionId } from "../src/mappings/account-handler"; import { getDisputeResolutionTermsId } from "../src/entities/dispute-resolution"; import { handleGroupCreatedEvent } from "../src/mappings/group-handler"; import { getEventLogId } from "../src/entities/event-log"; +import { ZERO_ADDRESS } from "../src/utils/eth"; const executedBy = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; @@ -86,6 +88,8 @@ test("handle BuyerCommittedEvent", () => { offer.exchangeToken = "0xaaaaabbbbbcccccdddddeeeeefffff0000011111"; offer.numberOfCommits = BigInt.fromI32(0); offer.numberOfRedemptions = BigInt.fromI32(0); + offer.creator = OfferCreator.Seller; + offer.buyerId = BigInt.fromI32(0); offer.save(); assert.fieldEquals("Offer", offerId.toString(), "quantityAvailable", "1"); @@ -155,6 +159,7 @@ test("handle VoucherExtendedEvent", () => { exchange.committedDate = BigInt.fromI32(1); exchange.validUntilDate = BigInt.fromI32(1234567); exchange.expired = false; + exchange.mutualizerAddress = Address.fromString(ZERO_ADDRESS); exchange.save(); const validUntil = 2345678; diff --git a/packages/subgraph/tests/funds-handler.test.ts b/packages/subgraph/tests/funds-handler.test.ts index 1c6f34099..02ee12601 100644 --- a/packages/subgraph/tests/funds-handler.test.ts +++ b/packages/subgraph/tests/funds-handler.test.ts @@ -20,12 +20,13 @@ import { createSellerCreatedEventLegacy, mockBosonVoucherContractCalls } from "./mocks"; +import { ZERO_ADDRESS } from "../src/utils/eth"; const sellerId = 1; const buyerId = 2; const exchangeId = 3; const sellerAddress = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; -const tokenAddress = "0x0000000000000000000000000000000000000000"; +const tokenAddress = ZERO_ADDRESS; const voucherCloneAddress = "0x123456789a123456789a123456789a123456789a"; const sellerMetadataHash = "QmZffs1Uv6pmf4649UpMqinDord9QBerJaWcwRgdenAto1"; diff --git a/packages/subgraph/tests/mocks.ts b/packages/subgraph/tests/mocks.ts index 920723bff..c9b5ecc45 100644 --- a/packages/subgraph/tests/mocks.ts +++ b/packages/subgraph/tests/mocks.ts @@ -1,3 +1,4 @@ +import { OfferCreator } from "@bosonprotocol/common/src/types/enums"; import { ConditionalCommitAuthorized, ExchangeCompleted, @@ -61,6 +62,16 @@ import { OfferCreated as OfferCreatedLegacy, OfferCreatedOfferStruct as OfferCreatedOfferStructLegacy } from "../generated/BosonOfferHandlerLegacy/IBosonOfferHandlerLegacy"; +import { + OfferCreated as OfferCreated240, + OfferCreatedOfferStruct as OfferCreatedOfferStruct240, + OfferVoided as OfferVoided240, + OfferCreatedDisputeResolutionTermsStruct as OfferCreatedDisputeResolutionTermsStruct240 +} from "../generated/BosonOfferHandler240/IBosonOfferHandler240"; +import { + OfferCreated as OfferCreated230, + OfferCreatedOfferStruct as OfferCreatedOfferStruct230 +} from "../generated/BosonOfferHandler230/IBosonOfferHandler230"; import { SellerUpdateApplied } from "../generated/BosonAccountHandler/IBosonAccountHandler"; import { getProductId } from "../src/entities/metadata/product-v1/product"; import { @@ -81,7 +92,11 @@ import { GroupUpdated } from "../generated/BosonGroupHandler/IBosonGroupHandler"; import { getDisputeResolutionTermsId } from "../src/entities/dispute-resolution"; -import { ContractURIChanged, VouchersPreMinted } from "../generated/BosonAccountHandler/IBosonVoucher"; +import { + ContractURIChanged, + VouchersPreMinted +} from "../generated/BosonAccountHandler/IBosonVoucher"; +import { ZERO_ADDRESS } from "../src/utils/eth"; export class RoyaltyInfo { recipients: string[]; @@ -120,7 +135,10 @@ export function createOfferCreatedEvent( collectionIndex: i32, agentId: i32, executedBy: string, - royaltyInfo: RoyaltyInfo + royaltyInfo: RoyaltyInfo, + creator: i8, + buyerId: i32, + mutualizerAddress: string ): OfferCreated { const offerCreatedEvent = changetype(newMockEvent()); offerCreatedEvent.parameters = []; @@ -149,7 +167,9 @@ export function createOfferCreatedEvent( metadataHash, voided, collectionIndex, - royaltyInfo + royaltyInfo, + creator, + buyerId ) ) ); @@ -182,6 +202,241 @@ export function createOfferCreatedEvent( "disputeResolutionTerms", ethereum.Value.fromTuple( createDisputeResolutionTermsStruct( + disputeResolverId, + disputeEscalationResponsePeriod, + disputeFeeAmount, + disputeBuyerEscalationDeposit, + mutualizerAddress + ) + ) + ); + const agentIdParam = new ethereum.EventParam( + "agentId", + ethereum.Value.fromI32(agentId) + ); + const executedByParam = new ethereum.EventParam( + "executedBy", + ethereum.Value.fromAddress(Address.fromString(executedBy)) + ); + + offerCreatedEvent.parameters.push(offerIdParam); + offerCreatedEvent.parameters.push(sellerIdParam); + offerCreatedEvent.parameters.push(offerParam); + offerCreatedEvent.parameters.push(offerDatesParams); + offerCreatedEvent.parameters.push(offerDurationsParams); + offerCreatedEvent.parameters.push(disputeResolutionTermsParams); + offerCreatedEvent.parameters.push(offerFeesParams); + offerCreatedEvent.parameters.push(agentIdParam); + offerCreatedEvent.parameters.push(executedByParam); + + return offerCreatedEvent; +} + +export function createOfferCreatedEvent240( + offerId: i32, + sellerId: i32, + price: i32, + sellerDeposit: i32, + protocolFee: i32, + agentFee: i32, + buyerCancelPenalty: i32, + quantityAvailable: i32, + validFromDate: i32, + validUntilDate: i32, + voucherRedeemableFromDate: i32, + voucherRedeemableUntilDate: i32, + disputePeriodDuration: i32, + voucherValidDuration: i32, + resolutionPeriodDuration: i32, + exchangeToken: string, + disputeResolverId: i32, + disputeEscalationResponsePeriod: i32, + disputeFeeAmount: i32, + disputeBuyerEscalationDeposit: i32, + priceType: i8, + metadataUri: string, + metadataHash: string, + voided: boolean, + collectionIndex: i32, + agentId: i32, + executedBy: string, + royaltyInfo: RoyaltyInfo +): OfferCreated240 { + const offerCreatedEvent = changetype(newMockEvent()); + offerCreatedEvent.parameters = []; + + const offerIdParam = new ethereum.EventParam( + "offerId", + ethereum.Value.fromI32(offerId) + ); + const sellerIdParam = new ethereum.EventParam( + "sellerId", + ethereum.Value.fromI32(sellerId) + ); + const offerParam = new ethereum.EventParam( + "offer", + ethereum.Value.fromTuple( + createOfferStruct240( + offerId, + sellerId, + price, + sellerDeposit, + buyerCancelPenalty, + quantityAvailable, + exchangeToken, + priceType, + metadataUri, + metadataHash, + voided, + collectionIndex, + royaltyInfo + ) + ) + ); + const offerDatesParams = new ethereum.EventParam( + "offerDates", + ethereum.Value.fromTuple( + createOfferDatesStruct( + validFromDate, + validUntilDate, + voucherRedeemableFromDate, + voucherRedeemableUntilDate + ) + ) + ); + const offerDurationsParams = new ethereum.EventParam( + "offerDurations", + ethereum.Value.fromTuple( + createOfferDurationsStruct( + disputePeriodDuration, + voucherValidDuration, + resolutionPeriodDuration + ) + ) + ); + const offerFeesParams = new ethereum.EventParam( + "offerFees", + ethereum.Value.fromTuple(createOfferFeesStruct(protocolFee, agentFee)) + ); + const disputeResolutionTermsParams = new ethereum.EventParam( + "disputeResolutionTerms", + ethereum.Value.fromTuple( + createDisputeResolutionTermsStruct240( + disputeResolverId, + disputeEscalationResponsePeriod, + disputeFeeAmount, + disputeBuyerEscalationDeposit + ) + ) + ); + const agentIdParam = new ethereum.EventParam( + "agentId", + ethereum.Value.fromI32(agentId) + ); + const executedByParam = new ethereum.EventParam( + "executedBy", + ethereum.Value.fromAddress(Address.fromString(executedBy)) + ); + + offerCreatedEvent.parameters.push(offerIdParam); + offerCreatedEvent.parameters.push(sellerIdParam); + offerCreatedEvent.parameters.push(offerParam); + offerCreatedEvent.parameters.push(offerDatesParams); + offerCreatedEvent.parameters.push(offerDurationsParams); + offerCreatedEvent.parameters.push(disputeResolutionTermsParams); + offerCreatedEvent.parameters.push(offerFeesParams); + offerCreatedEvent.parameters.push(agentIdParam); + offerCreatedEvent.parameters.push(executedByParam); + + return offerCreatedEvent; +} + +export function createOfferCreatedEvent230( + offerId: i32, + sellerId: i32, + price: i32, + sellerDeposit: i32, + protocolFee: i32, + agentFee: i32, + buyerCancelPenalty: i32, + quantityAvailable: i32, + validFromDate: i32, + validUntilDate: i32, + voucherRedeemableFromDate: i32, + voucherRedeemableUntilDate: i32, + disputePeriodDuration: i32, + voucherValidDuration: i32, + resolutionPeriodDuration: i32, + exchangeToken: string, + disputeResolverId: i32, + disputeEscalationResponsePeriod: i32, + disputeFeeAmount: i32, + disputeBuyerEscalationDeposit: i32, + metadataUri: string, + metadataHash: string, + voided: boolean, + collectionIndex: i32, + agentId: i32, + executedBy: string +): OfferCreated230 { + const offerCreatedEvent = changetype(newMockEvent()); + offerCreatedEvent.parameters = []; + + const offerIdParam = new ethereum.EventParam( + "offerId", + ethereum.Value.fromI32(offerId) + ); + const sellerIdParam = new ethereum.EventParam( + "sellerId", + ethereum.Value.fromI32(sellerId) + ); + const offerParam = new ethereum.EventParam( + "offer", + ethereum.Value.fromTuple( + createOfferStruct230( + offerId, + sellerId, + price, + sellerDeposit, + buyerCancelPenalty, + quantityAvailable, + exchangeToken, + metadataUri, + metadataHash, + voided, + collectionIndex + ) + ) + ); + const offerDatesParams = new ethereum.EventParam( + "offerDates", + ethereum.Value.fromTuple( + createOfferDatesStruct( + validFromDate, + validUntilDate, + voucherRedeemableFromDate, + voucherRedeemableUntilDate + ) + ) + ); + const offerDurationsParams = new ethereum.EventParam( + "offerDurations", + ethereum.Value.fromTuple( + createOfferDurationsStruct( + disputePeriodDuration, + voucherValidDuration, + resolutionPeriodDuration + ) + ) + ); + const offerFeesParams = new ethereum.EventParam( + "offerFees", + ethereum.Value.fromTuple(createOfferFeesStruct(protocolFee, agentFee)) + ); + const disputeResolutionTermsParams = new ethereum.EventParam( + "disputeResolutionTerms", + ethereum.Value.fromTuple( + createDisputeResolutionTermsStruct240( disputeResolverId, disputeEscalationResponsePeriod, disputeFeeAmount, @@ -294,7 +549,7 @@ export function createOfferCreatedEventLegacy( const disputeResolutionTermsParams = new ethereum.EventParam( "disputeResolutionTerms", ethereum.Value.fromTuple( - createDisputeResolutionTermsStruct( + createDisputeResolutionTermsStruct240( disputeResolverId, disputeEscalationResponsePeriod, disputeFeeAmount, @@ -326,12 +581,40 @@ export function createOfferCreatedEventLegacy( export function createOfferVoidedEvent( offerId: i32, - sellerId: i32, + creatorId: i32, executedBy: string ): OfferVoided { const offerVoidedEvent = changetype(newMockEvent()); offerVoidedEvent.parameters = []; + const offerIdParam = new ethereum.EventParam( + "offerId", + ethereum.Value.fromI32(offerId) + ); + const creatorIdParam = new ethereum.EventParam( + "creatorId", + ethereum.Value.fromI32(creatorId) + ); + const executedByParam = new ethereum.EventParam( + "executedBy", + ethereum.Value.fromAddress(Address.fromString(executedBy)) + ); + + offerVoidedEvent.parameters.push(offerIdParam); + offerVoidedEvent.parameters.push(creatorIdParam); + offerVoidedEvent.parameters.push(executedByParam); + + return offerVoidedEvent; +} + +export function createOfferVoidedEvent240( + offerId: i32, + sellerId: i32, + executedBy: string +): OfferVoided240 { + const offerVoidedEvent = changetype(newMockEvent()); + offerVoidedEvent.parameters = []; + const offerIdParam = new ethereum.EventParam( "offerId", ethereum.Value.fromI32(offerId) @@ -414,7 +697,10 @@ export function createBuyerCommittedEvent( exchangeStruct.push(ethereum.Value.fromI32(offerId)); exchangeStruct.push(ethereum.Value.fromI32(buyerId)); exchangeStruct.push(ethereum.Value.fromI32(0)); - exchangeStruct.push(ethereum.Value.fromI32(0)); // COMMITTED + exchangeStruct.push(ethereum.Value.fromI32(0)); // state = COMMITTED + exchangeStruct.push( + ethereum.Value.fromAddress(Address.fromString(ZERO_ADDRESS)) + ); // mutualizerAddress const offerIdParam = new ethereum.EventParam( "offerId", @@ -654,9 +940,8 @@ export function createSellerUpdateAppliedEvent( executedBy: string, metadataUri: string ): SellerUpdateApplied { - const sellerUpdateAppliedEvent = changetype( - newMockEvent() - ); + const sellerUpdateAppliedEvent = + changetype(newMockEvent()); sellerUpdateAppliedEvent.parameters = []; const sellerIdParam = new ethereum.EventParam( @@ -903,7 +1188,9 @@ export function createOfferStruct( metadataHash: string, voided: boolean, collectionIndex: i32, - royaltyInfo: RoyaltyInfo + royaltyInfo: RoyaltyInfo, + creator: i8, + buyerId: i32 ): OfferCreatedOfferStruct { const tuple = new OfferCreatedOfferStruct(); tuple.push(ethereum.Value.fromI32(offerId)); @@ -914,6 +1201,42 @@ export function createOfferStruct( tuple.push(ethereum.Value.fromI32(quantityAvailable)); tuple.push(ethereum.Value.fromAddress(Address.fromString(exchangeToken))); tuple.push(ethereum.Value.fromI32(priceType)); + tuple.push(ethereum.Value.fromI32(creator)); + tuple.push(ethereum.Value.fromString(metadataUri)); + tuple.push(ethereum.Value.fromString(metadataHash)); + tuple.push(ethereum.Value.fromBoolean(voided)); + tuple.push(ethereum.Value.fromI32(collectionIndex)); + tuple.push( + ethereum.Value.fromTupleArray([createRoyaltyInfoStruct(royaltyInfo)]) + ); + tuple.push(ethereum.Value.fromI32(buyerId)); + return tuple; +} + +export function createOfferStruct240( + offerId: i32, + sellerId: i32, + price: i32, + sellerDeposit: i32, + buyerCancelPenalty: i32, + quantityAvailable: i32, + exchangeToken: string, + priceType: i8, + metadataUri: string, + metadataHash: string, + voided: boolean, + collectionIndex: i32, + royaltyInfo: RoyaltyInfo +): OfferCreatedOfferStruct240 { + const tuple = new OfferCreatedOfferStruct240(); + tuple.push(ethereum.Value.fromI32(offerId)); + tuple.push(ethereum.Value.fromI32(sellerId)); + tuple.push(ethereum.Value.fromI32(price)); + tuple.push(ethereum.Value.fromI32(sellerDeposit)); + tuple.push(ethereum.Value.fromI32(buyerCancelPenalty)); + tuple.push(ethereum.Value.fromI32(quantityAvailable)); + tuple.push(ethereum.Value.fromAddress(Address.fromString(exchangeToken))); + tuple.push(ethereum.Value.fromI32(priceType)); tuple.push(ethereum.Value.fromString(metadataUri)); tuple.push(ethereum.Value.fromString(metadataHash)); tuple.push(ethereum.Value.fromBoolean(voided)); @@ -924,6 +1247,34 @@ export function createOfferStruct( return tuple; } +export function createOfferStruct230( + offerId: i32, + sellerId: i32, + price: i32, + sellerDeposit: i32, + buyerCancelPenalty: i32, + quantityAvailable: i32, + exchangeToken: string, + metadataUri: string, + metadataHash: string, + voided: boolean, + collectionIndex: i32 +): OfferCreatedOfferStruct230 { + const tuple = new OfferCreatedOfferStruct230(); + tuple.push(ethereum.Value.fromI32(offerId)); + tuple.push(ethereum.Value.fromI32(sellerId)); + tuple.push(ethereum.Value.fromI32(price)); + tuple.push(ethereum.Value.fromI32(sellerDeposit)); + tuple.push(ethereum.Value.fromI32(buyerCancelPenalty)); + tuple.push(ethereum.Value.fromI32(quantityAvailable)); + tuple.push(ethereum.Value.fromAddress(Address.fromString(exchangeToken))); + tuple.push(ethereum.Value.fromString(metadataUri)); + tuple.push(ethereum.Value.fromString(metadataHash)); + tuple.push(ethereum.Value.fromBoolean(voided)); + tuple.push(ethereum.Value.fromI32(collectionIndex)); + return tuple; +} + export function createOfferStructLegacy( offerId: i32, sellerId: i32, @@ -1013,13 +1364,29 @@ export function createDisputeResolutionTermsStruct( disputeResolverId: i32, escalationResponsePeriod: i32, feeAmount: i32, - buyerEscalationDeposit: i32 + buyerEscalationDeposit: i32, + mutualizerAddress: string ): OfferCreatedDisputeResolutionTermsStruct { const tuple = new OfferCreatedDisputeResolutionTermsStruct(); tuple.push(ethereum.Value.fromI32(disputeResolverId)); tuple.push(ethereum.Value.fromI32(escalationResponsePeriod)); tuple.push(ethereum.Value.fromI32(feeAmount)); tuple.push(ethereum.Value.fromI32(buyerEscalationDeposit)); + tuple.push(ethereum.Value.fromAddress(Address.fromString(mutualizerAddress))); + return tuple; +} + +export function createDisputeResolutionTermsStruct240( + disputeResolverId: i32, + escalationResponsePeriod: i32, + feeAmount: i32, + buyerEscalationDeposit: i32 +): OfferCreatedDisputeResolutionTermsStruct240 { + const tuple = new OfferCreatedDisputeResolutionTermsStruct240(); + tuple.push(ethereum.Value.fromI32(disputeResolverId)); + tuple.push(ethereum.Value.fromI32(escalationResponsePeriod)); + tuple.push(ethereum.Value.fromI32(feeAmount)); + tuple.push(ethereum.Value.fromI32(buyerEscalationDeposit)); return tuple; } @@ -1319,6 +1686,8 @@ export function mockOffer(offerId: string, sellerId: string): Offer { offer.exchangeToken = "0xaaaaabbbbbcccccdddddeeeeefffff0000011111"; offer.numberOfCommits = BigInt.fromI32(0); offer.numberOfRedemptions = BigInt.fromI32(0); + offer.creator = OfferCreator.Seller; + offer.buyerId = BigInt.fromI32(0); offer.save(); return offer; } @@ -1355,9 +1724,8 @@ export function createRoyaltyRecipientsChanged( minRoyaltyPercentages: i32[], executedBy: string ): RoyaltyRecipientsChanged { - const royaltyRecipientsChangedEvent = changetype( - newMockEvent() - ); + const royaltyRecipientsChangedEvent = + changetype(newMockEvent()); royaltyRecipientsChangedEvent.parameters = []; const sellerIdParam = new ethereum.EventParam( "sellerId", @@ -1403,6 +1771,7 @@ export function mockExchange( exchange.committedDate = BigInt.zero(); exchange.validUntilDate = BigInt.zero(); exchange.expired = false; + exchange.mutualizerAddress = Address.fromString(ZERO_ADDRESS); exchange.save(); return exchange; @@ -1592,9 +1961,8 @@ export function createVoucherTransferredEvent( newBuyerId: i32, executedBy: string ): VoucherTransferred { - const voucherTransferredEvent = changetype( - newMockEvent() - ); + const voucherTransferredEvent = + changetype(newMockEvent()); voucherTransferredEvent.parameters = []; const offerIdParam = new ethereum.EventParam( "offerId", @@ -1658,9 +2026,8 @@ export function createConditionalCommitAuthorizedEvent( commitCount: i32, maxCommits: i32 ): ConditionalCommitAuthorized { - const conditionalCommitAuthorized = changetype( - newMockEvent() - ); + const conditionalCommitAuthorized = + changetype(newMockEvent()); conditionalCommitAuthorized.parameters = []; const offerIdParam = new ethereum.EventParam( "offerId", @@ -1701,9 +2068,8 @@ export function createOfferRoyaltyInfoUpdatedEvent( royaltyInfo: RoyaltyInfo, executedBy: string ): OfferRoyaltyInfoUpdated { - const offerRoyaltyInfoUpdated = changetype( - newMockEvent() - ); + const offerRoyaltyInfoUpdated = + changetype(newMockEvent()); offerRoyaltyInfoUpdated.parameters = []; const offerIdParam = new ethereum.EventParam( "offerId", diff --git a/packages/subgraph/tests/offer-handler.test.ts b/packages/subgraph/tests/offer-handler.test.ts index d60689eb5..3a7dc3efa 100644 --- a/packages/subgraph/tests/offer-handler.test.ts +++ b/packages/subgraph/tests/offer-handler.test.ts @@ -8,24 +8,31 @@ import { import { getRangeId, handleOfferCreatedEvent, + handleOfferCreatedEvent230, + handleOfferCreatedEvent240, handleOfferCreatedEventLegacy, handleOfferExtendedEvent, handleOfferRoyaltyInfoUpdatedEvent, handleOfferVoidedEvent, + handleOfferVoidedEvent240, handleRangeReservedEvent } from "../src/mappings/offer-handler"; import { RoyaltyInfo, createOfferCreatedEvent, + createOfferCreatedEvent230, + createOfferCreatedEvent240, createOfferCreatedEventLegacy, createOfferExtendedEvent, createOfferRoyaltyInfoUpdatedEvent, createOfferVoidedEvent, + createOfferVoidedEvent240, createRangeReservedEvent, createSeller, mockExchangeTokenContractCalls } from "./mocks"; import { Offer } from "../generated/schema"; +import { ZERO_ADDRESS } from "../src/utils/eth"; const exchangeTokenAddress = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; const exchangeTokenDecimals = 18; @@ -60,12 +67,46 @@ const disputeBuyerEscalationDeposit = 1; const collectionIndex = 0; const agentId = 1; const executedBy = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; -const royaltyInfo: RoyaltyInfo = new RoyaltyInfo( - ["0x0000000000000000000000000000000000000000"], - [0] -); +const royaltyInfo: RoyaltyInfo = new RoyaltyInfo([ZERO_ADDRESS], [0]); +const creator = i8(0); // 0 = Seller, 1 = Buyer +const buyerId = 0; +const mutualizerAddress = ZERO_ADDRESS; const offerCreatedEvent = createOfferCreatedEvent( + offerId, + sellerId, + price, + sellerDeposit, + protocolFee, + agentFee, + buyerCancelPenalty, + quantityAvailable, + validFromDate, + validUntilDate, + voucherRedeemableFromDate, + voucherRedeemableUntilDate, + disputePeriodDuration, + voucherValidDuration, + resolutionPeriodDuration, + exchangeTokenAddress, + disputeResolverId, + disputeEscalationResponsePeriod, + disputeFeeAmount, + disputeBuyerEscalationDeposit, + priceType, + "ipfs://" + metadataHash, + metadataHash, + false, + collectionIndex, + agentId, + executedBy, + royaltyInfo, + creator, + buyerId, + mutualizerAddress +); + +const offerCreatedEvent240 = createOfferCreatedEvent240( offerId, sellerId, price, @@ -96,6 +137,35 @@ const offerCreatedEvent = createOfferCreatedEvent( royaltyInfo ); +const offerCreatedEvent230 = createOfferCreatedEvent230( + offerId, + sellerId, + price, + sellerDeposit, + protocolFee, + agentFee, + buyerCancelPenalty, + quantityAvailable, + validFromDate, + validUntilDate, + voucherRedeemableFromDate, + voucherRedeemableUntilDate, + disputePeriodDuration, + voucherValidDuration, + resolutionPeriodDuration, + exchangeTokenAddress, + disputeResolverId, + disputeEscalationResponsePeriod, + disputeFeeAmount, + disputeBuyerEscalationDeposit, + "ipfs://" + metadataHash, + metadataHash, + false, + collectionIndex, + agentId, + executedBy +); + const offerCreatedEventLegacy = createOfferCreatedEventLegacy( offerId, sellerId, @@ -237,6 +307,34 @@ test("handle OfferVoidedEvent", () => { assert.fieldEquals("BaseMetadataEntity", "1-metadata", "voided", "true"); }); +test("handle OfferVoidedEvent240", () => { + mockExchangeTokenContractCalls( + exchangeTokenAddress, + exchangeTokenDecimals, + exchangeTokenName, + exchangeTokenSymbol + ); + mockIpfsFile(metadataHash, "tests/metadata/base.json"); + createSeller( + 1, + sellerAddress, + "tests/metadata/seller.json", + voucherCloneAddress, + sellerMetadataHash + ); + handleOfferCreatedEvent240(offerCreatedEvent240); + + const offerVoidedEvent = createOfferVoidedEvent240( + 1, + 1, + exchangeTokenAddress + ); + handleOfferVoidedEvent240(offerVoidedEvent); + + assert.fieldEquals("Offer", "1", "voided", "true"); + assert.fieldEquals("BaseMetadataEntity", "1-metadata", "voided", "true"); +}); + test("handleOfferExtendedEvent", () => { mockExchangeTokenContractCalls( exchangeTokenAddress, @@ -342,6 +440,68 @@ test("handleOfferCreatedEventLegacy", () => { ); }); +test("handleOfferCreatedEvent230", () => { + mockExchangeTokenContractCalls( + exchangeTokenAddress, + exchangeTokenDecimals, + exchangeTokenName, + exchangeTokenSymbol + ); + mockIpfsFile(metadataHash, "tests/metadata/base.json"); + createSeller( + 1, + sellerAddress, + "tests/metadata/seller.json", + voucherCloneAddress, + sellerMetadataHash + ); + handleOfferCreatedEvent230(offerCreatedEvent230); + assert.fieldEquals("Offer", "1", "id", "1"); + assert.fieldEquals( + "ExchangeToken", + exchangeTokenAddress.toLowerCase(), + "id", + exchangeTokenAddress.toLowerCase() + ); + assert.fieldEquals( + "ExchangeToken", + exchangeTokenAddress.toLowerCase(), + "name", + exchangeTokenName + ); +}); + +test("handleOfferCreatedEvent240", () => { + mockExchangeTokenContractCalls( + exchangeTokenAddress, + exchangeTokenDecimals, + exchangeTokenName, + exchangeTokenSymbol + ); + mockIpfsFile(metadataHash, "tests/metadata/base.json"); + createSeller( + 1, + sellerAddress, + "tests/metadata/seller.json", + voucherCloneAddress, + sellerMetadataHash + ); + handleOfferCreatedEvent240(offerCreatedEvent240); + assert.fieldEquals("Offer", "1", "id", "1"); + assert.fieldEquals( + "ExchangeToken", + exchangeTokenAddress.toLowerCase(), + "id", + exchangeTokenAddress.toLowerCase() + ); + assert.fieldEquals( + "ExchangeToken", + exchangeTokenAddress.toLowerCase(), + "name", + exchangeTokenName + ); +}); + test("handleOfferRoyaltyInfoUpdatedEvent", () => { mockExchangeTokenContractCalls( exchangeTokenAddress, @@ -364,10 +524,7 @@ test("handleOfferRoyaltyInfoUpdatedEvent", () => { assert.assertTrue(royaltyInfos1.length == 1); const newRoyaltyInfo: RoyaltyInfo = new RoyaltyInfo( - [ - "0x0000000000000000000000000000000000000000", - "0x0123456789012345678901234567890123456789" - ], + [ZERO_ADDRESS, "0x0123456789012345678901234567890123456789"], [10, 20] );