diff --git a/contracts/accounts.js b/contracts/accounts.js index d296ade4b..d2a300bf0 100644 --- a/contracts/accounts.js +++ b/contracts/accounts.js @@ -129,6 +129,12 @@ const ACCOUNT_22 = { "0xb37ac6d3448fa7feb090f8550036180a409e79df3cc74ac4378c7d4e8ef87414" }; +const ACCOUNT_23 = { + address: "0x985D008b3236DEa71223acA9dD3829862E3F9516", + privateKey: + "0x8430df726da16759cedbc56bfebf7b6e951e3e3e9b1a7f291749a2e211955981" +}; + const ACCOUNTS = [ ACCOUNT_1, ACCOUNT_2, @@ -151,7 +157,8 @@ const ACCOUNTS = [ ACCOUNT_19, ACCOUNT_20, ACCOUNT_21, - ACCOUNT_22 + ACCOUNT_22, + ACCOUNT_23 ]; module.exports = { @@ -177,5 +184,6 @@ module.exports = { ACCOUNT_19, ACCOUNT_20, ACCOUNT_21, - ACCOUNT_22 + ACCOUNT_22, + ACCOUNT_23 }; diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index 5f5202c7f..224913cba 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -76,15 +76,38 @@ module.exports = { solidity: { compilers: [ { - version: "0.8.21", + version: "0.5.17" // Mock weth contract + }, + { + version: "0.8.9", settings: { optimizer: { enabled: true, - runs: 200, + runs: 50, // temporary until we upgrade compiler version details: { yul: true } + }, + outputSelection: { + "*": { + "*": ["evm.bytecode.object", "evm.deployedBytecode*"], + } } + }, + viaIR: true + }, + { + version: "0.8.22", + settings: { + viaIR: false, + optimizer: { + enabled: true, + runs: 200, + details: { + yul: true + } + }, + evmVersion: "london" // for ethereum mainnet, use shanghai, for polygon, use london } }, { @@ -163,7 +186,8 @@ module.exports = { "IBosonVoucher", "MockNativeMetaTransaction", "IBosonGroupHandler", - "MockForwarder" + "MockForwarder", + "IBosonConfigHandler" ] } }; diff --git a/contracts/package-lock.json b/contracts/package-lock.json index 580d7fdba..9b504e484 100644 --- a/contracts/package-lock.json +++ b/contracts/package-lock.json @@ -6,32 +6,38 @@ "": { "name": "hardhat-project", "hasInstallScript": true, + "dependencies": { + "@openzeppelin/contracts": "^4.9.0", + "@openzeppelin/contracts-upgradeable": "4.9.3" + }, "devDependencies": { - "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#v2.3.0-rc.3", - "@nomicfoundation/hardhat-ethers": "^3.0.3", - "@nomicfoundation/hardhat-network-helpers": "^1.0.6", + "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#5166a27e45818c82f551cd90c9a92f21137a0366", + "@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", - "@openzeppelin/contracts": "^4.9.0", - "@openzeppelin/contracts-upgradeable": "^4.9.3", "chai": "^4.3.6", "dotenv": "^16.0.1", "ethereum-waffle": "^3.4.4", - "ethers": "^6.6.0", + "ethers": "^6.9.0", + "ethersv5": "npm:ethers@^5.7.2", "glob": "^9.1.0", - "hardhat": "^2.14.1", + "hardhat": "^2.19.2", "hardhat-abi-exporter": "^2.9.0", + "patch-package": "^8.0.0", "seaport": "github:ProjectOpenSea/seaport#a27eff9fa299a14c432666c8dc963aa072437dde" } }, "node_modules/@adraffy/ens-normalize": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.2.tgz", - "integrity": "sha512-0h+FrQDqe2Wn+IIGFkTCd4aAwTJ+7834Ek1COohCyV26AXhwQ7WQaz+4F/nLOeVl/3BtWHOHLPsq46V8YB46Eg==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", "dev": true }, "node_modules/@bosonprotocol/boson-protocol-contracts": { - "version": "2.3.0-rc.3", - "resolved": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#8319ec72c2335a49b74aeefd232ea9f0a6dfd368", + "version": "2.3.0", + "resolved": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#5166a27e45818c82f551cd90c9a92f21137a0366", + "integrity": "sha512-GXxY3vg7MFfuRxzqc3WDuVszZafPgGV0u1FI19slbAChjSxXL9VNlALWbeb2NwRjgduqarPzICaP+vxyOpN7pQ==", "dev": true, "license": "GPL-3.0-or-later", "dependencies": { @@ -483,6 +489,29 @@ "node": ">=0.12.0" } }, + "node_modules/@ethereum-waffle/compiler/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@ethereum-waffle/compiler/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/@ethereum-waffle/compiler/node_modules/ts-essentials": { "version": "6.0.7", "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-6.0.7.tgz", @@ -516,6 +545,15 @@ "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true }, + "node_modules/@ethereum-waffle/compiler/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/@ethereum-waffle/ens": { "version": "3.4.4", "resolved": "https://registry.npmjs.org/@ethereum-waffle/ens/-/ens-3.4.4.tgz", @@ -655,6 +693,71 @@ "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, + "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, + "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, + "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 + }, + "node_modules/@ethereum-waffle/provider/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, "node_modules/@ethereum-waffle/provider/node_modules/ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -703,6 +806,104 @@ "@ethersproject/wordlists": "5.7.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==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/patch-package": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", + "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", + "dev": true, + "dependencies": { + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "cross-spawn": "^6.0.5", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "is-ci": "^2.0.0", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^5.6.0", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^1.10.2" + }, + "bin": { + "patch-package": "index.js" + }, + "engines": { + "node": ">=10", + "npm": ">5" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "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, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@ethereum-waffle/provider/node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/@ethereumjs/rlp": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", @@ -729,55 +930,40 @@ "node": ">=14" } }, - "node_modules/@ethereumjs/util/node_modules/@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "dev": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip32": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", - "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", + "node_modules/@ethereumjs/util/node_modules/@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", "dev": true, "dependencies": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" + "@noble/hashes": "1.3.3" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/@ethereumjs/util/node_modules/@scure/bip39": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", - "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "node_modules/@ethereumjs/util/node_modules/@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", "dev": true, - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" + "engines": { + "node": ">= 16" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", - "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz", + "integrity": "sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA==", "dev": true, "dependencies": { - "@noble/curves": "1.1.0", - "@noble/hashes": "1.3.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1" + "@noble/curves": "1.3.0", + "@noble/hashes": "1.3.3", + "@scure/bip32": "1.3.3", + "@scure/bip39": "1.2.2" } }, "node_modules/@ethersproject/abi": { @@ -1508,6 +1694,15 @@ "@ethersproject/strings": "^5.7.0" } }, + "node_modules/@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", @@ -1536,6 +1731,40 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@manifoldxyz/libraries-solidity": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@manifoldxyz/libraries-solidity/-/libraries-solidity-1.0.4.tgz", + "integrity": "sha512-ibU4TgJ6DBp27j/P4KHKb3Sd1kILp1Q7awhU3To3RlL7ytK3G59B8C5YCUIH4sVzUFghs94FWZYmHvWjzW6f5Q==", + "dev": true, + "dependencies": { + "@openzeppelin/contracts": "4.7.3", + "@openzeppelin/contracts-upgradeable": "4.7.3" + } + }, + "node_modules/@manifoldxyz/libraries-solidity/node_modules/@openzeppelin/contracts": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", + "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==", + "dev": true + }, + "node_modules/@manifoldxyz/libraries-solidity/node_modules/@openzeppelin/contracts-upgradeable": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", + "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==", + "dev": true + }, + "node_modules/@manifoldxyz/royalty-registry-solidity": { + "version": "3.0.0", + "resolved": "git+ssh://git@github.com/manifoldxyz/royalty-registry-solidity.git#e5369fc79279ce2e4c6ea2eb5914df51e89e8bd8", + "integrity": "sha512-ZWYrU/+CKjX+s6nJ3EZVMEVcIny6UQe2qEx21UjrAqWZy59A6lIQhYGPsPCNbHG/fjOt0XRG0bq8sO0FPAwpDQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@manifoldxyz/libraries-solidity": "^1.0.4", + "@openzeppelin/contracts": "^4.8.0", + "@openzeppelin/contracts-upgradeable": "^4.8.0" + } + }, "node_modules/@metamask/eth-sig-util": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz", @@ -1552,22 +1781,52 @@ "node": ">=12.0.0" } }, + "node_modules/@metamask/eth-sig-util/node_modules/@types/bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/@metamask/eth-sig-util/node_modules/ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", + "dev": true, + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, "node_modules/@noble/curves": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", - "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", "dev": true, "dependencies": { - "@noble/hashes": "1.3.1" + "@noble/hashes": "1.3.2" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/@noble/curves/node_modules/@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", "dev": true, "engines": { "node": ">= 16" @@ -1576,18 +1835,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@noble/hashes": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.2.tgz", - "integrity": "sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, "node_modules/@noble/secp256k1": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz", @@ -1639,16 +1886,16 @@ } }, "node_modules/@nomicfoundation/ethereumjs-block": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-5.0.1.tgz", - "integrity": "sha512-u1Yioemi6Ckj3xspygu/SfFvm8vZEO8/Yx5a1QLzi6nVU0jz3Pg2OmHKJ5w+D9Ogk1vhwRiqEBAqcb0GVhCyHw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-5.0.2.tgz", + "integrity": "sha512-hSe6CuHI4SsSiWWjHDIzWhSiAVpzMUcDRpWYzN0T9l8/Rz7xNn3elwVOJ/tAyS0LqL6vitUD78Uk7lQDXZun7Q==", "dev": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "ethereum-cryptography": "0.1.3", "ethers": "^5.7.1" }, @@ -1656,29 +1903,6 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-block/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-block/node_modules/ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -1728,18 +1952,18 @@ } }, "node_modules/@nomicfoundation/ethereumjs-blockchain": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-7.0.1.tgz", - "integrity": "sha512-NhzndlGg829XXbqJEYrF1VeZhAwSPgsK/OB7TVrdzft3y918hW5KNd7gIZ85sn6peDZOdjBsAXIpXZ38oBYE5A==", - "dev": true, - "dependencies": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-ethash": "3.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-7.0.2.tgz", + "integrity": "sha512-8UUsSXJs+MFfIIAKdh3cG16iNmWzWC/91P40sazNvrqhhdR/RtGDlFk2iFTGbBAZPs2+klZVzhRX8m2wvuvz3w==", + "dev": true, + "dependencies": { + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-ethash": "3.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", @@ -1751,48 +1975,25 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-blockchain/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-common": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.1.tgz", - "integrity": "sha512-OBErlkfp54GpeiE06brBW/TTbtbuBJV5YI5Nz/aB2evTDo+KawyEzPjBlSr84z/8MFfj8wS2wxzQX1o32cev5g==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.2.tgz", + "integrity": "sha512-I2WGP3HMGsOoycSdOTSqIaES0ughQTueOsddJ36aYVpI3SN8YSusgRFLwzDJwRFVIYDKx/iJz0sQ5kBHVgdDwg==", "dev": true, "dependencies": { - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-util": "9.0.2", "crc-32": "^1.2.0" } }, "node_modules/@nomicfoundation/ethereumjs-ethash": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-3.0.1.tgz", - "integrity": "sha512-KDjGIB5igzWOp8Ik5I6QiRH5DH+XgILlplsHR7TEuWANZA759G6krQ6o8bvj+tRUz08YygMQu/sGd9mJ1DYT8w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-3.0.2.tgz", + "integrity": "sha512-8PfoOQCcIcO9Pylq0Buijuq/O73tmMVURK0OqdjhwqcGHYC2PwhbajDh7GZ55ekB0Px197ajK3PQhpKoiI/UPg==", "dev": true, "dependencies": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "bigint-crypto-utils": "^3.0.23", "ethereum-cryptography": "0.1.3" @@ -1801,39 +2002,16 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-ethash/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-evm": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-2.0.1.tgz", - "integrity": "sha512-oL8vJcnk0Bx/onl+TgQOQ1t/534GKFaEG17fZmwtPFeH8S5soiBYPCLUrvANOl4sCp9elYxIMzIiTtMtNNN8EQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-2.0.2.tgz", + "integrity": "sha512-rBLcUaUfANJxyOx9HIdMX6uXGin6lANCulIm/pjMgRqfiCRMZie3WKYxTSd8ZE/d+qT+zTedBF4+VHTdTSePmQ==", "dev": true, "dependencies": { "@ethersproject/providers": "^5.7.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "mcl-wasm": "^0.7.1", @@ -1843,33 +2021,10 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-evm/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-rlp": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.1.tgz", - "integrity": "sha512-xtxrMGa8kP4zF5ApBQBtjlSbN5E2HI8m8FYgVSYAnO6ssUoY5pVPGy2H8+xdf/bmMa22Ce8nWMH3aEW8CcqMeQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.2.tgz", + "integrity": "sha512-QwmemBc+MMsHJ1P1QvPl8R8p2aPvvVcKBbvHnQOKBpBztEo0omN0eaob6FeZS/e3y9NSe+mfu3nNFBHszqkjTA==", "dev": true, "bin": { "rlp": "bin/rlp" @@ -1879,42 +2034,19 @@ } }, "node_modules/@nomicfoundation/ethereumjs-statemanager": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-2.0.1.tgz", - "integrity": "sha512-B5ApMOnlruVOR7gisBaYwFX+L/AP7i/2oAahatssjPIBVDF6wTX1K7Qpa39E/nzsH8iYuL3krkYeUFIdO3EMUQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-2.0.2.tgz", + "integrity": "sha512-dlKy5dIXLuDubx8Z74sipciZnJTRSV/uHG48RSijhgm1V7eXYFC567xgKtsKiVZB1ViTP9iFL4B6Je0xD6X2OA==", "dev": true, "dependencies": { - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "ethers": "^5.7.1", "js-sdsl": "^4.1.4" } }, - "node_modules/@nomicfoundation/ethereumjs-statemanager/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-statemanager/node_modules/ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -1964,13 +2096,13 @@ } }, "node_modules/@nomicfoundation/ethereumjs-trie": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-6.0.1.tgz", - "integrity": "sha512-A64It/IMpDVODzCgxDgAAla8jNjNtsoQZIzZUfIV5AY6Coi4nvn7+VReBn5itlxMiL2yaTlQr9TRWp3CSI6VoA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-6.0.2.tgz", + "integrity": "sha512-yw8vg9hBeLYk4YNg5MrSJ5H55TLOv2FSWUTROtDtTMMmDGROsAu+0tBjiNGTnKRi400M6cEzoFfa89Fc5k8NTQ==", "dev": true, "dependencies": { - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "@types/readable-stream": "^2.3.13", "ethereum-cryptography": "0.1.3", "readable-stream": "^3.6.0" @@ -1979,77 +2111,31 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-trie/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-tx": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.1.tgz", - "integrity": "sha512-0HwxUF2u2hrsIM1fsasjXvlbDOq1ZHFV2dd1yGq8CA+MEYhaxZr8OTScpVkkxqMwBcc5y83FyPl0J9MZn3kY0w==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.2.tgz", + "integrity": "sha512-T+l4/MmTp7VhJeNloMkM+lPU3YMUaXdcXgTGCf8+ZFvV9NYZTRLFekRwlG6/JMmVfIfbrW+dRRJ9A6H5Q/Z64g==", "dev": true, "dependencies": { "@chainsafe/ssz": "^0.9.2", "@ethersproject/providers": "^5.7.2", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "ethereum-cryptography": "0.1.3" }, "engines": { "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-tx/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-util": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.1.tgz", - "integrity": "sha512-TwbhOWQ8QoSCFhV/DDfSmyfFIHjPjFBj957219+V3jTZYZ2rf9PmDtNOeZWAE3p3vlp8xb02XGpd0v6nTUPbsA==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.2.tgz", + "integrity": "sha512-4Wu9D3LykbSBWZo8nJCnzVIYGvGCuyiYLIJa9XXNVt1q1jUzHdB+sJvx95VGCpPkCT+IbLecW6yfzy3E1bQrwQ==", "dev": true, "dependencies": { "@chainsafe/ssz": "^0.10.0", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "ethereum-cryptography": "0.1.3" }, "engines": { @@ -2075,44 +2161,21 @@ "@chainsafe/persistent-merkle-tree": "^0.5.0" } }, - "node_modules/@nomicfoundation/ethereumjs-util/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/ethereumjs-vm": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-7.0.1.tgz", - "integrity": "sha512-rArhyn0jPsS/D+ApFsz3yVJMQ29+pVzNZ0VJgkzAZ+7FqXSRtThl1C1prhmlVr3YNUlfpZ69Ak+RUT4g7VoOuQ==", - "dev": true, - "dependencies": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-blockchain": "7.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-evm": "2.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-statemanager": "2.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-7.0.2.tgz", + "integrity": "sha512-Bj3KZT64j54Tcwr7Qm/0jkeZXJMfdcAtRBedou+Hx0dPOSIgqaIr0vvLwP65TpHbak2DmAq+KJbW2KNtIoFwvA==", + "dev": true, + "dependencies": { + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "mcl-wasm": "^0.7.1", @@ -2122,33 +2185,10 @@ "node": ">=14" } }, - "node_modules/@nomicfoundation/ethereumjs-vm/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "node_modules/@nomicfoundation/hardhat-chai-matchers": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.2.tgz", - "integrity": "sha512-9Wu9mRtkj0U9ohgXYFbB/RQDa+PcEdyBm2suyEtsJf3PqzZEEjLUZgWnMjlFhATMk/fp3BjmnYVPrwl+gr8oEw==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.4.tgz", + "integrity": "sha512-nvCeGgcN5mBQPP8TeWTrUB63JathBNj6igtpBC43za4CDglK1/UxzbYBl2WiLlNbzSQXACk3+gm/2xEbWanu5g==", "dev": true, "peer": true, "dependencies": { @@ -2165,9 +2205,9 @@ } }, "node_modules/@nomicfoundation/hardhat-ethers": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.4.tgz", - "integrity": "sha512-k9qbLoY7qn6C6Y1LI0gk2kyHXil2Tauj4kGzQ8pgxYXIGw8lWn8tuuL72E11CrlKaXRUvOgF0EXrv/msPI2SbA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.5.tgz", + "integrity": "sha512-RNFe8OtbZK6Ila9kIlHp0+S80/0Bu/3p41HUpaRIoHLm6X3WekTd83vob3rE54Duufu1edCiBDxspBzi2rxHHw==", "dev": true, "dependencies": { "debug": "^4.1.1", @@ -2179,9 +2219,9 @@ } }, "node_modules/@nomicfoundation/hardhat-network-helpers": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.8.tgz", - "integrity": "sha512-MNqQbzUJZnCMIYvlniC3U+kcavz/PhhQSsY90tbEtUyMj/IQqsLwIRZa4ctjABh3Bz0KCh9OXUZ7Yk/d9hr45Q==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.10.tgz", + "integrity": "sha512-R35/BMBlx7tWN5V6d/8/19QCwEmIdbnA4ZrsuXgvs8i2qFx5i7h6mH5pBS4Pwi4WigLH+upl6faYusrNPuzMrQ==", "dev": true, "dependencies": { "ethereumjs-util": "^7.1.4" @@ -2190,45 +2230,6 @@ "hardhat": "^2.9.5" } }, - "node_modules/@nomicfoundation/hardhat-network-helpers/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "node_modules/@nomicfoundation/hardhat-network-helpers/node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dev": true, - "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/@nomicfoundation/hardhat-toolbox": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-3.0.0.tgz", @@ -2459,14 +2460,12 @@ "node_modules/@openzeppelin/contracts": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.9.0.tgz", - "integrity": "sha512-DUP74AFGKlic2sQb/CmgrN2aUPMFGxRrmCTUxLHsiU2RzwWqVuMPZBxiAyvlff6Pea77uylAX6B5x9W6evEbhA==", - "dev": true + "integrity": "sha512-DUP74AFGKlic2sQb/CmgrN2aUPMFGxRrmCTUxLHsiU2RzwWqVuMPZBxiAyvlff6Pea77uylAX6B5x9W6evEbhA==" }, "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==", - "dev": true + "integrity": "sha512-jjaHAVRMrE4UuZNfDwjlLGDxTHWIOwTJS2ldnc278a0gevfXfPr8hxKEVBGFBE96kl2G3VHDZhUimw/+G3TG2A==" }, "node_modules/@resolver-engine/core": { "version": "0.3.3", @@ -2550,74 +2549,65 @@ } }, "node_modules/@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", + "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "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==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz", + "integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" + "@noble/curves": "~1.3.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", + "dev": true, + "dependencies": { + "@noble/hashes": "1.3.3" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, "node_modules/@scure/bip32/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==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz", + "integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], "dependencies": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.4" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/@scure/bip39/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/" - } - ] - }, "node_modules/@sentry/core": { "version": "5.30.0", "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz", @@ -2810,16 +2800,6 @@ "typescript": ">=4.7.0" } }, - "node_modules/@typechain/ethers-v6/node_modules/ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "typescript": ">=3.7.0" - } - }, "node_modules/@typechain/hardhat": { "version": "8.0.3", "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-8.0.3.tgz", @@ -2836,65 +2816,26 @@ "typechain": "^8.3.1" } }, - "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, - "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/@typechain/hardhat/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "peer": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@typechain/hardhat/node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/@types/bn.js": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", - "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", + "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", "dev": true, "dependencies": { "@types/node": "*" } }, "node_modules/@types/chai": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.5.tgz", - "integrity": "sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng==", + "version": "4.3.11", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.11.tgz", + "integrity": "sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==", "dev": true, "peer": true }, "node_modules/@types/chai-as-promised": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.5.tgz", - "integrity": "sha512-jStwss93SITGBwt/niYrkf2C+/1KTeZCZl1LaeezTlqppAKeoQC7jxyqYuP72sxBGKCIbw7oHgbYssIRzT5FCQ==", + "version": "7.1.8", + "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz", + "integrity": "sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw==", "dev": true, "peer": true, "dependencies": { @@ -2955,32 +2896,35 @@ } }, "node_modules/@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", + "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", "dev": true, "peer": true }, "node_modules/@types/node": { - "version": "20.5.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.3.tgz", - "integrity": "sha512-ITI7rbWczR8a/S6qjAW7DMqxqFMjjTo61qZVWJ1ubPvbIQsL5D/TvwjYEalM8Kthpe3hTzOGrF2TGbAu2uyqeA==", - "dev": true + "version": "20.11.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz", + "integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/node-fetch": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", - "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", "dev": true, "dependencies": { "@types/node": "*", - "form-data": "^3.0.0" + "form-data": "^4.0.0" } }, "node_modules/@types/pbkdf2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", - "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==", "dev": true, "dependencies": { "@types/node": "*" @@ -2993,9 +2937,9 @@ "dev": true }, "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "version": "6.9.11", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.11.tgz", + "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==", "dev": true, "peer": true }, @@ -3009,6 +2953,12 @@ "safe-buffer": "~5.1.1" } }, + "node_modules/@types/readable-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==", + "dev": true + }, "node_modules/@types/resolve": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz", @@ -3019,9 +2969,9 @@ } }, "node_modules/@types/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.6.tgz", + "integrity": "sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==", "dev": true, "dependencies": { "@types/node": "*" @@ -3041,9 +2991,9 @@ "peer": true }, "node_modules/abstract-level": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/abstract-level/-/abstract-level-1.0.3.tgz", - "integrity": "sha512-t6jv+xHy+VYwc4xqZMn2Pa9DjcdzvzZmQGRjTFc8spIbRGHgBrEKbPq+rYXc7CCo0lxgYvSgKVg9qZAhpVQSjA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abstract-level/-/abstract-level-1.0.4.tgz", + "integrity": "sha512-eUP/6pbXBkMbXFdx4IH2fVgvB7M0JvR7/lIL33zcs0IBcwjdzSSl31TOJsaCzmKSSDF9h8QYSOJux4Nd4YJqFg==", "dev": true, "dependencies": { "buffer": "^6.0.3", @@ -3059,9 +3009,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "peer": true, "bin": { @@ -3072,9 +3022,9 @@ } }, "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", "dev": true, "peer": true, "engines": { @@ -3158,6 +3108,15 @@ "node": ">=0.4.2" } }, + "node_modules/ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "dev": true, + "dependencies": { + "string-width": "^4.1.0" + } + }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -3246,20 +3205,6 @@ "node": ">=6" } }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", @@ -3280,47 +3225,6 @@ "node": ">=0.10.0" } }, - "node_modules/array.prototype.reduce": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", - "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-array-method-boxes-properly": "^1.0.0", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", - "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", - "dev": true, - "peer": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -3387,19 +3291,6 @@ "node": ">= 4.0.0" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -3415,6 +3306,18 @@ "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", "dev": true }, + "node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dev": true, + "peer": true, + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -3481,9 +3384,9 @@ } }, "node_modules/bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "dev": true, "engines": { "node": "*" @@ -3516,6 +3419,110 @@ "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", "dev": true }, + "node_modules/boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", + "dev": true, + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "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==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "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==", + "dev": 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/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, + "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 + }, + "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, + "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, + "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, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -3637,18 +3644,6 @@ "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", "dev": true }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dev": true, - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -3659,13 +3654,18 @@ } }, "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.6.tgz", + "integrity": "sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.3", + "set-function-length": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3721,18 +3721,18 @@ } }, "node_modules/chai": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", - "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", "dev": true, "dependencies": { "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^4.1.2", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", "pathval": "^1.1.1", - "type-detect": "^4.0.5" + "type-detect": "^4.0.8" }, "engines": { "node": ">=4" @@ -3776,25 +3776,22 @@ } }, "node_modules/check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", "dev": true, + "dependencies": { + "get-func-name": "^2.0.2" + }, "engines": { "node": "*" } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -3807,6 +3804,9 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } @@ -3828,9 +3828,9 @@ } }, "node_modules/classic-level": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.3.0.tgz", - "integrity": "sha512-iwFAJQYtqRTRM0F6L8h4JCt00ZSGdOyqh7yVrhhjrOpFhmBjNlRUey64MCiyo6UmQHMJ+No3c81nujPv+n9yrg==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.4.1.tgz", + "integrity": "sha512-qGx/KJl3bvtOHrGau2WklEZuXhS3zme+jf+fsu6Ej7W7IP/C49v7KNlWIsT1jZu0YnfzSIYDGcEWpCa1wKGWXQ==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -3853,6 +3853,18 @@ "node": ">=6" } }, + "node_modules/cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/cli-table3": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", @@ -4076,6 +4088,13 @@ "util-deprecate": "~1.0.1" } }, + "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==", + "dev": true, + "peer": true + }, "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", @@ -4148,28 +4167,32 @@ "peer": true }, "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=4.8" + "node": ">= 8" } }, - "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, "bin": { - "semver": "bin/semver" + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, "node_modules/crypt": { @@ -4183,9 +4206,9 @@ } }, "node_modules/crypto-js": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.3.0.tgz", - "integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", "dev": true }, "node_modules/dashdash": { @@ -4265,21 +4288,19 @@ "dev": true, "peer": true }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "node_modules/define-data-property": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.2.tgz", + "integrity": "sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==", "dev": true, - "peer": true, "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.2", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.1" }, "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, "node_modules/delayed-stream": { @@ -4368,20 +4389,10 @@ "node": ">=8" } }, - "node_modules/dir-glob/node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/dotenv": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "version": "16.4.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", + "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", "dev": true, "engines": { "node": ">=12" @@ -4458,123 +4469,19 @@ "is-arrayish": "^0.2.1" } }, - "node_modules/es-abstract": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", - "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", - "dev": true, - "peer": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.1", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.1", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "safe-array-concat": "^1.0.0", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract/node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", - "dev": true, - "peer": true - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "peer": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, - "peer": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, "engines": { "node": ">=6" @@ -4612,20 +4519,6 @@ "source-map": "~0.2.0" } }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", - "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/esprima": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", @@ -4677,25 +4570,23 @@ "dev": true }, "node_modules/eth-gas-reporter": { - "version": "0.2.25", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.25.tgz", - "integrity": "sha512-1fRgyE4xUB8SoqLgN3eDfpDfwEfRxh2Sz1b7wzFbyQA+9TekMmvSjjoRu9SKcSVyK+vLkLIsVbJDsTWjw195OQ==", + "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, "peer": true, "dependencies": { - "@ethersproject/abi": "^5.0.0-beta.146", "@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": "^4.0.40", + "ethers": "^5.7.2", "fs-readdir-recursive": "^1.1.0", "lodash": "^4.17.14", "markdown-table": "^1.1.3", - "mocha": "^7.1.1", + "mocha": "^10.2.0", "req-cwd": "^2.0.0", - "request": "^2.88.0", - "request-promise-native": "^1.0.5", "sha1": "^1.1.1", "sync-request": "^6.0.0" }, @@ -4708,640 +4599,307 @@ } } }, - "node_modules/eth-gas-reporter/node_modules/aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", + "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/" + } + ], "peer": true }, - "node_modules/eth-gas-reporter/node_modules/ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "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/" + } + ], "peer": true, "dependencies": { - "sprintf-js": "~1.0.2" + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" } }, - "node_modules/eth-gas-reporter/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "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/" + } + ], "peer": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eth-gas-reporter/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" } }, - "node_modules/eth-gas-reporter/node_modules/chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", + "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, "peer": true, "dependencies": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.1.1" + "@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/cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "node_modules/eth-gas-reporter/node_modules/ethers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", "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" + } + ], "peer": true, "dependencies": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" } }, - "node_modules/eth-gas-reporter/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "node_modules/ethereum-bloom-filters": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", + "integrity": "sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA==", "dev": true, - "peer": true, "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eth-gas-reporter/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" + "js-sha3": "^0.8.0" } }, - "node_modules/eth-gas-reporter/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "node_modules/ethereum-cryptography": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", + "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", "dev": true, - "peer": true, - "engines": { - "node": ">=0.3.1" + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" } }, - "node_modules/eth-gas-reporter/node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/ethereum-waffle": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/ethereum-waffle/-/ethereum-waffle-3.4.4.tgz", + "integrity": "sha512-PA9+jCjw4WC3Oc5ocSMBj5sXvueWQeAbvCA+hUlb6oFgwwKyq5ka3bWQ7QZcjzIX+TdFkxP4IbFmoY2D8Dkj9Q==", "dev": true, - "peer": true, + "dependencies": { + "@ethereum-waffle/chai": "^3.4.4", + "@ethereum-waffle/compiler": "^3.4.4", + "@ethereum-waffle/mock-contract": "^3.4.4", + "@ethereum-waffle/provider": "^3.4.4", + "ethers": "^5.0.1" + }, "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "waffle": "bin/waffle" }, "engines": { - "node": ">=4" + "node": ">=10.0" } }, - "node_modules/eth-gas-reporter/node_modules/ethers": { - "version": "4.0.49", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.49.tgz", - "integrity": "sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg==", + "node_modules/ethereum-waffle/node_modules/ethers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", "dev": true, - "peer": true, + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], "dependencies": { - "aes-js": "3.0.0", - "bn.js": "^4.11.9", - "elliptic": "6.5.4", - "hash.js": "1.1.3", - "js-sha3": "0.5.7", - "scrypt-js": "2.0.4", - "setimmediate": "1.0.4", - "uuid": "2.0.1", - "xmlhttprequest": "1.8.0" + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" } }, - "node_modules/eth-gas-reporter/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "node_modules/ethereumjs-abi": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", + "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", "dev": true, - "peer": true, "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" + "bn.js": "^4.11.8", + "ethereumjs-util": "^6.0.0" } }, - "node_modules/eth-gas-reporter/node_modules/flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", + "node_modules/ethereumjs-abi/node_modules/@types/bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", "dev": true, - "peer": true, "dependencies": { - "is-buffer": "~2.0.3" - }, - "bin": { - "flat": "cli.js" + "@types/node": "*" } }, - "node_modules/eth-gas-reporter/node_modules/fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "deprecated": "\"Please update to latest v2.3 or v2.2\"", + "node_modules/ethereumjs-abi/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/ethereumjs-abi/node_modules/ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" } }, - "node_modules/eth-gas-reporter/node_modules/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "node_modules/ethereumjs-util": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", + "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", "dev": true, - "peer": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@types/bn.js": "^5.1.0", + "bn.js": "^5.1.2", + "create-hash": "^1.1.2", + "ethereum-cryptography": "^0.1.3", + "rlp": "^2.2.4" }, "engines": { - "node": "*" + "node": ">=10.0.0" } }, - "node_modules/eth-gas-reporter/node_modules/hash.js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", - "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "node_modules/ethers": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.11.0.tgz", + "integrity": "sha512-kPHNTnhVWiWU6AVo6CAeTjXEK24SpCXyZvwG9ROFjT0Vlux0EOhWKBAeC+45iDj80QNJTYaT1SDEmeunT0vDNw==", "dev": true, - "peer": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/ethers-io/" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/eth-gas-reporter/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, - "peer": true, + "@adraffy/ens-normalize": "1.10.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@types/node": "18.15.13", + "aes-js": "4.0.0-beta.5", + "tslib": "2.4.0", + "ws": "8.5.0" + }, "engines": { - "node": ">=4" + "node": ">=14.0.0" } }, - "node_modules/eth-gas-reporter/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, - "peer": true + "node_modules/ethers/node_modules/@types/node": { + "version": "18.15.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz", + "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==", + "dev": true }, - "node_modules/eth-gas-reporter/node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "peer": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/eth-gas-reporter/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "peer": true, - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", - "dev": true, - "peer": true, - "dependencies": { - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eth-gas-reporter/node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/eth-gas-reporter/node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "peer": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/eth-gas-reporter/node_modules/mocha": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.2.0.tgz", - "integrity": "sha512-O9CIypScywTVpNaRrCAgoUnJgozpIofjKUYmJhiCIJMiuYnLI6otcb1/kpW9/n/tJODHGZ7i8aLQoDVsMtOKQQ==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "chokidar": "3.3.0", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "3.0.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.5", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" - } - }, - "node_modules/eth-gas-reporter/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "peer": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eth-gas-reporter/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "peer": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", - "dev": true, - "peer": true, - "dependencies": { - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/eth-gas-reporter/node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/scrypt-js": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", - "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/setimmediate": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", - "integrity": "sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "peer": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "peer": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/uuid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", - "integrity": "sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/eth-gas-reporter/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "peer": true - }, - "node_modules/eth-gas-reporter/node_modules/yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "peer": true, - "dependencies": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "node_modules/eth-gas-reporter/node_modules/yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "peer": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", - "dev": true, - "peer": true, - "dependencies": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/ethereum-bloom-filters": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz", - "integrity": "sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA==", - "dev": true, - "dependencies": { - "js-sha3": "^0.8.0" - } - }, - "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, - "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "node_modules/ethereum-cryptography/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/" - } - ] - }, - "node_modules/ethereum-waffle": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/ethereum-waffle/-/ethereum-waffle-3.4.4.tgz", - "integrity": "sha512-PA9+jCjw4WC3Oc5ocSMBj5sXvueWQeAbvCA+hUlb6oFgwwKyq5ka3bWQ7QZcjzIX+TdFkxP4IbFmoY2D8Dkj9Q==", - "dev": true, - "dependencies": { - "@ethereum-waffle/chai": "^3.4.4", - "@ethereum-waffle/compiler": "^3.4.4", - "@ethereum-waffle/mock-contract": "^3.4.4", - "@ethereum-waffle/provider": "^3.4.4", - "ethers": "^5.0.1" - }, - "bin": { - "waffle": "bin/waffle" - }, - "engines": { - "node": ">=10.0" - } - }, - "node_modules/ethereum-waffle/node_modules/ethers": { + "node_modules/ethersv5": { + "name": "ethers", "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", @@ -5389,109 +4947,6 @@ "@ethersproject/wordlists": "5.7.0" } }, - "node_modules/ethereumjs-abi": { - "version": "0.6.8", - "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", - "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", - "dev": true, - "dependencies": { - "bn.js": "^4.11.8", - "ethereumjs-util": "^6.0.0" - } - }, - "node_modules/ethereumjs-abi/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "dev": true, - "dependencies": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - } - }, - "node_modules/ethereumjs-util/node_modules/@types/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/ethereumjs-util/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/ethereumjs-util/node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "node_modules/ethers": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.7.1.tgz", - "integrity": "sha512-qX5kxIFMfg1i+epfgb0xF4WM7IqapIIu50pOJ17aebkxxa4BacW5jFrQRmCJpDEg2ZK2oNtR5QjrQ1WDBF29dA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/ethers-io/" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "dependencies": { - "@adraffy/ens-normalize": "1.9.2", - "@noble/hashes": "1.1.2", - "@noble/secp256k1": "1.7.1", - "@types/node": "18.15.13", - "aes-js": "4.0.0-beta.5", - "tslib": "2.4.0", - "ws": "8.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/ethers/node_modules/@types/node": { - "version": "18.15.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz", - "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==", - "dev": true - }, "node_modules/ethjs-unit": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", @@ -5558,9 +5013,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "peer": true, "dependencies": { @@ -5588,9 +5043,9 @@ "peer": true }, "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, "peer": true, "dependencies": { @@ -5653,9 +5108,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "dev": true, "funding": [ { @@ -5672,16 +5127,6 @@ } } }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "peer": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -5692,9 +5137,9 @@ } }, "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dev": true, "dependencies": { "asynckit": "^0.4.0", @@ -5712,17 +5157,18 @@ "dev": true }, "node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "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, "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=10" } }, "node_modules/fs-readdir-recursive": { @@ -5753,26 +5199,10 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5783,16 +5213,6 @@ "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "dev": true }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/ganache-core": { "version": "2.13.2", "resolved": "https://registry.npmjs.org/ganache-core/-/ganache-core-2.13.2.tgz", @@ -14981,24 +14401,28 @@ } }, "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "engines": { "node": "*" } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -15014,23 +14438,6 @@ "node": ">=4" } }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -15112,22 +14519,6 @@ "node": ">=6" } }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "peer": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/globby": { "version": "10.0.2", "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", @@ -15208,7 +14599,6 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, - "peer": true, "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -15222,16 +14612,6 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "node_modules/growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4.x" - } - }, "node_modules/handlebars": { "version": "4.7.8", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", @@ -15254,6 +14634,16 @@ "uglify-js": "^3.1.4" } }, + "node_modules/handlebars/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -15278,23 +14668,23 @@ } }, "node_modules/hardhat": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.17.1.tgz", - "integrity": "sha512-1PxRkfjhEzXs/wDxI5YgzYBxNmvzifBTjYzuopwel+vXpAhCudplusJthN5eig0FTs4qbi828DBIITEDh8x9LA==", + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.19.5.tgz", + "integrity": "sha512-vx8R7zWCYVgM56vA6o0Wqx2bIIptkN4TMs9QwDqZVNGRhMzBfzqUeEYbp+69gxWp1neg2V2nYQUaaUv7aom1kw==", "dev": true, "dependencies": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-blockchain": "7.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-evm": "2.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-statemanager": "2.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", - "@nomicfoundation/ethereumjs-vm": "7.0.1", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", + "@nomicfoundation/ethereumjs-vm": "7.0.2", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", "@types/bn.js": "^5.1.0", @@ -15302,6 +14692,7 @@ "adm-zip": "^0.4.16", "aggregate-error": "^3.0.0", "ansi-escapes": "^4.3.0", + "boxen": "^5.1.2", "chalk": "^2.4.2", "chokidar": "^3.4.0", "ci-info": "^2.0.0", @@ -15365,9 +14756,9 @@ } }, "node_modules/hardhat-gas-reporter": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.9.tgz", - "integrity": "sha512-INN26G3EW43adGKBNzYWOlI3+rlLnasXTwW79YNnUhXPDa+yHESgt639dJEs37gCjhkbNKcRRJnomXEuMFBXJg==", + "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==", "dev": true, "peer": true, "dependencies": { @@ -15379,6 +14770,51 @@ "hardhat": "^2.0.2" } }, + "node_modules/hardhat/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/" + } + ] + }, + "node_modules/hardhat/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/" + } + ], + "dependencies": { + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/hardhat/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/" + } + ], + "dependencies": { + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" + } + }, "node_modules/hardhat/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -15389,6 +14825,32 @@ "concat-map": "0.0.1" } }, + "node_modules/hardhat/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, + "dependencies": { + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" + } + }, + "node_modules/hardhat/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, "node_modules/hardhat/node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -15410,9 +14872,9 @@ } }, "node_modules/hardhat/node_modules/jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "optionalDependencies": { "graceful-fs": "^4.1.6" @@ -15466,6 +14928,15 @@ "rimraf": "^2.2.8" } }, + "node_modules/hardhat/node_modules/solc/node_modules/jsonfile": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", + "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/hardhat/node_modules/solc/node_modules/semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", @@ -15475,6 +14946,15 @@ "semver": "bin/semver" } }, + "node_modules/hardhat/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/hardhat/node_modules/ws": { "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", @@ -15496,28 +14976,6 @@ } } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -15528,13 +14986,12 @@ } }, "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", "dev": true, - "peer": true, "dependencies": { - "get-intrinsic": "^1.1.1" + "get-intrinsic": "^1.2.2" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -15564,22 +15021,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "peer": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/hash-base": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", @@ -15594,26 +15035,6 @@ "node": ">=4" } }, - "node_modules/hash-base/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==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/hash.js": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", @@ -15624,6 +15045,18 @@ "minimalistic-assert": "^1.0.1" } }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -15779,9 +15212,9 @@ ] }, "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "dev": true, "peer": true, "engines": { @@ -15789,9 +15222,9 @@ } }, "node_modules/immutable": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.3.tgz", - "integrity": "sha512-808ZFYMsIRAjLAu5xkKo0TsbY9LBy9H5MazTKIEHerNkg0ymgilGfBPMR/3G7d/ihGmuK2Hw8S1izY2d3kd3wA==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", + "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", "dev": true }, "node_modules/indent-string": { @@ -15826,21 +15259,6 @@ "dev": true, "peer": true }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "peer": true, - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/interpret": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", @@ -15869,40 +15287,12 @@ "fp-ts": "^1.0.0" } }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "peer": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", @@ -15915,23 +15305,6 @@ "node": ">=8" } }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-buffer": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", @@ -15955,19 +15328,6 @@ "node": ">=4" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-ci": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", @@ -15980,22 +15340,6 @@ "is-ci": "bin.js" } }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "peer": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-docker": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", @@ -16051,19 +15395,6 @@ "npm": ">=3" } }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -16073,22 +15404,6 @@ "node": ">=0.12.0" } }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "peer": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", @@ -16098,84 +15413,6 @@ "node": ">=8" } }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "peer": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "peer": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dev": true, - "peer": true, - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -16206,19 +15443,6 @@ "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", "dev": true }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -16296,6 +15520,30 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "node_modules/json-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", + "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.5", + "isarray": "^2.0.5", + "jsonify": "^0.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/json-stable-stringify/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", @@ -16303,14 +15551,26 @@ "dev": true }, "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/jsonschema": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz", @@ -16337,9 +15597,9 @@ } }, "node_modules/keccak": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.3.tgz", - "integrity": "sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -16392,11 +15652,12 @@ } }, "node_modules/level": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/level/-/level-8.0.0.tgz", - "integrity": "sha512-ypf0jjAk2BWI33yzEaaotpq7fkOPALKAgDBxggO6Q9HGX2MRXn0wbP1Jn/tJv1gtL867+YOjOB49WaUF3UoJNQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/level/-/level-8.0.1.tgz", + "integrity": "sha512-oPBGkheysuw7DmzFQYyFe8NAia5jFLAgEnkgWnK3OXAuJr8qFT+xBQIwokAZPME2bhPFzS8hlYcL16m8UZrtwQ==", "dev": true, "dependencies": { + "abstract-level": "^1.0.4", "browser-level": "^1.0.1", "classic-level": "^1.2.0" }, @@ -16460,6 +15721,15 @@ "node": ">=0.10.0" } }, + "node_modules/load-json-file/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/locate-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", @@ -16599,12 +15869,12 @@ } }, "node_modules/loupe": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", - "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dev": true, "dependencies": { - "get-func-name": "^2.0.0" + "get-func-name": "^2.0.1" } }, "node_modules/lru_map": { @@ -16690,14 +15960,14 @@ } }, "node_modules/merkletreejs": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/merkletreejs/-/merkletreejs-0.3.10.tgz", - "integrity": "sha512-lin42tKfRdkW+6iE5pjtQ9BnH+1Hk3sJ5Fn9hUUSjcXRcJbSISHgPCfYvMNEXiNqZPhz/TyRPEV30qgnujsQ7A==", + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/merkletreejs/-/merkletreejs-0.3.11.tgz", + "integrity": "sha512-LJKTl4iVNTndhL+3Uz/tfkjD0klIWsHlUzgtuNnNrsf7bAlXR30m+xYB7lHr5Z/l6e/yAIsr26Dabx6Buo4VGQ==", "dev": true, "dependencies": { "bignumber.js": "^9.0.1", "buffer-reverse": "^1.0.1", - "crypto-js": "^3.1.9-1", + "crypto-js": "^4.2.0", "treeify": "^1.1.0", "web3-utils": "^1.3.4" }, @@ -16812,9 +16082,9 @@ } }, "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", + "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", "dev": true, "dependencies": { "ansi-colors": "4.1.1", @@ -16824,13 +16094,12 @@ "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", - "glob": "7.2.0", + "glob": "8.1.0", "he": "1.2.0", "js-yaml": "4.1.0", "log-symbols": "4.1.0", "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.3.3", "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", @@ -16845,10 +16114,6 @@ }, "engines": { "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" } }, "node_modules/mocha/node_modules/ansi-colors": { @@ -16860,6 +16125,33 @@ "node": ">=6" } }, + "node_modules/mocha/node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "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" + }, + "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", @@ -16889,47 +16181,24 @@ } }, "node_modules/mocha/node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^5.0.1", + "once": "^1.3.0" }, "engines": { - "node": "*" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/mocha/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -17041,18 +16310,6 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, "node_modules/napi-macros": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.2.2.tgz", @@ -17088,31 +16345,10 @@ "lodash": "^4.17.21" } }, - "node_modules/node-environment-flags": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", - "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", - "dev": true, - "peer": true, - "dependencies": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } - }, - "node_modules/node-environment-flags/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "peer": true, - "bin": { - "semver": "bin/semver" - } - }, "node_modules/node-fetch": { - "version": "2.6.13", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.13.tgz", - "integrity": "sha512-StxNAxh15zr77QvvkmveSQ8uCQ4+v5FkvNTj0OESmiHu+VRi/gXArXtkWMElOsOUNLtUEvI4yS+rdtOHZTwlQA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, "dependencies": { "whatwg-url": "^5.0.0" @@ -17130,9 +16366,9 @@ } }, "node_modules/node-gyp-build": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", - "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz", + "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==", "dev": true, "bin": { "node-gyp-build": "bin.js", @@ -17242,9 +16478,9 @@ } }, "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -17255,47 +16491,10 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "peer": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "peer": true, - "dependencies": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - }, "engines": { "node": ">= 0.4" } }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", - "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", - "dev": true, - "peer": true, - "dependencies": { - "array.prototype.reduce": "^1.0.5", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.21.2", - "safe-array-concat": "^1.0.0" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/obliterator": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", @@ -17441,31 +16640,32 @@ } }, "node_modules/patch-package": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", - "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", + "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", "dev": true, "dependencies": { "@yarnpkg/lockfile": "^1.1.0", "chalk": "^4.1.2", - "cross-spawn": "^6.0.5", + "ci-info": "^3.7.0", + "cross-spawn": "^7.0.3", "find-yarn-workspace-root": "^2.0.0", "fs-extra": "^9.0.0", - "is-ci": "^2.0.0", + "json-stable-stringify": "^1.0.2", "klaw-sync": "^6.0.0", "minimist": "^1.2.6", "open": "^7.4.2", "rimraf": "^2.6.3", - "semver": "^5.6.0", + "semver": "^7.5.3", "slash": "^2.0.0", "tmp": "^0.0.33", - "yaml": "^1.10.2" + "yaml": "^2.2.2" }, "bin": { "patch-package": "index.js" }, "engines": { - "node": ">=10", + "node": ">=14", "npm": ">5" } }, @@ -17500,6 +16700,21 @@ "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", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "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", @@ -17518,21 +16733,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "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, - "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/patch-package/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -17542,25 +16742,31 @@ "node": ">=8" } }, - "node_modules/patch-package/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "node_modules/patch-package/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==", "dev": true, "dependencies": { - "universalify": "^2.0.0" + "yallist": "^4.0.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">=10" } }, "node_modules/patch-package/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, "bin": { - "semver": "bin/semver" + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/patch-package/node_modules/supports-color": { @@ -17575,14 +16781,11 @@ "node": ">=8" } }, - "node_modules/patch-package/node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } + "node_modules/patch-package/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/path-browserify": { "version": "1.0.1", @@ -17609,12 +16812,12 @@ } }, "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/path-parse": { @@ -17640,18 +16843,18 @@ } }, "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", - "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", "dev": true, "engines": { "node": "14 || >=16.14" } }, "node_modules/path-scurry/node_modules/minipass": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", - "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true, "engines": { "node": ">=16 || 14 >=14.17" @@ -17667,17 +16870,13 @@ } }, "node_modules/path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, + "peer": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/pathval": { @@ -17724,12 +16923,13 @@ } }, "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true, + "peer": true, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, "node_modules/pinkie": { @@ -17802,6 +17002,13 @@ "asap": "~2.0.6" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true, + "peer": true + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -17922,6 +17129,29 @@ "node": ">=0.10.0" } }, + "node_modules/read-pkg/node_modules/path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -18008,24 +17238,6 @@ "node": ">=6" } }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/req-cwd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", @@ -18084,41 +17296,6 @@ "node": ">= 6" } }, - "node_modules/request-promise-core": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", - "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", - "dev": true, - "peer": true, - "dependencies": { - "lodash": "^4.17.19" - }, - "engines": { - "node": ">=0.10.0" - }, - "peerDependencies": { - "request": "^2.34" - } - }, - "node_modules/request-promise-native": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", - "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", - "deprecated": "request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142", - "dev": true, - "peer": true, - "dependencies": { - "request-promise-core": "1.1.4", - "stealthy-require": "^1.1.1", - "tough-cookie": "^2.3.3" - }, - "engines": { - "node": ">=0.12.0" - }, - "peerDependencies": { - "request": "^2.34" - } - }, "node_modules/request/node_modules/form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", @@ -18329,52 +17506,25 @@ "integrity": "sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==", "dev": true }, - "node_modules/safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-array-concat/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "peer": true - }, "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==", - "dev": true - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/safer-buffer": { "version": "2.1.2", @@ -18636,6 +17786,23 @@ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, + "node_modules/set-function-length": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", + "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", + "dev": true, + "dependencies": { + "define-data-property": "^1.1.2", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -18676,24 +17843,24 @@ } }, "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "dependencies": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/shelljs": { @@ -18760,14 +17927,18 @@ } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz", + "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==", "dev": true, "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -18890,14 +18061,14 @@ } }, "node_modules/solidity-coverage": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.4.tgz", - "integrity": "sha512-xeHOfBOjdMF6hWTbt42iH4x+7j1Atmrf5OldDPMxI+i/COdExUxszOswD9qqvcBTaLGiOrrpnh9UZjSpt4rBsg==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.6.tgz", + "integrity": "sha512-vV03mA/0nNMskOdVwNarUcqk0N/aYdelxAbf6RZ5l84FcYHbqDTr2JXyeYMp4bT48qHtAQjnKrygW1FrECyWNw==", "dev": true, "peer": true, "dependencies": { "@ethersproject/abi": "^5.0.9", - "@solidity-parser/parser": "^0.16.0", + "@solidity-parser/parser": "^0.18.0", "chalk": "^2.4.2", "death": "^1.1.0", "detect-port": "^1.3.0", @@ -18908,7 +18079,7 @@ "globby": "^10.0.1", "jsonschema": "^1.2.4", "lodash": "^4.17.15", - "mocha": "7.1.2", + "mocha": "^10.2.0", "node-emoji": "^1.10.0", "pify": "^4.0.1", "recursive-readdir": "^2.2.2", @@ -18925,928 +18096,353 @@ } }, "node_modules/solidity-coverage/node_modules/@solidity-parser/parser": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.16.1.tgz", - "integrity": "sha512-PdhRFNhbTtu3x8Axm0uYpqOy/lODYQK+MlYSgqIsq2L8SFYEHJPHNUiOTAJbDGzNjjr1/n9AcIayxafR/fWmYw==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.18.0.tgz", + "integrity": "sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA==", "dev": true, - "peer": true, - "dependencies": { - "antlr4ts": "^0.5.0-alpha.4" - } + "peer": true }, - "node_modules/solidity-coverage/node_modules/ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", + "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", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dev": true, "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, "engines": { - "node": ">=6" + "node": ">=6 <7 || >=8" } }, - "node_modules/solidity-coverage/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "node_modules/solidity-coverage/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "peer": true, - "engines": { - "node": ">=6" + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/solidity-coverage/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/solidity-coverage/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==", "dev": true, "peer": true, "dependencies": { - "sprintf-js": "~1.0.2" + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "node_modules/solidity-coverage/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/solidity-coverage/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "peer": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/solidity-coverage/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/solidity-coverage/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, "peer": true, "engines": { - "node": ">=6" + "node": ">= 4.0.0" } }, - "node_modules/solidity-coverage/node_modules/chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", + "node_modules/solidity-coverage/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "peer": true + }, + "node_modules/source-map": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", + "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", "dev": true, + "optional": true, "peer": true, "dependencies": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" + "amdefine": ">=0.0.4" }, "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.1.1" + "node": ">=0.8.0" } }, - "node_modules/solidity-coverage/node_modules/cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "peer": true, "dependencies": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/solidity-coverage/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "peer": true, - "dependencies": { - "ms": "^2.1.1" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/solidity-coverage/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/solidity-coverage/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "node_modules/spdx-exceptions": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.4.0.tgz", + "integrity": "sha512-hcjppoJ68fhxA/cjbN4T8N6uCUejN8yFw69ttpqtBeCbF3u13n7mb31NB9jKwGTTWWnt9IbRA/mf1FprYS8wfw==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, - "peer": true, - "engines": { - "node": ">=0.3.1" + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/solidity-coverage/node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "node_modules/spdx-license-ids": { + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", + "dev": true + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true, "peer": true }, - "node_modules/solidity-coverage/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dev": true, - "peer": true, + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/solidity-coverage/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "node_modules/sshpk/node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "dev": true + }, + "node_modules/stacktrace-parser": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", + "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", "dev": true, - "peer": true, "dependencies": { - "locate-path": "^3.0.0" + "type-fest": "^0.7.1" }, "engines": { "node": ">=6" } }, - "node_modules/solidity-coverage/node_modules/flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", + "node_modules/stacktrace-parser/node_modules/type-fest": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", + "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", "dev": true, - "peer": true, - "dependencies": { - "is-buffer": "~2.0.3" - }, - "bin": { - "flat": "cli.js" + "engines": { + "node": ">=8" } }, - "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", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true, - "peer": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">= 0.8" } }, - "node_modules/solidity-coverage/node_modules/fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "deprecated": "\"Please update to latest v2.3 or v2.2\"", + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "dependencies": { + "safe-buffer": "~5.2.0" } }, - "node_modules/solidity-coverage/node_modules/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "node_modules/string-format": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz", + "integrity": "sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==", + "dev": true, + "peer": true + }, + "node_modules/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, - "peer": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": "*" + "node": ">=8" } }, - "node_modules/solidity-coverage/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==", + "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, - "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/solidity-coverage/node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "node_modules/strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", "dev": true, - "peer": true, "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "is-utf8": "^0.2.0" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/solidity-coverage/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "node_modules/strip-hex-prefix": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", + "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", "dev": true, - "peer": true, "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "is-hex-prefixed": "1.0.0" }, "engines": { - "node": ">=6" + "node": ">=6.5.0", + "npm": ">=3" } }, - "node_modules/solidity-coverage/node_modules/log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "peer": true, - "dependencies": { - "chalk": "^2.4.2" - }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/solidity-coverage/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==", + "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, - "peer": true, "dependencies": { - "yallist": "^4.0.0" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=10" + "node": ">=4" } }, - "node_modules/solidity-coverage/node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "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==", "dev": true, "peer": true, "dependencies": { - "brace-expansion": "^1.1.7" + "http-response-object": "^3.0.1", + "sync-rpc": "^1.2.1", + "then-request": "^6.0.0" }, "engines": { - "node": "*" + "node": ">=8.0.0" } }, - "node_modules/solidity-coverage/node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "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, "peer": true, "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "get-port": "^3.1.0" } }, - "node_modules/solidity-coverage/node_modules/mocha": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.1.2.tgz", - "integrity": "sha512-o96kdRKMKI3E8U0bjnfqW4QMk12MwZ4mhdBTf+B5a1q9+aq2HRnj+3ZdJu0B/ZhJeK78MgYuv6L8d/rA5AeBJA==", + "node_modules/table": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", + "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", "dev": true, "peer": true, "dependencies": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "chokidar": "3.3.0", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "3.0.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.5", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha" + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" + "node": ">=10.0.0" } }, - "node_modules/solidity-coverage/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "peer": true - }, - "node_modules/solidity-coverage/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "peer": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/solidity-coverage/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "peer": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", - "dev": true, - "peer": true, - "dependencies": { - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/solidity-coverage/node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "peer": true - }, - "node_modules/solidity-coverage/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "peer": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/solidity-coverage/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "peer": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/solidity-coverage/node_modules/supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "peer": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "peer": true - }, - "node_modules/solidity-coverage/node_modules/wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "peer": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/solidity-coverage/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "peer": true - }, - "node_modules/solidity-coverage/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "peer": true - }, - "node_modules/solidity-coverage/node_modules/yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "peer": true, - "dependencies": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "node_modules/solidity-coverage/node_modules/yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "peer": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "node_modules/solidity-coverage/node_modules/yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", - "dev": true, - "peer": true, - "dependencies": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", - "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", - "dev": true - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "peer": true - }, - "node_modules/sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", - "dev": true, - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sshpk/node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "dev": true - }, - "node_modules/stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "dev": true, - "dependencies": { - "type-fest": "^0.7.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/stacktrace-parser/node_modules/type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha512-ZnWpYnYugiOVEY5GkcuJK1io5V8QmNYChG62gSit9pQVGErXtrKuPC55ITaVSukmMta5qpMU7vqLt2Lnni4f/g==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string_decoder/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==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/string-format": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz", - "integrity": "sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==", - "dev": true, - "peer": true - }, - "node_modules/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, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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, - "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", - "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", - "dev": true, - "dependencies": { - "is-utf8": "^0.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-hex-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", - "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", - "dev": true, - "dependencies": { - "is-hex-prefixed": "1.0.0" - }, - "engines": { - "node": ">=6.5.0", - "npm": ">=3" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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, - "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==", - "dev": true, - "peer": true, - "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==", - "dev": true, - "peer": true, - "dependencies": { - "get-port": "^3.1.0" - } - }, - "node_modules/table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "peer": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table-layout": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", - "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", + "node_modules/table-layout": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", + "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", "dev": true, "peer": true, "dependencies": { @@ -20033,9 +18629,9 @@ } }, "node_modules/tough-cookie/node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -20149,10 +18745,14 @@ } }, "node_modules/ts-essentials": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-1.0.4.tgz", - "integrity": "sha512-q3N1xS4vZpRouhYHDPwO0bDW3EZ6SK9CrrDHxi/D6BPReSjpVgWIOpLS2o0gSBZm+7q/wyKp6RVM1AeeW7uyfQ==", - "dev": true + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", + "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "dev": true, + "peer": true, + "peerDependencies": { + "typescript": ">=3.7.0" + } }, "node_modules/ts-generator": { "version": "0.1.1", @@ -20216,10 +18816,16 @@ "node": "*" } }, + "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", + "integrity": "sha512-q3N1xS4vZpRouhYHDPwO0bDW3EZ6SK9CrrDHxi/D6BPReSjpVgWIOpLS2o0gSBZm+7q/wyKp6RVM1AeeW7uyfQ==", + "dev": true + }, "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "peer": true, "dependencies": { @@ -20341,9 +18947,9 @@ } }, "node_modules/typechain": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.1.tgz", - "integrity": "sha512-fA7clol2IP/56yq6vkMTR+4URF1nGjV82Wx6Rf09EsqD4tkzMAvEaqYxVFCavJm/1xaRga/oD55K+4FtuXwQOQ==", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.2.tgz", + "integrity": "sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q==", "dev": true, "peer": true, "dependencies": { @@ -20376,6 +18982,21 @@ "concat-map": "0.0.1" } }, + "node_modules/typechain/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, "node_modules/typechain/node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -20397,6 +19018,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/typechain/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "peer": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/typechain/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -20423,83 +19054,14 @@ "node": ">=10" } }, - "node_modules/typechain/node_modules/ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "peer": true, - "peerDependencies": { - "typescript": ">=3.7.0" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "node_modules/typechain/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, "peer": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 4.0.0" } }, "node_modules/typedarray": { @@ -20510,9 +19072,9 @@ "peer": true }, "node_modules/typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "peer": true, "bin": { @@ -20547,41 +19109,31 @@ "node": ">=0.8.0" } }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/undici": { - "version": "5.23.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.23.0.tgz", - "integrity": "sha512-1D7w+fvRsqlQ9GscLBwcAJinqcZGHUKjbOmXdlE/v8BvEGXjeWAax+341q44EuTcHXXnfyKNbKRq4Lg7OzhMmg==", + "version": "5.28.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz", + "integrity": "sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==", "dev": true, "dependencies": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" }, "engines": { "node": ">=14.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, "engines": { - "node": ">= 4.0.0" + "node": ">= 10.0.0" } }, "node_modules/unpipe": { @@ -20603,13 +19155,13 @@ } }, "node_modules/url": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", - "integrity": "sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.3.tgz", + "integrity": "sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==", "dev": true, "dependencies": { "punycode": "^1.4.1", - "qs": "^6.11.0" + "qs": "^6.11.2" } }, "node_modules/url/node_modules/punycode": { @@ -20686,9 +19238,9 @@ } }, "node_modules/web3-utils": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.1.tgz", - "integrity": "sha512-r6iUUw/uMnNcWXjhRv33Nyrhxq3VGOPBXeSzxhOXIci4SvC/LPTpROY0uTrMX7ztKyODYrHp8WhTkEf+ZnHssw==", + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.4.tgz", + "integrity": "sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A==", "dev": true, "dependencies": { "@ethereumjs/util": "^8.1.0", @@ -20704,55 +19256,40 @@ "node": ">=8.0.0" } }, - "node_modules/web3-utils/node_modules/@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "dev": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/web3-utils/node_modules/@scure/bip32": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", - "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", + "node_modules/web3-utils/node_modules/@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", "dev": true, "dependencies": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" + "@noble/hashes": "1.3.3" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/web3-utils/node_modules/@scure/bip39": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", - "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", + "node_modules/web3-utils/node_modules/@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", "dev": true, - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" + "engines": { + "node": ">= 16" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/web3-utils/node_modules/ethereum-cryptography": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", - "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz", + "integrity": "sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA==", "dev": true, "dependencies": { - "@noble/curves": "1.1.0", - "@noble/hashes": "1.3.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1" + "@noble/curves": "1.3.0", + "@noble/hashes": "1.3.3", + "@scure/bip32": "1.3.3", + "@scure/bip39": "1.2.2" } }, "node_modules/webidl-conversions": { @@ -20783,104 +19320,22 @@ "which": "bin/which" } }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "peer": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, - "node_modules/which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", - "dev": true, - "peer": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "peer": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/wide-align/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, - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/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, - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/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, - "peer": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/wide-align/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==", + "node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", "dev": true, - "peer": true, "dependencies": { - "ansi-regex": "^3.0.0" + "string-width": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/window-size": { @@ -21019,16 +19474,6 @@ } } }, - "node_modules/xmlhttprequest": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", - "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -21045,12 +19490,12 @@ "dev": true }, "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", + "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", "dev": true, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/yargs": { @@ -21120,15 +19565,16 @@ }, "dependencies": { "@adraffy/ens-normalize": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.9.2.tgz", - "integrity": "sha512-0h+FrQDqe2Wn+IIGFkTCd4aAwTJ+7834Ek1COohCyV26AXhwQ7WQaz+4F/nLOeVl/3BtWHOHLPsq46V8YB46Eg==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", + "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", "dev": true }, "@bosonprotocol/boson-protocol-contracts": { - "version": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#8319ec72c2335a49b74aeefd232ea9f0a6dfd368", + "version": "git+ssh://git@github.com/bosonprotocol/boson-protocol-contracts.git#5166a27e45818c82f551cd90c9a92f21137a0366", + "integrity": "sha512-GXxY3vg7MFfuRxzqc3WDuVszZafPgGV0u1FI19slbAChjSxXL9VNlALWbeb2NwRjgduqarPzICaP+vxyOpN7pQ==", "dev": true, - "from": "@bosonprotocol/boson-protocol-contracts@github:bosonprotocol/boson-protocol-contracts#v2.3.0-rc.3", + "from": "@bosonprotocol/boson-protocol-contracts@github:bosonprotocol/boson-protocol-contracts#5166a27e45818c82f551cd90c9a92f21137a0366", "requires": { "@openzeppelin/contracts": "^4.9.0", "@openzeppelin/contracts-upgradeable": "4.9.3" @@ -21507,6 +19953,26 @@ } } }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "ts-essentials": { "version": "6.0.7", "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-6.0.7.tgz", @@ -21534,6 +20000,12 @@ "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true } } }, @@ -21651,6 +20123,53 @@ "postinstall-postinstall": "^2.1.0" }, "dependencies": { + "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, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "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, + "requires": { + "color-name": "~1.1.4" + } + }, + "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 + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, "ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -21688,6 +20207,76 @@ "@ethersproject/web": "5.7.1", "@ethersproject/wordlists": "5.7.0" } + }, + "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 + }, + "patch-package": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", + "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", + "dev": true, + "requires": { + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "cross-spawn": "^6.0.5", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "is-ci": "^2.0.0", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^5.6.0", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^1.10.2" + } + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "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, + "requires": { + "has-flag": "^4.0.0" + } + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true } } }, @@ -21708,43 +20297,31 @@ "micro-ftch": "^0.3.1" }, "dependencies": { - "@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "dev": true - }, - "@scure/bip32": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", - "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", + "@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", "dev": true, "requires": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" + "@noble/hashes": "1.3.3" } }, - "@scure/bip39": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", - "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", - "dev": true, - "requires": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } + "@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", + "dev": true }, "ethereum-cryptography": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", - "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz", + "integrity": "sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA==", "dev": true, "requires": { - "@noble/curves": "1.1.0", - "@noble/hashes": "1.3.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1" + "@noble/curves": "1.3.0", + "@noble/hashes": "1.3.3", + "@scure/bip32": "1.3.3", + "@scure/bip39": "1.2.2" } } } @@ -22167,6 +20744,12 @@ "@ethersproject/strings": "^5.7.0" } }, + "@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", + "dev": true + }, "@jridgewell/resolve-uri": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", @@ -22192,6 +20775,41 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "@manifoldxyz/libraries-solidity": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@manifoldxyz/libraries-solidity/-/libraries-solidity-1.0.4.tgz", + "integrity": "sha512-ibU4TgJ6DBp27j/P4KHKb3Sd1kILp1Q7awhU3To3RlL7ytK3G59B8C5YCUIH4sVzUFghs94FWZYmHvWjzW6f5Q==", + "dev": true, + "requires": { + "@openzeppelin/contracts": "4.7.3", + "@openzeppelin/contracts-upgradeable": "4.7.3" + }, + "dependencies": { + "@openzeppelin/contracts": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", + "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==", + "dev": true + }, + "@openzeppelin/contracts-upgradeable": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", + "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==", + "dev": true + } + } + }, + "@manifoldxyz/royalty-registry-solidity": { + "version": "git+ssh://git@github.com/manifoldxyz/royalty-registry-solidity.git#e5369fc79279ce2e4c6ea2eb5914df51e89e8bd8", + "integrity": "sha512-ZWYrU/+CKjX+s6nJ3EZVMEVcIny6UQe2qEx21UjrAqWZy59A6lIQhYGPsPCNbHG/fjOt0XRG0bq8sO0FPAwpDQ==", + "dev": true, + "from": "@manifoldxyz/royalty-registry-solidity@github:manifoldxyz/royalty-registry-solidity#e5369fc79279ce2e4c6ea2eb5914df51e89e8bd8", + "requires": { + "@manifoldxyz/libraries-solidity": "^1.0.4", + "@openzeppelin/contracts": "^4.8.0", + "@openzeppelin/contracts-upgradeable": "^4.8.0" + } + }, "@metamask/eth-sig-util": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz", @@ -22203,29 +20821,53 @@ "ethjs-util": "^0.1.6", "tweetnacl": "^1.0.3", "tweetnacl-util": "^0.15.1" + }, + "dependencies": { + "@types/bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", + "dev": true, + "requires": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + } } }, "@noble/curves": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", - "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", "dev": true, "requires": { - "@noble/hashes": "1.3.1" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "dev": true - } + "@noble/hashes": "1.3.2" } }, "@noble/hashes": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.1.2.tgz", - "integrity": "sha512-KYRCASVTv6aeUi1tsF8/vpyR7zpfs3FUzy2Jqm+MU+LmUKhQ0y2FpfwqkCcxSg2ua4GALJd8k2R76WxwZGbQpA==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", "dev": true }, "@noble/secp256k1": { @@ -22264,43 +20906,20 @@ } }, "@nomicfoundation/ethereumjs-block": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-5.0.1.tgz", - "integrity": "sha512-u1Yioemi6Ckj3xspygu/SfFvm8vZEO8/Yx5a1QLzi6nVU0jz3Pg2OmHKJ5w+D9Ogk1vhwRiqEBAqcb0GVhCyHw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-5.0.2.tgz", + "integrity": "sha512-hSe6CuHI4SsSiWWjHDIzWhSiAVpzMUcDRpWYzN0T9l8/Rz7xNn3elwVOJ/tAyS0LqL6vitUD78Uk7lQDXZun7Q==", "dev": true, "requires": { - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "ethereum-cryptography": "0.1.3", "ethers": "^5.7.1" }, "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -22342,184 +20961,86 @@ } }, "@nomicfoundation/ethereumjs-blockchain": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-7.0.1.tgz", - "integrity": "sha512-NhzndlGg829XXbqJEYrF1VeZhAwSPgsK/OB7TVrdzft3y918hW5KNd7gIZ85sn6peDZOdjBsAXIpXZ38oBYE5A==", - "dev": true, - "requires": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-ethash": "3.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-7.0.2.tgz", + "integrity": "sha512-8UUsSXJs+MFfIIAKdh3cG16iNmWzWC/91P40sazNvrqhhdR/RtGDlFk2iFTGbBAZPs2+klZVzhRX8m2wvuvz3w==", + "dev": true, + "requires": { + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-ethash": "3.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "level": "^8.0.0", "lru-cache": "^5.1.1", "memory-level": "^1.0.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/ethereumjs-common": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.1.tgz", - "integrity": "sha512-OBErlkfp54GpeiE06brBW/TTbtbuBJV5YI5Nz/aB2evTDo+KawyEzPjBlSr84z/8MFfj8wS2wxzQX1o32cev5g==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.2.tgz", + "integrity": "sha512-I2WGP3HMGsOoycSdOTSqIaES0ughQTueOsddJ36aYVpI3SN8YSusgRFLwzDJwRFVIYDKx/iJz0sQ5kBHVgdDwg==", "dev": true, "requires": { - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-util": "9.0.2", "crc-32": "^1.2.0" } }, "@nomicfoundation/ethereumjs-ethash": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-3.0.1.tgz", - "integrity": "sha512-KDjGIB5igzWOp8Ik5I6QiRH5DH+XgILlplsHR7TEuWANZA759G6krQ6o8bvj+tRUz08YygMQu/sGd9mJ1DYT8w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-3.0.2.tgz", + "integrity": "sha512-8PfoOQCcIcO9Pylq0Buijuq/O73tmMVURK0OqdjhwqcGHYC2PwhbajDh7GZ55ekB0Px197ajK3PQhpKoiI/UPg==", "dev": true, "requires": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "abstract-level": "^1.0.3", "bigint-crypto-utils": "^3.0.23", "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/ethereumjs-evm": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-2.0.1.tgz", - "integrity": "sha512-oL8vJcnk0Bx/onl+TgQOQ1t/534GKFaEG17fZmwtPFeH8S5soiBYPCLUrvANOl4sCp9elYxIMzIiTtMtNNN8EQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-2.0.2.tgz", + "integrity": "sha512-rBLcUaUfANJxyOx9HIdMX6uXGin6lANCulIm/pjMgRqfiCRMZie3WKYxTSd8ZE/d+qT+zTedBF4+VHTdTSePmQ==", "dev": true, "requires": { "@ethersproject/providers": "^5.7.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "mcl-wasm": "^0.7.1", "rustbn.js": "~0.2.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/ethereumjs-rlp": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.1.tgz", - "integrity": "sha512-xtxrMGa8kP4zF5ApBQBtjlSbN5E2HI8m8FYgVSYAnO6ssUoY5pVPGy2H8+xdf/bmMa22Ce8nWMH3aEW8CcqMeQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.2.tgz", + "integrity": "sha512-QwmemBc+MMsHJ1P1QvPl8R8p2aPvvVcKBbvHnQOKBpBztEo0omN0eaob6FeZS/e3y9NSe+mfu3nNFBHszqkjTA==", "dev": true }, "@nomicfoundation/ethereumjs-statemanager": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-2.0.1.tgz", - "integrity": "sha512-B5ApMOnlruVOR7gisBaYwFX+L/AP7i/2oAahatssjPIBVDF6wTX1K7Qpa39E/nzsH8iYuL3krkYeUFIdO3EMUQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-2.0.2.tgz", + "integrity": "sha512-dlKy5dIXLuDubx8Z74sipciZnJTRSV/uHG48RSijhgm1V7eXYFC567xgKtsKiVZB1ViTP9iFL4B6Je0xD6X2OA==", "dev": true, "requires": { - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "ethers": "^5.7.1", "js-sdsl": "^4.1.4" }, "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, "ethers": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", @@ -22561,90 +21082,40 @@ } }, "@nomicfoundation/ethereumjs-trie": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-6.0.1.tgz", - "integrity": "sha512-A64It/IMpDVODzCgxDgAAla8jNjNtsoQZIzZUfIV5AY6Coi4nvn7+VReBn5itlxMiL2yaTlQr9TRWp3CSI6VoA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-6.0.2.tgz", + "integrity": "sha512-yw8vg9hBeLYk4YNg5MrSJ5H55TLOv2FSWUTROtDtTMMmDGROsAu+0tBjiNGTnKRi400M6cEzoFfa89Fc5k8NTQ==", "dev": true, "requires": { - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "@types/readable-stream": "^2.3.13", "ethereum-cryptography": "0.1.3", "readable-stream": "^3.6.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/ethereumjs-tx": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.1.tgz", - "integrity": "sha512-0HwxUF2u2hrsIM1fsasjXvlbDOq1ZHFV2dd1yGq8CA+MEYhaxZr8OTScpVkkxqMwBcc5y83FyPl0J9MZn3kY0w==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.2.tgz", + "integrity": "sha512-T+l4/MmTp7VhJeNloMkM+lPU3YMUaXdcXgTGCf8+ZFvV9NYZTRLFekRwlG6/JMmVfIfbrW+dRRJ9A6H5Q/Z64g==", "dev": true, "requires": { "@chainsafe/ssz": "^0.9.2", "@ethersproject/providers": "^5.7.2", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "ethereum-cryptography": "0.1.3" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/ethereumjs-util": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.1.tgz", - "integrity": "sha512-TwbhOWQ8QoSCFhV/DDfSmyfFIHjPjFBj957219+V3jTZYZ2rf9PmDtNOeZWAE3p3vlp8xb02XGpd0v6nTUPbsA==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.2.tgz", + "integrity": "sha512-4Wu9D3LykbSBWZo8nJCnzVIYGvGCuyiYLIJa9XXNVt1q1jUzHdB+sJvx95VGCpPkCT+IbLecW6yfzy3E1bQrwQ==", "dev": true, "requires": { "@chainsafe/ssz": "^0.10.0", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", "ethereum-cryptography": "0.1.3" }, "dependencies": { @@ -22666,82 +21137,34 @@ "@chainsafe/as-sha256": "^0.3.1", "@chainsafe/persistent-merkle-tree": "^0.5.0" } - }, - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } } } }, "@nomicfoundation/ethereumjs-vm": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-7.0.1.tgz", - "integrity": "sha512-rArhyn0jPsS/D+ApFsz3yVJMQ29+pVzNZ0VJgkzAZ+7FqXSRtThl1C1prhmlVr3YNUlfpZ69Ak+RUT4g7VoOuQ==", - "dev": true, - "requires": { - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-blockchain": "7.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-evm": "2.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-statemanager": "2.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-7.0.2.tgz", + "integrity": "sha512-Bj3KZT64j54Tcwr7Qm/0jkeZXJMfdcAtRBedou+Hx0dPOSIgqaIr0vvLwP65TpHbak2DmAq+KJbW2KNtIoFwvA==", + "dev": true, + "requires": { + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", "debug": "^4.3.3", "ethereum-cryptography": "0.1.3", "mcl-wasm": "^0.7.1", "rustbn.js": "~0.2.0" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - } } }, "@nomicfoundation/hardhat-chai-matchers": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.2.tgz", - "integrity": "sha512-9Wu9mRtkj0U9ohgXYFbB/RQDa+PcEdyBm2suyEtsJf3PqzZEEjLUZgWnMjlFhATMk/fp3BjmnYVPrwl+gr8oEw==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.4.tgz", + "integrity": "sha512-nvCeGgcN5mBQPP8TeWTrUB63JathBNj6igtpBC43za4CDglK1/UxzbYBl2WiLlNbzSQXACk3+gm/2xEbWanu5g==", "dev": true, "peer": true, "requires": { @@ -22752,9 +21175,9 @@ } }, "@nomicfoundation/hardhat-ethers": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.4.tgz", - "integrity": "sha512-k9qbLoY7qn6C6Y1LI0gk2kyHXil2Tauj4kGzQ8pgxYXIGw8lWn8tuuL72E11CrlKaXRUvOgF0EXrv/msPI2SbA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.5.tgz", + "integrity": "sha512-RNFe8OtbZK6Ila9kIlHp0+S80/0Bu/3p41HUpaRIoHLm6X3WekTd83vob3rE54Duufu1edCiBDxspBzi2rxHHw==", "dev": true, "requires": { "debug": "^4.1.1", @@ -22762,50 +21185,12 @@ } }, "@nomicfoundation/hardhat-network-helpers": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.8.tgz", - "integrity": "sha512-MNqQbzUJZnCMIYvlniC3U+kcavz/PhhQSsY90tbEtUyMj/IQqsLwIRZa4ctjABh3Bz0KCh9OXUZ7Yk/d9hr45Q==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.10.tgz", + "integrity": "sha512-R35/BMBlx7tWN5V6d/8/19QCwEmIdbnA4ZrsuXgvs8i2qFx5i7h6mH5pBS4Pwi4WigLH+upl6faYusrNPuzMrQ==", "dev": true, "requires": { "ethereumjs-util": "^7.1.4" - }, - "dependencies": { - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dev": true, - "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - } - } } }, "@nomicfoundation/hardhat-toolbox": { @@ -22924,14 +21309,12 @@ "@openzeppelin/contracts": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.9.0.tgz", - "integrity": "sha512-DUP74AFGKlic2sQb/CmgrN2aUPMFGxRrmCTUxLHsiU2RzwWqVuMPZBxiAyvlff6Pea77uylAX6B5x9W6evEbhA==", - "dev": true + "integrity": "sha512-DUP74AFGKlic2sQb/CmgrN2aUPMFGxRrmCTUxLHsiU2RzwWqVuMPZBxiAyvlff6Pea77uylAX6B5x9W6evEbhA==" }, "@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==", - "dev": true + "integrity": "sha512-jjaHAVRMrE4UuZNfDwjlLGDxTHWIOwTJS2ldnc278a0gevfXfPr8hxKEVBGFBE96kl2G3VHDZhUimw/+G3TG2A==" }, "@resolver-engine/core": { "version": "0.3.3", @@ -23023,46 +21406,47 @@ } }, "@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", + "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", "dev": true }, "@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.3.tgz", + "integrity": "sha512-LJaN3HwRbfQK0X1xFSi0Q9amqOgzQnnDngIt+ZlsBC3Bm7/nE7K0kwshZHyaru79yIVRv/e1mQAjZyuZG6jOFQ==", "dev": true, "requires": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" + "@noble/curves": "~1.3.0", + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.4" }, "dependencies": { + "@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", + "dev": true, + "requires": { + "@noble/hashes": "1.3.3" + } + }, "@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==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", "dev": true } } }, "@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.2.tgz", + "integrity": "sha512-HYf9TUXG80beW+hGAt3TRM8wU6pQoYur9iNypTROm42dorCGmLnFe3eWjz3gOq6G62H2WRh0FCzAR1PI+29zIA==", "dev": true, "requires": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" - }, - "dependencies": { - "@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 - } + "@noble/hashes": "~1.3.2", + "@scure/base": "~1.1.4" } }, "@sentry/core": { @@ -23241,16 +21625,6 @@ "requires": { "lodash": "^4.17.15", "ts-essentials": "^7.0.1" - }, - "dependencies": { - "ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "peer": true, - "requires": {} - } } }, "@typechain/hardhat": { @@ -23261,61 +21635,28 @@ "peer": true, "requires": { "fs-extra": "^9.1.0" - }, - "dependencies": { - "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, - "peer": true, - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "peer": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "peer": true - } } }, "@types/bn.js": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz", - "integrity": "sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", + "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", "dev": true, "requires": { "@types/node": "*" } }, "@types/chai": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.5.tgz", - "integrity": "sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng==", + "version": "4.3.11", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.11.tgz", + "integrity": "sha512-qQR1dr2rGIHYlJulmr8Ioq3De0Le9E4MJ5AiaeAETJJpndT1uUNHsGFK3L/UIu+rbkQSdj8J/w2bCsBZc/Y5fQ==", "dev": true, "peer": true }, "@types/chai-as-promised": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.5.tgz", - "integrity": "sha512-jStwss93SITGBwt/niYrkf2C+/1KTeZCZl1LaeezTlqppAKeoQC7jxyqYuP72sxBGKCIbw7oHgbYssIRzT5FCQ==", + "version": "7.1.8", + "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz", + "integrity": "sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw==", "dev": true, "peer": true, "requires": { @@ -23376,32 +21717,35 @@ } }, "@types/mocha": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz", - "integrity": "sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q==", + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", + "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", "dev": true, "peer": true }, "@types/node": { - "version": "20.5.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.3.tgz", - "integrity": "sha512-ITI7rbWczR8a/S6qjAW7DMqxqFMjjTo61qZVWJ1ubPvbIQsL5D/TvwjYEalM8Kthpe3hTzOGrF2TGbAu2uyqeA==", - "dev": true + "version": "20.11.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz", + "integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/node-fetch": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", - "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", "dev": true, "requires": { "@types/node": "*", - "form-data": "^3.0.0" + "form-data": "^4.0.0" } }, "@types/pbkdf2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz", - "integrity": "sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==", "dev": true, "requires": { "@types/node": "*" @@ -23414,9 +21758,9 @@ "dev": true }, "@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", + "version": "6.9.11", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.11.tgz", + "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==", "dev": true, "peer": true }, @@ -23428,6 +21772,14 @@ "requires": { "@types/node": "*", "safe-buffer": "~5.1.1" + }, + "dependencies": { + "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==", + "dev": true + } } }, "@types/resolve": { @@ -23440,9 +21792,9 @@ } }, "@types/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.6.tgz", + "integrity": "sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==", "dev": true, "requires": { "@types/node": "*" @@ -23462,9 +21814,9 @@ "peer": true }, "abstract-level": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/abstract-level/-/abstract-level-1.0.3.tgz", - "integrity": "sha512-t6jv+xHy+VYwc4xqZMn2Pa9DjcdzvzZmQGRjTFc8spIbRGHgBrEKbPq+rYXc7CCo0lxgYvSgKVg9qZAhpVQSjA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abstract-level/-/abstract-level-1.0.4.tgz", + "integrity": "sha512-eUP/6pbXBkMbXFdx4IH2fVgvB7M0JvR7/lIL33zcs0IBcwjdzSSl31TOJsaCzmKSSDF9h8QYSOJux4Nd4YJqFg==", "dev": true, "requires": { "buffer": "^6.0.3", @@ -23477,16 +21829,16 @@ } }, "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "peer": true }, "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", "dev": true, "peer": true }, @@ -23548,6 +21900,15 @@ "optional": true, "peer": true }, + "ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "dev": true, + "requires": { + "string-width": "^4.1.0" + } + }, "ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -23615,17 +21976,6 @@ "dev": true, "peer": true }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } - }, "array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", @@ -23640,35 +21990,6 @@ "dev": true, "peer": true }, - "array.prototype.reduce": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", - "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-array-method-boxes-properly": "^1.0.0", - "is-string": "^1.0.7" - } - }, - "arraybuffer.prototype.slice": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", - "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", - "dev": true, - "peer": true, - "requires": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" - } - }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -23723,13 +22044,6 @@ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "peer": true - }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -23742,6 +22056,18 @@ "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", "dev": true }, + "axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dev": true, + "peer": true, + "requires": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -23793,9 +22119,9 @@ "dev": true }, "bignumber.js": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", - "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", "dev": true }, "binary-extensions": { @@ -23822,6 +22148,79 @@ "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", "dev": true }, + "boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", + "dev": true, + "requires": { + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "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, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "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, + "requires": { + "color-name": "~1.1.4" + } + }, + "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 + }, + "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 + }, + "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, + "requires": { + "has-flag": "^4.0.0" + } + }, + "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 + } + } + }, "brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -23926,15 +22325,6 @@ "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", "dev": true }, - "busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dev": true, - "requires": { - "streamsearch": "^1.1.0" - } - }, "bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -23942,13 +22332,15 @@ "dev": true }, "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.6.tgz", + "integrity": "sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==", "dev": true, "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.3", + "set-function-length": "^1.2.0" } }, "camelcase": { @@ -23986,18 +22378,18 @@ } }, "chai": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", - "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", "dev": true, "requires": { "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^4.1.2", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", "pathval": "^1.1.1", - "type-detect": "^4.0.5" + "type-detect": "^4.0.8" } }, "chai-as-promised": { @@ -24029,15 +22421,18 @@ "peer": true }, "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "dev": true, + "requires": { + "get-func-name": "^2.0.2" + } }, "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, "requires": { "anymatch": "~3.1.2", @@ -24067,9 +22462,9 @@ } }, "classic-level": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.3.0.tgz", - "integrity": "sha512-iwFAJQYtqRTRM0F6L8h4JCt00ZSGdOyqh7yVrhhjrOpFhmBjNlRUey64MCiyo6UmQHMJ+No3c81nujPv+n9yrg==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/classic-level/-/classic-level-1.4.1.tgz", + "integrity": "sha512-qGx/KJl3bvtOHrGau2WklEZuXhS3zme+jf+fsu6Ej7W7IP/C49v7KNlWIsT1jZu0YnfzSIYDGcEWpCa1wKGWXQ==", "dev": true, "requires": { "abstract-level": "^1.0.2", @@ -24085,6 +22480,12 @@ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true }, + "cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true + }, "cli-table3": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", @@ -24271,6 +22672,13 @@ "util-deprecate": "~1.0.1" } }, + "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==", + "dev": true, + "peer": true + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -24336,23 +22744,24 @@ "peer": true }, "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "dependencies": { - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } } } }, @@ -24364,9 +22773,9 @@ "peer": true }, "crypto-js": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.3.0.tgz", - "integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", + "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==", "dev": true }, "dashdash": { @@ -24423,15 +22832,16 @@ "dev": true, "peer": true }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "define-data-property": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.2.tgz", + "integrity": "sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==", "dev": true, - "peer": true, "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.2", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.1" } }, "delayed-stream": { @@ -24493,21 +22903,12 @@ "peer": true, "requires": { "path-type": "^4.0.0" - }, - "dependencies": { - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "peer": true - } } }, "dotenv": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "version": "16.4.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz", + "integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==", "dev": true }, "ecc-jsbn": { @@ -24574,104 +22975,16 @@ "is-arrayish": "^0.2.1" } }, - "es-abstract": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", - "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", - "dev": true, - "peer": true, - "requires": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.1", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.1", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "safe-array-concat": "^1.0.0", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.10" - }, - "dependencies": { - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - } - } - }, - "es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", - "dev": true, - "peer": true - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "peer": true, - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "peer": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true }, "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true }, "escape-string-regexp": { @@ -24692,19 +23005,6 @@ "esutils": "^2.0.2", "optionator": "^0.8.1", "source-map": "~0.2.0" - }, - "dependencies": { - "source-map": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", - "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "amdefine": ">=0.0.4" - } - } } }, "esprima": { @@ -24747,500 +23047,107 @@ } }, "eth-gas-reporter": { - "version": "0.2.25", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.25.tgz", - "integrity": "sha512-1fRgyE4xUB8SoqLgN3eDfpDfwEfRxh2Sz1b7wzFbyQA+9TekMmvSjjoRu9SKcSVyK+vLkLIsVbJDsTWjw195OQ==", + "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, "peer": true, "requires": { - "@ethersproject/abi": "^5.0.0-beta.146", "@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": "^4.0.40", + "ethers": "^5.7.2", "fs-readdir-recursive": "^1.1.0", "lodash": "^4.17.14", "markdown-table": "^1.1.3", - "mocha": "^7.1.1", + "mocha": "^10.2.0", "req-cwd": "^2.0.0", - "request": "^2.88.0", - "request-promise-native": "^1.0.5", "sha1": "^1.1.1", "sync-request": "^6.0.0" }, "dependencies": { - "aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", - "dev": true, - "peer": true - }, - "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true, - "peer": true - }, - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "peer": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "peer": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true, - "peer": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "peer": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "peer": true - }, - "chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", - "dev": true, - "peer": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.1.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" - } - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "peer": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "peer": true, - "requires": { - "ms": "^2.1.1" - } - }, - "decamelize": { + "@noble/hashes": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "peer": true - }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "peer": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true, - "peer": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "peer": true - }, - "ethers": { - "version": "4.0.49", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.49.tgz", - "integrity": "sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg==", - "dev": true, - "peer": true, - "requires": { - "aes-js": "3.0.0", - "bn.js": "^4.11.9", - "elliptic": "6.5.4", - "hash.js": "1.1.3", - "js-sha3": "0.5.7", - "scrypt-js": "2.0.4", - "setimmediate": "1.0.4", - "uuid": "2.0.1", - "xmlhttprequest": "1.8.0" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "peer": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", - "dev": true, - "peer": true, - "requires": { - "is-buffer": "~2.0.3" - } - }, - "fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "dev": true, - "optional": true, - "peer": true - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "peer": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "hash.js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", - "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", - "dev": true, - "peer": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.0" - } - }, - "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, - "peer": true - }, - "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, - "peer": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "peer": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "peer": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", - "dev": true, - "peer": true, - "requires": { - "chalk": "^2.4.2" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "peer": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "peer": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "mocha": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.2.0.tgz", - "integrity": "sha512-O9CIypScywTVpNaRrCAgoUnJgozpIofjKUYmJhiCIJMiuYnLI6otcb1/kpW9/n/tJODHGZ7i8aLQoDVsMtOKQQ==", - "dev": true, - "peer": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "chokidar": "3.3.0", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "3.0.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.5", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "peer": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "peer": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "peer": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "peer": true - }, - "readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", - "dev": true, - "peer": true, - "requires": { - "picomatch": "^2.0.4" - } - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "peer": true - }, - "scrypt-js": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz", - "integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==", - "dev": true, - "peer": true - }, - "setimmediate": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", - "integrity": "sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog==", - "dev": true, - "peer": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "peer": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "peer": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "peer": true - }, - "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "peer": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "uuid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", - "integrity": "sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg==", - "dev": true, - "peer": true - }, - "which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", + "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", "dev": true, "peer": true }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "@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, "peer": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" } }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "peer": true - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "@scure/bip39": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", + "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", "dev": true, "peer": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" } }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "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, "peer": true, "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" } }, - "yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", + "ethers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", "dev": true, "peer": true, "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" } } } @@ -25255,23 +23162,26 @@ } }, "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==", + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", + "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", "dev": true, "requires": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - }, - "dependencies": { - "@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 - } + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" } }, "ethereum-waffle": { @@ -25336,29 +23246,6 @@ "bn.js": "^4.11.8", "ethereumjs-util": "^6.0.0" }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "ethereumjs-util": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", - "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", - "dev": true, - "requires": { - "@types/bn.js": "^4.11.3", - "bn.js": "^4.11.0", - "create-hash": "^1.1.2", - "elliptic": "^6.5.2", - "ethereum-cryptography": "^0.1.3", - "ethjs-util": "0.1.6", - "rlp": "^2.2.3" - }, "dependencies": { "@types/bn.js": { "version": "4.11.6", @@ -25375,40 +23262,45 @@ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true }, - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "ethereumjs-util": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz", + "integrity": "sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw==", "dev": true, "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" } } } }, + "ethereumjs-util": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", + "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", + "dev": true, + "requires": { + "@types/bn.js": "^5.1.0", + "bn.js": "^5.1.2", + "create-hash": "^1.1.2", + "ethereum-cryptography": "^0.1.3", + "rlp": "^2.2.4" + } + }, "ethers": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.7.1.tgz", - "integrity": "sha512-qX5kxIFMfg1i+epfgb0xF4WM7IqapIIu50pOJ17aebkxxa4BacW5jFrQRmCJpDEg2ZK2oNtR5QjrQ1WDBF29dA==", + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.11.0.tgz", + "integrity": "sha512-kPHNTnhVWiWU6AVo6CAeTjXEK24SpCXyZvwG9ROFjT0Vlux0EOhWKBAeC+45iDj80QNJTYaT1SDEmeunT0vDNw==", "dev": true, "requires": { - "@adraffy/ens-normalize": "1.9.2", - "@noble/hashes": "1.1.2", - "@noble/secp256k1": "1.7.1", + "@adraffy/ens-normalize": "1.10.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", "@types/node": "18.15.13", "aes-js": "4.0.0-beta.5", "tslib": "2.4.0", @@ -25423,6 +23315,44 @@ } } }, + "ethersv5": { + "version": "npm:ethers@5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", + "dev": true, + "requires": { + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" + } + }, "ethjs-unit": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", @@ -25480,9 +23410,9 @@ "dev": true }, "fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "peer": true, "requires": { @@ -25507,9 +23437,9 @@ "peer": true }, "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, "peer": true, "requires": { @@ -25560,21 +23490,11 @@ "dev": true }, "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "dev": true }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "peer": true, - "requires": { - "is-callable": "^1.1.3" - } - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -25582,9 +23502,9 @@ "dev": true }, "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dev": true, "requires": { "asynckit": "^0.4.0", @@ -25599,14 +23519,15 @@ "dev": true }, "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "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, "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" } }, "fs-readdir-recursive": { @@ -25630,37 +23551,17 @@ "optional": true }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, "functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "dev": true }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "peer": true - }, "ganache-core": { "version": "2.13.2", "resolved": "https://registry.npmjs.org/ganache-core/-/ganache-core-2.13.2.tgz", @@ -32719,21 +30620,22 @@ "dev": true }, "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true }, "get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" } }, "get-port": { @@ -32743,17 +30645,6 @@ "dev": true, "peer": true }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -32817,16 +30708,6 @@ "which": "^1.3.1" } }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.1.3" - } - }, "globby": { "version": "10.0.2", "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", @@ -32894,7 +30775,6 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, - "peer": true, "requires": { "get-intrinsic": "^1.1.3" } @@ -32905,13 +30785,6 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true, - "peer": true - }, "handlebars": { "version": "4.7.8", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", @@ -32924,6 +30797,15 @@ "source-map": "^0.6.1", "uglify-js": "^3.1.4", "wordwrap": "^1.0.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "peer": true + } } }, "har-schema": { @@ -32943,23 +30825,23 @@ } }, "hardhat": { - "version": "2.17.1", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.17.1.tgz", - "integrity": "sha512-1PxRkfjhEzXs/wDxI5YgzYBxNmvzifBTjYzuopwel+vXpAhCudplusJthN5eig0FTs4qbi828DBIITEDh8x9LA==", + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.19.5.tgz", + "integrity": "sha512-vx8R7zWCYVgM56vA6o0Wqx2bIIptkN4TMs9QwDqZVNGRhMzBfzqUeEYbp+69gxWp1neg2V2nYQUaaUv7aom1kw==", "dev": true, "requires": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/ethereumjs-block": "5.0.1", - "@nomicfoundation/ethereumjs-blockchain": "7.0.1", - "@nomicfoundation/ethereumjs-common": "4.0.1", - "@nomicfoundation/ethereumjs-evm": "2.0.1", - "@nomicfoundation/ethereumjs-rlp": "5.0.1", - "@nomicfoundation/ethereumjs-statemanager": "2.0.1", - "@nomicfoundation/ethereumjs-trie": "6.0.1", - "@nomicfoundation/ethereumjs-tx": "5.0.1", - "@nomicfoundation/ethereumjs-util": "9.0.1", - "@nomicfoundation/ethereumjs-vm": "7.0.1", + "@nomicfoundation/ethereumjs-block": "5.0.2", + "@nomicfoundation/ethereumjs-blockchain": "7.0.2", + "@nomicfoundation/ethereumjs-common": "4.0.2", + "@nomicfoundation/ethereumjs-evm": "2.0.2", + "@nomicfoundation/ethereumjs-rlp": "5.0.2", + "@nomicfoundation/ethereumjs-statemanager": "2.0.2", + "@nomicfoundation/ethereumjs-trie": "6.0.2", + "@nomicfoundation/ethereumjs-tx": "5.0.2", + "@nomicfoundation/ethereumjs-util": "9.0.2", + "@nomicfoundation/ethereumjs-vm": "7.0.2", "@nomicfoundation/solidity-analyzer": "^0.1.0", "@sentry/node": "^5.18.1", "@types/bn.js": "^5.1.0", @@ -32967,6 +30849,7 @@ "adm-zip": "^0.4.16", "aggregate-error": "^3.0.0", "ansi-escapes": "^4.3.0", + "boxen": "^5.1.2", "chalk": "^2.4.2", "chokidar": "^3.4.0", "ci-info": "^2.0.0", @@ -32998,6 +30881,33 @@ "ws": "^7.4.6" }, "dependencies": { + "@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 + }, + "@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, + "requires": { + "@noble/hashes": "~1.2.0", + "@noble/secp256k1": "~1.7.0", + "@scure/base": "~1.1.0" + } + }, + "@scure/bip39": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", + "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", + "dev": true, + "requires": { + "@noble/hashes": "~1.2.0", + "@scure/base": "~1.1.0" + } + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -33008,6 +30918,29 @@ "concat-map": "0.0.1" } }, + "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, + "requires": { + "@noble/hashes": "1.2.0", + "@noble/secp256k1": "1.7.1", + "@scure/bip32": "1.1.5", + "@scure/bip39": "1.1.1" + } + }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, "glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", @@ -33023,9 +30956,9 @@ } }, "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "requires": { "graceful-fs": "^4.1.6" @@ -33070,6 +31003,15 @@ "rimraf": "^2.2.8" } }, + "jsonfile": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", + "integrity": "sha512-PKllAqbgLgxHaj8TElYymKCAgrASebJrWpTnEkOaTowt23VKXXN0sUeriJ+eh7y6ufb/CC5ap11pz71/cM0hUw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", @@ -33078,6 +31020,12 @@ } } }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + }, "ws": { "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", @@ -33098,9 +31046,9 @@ } }, "hardhat-gas-reporter": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.9.tgz", - "integrity": "sha512-INN26G3EW43adGKBNzYWOlI3+rlLnasXTwW79YNnUhXPDa+yHESgt639dJEs37gCjhkbNKcRRJnomXEuMFBXJg==", + "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==", "dev": true, "peer": true, "requires": { @@ -33109,22 +31057,6 @@ "sha1": "^1.1.1" } }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "peer": true - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -33132,13 +31064,12 @@ "dev": true }, "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", "dev": true, - "peer": true, "requires": { - "get-intrinsic": "^1.1.1" + "get-intrinsic": "^1.2.2" } }, "has-proto": { @@ -33153,16 +31084,6 @@ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "peer": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, "hash-base": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", @@ -33172,14 +31093,6 @@ "inherits": "^2.0.4", "readable-stream": "^3.6.0", "safe-buffer": "^5.2.0" - }, - "dependencies": { - "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==", - "dev": true - } } }, "hash.js": { @@ -33192,6 +31105,15 @@ "minimalistic-assert": "^1.0.1" } }, + "hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -33313,16 +31235,16 @@ "dev": true }, "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "dev": true, "peer": true }, "immutable": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.3.tgz", - "integrity": "sha512-808ZFYMsIRAjLAu5xkKo0TsbY9LBy9H5MazTKIEHerNkg0ymgilGfBPMR/3G7d/ihGmuK2Hw8S1izY2d3kd3wA==", + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", + "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", "dev": true }, "indent-string": { @@ -33354,18 +31276,6 @@ "dev": true, "peer": true }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "peer": true, - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, "interpret": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", @@ -33388,34 +31298,12 @@ "fp-ts": "^1.0.0" } }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "peer": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, "is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", @@ -33425,30 +31313,12 @@ "binary-extensions": "^2.0.0" } }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, "is-buffer": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", "dev": true }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "peer": true - }, "is-ci": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", @@ -33458,16 +31328,6 @@ "ci-info": "^2.0.0" } }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "peer": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-docker": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", @@ -33501,86 +31361,18 @@ "integrity": "sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==", "dev": true }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "peer": true - }, "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "peer": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-plain-obj": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "peer": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "peer": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dev": true, - "peer": true, - "requires": { - "which-typed-array": "^1.1.11" - } - }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -33605,16 +31397,6 @@ "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", "dev": true }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2" - } - }, "is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -33682,6 +31464,26 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "json-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz", + "integrity": "sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==", + "dev": true, + "requires": { + "call-bind": "^1.0.5", + "isarray": "^2.0.5", + "jsonify": "^0.0.1", + "object-keys": "^1.1.1" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + } + } + }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", @@ -33689,14 +31491,21 @@ "dev": true }, "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.6" + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" } }, + "jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "dev": true + }, "jsonschema": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz", @@ -33717,9 +31526,9 @@ } }, "keccak": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.3.tgz", - "integrity": "sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", + "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", "dev": true, "requires": { "node-addon-api": "^2.0.0", @@ -33762,11 +31571,12 @@ } }, "level": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/level/-/level-8.0.0.tgz", - "integrity": "sha512-ypf0jjAk2BWI33yzEaaotpq7fkOPALKAgDBxggO6Q9HGX2MRXn0wbP1Jn/tJv1gtL867+YOjOB49WaUF3UoJNQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/level/-/level-8.0.1.tgz", + "integrity": "sha512-oPBGkheysuw7DmzFQYyFe8NAia5jFLAgEnkgWnK3OXAuJr8qFT+xBQIwokAZPME2bhPFzS8hlYcL16m8UZrtwQ==", "dev": true, "requires": { + "abstract-level": "^1.0.4", "browser-level": "^1.0.1", "classic-level": "^1.2.0" } @@ -33809,6 +31619,14 @@ "pify": "^2.0.0", "pinkie-promise": "^2.0.0", "strip-bom": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } } }, "locate-path": { @@ -33922,12 +31740,12 @@ } }, "loupe": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", - "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dev": true, "requires": { - "get-func-name": "^2.0.0" + "get-func-name": "^2.0.1" } }, "lru_map": { @@ -34001,14 +31819,14 @@ "peer": true }, "merkletreejs": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/merkletreejs/-/merkletreejs-0.3.10.tgz", - "integrity": "sha512-lin42tKfRdkW+6iE5pjtQ9BnH+1Hk3sJ5Fn9hUUSjcXRcJbSISHgPCfYvMNEXiNqZPhz/TyRPEV30qgnujsQ7A==", + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/merkletreejs/-/merkletreejs-0.3.11.tgz", + "integrity": "sha512-LJKTl4iVNTndhL+3Uz/tfkjD0klIWsHlUzgtuNnNrsf7bAlXR30m+xYB7lHr5Z/l6e/yAIsr26Dabx6Buo4VGQ==", "dev": true, "requires": { "bignumber.js": "^9.0.1", "buffer-reverse": "^1.0.1", - "crypto-js": "^3.1.9-1", + "crypto-js": "^4.2.0", "treeify": "^1.1.0", "web3-utils": "^1.3.4" } @@ -34096,9 +31914,9 @@ } }, "mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", + "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", "dev": true, "requires": { "ansi-colors": "4.1.1", @@ -34108,13 +31926,12 @@ "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", - "glob": "7.2.0", + "glob": "8.1.0", "he": "1.2.0", "js-yaml": "4.1.0", "log-symbols": "4.1.0", "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.3.3", "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", @@ -34130,6 +31947,22 @@ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -34147,38 +31980,16 @@ } }, "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "dependencies": { - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } + "minimatch": "^5.0.1", + "once": "^1.3.0" } }, "has-flag": { @@ -34258,12 +32069,6 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true - }, "napi-macros": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/napi-macros/-/napi-macros-2.2.2.tgz", @@ -34299,39 +32104,19 @@ "lodash": "^4.17.21" } }, - "node-environment-flags": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", - "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", - "dev": true, - "peer": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - }, - "dependencies": { - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "peer": true - } - } - }, "node-fetch": { - "version": "2.6.13", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.13.tgz", - "integrity": "sha512-StxNAxh15zr77QvvkmveSQ8uCQ4+v5FkvNTj0OESmiHu+VRi/gXArXtkWMElOsOUNLtUEvI4yS+rdtOHZTwlQA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, "requires": { "whatwg-url": "^5.0.0" } }, "node-gyp-build": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", - "integrity": "sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz", + "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==", "dev": true }, "nofilter": { @@ -34415,44 +32200,16 @@ "peer": true }, "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", "dev": true }, "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "peer": true - }, - "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - } - }, - "object.getownpropertydescriptors": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", - "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", - "dev": true, - "peer": true, - "requires": { - "array.prototype.reduce": "^1.0.5", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.21.2", - "safe-array-concat": "^1.0.0" - } + "dev": true }, "obliterator": { "version": "2.0.4", @@ -34566,25 +32323,26 @@ } }, "patch-package": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", - "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", + "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", "dev": true, "requires": { "@yarnpkg/lockfile": "^1.1.0", "chalk": "^4.1.2", - "cross-spawn": "^6.0.5", + "ci-info": "^3.7.0", + "cross-spawn": "^7.0.3", "find-yarn-workspace-root": "^2.0.0", "fs-extra": "^9.0.0", - "is-ci": "^2.0.0", + "json-stable-stringify": "^1.0.2", "klaw-sync": "^6.0.0", "minimist": "^1.2.6", "open": "^7.4.2", "rimraf": "^2.6.3", - "semver": "^5.6.0", + "semver": "^7.5.3", "slash": "^2.0.0", "tmp": "^0.0.33", - "yaml": "^1.10.2" + "yaml": "^2.2.2" }, "dependencies": { "ansi-styles": { @@ -34606,6 +32364,12 @@ "supports-color": "^7.1.0" } }, + "ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true + }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -34621,39 +32385,29 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "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, - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, "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 }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "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==", "dev": true, "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" + "yallist": "^4.0.0" } }, "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, "supports-color": { "version": "7.2.0", @@ -34664,10 +32418,10 @@ "has-flag": "^4.0.0" } }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } @@ -34691,9 +32445,9 @@ "dev": true }, "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { @@ -34713,15 +32467,15 @@ }, "dependencies": { "lru-cache": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", - "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", "dev": true }, "minipass": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", - "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true } } @@ -34733,15 +32487,11 @@ "dev": true }, "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } + "peer": true }, "pathval": { "version": "1.1.1", @@ -34775,10 +32525,11 @@ "dev": true }, "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "peer": true }, "pinkie": { "version": "2.0.4", @@ -34831,6 +32582,13 @@ "asap": "~2.0.6" } }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true, + "peer": true + }, "psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -34885,6 +32643,25 @@ "load-json-file": "^1.0.0", "normalize-package-data": "^2.3.2", "path-type": "^1.0.0" + }, + "dependencies": { + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } } }, "read-pkg-up": { @@ -34988,18 +32765,6 @@ "dev": true, "peer": true }, - "regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - } - }, "req-cwd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", @@ -35067,28 +32832,6 @@ } } }, - "request-promise-core": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", - "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", - "dev": true, - "peer": true, - "requires": { - "lodash": "^4.17.19" - } - }, - "request-promise-native": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", - "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", - "dev": true, - "peer": true, - "requires": { - "request-promise-core": "1.1.4", - "stealthy-require": "^1.1.1", - "tough-cookie": "^2.3.3" - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -35218,46 +32961,12 @@ "integrity": "sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA==", "dev": true }, - "safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "peer": true - } - } - }, "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==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -35476,6 +33185,20 @@ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, + "set-function-length": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", + "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", + "dev": true, + "requires": { + "define-data-property": "^1.1.2", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.1" + } + }, "setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -35510,18 +33233,18 @@ } }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" } }, "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, "shelljs": { @@ -35575,14 +33298,15 @@ } }, "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz", + "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==", "dev": true, "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bind": "^1.0.6", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" } }, "slash": { @@ -35679,14 +33403,14 @@ } }, "solidity-coverage": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.4.tgz", - "integrity": "sha512-xeHOfBOjdMF6hWTbt42iH4x+7j1Atmrf5OldDPMxI+i/COdExUxszOswD9qqvcBTaLGiOrrpnh9UZjSpt4rBsg==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.6.tgz", + "integrity": "sha512-vV03mA/0nNMskOdVwNarUcqk0N/aYdelxAbf6RZ5l84FcYHbqDTr2JXyeYMp4bT48qHtAQjnKrygW1FrECyWNw==", "dev": true, "peer": true, "requires": { "@ethersproject/abi": "^5.0.9", - "@solidity-parser/parser": "^0.16.0", + "@solidity-parser/parser": "^0.18.0", "chalk": "^2.4.2", "death": "^1.1.0", "detect-port": "^1.3.0", @@ -35697,7 +33421,7 @@ "globby": "^10.0.1", "jsonschema": "^1.2.4", "lodash": "^4.17.15", - "mocha": "7.1.2", + "mocha": "^10.2.0", "node-emoji": "^1.10.0", "pify": "^4.0.1", "recursive-readdir": "^2.2.2", @@ -35708,144 +33432,12 @@ }, "dependencies": { "@solidity-parser/parser": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.16.1.tgz", - "integrity": "sha512-PdhRFNhbTtu3x8Axm0uYpqOy/lODYQK+MlYSgqIsq2L8SFYEHJPHNUiOTAJbDGzNjjr1/n9AcIayxafR/fWmYw==", - "dev": true, - "peer": true, - "requires": { - "antlr4ts": "^0.5.0-alpha.4" - } - }, - "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true, - "peer": true - }, - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "peer": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "peer": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "peer": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "peer": true - }, - "chokidar": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", - "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", - "dev": true, - "peer": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.1.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.2.0" - } - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "peer": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "peer": true, - "requires": { - "ms": "^2.1.1" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "peer": true - }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "peer": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true, - "peer": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.18.0.tgz", + "integrity": "sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA==", "dev": true, "peer": true }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "peer": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", - "dev": true, - "peer": true, - "requires": { - "is-buffer": "~2.0.3" - } - }, "fs-extra": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", @@ -35858,66 +33450,14 @@ "universalify": "^0.1.0" } }, - "fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "dev": true, - "optional": true, - "peer": true - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "peer": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "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, - "peer": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "peer": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "peer": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, "peer": true, "requires": { - "chalk": "^2.4.2" + "graceful-fs": "^4.1.6" } }, "lru-cache": { @@ -35930,189 +33470,20 @@ "yallist": "^4.0.0" } }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "peer": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "peer": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "mocha": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.1.2.tgz", - "integrity": "sha512-o96kdRKMKI3E8U0bjnfqW4QMk12MwZ4mhdBTf+B5a1q9+aq2HRnj+3ZdJu0B/ZhJeK78MgYuv6L8d/rA5AeBJA==", - "dev": true, - "peer": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "chokidar": "3.3.0", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "3.0.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.5", - "ms": "2.1.1", - "node-environment-flags": "1.0.6", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true, - "peer": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "peer": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "peer": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "peer": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true, - "peer": true - }, - "readdirp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", - "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", - "dev": true, - "peer": true, - "requires": { - "picomatch": "^2.0.4" - } - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "peer": true - }, "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "peer": true, "requires": { "lru-cache": "^6.0.0" } }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "peer": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "peer": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, - "peer": true - }, - "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "peer": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "peer": true - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "peer": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - } - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, "peer": true }, @@ -36122,56 +33493,19 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true, "peer": true - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "peer": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "peer": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", - "dev": true, - "peer": true, - "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" - } } } }, "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", + "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", + "dev": true, + "optional": true, + "peer": true, + "requires": { + "amdefine": ">=0.0.4" + } }, "source-map-support": { "version": "0.5.21", @@ -36181,6 +33515,14 @@ "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, "spdx-correct": { @@ -36194,9 +33536,9 @@ } }, "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.4.0.tgz", + "integrity": "sha512-hcjppoJ68fhxA/cjbN4T8N6uCUejN8yFw69ttpqtBeCbF3u13n7mb31NB9jKwGTTWWnt9IbRA/mf1FprYS8wfw==", "dev": true }, "spdx-expression-parse": { @@ -36210,9 +33552,9 @@ } }, "spdx-license-ids": { - "version": "3.0.13", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz", - "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==", + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==", "dev": true }, "sprintf-js": { @@ -36223,9 +33565,9 @@ "peer": true }, "sshpk": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", - "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dev": true, "requires": { "asn1": "~0.2.3", @@ -36270,19 +33612,6 @@ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true }, - "stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha512-ZnWpYnYugiOVEY5GkcuJK1io5V8QmNYChG62gSit9pQVGErXtrKuPC55ITaVSukmMta5qpMU7vqLt2Lnni4f/g==", - "dev": true, - "peer": true - }, - "streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "dev": true - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -36290,14 +33619,6 @@ "dev": true, "requires": { "safe-buffer": "~5.2.0" - }, - "dependencies": { - "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==", - "dev": true - } } }, "string-format": { @@ -36318,42 +33639,6 @@ "strip-ansi": "^6.0.1" } }, - "string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -36592,9 +33877,9 @@ }, "dependencies": { "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true } } @@ -36682,10 +33967,12 @@ } }, "ts-essentials": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-1.0.4.tgz", - "integrity": "sha512-q3N1xS4vZpRouhYHDPwO0bDW3EZ6SK9CrrDHxi/D6BPReSjpVgWIOpLS2o0gSBZm+7q/wyKp6RVM1AeeW7uyfQ==", - "dev": true + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", + "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "dev": true, + "peer": true, + "requires": {} }, "ts-generator": { "version": "0.1.1", @@ -36736,13 +34023,19 @@ "requires": { "brace-expansion": "^1.1.7" } + }, + "ts-essentials": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-1.0.4.tgz", + "integrity": "sha512-q3N1xS4vZpRouhYHDPwO0bDW3EZ6SK9CrrDHxi/D6BPReSjpVgWIOpLS2o0gSBZm+7q/wyKp6RVM1AeeW7uyfQ==", + "dev": true } } }, "ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "peer": true, "requires": { @@ -36826,9 +34119,9 @@ "dev": true }, "typechain": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.1.tgz", - "integrity": "sha512-fA7clol2IP/56yq6vkMTR+4URF1nGjV82Wx6Rf09EsqD4tkzMAvEaqYxVFCavJm/1xaRga/oD55K+4FtuXwQOQ==", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.2.tgz", + "integrity": "sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q==", "dev": true, "peer": true, "requires": { @@ -36855,6 +34148,18 @@ "concat-map": "0.0.1" } }, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "dev": true, + "peer": true, + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, "glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -36870,6 +34175,16 @@ "path-is-absolute": "^1.0.0" } }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "peer": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -36887,67 +34202,15 @@ "dev": true, "peer": true }, - "ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, - "peer": true, - "requires": {} + "peer": true } } }, - "typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - } - }, - "typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - } - }, - "typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", - "dev": true, - "peer": true, - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - } - }, - "typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - } - }, "typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", @@ -36956,9 +34219,9 @@ "peer": true }, "typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "peer": true }, @@ -36977,32 +34240,25 @@ "optional": true, "peer": true }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, "undici": { - "version": "5.23.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.23.0.tgz", - "integrity": "sha512-1D7w+fvRsqlQ9GscLBwcAJinqcZGHUKjbOmXdlE/v8BvEGXjeWAax+341q44EuTcHXXnfyKNbKRq4Lg7OzhMmg==", + "version": "5.28.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz", + "integrity": "sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==", "dev": true, "requires": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true }, "unpipe": { @@ -37021,13 +34277,13 @@ } }, "url": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", - "integrity": "sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==", + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.3.tgz", + "integrity": "sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==", "dev": true, "requires": { "punycode": "^1.4.1", - "qs": "^6.11.0" + "qs": "^6.11.2" }, "dependencies": { "punycode": { @@ -37094,9 +34350,9 @@ } }, "web3-utils": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.1.tgz", - "integrity": "sha512-r6iUUw/uMnNcWXjhRv33Nyrhxq3VGOPBXeSzxhOXIci4SvC/LPTpROY0uTrMX7ztKyODYrHp8WhTkEf+ZnHssw==", + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.4.tgz", + "integrity": "sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A==", "dev": true, "requires": { "@ethereumjs/util": "^8.1.0", @@ -37109,43 +34365,31 @@ "utf8": "3.0.0" }, "dependencies": { - "@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "dev": true - }, - "@scure/bip32": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", - "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", + "@noble/curves": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", + "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", "dev": true, "requires": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" + "@noble/hashes": "1.3.3" } }, - "@scure/bip39": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", - "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", - "dev": true, - "requires": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - } + "@noble/hashes": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", + "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", + "dev": true }, "ethereum-cryptography": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.2.tgz", - "integrity": "sha512-Z5Ba0T0ImZ8fqXrJbpHcbpAvIswRte2wGNR/KePnu8GbbvgJ47lMxT/ZZPG6i9Jaht4azPDop4HaM00J0J59ug==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz", + "integrity": "sha512-BlwbIL7/P45W8FGW2r7LGuvoEZ+7PWsniMvQ4p5s2xCyw9tmaDlpfsN9HjAucbF+t/qpVHwZUisgfK24TCW8aA==", "dev": true, "requires": { - "@noble/curves": "1.1.0", - "@noble/hashes": "1.3.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1" + "@noble/curves": "1.3.0", + "@noble/hashes": "1.3.3", + "@scure/bip32": "1.3.3", + "@scure/bip39": "1.2.2" } } } @@ -37175,85 +34419,19 @@ "isexe": "^2.0.0" } }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "peer": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, "which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", "dev": true }, - "which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", "dev": true, - "peer": true, "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "peer": true, - "requires": { - "string-width": "^1.0.2 || 2" - }, - "dependencies": { - "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, - "peer": true - }, - "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, - "peer": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "peer": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "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, - "peer": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } + "string-width": "^4.0.0" } }, "window-size": { @@ -37352,13 +34530,6 @@ "dev": true, "requires": {} }, - "xmlhttprequest": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", - "integrity": "sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==", - "dev": true, - "peer": true - }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -37372,9 +34543,9 @@ "dev": true }, "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", + "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", "dev": true }, "yargs": { diff --git a/contracts/package.json b/contracts/package.json index 103474b00..cdd1e072d 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -1,26 +1,31 @@ { "name": "hardhat-project", "scripts": { - "postinstall": "node ./scripts/postinstall.js", + "postinstall": "patch-package && node ./scripts/postinstall.js", "deploy": "hardhat run ./scripts/deploy.js --network localhost", "deploy:ropsten": "hardhat run ./scripts/deploy.js --network ropsten", "deploy:kovan": "hardhat run ./scripts/deploy.js --network kovan", "node": "hardhat node --hostname 0.0.0.0" }, "devDependencies": { - "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#v2.3.0-rc.3", - "@nomicfoundation/hardhat-ethers": "^3.0.3", - "@nomicfoundation/hardhat-network-helpers": "^1.0.6", + "@bosonprotocol/boson-protocol-contracts": "github:bosonprotocol/boson-protocol-contracts#5166a27e45818c82f551cd90c9a92f21137a0366", + "@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", - "@openzeppelin/contracts": "^4.9.0", - "@openzeppelin/contracts-upgradeable": "^4.9.3", "chai": "^4.3.6", "dotenv": "^16.0.1", "ethereum-waffle": "^3.4.4", - "ethers": "^6.6.0", + "ethers": "^6.9.0", + "ethersv5": "npm:ethers@^5.7.2", "glob": "^9.1.0", - "hardhat": "^2.14.1", + "hardhat": "^2.19.2", "hardhat-abi-exporter": "^2.9.0", + "patch-package": "^8.0.0", "seaport": "github:ProjectOpenSea/seaport#a27eff9fa299a14c432666c8dc963aa072437dde" + }, + "dependencies": { + "@openzeppelin/contracts": "^4.9.0", + "@openzeppelin/contracts-upgradeable": "4.9.3" } } diff --git a/contracts/patches/@bosonprotocol+boson-protocol-contracts+2.3.0.patch b/contracts/patches/@bosonprotocol+boson-protocol-contracts+2.3.0.patch new file mode 100644 index 000000000..d2e09a102 --- /dev/null +++ b/contracts/patches/@bosonprotocol+boson-protocol-contracts+2.3.0.patch @@ -0,0 +1,41 @@ +diff --git a/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/config/supported-interfaces.js b/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/config/supported-interfaces.js +index 0d197df..687f662 100644 +--- a/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/config/supported-interfaces.js ++++ b/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/config/supported-interfaces.js +@@ -51,9 +51,9 @@ async function getInterfaceIds(useCache = true) { + + [ + "IBosonVoucher", +- "contracts/interfaces/IERC1155.sol:IERC1155", +- "contracts/interfaces/IERC721.sol:IERC721", +- "contracts/interfaces/IERC2981.sol:IERC2981", ++ "protocol-contracts/contracts/interfaces/IERC1155.sol:IERC1155", ++ "protocol-contracts/contracts/interfaces/IERC721.sol:IERC721", ++ "protocol-contracts/contracts/interfaces/IERC2981.sol:IERC2981", + "IAccessControl", + "IBosonSequentialCommitHandler", + "IBosonPriceDiscovery", +@@ -92,8 +92,8 @@ async function getInterfaceNames() { + const [source, name] = contractName.split(":"); + + // If starts with prefix and is not in skip list, return name +- return /.*contracts\/interfaces\/(.*)/.test(source) && +- !skip.some((s) => new RegExp(`.*contracts/interfaces/${s}`).test(source)) ++ return /.*protocol-contracts\/contracts\/interfaces\/(.*)/.test(source) && ++ !skip.some((s) => new RegExp(`.*protocol-contracts/contracts/interfaces/${s}`).test(source)) + ? interfacesWithMultipleArtifacts.includes(name) + ? contractName + : name +diff --git a/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/util/diamond-utils.js b/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/util/diamond-utils.js +index b0e6e5e..956a44e 100644 +--- a/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/util/diamond-utils.js ++++ b/node_modules/@bosonprotocol/boson-protocol-contracts/scripts/util/diamond-utils.js +@@ -64,7 +64,7 @@ async function getInterfaceId(contractName, skipBaseCheck = false, isFullPath = + const baseContractInterfaceId = BigInt( + await getInterfaceId( + interfacesWithMultipleArtifacts.includes(baseName) +- ? `contracts/interfaces/${baseName}.sol:${baseName}` ++ ? `protocol-contracts/contracts/interfaces/${baseName}.sol:${baseName}` + : baseName, + false, + isFullPath diff --git a/contracts/scripts/postinstall.js b/contracts/scripts/postinstall.js index 42453ad08..eb6808ed6 100644 --- a/contracts/scripts/postinstall.js +++ b/contracts/scripts/postinstall.js @@ -36,8 +36,22 @@ const seaport = { )}` }; +const royaltyRegistry = { + target: `${resolve( + __dirname, + "..", + "node_modules", + "@manifoldxyz/royalty-registry-solidity" + )}`, + linkPath: `${resolve( + __dirname, + "..", + "protocol-contracts/submodules/royalty-registry-solidity" + )}` +}; + async function main() { - for (const entry of [protocol, seaport]) { + for (const entry of [protocol, seaport, royaltyRegistry]) { await createLink(entry.linkPath, entry.target); } } diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml index e34d83267..f0ecec7c2 100644 --- a/e2e/docker-compose.yml +++ b/e2e/docker-compose.yml @@ -5,7 +5,7 @@ services: context: ../. dockerfile: ./e2e/meta-tx-gateway/Dockerfile user: "node:node" - image: meta-tx-gateway:202310231200 + image: meta-tx-gateway:202402121549 ports: - "8888:8888" environment: @@ -20,7 +20,7 @@ services: hardhat-node: build: ../contracts - image: hardhat-node:8319ec72c2335a49b74aeefd232ea9f0a6dfd368_10 + image: hardhat-node:5166a27e45818c82f551cd90c9a92f21137a0366_0 ports: - "8545:8545" volumes: diff --git a/e2e/run-e2e-suite.cmd b/e2e/run-e2e-suite.cmd index a82f1adab..ca26a55a0 100644 --- a/e2e/run-e2e-suite.cmd +++ b/e2e/run-e2e-suite.cmd @@ -31,7 +31,7 @@ echo. echo *** Run e2e tests... *** cd .. -call npm run e2e:test +call npm run e2e:test -- --no-cache set EXIT_STATUS=%ERRORLEVEL% cd e2e diff --git a/e2e/run-e2e-suite.sh b/e2e/run-e2e-suite.sh index 2b881c072..a8af24b8d 100755 --- a/e2e/run-e2e-suite.sh +++ b/e2e/run-e2e-suite.sh @@ -38,6 +38,6 @@ echo "Successfully deployed subgraph ✅" echo "Run e2e tests..." cd .. -npm run e2e:test +npm run e2e:test -- --no-cache exit diff --git a/e2e/tests/accounts.test.ts b/e2e/tests/accounts.test.ts index 37c6ca59c..a1d36c79e 100644 --- a/e2e/tests/accounts.test.ts +++ b/e2e/tests/accounts.test.ts @@ -566,12 +566,12 @@ describe("CoreSDK - accounts", () => { const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( seedWallet3 ); - const before = await coreSDK.getSellers(); + const before = await coreSDK.getSellers({ sellersFirst: 1000 }); const seller = await createSeller(coreSDK, fundedWallet.address); expect(seller).toBeTruthy(); let exist = before.some((s) => s.id === seller.id); expect(exist).toBe(false); - const after = await coreSDK.getSellers(); + const after = await coreSDK.getSellers({ sellersFirst: 1000 }); expect(after.length).toBeGreaterThan(before.length); exist = after.some((s) => s.id === seller.id); expect(exist).toBe(true); diff --git a/e2e/tests/core-sdk-accounts.test.ts b/e2e/tests/core-sdk-accounts.test.ts index d1576b4a3..0d3d72c23 100644 --- a/e2e/tests/core-sdk-accounts.test.ts +++ b/e2e/tests/core-sdk-accounts.test.ts @@ -1,16 +1,10 @@ import { AuthTokenType } from "../../packages/common"; -import { CoreSDK } from "../../packages/core-sdk/src"; -import { SellerFieldsFragment } from "../../packages/core-sdk/src/subgraph"; import { - createOffer, createSeller, - createSellerAndOffer, initCoreSDKWithFundedWallet, mintLensToken, - publishNftContractMetadata, seedWallet21, - updateSeller, - waitForGraphNodeIndexing + updateSeller } from "./utils"; import { Wallet } from "ethers"; import { ZERO_ADDRESS } from "../../packages/core-sdk/tests/mocks"; @@ -65,7 +59,7 @@ describe("CoreSDK Accounts", () => { ] ); expect(seller1).toBeTruthy(); - resolve(); + resolve(); } catch (e) { reject(e); } @@ -74,7 +68,10 @@ describe("CoreSDK Accounts", () => { // Create seller2 and update so that the assistant != admin != treasury, and admin is defined by an authTokenId try { const tokenType = AuthTokenType.LENS; - authTokenId2 = await mintLensToken(sellerWallet2, sellerWallet2.address); + authTokenId2 = await mintLensToken( + sellerWallet2, + sellerWallet2.address + ); let seller2 = await createSeller(coreSDK2, sellerWallet2.address); expect(seller2).toBeTruthy(); sellerId2 = seller2.id; @@ -139,7 +136,7 @@ describe("CoreSDK Accounts", () => { expect(seller).not.toBeTruthy(); const sellers = await coreSDK.getSellersByTreasury(admin2); expect(sellers.length).toEqual(0); - [ seller ] = await coreSDK.getSellersByAddress(admin2); + [seller] = await coreSDK.getSellersByAddress(admin2); expect(seller.id).toEqual(sellerId2); }); }); diff --git a/e2e/tests/core-sdk-collections.test.ts b/e2e/tests/core-sdk-collections.test.ts index b987d2be1..68e722022 100644 --- a/e2e/tests/core-sdk-collections.test.ts +++ b/e2e/tests/core-sdk-collections.test.ts @@ -101,7 +101,6 @@ describe("Offer collections", () => { expect(seller).toBeTruthy(); const tx = await coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: customCollectionId }); await tx.wait(); @@ -123,7 +122,6 @@ describe("Offer collections", () => { expect(seller.collections.length).toEqual(1); const tx = await coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: customCollectionId }); await tx.wait(); @@ -157,7 +155,6 @@ describe("Offer collections", () => { await expect( coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: exisitingCollectionId }) ).rejects.toThrow( @@ -190,7 +187,6 @@ describe("Offer collections", () => { expect(seller).toBeTruthy(); const tx = await coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: customCollectionId }); await tx.wait(); @@ -214,13 +210,12 @@ describe("Offer collections", () => { expect(seller).toBeTruthy(); const tx = await coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: customCollectionId }); await tx.wait(); const collectionIndex = 2; await expect(createOffer(coreSDK, { collectionIndex })).rejects.toThrow( - `No such collection` + `NoSuchCollection()` ); }); test("Create a collection with max length ID (31 char)", async () => { @@ -231,7 +226,6 @@ describe("Offer collections", () => { expect(seller).toBeTruthy(); const tx = await coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: maxLengthId }); await tx.wait(); @@ -252,7 +246,6 @@ describe("Offer collections", () => { await expect( coreSDK.createNewCollection({ contractUri: "", - royaltyPercentage: 0, collectionId: "x".repeat(32) }) ).rejects.toThrow(`collectionId length should not exceed 31 characters`); @@ -291,7 +284,6 @@ describe("Offer collections", () => { expect(seller).toBeTruthy(); const tx = await coreSDK.createNewCollection({ contractUri: collectionMetadata2Uri, - royaltyPercentage: 0, collectionId: collectionMetadata2.name }); await tx.wait(); diff --git a/e2e/tests/core-sdk-premint.test.ts b/e2e/tests/core-sdk-premint.test.ts index 89a19bf19..99754217a 100644 --- a/e2e/tests/core-sdk-premint.test.ts +++ b/e2e/tests/core-sdk-premint.test.ts @@ -2,9 +2,16 @@ import { BigNumber, Wallet } from "ethers"; import { parseEther } from "@ethersproject/units"; import { + createPremintedOfferAddToGroup, + createPremintedOfferWithCondition, createSeaportOrder, + createSeller, createSellerAndOffer, + createSellerAndPremintedOffer, + createSellerAndPremintedOfferWithCondition, + ensureMintedERC1155, initCoreSDKWithFundedWallet, + MOCK_ERC1155_ADDRESS, MOCK_SEAPORT_ADDRESS, seedWallet14, seedWallet15, @@ -12,7 +19,12 @@ import { } from "./utils"; import { ExchangeState } from "../../packages/core-sdk/src/subgraph"; -import { Range } from "../../packages/common/src"; +import { + EvaluationMethod, + GatingType, + Range, + TokenType +} from "../../packages/common/src"; jest.setTimeout(60_000); @@ -37,7 +49,9 @@ describe("core-sdk-premint", () => { const offerId = createdOffer.id; const range = 8; - const receipt = await (await coreSDK.reserveRange(offerId, range, "seller")).wait(); + const receipt = await ( + await coreSDK.reserveRange(offerId, range, "seller") + ).wait(); await waitForGraphNodeIndexing(receipt); const offerReserveRange = await coreSDK.getOfferById(offerId); @@ -75,7 +89,9 @@ describe("core-sdk-premint", () => { await (await sellerCoreSDK.reserveRange(offerId, range, "seller")).wait(); const preMinted = 2; - const receipt = await (await sellerCoreSDK.preMint(offerId, preMinted)).wait(); + const receipt = await ( + await sellerCoreSDK.preMint(offerId, preMinted) + ).wait(); const resultRange = await sellerCoreSDK.getRangeByOfferId(offerId); expect(Number(resultRange.length.toString())).toBe(range); @@ -118,7 +134,9 @@ describe("core-sdk-premint", () => { await (await sellerCoreSDK.reserveRange(offerId, range, "seller")).wait(); const preMinted = 2; - const receipt = await (await sellerCoreSDK.preMint(offerId, preMinted)).wait(); + const receipt = await ( + await sellerCoreSDK.preMint(offerId, preMinted) + ).wait(); const resultRange = await sellerCoreSDK.getRangeByOfferId(offerId); expect(Number(resultRange.length.toString())).toBe(range); @@ -144,7 +162,9 @@ describe("core-sdk-premint", () => { await (await buyerCoreSDK.redeemVoucher(exchangeId)).wait(); - const receipt3 = await (await buyerCoreSDK.raiseAndEscalateDispute(exchangeId)).wait(); + const receipt3 = await ( + await buyerCoreSDK.raiseAndEscalateDispute(exchangeId) + ).wait(); await waitForGraphNodeIndexing(receipt3); const escalatedExchange = await sellerCoreSDK.getExchangeById(exchangeId); @@ -172,7 +192,9 @@ describe("core-sdk-premint", () => { const offerId = createdOffer.id; const range = 10; - const receipt = await (await coreSDK.reserveRange(offerId, range, "seller")).wait(); + const receipt = await ( + await coreSDK.reserveRange(offerId, range, "seller") + ).wait(); const resultRange = await coreSDK.getRangeByOfferId(offerId); expect(Number(resultRange.length.toString())).toBe(range); @@ -298,6 +320,155 @@ describe("core-sdk-premint", () => { expect(isApprovedForAllAfter).toEqual(true); }); }); + +describe("orchestration", () => { + test("#createPremintedOfferWithCondition()", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + await createSeller(coreSDK, fundedWallet.address); + + // Ensure the condition token is minted + const tokenID = Date.now().toString(); + await ensureMintedERC1155(fundedWallet, tokenID, "5"); + const condition = { + method: EvaluationMethod.Threshold, + tokenType: TokenType.MultiToken, + tokenAddress: MOCK_ERC1155_ADDRESS.toLowerCase(), + gatingType: GatingType.PerAddress, + minTokenId: tokenID, + maxTokenId: tokenID, + threshold: "1", + maxCommits: "3" + }; + const premintParameters = { + reservedRangeLength: "5", + to: fundedWallet.address + }; + + const offer = await createPremintedOfferWithCondition( + coreSDK, + condition, + premintParameters + ); + expect(offer).toBeTruthy(); + expect(offer.range).toBeTruthy(); + expect(offer.range?.owner?.toLowerCase()).toEqual( + premintParameters.to.toLowerCase() + ); + expect(Number(offer.range?.end) - Number(offer.range?.start) + 1).toEqual( + Number(premintParameters.reservedRangeLength) + ); + expect(offer.condition).toBeTruthy(); + expect(offer.condition?.tokenAddress.toLowerCase()).toEqual( + condition.tokenAddress + ); + }); + test("#createPremintedOfferAddToGroup()", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + await createSeller(coreSDK, fundedWallet.address); + + // Ensure the condition token is minted + const tokenID = Date.now().toString(); + await ensureMintedERC1155(fundedWallet, tokenID, "5"); + const condition = { + method: EvaluationMethod.Threshold, + tokenType: TokenType.MultiToken, + tokenAddress: MOCK_ERC1155_ADDRESS.toLowerCase(), + gatingType: GatingType.PerAddress, + minTokenId: tokenID, + maxTokenId: tokenID, + threshold: "1", + maxCommits: "3" + }; + const premintParameters = { + reservedRangeLength: "5", + to: fundedWallet.address + }; + + const { offer, groupId } = await createPremintedOfferAddToGroup( + coreSDK, + condition, + premintParameters + ); + expect(offer).toBeTruthy(); + expect(offer.range).toBeTruthy(); + expect(offer.range?.owner?.toLowerCase()).toEqual( + premintParameters.to.toLowerCase() + ); + expect(Number(offer.range?.end) - Number(offer.range?.start) + 1).toEqual( + Number(premintParameters.reservedRangeLength) + ); + expect(offer.condition).toBeTruthy(); + expect(offer.condition?.id).toEqual(groupId); + }); + test("#createSellerAndPremintedOffer()", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const premintParameters = { + reservedRangeLength: "5", + to: fundedWallet.address + }; + + const offer = await createSellerAndPremintedOffer( + coreSDK, + fundedWallet.address, + premintParameters + ); + expect(offer).toBeTruthy(); + expect(offer.range).toBeTruthy(); + expect(offer.range?.owner?.toLowerCase()).toEqual( + premintParameters.to.toLowerCase() + ); + expect(Number(offer.range?.end) - Number(offer.range?.start) + 1).toEqual( + Number(premintParameters.reservedRangeLength) + ); + }); + test("#createSellerAndPremintedOfferWithCondition()", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + // Ensure the condition token is minted + const tokenID = Date.now().toString(); + await ensureMintedERC1155(fundedWallet, tokenID, "5"); + const condition = { + method: EvaluationMethod.Threshold, + tokenType: TokenType.MultiToken, + tokenAddress: MOCK_ERC1155_ADDRESS.toLowerCase(), + gatingType: GatingType.PerAddress, + minTokenId: tokenID, + maxTokenId: tokenID, + threshold: "1", + maxCommits: "3" + }; + const premintParameters = { + reservedRangeLength: "5", + to: fundedWallet.address + }; + + const offer = await createSellerAndPremintedOfferWithCondition( + coreSDK, + fundedWallet.address, + condition, + premintParameters + ); + expect(offer).toBeTruthy(); + expect(offer.range).toBeTruthy(); + expect(offer.range?.owner?.toLowerCase()).toEqual( + premintParameters.to.toLowerCase() + ); + expect(Number(offer.range?.end) - Number(offer.range?.start) + 1).toEqual( + Number(premintParameters.reservedRangeLength) + ); + expect(offer.condition).toBeTruthy(); + expect(offer.condition?.tokenAddress.toLowerCase()).toEqual( + condition.tokenAddress + ); + }); +}); function getExchangeIdFromRange(range: Range): number { return parseInt( BigNumber.from(range.start) diff --git a/e2e/tests/core-sdk-royalties.test.ts b/e2e/tests/core-sdk-royalties.test.ts new file mode 100644 index 000000000..9a3ced1ba --- /dev/null +++ b/e2e/tests/core-sdk-royalties.test.ts @@ -0,0 +1,793 @@ +import { Wallet, BigNumber } from "ethers"; +import { ZERO_ADDRESS } from "../../packages/core-sdk/tests/mocks"; +import { + createOffer, + createOfferBatch, + createSeller, + createSellerAndOffer, + initCoreSDKWithFundedWallet, + initCoreSDKWithWallet, + prepareMultiVariantOffers, + seedWallet23, + wait, + waitForGraphNodeIndexing +} from "./utils"; +import { productV1 } from "@bosonprotocol/metadata/src"; + +const seedWallet = seedWallet23; // be sure the seedWallet is not used by another test (to allow concurrent run) + +jest.setTimeout(60_000); + +describe("Seller royalties recipients", () => { + let maxRoyaltyPercentage; + const walletIs_onchain = (expectedWallet: string) => { + return (recipient) => { + return recipient.wallet.toLowerCase() === expectedWallet; + }; + }; + const walletIs_subgraph = (expectedWallet: string) => { + return (royaltyRecipientXSeller) => { + return ( + royaltyRecipientXSeller.recipient.wallet.toLowerCase() === + expectedWallet + ); + }; + }; + beforeAll(async () => { + const coreSDK = initCoreSDKWithWallet(Wallet.createRandom()); + maxRoyaltyPercentage = await coreSDK.getMaxRoyaltyPercentage(); + }); + test("default royalties for a seller", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const seller = await createSeller(coreSDK, fundedWallet.address); + expect(seller).toBeTruthy(); + expect(seller.royaltyRecipients).toBeTruthy(); + expect(seller.royaltyRecipients?.length).toEqual(1); + expect(seller.royaltyRecipients?.[0].recipient.wallet).toEqual( + ZERO_ADDRESS + ); + expect(seller.royaltyRecipients?.[0].minRoyaltyPercentage).toEqual("0"); + }); + test("custom royalties for a seller - non-zero percentage for treasury", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + const seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + expect(seller).toBeTruthy(); + expect(seller.royaltyRecipients).toBeTruthy(); + expect(seller.royaltyRecipients?.length).toEqual(1); + expect(seller.royaltyRecipients?.[0].recipient.wallet).toEqual( + ZERO_ADDRESS + ); + expect(seller.royaltyRecipients?.[0].minRoyaltyPercentage).toEqual( + treasuryPercentage + ); + }); + test("custom royalties for a seller - add other recipients", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + let seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + expect(seller).toBeTruthy(); + expect(seller.royaltyRecipients).toBeTruthy(); + expect(seller.royaltyRecipients?.length).toEqual(1); + + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await waitForGraphNodeIndexing(tx); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + expect(seller.royaltyRecipients).toBeTruthy(); + expect(seller.royaltyRecipients?.length).toEqual(1 + recipients.length); + expect( + seller.royaltyRecipients?.some(walletIs_subgraph(ZERO_ADDRESS)) + ).toBe(true); + expect( + seller.royaltyRecipients?.some(walletIs_subgraph(recipients[0])) + ).toBe(true); + expect( + seller.royaltyRecipients?.some(walletIs_subgraph(recipients[1])) + ).toBe(true); + expect( + seller.royaltyRecipients?.find(walletIs_subgraph(ZERO_ADDRESS)) + ?.minRoyaltyPercentage + ).toEqual(treasuryPercentage); + expect( + seller.royaltyRecipients?.find(walletIs_subgraph(recipients[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[0]); + expect( + seller.royaltyRecipients?.find(walletIs_subgraph(recipients[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[1]); + + const recipients_2 = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage_2 = ["400", "500"]; + const tx_2 = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients_2.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage_2[index] + }; + }) + ); + await waitForGraphNodeIndexing(tx_2); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + expect(seller.royaltyRecipients).toBeTruthy(); + expect(seller.royaltyRecipients?.length).toEqual( + 1 + recipients.length + recipients_2.length + ); + expect( + seller.royaltyRecipients?.some(walletIs_subgraph(recipients_2[0])) + ).toBe(true); + expect( + seller.royaltyRecipients?.some(walletIs_subgraph(recipients_2[1])) + ).toBe(true); + expect( + seller.royaltyRecipients?.find(walletIs_subgraph(recipients_2[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[0]); + expect( + seller.royaltyRecipients?.find(walletIs_subgraph(recipients_2[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[1]); + }); + test("custom royalties for a seller - update other recipients - check onchain", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + const seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx.wait(); + let royaltyRecipients = await coreSDK.getRoyaltyRecipients(seller.id); + royaltyRecipients = royaltyRecipients.map((rr) => { + // ensure the minRoyaltyPercentage is a string + return { + ...rr, + minRoyaltyPercentage: BigNumber.from(rr.minRoyaltyPercentage).toString() + }; + }); + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients.length).toEqual(1 + recipients.length); + expect(royaltyRecipients.some(walletIs_onchain(ZERO_ADDRESS))).toBe(true); + expect(royaltyRecipients.some(walletIs_onchain(recipients[0]))).toBe(true); + expect(royaltyRecipients.some(walletIs_onchain(recipients[1]))).toBe(true); + expect( + royaltyRecipients.find(walletIs_onchain(ZERO_ADDRESS)) + ?.minRoyaltyPercentage + ).toEqual(treasuryPercentage); + expect( + royaltyRecipients.find(walletIs_onchain(recipients[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[0]); + expect( + royaltyRecipients.find(walletIs_onchain(recipients[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[1]); + + const recipients_2 = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage_2 = ["400", "500"]; + const tx_2 = await coreSDK.updateRoyaltyRecipients( + seller.id, + [1, 2], + recipients_2.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage_2[index] + }; + }) + ); + await tx_2.wait(); + royaltyRecipients = await coreSDK.getRoyaltyRecipients(seller.id); + royaltyRecipients = royaltyRecipients.map((rr) => { + // ensure the minRoyaltyPercentage is a string + return { + ...rr, + minRoyaltyPercentage: BigNumber.from(rr.minRoyaltyPercentage).toString() + }; + }); + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients.length).toEqual(1 + recipients_2.length); + expect(royaltyRecipients.some(walletIs_onchain(recipients_2[0]))).toBe( + true + ); + expect(royaltyRecipients.some(walletIs_onchain(recipients_2[1]))).toBe( + true + ); + expect( + royaltyRecipients.find(walletIs_onchain(recipients_2[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[0]); + expect( + royaltyRecipients.find(walletIs_onchain(recipients_2[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[1]); + }); + test("custom royalties for a seller - update other recipients - check subgraph", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + let seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await waitForGraphNodeIndexing(tx); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + let royaltyRecipients = seller.royaltyRecipients; + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients?.length).toEqual(1 + recipients.length); + expect(royaltyRecipients?.some(walletIs_subgraph(ZERO_ADDRESS))).toBe(true); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[0]))).toBe( + true + ); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[1]))).toBe( + true + ); + expect( + royaltyRecipients?.find(walletIs_subgraph(ZERO_ADDRESS)) + ?.minRoyaltyPercentage + ).toEqual(treasuryPercentage); + expect( + royaltyRecipients?.find(walletIs_subgraph(recipients[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[0]); + expect( + royaltyRecipients?.find(walletIs_subgraph(recipients[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage[1]); + + const recipients_2 = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage_2 = ["400", "500"]; + const tx_2 = await coreSDK.updateRoyaltyRecipients( + seller.id, + [1, 2], + recipients_2.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage_2[index] + }; + }) + ); + await waitForGraphNodeIndexing(tx_2); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + royaltyRecipients = seller.royaltyRecipients; + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients?.length).toEqual(1 + recipients_2.length); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients_2[0]))).toBe( + true + ); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients_2[1]))).toBe( + true + ); + expect( + royaltyRecipients?.find(walletIs_subgraph(recipients_2[0])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[0]); + expect( + royaltyRecipients?.find(walletIs_subgraph(recipients_2[1])) + ?.minRoyaltyPercentage + ).toEqual(recipientsPercentage_2[1]); + }); + test("custom royalties for a seller - remove other recipients - check onchain", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + const seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx.wait(); + let royaltyRecipients = await coreSDK.getRoyaltyRecipients(seller.id); + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients.length).toEqual(1 + recipients.length); + expect(royaltyRecipients.some(walletIs_onchain(ZERO_ADDRESS))).toBe(true); + expect(royaltyRecipients.some(walletIs_onchain(recipients[0]))).toBe(true); + expect(royaltyRecipients.some(walletIs_onchain(recipients[1]))).toBe(true); + + const recipient2Index = royaltyRecipients.findIndex( + walletIs_onchain(recipients[1]) + ); + expect(recipient2Index).not.toBe(-1); + + const tx_2 = await coreSDK.removeRoyaltyRecipients(seller.id, [ + recipient2Index + ]); + await tx_2.wait(); + royaltyRecipients = await coreSDK.getRoyaltyRecipients(seller.id); + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients.length).toEqual(1 + recipients.length - 1); + expect(royaltyRecipients.some(walletIs_onchain(recipients[0]))).toBe(true); + expect(royaltyRecipients.some(walletIs_onchain(recipients[1]))).toBe(false); + }); + test("custom royalties for a seller - remove other recipients - check subgraph", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const treasuryPercentage = "100"; // 1% + expect(Number(treasuryPercentage)).toBeLessThan(maxRoyaltyPercentage); + let seller = await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: treasuryPercentage + } + }); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await waitForGraphNodeIndexing(tx); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + let royaltyRecipients = seller.royaltyRecipients; + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients?.length).toEqual(1 + recipients.length); + expect(royaltyRecipients?.some(walletIs_subgraph(ZERO_ADDRESS))).toBe(true); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[0]))).toBe( + true + ); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[1]))).toBe( + true + ); + + // Find the index of recipients[1] in the onChain result + const royaltyRecipientsOnChain = await coreSDK.getRoyaltyRecipients( + seller.id + ); + const recipient2Index = royaltyRecipientsOnChain.findIndex( + walletIs_onchain(recipients[1]) + ) as number; + expect(recipient2Index).not.toBe(-1); + + const tx_2 = await coreSDK.removeRoyaltyRecipients(seller.id, [ + recipient2Index + ]); + await waitForGraphNodeIndexing(tx_2); + seller = await coreSDK.getSellerById(seller.id); + expect(seller).toBeTruthy(); + royaltyRecipients = seller.royaltyRecipients; + expect(royaltyRecipients).toBeTruthy(); + expect(royaltyRecipients?.length).toEqual(1 + recipients.length - 1); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[0]))).toBe( + true + ); + expect(royaltyRecipients?.some(walletIs_subgraph(recipients[1]))).toBe( + false + ); + }); +}); + +describe.only("Offer royalties recipients", () => { + test("royalties #1 zero royalties by default", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const createdOffer = await createSellerAndOffer( + coreSDK, + fundedWallet.address + ); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + expect(createdOffer.royaltyInfos[0].recipients).toBeTruthy(); + expect(createdOffer.royaltyInfos[0].recipients?.length).toEqual(0); + }); + test("royalties #2 zero minimum - set treasury royalty for offer", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + await createSeller(coreSDK, fundedWallet.address); + const treasuryPercentage = "100"; // 1% + const createdOffer = await createOffer(coreSDK, { + royaltyInfo: [ + { + recipients: [ZERO_ADDRESS], + bps: [treasuryPercentage] + } + ] + }); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + expect(createdOffer.royaltyInfos[0].recipients).toBeTruthy(); + expect(createdOffer.royaltyInfos[0].recipients?.length).toEqual(1); + expect( + createdOffer.royaltyInfos[0].recipients?.[0].recipient.wallet + ).toEqual(ZERO_ADDRESS); + expect( + createdOffer.royaltyInfos[0].recipients?.[0].recipient.wallet + ).toEqual(ZERO_ADDRESS); + expect(createdOffer.royaltyInfos[0].recipients?.[0].bps).toEqual( + treasuryPercentage + ); + }); + test("royalties #3 offer requires at least the minimum royalty percentage", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + // Set a >0 minimum royalty percentage for the seller + const minTreasuryPercentage = "100"; // 1% + await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: minTreasuryPercentage + } + }); + // Try to create an offer with insufficient royalties + ( + await expect( + createOffer(coreSDK, { + royaltyInfo: [ + { + recipients: [ZERO_ADDRESS], + bps: ["50"] // less than the minimum + } + ] + }) + ) + ).rejects.toThrow(/InvalidRoyaltyPercentage()/); + // Create an offer with all royalties for treasury + const createdOffer = await createOffer(coreSDK, { + royaltyInfo: [ + { + recipients: [ZERO_ADDRESS], + bps: [minTreasuryPercentage] + } + ] + }); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + expect(createdOffer.royaltyInfos[0].recipients).toBeTruthy(); + expect(createdOffer.royaltyInfos[0].recipients?.length).toEqual(1); + expect( + createdOffer.royaltyInfos[0].recipients?.[0].recipient.wallet + ).toEqual(ZERO_ADDRESS); + expect( + createdOffer.royaltyInfos[0].recipients?.[0].recipient.wallet + ).toEqual(ZERO_ADDRESS); + expect(createdOffer.royaltyInfos[0].recipients?.[0].bps).toEqual( + minTreasuryPercentage + ); + }); + test("royalties #4 zero minimum - set several royalty recipients for offer", async () => { + const walletIs_subgraph = (expectedWallet: string) => { + return (royaltyRecipientXOffer) => { + return ( + royaltyRecipientXOffer.recipient.wallet.toLowerCase() === + expectedWallet + ); + }; + }; + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const seller = await createSeller(coreSDK, fundedWallet.address); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx.wait(); + const createdOffer = await createOffer(coreSDK, { + royaltyInfo: [ + { + recipients, + bps: recipientsPercentage + } + ] + }); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + // Offer royalties includes both recipients + expect(createdOffer.royaltyInfos[0].recipients).toBeTruthy(); + expect(createdOffer.royaltyInfos[0].recipients?.length).toEqual(2); + expect( + createdOffer.royaltyInfos[0].recipients?.some( + walletIs_subgraph(recipients[0]) + ) + ).toBe(true); + expect( + createdOffer.royaltyInfos[0].recipients?.some( + walletIs_subgraph(recipients[1]) + ) + ).toBe(true); + // Offer royalties does not include treasury + expect( + createdOffer.royaltyInfos[0].recipients?.some( + walletIs_subgraph(ZERO_ADDRESS) + ) + ).toBe(false); + }); + test("royalties #5 positive minimum royalty and offer with no royalties", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + // Set a >0 minimum royalty percentage for the seller + const minTreasuryPercentage = "100"; // 1% + await createSeller(coreSDK, fundedWallet.address, { + sellerParams: { + royaltyPercentage: minTreasuryPercentage + } + }); + // Create an offer with no royalty + const createdOffer = await createOffer(coreSDK); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + expect(createdOffer.royaltyInfos[0].recipients).toBeTruthy(); + expect(createdOffer.royaltyInfos[0].recipients?.length).toEqual(0); + }); + test("updateOfferRoyaltyRecipients()", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const createdOffer = await createSellerAndOffer( + coreSDK, + fundedWallet.address + ); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx1 = await coreSDK.addRoyaltyRecipients( + createdOffer.seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx1.wait(); + const newRoyaltyInfo = { + recipients, + bps: recipientsPercentage + }; + const tx2 = await coreSDK.updateOfferRoyaltyRecipients( + createdOffer.id, + newRoyaltyInfo + ); + await waitForGraphNodeIndexing(tx2); + const offer = await coreSDK.getOfferById(createdOffer.id); + expect(offer.royaltyInfos).toBeTruthy(); + expect(offer.royaltyInfos.length).toEqual(2); + const mostRecentRoyaltyInfo = offer.royaltyInfos.reduce( + (prev, current) => + BigNumber.from(current.timestamp).gt(prev.timestamp) ? current : prev, + offer.royaltyInfos[0] + ); + expect(mostRecentRoyaltyInfo?.recipients?.length).toEqual( + recipients.length + ); + }); + test("updateOfferRoyaltyRecipientsBatch() - only 1 offer", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const createdOffer = await createSellerAndOffer( + coreSDK, + fundedWallet.address + ); + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx1 = await coreSDK.addRoyaltyRecipients( + createdOffer.seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx1.wait(); + const newRoyaltyInfo = { + recipients, + bps: recipientsPercentage + }; + const tx2 = await coreSDK.updateOfferRoyaltyRecipientsBatch( + [createdOffer.id], + newRoyaltyInfo + ); + await waitForGraphNodeIndexing(tx2); + const offer = await coreSDK.getOfferById(createdOffer.id); + expect(offer.royaltyInfos).toBeTruthy(); + expect(offer.royaltyInfos.length).toEqual(2); + const mostRecentRoyaltyInfo = offer.royaltyInfos.reduce( + (prev, current) => + BigNumber.from(current.timestamp).gt(prev.timestamp) ? current : prev, + offer.royaltyInfos[0] + ); + expect(mostRecentRoyaltyInfo?.recipients?.length).toEqual( + recipients.length + ); + }); + test("updateOfferRoyaltyRecipientsBatch() - 3 offers", async () => { + const { coreSDK, fundedWallet } = await initCoreSDKWithFundedWallet( + seedWallet + ); + const seller = await createSeller(coreSDK, fundedWallet.address); + const productVariations: productV1.ProductV1Variant[] = [ + [ + { + type: "Size", + option: "S" + } + ], + [ + { + type: "Size", + option: "M" + } + ], + [ + { + type: "Size", + option: "L" + } + ] + ]; + const { offerArgs } = await prepareMultiVariantOffers( + coreSDK, + productVariations + ); + const createdOffers = await createOfferBatch( + coreSDK, + fundedWallet, + offerArgs + ); + createdOffers.forEach((createdOffer) => { + expect(createdOffer.royaltyInfos).toBeTruthy(); + expect(createdOffer.royaltyInfos.length).toEqual(1); + }); + const recipients = [ + Wallet.createRandom().address.toLowerCase(), + Wallet.createRandom().address.toLowerCase() + ]; + const recipientsPercentage = ["200", "300"]; + const tx1 = await coreSDK.addRoyaltyRecipients( + seller.id, + recipients.map((wallet, index) => { + return { + wallet, + minRoyaltyPercentage: recipientsPercentage[index] + }; + }) + ); + await tx1.wait(); + const newRoyaltyInfo = { + recipients, + bps: recipientsPercentage + }; + const tx2 = await coreSDK.updateOfferRoyaltyRecipientsBatch( + createdOffers.map((offer) => offer.id), + newRoyaltyInfo + ); + await waitForGraphNodeIndexing(tx2); + createdOffers.forEach(async (createdOffer) => { + const offer = await coreSDK.getOfferById(createdOffer.id); + expect(offer.royaltyInfos).toBeTruthy(); + expect(offer.royaltyInfos.length).toEqual(2); + const mostRecentRoyaltyInfo = offer.royaltyInfos.reduce( + (prev, current) => + BigNumber.from(current.timestamp).gt(prev.timestamp) ? current : prev, + offer.royaltyInfos[0] + ); + expect(mostRecentRoyaltyInfo?.recipients?.length).toEqual( + recipients.length + ); + }); + }); +}); diff --git a/e2e/tests/core-sdk.test.ts b/e2e/tests/core-sdk.test.ts index cb3e43208..0e4bb0192 100644 --- a/e2e/tests/core-sdk.test.ts +++ b/e2e/tests/core-sdk.test.ts @@ -384,7 +384,7 @@ describe("core-sdk", () => { offerId: createdOffer.id, tokenId: tokenToCommitWith }) - ).rejects.toThrow(/Caller cannot commit/); + ).rejects.toThrow(/CannotCommit()/); } ); @@ -653,7 +653,7 @@ describe("core-sdk", () => { offerId: offerId || "1", tokenId: tokenToCommitWith }) - ).rejects.toThrow(/Caller cannot commit/); + ).rejects.toThrow(/CannotCommit()/); } ); @@ -989,7 +989,8 @@ describe("core-sdk", () => { { exchangeToken: MOCK_ERC20_ADDRESS, price: parseEther(offerPrice), - sellerDeposit: parseEther(sellerFundsDeposit) + sellerDeposit: parseEther(sellerFundsDeposit), + feeLimit: parseEther(offerPrice) } ); await ensureMintedAndAllowedTokens([sellerWallet], sellerFundsDeposit); diff --git a/e2e/tests/utils.ts b/e2e/tests/utils.ts index f1c94a32a..39f42e761 100644 --- a/e2e/tests/utils.ts +++ b/e2e/tests/utils.ts @@ -36,7 +36,10 @@ import { IpfsMetadataStorage } from "../../packages/ipfs-storage/src"; import { EthersAdapter } from "../../packages/ethers-sdk/src"; -import { CreateOfferArgs } from "./../../packages/common/src/types/offers"; +import { + CreateOfferArgs, + PremintParametersStruct +} from "./../../packages/common/src/types/offers"; import { mockCreateOfferArgs } from "../../packages/common/tests/mocks"; import { ACCOUNT_1, @@ -60,7 +63,8 @@ import { ACCOUNT_19, ACCOUNT_20, ACCOUNT_21, - ACCOUNT_22 + ACCOUNT_22, + ACCOUNT_23 } from "../../contracts/accounts"; import { MOCK_ERC1155_ABI, @@ -193,6 +197,8 @@ export const seedWallet20 = new Wallet(ACCOUNT_20.privateKey, provider); export const seedWallet21 = new Wallet(ACCOUNT_21.privateKey, provider); // seedWallets used by bundle.test.ts export const seedWallet22 = new Wallet(ACCOUNT_22.privateKey, provider); +// seedWallets used by core-sdk-royalties.test.ts +export const seedWallet23 = new Wallet(ACCOUNT_23.privateKey, provider); export const mockErc20Contract = new Contract( MOCK_ERC20_ADDRESS, @@ -533,6 +539,215 @@ export async function createOfferWithCondition( return offer; } +export async function createPremintedOfferWithCondition( + coreSDK: CoreSDK, + condition: ConditionStruct, + premintParameters: PremintParametersStruct, + overrides: { + offerParams?: Partial; + metadata?: Partial; + } = {} +) { + const metadataHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const metadataUri = "ipfs://" + metadataHash; + + const offerArgs = mockCreateOfferArgs({ + metadataHash, + metadataUri, + ...overrides.offerParams + }); + + const createOfferTxResponse = await coreSDK.createPremintedOfferWithCondition( + offerArgs, + premintParameters, + condition + ); + const createOfferTxReceipt = await createOfferTxResponse.wait(); + const createdOfferId = coreSDK.getCreatedOfferIdFromLogs( + createOfferTxReceipt.logs + ); + + await waitForGraphNodeIndexing(createOfferTxReceipt); + const offer = await coreSDK.getOfferById(createdOfferId as string); + + return offer; +} + +export async function createPremintedOfferAddToGroup( + coreSDK: CoreSDK, + condition: ConditionStruct, + premintParameters: PremintParametersStruct, + overrides: { + offerParams?: Partial; + metadata?: Partial; + } = {} +) { + const metadataHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const metadataUri = "ipfs://" + metadataHash; + + const offerArgs = mockCreateOfferArgs({ + metadataHash, + metadataUri, + ...overrides.offerParams + }); + const groupToCreate = { + offerIds: [], + ...condition + }; + const createdGroupTx = await coreSDK.createGroup(groupToCreate); + const txReceipt = await createdGroupTx.wait(); + const createdGroupIds = await coreSDK.getCreatedGroupIdsFromLogs( + txReceipt.logs + ); + expect(createdGroupIds.length).toEqual(1); + const [groupId] = createdGroupIds; + + const createOfferTxResponse = await coreSDK.createPremintedOfferAddToGroup( + offerArgs, + premintParameters, + groupId + ); + const createOfferTxReceipt = await createOfferTxResponse.wait(); + const createdOfferId = coreSDK.getCreatedOfferIdFromLogs( + createOfferTxReceipt.logs + ); + + await waitForGraphNodeIndexing(createOfferTxReceipt); + const offer = await coreSDK.getOfferById(createdOfferId as string); + + return { offer, groupId }; +} + +export async function createSellerAndPremintedOffer( + coreSDK: CoreSDK, + sellerAddress: string, + premintParameters: PremintParametersStruct, + overrides: { + offerParams?: Partial; + metadata?: Partial; + sellerMetadata?: Partial; + } = {} +) { + const sellerContractHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const sellerContractUri = "ipfs://" + sellerContractHash; + const sellerMetadataHash = await coreSDK.storeMetadata({ + ...sellerMetadata, + ...overrides.sellerMetadata + }); + const sellerMetadataUri = "ipfs://" + sellerMetadataHash; + + const metadataHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const metadataUri = "ipfs://" + metadataHash; + + const offerArgs = mockCreateOfferArgs({ + metadataHash, + metadataUri, + ...overrides.offerParams + }); + + const txResponse = await coreSDK.createSellerAndPremintedOffer( + { + assistant: sellerAddress, + admin: sellerAddress, + treasury: sellerAddress, + contractUri: sellerContractUri, + royaltyPercentage: "0", + authTokenId: "0", + authTokenType: 0, + metadataUri: sellerMetadataUri + }, + offerArgs, + premintParameters + ); + const txReceipt = await txResponse.wait(); + const createdOfferId = coreSDK.getCreatedOfferIdFromLogs(txReceipt.logs); + if (createdOfferId === null) { + throw new Error("Failed to create seller adn preminted offer"); + } + await waitForGraphNodeIndexing(txReceipt); + const offer = await coreSDK.getOfferById(createdOfferId as string); + + return offer; +} + +export async function createSellerAndPremintedOfferWithCondition( + coreSDK: CoreSDK, + sellerAddress: string, + condition: ConditionStruct, + premintParameters: PremintParametersStruct, + overrides: { + offerParams?: Partial; + metadata?: Partial; + sellerMetadata?: Partial; + } = {} +) { + const sellerContractHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const sellerContractUri = "ipfs://" + sellerContractHash; + const sellerMetadataHash = await coreSDK.storeMetadata({ + ...sellerMetadata, + ...overrides.sellerMetadata + }); + const sellerMetadataUri = "ipfs://" + sellerMetadataHash; + + const metadataHash = await coreSDK.storeMetadata({ + ...metadata, + type: "BASE", + ...overrides.metadata + }); + const metadataUri = "ipfs://" + metadataHash; + + const offerArgs = mockCreateOfferArgs({ + metadataHash, + metadataUri, + ...overrides.offerParams + }); + + const txResponse = await coreSDK.createSellerAndPremintedOfferWithCondition( + { + assistant: sellerAddress, + admin: sellerAddress, + treasury: sellerAddress, + contractUri: sellerContractUri, + royaltyPercentage: "0", + authTokenId: "0", + authTokenType: 0, + metadataUri: sellerMetadataUri + }, + offerArgs, + premintParameters, + condition + ); + const txReceipt = await txResponse.wait(); + const createdOfferId = coreSDK.getCreatedOfferIdFromLogs(txReceipt.logs); + if (createdOfferId === null) { + throw new Error("Failed to create seller adn preminted offer"); + } + await waitForGraphNodeIndexing(txReceipt); + const offer = await coreSDK.getOfferById(createdOfferId as string); + + return offer; +} + export async function createSellerAndOfferWithCondition( coreSDK: CoreSDK, sellerAddress: string, diff --git a/package-lock.json b/package-lock.json index 36331dbdd..a915418e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3900,6 +3900,7 @@ }, "node_modules/@graphprotocol/graph-cli": { "version": "0.68.5", + "dev": true, "license": "(Apache-2.0 OR MIT)", "dependencies": { "@float-capital/float-subgraph-uncrashable": "^0.0.0-alpha.4", @@ -3939,6 +3940,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/any-signal": { "version": "2.1.2", + "dev": true, "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", @@ -3947,6 +3949,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/argparse": { "version": "1.0.10", + "dev": true, "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" @@ -3954,6 +3957,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/brace-expansion": { "version": "2.0.1", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -3961,6 +3965,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/chalk": { "version": "3.0.0", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -3972,6 +3977,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/chokidar": { "version": "3.5.3", + "dev": true, "funding": [ { "type": "individual", @@ -3997,10 +4003,12 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/err-code": { "version": "3.0.1", + "dev": true, "license": "MIT" }, "node_modules/@graphprotocol/graph-cli/node_modules/glob": { "version": "9.3.5", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -4017,6 +4025,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/graphql": { "version": "15.5.0", + "dev": true, "license": "MIT", "engines": { "node": ">= 10.x" @@ -4024,6 +4033,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-core-types": { "version": "0.9.0", + "dev": true, "license": "(Apache-2.0 OR MIT)", "dependencies": { "interface-datastore": "^6.0.2", @@ -4033,6 +4043,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-core-utils": { "version": "0.13.0", + "dev": true, "license": "MIT", "dependencies": { "any-signal": "^2.1.2", @@ -4059,6 +4070,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/ipfs-http-client": { "version": "55.0.0", + "dev": true, "license": "(Apache-2.0 OR MIT)", "dependencies": { "@ipld/dag-cbor": "^7.0.0", @@ -4088,6 +4100,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/js-yaml": { "version": "3.14.1", + "dev": true, "license": "MIT", "dependencies": { "argparse": "^1.0.7", @@ -4099,6 +4112,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -4109,6 +4123,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/minimatch": { "version": "8.0.4", + "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" @@ -4122,6 +4137,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/minipass": { "version": "4.2.8", + "dev": true, "license": "ISC", "engines": { "node": ">=8" @@ -4129,6 +4145,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/prettier": { "version": "3.0.3", + "dev": true, "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" @@ -4142,6 +4159,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/semver": { "version": "7.4.0", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -4155,6 +4173,7 @@ }, "node_modules/@graphprotocol/graph-cli/node_modules/timeout-abort-controller": { "version": "2.0.0", + "dev": true, "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", @@ -8733,10 +8752,7 @@ }, "node_modules/@parcel/watcher": { "version": "2.4.1", - "dev": true, "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "detect-libc": "^1.0.3", "is-glob": "^4.0.3", @@ -8765,24 +8781,6 @@ "@parcel/watcher-win32-x64": "2.4.1" } }, - "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.4.0", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, "node_modules/@parcel/watcher-wasm": { "version": "2.4.0", "bundleDependencies": [ @@ -8812,13 +8810,11 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ "darwin" ], - "peer": true, "engines": { "node": ">= 10.0.0" }, @@ -12294,20 +12290,6 @@ "string.prototype.matchall": "^4.0.6" } }, - "node_modules/@surma/rollup-plugin-off-main-thread/node_modules/ejs": { - "version": "3.1.8", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { "version": "5.4.0", "dev": true, @@ -16583,6 +16565,22 @@ "node": ">=8" } }, + "node_modules/cids": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/cids/-/cids-1.1.9.tgz", + "integrity": "sha512-l11hWRfugIcbGuTZwAM5PwpjPPjyb6UZOGwlHSnOBV5o07XhQ4gNpBN67FbODvpjyHtd+0Xs6KNvUcGBiDRsdg==", + "deprecated": "This module has been superseded by the multiformats module", + "dependencies": { + "multibase": "^4.0.1", + "multicodec": "^3.0.1", + "multihashes": "^4.0.1", + "uint8arrays": "^3.0.0" + }, + "engines": { + "node": ">=4.0.0", + "npm": ">=3.0.0" + } + }, "node_modules/cipher-base": { "version": "1.0.4", "license": "MIT", @@ -27435,37 +27433,6 @@ "listhen": "bin/listhen.mjs" } }, - "node_modules/listhen/node_modules/@parcel/watcher": { - "version": "2.4.0", - "license": "MIT", - "dependencies": { - "detect-libc": "^1.0.3", - "is-glob": "^4.0.3", - "micromatch": "^4.0.5", - "node-addon-api": "^7.0.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.4.0", - "@parcel/watcher-darwin-arm64": "2.4.0", - "@parcel/watcher-darwin-x64": "2.4.0", - "@parcel/watcher-freebsd-x64": "2.4.0", - "@parcel/watcher-linux-arm-glibc": "2.4.0", - "@parcel/watcher-linux-arm64-glibc": "2.4.0", - "@parcel/watcher-linux-arm64-musl": "2.4.0", - "@parcel/watcher-linux-x64-glibc": "2.4.0", - "@parcel/watcher-linux-x64-musl": "2.4.0", - "@parcel/watcher-win32-arm64": "2.4.0", - "@parcel/watcher-win32-ia32": "2.4.0", - "@parcel/watcher-win32-x64": "2.4.0" - } - }, "node_modules/listr2": { "version": "4.0.5", "dev": true, @@ -29422,6 +29389,19 @@ "version": "3.0.1", "license": "MIT" }, + "node_modules/multibase": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-4.0.6.tgz", + "integrity": "sha512-x23pDe5+svdLz/k5JPGCVdfn7Q5mZVMBETiC+ORfO+sor9Sgs0smJzAjfTbM5tckeCqnaUuMYoz+k3RXMmJClQ==", + "deprecated": "This module has been superseded by the multiformats module", + "dependencies": { + "@multiformats/base-x": "^4.0.1" + }, + "engines": { + "node": ">=12.0.0", + "npm": ">=6.0.0" + } + }, "node_modules/multicast-dns": { "version": "7.2.5", "dev": true, @@ -29434,10 +29414,39 @@ "multicast-dns": "cli.js" } }, + "node_modules/multicodec": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-3.2.1.tgz", + "integrity": "sha512-+expTPftro8VAW8kfvcuNNNBgb9gPeNYV9dn+z1kJRWF2vih+/S79f2RVeIwmrJBUJ6NT9IUPWnZDQvegEh5pw==", + "deprecated": "This module has been superseded by the multiformats module", + "dependencies": { + "uint8arrays": "^3.0.0", + "varint": "^6.0.0" + } + }, "node_modules/multiformats": { "version": "9.8.1", "license": "(Apache-2.0 AND MIT)" }, + "node_modules/multihashes": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-4.0.3.tgz", + "integrity": "sha512-0AhMH7Iu95XjDLxIeuCOOE4t9+vQZsACyKZ9Fxw2pcsRmlX4iCn1mby0hS0bb+nQOVpdQYWPpnyusw4da5RPhA==", + "dependencies": { + "multibase": "^4.0.1", + "uint8arrays": "^3.0.0", + "varint": "^5.0.2" + }, + "engines": { + "node": ">=12.0.0", + "npm": ">=6.0.0" + } + }, + "node_modules/multihashes/node_modules/varint": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.2.tgz", + "integrity": "sha512-lKxKYG6H03yCZUpAGOPOsMcGxd1RHCu1iKvEHYDPmTyq2HueGhD73ssNBqqQWfvYs04G9iUFRvmAVLW20Jw6ow==" + }, "node_modules/multimatch": { "version": "5.0.0", "dev": true, @@ -39643,7 +39652,7 @@ "@fastify/busboy": "^2.0.0" }, "engines": { - "node": ">=14.0" + "node": ">=12.18" } }, "node_modules/unenv": { @@ -42757,20 +42766,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/react-kit/node_modules/cids": { - "version": "1.1.9", - "license": "MIT", - "dependencies": { - "multibase": "^4.0.1", - "multicodec": "^3.0.1", - "multihashes": "^4.0.1", - "uint8arrays": "^3.0.0" - }, - "engines": { - "node": ">=4.0.0", - "npm": ">=3.0.0" - } - }, "packages/react-kit/node_modules/commander": { "version": "7.2.0", "license": "MIT", @@ -42956,46 +42951,10 @@ "version": "2.0.30", "license": "CC0-1.0" }, - "packages/react-kit/node_modules/multibase": { - "version": "4.0.6", - "license": "MIT", - "dependencies": { - "@multiformats/base-x": "^4.0.1" - }, - "engines": { - "node": ">=12.0.0", - "npm": ">=6.0.0" - } - }, - "packages/react-kit/node_modules/multicodec": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "uint8arrays": "^3.0.0", - "varint": "^6.0.0" - } - }, "packages/react-kit/node_modules/multiformats": { "version": "13.1.0", "license": "Apache-2.0 OR MIT" }, - "packages/react-kit/node_modules/multihashes": { - "version": "4.0.3", - "license": "MIT", - "dependencies": { - "multibase": "^4.0.1", - "uint8arrays": "^3.0.0", - "varint": "^5.0.2" - }, - "engines": { - "node": ">=12.0.0", - "npm": ">=6.0.0" - } - }, - "packages/react-kit/node_modules/multihashes/node_modules/varint": { - "version": "5.0.2", - "license": "MIT" - }, "packages/react-kit/node_modules/protobufjs": { "version": "7.2.4", "hasInstallScript": true, @@ -43094,6 +43053,245 @@ "matchstick-as": "^0.6.0", "ts-node": "^10.7.0" } + }, + "packages/subgraph/node_modules/@graphprotocol/graph-cli": { + "version": "0.68.4", + "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", + "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", + "tmp-promise": "3.0.3", + "web3-eth-abi": "1.7.0", + "which": "2.0.2", + "yaml": "1.10.2" + }, + "bin": { + "graph": "bin/run" + }, + "engines": { + "node": ">=18" + } + }, + "packages/subgraph/node_modules/any-signal": { + "version": "2.1.2", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "native-abort-controller": "^1.0.3" + } + }, + "packages/subgraph/node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "packages/subgraph/node_modules/chalk": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/subgraph/node_modules/err-code": { + "version": "3.0.1", + "license": "MIT" + }, + "packages/subgraph/node_modules/glob": { + "version": "9.3.5", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "minimatch": "^8.0.2", + "minipass": "^4.2.4", + "path-scurry": "^1.6.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "packages/subgraph/node_modules/graphql": { + "version": "15.5.0", + "license": "MIT", + "engines": { + "node": ">= 10.x" + } + }, + "packages/subgraph/node_modules/ipfs-core-types": { + "version": "0.9.0", + "license": "(Apache-2.0 OR MIT)", + "dependencies": { + "interface-datastore": "^6.0.2", + "multiaddr": "^10.0.0", + "multiformats": "^9.4.13" + } + }, + "packages/subgraph/node_modules/ipfs-core-utils": { + "version": "0.13.0", + "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" + } + }, + "packages/subgraph/node_modules/ipfs-http-client": { + "version": "55.0.0", + "license": "(Apache-2.0 OR 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" + }, + "engines": { + "node": ">=14.0.0", + "npm": ">=3.0.0" + } + }, + "packages/subgraph/node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "packages/subgraph/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/subgraph/node_modules/minimatch": { + "version": "8.0.4", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "packages/subgraph/node_modules/minimatch/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "packages/subgraph/node_modules/minipass": { + "version": "4.2.8", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "packages/subgraph/node_modules/prettier": { + "version": "3.0.3", + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "packages/subgraph/node_modules/semver": { + "version": "7.4.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "packages/subgraph/node_modules/timeout-abort-controller": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "native-abort-controller": "^1.0.4", + "retimer": "^3.0.0" + } } } } diff --git a/packages/common/src/abis/IBosonAccountHandler.json b/packages/common/src/abis/IBosonAccountHandler.json index 2d1b3127f..936c59fc1 100644 --- a/packages/common/src/abis/IBosonAccountHandler.json +++ b/packages/common/src/abis/IBosonAccountHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ @@ -609,6 +1455,43 @@ "name": "DisputeResolverUpdatePending", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable", + "name": "wallet", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minRoyaltyPercentage", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.RoyaltyRecipientInfo[]", + "name": "royaltyRecipients", + "type": "tuple[]" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "RoyaltyRecipientsChanged", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -951,6 +1834,36 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable", + "name": "wallet", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minRoyaltyPercentage", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.RoyaltyRecipientInfo[]", + "name": "_royaltyRecipients", + "type": "tuple[]" + } + ], + "name": "addRoyaltyRecipients", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -1579,6 +2492,37 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + } + ], + "name": "getRoyaltyRecipients", + "outputs": [ + { + "components": [ + { + "internalType": "address payable", + "name": "wallet", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minRoyaltyPercentage", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.RoyaltyRecipientInfo[]", + "name": "royaltyRecipients", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1825,6 +2769,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + } + ], + "name": "getSellersCollectionCount", + "outputs": [ + { + "internalType": "uint256", + "name": "collectionCount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1861,6 +2824,52 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_limit", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_offset", + "type": "uint256" + } + ], + "name": "getSellersCollectionsPaginated", + "outputs": [ + { + "internalType": "address", + "name": "defaultVoucherAddress", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "collectionAddress", + "type": "address" + }, + { + "internalType": "string", + "name": "externalId", + "type": "string" + } + ], + "internalType": "struct BosonTypes.Collection[]", + "name": "additionalCollections", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1939,6 +2948,24 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_royaltyRecipientIds", + "type": "uint256[]" + } + ], + "name": "removeRoyaltyRecipients", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -2077,6 +3104,41 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_sellerId", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "_royaltyRecipientIds", + "type": "uint256[]" + }, + { + "components": [ + { + "internalType": "address payable", + "name": "wallet", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minRoyaltyPercentage", + "type": "uint256" + } + ], + "internalType": "struct BosonTypes.RoyaltyRecipientInfo[]", + "name": "_royaltyRecipients", + "type": "tuple[]" + } + ], + "name": "updateRoyaltyRecipients", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/packages/common/src/abis/IBosonConfigHandler.json b/packages/common/src/abis/IBosonConfigHandler.json new file mode 100644 index 000000000..81b275f4b --- /dev/null +++ b/packages/common/src/abis/IBosonConfigHandler.json @@ -0,0 +1,1604 @@ +[ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": 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": [], + "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": [], + "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 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" + } +] diff --git a/packages/common/src/abis/IBosonDisputeHandler.json b/packages/common/src/abis/IBosonDisputeHandler.json index 17ee9a627..577b40ed6 100644 --- a/packages/common/src/abis/IBosonDisputeHandler.json +++ b/packages/common/src/abis/IBosonDisputeHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ diff --git a/packages/common/src/abis/IBosonExchangeHandler.json b/packages/common/src/abis/IBosonExchangeHandler.json index cef808b50..ad1e7ffc3 100644 --- a/packages/common/src/abis/IBosonExchangeHandler.json +++ b/packages/common/src/abis/IBosonExchangeHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ @@ -437,6 +1283,31 @@ "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": [ @@ -696,29 +1567,6 @@ "stateMutability": "payable", "type": "function" }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_buyer", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_offerId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_exchangeId", - "type": "uint256" - } - ], - "name": "commitToPreMintedOffer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { @@ -776,6 +1624,35 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_queryId", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_isExchangeId", + "type": "bool" + } + ], + "name": "getEIP2981Royalties", + "outputs": [ + { + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "internalType": "uint256", + "name": "royaltyPercentage", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1093,6 +1970,30 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + } + ], + "name": "getRoyalties", + "outputs": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1160,7 +2061,41 @@ "inputs": [ { "internalType": "uint256", - "name": "_exchangeId", + "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": [ + { + "internalType": "uint256", + "name": "_tokenId", "type": "uint256" }, { diff --git a/packages/common/src/abis/IBosonFundsHandler.json b/packages/common/src/abis/IBosonFundsHandler.json index 1bb59abc6..f62217422 100644 --- a/packages/common/src/abis/IBosonFundsHandler.json +++ b/packages/common/src/abis/IBosonFundsHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ diff --git a/packages/common/src/abis/IBosonGroupHandler.json b/packages/common/src/abis/IBosonGroupHandler.json index 905b62775..6eaba8c63 100644 --- a/packages/common/src/abis/IBosonGroupHandler.json +++ b/packages/common/src/abis/IBosonGroupHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ diff --git a/packages/common/src/abis/IBosonMetaTransactionsHandler.json b/packages/common/src/abis/IBosonMetaTransactionsHandler.json index 0f436f082..17e05ee5e 100644 --- a/packages/common/src/abis/IBosonMetaTransactionsHandler.json +++ b/packages/common/src/abis/IBosonMetaTransactionsHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ diff --git a/packages/common/src/abis/IBosonOfferHandler.json b/packages/common/src/abis/IBosonOfferHandler.json index 044ffa4ce..1df045cc6 100644 --- a/packages/common/src/abis/IBosonOfferHandler.json +++ b/packages/common/src/abis/IBosonOfferHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ @@ -51,6 +897,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -70,6 +921,23 @@ "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, @@ -221,6 +1089,49 @@ "name": "OfferExtended", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferRoyaltyInfoUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -328,6 +1239,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -347,6 +1263,23 @@ "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": "struct BosonTypes.Offer", @@ -411,6 +1344,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createOffer", @@ -457,6 +1395,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -476,6 +1419,23 @@ "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": "struct BosonTypes.Offer[]", @@ -540,6 +1500,11 @@ "internalType": "uint256[]", "name": "_agentIds", "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "_feeLimits", + "type": "uint256[]" } ], "name": "createOfferBatch", @@ -672,6 +1637,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -691,6 +1661,23 @@ "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": "struct BosonTypes.Offer", @@ -841,6 +1828,66 @@ "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[]" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "_royaltyInfo", + "type": "tuple" + } + ], + "name": "updateOfferRoyaltyRecipientsBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/packages/common/src/abis/IBosonOfferHandler230.json b/packages/common/src/abis/IBosonOfferHandler230.json new file mode 100644 index 000000000..712b027da --- /dev/null +++ b/packages/common/src/abis/IBosonOfferHandler230.json @@ -0,0 +1,193 @@ +[ + { + "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": "string", + "name": "metadataUri", + "type": "string" + }, + { + "internalType": "string", + "name": "metadataHash", + "type": "string" + }, + { + "internalType": "bool", + "name": "voided", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "collectionIndex", + "type": "uint256" + } + ], + "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" + } +] \ No newline at end of file diff --git a/packages/common/src/abis/IBosonOrchestrationHandler.json b/packages/common/src/abis/IBosonOrchestrationHandler.json index 4c64a8cbe..b67dc3a44 100644 --- a/packages/common/src/abis/IBosonOrchestrationHandler.json +++ b/packages/common/src/abis/IBosonOrchestrationHandler.json @@ -1,4 +1,850 @@ [ + { + "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": "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": "FeeAmountNotYetSupported", + "type": "error" + }, + { + "inputs": [], + "name": "FeeAmountTooHigh", + "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": "InvalidBuyerPercent", + "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": "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": "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": "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": "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": "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": "SellerAddressMustBeUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SellerAlreadyApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerNotApproved", + "type": "error" + }, + { + "inputs": [], + "name": "SellerSaltNotUnique", + "type": "error" + }, + { + "inputs": [], + "name": "SignerAndSignatureDoNotMatch", + "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": [], + "name": "UnexpectedERC721Received", + "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": [ @@ -906,6 +1752,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -925,6 +1776,23 @@ "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, @@ -1076,6 +1944,49 @@ "name": "OfferExtended", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "offerId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable[]", + "name": "recipients", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "bps", + "type": "uint256[]" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.RoyaltyInfo", + "name": "royaltyInfo", + "type": "tuple" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "OfferRoyaltyInfoUpdated", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1144,6 +2055,43 @@ "name": "RangeReserved", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "sellerId", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "address payable", + "name": "wallet", + "type": "address" + }, + { + "internalType": "uint256", + "name": "minRoyaltyPercentage", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct BosonTypes.RoyaltyRecipientInfo[]", + "name": "royaltyRecipients", + "type": "tuple[]" + }, + { + "indexed": true, + "internalType": "address", + "name": "executedBy", + "type": "address" + } + ], + "name": "RoyaltyRecipientsChanged", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -1587,6 +2535,31 @@ "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": [ @@ -1669,6 +2642,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1688,6 +2666,23 @@ "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": "struct BosonTypes.Offer", @@ -1757,6 +2752,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createOfferAddToGroup", @@ -1803,6 +2803,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1822,6 +2827,23 @@ "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": "struct BosonTypes.Offer", @@ -1928,6 +2950,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createOfferAndTwinWithBundle", @@ -1974,6 +3001,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -1993,6 +3025,23 @@ "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": "struct BosonTypes.Offer", @@ -2102,7 +3151,12 @@ }, { "internalType": "uint256", - "name": "_agentId", + "name": "_agentId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", "type": "uint256" } ], @@ -2150,6 +3204,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2169,6 +3228,23 @@ "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": "struct BosonTypes.Offer", @@ -2322,6 +3398,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createOfferWithConditionAndTwinAndBundle", @@ -2368,6 +3449,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2387,6 +3473,23 @@ "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": "struct BosonTypes.Offer", @@ -2448,14 +3551,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "internalType": "uint256", @@ -2466,6 +3576,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createPremintedOfferAddToGroup", @@ -2512,6 +3627,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2531,6 +3651,23 @@ "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": "struct BosonTypes.Offer", @@ -2592,14 +3729,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -2647,6 +3791,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createPremintedOfferAndTwinWithBundle", @@ -2693,6 +3842,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2712,6 +3866,23 @@ "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": "struct BosonTypes.Offer", @@ -2773,14 +3944,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -2833,6 +4011,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createPremintedOfferWithCondition", @@ -2879,6 +4062,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -2898,6 +4086,23 @@ "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": "struct BosonTypes.Offer", @@ -2959,14 +4164,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -3061,6 +4273,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createPremintedOfferWithConditionAndTwinAndBundle", @@ -3149,6 +4366,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3168,6 +4390,23 @@ "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": "struct BosonTypes.Offer", @@ -3271,6 +4510,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndOffer", @@ -3359,6 +4603,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3378,6 +4627,23 @@ "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": "struct BosonTypes.Offer", @@ -3523,6 +4789,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndOfferAndTwinWithBundle", @@ -3611,6 +4882,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3630,6 +4906,23 @@ "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": "struct BosonTypes.Offer", @@ -3780,6 +5073,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndOfferWithCondition", @@ -3868,6 +5166,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -3887,6 +5190,23 @@ "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": "struct BosonTypes.Offer", @@ -4079,6 +5399,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndOfferWithConditionAndTwinAndBundle", @@ -4167,6 +5492,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4186,6 +5516,23 @@ "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": "struct BosonTypes.Offer", @@ -4247,14 +5594,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -4299,6 +5653,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndPremintedOffer", @@ -4387,6 +5746,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4406,6 +5770,23 @@ "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": "struct BosonTypes.Offer", @@ -4467,14 +5848,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -4561,6 +5949,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndPremintedOfferAndTwinWithBundle", @@ -4649,6 +6042,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4668,6 +6066,23 @@ "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": "struct BosonTypes.Offer", @@ -4729,14 +6144,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -4828,6 +6250,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndPremintedOfferWithCondition", @@ -4916,6 +6343,11 @@ "name": "exchangeToken", "type": "address" }, + { + "internalType": "enum BosonTypes.PriceType", + "name": "priceType", + "type": "uint8" + }, { "internalType": "string", "name": "metadataUri", @@ -4935,6 +6367,23 @@ "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": "struct BosonTypes.Offer", @@ -4996,14 +6445,21 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "_reservedRangeLength", - "type": "uint256" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "reservedRangeLength", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct BosonTypes.PremintParameters", + "name": "_premintParameters", + "type": "tuple" }, { "components": [ @@ -5137,6 +6593,11 @@ "internalType": "uint256", "name": "_agentId", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_feeLimit", + "type": "uint256" } ], "name": "createSellerAndPremintedOfferWithConditionAndTwinAndBundle", diff --git a/packages/common/src/abis/IBosonVoucher.json b/packages/common/src/abis/IBosonVoucher.json index 5f63ee91d..d5ae3d98e 100644 --- a/packages/common/src/abis/IBosonVoucher.json +++ b/packages/common/src/abis/IBosonVoucher.json @@ -108,19 +108,6 @@ "name": "RangeReserved", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "royaltyPercentage", - "type": "uint256" - } - ], - "name": "RoyaltyPercentageChanged", - "type": "event" - }, { "anonymous": false, "inputs": [ @@ -155,12 +142,6 @@ "name": "sellerId", "type": "uint256" }, - { - "indexed": true, - "internalType": "uint256", - "name": "royaltyPercentage", - "type": "uint256" - }, { "indexed": true, "internalType": "string", @@ -385,19 +366,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "name": "getRoyaltyPercentage", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [], "name": "getSellerId", @@ -694,19 +662,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newRoyaltyPercentage", - "type": "uint256" - } - ], - "name": "setRoyaltyPercentage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { diff --git a/packages/common/src/abis/index.ts b/packages/common/src/abis/index.ts index ca33471c3..2f4f82db5 100644 --- a/packages/common/src/abis/index.ts +++ b/packages/common/src/abis/index.ts @@ -2,11 +2,12 @@ import BiconomyForwarderABI from "./BiconomyForwarder.json"; import ERC1155ABI from "./ERC1155.json"; +import ERC165ABI from "./ERC165.json"; import ERC20ABI from "./ERC20.json"; import ERC721EnumerableABI from "./ERC721Enumerable.json"; -import ERC165ABI from "./ERC165.json"; import IBosonAccountHandlerABI from "./IBosonAccountHandler.json"; import IBosonAccountHandlerLegacyABI from "./IBosonAccountHandlerLegacy.json"; +import IBosonConfigHandlerABI from "./IBosonConfigHandler.json"; import IBosonDisputeHandlerABI from "./IBosonDisputeHandler.json"; import IBosonExchangeHandlerABI from "./IBosonExchangeHandler.json"; import IBosonFundsHandlerABI from "./IBosonFundsHandler.json"; @@ -14,6 +15,7 @@ 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 IBosonOfferHandlerLegacyABI from "./IBosonOfferHandlerLegacy.json"; import IBosonOrchestrationHandlerABI from "./IBosonOrchestrationHandler.json"; import IBosonVoucherABI from "./IBosonVoucher.json"; @@ -24,11 +26,12 @@ import ProtocolDiamondABI from "./ProtocolDiamond.json"; export { BiconomyForwarderABI, ERC1155ABI, - ERC20ABI, ERC165ABI, + ERC20ABI, ERC721EnumerableABI, IBosonAccountHandlerABI, IBosonAccountHandlerLegacyABI, + IBosonConfigHandlerABI, IBosonDisputeHandlerABI, IBosonExchangeHandlerABI, IBosonFundsHandlerABI, @@ -36,6 +39,7 @@ export { IBosonGroupHandlerLegacyABI, IBosonMetaTransactionsHandlerABI, IBosonOfferHandlerABI, + IBosonOfferHandler230ABI, IBosonOfferHandlerLegacyABI, IBosonOrchestrationHandlerABI, IBosonVoucherABI, diff --git a/packages/common/src/configs.ts b/packages/common/src/configs.ts index bbb346908..18c1a204c 100644 --- a/packages/common/src/configs.ts +++ b/packages/common/src/configs.ts @@ -24,11 +24,11 @@ export const envConfigs: Record = { ipfsMetadataUrl: "http://127.0.0.1:5001", contracts: { protocolDiamond: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", - testErc20: "0x851356ae760d987E095750cCeb3bC6014560891C", // Foreign20 contract - testErc721: "0xf5059a5D33d5853360D16C683c16e67980206f36", // Foreign721 contract - testErc1155: "0x95401dc811bb5740090279Ba06cfA8fcF6113778", // Foreign1155 contract + testErc20: "0x95401dc811bb5740090279Ba06cfA8fcF6113778", // Foreign20 contract + testErc721: "0x998abeb3E57409262aE5b751f60747921B33613E", // Foreign721 contract + testErc1155: "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49", // Foreign1155 contract forwarder: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", // MockForwarder contract - seaport: "0x70e0bA845a1A0F2DA3359C97E0285013525FFC49" // MockSeaport contract + seaport: "0x99bbA657f2BbC93c02D617f8bA121cB8Fc104Acf" // MockSeaport contract }, metaTx: { relayerUrl: "http://localhost:8888", diff --git a/packages/common/src/types/accounts.ts b/packages/common/src/types/accounts.ts index e9983369a..a5b9f5a8c 100644 --- a/packages/common/src/types/accounts.ts +++ b/packages/common/src/types/accounts.ts @@ -115,6 +115,7 @@ export type SellerStruct = { authTokenId: BigNumberish; authTokenType: number; active: boolean; + metadataUri: string; }; export type AuthTokenStruct = { @@ -144,8 +145,6 @@ export type CreateCollectionArgs = { collectionId: string; /** Uri of the metadata of the collection voucher contract */ contractUri: string; - /** Royalty percentage for voucher secondary sales */ - royaltyPercentage: BigNumberish; /** collectionSalt is added to the seller admin address to give the sellerSalt that is used to compute the voucher contract address. By default, deduced from collectionId */ collectionSalt?: string; diff --git a/packages/common/src/types/offers.ts b/packages/common/src/types/offers.ts index 799533b32..b6f0777fb 100644 --- a/packages/common/src/types/offers.ts +++ b/packages/common/src/types/offers.ts @@ -1,5 +1,15 @@ import { BigNumberish } from "@ethersproject/bignumber"; +export enum PriceType { + Static = 0, + Discovery = 1 +} + +export type RoyaltyInfo = { + recipients: string[]; + bps: BigNumberish[]; +}; + export type CreateOfferArgs = { price: BigNumberish; sellerDeposit: BigNumberish; @@ -18,6 +28,9 @@ export type CreateOfferArgs = { metadataUri: string; metadataHash: string; collectionIndex: BigNumberish; + feeLimit?: BigNumberish; + priceType?: PriceType; + royaltyInfo?: RoyaltyInfo[]; }; export type OfferStruct = { @@ -28,10 +41,12 @@ export type OfferStruct = { buyerCancelPenalty: BigNumberish; quantityAvailable: BigNumberish; exchangeToken: string; + priceType: number; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumberish; + royaltyInfo: RoyaltyInfo[]; }; export type OfferDatesStruct = { @@ -53,3 +68,8 @@ export type DisputeResolutionTermsStruct = { feeAmount: BigNumberish; buyerEscalationDeposit: BigNumberish; }; + +export type PremintParametersStruct = { + reservedRangeLength: BigNumberish; + to: string; +}; diff --git a/packages/common/tests/mocks.ts b/packages/common/tests/mocks.ts index 85536d13e..4f320d88d 100644 --- a/packages/common/tests/mocks.ts +++ b/packages/common/tests/mocks.ts @@ -12,7 +12,8 @@ import { OfferDatesStruct, OfferDurationsStruct, TransactionRequest, - TransactionReceipt + TransactionReceipt, + PriceType } from "../src/types"; import { MetadataType } from "@bosonprotocol/metadata"; @@ -34,6 +35,13 @@ export function mockOfferStruct(overrides?: Partial): OfferStruct { exchangeToken: AddressZero, metadataUri: IPFS_URI, metadataHash: IPFS_HASH, + priceType: PriceType.Static, + royaltyInfo: [ + { + recipients: [AddressZero], + bps: [0] + } + ], ...overrides }; } diff --git a/packages/core-sdk/src/accounts/handler.ts b/packages/core-sdk/src/accounts/handler.ts index 82f8dc441..657fdba85 100644 --- a/packages/core-sdk/src/accounts/handler.ts +++ b/packages/core-sdk/src/accounts/handler.ts @@ -22,7 +22,12 @@ import { encodeIsSellerSaltAvailable, decodeIsSellerSaltAvailable, encodeCalculateCollectionAddress, - decodeCalculateCollectionAddress + decodeCalculateCollectionAddress, + encodeAddRoyaltyRecipients, + encodeUpdateRoyaltyRecipients, + encodeGetRoyaltyRecipients, + decodeGetRoyaltyRecipients, + encodeRemoveRoyaltyRecipients } from "./interface"; import { getDisputeResolverById } from "./subgraph"; import { @@ -33,7 +38,8 @@ import { DisputeResolverUpdates, OptInToSellerUpdateArgs, OptInToDisputeResolverUpdateArgs, - CreateCollectionArgs + CreateCollectionArgs, + RoyaltyRecipientInfo } from "./types"; import { storeMetadataOnTheGraph } from "../offers/storage"; @@ -291,3 +297,52 @@ export async function calculateCollectionAddress(args: { }); return decodeCalculateCollectionAddress(result); } + +export async function addRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipients: RoyaltyRecipientInfo[]; + contractAddress: string; + web3Lib: Web3LibAdapter; +}): Promise { + return args.web3Lib.sendTransaction({ + to: args.contractAddress, + data: encodeAddRoyaltyRecipients(args) + }); +} + +export async function updateRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipientIds: BigNumberish[]; + royaltyRecipients: RoyaltyRecipientInfo[]; + contractAddress: string; + web3Lib: Web3LibAdapter; +}): Promise { + return args.web3Lib.sendTransaction({ + to: args.contractAddress, + data: encodeUpdateRoyaltyRecipients(args) + }); +} + +export async function removeRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipientIds: BigNumberish[]; + contractAddress: string; + web3Lib: Web3LibAdapter; +}): Promise { + return args.web3Lib.sendTransaction({ + to: args.contractAddress, + data: encodeRemoveRoyaltyRecipients(args) + }); +} + +export async function getRoyaltyRecipients(args: { + sellerId: BigNumberish; + contractAddress: string; + web3Lib: Web3LibAdapter; +}): Promise { + const result = await args.web3Lib.call({ + to: args.contractAddress, + data: encodeGetRoyaltyRecipients(args) + }); + return decodeGetRoyaltyRecipients(result); +} diff --git a/packages/core-sdk/src/accounts/interface.ts b/packages/core-sdk/src/accounts/interface.ts index 1441d88b8..e5aec2f6e 100644 --- a/packages/core-sdk/src/accounts/interface.ts +++ b/packages/core-sdk/src/accounts/interface.ts @@ -1,6 +1,6 @@ import { Interface } from "@ethersproject/abi"; import { formatBytes32String } from "@ethersproject/strings"; -import { BigNumberish } from "@ethersproject/bignumber"; +import { BigNumberish, BigNumber } from "@ethersproject/bignumber"; import { CreateSellerArgs, CreateDisputeResolverArgs, @@ -16,7 +16,8 @@ import { SellerUpdateFields, OptInToDisputeResolverUpdateArgs, DisputeResolverUpdateFields, - CreateCollectionArgs + CreateCollectionArgs, + RoyaltyRecipientInfo } from "./types"; import { AddressZero } from "@ethersproject/constants"; import { INITIAL_COLLECTION_ID } from "./handler"; @@ -146,7 +147,16 @@ export function createSellerArgsToStruct( args: CreateSellerArgs, collectionSalt: string ): { - sellerStruct: Partial; + sellerStruct: Pick< + SellerStruct, + | "id" + | "assistant" + | "admin" + | "clerk" + | "treasury" + | "active" + | "metadataUri" + >; authTokenStruct: AuthTokenStruct; voucherInitValues: VoucherInitValuesStruct; } { @@ -175,7 +185,7 @@ export function createCollectionArgsToStruct(args: CreateCollectionArgs): { externalId: string; voucherInitValues: VoucherInitValuesStruct; } { - const { collectionId, contractUri, royaltyPercentage } = args; + const { collectionId, contractUri } = args; const collectionSalt = args.collectionSalt || formatBytes32String(collectionId || INITIAL_COLLECTION_ID); @@ -183,7 +193,7 @@ export function createCollectionArgsToStruct(args: CreateCollectionArgs): { externalId: collectionId, voucherInitValues: { contractURI: contractUri, - royaltyPercentage, + royaltyPercentage: "0", // useless after protocol v2.4.0 collectionSalt } }; @@ -205,7 +215,10 @@ function argsToSellerStruct(args: { admin: string; treasury: string; metadataUri: string; -}): Partial { +}): Pick< + SellerStruct, + "id" | "assistant" | "admin" | "clerk" | "treasury" | "active" | "metadataUri" +> { return { // NOTE: It doesn't matter which values we set for `id` and `active` here // as they will be overridden by the contract. But to conform to the struct @@ -273,3 +286,50 @@ export function decodeCalculateCollectionAddress(result: string): { ); return { collectionAddress, isAvailable }; } + +export function encodeAddRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipients: RoyaltyRecipientInfo[]; +}) { + return bosonAccountHandlerIface.encodeFunctionData("addRoyaltyRecipients", [ + args.sellerId, + args.royaltyRecipients + ]); +} + +export function encodeUpdateRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipientIds: BigNumberish[]; + royaltyRecipients: RoyaltyRecipientInfo[]; +}) { + return bosonAccountHandlerIface.encodeFunctionData( + "updateRoyaltyRecipients", + [args.sellerId, args.royaltyRecipientIds, args.royaltyRecipients] + ); +} + +export function encodeRemoveRoyaltyRecipients(args: { + sellerId: BigNumberish; + royaltyRecipientIds: BigNumberish[]; +}) { + return bosonAccountHandlerIface.encodeFunctionData( + "removeRoyaltyRecipients", + [args.sellerId, args.royaltyRecipientIds] + ); +} + +export function encodeGetRoyaltyRecipients(args: { sellerId: BigNumberish }) { + return bosonAccountHandlerIface.encodeFunctionData("getRoyaltyRecipients", [ + args.sellerId + ]); +} + +export function decodeGetRoyaltyRecipients( + result: string +): RoyaltyRecipientInfo[] { + const [royaltyRecipients] = bosonAccountHandlerIface.decodeFunctionResult( + "getRoyaltyRecipients", + result + ); + return royaltyRecipients; +} diff --git a/packages/core-sdk/src/accounts/mixin.ts b/packages/core-sdk/src/accounts/mixin.ts index adbc0b267..1b6081908 100644 --- a/packages/core-sdk/src/accounts/mixin.ts +++ b/packages/core-sdk/src/accounts/mixin.ts @@ -620,4 +620,64 @@ export class AccountsMixin extends BaseCoreSDK { ): Promise { return accounts.subgraph.getOfferCollections(this._subgraphUrl, queryVars); } + + public async addRoyaltyRecipients( + sellerId: BigNumberish, + royaltyRecipients: accounts.RoyaltyRecipientInfo[], + overrides: Partial<{ + contractAddress: string; + }> = {} + ) { + return accounts.handler.addRoyaltyRecipients({ + sellerId, + royaltyRecipients, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } + + public async updateRoyaltyRecipients( + sellerId: BigNumberish, + royaltyRecipientIds: BigNumberish[], + royaltyRecipients: accounts.RoyaltyRecipientInfo[], + overrides: Partial<{ + contractAddress: string; + }> = {} + ) { + return accounts.handler.updateRoyaltyRecipients({ + sellerId, + royaltyRecipientIds, + royaltyRecipients, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } + + public async removeRoyaltyRecipients( + sellerId: BigNumberish, + royaltyRecipientIds: BigNumberish[], + overrides: Partial<{ + contractAddress: string; + }> = {} + ) { + return accounts.handler.removeRoyaltyRecipients({ + sellerId, + royaltyRecipientIds, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } + + public async getRoyaltyRecipients( + sellerId: BigNumberish, + overrides: Partial<{ + contractAddress: string; + }> = {} + ) { + return accounts.handler.getRoyaltyRecipients({ + sellerId, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } } diff --git a/packages/core-sdk/src/accounts/queries.graphql b/packages/core-sdk/src/accounts/queries.graphql index 1b4d388b1..5d7727982 100644 --- a/packages/core-sdk/src/accounts/queries.graphql +++ b/packages/core-sdk/src/accounts/queries.graphql @@ -380,7 +380,20 @@ fragment BaseSellerFields on Seller { voucherCloneAddress active contractURI - royaltyPercentage + royaltyRecipients { + id + recipient { + id + wallet + royalties { + bps + offer { + id + } + } + } + minRoyaltyPercentage + } metadataUri metadata { id diff --git a/packages/core-sdk/src/accounts/types.ts b/packages/core-sdk/src/accounts/types.ts index d93c2126d..c2a30a530 100644 --- a/packages/core-sdk/src/accounts/types.ts +++ b/packages/core-sdk/src/accounts/types.ts @@ -45,3 +45,8 @@ export type DisputeResolverUpdates = Partial< escalationResponsePeriodInMS: BigNumberish; } >; + +export type RoyaltyRecipientInfo = { + wallet: string; + minRoyaltyPercentage: BigNumberish; +}; diff --git a/packages/core-sdk/src/core-sdk.ts b/packages/core-sdk/src/core-sdk.ts index b05e261fb..51f76ac22 100644 --- a/packages/core-sdk/src/core-sdk.ts +++ b/packages/core-sdk/src/core-sdk.ts @@ -24,6 +24,7 @@ import { ERC20Mixin } from "./erc20/mixin"; import { ERC721Mixin } from "./erc721/mixin"; import { ERC1155Mixin } from "./erc1155/mixin"; import { ERC165Mixin } from "./erc165/mixin"; +import { ProtocolConfigMixin } from "./protocol-config/mixin"; export class CoreSDK extends BaseCoreSDK { /** @@ -143,7 +144,8 @@ export interface CoreSDK ERC20Mixin, ERC721Mixin, ERC1155Mixin, - ERC165Mixin {} + ERC165Mixin, + ProtocolConfigMixin {} applyMixins(CoreSDK, [ MetadataMixin, AccountsMixin, @@ -160,5 +162,6 @@ applyMixins(CoreSDK, [ ERC20Mixin, ERC721Mixin, ERC1155Mixin, - ERC165Mixin + ERC165Mixin, + ProtocolConfigMixin ]); diff --git a/packages/core-sdk/src/meta-tx/handler.ts b/packages/core-sdk/src/meta-tx/handler.ts index 277524fa3..37d8cfd46 100644 --- a/packages/core-sdk/src/meta-tx/handler.ts +++ b/packages/core-sdk/src/meta-tx/handler.ts @@ -472,7 +472,7 @@ export async function signMetaTxCreateOffer( return signMetaTx({ ...args, functionName: - "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256)", + "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)", functionSignature: encodeCreateOffer(args.createOfferArgs) }); } @@ -504,7 +504,7 @@ export async function signMetaTxCreateOfferBatch( return signMetaTx({ ...args, functionName: - "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256)[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],uint256[],uint256[])", + "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[])", functionSignature: encodeCreateOfferBatch(args.createOffersArgs) }); } @@ -809,7 +809,7 @@ export async function signMetaTxCreateOfferWithCondition( return signMetaTx({ ...args, functionName: - "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256)", + "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)", functionSignature: encodeCreateOfferWithCondition( args.offerToCreate, args.condition diff --git a/packages/core-sdk/src/offers/handler.ts b/packages/core-sdk/src/offers/handler.ts index 581476b23..6f6e43044 100644 --- a/packages/core-sdk/src/offers/handler.ts +++ b/packages/core-sdk/src/offers/handler.ts @@ -3,13 +3,16 @@ import { Web3LibAdapter, TransactionResponse, MetadataStorage, - utils + utils, + RoyaltyInfo } from "@bosonprotocol/common"; import { bosonOfferHandlerIface, encodeCreateOffer, encodeCreateOfferBatch, - encodeReserveRange + encodeReserveRange, + encodeUpdateOfferRoyaltyRecipients, + encodeUpdateOfferRoyaltyRecipientsBatch } from "./interface"; import { getOfferById, getOffers } from "./subgraph"; import { storeMetadataOnTheGraph } from "./storage"; @@ -189,6 +192,30 @@ export async function extendOfferBatch(args: { }); } +export async function updateOfferRoyaltyRecipients(args: { + contractAddress: string; + web3Lib: Web3LibAdapter; + offerId: BigNumberish; + royaltyInfo: RoyaltyInfo; +}) { + return args.web3Lib.sendTransaction({ + to: args.contractAddress, + data: encodeUpdateOfferRoyaltyRecipients(args) + }); +} + +export async function updateOfferRoyaltyRecipientsBatch(args: { + contractAddress: string; + web3Lib: Web3LibAdapter; + offerIds: BigNumberish[]; + royaltyInfo: RoyaltyInfo; +}) { + return args.web3Lib.sendTransaction({ + to: args.contractAddress, + data: encodeUpdateOfferRoyaltyRecipientsBatch(args) + }); +} + function checkIfOfferVoidable( offerId: BigNumberish, signerAddress: string, diff --git a/packages/core-sdk/src/offers/interface.ts b/packages/core-sdk/src/offers/interface.ts index 0d634f1f3..150a76b15 100644 --- a/packages/core-sdk/src/offers/interface.ts +++ b/packages/core-sdk/src/offers/interface.ts @@ -3,12 +3,15 @@ import { utils, abis, OfferDatesStruct, - OfferDurationsStruct + OfferDurationsStruct, + PriceType, + RoyaltyInfo } 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); @@ -19,39 +22,69 @@ export function encodeCreateOffer(args: CreateOfferArgs) { ); } +export function encodeUpdateOfferRoyaltyRecipients(args: { + offerId: BigNumberish; + royaltyInfo: RoyaltyInfo; +}) { + return bosonOfferHandlerIface.encodeFunctionData( + "updateOfferRoyaltyRecipients", + [args.offerId, args.royaltyInfo] + ); +} + +export function encodeUpdateOfferRoyaltyRecipientsBatch(args: { + offerIds: BigNumberish[]; + royaltyInfo: RoyaltyInfo; +}) { + return bosonOfferHandlerIface.encodeFunctionData( + "updateOfferRoyaltyRecipientsBatch", + [args.offerIds, args.royaltyInfo] + ); +} + export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { const argsTuples: [ Partial, Partial, Partial, BigNumberish, + BigNumberish, BigNumberish - ][] = argsBatch.map((args) => [ - argsToOfferStruct(args), - argsToOfferDatesStruct(args), - argsToOfferDurationsStruct(args), - args.disputeResolverId, - args.agentId - ]); - const [offers, offerDates, offerDurations, disputeResolverIds, agentIds]: [ + ][] = argsBatch.map((args) => createOfferArgsToStructs(args)); + const [ + offers, + offerDates, + offerDurations, + disputeResolverIds, + agentIds, + feeLimits + ]: [ Partial[], Partial[], Partial[], BigNumberish[], + BigNumberish[], BigNumberish[] ] = argsTuples.reduce( (acc, tuple) => { - const [offer, offerDates, offerDurations, disputeResolverId, agentId] = - tuple; + const [ + offer, + offerDates, + offerDurations, + disputeResolverId, + agentId, + feeLimit + ] = tuple; return [ [...acc[0], offer], [...acc[1], offerDates], [...acc[2], offerDurations], [...acc[3], disputeResolverId], - [...acc[4], agentId] + [...acc[4], agentId], + [...acc[5], feeLimit] ]; }, - [[], [], [], [], []] + [[], [], [], [], [], []] ); return bosonOfferHandlerIface.encodeFunctionData("createOfferBatch", [ @@ -59,7 +92,8 @@ export function encodeCreateOfferBatch(argsBatch: CreateOfferArgs[]) { offerDates, offerDurations, disputeResolverIds, - agentIds + agentIds, + feeLimits ]); } @@ -70,25 +104,49 @@ export function createOfferArgsToStructs( Partial, Partial, BigNumberish, + BigNumberish, BigNumberish ] { + const feeLimit = args.feeLimit !== undefined ? args.feeLimit : args.price; return [ argsToOfferStruct(args), argsToOfferDatesStruct(args), argsToOfferDurationsStruct(args), args.disputeResolverId, - args.agentId + args.agentId, + feeLimit ]; } export function argsToOfferStruct(args: CreateOfferArgs): Partial { const { exchangeToken, ...restArgs } = args; + const priceType = + args.priceType !== undefined ? args.priceType : PriceType.Static; + const royaltyInfo = + args.royaltyInfo !== undefined + ? args.royaltyInfo + : [ + { + recipients: [], + bps: [] + } + ]; + return { id: "0", sellerId: "0", ...restArgs, - exchangeToken: getAddress(exchangeToken) + exchangeToken: getAddress(exchangeToken), + priceType, + royaltyInfo: royaltyInfo.map((royaltyInfoItem) => { + return { + ...royaltyInfoItem, + recipients: royaltyInfoItem.recipients.map((recipient) => + getAddress(recipient) + ) + }; + }) }; } diff --git a/packages/core-sdk/src/offers/mixin.ts b/packages/core-sdk/src/offers/mixin.ts index 75be11466..e762e7070 100644 --- a/packages/core-sdk/src/offers/mixin.ts +++ b/packages/core-sdk/src/offers/mixin.ts @@ -12,7 +12,8 @@ import { Log, TokenType, EvaluationMethod, - GatingType + GatingType, + RoyaltyInfo } from "@bosonprotocol/common"; import groupBy from "lodash/groupBy"; import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; @@ -78,7 +79,7 @@ export class OfferMixin extends BaseCoreSDK { * @returns Created offer id. */ public getCreatedOfferIdFromLogs(logs: Log[]): string | null { - const offerId = getValueFromLogs({ + const offerId = getValueFromLogs({ iface: offers.iface.bosonOfferHandlerIface, logs, eventArgsKey: "offerId", @@ -87,13 +88,13 @@ export class OfferMixin extends BaseCoreSDK { return ( offerId || - getValueFromLogs({ + getValueFromLogs({ iface: orchestration.iface.bosonOrchestrationHandlerIface, logs, eventArgsKey: "offerId", eventName: "OfferCreated" }) - ); + )?.toString(); } /** @@ -102,12 +103,12 @@ export class OfferMixin extends BaseCoreSDK { * @returns Array of created offerIds. */ public getCreatedOfferIdsFromLogs(logs: Log[]): string[] { - return getValuesFromLogs({ + return getValuesFromLogs({ iface: offers.iface.bosonOfferHandlerIface, logs, eventArgsKey: "offerId", eventName: "OfferCreated" - }); + }).map((o) => o.toString()); } /** @@ -116,12 +117,12 @@ export class OfferMixin extends BaseCoreSDK { * @returns Array of group Ids. */ public getCreatedGroupIdsFromLogs(logs: Log[]): string[] { - return getValuesFromLogs({ + return getValuesFromLogs({ iface: groups.iface.bosonGroupHandlerIface, logs, eventArgsKey: "groupId", eventName: "GroupCreated" - }); + }).map((g) => g.toString()); } /** @@ -131,7 +132,7 @@ export class OfferMixin extends BaseCoreSDK { * @returns Created offer id. */ public getCreatedSellerIdFromLogs(logs: Log[]): string | null { - const sellerId = getValueFromLogs({ + const sellerId = getValueFromLogs({ iface: accounts.iface.bosonAccountHandlerIface, logs, eventArgsKey: "sellerId", @@ -140,13 +141,13 @@ export class OfferMixin extends BaseCoreSDK { return ( sellerId || - getValueFromLogs({ + getValueFromLogs({ iface: orchestration.iface.bosonOrchestrationHandlerIface, logs, eventArgsKey: "sellerId", eventName: "SellerCreated" }) - ); + )?.toString(); } /** @@ -681,4 +682,48 @@ export class OfferMixin extends BaseCoreSDK { ); return offers.checkExchangePolicy(offerData, rules); } + + /** + * Sets new valid royalty info to a given offer. + * @param offerId - Id of the offer + * @param royaltyInfo - new royaltyInfo to be applied + * @param overrides - Optional overrides. + * @returns Transaction response. + */ + public async updateOfferRoyaltyRecipients( + offerId: BigNumberish, + royaltyInfo: RoyaltyInfo, + overrides: Partial<{ + contractAddress: string; + }> = {} + ): Promise { + return offers.handler.updateOfferRoyaltyRecipients({ + offerId, + royaltyInfo, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } + + /** + * Sets new valid until date for a batch of offers. + * @param offerIds - list of ids of the offers to extend + * @param royaltyInfo - new royaltyInfo to be applied + * @param overrides - Optional overrides. + * @returns Transaction response. + */ + public async updateOfferRoyaltyRecipientsBatch( + offerIds: BigNumberish[], + royaltyInfo: RoyaltyInfo, + overrides: Partial<{ + contractAddress: string; + }> = {} + ): Promise { + return offers.handler.updateOfferRoyaltyRecipientsBatch({ + offerIds, + royaltyInfo, + web3Lib: this._web3Lib, + contractAddress: overrides.contractAddress || this._protocolDiamond + }); + } } diff --git a/packages/core-sdk/src/offers/queries.graphql b/packages/core-sdk/src/offers/queries.graphql index aa3e82e39..e6d2fe145 100644 --- a/packages/core-sdk/src/offers/queries.graphql +++ b/packages/core-sdk/src/offers/queries.graphql @@ -155,6 +155,17 @@ fragment BaseOfferFields on Offer { disputeResolverId numberOfCommits numberOfRedemptions + priceType + royaltyInfos { + timestamp + recipients { + recipient { + id + wallet + } + bps + } + } condition { ...BaseConditionFields } diff --git a/packages/core-sdk/src/offers/renderContractualAgreement.ts b/packages/core-sdk/src/offers/renderContractualAgreement.ts index aee09bd71..f1aca50d8 100644 --- a/packages/core-sdk/src/offers/renderContractualAgreement.ts +++ b/packages/core-sdk/src/offers/renderContractualAgreement.ts @@ -1,7 +1,7 @@ import * as yup from "yup"; import { ITokenInfo } from "./../utils/tokenInfoManager"; import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; -import { utils } from "@bosonprotocol/common"; +import { PriceType, utils } from "@bosonprotocol/common"; import Mustache from "mustache"; import { formatUnits } from "@ethersproject/units"; @@ -11,6 +11,7 @@ import { MetadataType, ProductV1MetadataEntity } from "../subgraph"; +import { AddressZero } from "@ethersproject/constants"; export type AdditionalOfferMetadata = { sellerContactMethod: string; @@ -178,7 +179,15 @@ function convertExistingOfferData(offerDataSubGraph: OfferFieldsFragment): { offerDataSubGraph.voucherRedeemableUntilDate, disputePeriodDurationInMS: offerDataSubGraph.disputePeriodDuration, resolutionPeriodDurationInMS: offerDataSubGraph.resolutionPeriodDuration, - exchangeToken: offerDataSubGraph.exchangeToken.address + exchangeToken: offerDataSubGraph.exchangeToken.address, + feeLimit: offerDataSubGraph.price, // feeLimit is never stored on-chain. By default, set it to offer price + priceType: PriceType.Static, + royaltyInfo: [ + { + recipients: [AddressZero], // AddressZero means Seller's treasury account + bps: ["0"] // Values should be greater or equal than Seller's minimum royalty amount + } + ] }, offerMetadata: { sellerContactMethod: ( diff --git a/packages/core-sdk/src/offers/types.ts b/packages/core-sdk/src/offers/types.ts index 4833e4031..96f20f443 100644 --- a/packages/core-sdk/src/offers/types.ts +++ b/packages/core-sdk/src/offers/types.ts @@ -1 +1 @@ -export { CreateOfferArgs } from "@bosonprotocol/common"; +export { CreateOfferArgs, PriceType } from "@bosonprotocol/common"; diff --git a/packages/core-sdk/src/orchestration/handler.ts b/packages/core-sdk/src/orchestration/handler.ts index 0f666087c..8865fc25b 100644 --- a/packages/core-sdk/src/orchestration/handler.ts +++ b/packages/core-sdk/src/orchestration/handler.ts @@ -21,6 +21,7 @@ import { CreateOfferArgs } from "../offers/types"; import { CreateSellerArgs } from "../accounts/types"; import { BigNumberish } from "@ethersproject/bignumber"; import { findCollectionSalt } from "../accounts/handler"; +import { PremintParametersStruct } from "@bosonprotocol/common/src"; import { storeMetadataItems } from "../metadata/storeMetadataItems"; export async function createOfferAndSeller(args: { @@ -144,7 +145,7 @@ export async function createSellerAndOfferWithCondition(args: { export async function createPremintedOfferAddToGroup(args: { offerToCreate: CreateOfferArgs; - reservedRangeLength: BigNumberish; + premintParameters: PremintParametersStruct; groupId: BigNumberish; contractAddress: string; web3Lib: Web3LibAdapter; @@ -170,7 +171,7 @@ export async function createPremintedOfferAddToGroup(args: { to: args.contractAddress, data: encodeCreatePremintedOfferAddToGroup( args.offerToCreate, - args.reservedRangeLength, + args.premintParameters, args.groupId ) }); @@ -178,7 +179,7 @@ export async function createPremintedOfferAddToGroup(args: { export async function createPremintedOfferWithCondition(args: { offerToCreate: CreateOfferArgs; - reservedRangeLength: BigNumberish; + premintParameters: PremintParametersStruct; contractAddress: string; web3Lib: Web3LibAdapter; metadataStorage?: MetadataStorage; @@ -204,7 +205,7 @@ export async function createPremintedOfferWithCondition(args: { to: args.contractAddress, data: encodeCreatePremintedOfferWithCondition( args.offerToCreate, - args.reservedRangeLength, + args.premintParameters, args.condition ) }); @@ -213,7 +214,7 @@ export async function createPremintedOfferWithCondition(args: { export async function createSellerAndPremintedOffer(args: { sellerToCreate: CreateSellerArgs; offerToCreate: CreateOfferArgs; - reservedRangeLength: BigNumberish; + premintParameters: PremintParametersStruct; contractAddress: string; web3Lib: Web3LibAdapter; metadataStorage?: MetadataStorage; @@ -249,7 +250,7 @@ export async function createSellerAndPremintedOffer(args: { args.sellerToCreate, collectionSalt, args.offerToCreate, - args.reservedRangeLength + args.premintParameters ) }); } @@ -257,7 +258,7 @@ export async function createSellerAndPremintedOffer(args: { export async function createSellerAndPremintedOfferWithCondition(args: { sellerToCreate: CreateSellerArgs; offerToCreate: CreateOfferArgs; - reservedRangeLength: BigNumberish; + premintParameters: PremintParametersStruct; contractAddress: string; web3Lib: Web3LibAdapter; metadataStorage?: MetadataStorage; @@ -294,7 +295,7 @@ export async function createSellerAndPremintedOfferWithCondition(args: { args.sellerToCreate, collectionSalt, args.offerToCreate, - args.reservedRangeLength, + args.premintParameters, args.condition ) }); diff --git a/packages/core-sdk/src/orchestration/interface.ts b/packages/core-sdk/src/orchestration/interface.ts index ee4ec4af4..b2e98ab1d 100644 --- a/packages/core-sdk/src/orchestration/interface.ts +++ b/packages/core-sdk/src/orchestration/interface.ts @@ -7,6 +7,7 @@ import { CreateSellerArgs } from "../accounts/types"; import { CreateOfferArgs } from "../offers/types"; import { BigNumberish } from "@ethersproject/bignumber"; import { conditionArgsToStructs } from "../groups/interface"; +import { PremintParametersStruct } from "@bosonprotocol/common/src"; export const bosonOrchestrationHandlerIface = new Interface( abis.IBosonOrchestrationHandlerABI @@ -29,7 +30,8 @@ export function encodeCreateSellerAndOffer( offerArgs[3], // disputeResolverId sellerArgs.authTokenStruct, sellerArgs.voucherInitValues, - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } @@ -47,7 +49,8 @@ export function encodeCreateOfferWithCondition( offerArgs[2], // offerDurations offerArgs[3], // disputeResolverId conditionArgsToStructs(condition), - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } @@ -71,14 +74,15 @@ export function encodeCreateSellerAndOfferWithCondition( conditionArgsToStructs(condition), sellerArgs.authTokenStruct, sellerArgs.voucherInitValues, - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } export function encodeCreatePremintedOfferAddToGroup( offer: CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, groupId: BigNumberish ) { const offerArgs = createOfferArgsToStructs(offer); @@ -90,16 +94,17 @@ export function encodeCreatePremintedOfferAddToGroup( offerArgs[1], // offerDates offerArgs[2], // offerDurations offerArgs[3], // disputeResolverId - reservedRangeLength, + premintParameters, groupId, - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } export function encodeCreatePremintedOfferWithCondition( offer: CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, condition: ConditionStruct ) { const offerArgs = createOfferArgsToStructs(offer); @@ -110,9 +115,10 @@ export function encodeCreatePremintedOfferWithCondition( offerArgs[1], // offerDates offerArgs[2], // offerDurations offerArgs[3], // disputeResolverId - reservedRangeLength, + premintParameters, conditionArgsToStructs(condition), - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } @@ -121,7 +127,7 @@ export function encodeCreateSellerAndPremintedOffer( seller: CreateSellerArgs, collectionSalt: string, offer: CreateOfferArgs, - reservedRangeLength: BigNumberish + premintParameters: PremintParametersStruct ) { const sellerArgs = createSellerArgsToStruct(seller, collectionSalt); const offerArgs = createOfferArgsToStructs(offer); @@ -133,10 +139,11 @@ export function encodeCreateSellerAndPremintedOffer( offerArgs[1], // offerDates offerArgs[2], // offerDurations offerArgs[3], // disputeResolverId - reservedRangeLength, + premintParameters, sellerArgs.authTokenStruct, sellerArgs.voucherInitValues, - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } @@ -145,7 +152,7 @@ export function encodeCreateSellerAndPremintedOfferWithCondition( seller: CreateSellerArgs, collectionSalt: string, offer: CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, condition: ConditionStruct ) { const sellerArgs = createSellerArgsToStruct(seller, collectionSalt); @@ -158,11 +165,12 @@ export function encodeCreateSellerAndPremintedOfferWithCondition( offerArgs[1], // offerDates offerArgs[2], // offerDurations offerArgs[3], // disputeResolverId - reservedRangeLength, + premintParameters, conditionArgsToStructs(condition), sellerArgs.authTokenStruct, sellerArgs.voucherInitValues, - offerArgs[4] // agentId + offerArgs[4], // agentId + offerArgs[5] // feeLimit ] ); } diff --git a/packages/core-sdk/src/orchestration/mixin.ts b/packages/core-sdk/src/orchestration/mixin.ts index 39fb63266..f94103730 100644 --- a/packages/core-sdk/src/orchestration/mixin.ts +++ b/packages/core-sdk/src/orchestration/mixin.ts @@ -3,6 +3,7 @@ import { BigNumberish } from "@ethersproject/bignumber"; import { handler } from "."; import { offers, accounts } from ".."; import { BaseCoreSDK } from "./../mixins/base-core-sdk"; +import { PremintParametersStruct } from "@bosonprotocol/common/src"; export class OrchestrationMixin extends BaseCoreSDK { /** @@ -66,7 +67,7 @@ export class OrchestrationMixin extends BaseCoreSDK { */ public async createPremintedOfferAddToGroup( offerToCreate: offers.CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, groupId: BigNumberish, overrides: Partial<{ contractAddress: string; @@ -74,7 +75,7 @@ export class OrchestrationMixin extends BaseCoreSDK { ): Promise { return handler.createPremintedOfferAddToGroup({ offerToCreate, - reservedRangeLength, + premintParameters, groupId, contractAddress: overrides.contractAddress || this._protocolDiamond, web3Lib: this._web3Lib, @@ -95,7 +96,7 @@ export class OrchestrationMixin extends BaseCoreSDK { public async createSellerAndPremintedOffer( sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, overrides: Partial<{ contractAddress: string; }> = {} @@ -103,7 +104,7 @@ export class OrchestrationMixin extends BaseCoreSDK { return handler.createSellerAndPremintedOffer({ sellerToCreate, offerToCreate, - reservedRangeLength, + premintParameters, contractAddress: overrides.contractAddress || this._protocolDiamond, web3Lib: this._web3Lib, metadataStorage: this._metadataStorage, @@ -121,7 +122,7 @@ export class OrchestrationMixin extends BaseCoreSDK { */ public async createPremintedOfferWithCondition( offerToCreate: offers.CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; @@ -129,7 +130,7 @@ export class OrchestrationMixin extends BaseCoreSDK { ): Promise { return handler.createPremintedOfferWithCondition({ offerToCreate, - reservedRangeLength, + premintParameters, condition, contractAddress: overrides.contractAddress || this._protocolDiamond, web3Lib: this._web3Lib, @@ -151,7 +152,7 @@ export class OrchestrationMixin extends BaseCoreSDK { public async createSellerAndPremintedOfferWithCondition( sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, - reservedRangeLength: BigNumberish, + premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; @@ -160,7 +161,7 @@ export class OrchestrationMixin extends BaseCoreSDK { return handler.createSellerAndPremintedOfferWithCondition({ sellerToCreate, offerToCreate, - reservedRangeLength, + premintParameters, contractAddress: overrides.contractAddress || this._protocolDiamond, web3Lib: this._web3Lib, metadataStorage: this._metadataStorage, diff --git a/packages/core-sdk/src/protocol-config/handler.ts b/packages/core-sdk/src/protocol-config/handler.ts new file mode 100644 index 000000000..2e8a05d57 --- /dev/null +++ b/packages/core-sdk/src/protocol-config/handler.ts @@ -0,0 +1,16 @@ +import { Web3LibAdapter } from "@bosonprotocol/common"; +import { + encodeGetMaxRoyaltyPercentage, + decodeGetMaxRoyaltyPercentage +} from "./interface"; + +export async function getMaxRoyaltyPercentage(args: { + contractAddress: string; + web3Lib: Web3LibAdapter; +}): Promise { + const result = await args.web3Lib.call({ + to: args.contractAddress, + data: encodeGetMaxRoyaltyPercentage() + }); + return decodeGetMaxRoyaltyPercentage(result); +} diff --git a/packages/core-sdk/src/protocol-config/index.ts b/packages/core-sdk/src/protocol-config/index.ts new file mode 100644 index 000000000..7a605d43b --- /dev/null +++ b/packages/core-sdk/src/protocol-config/index.ts @@ -0,0 +1,2 @@ +export * as handler from "./handler"; +export * as iface from "./interface"; diff --git a/packages/core-sdk/src/protocol-config/interface.ts b/packages/core-sdk/src/protocol-config/interface.ts new file mode 100644 index 000000000..4a7e276ac --- /dev/null +++ b/packages/core-sdk/src/protocol-config/interface.ts @@ -0,0 +1,18 @@ +import { abis } from "@bosonprotocol/common"; +import { Interface } from "@ethersproject/abi"; + +export const bosonConfigHandlerIface = new Interface( + abis.IBosonConfigHandlerABI +); + +export function encodeGetMaxRoyaltyPercentage(): string { + return bosonConfigHandlerIface.encodeFunctionData("getMaxRoyaltyPercentage"); +} + +export function decodeGetMaxRoyaltyPercentage(result: string): number { + const [maxRoyaltyPercentage] = bosonConfigHandlerIface.decodeFunctionResult( + "getMaxRoyaltyPercentage", + result + ); + return Number(maxRoyaltyPercentage); +} diff --git a/packages/core-sdk/src/protocol-config/mixin.ts b/packages/core-sdk/src/protocol-config/mixin.ts new file mode 100644 index 000000000..02b7a98c5 --- /dev/null +++ b/packages/core-sdk/src/protocol-config/mixin.ts @@ -0,0 +1,15 @@ +import { BaseCoreSDK } from "../mixins/base-core-sdk"; +import { handler } from "."; + +export class ProtocolConfigMixin extends BaseCoreSDK { + public async getMaxRoyaltyPercentage( + overrides: Partial<{ + contractAddress: string; + }> = {} + ): Promise { + return handler.getMaxRoyaltyPercentage({ + contractAddress: overrides.contractAddress || this._protocolDiamond, + web3Lib: this._web3Lib + }); + } +} diff --git a/packages/core-sdk/src/subgraph.ts b/packages/core-sdk/src/subgraph.ts index cfd1a83b9..ab19097a8 100644 --- a/packages/core-sdk/src/subgraph.ts +++ b/packages/core-sdk/src/subgraph.ts @@ -670,6 +670,7 @@ export enum BaseMetadataEntity_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -695,7 +696,6 @@ export enum BaseMetadataEntity_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -1204,6 +1204,7 @@ export enum BundleMetadataEntity_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -1239,7 +1240,6 @@ export enum BundleMetadataEntity_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -1898,6 +1898,7 @@ export enum DisputeResolutionTermsEntity_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -2436,7 +2437,6 @@ export enum Dispute_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -3127,6 +3127,7 @@ export enum Exchange_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -3152,7 +3153,6 @@ export enum Exchange_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -4020,6 +4020,7 @@ export enum MetadataInterface_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -4045,7 +4046,6 @@ export enum MetadataInterface_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -4598,12 +4598,14 @@ export type Offer = { numberOfCommits: Scalars["BigInt"]["output"]; numberOfRedemptions: Scalars["BigInt"]["output"]; price: Scalars["BigInt"]["output"]; + priceType: Scalars["Int"]["output"]; protocolFee: Scalars["BigInt"]["output"]; quantityAvailable: Scalars["BigInt"]["output"]; quantityInitial: Scalars["BigInt"]["output"]; /** Range */ range?: Maybe; resolutionPeriodDuration: Scalars["BigInt"]["output"]; + royaltyInfos: Array; seller: Seller; sellerDeposit: Scalars["BigInt"]["output"]; sellerId: Scalars["BigInt"]["output"]; @@ -4629,6 +4631,18 @@ export type OfferExchangesArgs = { where?: InputMaybe; }; +/** + * Offer + * + */ +export type OfferRoyaltyInfosArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + /** * Offer Collection * @@ -4797,7 +4811,6 @@ export enum OfferCollection_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress" @@ -4933,6 +4946,7 @@ export enum OfferEventLog_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -5219,6 +5233,14 @@ export type Offer_Filter = { numberOfRedemptions_not_in?: InputMaybe>; or?: InputMaybe>>; price?: InputMaybe; + priceType?: InputMaybe; + priceType_gt?: InputMaybe; + priceType_gte?: InputMaybe; + priceType_in?: InputMaybe>; + priceType_lt?: InputMaybe; + priceType_lte?: InputMaybe; + priceType_not?: InputMaybe; + priceType_not_in?: InputMaybe>; price_gt?: InputMaybe; price_gte?: InputMaybe; price_in?: InputMaybe>; @@ -5281,6 +5303,7 @@ export type Offer_Filter = { resolutionPeriodDuration_not_in?: InputMaybe< Array >; + royaltyInfos_?: InputMaybe; seller?: InputMaybe; sellerDeposit?: InputMaybe; sellerDeposit_gt?: InputMaybe; @@ -5447,6 +5470,7 @@ export enum Offer_OrderBy { NUMBEROFCOMMITS = "numberOfCommits", NUMBEROFREDEMPTIONS = "numberOfRedemptions", PRICE = "price", + PRICETYPE = "priceType", PROTOCOLFEE = "protocolFee", QUANTITYAVAILABLE = "quantityAvailable", QUANTITYINITIAL = "quantityInitial", @@ -5457,6 +5481,7 @@ export enum Offer_OrderBy { RANGE__OWNER = "range__owner", RANGE__START = "range__start", RESOLUTIONPERIODDURATION = "resolutionPeriodDuration", + ROYALTYINFOS = "royaltyInfos", SELLER = "seller", SELLERDEPOSIT = "sellerDeposit", SELLERID = "sellerId", @@ -5469,7 +5494,6 @@ export enum Offer_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -5713,12 +5737,16 @@ export enum PendingSeller_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress" } +export enum PriceType { + DISCOVERY = "DISCOVERY", + STATIC = "STATIC" +} + export type ProductV1Brand = { __typename?: "ProductV1Brand"; id: Scalars["ID"]["output"]; @@ -7095,6 +7123,7 @@ export enum ProductV1MetadataEntity_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -7182,7 +7211,6 @@ export enum ProductV1MetadataEntity_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -9747,7 +9775,6 @@ export enum ProductV1Seller_OrderBy { SELLER__CONTRACTURI = "seller__contractURI", SELLER__ID = "seller__id", SELLER__METADATAURI = "seller__metadataUri", - SELLER__ROYALTYPERCENTAGE = "seller__royaltyPercentage", SELLER__SELLERID = "seller__sellerId", SELLER__TREASURY = "seller__treasury", SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress", @@ -10102,6 +10129,7 @@ export enum ProductV1Variant_OrderBy { OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", OFFER__PROTOCOLFEE = "offer__protocolFee", OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", OFFER__QUANTITYINITIAL = "offer__quantityInitial", @@ -10281,6 +10309,14 @@ export type Query = { productV1Variations: Array; rangeEntities: Array; rangeEntity?: Maybe; + royaltyInfo?: Maybe; + royaltyInfos: Array; + royaltyRecipient?: Maybe; + royaltyRecipientXOffer?: Maybe; + royaltyRecipientXOffers: Array; + royaltyRecipientXSeller?: Maybe; + royaltyRecipientXSellers: Array; + royaltyRecipients: Array; salesChannel?: Maybe; salesChannelDeployment?: Maybe; salesChannelDeployments: Array; @@ -11040,6 +11076,70 @@ export type QueryRangeEntityArgs = { subgraphError?: _SubgraphErrorPolicy_; }; +export type QueryRoyaltyInfoArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRoyaltyInfosArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRoyaltyRecipientArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRoyaltyRecipientXOfferArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRoyaltyRecipientXOffersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRoyaltyRecipientXSellerArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryRoyaltyRecipientXSellersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryRoyaltyRecipientsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + export type QuerySalesChannelArgs = { block?: InputMaybe; id: Scalars["ID"]["input"]; @@ -11264,6 +11364,370 @@ export enum RangeEntity_OrderBy { START = "start" } +export type RoyaltyInfo = { + __typename?: "RoyaltyInfo"; + id: Scalars["ID"]["output"]; + offer: Offer; + recipients?: Maybe>; + timestamp: Scalars["BigInt"]["output"]; +}; + +export type RoyaltyInfoRecipientsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type RoyaltyInfo_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + offer?: InputMaybe; + offer_?: InputMaybe; + offer_contains?: InputMaybe; + offer_contains_nocase?: InputMaybe; + offer_ends_with?: InputMaybe; + offer_ends_with_nocase?: InputMaybe; + offer_gt?: InputMaybe; + offer_gte?: InputMaybe; + offer_in?: InputMaybe>; + offer_lt?: InputMaybe; + offer_lte?: InputMaybe; + offer_not?: InputMaybe; + offer_not_contains?: InputMaybe; + offer_not_contains_nocase?: InputMaybe; + offer_not_ends_with?: InputMaybe; + offer_not_ends_with_nocase?: InputMaybe; + offer_not_in?: InputMaybe>; + offer_not_starts_with?: InputMaybe; + offer_not_starts_with_nocase?: InputMaybe; + offer_starts_with?: InputMaybe; + offer_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + recipients?: InputMaybe>; + recipients_?: InputMaybe; + recipients_contains?: InputMaybe>; + recipients_contains_nocase?: InputMaybe>; + recipients_not?: InputMaybe>; + recipients_not_contains?: InputMaybe>; + recipients_not_contains_nocase?: InputMaybe< + Array + >; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; +}; + +export enum RoyaltyInfo_OrderBy { + ID = "id", + OFFER = "offer", + OFFER__AGENTFEE = "offer__agentFee", + OFFER__AGENTID = "offer__agentId", + OFFER__BUYERCANCELPENALTY = "offer__buyerCancelPenalty", + OFFER__COLLECTIONINDEX = "offer__collectionIndex", + OFFER__CREATEDAT = "offer__createdAt", + OFFER__DISPUTEPERIODDURATION = "offer__disputePeriodDuration", + OFFER__DISPUTERESOLVERID = "offer__disputeResolverId", + OFFER__ID = "offer__id", + OFFER__METADATAHASH = "offer__metadataHash", + OFFER__METADATAURI = "offer__metadataUri", + OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", + OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", + OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", + OFFER__PROTOCOLFEE = "offer__protocolFee", + OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", + OFFER__QUANTITYINITIAL = "offer__quantityInitial", + OFFER__RESOLUTIONPERIODDURATION = "offer__resolutionPeriodDuration", + OFFER__SELLERDEPOSIT = "offer__sellerDeposit", + OFFER__SELLERID = "offer__sellerId", + OFFER__VALIDFROMDATE = "offer__validFromDate", + OFFER__VALIDUNTILDATE = "offer__validUntilDate", + OFFER__VOIDED = "offer__voided", + OFFER__VOIDEDAT = "offer__voidedAt", + OFFER__VOUCHERREDEEMABLEFROMDATE = "offer__voucherRedeemableFromDate", + OFFER__VOUCHERREDEEMABLEUNTILDATE = "offer__voucherRedeemableUntilDate", + OFFER__VOUCHERVALIDDURATION = "offer__voucherValidDuration", + RECIPIENTS = "recipients", + TIMESTAMP = "timestamp" +} + +export type RoyaltyRecipient = { + __typename?: "RoyaltyRecipient"; + id: Scalars["ID"]["output"]; + royalties: Array; + sellers: Array; + wallet: Scalars["Bytes"]["output"]; +}; + +export type RoyaltyRecipientRoyaltiesArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type RoyaltyRecipientSellersArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type RoyaltyRecipientXOffer = { + __typename?: "RoyaltyRecipientXOffer"; + bps: Scalars["BigInt"]["output"]; + id: Scalars["ID"]["output"]; + offer: Offer; + recipient: RoyaltyRecipient; +}; + +export type RoyaltyRecipientXOffer_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + bps?: InputMaybe; + bps_gt?: InputMaybe; + bps_gte?: InputMaybe; + bps_in?: InputMaybe>; + bps_lt?: InputMaybe; + bps_lte?: InputMaybe; + bps_not?: InputMaybe; + bps_not_in?: InputMaybe>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + offer?: InputMaybe; + offer_?: InputMaybe; + offer_contains?: InputMaybe; + offer_contains_nocase?: InputMaybe; + offer_ends_with?: InputMaybe; + offer_ends_with_nocase?: InputMaybe; + offer_gt?: InputMaybe; + offer_gte?: InputMaybe; + offer_in?: InputMaybe>; + offer_lt?: InputMaybe; + offer_lte?: InputMaybe; + offer_not?: InputMaybe; + offer_not_contains?: InputMaybe; + offer_not_contains_nocase?: InputMaybe; + offer_not_ends_with?: InputMaybe; + offer_not_ends_with_nocase?: InputMaybe; + offer_not_in?: InputMaybe>; + offer_not_starts_with?: InputMaybe; + offer_not_starts_with_nocase?: InputMaybe; + offer_starts_with?: InputMaybe; + offer_starts_with_nocase?: InputMaybe; + or?: InputMaybe>>; + recipient?: InputMaybe; + recipient_?: InputMaybe; + recipient_contains?: InputMaybe; + recipient_contains_nocase?: InputMaybe; + recipient_ends_with?: InputMaybe; + recipient_ends_with_nocase?: InputMaybe; + recipient_gt?: InputMaybe; + recipient_gte?: InputMaybe; + recipient_in?: InputMaybe>; + recipient_lt?: InputMaybe; + recipient_lte?: InputMaybe; + recipient_not?: InputMaybe; + recipient_not_contains?: InputMaybe; + recipient_not_contains_nocase?: InputMaybe; + recipient_not_ends_with?: InputMaybe; + recipient_not_ends_with_nocase?: InputMaybe; + recipient_not_in?: InputMaybe>; + recipient_not_starts_with?: InputMaybe; + recipient_not_starts_with_nocase?: InputMaybe; + recipient_starts_with?: InputMaybe; + recipient_starts_with_nocase?: InputMaybe; +}; + +export enum RoyaltyRecipientXOffer_OrderBy { + BPS = "bps", + ID = "id", + OFFER = "offer", + OFFER__AGENTFEE = "offer__agentFee", + OFFER__AGENTID = "offer__agentId", + OFFER__BUYERCANCELPENALTY = "offer__buyerCancelPenalty", + OFFER__COLLECTIONINDEX = "offer__collectionIndex", + OFFER__CREATEDAT = "offer__createdAt", + OFFER__DISPUTEPERIODDURATION = "offer__disputePeriodDuration", + OFFER__DISPUTERESOLVERID = "offer__disputeResolverId", + OFFER__ID = "offer__id", + OFFER__METADATAHASH = "offer__metadataHash", + OFFER__METADATAURI = "offer__metadataUri", + OFFER__NUMBEROFCOMMITS = "offer__numberOfCommits", + OFFER__NUMBEROFREDEMPTIONS = "offer__numberOfRedemptions", + OFFER__PRICE = "offer__price", + OFFER__PRICETYPE = "offer__priceType", + OFFER__PROTOCOLFEE = "offer__protocolFee", + OFFER__QUANTITYAVAILABLE = "offer__quantityAvailable", + OFFER__QUANTITYINITIAL = "offer__quantityInitial", + OFFER__RESOLUTIONPERIODDURATION = "offer__resolutionPeriodDuration", + OFFER__SELLERDEPOSIT = "offer__sellerDeposit", + OFFER__SELLERID = "offer__sellerId", + OFFER__VALIDFROMDATE = "offer__validFromDate", + OFFER__VALIDUNTILDATE = "offer__validUntilDate", + OFFER__VOIDED = "offer__voided", + OFFER__VOIDEDAT = "offer__voidedAt", + OFFER__VOUCHERREDEEMABLEFROMDATE = "offer__voucherRedeemableFromDate", + OFFER__VOUCHERREDEEMABLEUNTILDATE = "offer__voucherRedeemableUntilDate", + OFFER__VOUCHERVALIDDURATION = "offer__voucherValidDuration", + RECIPIENT = "recipient", + RECIPIENT__ID = "recipient__id", + RECIPIENT__WALLET = "recipient__wallet" +} + +export type RoyaltyRecipientXSeller = { + __typename?: "RoyaltyRecipientXSeller"; + id: Scalars["ID"]["output"]; + minRoyaltyPercentage: Scalars["BigInt"]["output"]; + recipient: RoyaltyRecipient; + seller: Seller; +}; + +export type RoyaltyRecipientXSeller_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + minRoyaltyPercentage?: InputMaybe; + minRoyaltyPercentage_gt?: InputMaybe; + minRoyaltyPercentage_gte?: InputMaybe; + minRoyaltyPercentage_in?: InputMaybe>; + minRoyaltyPercentage_lt?: InputMaybe; + minRoyaltyPercentage_lte?: InputMaybe; + minRoyaltyPercentage_not?: InputMaybe; + minRoyaltyPercentage_not_in?: InputMaybe>; + or?: InputMaybe>>; + recipient?: InputMaybe; + recipient_?: InputMaybe; + recipient_contains?: InputMaybe; + recipient_contains_nocase?: InputMaybe; + recipient_ends_with?: InputMaybe; + recipient_ends_with_nocase?: InputMaybe; + recipient_gt?: InputMaybe; + recipient_gte?: InputMaybe; + recipient_in?: InputMaybe>; + recipient_lt?: InputMaybe; + recipient_lte?: InputMaybe; + recipient_not?: InputMaybe; + recipient_not_contains?: InputMaybe; + recipient_not_contains_nocase?: InputMaybe; + recipient_not_ends_with?: InputMaybe; + recipient_not_ends_with_nocase?: InputMaybe; + recipient_not_in?: InputMaybe>; + recipient_not_starts_with?: InputMaybe; + recipient_not_starts_with_nocase?: InputMaybe; + recipient_starts_with?: InputMaybe; + recipient_starts_with_nocase?: InputMaybe; + seller?: InputMaybe; + seller_?: InputMaybe; + seller_contains?: InputMaybe; + seller_contains_nocase?: InputMaybe; + seller_ends_with?: InputMaybe; + seller_ends_with_nocase?: InputMaybe; + seller_gt?: InputMaybe; + seller_gte?: InputMaybe; + seller_in?: InputMaybe>; + seller_lt?: InputMaybe; + seller_lte?: InputMaybe; + seller_not?: InputMaybe; + seller_not_contains?: InputMaybe; + seller_not_contains_nocase?: InputMaybe; + seller_not_ends_with?: InputMaybe; + seller_not_ends_with_nocase?: InputMaybe; + seller_not_in?: InputMaybe>; + seller_not_starts_with?: InputMaybe; + seller_not_starts_with_nocase?: InputMaybe; + seller_starts_with?: InputMaybe; + seller_starts_with_nocase?: InputMaybe; +}; + +export enum RoyaltyRecipientXSeller_OrderBy { + ID = "id", + MINROYALTYPERCENTAGE = "minRoyaltyPercentage", + RECIPIENT = "recipient", + RECIPIENT__ID = "recipient__id", + RECIPIENT__WALLET = "recipient__wallet", + SELLER = "seller", + SELLER__ACTIVE = "seller__active", + SELLER__ADMIN = "seller__admin", + SELLER__ASSISTANT = "seller__assistant", + SELLER__AUTHTOKENID = "seller__authTokenId", + SELLER__AUTHTOKENTYPE = "seller__authTokenType", + SELLER__CLERK = "seller__clerk", + SELLER__CONTRACTURI = "seller__contractURI", + SELLER__ID = "seller__id", + SELLER__METADATAURI = "seller__metadataUri", + SELLER__SELLERID = "seller__sellerId", + SELLER__TREASURY = "seller__treasury", + SELLER__VOUCHERCLONEADDRESS = "seller__voucherCloneAddress" +} + +export type RoyaltyRecipient_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + royalties_?: InputMaybe; + sellers_?: InputMaybe; + wallet?: InputMaybe; + wallet_contains?: InputMaybe; + wallet_gt?: InputMaybe; + wallet_gte?: InputMaybe; + wallet_in?: InputMaybe>; + wallet_lt?: InputMaybe; + wallet_lte?: InputMaybe; + wallet_not?: InputMaybe; + wallet_not_contains?: InputMaybe; + wallet_not_in?: InputMaybe>; +}; + +export enum RoyaltyRecipient_OrderBy { + ID = "id", + ROYALTIES = "royalties", + SELLERS = "sellers", + WALLET = "wallet" +} + export type SalesChannel = { __typename?: "SalesChannel"; deployments?: Maybe>; @@ -11582,7 +12046,7 @@ export type Seller = Account & { offers: Array; pendingSeller?: Maybe; /** Percentage as integer, to get decimals divide by 10000. E.g. 1 = 0.01%, 10000 = 100% */ - royaltyPercentage: Scalars["BigInt"]["output"]; + royaltyRecipients?: Maybe>; sellerId: Scalars["BigInt"]["output"]; treasury: Scalars["Bytes"]["output"]; voucherCloneAddress: Scalars["Bytes"]["output"]; @@ -11628,6 +12092,14 @@ export type SellerOffersArgs = { where?: InputMaybe; }; +export type SellerRoyaltyRecipientsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + export type SellerContactLink = { __typename?: "SellerContactLink"; id: Scalars["ID"]["output"]; @@ -12308,14 +12780,7 @@ export type Seller_Filter = { offers_?: InputMaybe; or?: InputMaybe>>; pendingSeller_?: InputMaybe; - royaltyPercentage?: InputMaybe; - royaltyPercentage_gt?: InputMaybe; - royaltyPercentage_gte?: InputMaybe; - royaltyPercentage_in?: InputMaybe>; - royaltyPercentage_lt?: InputMaybe; - royaltyPercentage_lte?: InputMaybe; - royaltyPercentage_not?: InputMaybe; - royaltyPercentage_not_in?: InputMaybe>; + royaltyRecipients_?: InputMaybe; sellerId?: InputMaybe; sellerId_gt?: InputMaybe; sellerId_gte?: InputMaybe; @@ -12379,7 +12844,7 @@ export enum Seller_OrderBy { PENDINGSELLER__CLERK = "pendingSeller__clerk", PENDINGSELLER__ID = "pendingSeller__id", PENDINGSELLER__METADATAURI = "pendingSeller__metadataUri", - ROYALTYPERCENTAGE = "royaltyPercentage", + ROYALTYRECIPIENTS = "royaltyRecipients", SELLERID = "sellerId", TREASURY = "treasury", VOUCHERCLONEADDRESS = "voucherCloneAddress" @@ -12480,6 +12945,14 @@ export type Subscription = { productV1Variations: Array; rangeEntities: Array; rangeEntity?: Maybe; + royaltyInfo?: Maybe; + royaltyInfos: Array; + royaltyRecipient?: Maybe; + royaltyRecipientXOffer?: Maybe; + royaltyRecipientXOffers: Array; + royaltyRecipientXSeller?: Maybe; + royaltyRecipientXSellers: Array; + royaltyRecipients: Array; salesChannel?: Maybe; salesChannelDeployment?: Maybe; salesChannelDeployments: Array; @@ -13239,6 +13712,70 @@ export type SubscriptionRangeEntityArgs = { subgraphError?: _SubgraphErrorPolicy_; }; +export type SubscriptionRoyaltyInfoArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRoyaltyInfosArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRoyaltyRecipientArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRoyaltyRecipientXOfferArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRoyaltyRecipientXOffersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRoyaltyRecipientXSellerArgs = { + block?: InputMaybe; + id: Scalars["ID"]["input"]; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type SubscriptionRoyaltyRecipientXSellersArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type SubscriptionRoyaltyRecipientsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + export type SubscriptionSalesChannelArgs = { block?: InputMaybe; id: Scalars["ID"]["input"]; @@ -13742,7 +14279,6 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; collections: Array<{ __typename?: "OfferCollection"; @@ -13812,6 +14348,20 @@ export type GetSellerByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -13863,8 +14413,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -14065,8 +14629,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -14286,8 +14864,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -14650,8 +15242,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -14777,8 +15383,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -14926,8 +15546,22 @@ export type GetSellerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -15057,6 +15691,21 @@ export type GetSellerByIdQueryQuery = { | { __typename?: "Seller"; id: string }; } >; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -15163,7 +15812,6 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; collections: Array<{ __typename?: "OfferCollection"; @@ -15233,6 +15881,20 @@ export type GetSellersQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -15284,8 +15946,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -15486,8 +16162,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -15707,8 +16397,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16071,8 +16775,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16198,8 +16916,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16347,8 +17079,22 @@ export type GetSellersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16478,6 +17224,21 @@ export type GetSellersQueryQuery = { | { __typename?: "Seller"; id: string }; } >; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16628,8 +17389,22 @@ export type GetBuyerByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -16862,8 +17637,22 @@ export type GetBuyersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -17058,6 +17847,20 @@ export type GetDisputeResolverByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -17109,8 +17912,22 @@ export type GetDisputeResolverByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -17311,8 +18128,22 @@ export type GetDisputeResolverByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -17532,8 +18363,22 @@ export type GetDisputeResolverByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -17896,8 +18741,22 @@ export type GetDisputeResolverByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -18023,8 +18882,22 @@ export type GetDisputeResolverByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -18279,6 +19152,20 @@ export type GetDisputeResolversQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -18330,8 +19217,22 @@ export type GetDisputeResolversQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -18532,8 +19433,22 @@ export type GetDisputeResolversQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -18753,8 +19668,22 @@ export type GetDisputeResolversQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -19117,8 +20046,22 @@ export type GetDisputeResolversQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -19244,8 +20187,22 @@ export type GetDisputeResolversQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -19496,8 +20453,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -19583,6 +20554,20 @@ export type GetOfferCollectionsQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -19634,8 +20619,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -19836,8 +20835,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -20057,8 +21070,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -20421,8 +21448,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -20548,8 +21589,22 @@ export type GetOfferCollectionsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -20699,8 +21754,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -20786,6 +21855,20 @@ export type OfferCollectionFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -20837,8 +21920,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -21039,8 +22136,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -21258,8 +22369,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -21612,8 +22737,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -21739,8 +22878,22 @@ export type OfferCollectionFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -21885,7 +23038,6 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; collections: Array<{ __typename?: "OfferCollection"; @@ -21955,6 +23107,20 @@ export type SellerFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -22006,8 +23172,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -22208,8 +23388,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -22427,8 +23621,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -22781,8 +23989,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -22908,8 +24130,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23057,8 +24293,22 @@ export type SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23188,6 +24438,21 @@ export type SellerFieldsFragment = { | { __typename?: "Seller"; id: string }; } >; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23308,8 +24573,22 @@ export type BaseSellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23451,8 +24730,22 @@ export type BuyerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23635,6 +24928,20 @@ export type DisputeResolverFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -23686,8 +24993,22 @@ export type DisputeResolverFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -23888,8 +25209,22 @@ export type DisputeResolverFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -24107,8 +25442,22 @@ export type DisputeResolverFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -24461,8 +25810,22 @@ export type DisputeResolverFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -24588,8 +25951,22 @@ export type DisputeResolverFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -24925,8 +26302,22 @@ export type GetDisputeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -24998,8 +26389,22 @@ export type GetDisputeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25138,8 +26543,22 @@ export type GetDisputesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25211,8 +26630,22 @@ export type GetDisputesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25341,8 +26774,22 @@ export type DisputeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25414,8 +26861,22 @@ export type DisputeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25550,6 +27011,20 @@ export type GetExchangeTokenByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -25601,8 +27076,22 @@ export type GetExchangeTokenByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -25803,8 +27292,22 @@ export type GetExchangeTokenByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -26024,8 +27527,22 @@ export type GetExchangeTokenByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -26388,8 +27905,22 @@ export type GetExchangeTokenByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -26515,8 +28046,22 @@ export type GetExchangeTokenByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -26682,6 +28227,20 @@ export type GetExchangeTokensQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -26733,8 +28292,22 @@ export type GetExchangeTokensQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -26935,8 +28508,22 @@ export type GetExchangeTokensQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -27156,8 +28743,22 @@ export type GetExchangeTokensQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -27520,8 +29121,22 @@ export type GetExchangeTokensQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -27647,8 +29262,22 @@ export type GetExchangeTokensQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -27792,6 +29421,20 @@ export type ExchangeTokenFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -27843,8 +29486,22 @@ export type ExchangeTokenFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -28045,8 +29702,22 @@ export type ExchangeTokenFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -28264,8 +29935,22 @@ export type ExchangeTokenFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -28618,8 +30303,22 @@ export type ExchangeTokenFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -28745,8 +30444,22 @@ export type ExchangeTokenFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -29073,6 +30786,20 @@ export type GetExchangeByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -29124,8 +30851,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -29326,8 +31067,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -29547,8 +31302,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -29911,8 +31680,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -30038,8 +31821,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -30173,8 +31970,22 @@ export type GetExchangeByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -30287,6 +32098,20 @@ export type GetExchangesQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -30338,8 +32163,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -30540,8 +32379,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -30761,8 +32614,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31125,8 +32992,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31252,8 +33133,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31387,8 +33282,22 @@ export type GetExchangesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31491,6 +33400,20 @@ export type ExchangeFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -31542,8 +33465,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31744,8 +33681,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -31963,8 +33914,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -32317,8 +34282,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -32444,8 +34423,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -32574,8 +34567,22 @@ export type ExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -32678,8 +34685,22 @@ export type BaseExchangeFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -32920,6 +34941,20 @@ export type GetBaseMetadataEntityByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -32971,8 +35006,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -33173,8 +35222,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -33394,8 +35457,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -33758,8 +35835,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -33885,8 +35976,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -33999,8 +36104,22 @@ export type GetBaseMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -34139,6 +36258,20 @@ export type GetBaseMetadataEntitiesQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -34190,8 +36323,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -34392,8 +36539,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -34613,8 +36774,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -34977,8 +37152,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -35104,8 +37293,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -35218,8 +37421,22 @@ export type GetBaseMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -35348,6 +37565,20 @@ export type BaseMetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -35399,8 +37630,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -35601,8 +37846,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -35820,8 +38079,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -36174,8 +38447,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -36301,8 +38588,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -36415,8 +38716,22 @@ export type BaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -36544,6 +38859,20 @@ export type BaseBaseMetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -36595,8 +38924,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -36797,8 +39140,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37016,8 +39373,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37370,8 +39741,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37497,8 +39882,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37611,8 +40010,22 @@ export type BaseBaseMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37753,6 +40166,7 @@ export type GetBundleMetadataEntityByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -37800,8 +40214,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -37861,6 +40289,19 @@ export type GetBundleMetadataEntityByIdQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -37912,8 +40353,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -38114,8 +40569,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -38335,8 +40804,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -38699,8 +41182,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -38826,8 +41323,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -38940,8 +41451,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -39045,8 +41570,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -39266,8 +41805,22 @@ export type GetBundleMetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -39504,6 +42057,7 @@ export type GetBundleMetadataEntitiesQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -39551,8 +42105,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -39612,6 +42180,19 @@ export type GetBundleMetadataEntitiesQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -39663,8 +42244,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -39865,8 +42460,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -40086,8 +42695,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -40450,8 +43073,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -40577,8 +43214,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -40691,8 +43342,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -40796,8 +43461,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -41017,8 +43696,22 @@ export type GetBundleMetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -41245,6 +43938,7 @@ export type BundleMetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -41292,8 +43986,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -41353,6 +44061,19 @@ export type BundleMetadataEntityFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -41404,8 +44125,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -41606,8 +44341,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -41825,8 +44574,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42179,8 +44942,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42306,8 +45083,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42420,8 +45211,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42525,8 +45330,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42746,8 +45565,22 @@ export type BundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -42973,6 +45806,7 @@ export type BaseBundleMetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -43020,8 +45854,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -43081,6 +45929,19 @@ export type BaseBundleMetadataEntityFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -43132,8 +45993,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -43334,8 +46209,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -43553,8 +46442,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -43907,8 +46810,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44034,8 +46951,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44148,8 +47079,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44253,8 +47198,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44474,8 +47433,22 @@ export type BaseBundleMetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44783,8 +47756,22 @@ export type GetProductV1ProductsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -44943,6 +47930,7 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -44990,8 +47978,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -45051,6 +48053,19 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -45102,8 +48117,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -45304,8 +48333,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -45525,8 +48568,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -45889,8 +48946,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -46016,8 +49087,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -46185,6 +49270,7 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -46232,8 +49318,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -46293,6 +49393,19 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -46344,8 +49457,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -46546,8 +49673,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -46767,8 +49908,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47131,8 +50286,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47258,8 +50427,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47372,8 +50555,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47477,8 +50674,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47702,8 +50913,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -47958,8 +51183,22 @@ export type GetProductV1ProductsWithVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -48118,6 +51357,7 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -48165,8 +51405,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -48226,6 +51480,19 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -48277,8 +51544,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -48479,8 +51760,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -48700,8 +51995,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49064,8 +52373,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49191,8 +52514,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49360,6 +52697,7 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -49407,8 +52745,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49468,6 +52820,19 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -49519,8 +52884,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49721,8 +53100,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -49942,8 +53335,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -50306,8 +53713,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -50433,8 +53854,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -50547,8 +53982,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -50652,8 +54101,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -50877,8 +54340,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -51133,8 +54610,22 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -51307,6 +54798,7 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -51354,8 +54846,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -51415,6 +54921,19 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -51466,8 +54985,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -51668,8 +55201,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -51889,8 +55436,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52253,8 +55814,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52380,8 +55955,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52494,8 +56083,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52678,8 +56281,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52805,8 +56422,22 @@ export type GetProductV1MetadataEntityByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -52949,6 +56580,7 @@ export type GetProductV1MetadataEntitiesQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -52996,8 +56628,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -53057,6 +56703,19 @@ export type GetProductV1MetadataEntitiesQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -53108,8 +56767,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -53310,8 +56983,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -53531,8 +57218,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -53895,8 +57596,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54022,8 +57737,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54136,8 +57865,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54320,8 +58063,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54447,8 +58204,22 @@ export type GetProductV1MetadataEntitiesQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54581,6 +58352,7 @@ export type ProductV1MetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -54628,8 +58400,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54689,6 +58475,19 @@ export type ProductV1MetadataEntityFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -54740,8 +58539,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -54942,8 +58755,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -55161,8 +58988,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -55515,8 +59356,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -55642,8 +59497,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -55756,8 +59625,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -55940,8 +59823,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -56067,8 +59964,22 @@ export type ProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -56200,6 +60111,7 @@ export type BaseProductV1MetadataEntityFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -56247,8 +60159,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -56308,6 +60234,19 @@ export type BaseProductV1MetadataEntityFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -56359,8 +60298,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -56561,8 +60514,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -56780,8 +60747,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57134,8 +61115,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57261,8 +61256,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57375,8 +61384,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57559,8 +61582,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57686,8 +61723,22 @@ export type BaseProductV1MetadataEntityFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -57883,8 +61934,22 @@ export type BaseProductV1ProductFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -58032,6 +62097,7 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -58079,8 +62145,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -58140,6 +62220,19 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -58191,8 +62284,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -58393,8 +62500,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -58614,8 +62735,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -58978,8 +63113,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -59105,8 +63254,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -59274,6 +63437,7 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -59321,8 +63485,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -59382,6 +63560,19 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -59433,8 +63624,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -59635,8 +63840,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -59856,8 +64075,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -60220,8 +64453,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -60347,8 +64594,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -60461,8 +64722,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -60566,8 +64841,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -60791,8 +65080,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -61047,8 +65350,22 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -61196,6 +65513,7 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -61243,8 +65561,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -61304,6 +65636,19 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -61355,8 +65700,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -61557,8 +65916,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -61778,8 +66151,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -62142,8 +66529,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -62269,8 +66670,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -62438,6 +66853,7 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges: Array<{ __typename?: "Exchange"; id: string; @@ -62485,8 +66901,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -62546,6 +66976,19 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -62597,8 +67040,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -62799,8 +67256,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63020,8 +67491,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63384,8 +67869,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63511,8 +68010,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63625,8 +68138,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63730,8 +68257,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -63955,8 +68496,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -64211,8 +68766,22 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -64380,8 +68949,22 @@ export type BaseProductV1SellerFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -64563,6 +69146,7 @@ export type GetOfferByIdQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges?: Array<{ __typename?: "Exchange"; id: string; @@ -64610,8 +69194,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -64671,6 +69269,19 @@ export type GetOfferByIdQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -64722,8 +69333,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -64924,8 +69549,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -65143,8 +69782,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -65497,8 +70150,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -65624,8 +70291,22 @@ export type GetOfferByIdQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -65771,6 +70452,7 @@ export type GetOffersQueryQuery = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges?: Array<{ __typename?: "Exchange"; id: string; @@ -65818,8 +70500,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -65879,6 +70575,19 @@ export type GetOffersQueryQuery = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -65930,8 +70639,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -66132,8 +70855,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -66351,8 +71088,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -66705,8 +71456,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -66832,8 +71597,22 @@ export type GetOffersQueryQuery = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -67071,6 +71850,7 @@ export type OfferFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; exchanges?: Array<{ __typename?: "Exchange"; id: string; @@ -67118,8 +71898,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -67179,6 +71973,19 @@ export type OfferFieldsFragment = { } | null; }; }>; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -67230,8 +72037,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -67432,8 +72253,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -67651,8 +72486,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -68005,8 +72854,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -68132,8 +72995,22 @@ export type OfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -68262,6 +73139,20 @@ export type BaseOfferFieldsFragment = { disputeResolverId: string; numberOfCommits: string; numberOfRedemptions: string; + priceType: number; + royaltyInfos: Array<{ + __typename?: "RoyaltyInfo"; + timestamp: string; + recipients?: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + }; + }> | null; + }>; condition?: { __typename?: "ConditionEntity"; id: string; @@ -68313,8 +73204,22 @@ export type BaseOfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -68515,8 +73420,22 @@ export type BaseOfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -68734,8 +73653,22 @@ export type BaseOfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -69088,8 +74021,22 @@ export type BaseOfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -69215,8 +74162,22 @@ export type BaseOfferFieldsFragment = { voucherCloneAddress: string; active: boolean; contractURI: string; - royaltyPercentage: string; metadataUri: string; + royaltyRecipients?: Array<{ + __typename?: "RoyaltyRecipientXSeller"; + id: string; + minRoyaltyPercentage: string; + recipient: { + __typename?: "RoyaltyRecipient"; + id: string; + wallet: string; + royalties: Array<{ + __typename?: "RoyaltyRecipientXOffer"; + bps: string; + offer: { __typename?: "Offer"; id: string }; + }>; + }; + }> | null; metadata?: { __typename?: "SellerMetadata"; id: string; @@ -69404,7 +74365,20 @@ export const BaseSellerFieldsFragmentDoc = gql` voucherCloneAddress active contractURI - royaltyPercentage + royaltyRecipients { + id + recipient { + id + wallet + royalties { + bps + offer { + id + } + } + } + minRoyaltyPercentage + } metadataUri metadata { id @@ -69780,6 +74754,17 @@ export const BaseOfferFieldsFragmentDoc = gql` disputeResolverId numberOfCommits numberOfRedemptions + priceType + royaltyInfos { + timestamp + recipients { + recipient { + id + wallet + } + bps + } + } condition { ...BaseConditionFields } diff --git a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer1.json b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer1.json index add5fddfe..90366b16b 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer1.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer1.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -364,7 +363,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -493,7 +491,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer2.json b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer2.json index 9a73c8205..e25a96503 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer2.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer2.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -364,7 +363,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -493,7 +491,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer3.json b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer3.json index 29ee60228..932801d35 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer3.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer3.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -363,7 +362,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -492,7 +490,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer4.json b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer4.json index 9e5561a59..e21e25026 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer4.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer4.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer5.json b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer5.json index 64facfda0..465f7707a 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer5.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/invalidOffer5.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -364,7 +363,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -493,7 +491,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/exchangePolicy/examples/validOffer.json b/packages/core-sdk/tests/exchangePolicy/examples/validOffer.json index 0a75aae17..74d2af42b 100644 --- a/packages/core-sdk/tests/exchangePolicy/examples/validOffer.json +++ b/packages/core-sdk/tests/exchangePolicy/examples/validOffer.json @@ -35,7 +35,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -364,7 +363,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", @@ -493,7 +491,6 @@ "voucherCloneAddress": "0x87ef301c97c72648bab63c0ea77eddf145d4317b", "active": true, "contractURI": "ipfs://QmXV5eGPvsLevPPaSyYwV97yHbY1vPfRKK3Y7mpRKKtQ4d", - "royaltyPercentage": "200", "metadataUri": "ipfs://QmeebkVhK1jgwwX4mKnBSfNv47vqDeeAZ6MZ5SjLUv7c31", "metadata": { "id": "30-seller-metadata", diff --git a/packages/core-sdk/tests/mocks.ts b/packages/core-sdk/tests/mocks.ts index 3fa62022e..1d295664d 100644 --- a/packages/core-sdk/tests/mocks.ts +++ b/packages/core-sdk/tests/mocks.ts @@ -40,7 +40,24 @@ export function mockRawSellerFromSubgraph( authTokenType: 0, voucherCloneAddress: ZERO_ADDRESS, active: true, - royaltyPercentage: "0", + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], contractURI: "ipfs://seller-contract-uri", funds: [], offers: [], @@ -101,6 +118,21 @@ export function mockRawOfferFromSubgraph( agentId: "0", numberOfCommits: "0", numberOfRedemptions: "0", + priceType: 0, + royaltyInfos: [ + { + timestamp: "1710251696", + recipients: [ + { + bps: "0", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000" + } + } + ] + } + ], seller: { id: "1", assistant: ZERO_ADDRESS, @@ -111,9 +143,26 @@ export function mockRawOfferFromSubgraph( authTokenType: 0, voucherCloneAddress: ZERO_ADDRESS, active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], ...seller }, exchangeToken: { @@ -197,9 +246,26 @@ export function mockRawExchangeFromSubgraph( authTokenType: 0, voucherCloneAddress: ZERO_ADDRESS, active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], ...seller }, offer: mockRawOfferFromSubgraph(offerOverrides), diff --git a/packages/core-sdk/tests/offers/handler.test.ts b/packages/core-sdk/tests/offers/handler.test.ts index 7f62a13b1..9a8e6621c 100644 --- a/packages/core-sdk/tests/offers/handler.test.ts +++ b/packages/core-sdk/tests/offers/handler.test.ts @@ -108,9 +108,26 @@ describe("#voidOffer()", () => { treasury: sellerAddress, authTokenId: "0", authTokenType: 0, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], voucherCloneAddress: "0x0000111122223333444455556666777788889999", active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri } @@ -142,9 +159,26 @@ describe("#voidOffer()", () => { treasury: ADDRESS, authTokenId: "0", authTokenType: 0, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], voucherCloneAddress: "0x0000111122223333444455556666777788889999", active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri } @@ -222,9 +256,26 @@ describe("#voidOfferBatch()", () => { treasury: sellerAddress, authTokenId: "0", authTokenType: 0, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], voucherCloneAddress: "0x0000111122223333444455556666777788889999", active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri } @@ -259,9 +310,26 @@ describe("#voidOfferBatch()", () => { treasury: ADDRESS, authTokenId: "0", authTokenType: 0, + royaltyRecipients: [ + { + id: "1-royalty-0x0000000000000000000000000000000000000000", + recipient: { + id: "0x0000000000000000000000000000000000000000", + wallet: "0x0000000000000000000000000000000000000000", + royalties: [ + { + bps: "0", + offer: { + id: "1" + } + } + ] + }, + minRoyaltyPercentage: "0" + } + ], voucherCloneAddress: "0x0000111122223333444455556666777788889999", active: true, - royaltyPercentage: "0", contractURI: "ipfs://seller-contract-uri", metadataUri: sellerMetadataUri } diff --git a/packages/core-sdk/tests/offers/interface.test.ts b/packages/core-sdk/tests/offers/interface.test.ts index 17fb7c075..5eacfe677 100644 --- a/packages/core-sdk/tests/offers/interface.test.ts +++ b/packages/core-sdk/tests/offers/interface.test.ts @@ -2,13 +2,26 @@ import { encodeCreateOffer, bosonOfferHandlerIface } from "../../src/offers/interface"; -import { utils } from "@bosonprotocol/common"; +import { PriceType, utils } from "@bosonprotocol/common"; import { mockCreateOfferArgs } from "@bosonprotocol/common/tests/mocks"; +import { getAddress } from "@ethersproject/address"; +import { AddressZero } from "@ethersproject/constants"; describe("#encodeCreateOffer()", () => { test("encode correct calldata", () => { + const royaltyRecipients = [ + AddressZero, + getAddress("0x0123456789abcdef0123456789abcdef01234567") + ]; + const royaltyBps = [2, 1]; const mockedCreateOfferArgs = mockCreateOfferArgs({ - voucherValidDurationInMS: 1000 + voucherValidDurationInMS: 1000, + royaltyInfo: [ + { + recipients: royaltyRecipients, + bps: royaltyBps + } + ] }); const encodedCalldata = encodeCreateOffer(mockedCreateOfferArgs); @@ -24,9 +37,12 @@ describe("#encodeCreateOffer()", () => { buyerCancelPenalty, quantityAvailable, exchangeToken, + priceType, metadataUri, metadataHash, - voided + voided, + collectionIndex, + ...royaltyInfos ] = decodedCalldata[0].toString().split(","); // Offer struct const [ validFrom, @@ -93,5 +109,12 @@ 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()); }); }); diff --git a/packages/ethers-sdk/src/contracts/ERC1155.ts b/packages/ethers-sdk/src/contracts/ERC1155.ts index dcea0f445..e2dbc5e0c 100644 --- a/packages/ethers-sdk/src/contracts/ERC1155.ts +++ b/packages/ethers-sdk/src/contracts/ERC1155.ts @@ -27,6 +27,9 @@ export interface ERC1155Interface extends utils.Interface { "safeTransferFrom(address,address,uint256,uint256,bytes)": FunctionFragment; "setApprovalForAll(address,bool)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; + "uri(uint256)": FunctionFragment; + "name()": FunctionFragment; + "symbol()": FunctionFragment; }; encodeFunctionData( @@ -57,6 +60,9 @@ export interface ERC1155Interface extends utils.Interface { functionFragment: "supportsInterface", values: [BytesLike] ): string; + encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( @@ -83,6 +89,9 @@ export interface ERC1155Interface extends utils.Interface { functionFragment: "supportsInterface", data: BytesLike ): Result; + decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; events: { "ApprovalForAll(address,address,bool)": EventFragment; @@ -202,6 +211,12 @@ export interface ERC1155 extends BaseContract { _interfaceID: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; + + uri(id: BigNumberish, overrides?: CallOverrides): Promise<[string]>; + + name(overrides?: CallOverrides): Promise<[string]>; + + symbol(overrides?: CallOverrides): Promise<[string]>; }; balanceOf( @@ -251,6 +266,12 @@ export interface ERC1155 extends BaseContract { overrides?: CallOverrides ): Promise; + uri(id: BigNumberish, overrides?: CallOverrides): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + callStatic: { balanceOf( _owner: string, @@ -298,6 +319,12 @@ export interface ERC1155 extends BaseContract { _interfaceID: BytesLike, overrides?: CallOverrides ): Promise; + + uri(id: BigNumberish, overrides?: CallOverrides): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; }; filters: { @@ -390,6 +417,12 @@ export interface ERC1155 extends BaseContract { _interfaceID: BytesLike, overrides?: CallOverrides ): Promise; + + uri(id: BigNumberish, overrides?: CallOverrides): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; }; populateTransaction: { @@ -439,5 +472,14 @@ export interface ERC1155 extends BaseContract { _interfaceID: BytesLike, overrides?: CallOverrides ): Promise; + + uri( + id: BigNumberish, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; }; } diff --git a/packages/ethers-sdk/src/contracts/ERC165.ts b/packages/ethers-sdk/src/contracts/ERC165.ts new file mode 100644 index 000000000..47d9fd3f5 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/ERC165.ts @@ -0,0 +1,97 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + 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 ERC165Interface extends utils.Interface { + contractName: "ERC165"; + functions: { + "supportsInterface(bytes4)": FunctionFragment; + }; + + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ERC165 extends BaseContract { + contractName: "ERC165"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC165Interface; + + 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: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts b/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts index 1f022b256..6f79fbef9 100644 --- a/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonAccountHandler.ts @@ -87,6 +87,16 @@ export declare namespace BosonTypes { feeAmount: BigNumber; }; + export type RoyaltyRecipientInfoStruct = { + wallet: string; + minRoyaltyPercentage: BigNumberish; + }; + + export type RoyaltyRecipientInfoStructOutput = [string, BigNumber] & { + wallet: string; + minRoyaltyPercentage: BigNumber; + }; + export type SellerStruct = { id: BigNumberish; assistant: string; @@ -137,6 +147,13 @@ 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; @@ -152,6 +169,7 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { contractName: "IBosonAccountHandler"; functions: { "addFeesToDisputeResolver(uint256,(address,string,uint256)[])": FunctionFragment; + "addRoyaltyRecipients(uint256,(address,uint256)[])": FunctionFragment; "addSellersToAllowList(uint256,uint256[])": FunctionFragment; "areSellersAllowed(uint256,uint256[])": FunctionFragment; "calculateCollectionAddress(uint256,bytes32)": FunctionFragment; @@ -165,18 +183,23 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { "getDisputeResolver(uint256)": FunctionFragment; "getDisputeResolverByAddress(address)": FunctionFragment; "getNextAccountId()": FunctionFragment; + "getRoyaltyRecipients(uint256)": FunctionFragment; "getSeller(uint256)": FunctionFragment; "getSellerByAddress(address)": FunctionFragment; "getSellerByAuthToken((uint256,uint8))": FunctionFragment; + "getSellersCollectionCount(uint256)": FunctionFragment; "getSellersCollections(uint256)": FunctionFragment; + "getSellersCollectionsPaginated(uint256,uint256,uint256)": FunctionFragment; "isSellerSaltAvailable(address,bytes32)": FunctionFragment; "optInToDisputeResolverUpdate(uint256,uint8[])": FunctionFragment; "optInToSellerUpdate(uint256,uint8[])": FunctionFragment; "removeFeesFromDisputeResolver(uint256,address[])": FunctionFragment; + "removeRoyaltyRecipients(uint256,uint256[])": FunctionFragment; "removeSellersFromAllowList(uint256,uint256[])": FunctionFragment; "updateAgent((uint256,uint256,address,bool))": FunctionFragment; "updateBuyer((uint256,address,bool))": FunctionFragment; "updateDisputeResolver((uint256,uint256,address,address,address,address,string,bool))": FunctionFragment; + "updateRoyaltyRecipients(uint256,uint256[],(address,uint256)[])": FunctionFragment; "updateSeller((uint256,address,address,address,address,bool,string),(uint256,uint8))": FunctionFragment; "updateSellerSalt(uint256,bytes32)": FunctionFragment; }; @@ -185,6 +208,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "addFeesToDisputeResolver", values: [BigNumberish, BosonTypes.DisputeResolverFeeStruct[]] ): string; + encodeFunctionData( + functionFragment: "addRoyaltyRecipients", + values: [BigNumberish, BosonTypes.RoyaltyRecipientInfoStruct[]] + ): string; encodeFunctionData( functionFragment: "addSellersToAllowList", values: [BigNumberish, BigNumberish[]] @@ -245,6 +272,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "getNextAccountId", values?: undefined ): string; + encodeFunctionData( + functionFragment: "getRoyaltyRecipients", + values: [BigNumberish] + ): string; encodeFunctionData( functionFragment: "getSeller", values: [BigNumberish] @@ -257,10 +288,18 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "getSellerByAuthToken", values: [BosonTypes.AuthTokenStruct] ): string; + encodeFunctionData( + functionFragment: "getSellersCollectionCount", + values: [BigNumberish] + ): string; encodeFunctionData( functionFragment: "getSellersCollections", values: [BigNumberish] ): string; + encodeFunctionData( + functionFragment: "getSellersCollectionsPaginated", + values: [BigNumberish, BigNumberish, BigNumberish] + ): string; encodeFunctionData( functionFragment: "isSellerSaltAvailable", values: [string, BytesLike] @@ -277,6 +316,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "removeFeesFromDisputeResolver", values: [BigNumberish, string[]] ): string; + encodeFunctionData( + functionFragment: "removeRoyaltyRecipients", + values: [BigNumberish, BigNumberish[]] + ): string; encodeFunctionData( functionFragment: "removeSellersFromAllowList", values: [BigNumberish, BigNumberish[]] @@ -293,6 +336,14 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "updateDisputeResolver", values: [BosonTypes.DisputeResolverStruct] ): string; + encodeFunctionData( + functionFragment: "updateRoyaltyRecipients", + values: [ + BigNumberish, + BigNumberish[], + BosonTypes.RoyaltyRecipientInfoStruct[] + ] + ): string; encodeFunctionData( functionFragment: "updateSeller", values: [BosonTypes.SellerStruct, BosonTypes.AuthTokenStruct] @@ -306,6 +357,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "addFeesToDisputeResolver", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "addRoyaltyRecipients", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "addSellersToAllowList", data: BytesLike @@ -352,6 +407,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "getNextAccountId", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "getRoyaltyRecipients", + data: BytesLike + ): Result; decodeFunctionResult(functionFragment: "getSeller", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getSellerByAddress", @@ -361,10 +420,18 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "getSellerByAuthToken", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "getSellersCollectionCount", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "getSellersCollections", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "getSellersCollectionsPaginated", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "isSellerSaltAvailable", data: BytesLike @@ -381,6 +448,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "removeFeesFromDisputeResolver", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "removeRoyaltyRecipients", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "removeSellersFromAllowList", data: BytesLike @@ -397,6 +468,10 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { functionFragment: "updateDisputeResolver", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "updateRoyaltyRecipients", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "updateSeller", data: BytesLike @@ -419,6 +494,7 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { "DisputeResolverFeesRemoved(uint256,address[],address)": EventFragment; "DisputeResolverUpdateApplied(uint256,tuple,tuple,address)": EventFragment; "DisputeResolverUpdatePending(uint256,tuple,address)": EventFragment; + "RoyaltyRecipientsChanged(uint256,tuple[],address)": EventFragment; "SellerCreated(uint256,tuple,address,tuple,address)": EventFragment; "SellerUpdateApplied(uint256,tuple,tuple,tuple,tuple,address)": EventFragment; "SellerUpdatePending(uint256,tuple,tuple,address)": EventFragment; @@ -440,6 +516,7 @@ export interface IBosonAccountHandlerInterface extends utils.Interface { getEvent( nameOrSignatureOrTopic: "DisputeResolverUpdatePending" ): EventFragment; + getEvent(nameOrSignatureOrTopic: "RoyaltyRecipientsChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerUpdateApplied"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerUpdatePending"): EventFragment; @@ -601,6 +678,18 @@ export type DisputeResolverUpdatePendingEvent = TypedEvent< export type DisputeResolverUpdatePendingEventFilter = TypedEventFilter; +export type RoyaltyRecipientsChangedEvent = TypedEvent< + [BigNumber, BosonTypes.RoyaltyRecipientInfoStructOutput[], string], + { + sellerId: BigNumber; + royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStructOutput[]; + executedBy: string; + } +>; + +export type RoyaltyRecipientsChangedEventFilter = + TypedEventFilter; + export type SellerCreatedEvent = TypedEvent< [ BigNumber, @@ -694,6 +783,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + addRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + addSellersToAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -802,6 +897,15 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise<[BigNumber] & { nextAccountId: BigNumber }>; + getRoyaltyRecipients( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [BosonTypes.RoyaltyRecipientStructOutput[]] & { + royaltyRecipients: BosonTypes.RoyaltyRecipientStructOutput[]; + } + >; + getSeller( _sellerId: BigNumberish, overrides?: CallOverrides @@ -847,6 +951,11 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionCount( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber] & { collectionCount: BigNumber }>; + getSellersCollections( _sellerId: BigNumberish, overrides?: CallOverrides @@ -857,6 +966,18 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionsPaginated( + _sellerId: BigNumberish, + _limit: BigNumberish, + _offset: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string, BosonTypes.CollectionStructOutput[]] & { + defaultVoucherAddress: string; + additionalCollections: BosonTypes.CollectionStructOutput[]; + } + >; + isSellerSaltAvailable( _adminAddres: string, _salt: BytesLike, @@ -881,6 +1002,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + removeRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + removeSellersFromAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -902,6 +1029,13 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateSeller( _seller: BosonTypes.SellerStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -921,6 +1055,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + addRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + addSellersToAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1027,6 +1167,11 @@ export interface IBosonAccountHandler extends BaseContract { getNextAccountId(overrides?: CallOverrides): Promise; + getRoyaltyRecipients( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSeller( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1072,6 +1217,11 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionCount( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSellersCollections( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1082,6 +1232,18 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionsPaginated( + _sellerId: BigNumberish, + _limit: BigNumberish, + _offset: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string, BosonTypes.CollectionStructOutput[]] & { + defaultVoucherAddress: string; + additionalCollections: BosonTypes.CollectionStructOutput[]; + } + >; + isSellerSaltAvailable( _adminAddres: string, _salt: BytesLike, @@ -1106,6 +1268,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + removeRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + removeSellersFromAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1127,6 +1295,13 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateSeller( _seller: BosonTypes.SellerStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1146,6 +1321,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise; + addRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: CallOverrides + ): Promise; + addSellersToAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1252,6 +1433,11 @@ export interface IBosonAccountHandler extends BaseContract { getNextAccountId(overrides?: CallOverrides): Promise; + getRoyaltyRecipients( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSeller( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1297,6 +1483,11 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionCount( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSellersCollections( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1307,6 +1498,18 @@ export interface IBosonAccountHandler extends BaseContract { } >; + getSellersCollectionsPaginated( + _sellerId: BigNumberish, + _limit: BigNumberish, + _offset: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string, BosonTypes.CollectionStructOutput[]] & { + defaultVoucherAddress: string; + additionalCollections: BosonTypes.CollectionStructOutput[]; + } + >; + isSellerSaltAvailable( _adminAddres: string, _salt: BytesLike, @@ -1331,6 +1534,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise; + removeRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + overrides?: CallOverrides + ): Promise; + removeSellersFromAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1352,6 +1561,13 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise; + updateRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: CallOverrides + ): Promise; + updateSeller( _seller: BosonTypes.SellerStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1508,6 +1724,17 @@ export interface IBosonAccountHandler extends BaseContract { executedBy?: string | null ): DisputeResolverUpdatePendingEventFilter; + "RoyaltyRecipientsChanged(uint256,tuple[],address)"( + sellerId?: BigNumberish | null, + royaltyRecipients?: null, + executedBy?: string | null + ): RoyaltyRecipientsChangedEventFilter; + RoyaltyRecipientsChanged( + sellerId?: BigNumberish | null, + royaltyRecipients?: null, + executedBy?: string | null + ): RoyaltyRecipientsChangedEventFilter; + "SellerCreated(uint256,tuple,address,tuple,address)"( sellerId?: BigNumberish | null, seller?: null, @@ -1561,6 +1788,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + addRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + addSellersToAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1631,6 +1864,11 @@ export interface IBosonAccountHandler extends BaseContract { getNextAccountId(overrides?: CallOverrides): Promise; + getRoyaltyRecipients( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSeller( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1646,11 +1884,23 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getSellersCollectionCount( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSellersCollections( _sellerId: BigNumberish, overrides?: CallOverrides ): Promise; + getSellersCollectionsPaginated( + _sellerId: BigNumberish, + _limit: BigNumberish, + _offset: BigNumberish, + overrides?: CallOverrides + ): Promise; + isSellerSaltAvailable( _adminAddres: string, _salt: BytesLike, @@ -1675,6 +1925,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + removeRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + removeSellersFromAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1696,6 +1952,13 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateSeller( _seller: BosonTypes.SellerStruct, _authToken: BosonTypes.AuthTokenStruct, @@ -1716,6 +1979,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + addRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + addSellersToAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1786,6 +2055,11 @@ export interface IBosonAccountHandler extends BaseContract { getNextAccountId(overrides?: CallOverrides): Promise; + getRoyaltyRecipients( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSeller( _sellerId: BigNumberish, overrides?: CallOverrides @@ -1801,11 +2075,23 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getSellersCollectionCount( + _sellerId: BigNumberish, + overrides?: CallOverrides + ): Promise; + getSellersCollections( _sellerId: BigNumberish, overrides?: CallOverrides ): Promise; + getSellersCollectionsPaginated( + _sellerId: BigNumberish, + _limit: BigNumberish, + _offset: BigNumberish, + overrides?: CallOverrides + ): Promise; + isSellerSaltAvailable( _adminAddres: string, _salt: BytesLike, @@ -1830,6 +2116,12 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + removeRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + removeSellersFromAllowList( _disputeResolverId: BigNumberish, _sellerAllowList: BigNumberish[], @@ -1851,6 +2143,13 @@ export interface IBosonAccountHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateRoyaltyRecipients( + _sellerId: BigNumberish, + _royaltyRecipientIds: BigNumberish[], + _royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStruct[], + overrides?: Overrides & { from?: string | Promise } + ): Promise; + updateSeller( _seller: BosonTypes.SellerStruct, _authToken: BosonTypes.AuthTokenStruct, diff --git a/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts index 76373acb2..25c72baf9 100644 --- a/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonExchangeHandler.ts @@ -225,17 +225,19 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { "cancelVoucher(uint256)": FunctionFragment; "commitToConditionalOffer(address,uint256,uint256)": FunctionFragment; "commitToOffer(address,uint256)": FunctionFragment; - "commitToPreMintedOffer(address,uint256,uint256)": FunctionFragment; "completeExchange(uint256)": FunctionFragment; "completeExchangeBatch(uint256[])": FunctionFragment; "expireVoucher(uint256)": FunctionFragment; "extendVoucher(uint256,uint256)": FunctionFragment; + "getEIP2981Royalties(uint256,bool)": FunctionFragment; "getExchange(uint256)": FunctionFragment; "getExchangeState(uint256)": FunctionFragment; "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; @@ -253,10 +255,6 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "commitToOffer", values: [string, BigNumberish] ): string; - encodeFunctionData( - functionFragment: "commitToPreMintedOffer", - values: [string, BigNumberish, BigNumberish] - ): string; encodeFunctionData( functionFragment: "completeExchange", values: [BigNumberish] @@ -273,6 +271,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "extendVoucher", values: [BigNumberish, BigNumberish] ): string; + encodeFunctionData( + functionFragment: "getEIP2981Royalties", + values: [BigNumberish, boolean] + ): string; encodeFunctionData( functionFragment: "getExchange", values: [BigNumberish] @@ -289,6 +291,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "getReceipt", values: [BigNumberish] ): string; + encodeFunctionData( + functionFragment: "getRoyalties", + values: [BigNumberish] + ): string; encodeFunctionData( functionFragment: "isEligibleToCommit", values: [string, BigNumberish, BigNumberish] @@ -297,6 +303,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "isExchangeFinalized", values: [BigNumberish] ): string; + encodeFunctionData( + functionFragment: "onPremintedVoucherTransferred", + values: [BigNumberish, string, string, string] + ): string; encodeFunctionData( functionFragment: "onVoucherTransferred", values: [BigNumberish, string] @@ -322,10 +332,6 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "commitToOffer", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "commitToPreMintedOffer", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "completeExchange", data: BytesLike @@ -342,6 +348,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "extendVoucher", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "getEIP2981Royalties", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "getExchange", data: BytesLike @@ -355,6 +365,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getReceipt", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getRoyalties", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "isEligibleToCommit", data: BytesLike @@ -363,6 +377,10 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { functionFragment: "isExchangeFinalized", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "onPremintedVoucherTransferred", + data: BytesLike + ): Result; decodeFunctionResult( functionFragment: "onVoucherTransferred", data: BytesLike @@ -387,6 +405,7 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { "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; @@ -408,6 +427,7 @@ export interface IBosonExchangeHandlerInterface extends utils.Interface { 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; @@ -551,6 +571,14 @@ export type TwinTransferFailedEvent = TypedEvent< 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], { @@ -664,13 +692,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: PayableOverrides & { from?: string | Promise } ): Promise; - commitToPreMintedOffer( - _buyer: string, - _offerId: BigNumberish, - _exchangeId: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -692,6 +713,14 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + getEIP2981Royalties( + _queryId: BigNumberish, + _isExchangeId: boolean, + overrides?: CallOverrides + ): Promise< + [string, BigNumber] & { receiver: string; royaltyPercentage: BigNumber } + >; + getExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -725,6 +754,13 @@ export interface IBosonExchangeHandler extends BaseContract { } >; + getRoyalties( + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } + >; + isEligibleToCommit( _buyer: string, _offerId: BigNumberish, @@ -743,8 +779,16 @@ export interface IBosonExchangeHandler extends BaseContract { 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( - _exchangeId: BigNumberish, + _tokenId: BigNumberish, _newBuyer: string, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -778,13 +822,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: PayableOverrides & { from?: string | Promise } ): Promise; - commitToPreMintedOffer( - _buyer: string, - _offerId: BigNumberish, - _exchangeId: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -806,6 +843,14 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + getEIP2981Royalties( + _queryId: BigNumberish, + _isExchangeId: boolean, + overrides?: CallOverrides + ): Promise< + [string, BigNumber] & { receiver: string; royaltyPercentage: BigNumber } + >; + getExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -833,6 +878,13 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getRoyalties( + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } + >; + isEligibleToCommit( _buyer: string, _offerId: BigNumberish, @@ -851,8 +903,16 @@ export interface IBosonExchangeHandler extends BaseContract { 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( - _exchangeId: BigNumberish, + _tokenId: BigNumberish, _newBuyer: string, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -886,13 +946,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; - commitToPreMintedOffer( - _buyer: string, - _offerId: BigNumberish, - _exchangeId: BigNumberish, - overrides?: CallOverrides - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -914,6 +967,14 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getEIP2981Royalties( + _queryId: BigNumberish, + _isExchangeId: boolean, + overrides?: CallOverrides + ): Promise< + [string, BigNumber] & { receiver: string; royaltyPercentage: BigNumber } + >; + getExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -941,6 +1002,13 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getRoyalties( + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise< + [string[], BigNumber[]] & { recipients: string[]; bps: BigNumber[] } + >; + isEligibleToCommit( _buyer: string, _offerId: BigNumberish, @@ -959,8 +1027,16 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise<[boolean, boolean] & { exists: boolean; isFinalized: boolean }>; + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: CallOverrides + ): Promise; + onVoucherTransferred( - _exchangeId: BigNumberish, + _tokenId: BigNumberish, _newBuyer: string, overrides?: CallOverrides ): Promise; @@ -1121,6 +1197,17 @@ export interface IBosonExchangeHandler extends BaseContract { 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, @@ -1228,13 +1315,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: PayableOverrides & { from?: string | Promise } ): Promise; - commitToPreMintedOffer( - _buyer: string, - _offerId: BigNumberish, - _exchangeId: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -1256,6 +1336,12 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + getEIP2981Royalties( + _queryId: BigNumberish, + _isExchangeId: boolean, + overrides?: CallOverrides + ): Promise; + getExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -1273,6 +1359,11 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getRoyalties( + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + isEligibleToCommit( _buyer: string, _offerId: BigNumberish, @@ -1285,8 +1376,16 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + onVoucherTransferred( - _exchangeId: BigNumberish, + _tokenId: BigNumberish, _newBuyer: string, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1321,13 +1420,6 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: PayableOverrides & { from?: string | Promise } ): Promise; - commitToPreMintedOffer( - _buyer: string, - _offerId: BigNumberish, - _exchangeId: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - completeExchange( _exchangeId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -1349,6 +1441,12 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + getEIP2981Royalties( + _queryId: BigNumberish, + _isExchangeId: boolean, + overrides?: CallOverrides + ): Promise; + getExchange( _exchangeId: BigNumberish, overrides?: CallOverrides @@ -1366,6 +1464,11 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + getRoyalties( + _tokenId: BigNumberish, + overrides?: CallOverrides + ): Promise; + isEligibleToCommit( _buyer: string, _offerId: BigNumberish, @@ -1378,8 +1481,16 @@ export interface IBosonExchangeHandler extends BaseContract { overrides?: CallOverrides ): Promise; + onPremintedVoucherTransferred( + _tokenId: BigNumberish, + _to: string, + _from: string, + _rangeOwner: string, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + onVoucherTransferred( - _exchangeId: BigNumberish, + _tokenId: BigNumberish, _newBuyer: string, overrides?: Overrides & { from?: string | Promise } ): Promise; diff --git a/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts b/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts index b08bba562..7492c1f24 100644 --- a/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonOfferHandler.ts @@ -18,6 +18,13 @@ 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; @@ -26,10 +33,12 @@ export declare namespace BosonTypes { buyerCancelPenalty: BigNumberish; quantityAvailable: BigNumberish; exchangeToken: string; + priceType: BigNumberish; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; }; export type OfferStructOutput = [ @@ -40,10 +49,12 @@ export declare namespace BosonTypes { BigNumber, BigNumber, string, + number, string, string, boolean, - BigNumber + BigNumber, + BosonTypes.RoyaltyInfoStructOutput[] ] & { id: BigNumber; sellerId: BigNumber; @@ -52,10 +63,12 @@ export declare namespace BosonTypes { buyerCancelPenalty: BigNumber; quantityAvailable: BigNumber; exchangeToken: string; + priceType: number; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; }; export type OfferDatesStruct = { @@ -122,8 +135,8 @@ export declare namespace BosonTypes { export interface IBosonOfferHandlerInterface extends utils.Interface { contractName: "IBosonOfferHandler"; functions: { - "createOffer((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256)": FunctionFragment; - "createOfferBatch((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256)[],(uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256)[],uint256[],uint256[])": FunctionFragment; + "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; "extendOffer(uint256,uint256)": FunctionFragment; "extendOfferBatch(uint256[],uint256)": FunctionFragment; "getAgentIdByOffer(uint256)": FunctionFragment; @@ -131,6 +144,8 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { "getOffer(uint256)": FunctionFragment; "isOfferVoided(uint256)": FunctionFragment; "reserveRange(uint256,uint256,address)": FunctionFragment; + "updateOfferRoyaltyRecipients(uint256,(address[],uint256[]))": FunctionFragment; + "updateOfferRoyaltyRecipientsBatch(uint256[],(address[],uint256[]))": FunctionFragment; "voidOffer(uint256)": FunctionFragment; "voidOfferBatch(uint256[])": FunctionFragment; }; @@ -142,6 +157,7 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, + BigNumberish, BigNumberish ] ): string; @@ -152,6 +168,7 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct[], BosonTypes.OfferDurationsStruct[], BigNumberish[], + BigNumberish[], BigNumberish[] ] ): string; @@ -183,6 +200,14 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "reserveRange", values: [BigNumberish, BigNumberish, string] ): string; + encodeFunctionData( + functionFragment: "updateOfferRoyaltyRecipients", + values: [BigNumberish, BosonTypes.RoyaltyInfoStruct] + ): string; + encodeFunctionData( + functionFragment: "updateOfferRoyaltyRecipientsBatch", + values: [BigNumberish[], BosonTypes.RoyaltyInfoStruct] + ): string; encodeFunctionData( functionFragment: "voidOffer", values: [BigNumberish] @@ -225,6 +250,14 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { functionFragment: "reserveRange", data: BytesLike ): Result; + decodeFunctionResult( + functionFragment: "updateOfferRoyaltyRecipients", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "updateOfferRoyaltyRecipientsBatch", + data: BytesLike + ): Result; decodeFunctionResult(functionFragment: "voidOffer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "voidOfferBatch", @@ -234,12 +267,14 @@ export interface IBosonOfferHandlerInterface extends utils.Interface { events: { "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; "OfferExtended(uint256,uint256,uint256,address)": EventFragment; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)": EventFragment; "OfferVoided(uint256,uint256,address)": EventFragment; "RangeReserved(uint256,uint256,uint256,uint256,address,address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "OfferCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OfferRoyaltyInfoUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "RangeReserved"): EventFragment; } @@ -283,6 +318,19 @@ export type OfferExtendedEvent = TypedEvent< export type OfferExtendedEventFilter = TypedEventFilter; +export type OfferRoyaltyInfoUpdatedEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.RoyaltyInfoStructOutput, string], + { + offerId: BigNumber; + sellerId: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput; + executedBy: string; + } +>; + +export type OfferRoyaltyInfoUpdatedEventFilter = + TypedEventFilter; + export type OfferVoidedEvent = TypedEvent< [BigNumber, BigNumber, string], { offerId: BigNumber; sellerId: BigNumber; executedBy: string } @@ -338,6 +386,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -347,6 +396,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct[], _disputeResolverIds: BigNumberish[], _agentIds: BigNumberish[], + _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -404,6 +454,18 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferRoyaltyRecipients( + _offerId: BigNumberish, + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + updateOfferRoyaltyRecipientsBatch( + _offerIds: BigNumberish[], + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -421,6 +483,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -430,6 +493,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct[], _disputeResolverIds: BigNumberish[], _agentIds: BigNumberish[], + _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -485,6 +549,18 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferRoyaltyRecipients( + _offerId: BigNumberish, + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + updateOfferRoyaltyRecipientsBatch( + _offerIds: BigNumberish[], + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -502,6 +578,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -511,6 +588,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct[], _disputeResolverIds: BigNumberish[], _agentIds: BigNumberish[], + _feeLimits: BigNumberish[], overrides?: CallOverrides ): Promise; @@ -566,6 +644,18 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: CallOverrides ): Promise; + updateOfferRoyaltyRecipients( + _offerId: BigNumberish, + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: CallOverrides + ): Promise; + + updateOfferRoyaltyRecipientsBatch( + _offerIds: BigNumberish[], + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: CallOverrides + ): Promise; + voidOffer(_offerId: BigNumberish, overrides?: CallOverrides): Promise; voidOfferBatch( @@ -611,6 +701,19 @@ export interface IBosonOfferHandler extends BaseContract { executedBy?: string | null ): OfferExtendedEventFilter; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + royaltyInfo?: null, + executedBy?: string | null + ): OfferRoyaltyInfoUpdatedEventFilter; + OfferRoyaltyInfoUpdated( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + royaltyInfo?: null, + executedBy?: string | null + ): OfferRoyaltyInfoUpdatedEventFilter; + "OfferVoided(uint256,uint256,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -647,6 +750,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -656,6 +760,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct[], _disputeResolverIds: BigNumberish[], _agentIds: BigNumberish[], + _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -695,6 +800,18 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferRoyaltyRecipients( + _offerId: BigNumberish, + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + updateOfferRoyaltyRecipientsBatch( + _offerIds: BigNumberish[], + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } @@ -713,6 +830,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -722,6 +840,7 @@ export interface IBosonOfferHandler extends BaseContract { _offerDurations: BosonTypes.OfferDurationsStruct[], _disputeResolverIds: BigNumberish[], _agentIds: BigNumberish[], + _feeLimits: BigNumberish[], overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -761,6 +880,18 @@ export interface IBosonOfferHandler extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; + updateOfferRoyaltyRecipients( + _offerId: BigNumberish, + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + + updateOfferRoyaltyRecipientsBatch( + _offerIds: BigNumberish[], + _royaltyInfo: BosonTypes.RoyaltyInfoStruct, + overrides?: Overrides & { from?: string | Promise } + ): Promise; + voidOffer( _offerId: BigNumberish, overrides?: Overrides & { from?: string | Promise } diff --git a/packages/ethers-sdk/src/contracts/IBosonOfferHandler230.ts b/packages/ethers-sdk/src/contracts/IBosonOfferHandler230.ts new file mode 100644 index 000000000..08b4e6f03 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/IBosonOfferHandler230.ts @@ -0,0 +1,208 @@ +/* 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 OfferStruct = { + id: BigNumberish; + sellerId: BigNumberish; + price: BigNumberish; + sellerDeposit: BigNumberish; + buyerCancelPenalty: BigNumberish; + quantityAvailable: BigNumberish; + exchangeToken: string; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: BigNumberish; + }; + + export type OfferStructOutput = [ + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + string, + string, + boolean, + BigNumber + ] & { + id: BigNumber; + sellerId: BigNumber; + price: BigNumber; + sellerDeposit: BigNumber; + buyerCancelPenalty: BigNumber; + quantityAvailable: BigNumber; + exchangeToken: string; + metadataUri: string; + metadataHash: string; + voided: boolean; + collectionIndex: 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 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 IBosonOfferHandler230Interface extends utils.Interface { + contractName: "IBosonOfferHandler230"; + functions: {}; + + events: { + "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "OfferCreated"): 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 interface IBosonOfferHandler230 extends BaseContract { + contractName: "IBosonOfferHandler230"; + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IBosonOfferHandler230Interface; + + 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; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts b/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts index 2aefacbca..4b0981824 100644 --- a/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts +++ b/packages/ethers-sdk/src/contracts/IBosonOrchestrationHandler.ts @@ -150,6 +150,13 @@ export declare namespace BosonTypes { maxTokenId: BigNumber; }; + export type RoyaltyInfoStruct = { recipients: string[]; bps: BigNumberish[] }; + + export type RoyaltyInfoStructOutput = [string[], BigNumber[]] & { + recipients: string[]; + bps: BigNumber[]; + }; + export type OfferStruct = { id: BigNumberish; sellerId: BigNumberish; @@ -158,10 +165,12 @@ export declare namespace BosonTypes { buyerCancelPenalty: BigNumberish; quantityAvailable: BigNumberish; exchangeToken: string; + priceType: BigNumberish; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumberish; + royaltyInfo: BosonTypes.RoyaltyInfoStruct[]; }; export type OfferStructOutput = [ @@ -172,10 +181,12 @@ export declare namespace BosonTypes { BigNumber, BigNumber, string, + number, string, string, boolean, - BigNumber + BigNumber, + BosonTypes.RoyaltyInfoStructOutput[] ] & { id: BigNumber; sellerId: BigNumber; @@ -184,10 +195,12 @@ export declare namespace BosonTypes { buyerCancelPenalty: BigNumber; quantityAvailable: BigNumber; exchangeToken: string; + priceType: number; metadataUri: string; metadataHash: string; voided: boolean; collectionIndex: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput[]; }; export type OfferDatesStruct = { @@ -250,6 +263,16 @@ export declare namespace BosonTypes { agentFee: BigNumber; }; + export type RoyaltyRecipientInfoStruct = { + wallet: string; + minRoyaltyPercentage: BigNumberish; + }; + + export type RoyaltyRecipientInfoStructOutput = [string, BigNumber] & { + wallet: string; + minRoyaltyPercentage: BigNumber; + }; + export type SellerStruct = { id: BigNumberish; assistant: string; @@ -316,6 +339,16 @@ export declare namespace BosonTypes { tokenType: number; }; + export type PremintParametersStruct = { + reservedRangeLength: BigNumberish; + to: string; + }; + + export type PremintParametersStructOutput = [BigNumber, string] & { + reservedRangeLength: BigNumber; + to: string; + }; + export type VoucherInitValuesStruct = { contractURI: string; royaltyPercentage: BigNumberish; @@ -332,22 +365,22 @@ export declare namespace BosonTypes { export interface IBosonOrchestrationHandlerInterface extends utils.Interface { contractName: "IBosonOrchestrationHandler"; functions: { - "createOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,uint256)": FunctionFragment; - "createOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256)": FunctionFragment; - "createOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256)": FunctionFragment; - "createOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,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)": FunctionFragment; - "createPremintedOfferAddToGroup((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,address,uint256,uint256)": FunctionFragment; - "createPremintedOfferAndTwinWithBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,address,(uint256,uint256,uint256,uint256,uint256,address,uint8),uint256)": FunctionFragment; - "createPremintedOfferWithCondition((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,address,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),uint256)": FunctionFragment; - "createPremintedOfferWithConditionAndTwinAndBundle((uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,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)": FunctionFragment; - "createSellerAndOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint8),(string,uint256,bytes32),uint256)": FunctionFragment; - "createSellerAndOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256)": FunctionFragment; - "createSellerAndOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,(uint8,uint8,address,uint8,uint256,uint256,uint256,uint256),(uint256,uint8),(string,uint256,bytes32),uint256)": FunctionFragment; - "createSellerAndOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,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)": FunctionFragment; - "createSellerAndPremintedOffer((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,address,(uint256,uint8),(string,uint256,bytes32),uint256)": FunctionFragment; - "createSellerAndPremintedOfferAndTwinWithBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),uint256,uint256,address,(uint256,uint256,uint256,uint256,uint256,address,uint8),(uint256,uint8),(string,uint256,bytes32),uint256)": FunctionFragment; - "createSellerAndPremintedOfferWithCondition((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,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)": FunctionFragment; - "createSellerAndPremintedOfferWithConditionAndTwinAndBundle((uint256,address,address,address,address,bool,string),(uint256,uint256,uint256,uint256,uint256,uint256,address,string,string,bool,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)": FunctionFragment; + "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; "raiseAndEscalateDispute(uint256)": FunctionFragment; }; @@ -359,6 +392,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDurationsStruct, BigNumberish, BigNumberish, + BigNumberish, BigNumberish ] ): string; @@ -370,6 +404,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDurationsStruct, BigNumberish, BosonTypes.TwinStruct, + BigNumberish, BigNumberish ] ): string; @@ -381,6 +416,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDurationsStruct, BigNumberish, BosonTypes.ConditionStruct, + BigNumberish, BigNumberish ] ): string; @@ -393,6 +429,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BigNumberish, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, + BigNumberish, BigNumberish ] ): string; @@ -403,8 +440,8 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, + BosonTypes.PremintParametersStruct, BigNumberish, - string, BigNumberish, BigNumberish ] @@ -416,9 +453,9 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.TwinStruct, + BigNumberish, BigNumberish ] ): string; @@ -429,9 +466,9 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, + BigNumberish, BigNumberish ] ): string; @@ -442,10 +479,10 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, + BigNumberish, BigNumberish ] ): string; @@ -459,6 +496,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BigNumberish, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -473,6 +511,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -487,6 +526,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.ConditionStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -502,6 +542,7 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -513,10 +554,10 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -528,11 +569,11 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -544,11 +585,11 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -560,12 +601,12 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { BosonTypes.OfferDatesStruct, BosonTypes.OfferDurationsStruct, BigNumberish, - BigNumberish, - string, + BosonTypes.PremintParametersStruct, BosonTypes.ConditionStruct, BosonTypes.TwinStruct, BosonTypes.AuthTokenStruct, BosonTypes.VoucherInitValuesStruct, + BigNumberish, BigNumberish ] ): string; @@ -661,14 +702,17 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { "GroupUpdated(uint256,uint256,tuple,tuple,address)": EventFragment; "OfferCreated(uint256,uint256,tuple,tuple,tuple,tuple,tuple,uint256,address)": EventFragment; "OfferExtended(uint256,uint256,uint256,address)": EventFragment; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)": EventFragment; "OfferVoided(uint256,uint256,address)": EventFragment; "RangeReserved(uint256,uint256,uint256,uint256,address,address)": EventFragment; + "RoyaltyRecipientsChanged(uint256,tuple[],address)": EventFragment; "SellerCreated(uint256,tuple,address,tuple,address)": EventFragment; "SellerUpdateApplied(uint256,tuple,tuple,tuple,tuple,address)": EventFragment; "SellerUpdatePending(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; }; @@ -693,14 +737,17 @@ export interface IBosonOrchestrationHandlerInterface extends utils.Interface { getEvent(nameOrSignatureOrTopic: "GroupUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferExtended"): EventFragment; + getEvent(nameOrSignatureOrTopic: "OfferRoyaltyInfoUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "OfferVoided"): EventFragment; getEvent(nameOrSignatureOrTopic: "RangeReserved"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RoyaltyRecipientsChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerUpdateApplied"): EventFragment; getEvent(nameOrSignatureOrTopic: "SellerUpdatePending"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinCreated"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinDeleted"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinTransferFailed"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TwinTransferSkipped"): EventFragment; getEvent(nameOrSignatureOrTopic: "TwinTransferred"): EventFragment; } @@ -949,6 +996,19 @@ export type OfferExtendedEvent = TypedEvent< export type OfferExtendedEventFilter = TypedEventFilter; +export type OfferRoyaltyInfoUpdatedEvent = TypedEvent< + [BigNumber, BigNumber, BosonTypes.RoyaltyInfoStructOutput, string], + { + offerId: BigNumber; + sellerId: BigNumber; + royaltyInfo: BosonTypes.RoyaltyInfoStructOutput; + executedBy: string; + } +>; + +export type OfferRoyaltyInfoUpdatedEventFilter = + TypedEventFilter; + export type OfferVoidedEvent = TypedEvent< [BigNumber, BigNumber, string], { offerId: BigNumber; sellerId: BigNumber; executedBy: string } @@ -970,6 +1030,18 @@ export type RangeReservedEvent = TypedEvent< export type RangeReservedEventFilter = TypedEventFilter; +export type RoyaltyRecipientsChangedEvent = TypedEvent< + [BigNumber, BosonTypes.RoyaltyRecipientInfoStructOutput[], string], + { + sellerId: BigNumber; + royaltyRecipients: BosonTypes.RoyaltyRecipientInfoStructOutput[]; + executedBy: string; + } +>; + +export type RoyaltyRecipientsChangedEventFilter = + TypedEventFilter; + export type SellerCreatedEvent = TypedEvent< [ BigNumber, @@ -1063,6 +1135,14 @@ export type TwinTransferFailedEvent = TypedEvent< 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], { @@ -1112,6 +1192,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1122,6 +1203,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1132,6 +1214,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1143,6 +1226,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1151,10 +1235,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1163,10 +1247,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1175,10 +1259,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1187,11 +1271,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1204,6 +1288,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1217,6 +1302,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1230,6 +1316,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1244,6 +1331,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1253,11 +1341,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1267,12 +1355,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1282,12 +1370,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1297,13 +1385,13 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1320,6 +1408,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1330,6 +1419,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1340,6 +1430,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1351,6 +1442,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1359,10 +1451,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1371,10 +1463,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1383,10 +1475,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1395,11 +1487,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1412,6 +1504,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1425,6 +1518,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1438,6 +1532,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1452,6 +1547,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1461,11 +1557,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1475,12 +1571,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1490,12 +1586,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1505,13 +1601,13 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -1528,6 +1624,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1538,6 +1635,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1548,6 +1646,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1559,6 +1658,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1567,10 +1667,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1579,10 +1679,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1591,10 +1691,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1603,11 +1703,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1620,6 +1720,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1633,6 +1734,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1646,6 +1748,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1660,6 +1763,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1669,11 +1773,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1683,12 +1787,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1698,12 +1802,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1713,13 +1817,13 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: CallOverrides ): Promise; @@ -1951,6 +2055,19 @@ export interface IBosonOrchestrationHandler extends BaseContract { executedBy?: string | null ): OfferExtendedEventFilter; + "OfferRoyaltyInfoUpdated(uint256,uint256,tuple,address)"( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + royaltyInfo?: null, + executedBy?: string | null + ): OfferRoyaltyInfoUpdatedEventFilter; + OfferRoyaltyInfoUpdated( + offerId?: BigNumberish | null, + sellerId?: BigNumberish | null, + royaltyInfo?: null, + executedBy?: string | null + ): OfferRoyaltyInfoUpdatedEventFilter; + "OfferVoided(uint256,uint256,address)"( offerId?: BigNumberish | null, sellerId?: BigNumberish | null, @@ -1979,6 +2096,17 @@ export interface IBosonOrchestrationHandler extends BaseContract { executedBy?: string | null ): RangeReservedEventFilter; + "RoyaltyRecipientsChanged(uint256,tuple[],address)"( + sellerId?: BigNumberish | null, + royaltyRecipients?: null, + executedBy?: string | null + ): RoyaltyRecipientsChangedEventFilter; + RoyaltyRecipientsChanged( + sellerId?: BigNumberish | null, + royaltyRecipients?: null, + executedBy?: string | null + ): RoyaltyRecipientsChangedEventFilter; + "SellerCreated(uint256,tuple,address,tuple,address)"( sellerId?: BigNumberish | null, seller?: null, @@ -2065,6 +2193,17 @@ export interface IBosonOrchestrationHandler extends BaseContract { 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, @@ -2091,6 +2230,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2101,6 +2241,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2111,6 +2252,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2122,6 +2264,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2130,10 +2273,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2142,10 +2285,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2154,10 +2297,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2166,11 +2309,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2183,6 +2326,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2196,6 +2340,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2209,6 +2354,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2223,6 +2369,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2232,11 +2379,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2246,12 +2393,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2261,12 +2408,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2276,13 +2423,13 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2300,6 +2447,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2310,6 +2458,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2320,6 +2469,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _disputeResolverId: BigNumberish, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2331,6 +2481,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2339,10 +2490,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _groupId: BigNumberish, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2351,10 +2502,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2363,10 +2514,10 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2375,11 +2526,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2392,6 +2543,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2405,6 +2557,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2418,6 +2571,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2432,6 +2586,7 @@ export interface IBosonOrchestrationHandler extends BaseContract { _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2441,11 +2596,11 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2455,12 +2610,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2470,12 +2625,12 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; @@ -2485,13 +2640,13 @@ export interface IBosonOrchestrationHandler extends BaseContract { _offerDates: BosonTypes.OfferDatesStruct, _offerDurations: BosonTypes.OfferDurationsStruct, _disputeResolverId: BigNumberish, - _reservedRangeLength: BigNumberish, - _to: string, + _premintParameters: BosonTypes.PremintParametersStruct, _condition: BosonTypes.ConditionStruct, _twin: BosonTypes.TwinStruct, _authToken: BosonTypes.AuthTokenStruct, _voucherInitValues: BosonTypes.VoucherInitValuesStruct, _agentId: BigNumberish, + _feeLimit: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; diff --git a/packages/ethers-sdk/src/contracts/IBosonVoucher.ts b/packages/ethers-sdk/src/contracts/IBosonVoucher.ts index 6937987ea..632c53c26 100644 --- a/packages/ethers-sdk/src/contracts/IBosonVoucher.ts +++ b/packages/ethers-sdk/src/contracts/IBosonVoucher.ts @@ -54,7 +54,6 @@ export interface IBosonVoucherInterface extends utils.Interface { "getApproved(uint256)": FunctionFragment; "getAvailablePreMints(uint256)": FunctionFragment; "getRangeByOfferId(uint256)": FunctionFragment; - "getRoyaltyPercentage()": FunctionFragment; "getSellerId()": FunctionFragment; "isApprovedForAll(address,address)": FunctionFragment; "issueVoucher(uint256,address)": FunctionFragment; @@ -68,7 +67,6 @@ export interface IBosonVoucherInterface extends utils.Interface { "setApprovalForAll(address,bool)": FunctionFragment; "setApprovalForAllToContract(address,bool)": FunctionFragment; "setContractURI(string)": FunctionFragment; - "setRoyaltyPercentage(uint256)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; "symbol()": FunctionFragment; "tokenURI(uint256)": FunctionFragment; @@ -110,10 +108,6 @@ export interface IBosonVoucherInterface extends utils.Interface { functionFragment: "getRangeByOfferId", values: [BigNumberish] ): string; - encodeFunctionData( - functionFragment: "getRoyaltyPercentage", - values?: undefined - ): string; encodeFunctionData( functionFragment: "getSellerId", values?: undefined @@ -163,10 +157,6 @@ export interface IBosonVoucherInterface extends utils.Interface { functionFragment: "setContractURI", values: [string] ): string; - encodeFunctionData( - functionFragment: "setRoyaltyPercentage", - values: [BigNumberish] - ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] @@ -219,10 +209,6 @@ export interface IBosonVoucherInterface extends utils.Interface { functionFragment: "getRangeByOfferId", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "getRoyaltyPercentage", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "getSellerId", data: BytesLike @@ -266,10 +252,6 @@ export interface IBosonVoucherInterface extends utils.Interface { functionFragment: "setContractURI", data: BytesLike ): Result; - decodeFunctionResult( - functionFragment: "setRoyaltyPercentage", - data: BytesLike - ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike @@ -294,9 +276,8 @@ export interface IBosonVoucherInterface extends utils.Interface { "ApprovalForAll(address,address,bool)": EventFragment; "ContractURIChanged(string)": EventFragment; "RangeReserved(uint256,tuple)": EventFragment; - "RoyaltyPercentageChanged(uint256)": EventFragment; "Transfer(address,address,uint256)": EventFragment; - "VoucherInitialized(uint256,uint256,string)": EventFragment; + "VoucherInitialized(uint256,string)": EventFragment; "VouchersPreMinted(uint256,uint256,uint256)": EventFragment; }; @@ -304,7 +285,6 @@ export interface IBosonVoucherInterface extends utils.Interface { getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; getEvent(nameOrSignatureOrTopic: "ContractURIChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "RangeReserved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoyaltyPercentageChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; getEvent(nameOrSignatureOrTopic: "VoucherInitialized"): EventFragment; getEvent(nameOrSignatureOrTopic: "VouchersPreMinted"): EventFragment; @@ -339,14 +319,6 @@ export type RangeReservedEvent = TypedEvent< export type RangeReservedEventFilter = TypedEventFilter; -export type RoyaltyPercentageChangedEvent = TypedEvent< - [BigNumber], - { royaltyPercentage: BigNumber } ->; - -export type RoyaltyPercentageChangedEventFilter = - TypedEventFilter; - export type TransferEvent = TypedEvent< [string, string, BigNumber], { from: string; to: string; tokenId: BigNumber } @@ -355,8 +327,8 @@ export type TransferEvent = TypedEvent< export type TransferEventFilter = TypedEventFilter; export type VoucherInitializedEvent = TypedEvent< - [BigNumber, BigNumber, string], - { sellerId: BigNumber; royaltyPercentage: BigNumber; contractURI: string } + [BigNumber, string], + { sellerId: BigNumber; contractURI: string } >; export type VoucherInitializedEventFilter = @@ -447,8 +419,6 @@ export interface IBosonVoucher extends BaseContract { } >; - getRoyaltyPercentage(overrides?: CallOverrides): Promise<[BigNumber]>; - getSellerId(overrides?: CallOverrides): Promise<[BigNumber]>; isApprovedForAll( @@ -532,11 +502,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - setRoyaltyPercentage( - _newRoyaltyPercentage: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides @@ -609,8 +574,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: CallOverrides ): Promise; - getRoyaltyPercentage(overrides?: CallOverrides): Promise; - getSellerId(overrides?: CallOverrides): Promise; isApprovedForAll( @@ -691,11 +654,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - setRoyaltyPercentage( - _newRoyaltyPercentage: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides @@ -765,8 +723,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: CallOverrides ): Promise; - getRoyaltyPercentage(overrides?: CallOverrides): Promise; - getSellerId(overrides?: CallOverrides): Promise; isApprovedForAll( @@ -847,11 +803,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: CallOverrides ): Promise; - setRoyaltyPercentage( - _newRoyaltyPercentage: BigNumberish, - overrides?: CallOverrides - ): Promise; - supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides @@ -916,13 +867,6 @@ export interface IBosonVoucher extends BaseContract { range?: null ): RangeReservedEventFilter; - "RoyaltyPercentageChanged(uint256)"( - royaltyPercentage?: null - ): RoyaltyPercentageChangedEventFilter; - RoyaltyPercentageChanged( - royaltyPercentage?: null - ): RoyaltyPercentageChangedEventFilter; - "Transfer(address,address,uint256)"( from?: string | null, to?: string | null, @@ -934,14 +878,12 @@ export interface IBosonVoucher extends BaseContract { tokenId?: BigNumberish | null ): TransferEventFilter; - "VoucherInitialized(uint256,uint256,string)"( + "VoucherInitialized(uint256,string)"( sellerId?: BigNumberish | null, - royaltyPercentage?: BigNumberish | null, contractURI?: string | null ): VoucherInitializedEventFilter; VoucherInitialized( sellerId?: BigNumberish | null, - royaltyPercentage?: BigNumberish | null, contractURI?: string | null ): VoucherInitializedEventFilter; @@ -1000,8 +942,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: CallOverrides ): Promise; - getRoyaltyPercentage(overrides?: CallOverrides): Promise; - getSellerId(overrides?: CallOverrides): Promise; isApprovedForAll( @@ -1083,11 +1023,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - setRoyaltyPercentage( - _newRoyaltyPercentage: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides @@ -1164,10 +1099,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: CallOverrides ): Promise; - getRoyaltyPercentage( - overrides?: CallOverrides - ): Promise; - getSellerId(overrides?: CallOverrides): Promise; isApprovedForAll( @@ -1249,11 +1180,6 @@ export interface IBosonVoucher extends BaseContract { overrides?: Overrides & { from?: string | Promise } ): Promise; - setRoyaltyPercentage( - _newRoyaltyPercentage: BigNumberish, - overrides?: Overrides & { from?: string | Promise } - ): Promise; - supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides diff --git a/packages/ethers-sdk/src/contracts/factories/ERC1155__factory.ts b/packages/ethers-sdk/src/contracts/factories/ERC1155__factory.ts index d60c56b2a..1c1312547 100644 --- a/packages/ethers-sdk/src/contracts/factories/ERC1155__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/ERC1155__factory.ts @@ -281,6 +281,53 @@ const _abi = [ stateMutability: "pure", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + ], + name: "uri", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + constant: true, + inputs: [], + name: "name", + outputs: [ + { + name: "", + type: "string", + }, + ], + payable: false, + stateMutability: "view", + type: "function", + }, + { + constant: true, + inputs: [], + name: "symbol", + outputs: [ + { + name: "", + type: "string", + }, + ], + payable: false, + stateMutability: "view", + type: "function", + }, ]; export class ERC1155__factory { diff --git a/packages/ethers-sdk/src/contracts/factories/ERC165__factory.ts b/packages/ethers-sdk/src/contracts/factories/ERC165__factory.ts new file mode 100644 index 000000000..244e01ab8 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/ERC165__factory.ts @@ -0,0 +1,39 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { ERC165, ERC165Interface } from "../ERC165"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, +]; + +export class ERC165__factory { + static readonly abi = _abi; + static createInterface(): ERC165Interface { + return new utils.Interface(_abi) as ERC165Interface; + } + static connect(address: string, signerOrProvider: Signer | Provider): ERC165 { + return new Contract(address, _abi, signerOrProvider) as ERC165; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts index 4886ce810..9ebb77cda 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonAccountHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonAccountHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ @@ -620,6 +1450,43 @@ const _abi = [ name: "DisputeResolverUpdatePending", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable", + name: "wallet", + type: "address", + }, + { + internalType: "uint256", + name: "minRoyaltyPercentage", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.RoyaltyRecipientInfo[]", + name: "royaltyRecipients", + type: "tuple[]", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "RoyaltyRecipientsChanged", + type: "event", + }, { anonymous: false, inputs: [ @@ -962,6 +1829,36 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable", + name: "wallet", + type: "address", + }, + { + internalType: "uint256", + name: "minRoyaltyPercentage", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.RoyaltyRecipientInfo[]", + name: "_royaltyRecipients", + type: "tuple[]", + }, + ], + name: "addRoyaltyRecipients", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -1590,6 +2487,37 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + ], + name: "getRoyaltyRecipients", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "address payable", + name: "wallet", + type: "address", + }, + ], + internalType: "struct BosonTypes.RoyaltyRecipient[]", + name: "royaltyRecipients", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -1836,6 +2764,25 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + ], + name: "getSellersCollectionCount", + outputs: [ + { + internalType: "uint256", + name: "collectionCount", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -1872,6 +2819,52 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_limit", + type: "uint256", + }, + { + internalType: "uint256", + name: "_offset", + type: "uint256", + }, + ], + name: "getSellersCollectionsPaginated", + outputs: [ + { + internalType: "address", + name: "defaultVoucherAddress", + type: "address", + }, + { + components: [ + { + internalType: "address", + name: "collectionAddress", + type: "address", + }, + { + internalType: "string", + name: "externalId", + type: "string", + }, + ], + internalType: "struct BosonTypes.Collection[]", + name: "additionalCollections", + type: "tuple[]", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -1950,6 +2943,24 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256[]", + name: "_royaltyRecipientIds", + type: "uint256[]", + }, + ], + name: "removeRoyaltyRecipients", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -2088,6 +3099,41 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_sellerId", + type: "uint256", + }, + { + internalType: "uint256[]", + name: "_royaltyRecipientIds", + type: "uint256[]", + }, + { + components: [ + { + internalType: "address payable", + name: "wallet", + type: "address", + }, + { + internalType: "uint256", + name: "minRoyaltyPercentage", + type: "uint256", + }, + ], + internalType: "struct BosonTypes.RoyaltyRecipientInfo[]", + name: "_royaltyRecipients", + type: "tuple[]", + }, + ], + name: "updateRoyaltyRecipients", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts index 84270095d..3b8714b8d 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonDisputeHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonDisputeHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts index 86789029c..dc36158b4 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonExchangeHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonExchangeHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ @@ -448,6 +1278,31 @@ const _abi = [ 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: [ @@ -707,29 +1562,6 @@ const _abi = [ stateMutability: "payable", type: "function", }, - { - inputs: [ - { - internalType: "address payable", - name: "_buyer", - type: "address", - }, - { - internalType: "uint256", - name: "_offerId", - type: "uint256", - }, - { - internalType: "uint256", - name: "_exchangeId", - type: "uint256", - }, - ], - name: "commitToPreMintedOffer", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -787,6 +1619,35 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_queryId", + type: "uint256", + }, + { + internalType: "bool", + name: "_isExchangeId", + type: "bool", + }, + ], + name: "getEIP2981Royalties", + outputs: [ + { + internalType: "address", + name: "receiver", + type: "address", + }, + { + internalType: "uint256", + name: "royaltyPercentage", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -1104,6 +1965,30 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + ], + name: "getRoyalties", + outputs: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -1171,7 +2056,41 @@ const _abi = [ inputs: [ { internalType: "uint256", - name: "_exchangeId", + 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: [ + { + internalType: "uint256", + name: "_tokenId", type: "uint256", }, { diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts index 983912b58..36da53c54 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonFundsHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonFundsHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts index df748babf..f6352518e 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonGroupHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonGroupHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts index d27f71548..7d1920a73 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonMetaTransactionsHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonMetaTransactionsHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler230__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler230__factory.ts new file mode 100644 index 000000000..4c0bd1205 --- /dev/null +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler230__factory.ts @@ -0,0 +1,221 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import { Provider } from "@ethersproject/providers"; +import type { + IBosonOfferHandler230, + IBosonOfferHandler230Interface, +} from "../IBosonOfferHandler230"; + +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: "string", + name: "metadataUri", + type: "string", + }, + { + internalType: "string", + name: "metadataHash", + type: "string", + }, + { + internalType: "bool", + name: "voided", + type: "bool", + }, + { + internalType: "uint256", + name: "collectionIndex", + type: "uint256", + }, + ], + 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", + }, +]; + +export class IBosonOfferHandler230__factory { + static readonly abi = _abi; + static createInterface(): IBosonOfferHandler230Interface { + return new utils.Interface(_abi) as IBosonOfferHandler230Interface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IBosonOfferHandler230 { + return new Contract( + address, + _abi, + signerOrProvider + ) as IBosonOfferHandler230; + } +} diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts index 66a285bad..12e413c5d 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOfferHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonOfferHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ @@ -62,6 +892,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -82,6 +917,23 @@ const _abi = [ 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", @@ -232,6 +1084,49 @@ 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", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + indexed: false, + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferRoyaltyInfoUpdated", + type: "event", + }, { anonymous: false, inputs: [ @@ -339,6 +1234,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -359,6 +1259,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -423,6 +1340,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createOffer", outputs: [], @@ -468,6 +1390,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -488,6 +1415,23 @@ const _abi = [ 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: "struct BosonTypes.Offer[]", name: "_offers", @@ -552,6 +1496,11 @@ const _abi = [ name: "_agentIds", type: "uint256[]", }, + { + internalType: "uint256[]", + name: "_feeLimits", + type: "uint256[]", + }, ], name: "createOfferBatch", outputs: [], @@ -683,6 +1632,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -703,6 +1657,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "offer", @@ -852,6 +1823,66 @@ const _abi = [ 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[]", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + internalType: "struct BosonTypes.RoyaltyInfo", + name: "_royaltyInfo", + type: "tuple", + }, + ], + name: "updateOfferRoyaltyRecipientsBatch", + 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 450e384ad..66b59beb0 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonOrchestrationHandler__factory.ts @@ -10,6 +10,836 @@ import type { } from "../IBosonOrchestrationHandler"; 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: "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: "FeeAmountNotYetSupported", + type: "error", + }, + { + inputs: [], + name: "FeeAmountTooHigh", + 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: "InvalidBuyerPercent", + 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: "InvalidOfferPenalty", + type: "error", + }, + { + inputs: [], + name: "InvalidOfferPeriod", + type: "error", + }, + { + inputs: [], + name: "InvalidPriceDiscovery", + 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: "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: "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: "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: "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: "PriceMismatch", + type: "error", + }, + { + inputs: [], + name: "ProtocolInitializationFailed", + type: "error", + }, + { + inputs: [], + name: "RecipientNotUnique", + type: "error", + }, + { + inputs: [], + name: "ReentrancyGuard", + type: "error", + }, + { + inputs: [], + name: "RegionPaused", + type: "error", + }, + { + inputs: [], + name: "RoyaltyRecipientIdsNotSorted", + type: "error", + }, + { + inputs: [], + name: "SellerAddressMustBeUnique", + type: "error", + }, + { + inputs: [], + name: "SellerAlreadyApproved", + type: "error", + }, + { + inputs: [], + name: "SellerNotApproved", + type: "error", + }, + { + inputs: [], + name: "SellerSaltNotUnique", + type: "error", + }, + { + inputs: [], + name: "SignerAndSignatureDoNotMatch", + 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: [], + name: "UnexpectedERC721Received", + 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: [ @@ -917,6 +1747,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -937,6 +1772,23 @@ const _abi = [ 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", @@ -1087,6 +1939,49 @@ 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", + }, + { + components: [ + { + internalType: "address payable[]", + name: "recipients", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "bps", + type: "uint256[]", + }, + ], + indexed: false, + internalType: "struct BosonTypes.RoyaltyInfo", + name: "royaltyInfo", + type: "tuple", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "OfferRoyaltyInfoUpdated", + type: "event", + }, { anonymous: false, inputs: [ @@ -1155,6 +2050,43 @@ const _abi = [ name: "RangeReserved", type: "event", }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "sellerId", + type: "uint256", + }, + { + components: [ + { + internalType: "address payable", + name: "wallet", + type: "address", + }, + { + internalType: "uint256", + name: "minRoyaltyPercentage", + type: "uint256", + }, + ], + indexed: false, + internalType: "struct BosonTypes.RoyaltyRecipientInfo[]", + name: "royaltyRecipients", + type: "tuple[]", + }, + { + indexed: true, + internalType: "address", + name: "executedBy", + type: "address", + }, + ], + name: "RoyaltyRecipientsChanged", + type: "event", + }, { anonymous: false, inputs: [ @@ -1598,6 +2530,31 @@ const _abi = [ 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: [ @@ -1680,6 +2637,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1700,6 +2662,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -1769,6 +2748,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createOfferAddToGroup", outputs: [], @@ -1814,6 +2798,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -1834,6 +2823,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -1940,6 +2946,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createOfferAndTwinWithBundle", outputs: [], @@ -1985,6 +2996,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2005,6 +3021,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2113,7 +3146,12 @@ const _abi = [ }, { internalType: "uint256", - name: "_agentId", + name: "_agentId", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeLimit", type: "uint256", }, ], @@ -2161,6 +3199,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2181,6 +3224,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2334,6 +3394,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createOfferWithConditionAndTwinAndBundle", outputs: [], @@ -2379,6 +3444,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2399,6 +3469,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2459,14 +3546,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { internalType: "uint256", @@ -2478,6 +3572,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createPremintedOfferAddToGroup", outputs: [], @@ -2523,6 +3622,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2543,6 +3647,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2603,14 +3724,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -2659,6 +3787,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createPremintedOfferAndTwinWithBundle", outputs: [], @@ -2704,6 +3837,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2724,6 +3862,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2784,14 +3939,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -2845,6 +4007,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createPremintedOfferWithCondition", outputs: [], @@ -2890,6 +4057,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -2910,6 +4082,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -2970,14 +4159,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -3073,6 +4269,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createPremintedOfferWithConditionAndTwinAndBundle", outputs: [], @@ -3160,6 +4361,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3180,6 +4386,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -3283,6 +4506,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndOffer", outputs: [], @@ -3370,6 +4598,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3390,6 +4623,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -3535,6 +4785,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndOfferAndTwinWithBundle", outputs: [], @@ -3622,6 +4877,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3642,6 +4902,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -3792,6 +5069,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndOfferWithCondition", outputs: [], @@ -3879,6 +5161,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -3899,6 +5186,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -4091,6 +5395,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndOfferWithConditionAndTwinAndBundle", outputs: [], @@ -4178,6 +5487,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4198,6 +5512,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -4258,14 +5589,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -4311,6 +5649,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndPremintedOffer", outputs: [], @@ -4398,6 +5741,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4418,6 +5766,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -4478,14 +5843,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -4573,6 +5945,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndPremintedOfferAndTwinWithBundle", outputs: [], @@ -4660,6 +6037,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4680,6 +6062,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -4740,14 +6139,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -4840,6 +6246,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndPremintedOfferWithCondition", outputs: [], @@ -4927,6 +6338,11 @@ const _abi = [ name: "exchangeToken", type: "address", }, + { + internalType: "enum BosonTypes.PriceType", + name: "priceType", + type: "uint8", + }, { internalType: "string", name: "metadataUri", @@ -4947,6 +6363,23 @@ const _abi = [ 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: "struct BosonTypes.Offer", name: "_offer", @@ -5007,14 +6440,21 @@ const _abi = [ type: "uint256", }, { - internalType: "uint256", - name: "_reservedRangeLength", - type: "uint256", - }, - { - internalType: "address", - name: "_to", - type: "address", + components: [ + { + internalType: "uint256", + name: "reservedRangeLength", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + internalType: "struct BosonTypes.PremintParameters", + name: "_premintParameters", + type: "tuple", }, { components: [ @@ -5149,6 +6589,11 @@ const _abi = [ name: "_agentId", type: "uint256", }, + { + internalType: "uint256", + name: "_feeLimit", + type: "uint256", + }, ], name: "createSellerAndPremintedOfferWithConditionAndTwinAndBundle", outputs: [], diff --git a/packages/ethers-sdk/src/contracts/factories/IBosonVoucher__factory.ts b/packages/ethers-sdk/src/contracts/factories/IBosonVoucher__factory.ts index a5a2a823b..a61bb6059 100644 --- a/packages/ethers-sdk/src/contracts/factories/IBosonVoucher__factory.ts +++ b/packages/ethers-sdk/src/contracts/factories/IBosonVoucher__factory.ts @@ -116,19 +116,6 @@ const _abi = [ name: "RangeReserved", type: "event", }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "royaltyPercentage", - type: "uint256", - }, - ], - name: "RoyaltyPercentageChanged", - type: "event", - }, { anonymous: false, inputs: [ @@ -163,12 +150,6 @@ const _abi = [ name: "sellerId", type: "uint256", }, - { - indexed: true, - internalType: "uint256", - name: "royaltyPercentage", - type: "uint256", - }, { indexed: true, internalType: "string", @@ -393,19 +374,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [], - name: "getRoyaltyPercentage", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [], name: "getSellerId", @@ -702,19 +670,6 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, - { - inputs: [ - { - internalType: "uint256", - name: "_newRoyaltyPercentage", - type: "uint256", - }, - ], - name: "setRoyaltyPercentage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { diff --git a/packages/ethers-sdk/src/contracts/index.ts b/packages/ethers-sdk/src/contracts/index.ts index a5ccb906a..d95869f22 100644 --- a/packages/ethers-sdk/src/contracts/index.ts +++ b/packages/ethers-sdk/src/contracts/index.ts @@ -3,6 +3,7 @@ /* eslint-disable */ export type { BiconomyForwarder } from "./BiconomyForwarder"; 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"; @@ -14,6 +15,7 @@ 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 { IBosonOfferHandlerLegacy } from "./IBosonOfferHandlerLegacy"; export type { IBosonOrchestrationHandler } from "./IBosonOrchestrationHandler"; export type { IBosonVoucher } from "./IBosonVoucher"; @@ -23,6 +25,7 @@ export type { ProtocolDiamond } from "./ProtocolDiamond"; export { BiconomyForwarder__factory } from "./factories/BiconomyForwarder__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"; @@ -34,6 +37,7 @@ export { IBosonGroupHandler__factory } from "./factories/IBosonGroupHandler__fac 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 { IBosonOfferHandlerLegacy__factory } from "./factories/IBosonOfferHandlerLegacy__factory"; export { IBosonOrchestrationHandler__factory } from "./factories/IBosonOrchestrationHandler__factory"; export { IBosonVoucher__factory } from "./factories/IBosonVoucher__factory"; diff --git a/packages/react-kit/src/hooks/useRenderTemplate.ts b/packages/react-kit/src/hooks/useRenderTemplate.ts index 8f2c2414f..489e11ba2 100644 --- a/packages/react-kit/src/hooks/useRenderTemplate.ts +++ b/packages/react-kit/src/hooks/useRenderTemplate.ts @@ -1,6 +1,6 @@ -import { CreateOfferArgs } from "@bosonprotocol/common"; +import { ethers } from "ethers"; +import { CreateOfferArgs, PriceType } from "@bosonprotocol/common"; import { offers, subgraph } from "@bosonprotocol/core-sdk"; -import { BigNumber } from "ethers"; import { useEffect, useState } from "react"; import { ProgressStatus } from "../lib/progress/progressStatus"; import { useCoreSDKWithContext } from "./core-sdk/useCoreSdkWithContext"; @@ -87,28 +87,28 @@ function buildOfferData(offerFields: OfferFieldsFragment): { agentId: offerFields.agentId as string, buyerCancelPenalty: offerFields.buyerCancelPenalty as string, quantityAvailable: offerFields.quantityAvailable as string, - validFromDateInMS: BigNumber.from(offerFields.validFromDate) + validFromDateInMS: ethers.BigNumber.from(offerFields.validFromDate) .mul(1000) .toString(), - validUntilDateInMS: BigNumber.from(offerFields.validUntilDate) + validUntilDateInMS: ethers.BigNumber.from(offerFields.validUntilDate) .mul(1000) .toString(), - voucherRedeemableFromDateInMS: BigNumber.from( + voucherRedeemableFromDateInMS: ethers.BigNumber.from( offerFields.voucherRedeemableFromDate ) .mul(1000) .toString(), - voucherRedeemableUntilDateInMS: BigNumber.from( + voucherRedeemableUntilDateInMS: ethers.BigNumber.from( offerFields.voucherRedeemableUntilDate ) .mul(1000) .toString(), - disputePeriodDurationInMS: BigNumber.from( + disputePeriodDurationInMS: ethers.BigNumber.from( offerFields.disputePeriodDuration ) .mul(1000) .toString(), - resolutionPeriodDurationInMS: BigNumber.from( + resolutionPeriodDurationInMS: ethers.BigNumber.from( offerFields.resolutionPeriodDuration ) .mul(1000) @@ -117,7 +117,15 @@ function buildOfferData(offerFields: OfferFieldsFragment): { disputeResolverId: offerFields.disputeResolverId as string, metadataHash: offerFields.metadataHash as string, metadataUri: offerFields.metadataUri as string, - collectionIndex: offerFields.collectionIndex + collectionIndex: offerFields.collectionIndex, + feeLimit: offerFields.price, // feeLimit is never stored on-chain. By default, set it to offer price + priceType: PriceType.Static, + royaltyInfo: [ + { + recipients: [ethers.constants.AddressZero], // AddressZero means Seller's treasury account + bps: ["0"] // Values should be greater or equal than Seller's minimum royalty amount + } + ] }, offerMetadata: { sellerContactMethod: diff --git a/packages/subgraph/schema.graphql b/packages/subgraph/schema.graphql index 29503f3aa..fa9791ed5 100644 --- a/packages/subgraph/schema.graphql +++ b/packages/subgraph/schema.graphql @@ -519,6 +519,39 @@ enum ProductV1MediaType { VIDEO } +enum PriceType { + STATIC + DISCOVERY +} + +type RoyaltyRecipientXSeller @entity { + id: ID! + seller: Seller! + recipient: RoyaltyRecipient! + minRoyaltyPercentage: BigInt! +} + +type RoyaltyRecipient @entity { + id: ID! + wallet: Bytes! + royalties: [RoyaltyRecipientXOffer!]! @derivedFrom(field: "recipient") + sellers: [RoyaltyRecipientXSeller!]! @derivedFrom(field: "recipient") +} + +type RoyaltyRecipientXOffer @entity { + id: ID! + recipient: RoyaltyRecipient! + bps: BigInt! + offer: Offer! +} + +type RoyaltyInfo @entity { + id: ID! + offer: Offer! + recipients: [RoyaltyRecipientXOffer!] + timestamp: BigInt! +} + """ Offer """ @@ -556,6 +589,8 @@ type Offer @entity { sellerId: BigInt! seller: Seller! exchangeToken: ExchangeToken! + priceType: Int! + royaltyInfos: [RoyaltyInfo!]! @derivedFrom(field: "offer") metadata: MetadataInterface voidedAt: BigInt exchanges: [Exchange!]! @derivedFrom(field: "offer") @@ -667,7 +702,7 @@ type Seller implements Account @entity { logs: [EventLog!]! @derivedFrom(field: "account") contractURI: String! "Percentage as integer, to get decimals divide by 10000. E.g. 1 = 0.01%, 10000 = 100%" - royaltyPercentage: BigInt! + royaltyRecipients: [RoyaltyRecipientXSeller!] @derivedFrom(field: "seller") pendingSeller: PendingSeller @derivedFrom(field: "seller") metadataUri: String! metadata: SellerMetadata diff --git a/packages/subgraph/src/entities/dispute-resolution.ts b/packages/subgraph/src/entities/dispute-resolution.ts index 2a92c82dc..061ee231f 100644 --- a/packages/subgraph/src/entities/dispute-resolution.ts +++ b/packages/subgraph/src/entities/dispute-resolution.ts @@ -2,6 +2,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 { IBosonAccountHandler } from "../../generated/BosonAccountHandler/IBosonAccountHandler"; import { DisputeResolutionTermsEntity, @@ -32,6 +33,34 @@ export function saveDisputeResolutionTerms( 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.save(); + + return disputeResolutionTermsId; +} + +export function saveDisputeResolutionTerms230( + disputeResolutionTerms: OfferCreatedDisputeResolutionTermsStruct230, + 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; diff --git a/packages/subgraph/src/mappings/account-handler.ts b/packages/subgraph/src/mappings/account-handler.ts index 3fac5b9c5..89081a505 100644 --- a/packages/subgraph/src/mappings/account-handler.ts +++ b/packages/subgraph/src/mappings/account-handler.ts @@ -1,5 +1,12 @@ /* eslint-disable @typescript-eslint/ban-types */ -import { Address, BigInt, Bytes, crypto, log } from "@graphprotocol/graph-ts"; +import { + Address, + BigInt, + Bytes, + crypto, + log, + store +} from "@graphprotocol/graph-ts"; import { SellerCreated, SellerUpdatePending, @@ -13,7 +20,8 @@ import { DisputeResolverUpdateApplied, DisputeResolverUpdatePending, CollectionCreated, - IBosonAccountHandler + IBosonAccountHandler, + RoyaltyRecipientsChanged } from "../../generated/BosonAccountHandler/IBosonAccountHandler"; import { SellerCreated as SellerCreatedLegacy, @@ -30,7 +38,9 @@ import { PendingSeller, DisputeResolver, PendingDisputeResolver, - OfferCollection + OfferCollection, + RoyaltyRecipientXSeller, + RoyaltyRecipient } from "../../generated/schema"; import { BosonVoucher } from "../../generated/templates"; import { @@ -77,7 +87,6 @@ export function handleSellerCreatedEventWithoutMetadataUri( seller.authTokenType = authTokenFromEvent.tokenType; seller.active = true; seller.contractURI = collectionMetadataUri; - seller.royaltyPercentage = bosonVoucherContract.getRoyaltyPercentage(); seller.metadataUri = ""; seller.save(); @@ -135,7 +144,6 @@ export function handleSellerCreatedEvent(event: SellerCreated): void { seller.authTokenType = authTokenFromEvent.tokenType; seller.active = true; seller.contractURI = collectionMetadataUri; - seller.royaltyPercentage = bosonVoucherContract.getRoyaltyPercentage(); seller.metadataUri = sellerFromEvent.metadataUri || ""; seller.metadata = getSellerMetadataEntityId(seller.id.toString()); seller.save(); @@ -659,3 +667,67 @@ export function handleCollectionCreatedEvent(event: CollectionCreated): void { externalId ); } + +export function handleRoyaltyRecipientsChangedEvent( + event: RoyaltyRecipientsChanged +): void { + const sellerId = event.params.sellerId.toString(); + const royaltyRecipients = event.params.royaltyRecipients; + const seller = Seller.load(sellerId); + if (seller) { + const oldRecipients = seller.royaltyRecipients.load(); + if (oldRecipients) { + for (let i = 0; i < oldRecipients.length; i++) { + store.remove("RoyaltyRecipientXSeller", oldRecipients[i].id); + } + } + } else { + log.warning("Unable to find Seller with ID '{}'", [sellerId]); + } + for (let i = 0; i < royaltyRecipients.length; i++) { + const wallet = royaltyRecipients[i].wallet; + const minRoyaltyPercentage = royaltyRecipients[i].minRoyaltyPercentage; + saveRoyaltyRecipientXSeller(sellerId, wallet, minRoyaltyPercentage); + } +} + +function saveRoyaltyRecipientXSeller( + sellerId: string, + wallet: Address, + minRoyaltyPercentage: BigInt +): void { + const royaltyRecipientXSellerId = getRoyaltyRecipientXSellerId( + sellerId, + wallet + ); + let royaltyRecipientXSeller = RoyaltyRecipientXSeller.load( + royaltyRecipientXSellerId + ); + if (!royaltyRecipientXSeller) { + royaltyRecipientXSeller = new RoyaltyRecipientXSeller( + royaltyRecipientXSellerId + ); + royaltyRecipientXSeller.recipient = saveRoyaltyRecipient(wallet); + } + royaltyRecipientXSeller.seller = sellerId; + royaltyRecipientXSeller.minRoyaltyPercentage = minRoyaltyPercentage; + royaltyRecipientXSeller.save(); +} + +function getRoyaltyRecipientXSellerId( + sellerId: string, + wallet: Address +): string { + return `${sellerId}-royalty-${wallet.toHexString()}`; +} + +export function saveRoyaltyRecipient(wallet: Address): string { + const royaltyRecipientId = `${wallet.toHexString()}`; + let royaltyRecipient = RoyaltyRecipient.load(royaltyRecipientId); + if (!royaltyRecipient) { + royaltyRecipient = new RoyaltyRecipient(royaltyRecipientId); + } + 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 779db76d4..8b62ef7ef 100644 --- a/packages/subgraph/src/mappings/exchange-handler.ts +++ b/packages/subgraph/src/mappings/exchange-handler.ts @@ -1,4 +1,4 @@ -import { BigInt } from "@graphprotocol/graph-ts"; +import { BigInt, log } from "@graphprotocol/graph-ts"; import { BuyerCommitted, VoucherCanceled, @@ -29,7 +29,6 @@ export function handleBuyerCommittedEvent(event: BuyerCommitted): void { } 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)); @@ -39,6 +38,10 @@ export function handleBuyerCommittedEvent(event: BuyerCommitted): void { exchange.seller = offer.seller; exchange.disputeResolver = offer.disputeResolver; + } else { + log.warning("Unable to find Offer with id '{}'", [ + exchangeFromEvent.offerId.toString() + ]); } exchange.buyer = exchangeFromEvent.buyerId.toString(); diff --git a/packages/subgraph/src/mappings/offer-handler.ts b/packages/subgraph/src/mappings/offer-handler.ts index 59aba995a..40f6b60ae 100644 --- a/packages/subgraph/src/mappings/offer-handler.ts +++ b/packages/subgraph/src/mappings/offer-handler.ts @@ -1,23 +1,36 @@ -import { BigInt, log } from "@graphprotocol/graph-ts"; +/* eslint-disable @typescript-eslint/ban-types */ +import { Address, BigInt, log } from "@graphprotocol/graph-ts"; import { OfferCreated, OfferVoided, OfferExtended, - RangeReserved + RangeReserved, + OfferRoyaltyInfoUpdated } from "../../generated/BosonOfferHandler/IBosonOfferHandler"; +import { OfferCreated as OfferCreated230 } from "../../generated/BosonOfferHandler230/IBosonOfferHandler230"; import { OfferCreated as OfferCreatedLegacy } from "../../generated/BosonOfferHandlerLegacy/IBosonOfferHandlerLegacy"; -import { Offer, RangeEntity } from "../../generated/schema"; +import { + Offer, + RangeEntity, + RoyaltyInfo, + RoyaltyRecipientXOffer +} from "../../generated/schema"; import { saveMetadata } from "../entities/metadata/handler"; import { saveExchangeToken } from "../entities/token"; import { getDisputeResolutionTermsId, saveDisputeResolutionTerms, + saveDisputeResolutionTerms230, saveDisputeResolutionTermsLegacy } from "../entities/dispute-resolution"; import { saveOfferEventLog } from "../entities/event-log"; -import { checkSellerExist, getOfferCollectionId } from "./account-handler"; +import { + checkSellerExist, + getOfferCollectionId, + saveRoyaltyRecipient +} from "./account-handler"; export function handleOfferCreatedEvent(event: OfferCreated): void { const offerId = event.params.offerId; @@ -68,6 +81,17 @@ export function handleOfferCreatedEvent(event: OfferCreated): void { 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; @@ -98,6 +122,145 @@ export function handleOfferCreatedEvent(event: OfferCreated): void { } } +function saveRoyaltyInfo( + offerId: string, + recipients: Address[], + bps: BigInt[], + index: i8, + timestamp: BigInt +): void { + const royaltyInfoId = getRoyaltyInfoId(offerId, index); + let royaltyInfoEntity = RoyaltyInfo.load(royaltyInfoId); + if (!royaltyInfoEntity) { + royaltyInfoEntity = new RoyaltyInfo(royaltyInfoId); + royaltyInfoEntity.timestamp = timestamp; + royaltyInfoEntity.offer = offerId; + } + const royaltyRecipientXOffers: string[] = []; + for (let i = 0; i < recipients.length; i++) { + const wallet = recipients[i]; + let bp = BigInt.zero(); + if (i < bps.length) { + bp = bps[i]; + } + royaltyRecipientXOffers.push( + saveRoyaltyRecipientXOffer(offerId, wallet, bp) + ); + } + royaltyInfoEntity.recipients = royaltyRecipientXOffers; + royaltyInfoEntity.save(); +} + +function getRoyaltyInfoId(offerId: string, index: i8): string { + return `${offerId}-royaltyInfo-${index.toString()}`; +} + +function getRoyaltyRecipientXOfferId(offerId: string, wallet: Address): string { + return `${offerId}-royalty-${wallet.toHexString()}`; +} + +function saveRoyaltyRecipientXOffer( + offerId: string, + wallet: Address, + bps: BigInt +): string { + const royaltyRecipientXOfferId = getRoyaltyRecipientXOfferId(offerId, wallet); + let royaltyRecipientXOffer = RoyaltyRecipientXOffer.load( + royaltyRecipientXOfferId + ); + if (!royaltyRecipientXOffer) { + royaltyRecipientXOffer = new RoyaltyRecipientXOffer( + royaltyRecipientXOfferId + ); + royaltyRecipientXOffer.recipient = saveRoyaltyRecipient(wallet); + } + royaltyRecipientXOffer.offer = offerId; + royaltyRecipientXOffer.bps = bps; + royaltyRecipientXOffer.save(); + return royaltyRecipientXOfferId; +} + +export function handleOfferCreatedEvent230(event: OfferCreated230): 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.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.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.priceType = i8(0); // default value for legacy offers + // TODO: set default royalty recipients for legacy offers? + + offer.save(); + + saveExchangeToken(offerStruct.exchangeToken); + saveMetadata(offer, event.block.timestamp); + saveDisputeResolutionTerms230( + 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 handleOfferCreatedEventLegacy(event: OfferCreatedLegacy): void { const offerId = event.params.offerId; @@ -158,6 +321,8 @@ export function handleOfferCreatedEventLegacy(event: OfferCreatedLegacy): void { offer.numberOfCommits = BigInt.fromI32(0); offer.numberOfRedemptions = BigInt.fromI32(0); + offer.priceType = i8(0); // default value for legacy offers + // TODO: set default royalty recipients for legacy offers? offer.save(); @@ -265,3 +430,26 @@ export function handleRangeReservedEvent(event: RangeReserved): void { ); } } + +export function handleOfferRoyaltyInfoUpdatedEvent( + event: OfferRoyaltyInfoUpdated +): void { + const offerId = event.params.offerId; + const royaltyInfo = event.params.royaltyInfo; + const offer = Offer.load(offerId.toString()); + const timestamp = event.block.timestamp; + + if (offer) { + const royaltyInfos = offer.royaltyInfos.load(); + const index = i8(royaltyInfos.length); + saveRoyaltyInfo( + offerId.toString(), + royaltyInfo.recipients, + royaltyInfo.bps, + index, + timestamp + ); + } else { + log.warning("Offer with ID '{}' not found", [offerId.toString()]); + } +} diff --git a/packages/subgraph/subgraph.template.yaml b/packages/subgraph/subgraph.template.yaml index b2eb4aef3..30c73a364 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,string,string,bool,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,string,string,bool,uint256,(address[],uint256[])[]),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256),indexed uint256,address) handler: handleOfferCreatedEvent - event: OfferVoided(indexed uint256,indexed uint256,indexed address) handler: handleOfferVoidedEvent @@ -39,6 +39,38 @@ dataSources: handler: handleOfferExtendedEvent - event: RangeReserved(indexed uint256,indexed uint256,uint256,uint256,address,indexed address) handler: handleRangeReservedEvent + - event: OfferRoyaltyInfoUpdated(indexed uint256,indexed uint256,(address[],uint256[]),indexed address) + handler: handleOfferRoyaltyInfoUpdatedEvent + file: ./src/mappings/offer-handler.ts + - kind: ethereum/contract + name: BosonOfferHandler230 + network: {{network}} + source: + address: "{{protocolDiamond}}" + abi: IBosonOfferHandler230 + startBlock: {{startBlock}} + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - BaseMetadataEntity + - ProductV1MetadataEntity + - Offer + - ExchangeToken + - ProductV1Brand + abis: + - name: IBosonOfferHandler230 + file: ../common/src/abis/IBosonOfferHandler230.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,string,string,bool,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256),indexed uint256,address) + handler: handleOfferCreatedEvent230 file: ./src/mappings/offer-handler.ts - kind: ethereum/contract name: BosonOfferHandlerLegacy @@ -122,6 +154,8 @@ dataSources: handler: handleAllowedSellersRemovedEvent - event: CollectionCreated(indexed uint256,uint256,address,indexed string,indexed address) handler: handleCollectionCreatedEvent + - event: RoyaltyRecipientsChanged(indexed uint256,(address,uint256)[],indexed address) + handler: handleRoyaltyRecipientsChangedEvent file: ./src/mappings/account-handler.ts - kind: ethereum/contract name: BosonAccountHandlerLegacy diff --git a/packages/subgraph/tests/exchange-handler.test.ts b/packages/subgraph/tests/exchange-handler.test.ts index e715c1b41..6190dc7e9 100644 --- a/packages/subgraph/tests/exchange-handler.test.ts +++ b/packages/subgraph/tests/exchange-handler.test.ts @@ -1,4 +1,4 @@ -import { Exchange } from "./../generated/schema"; +import { Exchange, Offer } from "./../generated/schema"; import { beforeEach, test, @@ -7,7 +7,7 @@ import { mockIpfsFile } from "matchstick-as/assembly/index"; import { BigInt } from "@graphprotocol/graph-ts"; -import { Offer, BaseMetadataEntity } from "../generated/schema"; +import { BaseMetadataEntity } from "../generated/schema"; import { handleBuyerCommittedEvent, handleConditionalCommitAuthorizedEvent, @@ -47,7 +47,6 @@ beforeEach(() => { test("handle BuyerCommittedEvent", () => { const metadataHash = "QmPK1s3pNYLi9ERiq3BDxKa4XosgWwFRQUydHUtz4YgpqB"; mockIpfsFile(metadataHash, "tests/metadata/base.json"); - const offerId = 1; const buyerId = 2; const exchangeId = 3; @@ -56,6 +55,7 @@ test("handle BuyerCommittedEvent", () => { // note: mockOffer() does not work in this test, no idea why offer.createdAt = BigInt.fromI32(0); offer.price = BigInt.fromI32(100); + offer.priceType = i8(0); offer.sellerDeposit = BigInt.fromI32(5); offer.protocolFee = BigInt.fromI32(1); offer.agentFee = BigInt.fromI32(0); diff --git a/packages/subgraph/tests/group-handler.test.ts b/packages/subgraph/tests/group-handler.test.ts index b0dca335b..b6dd2c245 100644 --- a/packages/subgraph/tests/group-handler.test.ts +++ b/packages/subgraph/tests/group-handler.test.ts @@ -1,4 +1,4 @@ -import { test, assert, log } from "matchstick-as/assembly/index"; +import { test, assert } from "matchstick-as/assembly/index"; import { handleGroupCreatedEvent, handleGroupUpdatedEvent @@ -154,10 +154,8 @@ test("handle GroupUpdated event", () => { function checkOfferHasNoCondition(offerId: string): void { const offer = Offer.load(offerId); - log.debug("check offer {} exists", [offerId]); assert.assertNotNull(offer); const condition = (offer as Offer).condition; - log.debug("check condition is null", [(condition == null).toString()]); assert.assertNull(condition); } diff --git a/packages/subgraph/tests/mocks.ts b/packages/subgraph/tests/mocks.ts index e9b3b5016..d81b52015 100644 --- a/packages/subgraph/tests/mocks.ts +++ b/packages/subgraph/tests/mocks.ts @@ -1,6 +1,26 @@ -import { ConditionalCommitAuthorized, ExchangeCompleted, VoucherCanceled, VoucherExpired, VoucherExtended, VoucherRedeemed, VoucherRevoked, VoucherTransferred } from "./../generated/BosonExchangeHandler/IBosonExchangeHandler"; -import { SellerCreatedAuthTokenStruct } from "./../generated/BosonAccountHandler/IBosonAccountHandler"; -import { OfferCreatedOfferFeesStruct, OfferExtended, RangeReserved } from "./../generated/BosonOfferHandler/IBosonOfferHandler"; +import { + ConditionalCommitAuthorized, + ExchangeCompleted, + VoucherCanceled, + VoucherExpired, + VoucherExtended, + VoucherRedeemed, + VoucherRevoked, + VoucherTransferred +} from "./../generated/BosonExchangeHandler/IBosonExchangeHandler"; +import { + RoyaltyRecipientsChanged, + RoyaltyRecipientsChangedRoyaltyRecipientsStruct, + SellerCreatedAuthTokenStruct +} from "./../generated/BosonAccountHandler/IBosonAccountHandler"; +import { + OfferCreatedOfferFeesStruct, + OfferCreatedOfferRoyaltyInfoStruct, + OfferExtended, + OfferRoyaltyInfoUpdated, + OfferRoyaltyInfoUpdatedRoyaltyInfoStruct, + RangeReserved +} from "./../generated/BosonOfferHandler/IBosonOfferHandler"; import { OfferCreated, OfferCreatedOfferDatesStruct, @@ -39,14 +59,37 @@ import { } from "../generated/BosonAccountHandlerLegacy/IBosonAccountHandlerLegacy"; import { OfferCreated as OfferCreatedLegacy, - OfferCreatedOfferStruct as OfferCreatedOfferStructLegacy, + OfferCreatedOfferStruct as OfferCreatedOfferStructLegacy } from "../generated/BosonOfferHandlerLegacy/IBosonOfferHandlerLegacy"; import { SellerUpdateApplied } from "../generated/BosonAccountHandler/IBosonAccountHandler"; import { getProductId } from "../src/entities/metadata/product-v1/product"; -import { Exchange, Offer, ProductV1Media, ProductV1Product, Seller } from "../generated/schema"; -import { getOfferCollectionId, handleSellerCreatedEvent } from "../src/mappings/account-handler"; +import { + Exchange, + Offer, + ProductV1Media, + ProductV1Product, + Seller +} from "../generated/schema"; +import { + getOfferCollectionId, + handleSellerCreatedEvent +} from "../src/mappings/account-handler"; +import { + GroupCreated, + GroupCreatedConditionStruct, + GroupCreatedGroupStruct, + GroupUpdated +} from "../generated/BosonGroupHandler/IBosonGroupHandler"; import { getDisputeResolutionTermsId } from "../src/entities/dispute-resolution"; -import { GroupCreated, GroupCreatedConditionStruct, GroupCreatedGroupStruct, GroupUpdated } from "../generated/BosonGroupHandler/IBosonGroupHandler"; + +export class RoyaltyInfo { + recipients: string[]; + bps: i32[]; + constructor(recipients: string[], bps: i32[]) { + this.recipients = recipients; + this.bps = bps; + } +} export function createOfferCreatedEvent( offerId: i32, @@ -69,12 +112,14 @@ export function createOfferCreatedEvent( disputeEscalationResponsePeriod: i32, disputeFeeAmount: i32, disputeBuyerEscalationDeposit: i32, + priceType: i8, metadataUri: string, metadataHash: string, voided: boolean, collectionIndex: i32, agentId: i32, - executedBy: string + executedBy: string, + royaltyInfo: RoyaltyInfo ): OfferCreated { const offerCreatedEvent = changetype(newMockEvent()); offerCreatedEvent.parameters = []; @@ -98,10 +143,12 @@ export function createOfferCreatedEvent( buyerCancelPenalty, quantityAvailable, exchangeToken, + priceType, metadataUri, metadataHash, voided, - collectionIndex + collectionIndex, + royaltyInfo ) ) ); @@ -850,10 +897,12 @@ export function createOfferStruct( buyerCancelPenalty: i32, quantityAvailable: i32, exchangeToken: string, + priceType: i8, metadataUri: string, metadataHash: string, voided: boolean, - collectionIndex: i32 + collectionIndex: i32, + royaltyInfo: RoyaltyInfo ): OfferCreatedOfferStruct { const tuple = new OfferCreatedOfferStruct(); tuple.push(ethereum.Value.fromI32(offerId)); @@ -863,10 +912,14 @@ export function createOfferStruct( 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)); tuple.push(ethereum.Value.fromI32(collectionIndex)); + tuple.push( + ethereum.Value.fromTupleArray([createRoyaltyInfoStruct(royaltyInfo)]) + ); return tuple; } @@ -932,6 +985,29 @@ export function createOfferFeesStruct( return tuple; } +export function createRoyaltyInfoStruct( + royaltyInfo: RoyaltyInfo +): OfferCreatedOfferRoyaltyInfoStruct { + const tuple = new OfferCreatedOfferRoyaltyInfoStruct(); + const recipientAddresses: Address[] = []; + for (let i = 0; i < royaltyInfo.recipients.length; i++) { + recipientAddresses.push(Address.fromString(royaltyInfo.recipients[i])); + } + tuple.push(ethereum.Value.fromAddressArray(recipientAddresses)); + tuple.push(ethereum.Value.fromI32Array(royaltyInfo.bps)); + return tuple; +} + +export function createRoyaltyRecipientInfoStruct( + wallet: string, + minRoyaltyPercentage: i32 +): RoyaltyRecipientsChangedRoyaltyRecipientsStruct { + const tuple = new RoyaltyRecipientsChangedRoyaltyRecipientsStruct(); + tuple.push(ethereum.Value.fromAddress(Address.fromString(wallet))); + tuple.push(ethereum.Value.fromI32(minRoyaltyPercentage)); + return tuple; +} + export function createDisputeResolutionTermsStruct( disputeResolverId: i32, escalationResponsePeriod: i32, @@ -1214,6 +1290,7 @@ export function mockOffer(offerId: string, sellerId: string): Offer { const offer = new Offer(offerId); offer.createdAt = BigInt.fromI32(0); offer.price = BigInt.fromI32(100); + offer.priceType = i8(0); offer.sellerDeposit = BigInt.fromI32(5); offer.protocolFee = BigInt.fromI32(1); offer.agentFee = BigInt.fromI32(0); @@ -1268,18 +1345,54 @@ export function mockSeller(sellerId: string): Seller { seller.authTokenId = BigInt.fromI32(0); seller.contractURI = "ipfs://sellerContractUri"; seller.metadataUri = "ipfs://sellerMetadataUri"; - seller.royaltyPercentage = BigInt.zero(); seller.save(); return seller; } +export function createRoyaltyRecipientsChanged( + sellerId: i32, + recipients: string[], + minRoyaltyPercentages: i32[], + executedBy: string +): RoyaltyRecipientsChanged { + const royaltyRecipientsChangedEvent = changetype( + newMockEvent() + ); + royaltyRecipientsChangedEvent.parameters = []; + const sellerIdParam = new ethereum.EventParam( + "sellerId", + ethereum.Value.fromI32(sellerId) + ); + const royaltyRecipientStructs: ethereum.Tuple[] = []; + for (let i = 0; i < recipients.length; i++) { + const wallet = recipients[i]; + const minRoyaltyPercentage = minRoyaltyPercentages[i]; + royaltyRecipientStructs.push( + createRoyaltyRecipientInfoStruct(wallet, minRoyaltyPercentage) + ); + } + const royaltyRecipientsParam = new ethereum.EventParam( + "royaltyRecipients", + ethereum.Value.fromTupleArray(royaltyRecipientStructs) + ); + const executedByParam = new ethereum.EventParam( + "executedBy", + ethereum.Value.fromAddress(Address.fromString(executedBy)) + ); + royaltyRecipientsChangedEvent.parameters.push(sellerIdParam); + royaltyRecipientsChangedEvent.parameters.push(royaltyRecipientsParam); + royaltyRecipientsChangedEvent.parameters.push(executedByParam); + + return royaltyRecipientsChangedEvent; +} + export function mockExchange( - exchangeId: string, - offerId: string, - sellerId: string, - buyerId: string, - disputeResolverId: string - ): Exchange { + exchangeId: string, + offerId: string, + sellerId: string, + buyerId: string, + disputeResolverId: string +): Exchange { const exchange = new Exchange(exchangeId); exchange.offer = offerId; exchange.buyer = buyerId; @@ -1295,7 +1408,12 @@ export function mockExchange( return exchange; } -export function createOfferExtendedEvent(offerId: i32, sellerId: i32, validUntilDate: i32, executedBy: string): OfferExtended { +export function createOfferExtendedEvent( + offerId: i32, + sellerId: i32, + validUntilDate: i32, + executedBy: string +): OfferExtended { const offerExtendedEvent = changetype(newMockEvent()); offerExtendedEvent.parameters = []; const offerIdParam = new ethereum.EventParam( @@ -1324,13 +1442,13 @@ export function createOfferExtendedEvent(offerId: i32, sellerId: i32, validUntil } export function createRangeReservedEvent( - offerId: i32, - sellerId: i32, - startExchangeId: i32, - endExchangeId: i32, - owner: string, - executedBy: string - ): RangeReserved { + offerId: i32, + sellerId: i32, + startExchangeId: i32, + endExchangeId: i32, + owner: string, + executedBy: string +): RangeReserved { const rangeReservedEvent = changetype(newMockEvent()); rangeReservedEvent.parameters = []; const offerIdParam = new ethereum.EventParam( @@ -1474,7 +1592,9 @@ export function createVoucherTransferredEvent( newBuyerId: i32, executedBy: string ): VoucherTransferred { - const voucherTransferredEvent = changetype(newMockEvent()); + const voucherTransferredEvent = changetype( + newMockEvent() + ); voucherTransferredEvent.parameters = []; const offerIdParam = new ethereum.EventParam( "offerId", @@ -1538,7 +1658,9 @@ export function createConditionalCommitAuthorizedEvent( commitCount: i32, maxCommits: i32 ): ConditionalCommitAuthorized { - const conditionalCommitAuthorized = changetype(newMockEvent()); + const conditionalCommitAuthorized = changetype( + newMockEvent() + ); conditionalCommitAuthorized.parameters = []; const offerIdParam = new ethereum.EventParam( "offerId", @@ -1572,3 +1694,52 @@ export function createConditionalCommitAuthorizedEvent( conditionalCommitAuthorized.parameters.push(maxCommitsParam); return conditionalCommitAuthorized; } + +export function createOfferRoyaltyInfoUpdatedEvent( + offerId: i32, + sellerId: i32, + royaltyInfo: RoyaltyInfo, + executedBy: string +): OfferRoyaltyInfoUpdated { + const offerRoyaltyInfoUpdated = changetype( + newMockEvent() + ); + offerRoyaltyInfoUpdated.parameters = []; + const offerIdParam = new ethereum.EventParam( + "offerId", + ethereum.Value.fromI32(offerId) + ); + const sellerIdParam = new ethereum.EventParam( + "sellerId", + ethereum.Value.fromI32(sellerId) + ); + + const offerRoyaltyInfoUpdatedRoyaltyInfoStruct = + new OfferRoyaltyInfoUpdatedRoyaltyInfoStruct(); + const recipientAddresses: Address[] = []; + for (let i = 0; i < royaltyInfo.recipients.length; i++) { + recipientAddresses.push(Address.fromString(royaltyInfo.recipients[i])); + } + offerRoyaltyInfoUpdatedRoyaltyInfoStruct.push( + ethereum.Value.fromAddressArray(recipientAddresses) + ); + offerRoyaltyInfoUpdatedRoyaltyInfoStruct.push( + ethereum.Value.fromI32Array(royaltyInfo.bps) + ); + const royaltyInfoParam = new ethereum.EventParam( + "royaltyInfo", + ethereum.Value.fromTuple(offerRoyaltyInfoUpdatedRoyaltyInfoStruct) + ); + + const executedByParam = new ethereum.EventParam( + "executedBy", + ethereum.Value.fromAddress(Address.fromString(executedBy)) + ); + + offerRoyaltyInfoUpdated.parameters.push(offerIdParam); + offerRoyaltyInfoUpdated.parameters.push(sellerIdParam); + offerRoyaltyInfoUpdated.parameters.push(royaltyInfoParam); + offerRoyaltyInfoUpdated.parameters.push(executedByParam); + + return offerRoyaltyInfoUpdated; +} diff --git a/packages/subgraph/tests/offer-handler.test.ts b/packages/subgraph/tests/offer-handler.test.ts index 807cb26df..d60689eb5 100644 --- a/packages/subgraph/tests/offer-handler.test.ts +++ b/packages/subgraph/tests/offer-handler.test.ts @@ -10,18 +10,22 @@ import { handleOfferCreatedEvent, handleOfferCreatedEventLegacy, handleOfferExtendedEvent, + handleOfferRoyaltyInfoUpdatedEvent, handleOfferVoidedEvent, handleRangeReservedEvent } from "../src/mappings/offer-handler"; import { + RoyaltyInfo, createOfferCreatedEvent, createOfferCreatedEventLegacy, createOfferExtendedEvent, + createOfferRoyaltyInfoUpdatedEvent, createOfferVoidedEvent, createRangeReservedEvent, createSeller, mockExchangeTokenContractCalls } from "./mocks"; +import { Offer } from "../generated/schema"; const exchangeTokenAddress = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; const exchangeTokenDecimals = 18; @@ -36,6 +40,7 @@ const sellerAddress = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; const voucherCloneAddress = "0x123456789a123456789a123456789a123456789a"; const sellerMetadataHash = "QmZffs1Uv6pmf4649UpMqinDord9QBerJaWcwRgdenAto1"; const price = 1; +const priceType = i8(0); const sellerDeposit = 1; const protocolFee = 1; const agentFee = 1; @@ -55,6 +60,10 @@ const disputeBuyerEscalationDeposit = 1; const collectionIndex = 0; const agentId = 1; const executedBy = "0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7"; +const royaltyInfo: RoyaltyInfo = new RoyaltyInfo( + ["0x0000000000000000000000000000000000000000"], + [0] +); const offerCreatedEvent = createOfferCreatedEvent( offerId, @@ -77,12 +86,14 @@ const offerCreatedEvent = createOfferCreatedEvent( disputeEscalationResponsePeriod, disputeFeeAmount, disputeBuyerEscalationDeposit, + priceType, "ipfs://" + metadataHash, metadataHash, false, collectionIndex, agentId, - executedBy + executedBy, + royaltyInfo ); const offerCreatedEventLegacy = createOfferCreatedEventLegacy( @@ -244,10 +255,19 @@ test("handleOfferExtendedEvent", () => { handleOfferCreatedEvent(offerCreatedEvent); assert.fieldEquals("Offer", "1", "validUntilDate", validUntilDate.toString()); - const offerExtendedEvent = createOfferExtendedEvent(offerId, sellerId, validUntilDate + 1000, executedBy); + const offerExtendedEvent = createOfferExtendedEvent( + offerId, + sellerId, + validUntilDate + 1000, + executedBy + ); handleOfferExtendedEvent(offerExtendedEvent); - assert.fieldEquals("Offer", "1", "validUntilDate", (validUntilDate + 1000).toString()); - + assert.fieldEquals( + "Offer", + "1", + "validUntilDate", + (validUntilDate + 1000).toString() + ); }); test("handleRangeReservedEvent", () => { @@ -270,12 +290,24 @@ test("handleRangeReservedEvent", () => { const start = 12; const end = 24; - const rangeReservedEvent = createRangeReservedEvent(offerId, sellerId, start, end, sellerAddress, executedBy); + const rangeReservedEvent = createRangeReservedEvent( + offerId, + sellerId, + start, + end, + sellerAddress, + executedBy + ); handleRangeReservedEvent(rangeReservedEvent); const rangeId = getRangeId(offerId.toString()); assert.fieldEquals("RangeEntity", rangeId, "start", start.toString()); assert.fieldEquals("RangeEntity", rangeId, "end", end.toString()); - assert.fieldEquals("RangeEntity", rangeId, "owner", sellerAddress.toLowerCase()); + assert.fieldEquals( + "RangeEntity", + rangeId, + "owner", + sellerAddress.toLowerCase() + ); assert.fieldEquals("RangeEntity", rangeId, "minted", "0"); }); @@ -309,3 +341,54 @@ test("handleOfferCreatedEventLegacy", () => { exchangeTokenName ); }); + +test("handleOfferRoyaltyInfoUpdatedEvent", () => { + mockExchangeTokenContractCalls( + exchangeTokenAddress, + exchangeTokenDecimals, + exchangeTokenName, + exchangeTokenSymbol + ); + mockIpfsFile(metadataHash, "tests/metadata/base.json"); + createSeller( + 1, + sellerAddress, + "tests/metadata/seller.json", + voucherCloneAddress, + sellerMetadataHash + ); + handleOfferCreatedEvent(offerCreatedEvent); + let offer = Offer.load(offerId.toString()) as Offer; + assert.assertNotNull(offer); + const royaltyInfos1 = offer.royaltyInfos.load(); + assert.assertTrue(royaltyInfos1.length == 1); + + const newRoyaltyInfo: RoyaltyInfo = new RoyaltyInfo( + [ + "0x0000000000000000000000000000000000000000", + "0x0123456789012345678901234567890123456789" + ], + [10, 20] + ); + + const offerRoyaltyInfoUpdatedEvent = createOfferRoyaltyInfoUpdatedEvent( + offerId, + sellerId, + newRoyaltyInfo, + executedBy + ); + handleOfferRoyaltyInfoUpdatedEvent(offerRoyaltyInfoUpdatedEvent); + offer = Offer.load(offerId.toString()) as Offer; + assert.assertNotNull(offer); + const royaltyInfos2 = offer.royaltyInfos.load(); + assert.assertTrue(royaltyInfos2.length == 2); + const royaltyInfo1 = royaltyInfos2[0]; + assert.assertNotNull(royaltyInfo1); + const recipients1 = royaltyInfo1.recipients as string[]; + assert.assertNotNull(recipients1); + const royaltyInfo2 = royaltyInfos2[1]; + assert.assertNotNull(royaltyInfo2); + const recipients2 = royaltyInfo2.recipients as string[]; + assert.assertNotNull(recipients2); + assert.assertTrue(recipients1.length + recipients2.length == 3); +}); diff --git a/packages/subgraph/tests/royalties.test.ts b/packages/subgraph/tests/royalties.test.ts new file mode 100644 index 000000000..1c3861d7f --- /dev/null +++ b/packages/subgraph/tests/royalties.test.ts @@ -0,0 +1,72 @@ +import { test, assert } from "matchstick-as/assembly/index"; +import { handleRoyaltyRecipientsChangedEvent } from "../src/mappings/account-handler"; +import { createRoyaltyRecipientsChanged, mockSeller } from "./mocks"; +import { RoyaltyRecipient, Seller } from "../generated/schema"; + +const sellerId = 1; +const recipients_1 = [ + "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" +]; +const minRoyaltyPercentages_1 = [100, 200]; +const recipients_2 = [ + "0xcccccccccccccccccccccccccccccccccccccccc", + "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", // reuse from recipients_1 + "0xdddddddddddddddddddddddddddddddddddddddd" +]; +const minRoyaltyPercentages_2 = [300, 400, 500]; +const executedBy = "0x0abcdef1234567890abcdef12345678901234567"; + +test("handle RoyaltyRecipientsChangedEvent", () => { + mockSeller(sellerId.toString()); + const royaltyRecipientsChanged_1 = createRoyaltyRecipientsChanged( + sellerId, + recipients_1, + minRoyaltyPercentages_1, + executedBy + ); + handleRoyaltyRecipientsChangedEvent(royaltyRecipientsChanged_1); + checkSellerRoyaltyRecipients(sellerId, recipients_1, minRoyaltyPercentages_1); + + const royaltyRecipientsChanged_2 = createRoyaltyRecipientsChanged( + sellerId, + recipients_2, + minRoyaltyPercentages_2, + executedBy + ); + handleRoyaltyRecipientsChangedEvent(royaltyRecipientsChanged_2); + checkSellerRoyaltyRecipients(sellerId, recipients_2, minRoyaltyPercentages_2); +}); + +function checkSellerRoyaltyRecipients( + sellerId: i32, + recipients: string[], + minRoyaltyPercentages: i32[] +): void { + const seller = Seller.load(sellerId.toString()); + assert.assertNotNull(seller); + const sellerRoyaltyRecipients = (seller as Seller).royaltyRecipients.load(); + assert.assertNotNull(sellerRoyaltyRecipients); + assert.assertTrue(recipients.length === sellerRoyaltyRecipients.length); + for (let i = 0; i < sellerRoyaltyRecipients.length; i++) { + const sellerRoyaltyRecipient = sellerRoyaltyRecipients[i]; + assert.assertNotNull(sellerRoyaltyRecipient); + let found = false; + for (let j = 0; j < recipients.length && !found; j++) { + const recipient = RoyaltyRecipient.load(sellerRoyaltyRecipient.recipient); + if (recipient) { + found = + recipient.wallet.toHexString().toLowerCase() == + recipients[j].toLowerCase(); + } + } + assert.assertTrue(found); + found = false; + for (let j = 0; j < minRoyaltyPercentages.length && !found; j++) { + found = + sellerRoyaltyRecipient.minRoyaltyPercentage.toString() == + minRoyaltyPercentages[j].toString(); + } + assert.assertTrue(found); + } +}