Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
538d0fc
DEXW-2225: Add simple http server to the desktop app
Oct 22, 2019
c549486
DEXW-2225: Add connect providers
Oct 22, 2019
fdae522
DEXW-2225: Add export/import with minimal UI
Oct 22, 2019
8372ab5
DEXW-2225: Add import account page
Oct 24, 2019
0a1e3bf
DEXW-2225: Refactor SignInForm
Oct 25, 2019
4f78c42
DEXW-2225: Clean up
Oct 29, 2019
4fb7fbe
DEXW-2274: waves issuability hack
Oct 31, 2019
d4eefb9
DEXW-2225: Add simple http server to the desktop app
Oct 22, 2019
b2fefa3
DEXW-2225: Add connect providers
Oct 22, 2019
0158fb0
DEXW-2225: Add export/import with minimal UI
Oct 22, 2019
a1eea3d
DEXW-2225: Add import account page
Oct 24, 2019
7e55bb6
DEXW-2225: Refactor SignInForm
Oct 25, 2019
f44c47f
DEXW-2225: Clean up
Oct 29, 2019
88be806
DEXW-2225: Fix bus creation
Nov 6, 2019
2b2d123
DEXW-2281: Update desktop wizard
Oct 31, 2019
6ed2d92
DEXW-2281: Indicate pending while downloading
Nov 1, 2019
0d63e0c
Merge pull request #1739 from wavesplatform/dexw-2281-desktop-update
Nov 6, 2019
d652a2e
DEXW-2282: migration page
Oct 31, 2019
893c25a
DEXW-2282: change routing logic
Nov 1, 2019
07f72e4
DEXW-2282: refactor
Nov 1, 2019
a64957d
DEXW-2225: add is Native function
vba2000 Nov 6, 2019
4253550
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 6, 2019
a81c89a
DEXW-2282: add warning plate
Nov 6, 2019
74176ea
DEXW-2282: fix export modal
Nov 7, 2019
6965a59
DEXW-2282: finish without text
Nov 7, 2019
c533474
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 7, 2019
6d9dc58
DEXW-2282: some fix
Nov 7, 2019
fd66e89
Merge branch 'dexw-2225-exchange-migration' into dexw-2282-dayX-old
Nov 7, 2019
3ce88b4
DEXW-2225: Add info about successful migration
Nov 7, 2019
4333864
DEXW-2282: refactor timer
Nov 7, 2019
e9b1c17
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 7, 2019
5b0d0b5
DEXW-2282: migrate modal add steps
Nov 7, 2019
5c7c0a1
DEXW-2282: add migrateModal auto open logic
Nov 7, 2019
b6503fc
DEXW-2282: delete try desctop modal
Nov 8, 2019
4ac877a
Merge remote-tracking branch 'origin/dexw-2225-add-info-about-success…
Nov 8, 2019
25c44d1
DEXW-2282: add warning plate logic
Nov 8, 2019
1d4c27d
DEXW-2282: modal migration
Nov 8, 2019
8094bc4
DEXW-2282: warning plate switch text
Nov 8, 2019
f1dbc56
DEXW-2282: modal migration
Nov 8, 2019
b4194bd
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 8, 2019
4effac0
DEXW-2282: change link
Nov 8, 2019
9eab35e
Merge branch 'dev' into dexw-2282-dayX-old
Nov 8, 2019
1c6abdc
DEXW-2282: add warning plate dexw-2294 logic
Nov 8, 2019
0ff83ec
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 8, 2019
13e5eb8
DEXW-2314: add-toaster
ekomarovskaya Nov 8, 2019
64fcaf0
DEXW-2314: add locale
ekomarovskaya Nov 8, 2019
b8ea229
DEXW-2314: add link
ekomarovskaya Nov 8, 2019
8f4d2b8
DEXW-2282: change warning-plate
Nov 8, 2019
84c2a9a
DEXW-2282: warning plate fix
Nov 8, 2019
3e3a99b
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 8, 2019
3444c9e
DEXW-2316: fix fetch asset from node
Nov 8, 2019
7a0ce64
Merge pull request #1740 from wavesplatform/dexw-2282-dayX-old
vba2000 Nov 8, 2019
0958a8e
DEXW-2314: add close button behaviour
Nov 8, 2019
33ff0af
DEXW-2320: Migration urls to configs
Nov 8, 2019
ae351f7
DEXW-2330: fixes
vba2000 Nov 11, 2019
eef5ada
Merge pull request #1747 from wavesplatform/dexw-2311-release-1.4.11
jahsus-waves Nov 11, 2019
ce2514b
DEXW-2282: save migrations flag in storage
Nov 11, 2019
26f7f34
Merge pull request #1749 from wavesplatform/dexw-2314-add-toaster-tok…
jahsus-waves Nov 11, 2019
858d47d
DEXW-2322: added auuid
Nov 11, 2019
4c01eb2
Merge pull request #1750 from wavesplatform/dexw-2316-fix-node-asset-…
jahsus-waves Nov 11, 2019
e0cdd0c
Merge pull request #1752 from wavesplatform/dexw-2330-fix-favourites
jahsus-waves Nov 11, 2019
1f939b2
Merge pull request #1754 from wavesplatform/dexw-2322-auuid-into-anal…
jahsus-waves Nov 11, 2019
cad32f3
DEXW-2331: update ver and locales
jahsus-waves Nov 11, 2019
7b64933
DEXW-2314: fix buttin
Nov 11, 2019
1c99179
Merge pull request #1755 from wavesplatform/dexw-2314-add-toaster-tok…
jahsus-waves Nov 11, 2019
be20e0d
Merge pull request #1751 from wavesplatform/dexw-2320-url-to-configs
vba2000 Nov 11, 2019
00e58f2
Merge pull request #1753 from wavesplatform/dexw-2282-dayX-old
vba2000 Nov 11, 2019
d28527a
Revert "Dexw 2282 day x old"
vba2000 Nov 11, 2019
45e3017
Merge pull request #1756 from wavesplatform/revert-1753-dexw-2282-day…
vba2000 Nov 11, 2019
5a053bc
Revert "Revert "Dexw 2282 day x old""
vba2000 Nov 11, 2019
529379c
Merge pull request #1757 from wavesplatform/revert-1756-revert-1753-d…
GIvanovWaves Nov 11, 2019
76d4aad
DEXW-2282: fix header
Nov 11, 2019
5025a7e
Merge branch 'dev' into dexw-2282-dayX-old
Nov 11, 2019
096a4f1
Merge branch 'dexw-2282-dayX-old' of github.com:wavesplatform/WavesGU…
Nov 11, 2019
0479afd
DEXW-2332: change warning plate logic
Nov 11, 2019
62f1a4c
Merge pull request #1760 from wavesplatform/dexw-2332-dex-moving-noti…
vba2000 Nov 11, 2019
c38335a
DEXW-2333: fix show migrate modal
Nov 12, 2019
1aafe34
DEXW-2225: update electron-packager
Nov 12, 2019
33f6563
Merge pull request #1761 from wavesplatform/dexw-2333-delete-double-m…
vba2000 Nov 12, 2019
88e5106
DEXW-2282: fix
Nov 12, 2019
e5322fd
Merge pull request #1759 from wavesplatform/dexw-2282-dayX-old
vba2000 Nov 12, 2019
e238c26
DEXW-2225: fix index.hbs
vba2000 Nov 12, 2019
078561f
DEXW-2225: Desktop migration over https
Nov 12, 2019
fdfeb6c
DEXW-2342: add text
Nov 12, 2019
541f5b1
DEXW-2225: fix config
vba2000 Nov 12, 2019
c5dd8b0
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 12, 2019
607e5d8
DEXW-2225: fix
vba2000 Nov 12, 2019
bf66248
DEXW-2225: fix
vba2000 Nov 12, 2019
008fdce
Merge branch 'dexw-2342-add-text' into dexw-2225-exchange-migration
Nov 13, 2019
f8259fe
DEXW-2346: return coinomat to BTC
vba2000 Nov 13, 2019
8d5bec1
Merge pull request #1763 from wavesplatform/dexw-2331-release-1.4.12
vba2000 Nov 13, 2019
e8c83af
Merge branch 'dev' of github.com:wavesplatform/WavesGUI into dexw-234…
vba2000 Nov 13, 2019
95dafcc
DEXW-2282: add routing logic
Nov 13, 2019
5a0e0de
DEXW-2346: update version
jahsus-waves Nov 13, 2019
3fb9a39
Merge pull request #1765 from wavesplatform/dexw-2282-dayX-old
vba2000 Nov 13, 2019
ab27e6e
DEXW-2340: add dist download link to warning plate on desktop
Nov 12, 2019
d9ae797
Merge pull request #1762 from wavesplatform/dexw-2340-dist-dl
vba2000 Nov 13, 2019
05dcedf
DEXW-2326: desktopUpgrade page
Nov 13, 2019
5b2d236
DEXW-2326: added export storage service
Nov 13, 2019
729d4b5
DEXW-2346: fix
vba2000 Nov 13, 2019
6dc60f6
Merge pull request #1764 from wavesplatform/dexw-2346-coinomat-btc
GIvanovWaves Nov 13, 2019
9ab01be
DEXW-2332: fix notifications
Nov 13, 2019
630b399
Merge pull request #1767 from wavesplatform/dexw-2332-dex-moving-noti…
vba2000 Nov 13, 2019
85a56ab
Merge pull request #1768 from wavesplatform/dexw-2346-release-1.4.13
vba2000 Nov 13, 2019
22ce2ca
DEXW-2326: desktop update elements
Nov 13, 2019
6eacd5a
DEXW-2326: added faq modal
Nov 13, 2019
6c6eaf5
DEXW-2326: remove header from desktop upgrade
Nov 13, 2019
be54fbd
Merge branch 'dexw-2225-exchange-migration' into dexw-2326-desktop-mi…
Axepuff Nov 14, 2019
d431b41
DEXW-2326: remove useless variable
Nov 14, 2019
3d654ab
DEXW-2326: added support of old versions of electron
Nov 14, 2019
0d2b4b7
DEXW-2326:
Nov 14, 2019
512b2b5
DEXW-2326: old version stuff. abort downloading
Nov 15, 2019
4922357
DEXW-2326: added cancel downloading for empty case
Nov 15, 2019
6af465e
DEXW-2326: fix lint
Nov 15, 2019
4ad582e
DEXW-2326: rewrite downloading of the file
Nov 15, 2019
7b7e520
Merge pull request #1771 from wavesplatform/dexw-2326-desktop-migration
Axepuff Nov 15, 2019
a91c97d
DEXW-2326: some layouts and texts
Nov 16, 2019
635f790
DEXW-2225: Hide plate for old desktop
Nov 16, 2019
262691f
Merge pull request #1775 from wavesplatform/dexw-2225-hide-plate-for-…
Axepuff Nov 16, 2019
658dd0d
DEXW-2326: refactor
Nov 16, 2019
c1c632c
DEXW-2326:
Nov 16, 2019
caaaa86
DEXW-2225: fix attemps
vba2000 Nov 16, 2019
c1b2355
DEXW-2225: fix connections
vba2000 Nov 16, 2019
11249c9
DEXW-2225: fix all warning
Nov 16, 2019
d0c2b4a
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 16, 2019
4bd5a18
DEXW-2225: Get desktop version from app
Nov 16, 2019
c89e35b
Merge pull request #1776 from wavesplatform/dexw-2225-get-version-fro…
Nov 16, 2019
7781e7a
DEXW-2225: fix warning
Nov 16, 2019
1003d93
DEXW-2326: accordion icons
Nov 16, 2019
76fad56
DEXW-2225:
Nov 16, 2019
c7c1cc3
DEXW-2225: locales
Nov 16, 2019
f4784c6
DEXW-2225: update stage config
jahsus-waves Nov 16, 2019
700798e
DEXW-2225: update stage config
jahsus-waves Nov 16, 2019
4e8f4bb
DEXW-2225: update stage config
jahsus-waves Nov 16, 2019
9d51703
DEXW-2225: update stage config
jahsus-waves Nov 16, 2019
be61ec0
DEXW-2225: update stage config
jahsus-waves Nov 16, 2019
f1b55ee
DEXW-2225: fix
Nov 17, 2019
9bd846c
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 17, 2019
a7603ce
DEXW-2225: fix index.hbs
vba2000 Nov 17, 2019
9d8a88a
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 17, 2019
8b45a25
DEXW-2225: fixes
vba2000 Nov 17, 2019
c11da27
DEXW-2225: fix
vba2000 Nov 17, 2019
38fd68e
TEST
vba2000 Nov 17, 2019
83def6b
DEXW-2391: Add loader to migration modal
Nov 17, 2019
dcb6c73
DEXW-2225: fix
vba2000 Nov 17, 2019
fb7d5af
Merge pull request #1778 from wavesplatform/dexw-2391-migration-loader
vba2000 Nov 17, 2019
0609807
DEXW-2370: Banners
Nov 16, 2019
3429dfb
Merge pull request #1777 from wavesplatform/dexw-2370-update-plate
Axepuff Nov 17, 2019
84756ec
DEXW-2225: fix
vba2000 Nov 17, 2019
c100b66
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 17, 2019
95955d2
DEXW-2225: fix
vba2000 Nov 17, 2019
24f9404
Merge pull request #1737 from wavesplatform/dexw-2274-waves-is-issuable
vba2000 Nov 17, 2019
981ec0d
DEXW-2225: Hide plate for new users
Nov 17, 2019
b54a1ca
Merge pull request #1779 from wavesplatform/dexw-2225-hide-plate-for-…
vba2000 Nov 17, 2019
cd37295
DEXW-2225: texts, styles
Nov 17, 2019
29474bb
DEXW-2225: edit modal
Nov 17, 2019
16eb23f
DEXW-2225: change text
Nov 17, 2019
35c53de
DEXW-2225: add locales
Nov 17, 2019
d0bec2c
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 17, 2019
ace8525
DEXW-2225: some colors
Nov 17, 2019
3133249
Merge branch 'dexw-2225-exchange-migration' into dexw-2225-desktop-mi…
Nov 17, 2019
53fcdbd
Merge pull request #1780 from wavesplatform/dexw-2225-desktop-migrati…
Axepuff Nov 17, 2019
650fe23
Update mainnet.json
jahsus-waves Nov 17, 2019
5dad951
DEXW-2225: fix warning-plate
Nov 17, 2019
7a16141
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 17, 2019
c7ff312
DEXW-2225: fix
Nov 17, 2019
ebb6941
DEXW-2225: fix
vba2000 Nov 17, 2019
304d2f2
Merge github.com:wavesplatform/WavesGUI into dexw-2225-exchange-migra…
vba2000 Nov 17, 2019
05cea46
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 17, 2019
6df3cf8
Fix migration url
GIvanovWaves Nov 17, 2019
0a5db23
DEXW-2225: texts-edit
Nov 17, 2019
c311a52
DEXW-2225: fix modal moving close
Nov 17, 2019
c87d21f
DEXW-2225: fix hover
Nov 17, 2019
45256a4
DEXW-2225: edit telegram links
Nov 17, 2019
470f1bb
DEXW-2225:
Nov 17, 2019
b93c58f
DEXW-2225: return demon
Nov 17, 2019
24bb975
DEXW-2225: fix
Nov 18, 2019
4cdd34c
DEXW-2225: fix
Nov 18, 2019
f2e6d2d
DEXW-2225: fix timer
Nov 18, 2019
36ac334
DEXW-2225: Fix fail case
Nov 18, 2019
f4fe5a6
DEXW-2225: fix try open
Nov 18, 2019
1404df7
DEXW-2225: change text
Nov 18, 2019
3dd0075
Merge pull request #1782 from wavesplatform/dexw-2225-window-open-try
vba2000 Nov 18, 2019
bea310b
DEXW-2225: change origins
Nov 18, 2019
3a7d303
DEXW-2225: fix transparent
Nov 18, 2019
50cbbb3
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 18, 2019
5664d14
DEXW-2225: fix
Nov 18, 2019
364e30c
DEXW-2225: fix
Nov 18, 2019
6514d8e
DEXW-2225: add bold
Nov 18, 2019
1a677a6
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 18, 2019
358bb47
DEXW-2225: new safe modal
Nov 18, 2019
4f091dd
TRIVIAL: tokenomica toast off during migration
Nov 18, 2019
3f29d7e
Merge pull request #1783 from wavesplatform/trivial-tokenomica-off
vba2000 Nov 18, 2019
96fd5ab
DEXW-2225: fixes
vba2000 Nov 18, 2019
15547d3
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
vba2000 Nov 18, 2019
6b6130d
DEXW-2225: margin fix
Nov 18, 2019
6bd4e1e
DEXW-2225: fix font-size
Nov 18, 2019
10a437b
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 18, 2019
ad39594
DEXW-2225: updated app version
jahsus-waves Nov 18, 2019
4011868
DEXW-2225: edit parser
Nov 18, 2019
5247c57
DEXW-2225: hide setting
Nov 18, 2019
230f5b8
DEXW-2225: fix desktop text
Nov 18, 2019
cb4e21e
Merge branch 'dexw-2225-exchange-migration' of github.com:wavesplatfo…
Nov 18, 2019
1b77fc5
DEXW-2225: fix desktop height, colors
Nov 18, 2019
6b8603d
DEXW-2225: Changed urls to prod
Nov 18, 2019
fe936e4
DEXW-2225: fix migration modal
Nov 19, 2019
f8a4bf6
DEXW-2225: fix dark theme desktop
Nov 19, 2019
b982224
DEXW-2225: fix desktop migration
Nov 19, 2019
6836326
DEXW-2411: fix download locales list
Nov 19, 2019
e0be417
Merge pull request #1785 from wavesplatform/dexw-2411-fix-download-lo…
vba2000 Nov 19, 2019
81b927a
Merge branch 'dexw-2225-release-1.4.14' into dexw-2225-release-1.4.15
jahsus-waves Nov 19, 2019
a4be74f
DEXW-2225: update version and locales
jahsus-waves Nov 19, 2019
47d79ec
DEXW-2418: old electron no acc
Nov 20, 2019
08afdf8
DEXW-2419: Migration for too old desktop with multiaccount
Nov 20, 2019
2fb45ad
Merge pull request #1790 from wavesplatform/dexw-2225-release-1.4.15
GIvanovWaves Nov 20, 2019
a071003
Merge pull request #1789 from wavesplatform/dexw-2419-migration-for-t…
GIvanovWaves Nov 20, 2019
c475dbc
DEXW-2416: fix undefined
Nov 19, 2019
4b74b33
DEXW-2418: add styles
ekomarovskaya Nov 20, 2019
20a38bb
Merge branch 'dexw-2225-exchange-migration' into dexw-2418-old-electr…
Nov 20, 2019
bd47c94
DEXW-2420: add animation, timers, locales
Nov 20, 2019
e5bf9ea
DEXW-2416: Fix migration for undefined
Nov 20, 2019
03333bb
Update locales
Nov 20, 2019
468ba88
Merge branch 'dev' of https://github.com/wavesplatform/WavesGUI into …
Nov 20, 2019
2cc9d03
DEXW-2418: fix after merge
Nov 21, 2019
713dd3e
DEXW-2416: Save version after migation chain
Nov 21, 2019
9977a90
Merge pull request #1792 from wavesplatform/dexw-2225-exchange-migration
GIvanovWaves Nov 21, 2019
a3f9fd8
DEXW-2416: Dont write multiAccountUsers and userList when it is unnec…
Nov 21, 2019
d3095ad
Merge pull request #1787 from wavesplatform/dexw-2416-fix-undefined
GIvanovWaves Nov 21, 2019
b60f5b4
DEXW-2420:
Nov 21, 2019
46c473b
DEXW-2420: fix easing
Nov 21, 2019
f9617a5
Merge pull request #1788 from wavesplatform/dexw-2418-old-electron-no…
GIvanovWaves Nov 21, 2019
7169e41
Merge branch 'dev' into dexw-2420-edit-asking-step
Axepuff Nov 21, 2019
00abf8b
DEXW-2420: Added missing bracket
Nov 21, 2019
47d07a5
Merge pull request #1791 from wavesplatform/dexw-2420-edit-asking-step
GIvanovWaves Nov 21, 2019
d793e1f
DEXW-2445: Up version + locales
Nov 21, 2019
51b5dbd
DEXW-2416: Fixed 'lastVersion' saving
Nov 21, 2019
fd354cb
DEXW-2445: (DEXW-2416) Fix userList migration
Nov 21, 2019
2824503
DEXW-2460: fix post
Nov 22, 2019
003e11a
Merge pull request #1795 from wavesplatform/dexw-2445-release-1.4.16
jahsus-waves Nov 22, 2019
e898c6b
DEXW-2464: fix downloading step
Nov 22, 2019
d8bf3b5
Merge pull request #1797 from wavesplatform/dexw-2464-fix-after-downl…
GIvanovWaves Nov 22, 2019
cb5902c
DEXW-2472: fix literals namespaces
Nov 26, 2019
305201d
Merge pull request #1796 from wavesplatform/dexw-2460-fix-post
jahsus-waves Nov 26, 2019
320c238
Merge pull request #1801 from wavesplatform/dexw-2472-fix-desktop-upd…
GIvanovWaves Nov 26, 2019
d79bacd
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion configs/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
"origin": "https://client.wavesplatform.com",
"featuresConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/config.json",
"feeConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/fee.json",
"migration": {
"webUrl": "https://waves.exchange/migration",
"desktopUrl": "http://localhost:8888/connect",
"desktopPort": 8888,
"origins": [
"https://waves.exchange"
]
},
"WESTNetworkByte": "V",
"tokenrating": "https://tokenrating.wavesexplorer.com",
"assets": {
Expand Down Expand Up @@ -60,5 +68,6 @@
{ "ticker": "DASH", "id": "B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H"},
{ "ticker": "Monero", "id": "5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3"},
{ "ticker": "ZEC", "id": "BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa"}
]
],
"wavesExchangeLink": "https://waves.exchange"
}
8 changes: 7 additions & 1 deletion configs/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
"origin": "https://testnet.wavesplatform.com",
"featuresConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/testnet.config.json",
"feeConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/fee.json",
"migration": {
"webUrl": "https://localhost:8080/migration",
"desktopUrl": "https://localhost:8888/connect",
"desktopPort": 8888
},
"WESTNetworkByte": "S",
"tokenrating": "https://dev.voting.wavesplatform.com",
"assets": {
Expand Down Expand Up @@ -53,5 +58,6 @@
{ "ticker": "USD", "id": "HETgTyfn5grcHWGRKHi7p3hvMB4QxWVrPD8Fnfi9tfD9"},
{ "ticker": "EUR", "id": "EqZfxiqYKkByP42hqNsvuPdXxVYMHaQDwfKgFnAz5D1x"},
{ "ticker": "CNY", "id": "8CfhN5MmaiAW1kCG5tDXasVTSafJP8cf6TZqbPRkNGxQ"}
]
],
"wavesExchangeLink": "https://waves.exchange"
}
8 changes: 7 additions & 1 deletion configs/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
"origin": "https://testnet.wavesplatform.com",
"featuresConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/testnet.config.json",
"feeConfigUrl": "https://raw.githubusercontent.com/wavesplatform/waves-client-config/master/fee.json",
"migration": {
"webUrl": "https://localhost:8080/migration",
"desktopUrl": "https://localhost:8888/connect",
"desktopPort": 8888
},
"WESTNetworkByte": "F",
"tokenrating": "https://dev.voting.wavesplatform.com",
"assets": {
Expand Down Expand Up @@ -53,5 +58,6 @@
{ "ticker": "USD", "id": "HyFJ3rrq5m7FxdkWtQXkZrDat1F7LjVVGfpSkUuEXQHj"},
{ "ticker": "EUR", "id": "2xnE3EdpqXtFgCP156qt1AbyjpqdZ5jGjWo3CwTawcux"},
{ "ticker": "CNY", "id": "6pmDivReTLikwYqQtJTv6dTcE59knriaodB3AK8T9cF8"}
]
],
"wavesExchangeLink": "https://waves.exchange"
}
20 changes: 17 additions & 3 deletions data-service/api/assets/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ export function getAssetFromNode(assetId: string): Promise<Asset> {
return Promise.resolve(wavesAsset);
}

