diff --git a/packages/contracts-lib/package.json b/packages/contracts-lib/package.json index 64400a77..dca3ab7b 100644 --- a/packages/contracts-lib/package.json +++ b/packages/contracts-lib/package.json @@ -1,6 +1,6 @@ { "name": "dms-osx-lib", - "version": "2.10.2", + "version": "2.10.3", "description": "", "main": "dist/bundle-cjs.js", "module": "dist/bundle-esm.js", diff --git a/packages/contracts/contracts/controllers/LoyaltyBridge.sol b/packages/contracts/contracts/controllers/LoyaltyBridge.sol index 7b5fd053..27bc2343 100644 --- a/packages/contracts/contracts/controllers/LoyaltyBridge.sol +++ b/packages/contracts/contracts/controllers/LoyaltyBridge.sol @@ -205,4 +205,10 @@ contract LoyaltyBridge is LoyaltyBridgeStorage, Initializable, OwnableUpgradeabl require(_msgSender() == owner(), "1050"); fee = _fee; } + + /// @notice 전체 유동성 자금을 조회합니다. + function getTotalLiquidity(bytes32 _tokenId) external view override returns (uint256) { + require(_tokenId == tokenId, "1713"); + return ledgerContract.tokenBalanceOf(address(this)); + } } diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 243f8a8b..4456a3b2 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "dms-osx-artifacts", - "version": "2.10.2", + "version": "2.10.3", "description": "Smart contracts that decentralized point systems", "files": [ "**/*.sol" @@ -67,7 +67,7 @@ }, "dependencies": { "del-osx-artifacts": "^2.3.0", - "dms-bridge-contracts": "^1.2.2", + "dms-bridge-contracts": "^1.2.3", "multisig-wallet-contracts": "^1.1.0", "loyalty-tokens": "^1.0.7" } diff --git a/packages/faker/package.json b/packages/faker/package.json index 207b9343..b313d9e0 100644 --- a/packages/faker/package.json +++ b/packages/faker/package.json @@ -51,8 +51,8 @@ "axios": "^1.6.7", "chai": "^4.3.7", "del-osx-artifacts": "^2.3.0", - "dms-bridge-contracts": "^1.2.2", - "dms-osx-artifacts": "^2.10.2", + "dms-bridge-contracts": "^1.2.3", + "dms-osx-artifacts": "^2.10.3", "dotenv": "^10.0.0", "ethereum-waffle": "^4.0.10", "ethers": "5.7.0", diff --git a/packages/relay/package.json b/packages/relay/package.json index 60ea915a..e839c9d1 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -70,8 +70,8 @@ "chai-http": "^4.3.7", "cors": "^2.8.5", "del-osx-artifacts": "^2.3.0", - "dms-bridge-contracts": "^1.2.2", - "dms-osx-artifacts": "^2.10.2", + "dms-bridge-contracts": "^1.2.3", + "dms-osx-artifacts": "^2.10.3", "dotenv": "^10.0.0", "ethereum-waffle": "^4.0.10", "ethereumjs-util": "^7.1.5", diff --git a/yarn.lock b/yarn.lock index d4f89591..e1d60c6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3350,10 +3350,10 @@ discontinuous-range@1.0.0: resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" integrity sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ== -dms-bridge-contracts@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/dms-bridge-contracts/-/dms-bridge-contracts-1.2.2.tgz#53d1b60b77fda5f712a2b09003a29ee0ec746435" - integrity sha512-VAS6MlqmrObR24wODzPcG3XR7VqlYIFdj72ei9iu66f17fXQ1JICbqQNIn9cfEK5e+DWYsvN+SyZmAV4NuKbrg== +dms-bridge-contracts@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/dms-bridge-contracts/-/dms-bridge-contracts-1.2.3.tgz#e46b4aec8691ffe2b8aaff5f76247d306f8b8eae" + integrity sha512-PNFR8tQ/C6rjPR3WNJZwJjdg9AXyxusdCEvXL2izzqGSYPMIqJu+kdwNeyAHebhlq30Wrr+AxFv+iQO/HT7+/Q== dns-over-http-resolver@^1.2.3: version "1.2.3"