@ape.swap/bonds-sdk 4.1.3-test.33 → 4.1.3-test.38
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.
- package/README.md +1 -1
- package/dist/main.js +2389 -3082
- package/dist/views/Bonds/components/HotBondCards/index.d.ts +0 -1
- package/package.json +10 -11
- package/dist/assets/output-2LTDuc8n.css +0 -174
- package/dist/utils/formatNumbers.d.ts +0 -34
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.1.3-test.
|
|
6
|
+
"version": "4.1.3-test.38",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -81,16 +81,15 @@
|
|
|
81
81
|
"@emotion/react": "11.14.0",
|
|
82
82
|
"bignumber.js": "^9.1.2",
|
|
83
83
|
"buffer": "^6.0.3",
|
|
84
|
-
"chart.js": "4.
|
|
85
|
-
"dom-to-image": "
|
|
86
|
-
"framer-motion": "
|
|
87
|
-
"lightweight-charts": "4.
|
|
88
|
-
"lodash": "
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"theme-ui": "0.16.2"
|
|
84
|
+
"chart.js": "4.5.0",
|
|
85
|
+
"dom-to-image": "2.6.0",
|
|
86
|
+
"framer-motion": "11.18.2",
|
|
87
|
+
"lightweight-charts": "4.2.3",
|
|
88
|
+
"lodash": "4.17.21",
|
|
89
|
+
"primereact": "10.9.7",
|
|
90
|
+
"react-chartjs-2": "5.3.0",
|
|
91
|
+
"swiper": "11.2.10",
|
|
92
|
+
"theme-ui": "0.17.2"
|
|
94
93
|
},
|
|
95
94
|
"browserslist": {
|
|
96
95
|
"production": [
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Swiper 8.4.7
|
|
3
|
-
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
|
-
* https://swiperjs.com
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2014-2023 Vladimir Kharlampidi
|
|
7
|
-
*
|
|
8
|
-
* Released under the MIT License
|
|
9
|
-
*
|
|
10
|
-
* Released on: January 30, 2023
|
|
11
|
-
*/
|
|
12
|
-
@font-face {
|
|
13
|
-
font-family: swiper-icons;
|
|
14
|
-
src: url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAH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xtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA");
|
|
15
|
-
font-weight: 400;
|
|
16
|
-
font-style: normal;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
19
|
-
--swiper-theme-color:#007aff;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.swiper {
|
|
23
|
-
margin-left: auto;
|
|
24
|
-
margin-right: auto;
|
|
25
|
-
position: relative;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
list-style: none;
|
|
28
|
-
padding: 0;
|
|
29
|
-
z-index: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.swiper-vertical > .swiper-wrapper {
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.swiper-wrapper {
|
|
37
|
-
position: relative;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
z-index: 1;
|
|
41
|
-
display: flex;
|
|
42
|
-
transition-property: transform;
|
|
43
|
-
box-sizing: content-box;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.swiper-android .swiper-slide, .swiper-wrapper {
|
|
47
|
-
transform: translate3d(0px, 0, 0);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.swiper-pointer-events {
|
|
51
|
-
touch-action: pan-y;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.swiper-pointer-events.swiper-vertical {
|
|
55
|
-
touch-action: pan-x;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.swiper-slide {
|
|
59
|
-
flex-shrink: 0;
|
|
60
|
-
width: 100%;
|
|
61
|
-
height: 100%;
|
|
62
|
-
position: relative;
|
|
63
|
-
transition-property: transform;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.swiper-slide-invisible-blank {
|
|
67
|
-
visibility: hidden;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.swiper-autoheight, .swiper-autoheight .swiper-slide {
|
|
71
|
-
height: auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.swiper-autoheight .swiper-wrapper {
|
|
75
|
-
align-items: flex-start;
|
|
76
|
-
transition-property: transform, height;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.swiper-backface-hidden .swiper-slide {
|
|
80
|
-
transform: translateZ(0);
|
|
81
|
-
-webkit-backface-visibility: hidden;
|
|
82
|
-
backface-visibility: hidden;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.swiper-3d, .swiper-3d.swiper-css-mode .swiper-wrapper {
|
|
86
|
-
perspective: 1200px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.swiper-3d .swiper-cube-shadow, .swiper-3d .swiper-slide, .swiper-3d .swiper-slide-shadow, .swiper-3d .swiper-slide-shadow-bottom, .swiper-3d .swiper-slide-shadow-left, .swiper-3d .swiper-slide-shadow-right, .swiper-3d .swiper-slide-shadow-top, .swiper-3d .swiper-wrapper {
|
|
90
|
-
transform-style: preserve-3d;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.swiper-3d .swiper-slide-shadow, .swiper-3d .swiper-slide-shadow-bottom, .swiper-3d .swiper-slide-shadow-left, .swiper-3d .swiper-slide-shadow-right, .swiper-3d .swiper-slide-shadow-top {
|
|
94
|
-
position: absolute;
|
|
95
|
-
left: 0;
|
|
96
|
-
top: 0;
|
|
97
|
-
width: 100%;
|
|
98
|
-
height: 100%;
|
|
99
|
-
pointer-events: none;
|
|
100
|
-
z-index: 10;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.swiper-3d .swiper-slide-shadow {
|
|
104
|
-
background: rgba(0, 0, 0, 0.15);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.swiper-3d .swiper-slide-shadow-left {
|
|
108
|
-
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.swiper-3d .swiper-slide-shadow-right {
|
|
112
|
-
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.swiper-3d .swiper-slide-shadow-top {
|
|
116
|
-
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.swiper-3d .swiper-slide-shadow-bottom {
|
|
120
|
-
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.swiper-css-mode > .swiper-wrapper {
|
|
124
|
-
overflow: auto;
|
|
125
|
-
scrollbar-width: none;
|
|
126
|
-
-ms-overflow-style: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
|
|
130
|
-
display: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
|
|
134
|
-
scroll-snap-align: start start;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.swiper-horizontal.swiper-css-mode > .swiper-wrapper {
|
|
138
|
-
scroll-snap-type: x mandatory;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.swiper-vertical.swiper-css-mode > .swiper-wrapper {
|
|
142
|
-
scroll-snap-type: y mandatory;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.swiper-centered > .swiper-wrapper::before {
|
|
146
|
-
content: "";
|
|
147
|
-
flex-shrink: 0;
|
|
148
|
-
order: 9999;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
|
|
152
|
-
margin-inline-start: var(--swiper-centered-offset-before);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
|
|
156
|
-
height: 100%;
|
|
157
|
-
min-height: 1px;
|
|
158
|
-
width: var(--swiper-centered-offset-after);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
|
|
162
|
-
margin-block-start: var(--swiper-centered-offset-before);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.swiper-centered.swiper-vertical > .swiper-wrapper::before {
|
|
166
|
-
width: 100%;
|
|
167
|
-
min-width: 1px;
|
|
168
|
-
height: var(--swiper-centered-offset-after);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.swiper-centered > .swiper-wrapper > .swiper-slide {
|
|
172
|
-
scroll-snap-align: center center;
|
|
173
|
-
scroll-snap-stop: always;
|
|
174
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
interface FormatDollarArgs {
|
|
2
|
-
num: number | undefined | null;
|
|
3
|
-
isPrice?: boolean;
|
|
4
|
-
lessPreciseStablecoinValues?: boolean;
|
|
5
|
-
digits?: number;
|
|
6
|
-
round?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated PLEASE DO NOT USE
|
|
10
|
-
* Returns a USD dollar or equivalent denominated numerical value formatted
|
|
11
|
-
* in human readable string for use in template.
|
|
12
|
-
*
|
|
13
|
-
* Adheres to guidelines for prices and other numbers defined here:
|
|
14
|
-
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
15
|
-
* @param num numerical value denominated in USD or USD equivalent
|
|
16
|
-
* @param isPrice whether the amount represents a price or not
|
|
17
|
-
* @param lessPreciseStablecoinValues whether or not we should show less precise values for
|
|
18
|
-
* stablecoins (around 1$ in value always) for the sake of readability
|
|
19
|
-
* @param digits number of digits after the decimal for non-price amounts
|
|
20
|
-
* @param round whether or not to round up non-price amounts
|
|
21
|
-
*/
|
|
22
|
-
export declare const formatDollar: ({ num, isPrice, lessPreciseStablecoinValues, digits, round, }: FormatDollarArgs) => string;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated PLEASE DO NOT USE
|
|
25
|
-
* Returns a numerical amount of any token formatted in human readable string for use in template.
|
|
26
|
-
*
|
|
27
|
-
* For transaction review numbers, such as token quantities, NFT price (token-denominated),
|
|
28
|
-
* network fees, transaction history items. Adheres to guidelines defined here:
|
|
29
|
-
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
30
|
-
* @param num numerical value denominated in any token
|
|
31
|
-
* @param maxDigits the maximum number of digits that should be shown for the quantity
|
|
32
|
-
*/
|
|
33
|
-
export declare const formatTransactionAmount: (num: number | undefined | null, maxDigits?: number) => string;
|
|
34
|
-
export {};
|