return request<INodeAssetData>({ url: `${configGet('node')}/assets/details/${assetId}` })
return request<INodeAssetInfo>({ url: `${configGet('node')}/assets/details/${assetId}` })
.then((data) => new Asset({
id: data.assetId,
name: data.name,
description: data.description,
height: data.issueHeight,
precision: data.decimals,
quantity: data.quantity,
hasScript: !!data.script,
hasScript: data.scripted,
reissuable: data.reissuable,
minSponsoredFee: data.minSponsoredFee,
minSponsoredFee: data.minSponsoredAssetFee,
sender: data.issuer,
timestamp: new Date(data.issueTimestamp)
}));
Expand Down Expand Up @@ -265,3 +265,17 @@ export interface INodeAssetData {
reissuable: boolean;
script: string | null;
}

export interface INodeAssetInfo {
assetId: string;
issueHeight: number;
issueTimestamp: number;
issuer: string;
name: string;
description: string;
decimals: number;
reissuable: boolean;
quantity: number;
scripted: boolean;
minSponsoredAssetFee: number | string;
}
5 changes: 5 additions & 0 deletions data-service/connect/ConnectProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface ConnectProvider {
send<T>(data: string, options: Record<string, unknown>): Promise<T>;
listen(cb: Function): Promise<void>;
destroy(): void
}
72 changes: 72 additions & 0 deletions data-service/connect/HttpConnectProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { IncomingHttpHeaders, Server } from 'http';
import { request } from '../utils/request';
import { delay } from '../utils/utils';
import { ConnectProvider } from './ConnectProvider';

