diff --git a/package-lock.json b/package-lock.json index 627eff0..9c9cd2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "widgets", "version": "0.1.0", "dependencies": { - "@bosonprotocol/react-kit": "^0.27.1", + "@bosonprotocol/react-kit": "^0.28.1-alpha.1", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", @@ -2166,9 +2166,9 @@ } }, "node_modules/@bosonprotocol/core-sdk": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.38.0.tgz", - "integrity": "sha512-DjJMYz7fTeXcOAW5F6NEuTjqeXeJ2zp+mJXue+vpcARg4XWQTiQFQV5TBqQVFuq2AP3/h0SR3nWK5+8q5ffTQw==", + "version": "1.39.1-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.39.1-alpha.1.tgz", + "integrity": "sha512-vaKYRCVG4r6YNIuhdVinPSQu8BPPCkVXxFXRRerthjGS6LeADymEVwtQM32KkVb2wvFutVEEv4lNO3rqK225kQ==", "dependencies": { "@bosonprotocol/common": "^1.26.1", "@ethersproject/abi": "^5.5.0", @@ -2199,9 +2199,9 @@ } }, "node_modules/@bosonprotocol/ethers-sdk": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.13.1.tgz", - "integrity": "sha512-DnpM+tiHDbm6WsRvuk2hIT/FppjIIriha6jMttE+rWSMdJ0TIjBgOUdFCDBOZe9oDYCSnnbWp8O/Mig6cDms4w==", + "version": "1.13.2-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.13.2-alpha.1.tgz", + "integrity": "sha512-8d5KsVkJt26ACMh//ogbheo2yozuQ3XbfsDIPuAQGIhQgMRa6GtIh7opuOfd4ZcWsl9WdUMfzw4W8Zs0gx+NvQ==", "dependencies": { "@bosonprotocol/common": "^1.26.1" }, @@ -2229,13 +2229,13 @@ } }, "node_modules/@bosonprotocol/react-kit": { - "version": "0.27.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.27.1.tgz", - "integrity": "sha512-zWXxq87LKHhvib14NmA4ehhV4EguLRcIjUo/Pmh+brfBq+23Fr62qX1vbPGka4sYMlMjCIUT360NsGtpBPeL5A==", + "version": "0.28.1-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.28.1-alpha.1.tgz", + "integrity": "sha512-wGR20ohEfKI5mAP8dFccInekqNoA6vopzRRBcBenJvuCPVK24oOQD1O5h6KeVv8TnZGg0iCDH8vDpcZsNjzWZg==", "dependencies": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.38.0", - "@bosonprotocol/ethers-sdk": "^1.13.1", + "@bosonprotocol/core-sdk": "^1.39.1-alpha.1", + "@bosonprotocol/ethers-sdk": "^1.13.2-alpha.1", "@bosonprotocol/ipfs-storage": "^1.11.2", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", @@ -31966,9 +31966,9 @@ } }, "@bosonprotocol/core-sdk": { - "version": "1.38.0", - "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.38.0.tgz", - "integrity": "sha512-DjJMYz7fTeXcOAW5F6NEuTjqeXeJ2zp+mJXue+vpcARg4XWQTiQFQV5TBqQVFuq2AP3/h0SR3nWK5+8q5ffTQw==", + "version": "1.39.1-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/core-sdk/-/core-sdk-1.39.1-alpha.1.tgz", + "integrity": "sha512-vaKYRCVG4r6YNIuhdVinPSQu8BPPCkVXxFXRRerthjGS6LeADymEVwtQM32KkVb2wvFutVEEv4lNO3rqK225kQ==", "requires": { "@bosonprotocol/common": "^1.26.1", "@ethersproject/abi": "^5.5.0", @@ -31998,9 +31998,9 @@ } }, "@bosonprotocol/ethers-sdk": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.13.1.tgz", - "integrity": "sha512-DnpM+tiHDbm6WsRvuk2hIT/FppjIIriha6jMttE+rWSMdJ0TIjBgOUdFCDBOZe9oDYCSnnbWp8O/Mig6cDms4w==", + "version": "1.13.2-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/ethers-sdk/-/ethers-sdk-1.13.2-alpha.1.tgz", + "integrity": "sha512-8d5KsVkJt26ACMh//ogbheo2yozuQ3XbfsDIPuAQGIhQgMRa6GtIh7opuOfd4ZcWsl9WdUMfzw4W8Zs0gx+NvQ==", "requires": { "@bosonprotocol/common": "^1.26.1" } @@ -32025,13 +32025,13 @@ } }, "@bosonprotocol/react-kit": { - "version": "0.27.1", - "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.27.1.tgz", - "integrity": "sha512-zWXxq87LKHhvib14NmA4ehhV4EguLRcIjUo/Pmh+brfBq+23Fr62qX1vbPGka4sYMlMjCIUT360NsGtpBPeL5A==", + "version": "0.28.1-alpha.1", + "resolved": "https://registry.npmjs.org/@bosonprotocol/react-kit/-/react-kit-0.28.1-alpha.1.tgz", + "integrity": "sha512-wGR20ohEfKI5mAP8dFccInekqNoA6vopzRRBcBenJvuCPVK24oOQD1O5h6KeVv8TnZGg0iCDH8vDpcZsNjzWZg==", "requires": { "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9", - "@bosonprotocol/core-sdk": "^1.38.0", - "@bosonprotocol/ethers-sdk": "^1.13.1", + "@bosonprotocol/core-sdk": "^1.39.1-alpha.1", + "@bosonprotocol/ethers-sdk": "^1.13.2-alpha.1", "@bosonprotocol/ipfs-storage": "^1.11.2", "@davatar/react": "1.11.1", "@ethersproject/units": "5.6.0", diff --git a/package.json b/package.json index 4d39585..568b7a9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@bosonprotocol/react-kit": "^0.27.1", + "@bosonprotocol/react-kit": "^0.28.1-alpha.1", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", diff --git a/src/components/widgets/redeem/Redeem.tsx b/src/components/widgets/redeem/Redeem.tsx index aca0c44..d5eb95e 100644 --- a/src/components/widgets/redeem/Redeem.tsx +++ b/src/components/widgets/redeem/Redeem.tsx @@ -299,17 +299,17 @@ function checkExchangeState( ): subgraph.ExchangeState { switch (exchangeStateStr?.toLowerCase()) { case undefined: - case subgraph.ExchangeState.Committed.toLowerCase(): { - return subgraph.ExchangeState.Committed; + case subgraph.ExchangeState.COMMITTED.toLowerCase(): { + return subgraph.ExchangeState.COMMITTED; } - case subgraph.ExchangeState.Redeemed.toLowerCase(): { - return subgraph.ExchangeState.Redeemed; + case subgraph.ExchangeState.REDEEMED.toLowerCase(): { + return subgraph.ExchangeState.REDEEMED; } - case subgraph.ExchangeState.Disputed.toLowerCase(): { - return subgraph.ExchangeState.Disputed; + case subgraph.ExchangeState.DISPUTED.toLowerCase(): { + return subgraph.ExchangeState.DISPUTED; } - case subgraph.ExchangeState.Completed.toLowerCase(): { - return subgraph.ExchangeState.Completed; + case subgraph.ExchangeState.COMPLETED.toLowerCase(): { + return subgraph.ExchangeState.COMPLETED; } } throw new Error(`Not supported exchange state '${exchangeStateStr}'`);