@rainlanguage/ui-components 0.0.1-alpha.160 → 0.0.1-alpha.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,8 @@ import ComposedRainlangModal from "./ComposedRainlangModal.svelte";
|
|
|
4
4
|
import {
|
|
5
5
|
DotrainOrderGui,
|
|
6
6
|
RaindexClient,
|
|
7
|
-
AccountBalance
|
|
7
|
+
AccountBalance,
|
|
8
|
+
Float
|
|
8
9
|
} from "@rainlanguage/orderbook";
|
|
9
10
|
import WalletConnect from "../wallet/WalletConnect.svelte";
|
|
10
11
|
import {} from "svelte/store";
|
|
@@ -98,7 +99,7 @@ async function fetchTokenBalance(tokenInfo) {
|
|
|
98
99
|
if (!$account) return;
|
|
99
100
|
const balances = tokenBalances;
|
|
100
101
|
balances.set(tokenInfo.key, {
|
|
101
|
-
value: { balance:
|
|
102
|
+
value: { balance: Float.parse("0").value, formattedBalance: "0" },
|
|
102
103
|
loading: true,
|
|
103
104
|
error: ""
|
|
104
105
|
});
|
|
@@ -108,7 +109,7 @@ async function fetchTokenBalance(tokenInfo) {
|
|
|
108
109
|
);
|
|
109
110
|
if (error) {
|
|
110
111
|
balances.set(tokenInfo.key, {
|
|
111
|
-
value: { balance:
|
|
112
|
+
value: { balance: Float.parse("0").value, formattedBalance: "0" },
|
|
112
113
|
loading: false,
|
|
113
114
|
error: error.readableMsg
|
|
114
115
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/ui-components",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.161",
|
|
4
4
|
"description": "A component library for building Svelte applications to be used with Raindex.",
|
|
5
5
|
"license": "LicenseRef-DCL-1.0",
|
|
6
6
|
"author": "Rain Open Source Software Ltd",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@fontsource/dm-sans": "5.1.0",
|
|
54
54
|
"@imask/svelte": "7.6.1",
|
|
55
55
|
"@observablehq/plot": "0.6.16",
|
|
56
|
-
"@rainlanguage/orderbook": "0.0.1-alpha.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.161",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|