interface HttpConnectProviderOptions {
port: number;
url: string;
ttl?: number;
}

interface SendOptions {
timeout?: number;
attempts?: number;
}

type SimpleConnectCallback = (data: any, url: URL, headers: IncomingHttpHeaders) => Promise<any>;

export class HttpConnectProvider implements ConnectProvider {
private active = true;
private server: Server;

constructor(private options: HttpConnectProviderOptions) {}

public async send<T>(data: string, options: SendOptions = {}): Promise<T> {
this.checkActive();

const { timeout = 1000, attempts = 1 } = options;

for (let i = attempts; i > 0; i--) {
try {
const res = await request<T>({
url: this.options.url,
fetchOptions: {
method: 'POST',
body: data
}
});

return res;
} catch (e) {
await delay(timeout);
}
}

throw new Error('Could not connect');
}

public async listen(cb: SimpleConnectCallback): Promise<void> {
this.checkActive();
this.server = (window as any).SimpleConnect.listen(this.options.port, cb);

if (this.options.ttl) {
await delay(this.options.ttl);
this.server.close();
}
}

public destroy(): void {
this.active = false;

if (this.server) {
this.server.close();
}
}

private checkActive(): void {
if (!this.active) {
throw new Error('Provider was destroyed');
}
}
}
77 changes: 77 additions & 0 deletions data-service/connect/PostMessageConnectProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { Bus, WindowAdapter, WindowProtocol, IOneArgFunction } from '@waves/waves-browser-bus';
import { delay } from '../utils/utils';
import { ConnectProvider } from './ConnectProvider';

