Skip to content

Commit

Permalink
Optimize swap subscription (#842)
Browse files Browse the repository at this point in the history
* freeze subscription payload

* update wallet to 1.10.36
  • Loading branch information
Nikita-Polyakov authored Oct 22, 2022
1 parent fa2213f commit a45c8fc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"@metamask/detect-provider": "^1.2.0",
"@soramitsu/soraneo-wallet-web": "1.10.35",
"@soramitsu/soraneo-wallet-web": "1.10.36",
"@walletconnect/web3-provider": "^1.6.6",
"core-js": "^3.6.4",
"direct-vuex": "^0.12.1",
Expand Down
6 changes: 3 additions & 3 deletions src/store/swap/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const mutations = defineMutations<SwapState>()({
state.liquidityProviderFee = value;
},
setPrimaryMarketsEnabledAssets(state, assets: PrimaryMarketsEnabledAssets): void {
state.enabledAssets = { ...assets };
state.enabledAssets = Object.freeze({ ...assets });
},
setRewards(state, rewards: Array<LPRewardsInfo>): void {
state.rewards = [...rewards];
Expand All @@ -71,11 +71,11 @@ const mutations = defineMutations<SwapState>()({
): void {
state.dexQuoteData = {
...state.dexQuoteData,
[dexId]: {
[dexId]: Object.freeze({
payload,
paths,
pairLiquiditySources: liquiditySources,
},
}),
};
},
selectDexId(state, dexId: number) {
Expand Down
72 changes: 36 additions & 36 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2368,60 +2368,60 @@
resolved "https://registry.yarnpkg.com/@soda/get-current-script/-/get-current-script-1.0.2.tgz#a53515db25d8038374381b73af20bb4f2e508d87"
integrity sha512-T7VNNlYVM1SgQ+VsMYhnDkcGmWhQdL0bDyGm5TlQ3GBXnJscEClUUOKduWTmm2zCnvNLC1hc3JpuXjs/nFOc5w==

"@sora-substrate/api@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.10.17.tgz#a30836ab9f66fb2cc59999fad6b7d36eec76c6eb"
integrity sha512-1e3P92QqDNZ1XPO6HDXUbr4+fL9MvK2gREJUTvHAzOP+FcJM+p94RzV68QIvfblBIWWOLF7W3MSi/5JFKeaLlw==
"@sora-substrate/api@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/api/-/api-1.10.19.tgz#8090051190ce20e04dddac0fd11c3130aadcec45"
integrity sha512-GF6Ce4oRDRT9dpvB1+3OecHdeUE7XG+eA+ibhtrp/sPYSN4hEjhoA3IYBMOV8hGITbVTJI6IoV9jcVzorhd4YA==
dependencies:
"@open-web3/orml-api-derive" "0.9.4-26"
"@polkadot/api" "8.9.1"
"@sora-substrate/types" "1.10.17"
"@sora-substrate/types" "1.10.19"

"@sora-substrate/liquidity-proxy@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.10.17.tgz#59c1d9505a10a2aeb00807596ad537cd85d324f6"
integrity sha512-h0uFe88t3flNdrQx7jx1xtmkYWsI0UzPp8pQx2UiaxiXQt1acfra06ZPYxexr/P+iV4xc/m7YLEhC7KsUhuS5A==
"@sora-substrate/liquidity-proxy@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/liquidity-proxy/-/liquidity-proxy-1.10.19.tgz#954b226ebb55f350a99e93cc941c4eff53936c0f"
integrity sha512-b3BQV3oFWet6zYx/klyX+i1Oz9vkZ1QfjR5OEnfrQxDB9JQ1KuaqxH1JmA22/R1VqX2oQFsFBLm3TNuWNNXZyw==
dependencies:
"@sora-substrate/math" "1.10.17"
"@sora-substrate/math" "1.10.19"

"@sora-substrate/math@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.10.17.tgz#601986ba7c08919dfb721a62e9cf2f929be40996"
integrity sha512-oe9nhYy8KF5TSZ/PrFVYtufI7yErZL5ESHuzmq7ijBOorlLh1gwtVk6Y0nRHUgX1Axe7X12u0wFuy79rffpjmg==
"@sora-substrate/math@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/math/-/math-1.10.19.tgz#a3ba7f293c49363ff8519ce202a2b1f5a90c2cff"
integrity sha512-NdoeTO1bvctmYM2JYHwhCf8hA3POqSrcZmRBp6GBLTXPH54Th5S+iW8WCqp8Cf05LSdenFIFJMa61/MqCzgL1Q==
dependencies:
"@polkadot/types" "8.9.1"
bignumber.js "^9.0.1"
lodash "^4.17.15"

"@sora-substrate/type-definitions@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.10.17.tgz#4028b2431ed8f4eabc93c55f817655295e38eb73"
integrity sha512-0cYK0Mz7MUMU3EtsXGz0cgtiLHEPdFQTsZuQMu2ukyfMF8w6+DlBXn412aUDWeNM1FEHnTPD39IPbZQOiBH0JQ==
"@sora-substrate/type-definitions@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/type-definitions/-/type-definitions-1.10.19.tgz#4d63c56f817ad6bb840967cc23227d9224ecd9de"
integrity sha512-G+w5dcE/HbgF81PoKLQA5i/ZamUPFeIMPfi491kr0Nlrdaa/V9naGCqpGllw4dxFNEWYl0b+DvkZB5ERar1teQ==
dependencies:
"@open-web3/orml-type-definitions" "0.9.4-26"

"@sora-substrate/types@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.10.17.tgz#d2986a5c1aab67bc7042edb772c3f34e4e17642c"
integrity sha512-PxrRoM+CvBaZfBnthKGEequ7ZyVfKL+yE8M2KQZhqU/s3snbPaJzgA1YHr9DWAxEhHW5hIXNZ8aCkuLjQm3o5Q==
"@sora-substrate/types@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/types/-/types-1.10.19.tgz#d60c7ee355263debdd67a3538a455cf2c2191b24"
integrity sha512-033o8463ePtbuCEVxGIKNahNoFm4xuE8RUMWsHCFPvdh3k5FEhieuu6J3C8Cfqanotifc0kAmndtsgBVhmTZrQ==
dependencies:
"@open-web3/api-mobx" "0.9.4-26"
"@open-web3/orml-types" "0.9.4-26"
"@polkadot/api" "8.9.1"
"@polkadot/typegen" "8.9.1"
"@polkadot/types" "8.9.1"
"@sora-substrate/type-definitions" "1.10.17"
"@sora-substrate/type-definitions" "1.10.19"

"@sora-substrate/util@1.10.17":
version "1.10.17"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.10.17.tgz#1857a518768ded353c2c2983bc3d9c0280242dea"
integrity sha512-D9ckW1h2Ta3wkSJtozDLo/jb18jL8b2bZcgjT90TcN0M4QYI72aHxjDX5xT83qWU+/yAmWKXcU02sI7mENoLDA==
"@sora-substrate/util@1.10.19":
version "1.10.19"
resolved "https://registry.yarnpkg.com/@sora-substrate/util/-/util-1.10.19.tgz#d64ccae36cb8f7ac4e9354cfa4015c4b942293fd"
integrity sha512-+bdwt/G51a8liH+rwlr7uwiP2i9c5L6axgUfFxEKFdohdwrPMqkpJxNSKjFjmPPqMSHBzs66dz4BhJpcIwxlxg==
dependencies:
"@polkadot/ui-keyring" "2.5.1"
"@sora-substrate/api" "1.10.17"
"@sora-substrate/liquidity-proxy" "1.10.17"
"@sora-substrate/math" "1.10.17"
"@sora-substrate/types" "1.10.17"
"@sora-substrate/api" "1.10.19"
"@sora-substrate/liquidity-proxy" "1.10.19"
"@sora-substrate/math" "1.10.19"
"@sora-substrate/types" "1.10.19"
axios "^0.21.1"
bignumber.js "^9.0.1"
crypto-js "^4.0.0"
Expand All @@ -2445,13 +2445,13 @@
vuex "^3.1.3"
vuex-class "^0.3.2"

"@soramitsu/soraneo-wallet-web@1.10.35":
version "1.10.35"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.10.35.tgz#5ecaaa9a4d4be1a934ba8f61b7ad87f1322b779d"
integrity sha512-XQ/FLvBhLhRkB5oDWnRX7KmXApL9LED7stoIhSIT8D3N2Ug0Oka2YEJE/X8Tt5zFMDBSnLy/V60c649Lzb+MjA==
"@soramitsu/soraneo-wallet-web@1.10.36":
version "1.10.36"
resolved "https://nexus.iroha.tech/repository/npm-group/@soramitsu/soraneo-wallet-web/-/soraneo-wallet-web-1.10.36.tgz#42c5cd7792c24558947ffed310ee4570645510db"
integrity sha512-3R8UX41gojlLVbpXe5yceiFgV7HZUd6HxINCYiV+yLoCT/NaKopjlJQJhBEespsU0omO8uPyu4hAmblVn2rtsQ==
dependencies:
"@polkadot/vue-identicon" "2.6.1"
"@sora-substrate/util" "1.10.17"
"@sora-substrate/util" "1.10.19"
"@soramitsu/soramitsu-js-ui" "^1.0.39"
"@subwallet/wallet-connect" "^0.2.3"
"@urql/core" "^2.5.0"
Expand Down

0 comments on commit a45c8fc

Please sign in to comment.