interface PostMessageConnectProviderOptioins {
win?: Window;
mode?: 'export' | 'import';
origins?: string[];
}

interface SendOptions {
event?: string;
timeout?: number;
attempts?: number;
mode?: 'listen' | 'dispatch'
}

export class PostMessageConnectProvider implements ConnectProvider {
private adapter: WindowAdapter;
private bus: Bus;
private active: boolean;

constructor(options: PostMessageConnectProviderOptioins = {}) {
this.adapter = new WindowAdapter(
[new WindowProtocol(window, WindowProtocol.PROTOCOL_TYPES.LISTEN)],
[new WindowProtocol(options.win, WindowProtocol.PROTOCOL_TYPES.DISPATCH)],
{ origins: options.origins }
);
this.bus = new Bus(this.adapter);
this.active = true;
}

public async send<T>(data: string, options: SendOptions = {}): Promise<T> {
this.checkActive();

const { timeout = 5000, attempts = 1 } = options;

for (let i = attempts; i > 0; i--) {
try {
const res = await this.bus.request<string>(
options.event,
data,
options.timeout
);

return JSON.parse(res) as T;
} catch (e) {
await delay(timeout);
}
}

throw new Error('Could not connect');
}

public async listen<T, R>(cb: IOneArgFunction<T, R>): Promise<void> {
this.checkActive();

this.bus.registerRequestHandler('data', (data) => {
return cb(JSON.parse(data));
});
}

public destroy(): void {
try {
this.bus.destroy();
} catch (e) {

}
this.active = false;
}

private checkActive(): void {
if (!this.active) {
throw new Error('Provider was destroyed');
}
}
}
9 changes: 8 additions & 1 deletion data-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DataManager } from './classes/DataManager';
import * as configApi from './config';
import * as sign from './sign';
import * as utilsModule from './utils/utils';
import { downloadFile, abortDownloading } from './utils/DownloadFile';
import { request } from './utils/request';
import { IFetchOptions } from './utils/request';
import * as wavesDataEntitiesModule from '@waves/data-entities';
Expand All @@ -17,6 +18,8 @@ import * as signatureAdapters from '@waves/signature-adapter';
import { SIGN_TYPE, isValidAddress as utilsIsValidAddress } from '@waves/signature-adapter';
import { TTimeType } from './utils/utils';
import { IUserData } from './sign';
import { HttpConnectProvider } from './connect/HttpConnectProvider';
import { PostMessageConnectProvider } from './connect/PostMessageConnectProvider';

export { getAdapterByType, getAvailableList } from '@waves/signature-adapter';
export { Seed } from './classes/Seed';
Expand All @@ -29,10 +32,14 @@ export const wavesDataEntities = {
export const api = { ...apiMethods };
export const dataManager = new DataManager();
export const config = { ...configApi };
export const utils = { ...utilsModule };
export const utils = { ...utilsModule, downloadFile, abortDownloading };
export const signature = {
...sign
};
export const connect = {
HttpConnectProvider,
PostMessageConnectProvider
};

export const signAdapters = signatureAdapters;
export const isValidAddress = utilsIsValidAddress;
Expand Down
Loading