Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets adding #396

Open
wants to merge 219 commits into
base: listings
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
5a8c6ea
XPR from pr.network
mahho Apr 16, 2018
8529c27
Optimize pr.network logo and build directory.json
irisli Apr 19, 2018
871c3af
Add wildcard support in directory
irisli Apr 19, 2018
e5ac039
Merge pull request #242 from irisli/pr-network
irisli Apr 19, 2018
a9cff71
Fix tontinetrust.com logo transparency
irisli Apr 19, 2018
a71d54a
Add winsome.gift
irisli Apr 19, 2018
38d7b5b
Move github repo to stellarterm/stellarterm
irisli Apr 19, 2018
37a0074
Add six.network and ternio.io. Change stronghold. Re-endable cryptomover
irisli May 31, 2018
01318ae
Merge pull request #259 from stellarterm/directory-may
irisli May 31, 2018
d6c4173
Fix travis build crash
irisli May 31, 2018
edd3ff1
Merge pull request #260 from stellarterm/fix-travis
irisli May 31, 2018
c304a61
Reduce ticker update frequency
irisli Jun 6, 2018
3c3d7bb
Increase ticker cache time
irisli Jun 6, 2018
423cd03
Use unindented JSON for ticker
irisli Jun 6, 2018
a2889ea
Update six.network issuer
irisli Jun 6, 2018
49dc26e
Add new sureremit
irisli Jun 6, 2018
0c19fe1
Merge pull request #263 from stellarterm/june-changes
irisli Jun 6, 2018
e183cab
Add sureremit.co swap info
irisli Jun 16, 2018
8f26c34
Merge pull request #270 from stellarterm/sureremit-swap
irisli Jun 16, 2018
adfb810
Build directory json for Sureremit.co
irisli Jun 16, 2018
3df1df1
Disable offer making for old sureremit
irisli Jun 22, 2018
7548420
Fix privacy policy typo
irisli Jul 20, 2018
e85169e
Update stronghold USD anchor account id
irisli Jul 20, 2018
c6c7ff6
Add the farewell message
irisli Sep 20, 2018
31a1d6b
Fix shutdown notice date
irisli Sep 20, 2018
70a8371
Bring good news on the future of StellarTerm
irisli Sep 28, 2018
3f93cd4
Add gulp task to fix favicons
flat-resonance Oct 22, 2018
5e9cd15
Fix favicon name in link
flat-resonance Oct 23, 2018
4bc0ce9
Merge pull request #305 from stellarterm/favicons-fix
gpg90 Oct 22, 2018
3be3e76
Merge pull request #306 from stellarterm/favicons-fix
gpg90 Oct 23, 2018
0db5d1e
Run tests only for master branch
flat-resonance Oct 23, 2018
28e9752
Merge pull request #307 from stellarterm/travis-build-include
gpg90 Oct 23, 2018
b5d432c
Remove uploading artifacts to s3
flat-resonance Dec 19, 2018
729b5d2
Remove banner
flat-resonance Dec 19, 2018
3cab042
Add new staging environment
flat-resonance Dec 19, 2018
867f166
Remove option
flat-resonance Dec 19, 2018
69a1cf0
Add loggers
flat-resonance Dec 19, 2018
7bf3117
Add missing changes
flat-resonance Dec 19, 2018
fa8b721
Merge pull request #314 from stellarterm/remove-uploading-artifacts
gpg90 Dec 21, 2018
05657cd
Merge pull request #315 from stellarterm/banner-remove
gpg90 Dec 21, 2018
7fb9a9e
Remove old assets, fix some linter errors
flat-resonance Jan 17, 2019
0de9f9a
Simplify and fix linter errors in app.jsx
flat-resonance Jan 17, 2019
0df6ccf
Set stage dynamically
flat-resonance Jan 18, 2019
3b1efbb
Add missing export
flat-resonance Jan 18, 2019
adda56f
Revert destination, fix linter for directory
flat-resonance Jan 18, 2019
a748d1e
Fix extensions
flat-resonance Jan 18, 2019
cf29721
Fix PropTypes definition, fix linter errors, remove old asset
flat-resonance Jan 21, 2019
5696502
Restore some assets
flat-resonance Jan 21, 2019
d7b5f11
Merge pull request #316 from stellarterm/api-deploy
gpg90 Jan 21, 2019
6591b93
Merge pull request #317 from stellarterm/asset-changes
gpg90 Jan 21, 2019
62e42cf
Add new assets
flat-resonance Jan 22, 2019
62abc6f
Merge branch 'master' into staging-environment
flat-resonance Jan 22, 2019
8650d09
Add local API
flat-resonance Jan 22, 2019
6416343
Change icons and color
flat-resonance Jan 22, 2019
f81aed9
Merge pull request #318 from stellarterm/assets-adding
gpg90 Jan 22, 2019
a7e27bc
Add Stronghold Token asset
flat-resonance Jan 23, 2019
0e79f46
Merge pull request #319 from stellarterm/assets-adding
gpg90 Jan 23, 2019
2bcfa5f
Add environment consts to eslint ignore
flat-resonance Jan 23, 2019
e6e88cf
Run rebuild on logos changes
flat-resonance Jan 23, 2019
4012eba
Merge pull request #320 from stellarterm/staging-environment
gpg90 Jan 23, 2019
fb31bec
Add Security Phrase functionality
flat-resonance Jan 24, 2019
e6d4a0a
Change styles, texts add new phrases
flat-resonance Jan 25, 2019
caff9ab
Change Stellarterm to StellarTerm
flat-resonance Jan 25, 2019
90c97ba
Adding line break
gpg90 Jan 25, 2019
327b28a
Merge pull request #321 from stellarterm/security-phrase
gpg90 Jan 25, 2019
9b800e9
Fix start script
flat-resonance Jan 29, 2019
004f405
Merge pull request #322 from stellarterm/staging-environment
gpg90 Jan 30, 2019
9952b49
Support email added, style link fixes
little-wave Feb 5, 2019
b0896d7
refactor pages code, linter fixes, moved to /Pages
little-wave Feb 4, 2019
937a086
Code refactor, undefined balance view fix
little-wave Feb 6, 2019
cff8001
Use process.env as second choice
flat-resonance Feb 6, 2019
f4e0994
Components code refactor, accept asset buttons view fix, style added
little-wave Feb 11, 2019
e8bbb60
Ledger lost transaction bugfix, linter error fixes
little-wave Feb 14, 2019
d20e24f
Merge pull request #343 from stellarterm/support-email
gpg90 Feb 15, 2019
61366d8
Components code refactor, propTypes adding, LoginPage structure refactor
little-wave Feb 7, 2019
35cf8c8
AssetCard, AssetList, Ellipsis components refactor, code structure si…
little-wave Feb 14, 2019
3ec316c
Merge pull request #333 from stellarterm/staging-environment
gpg90 Feb 19, 2019
1164548
Merge pull request #334 from stellarterm/balance-fix
gpg90 Feb 19, 2019
4456c01
Merge pull request #340 from stellarterm/accept-buttons
gpg90 Feb 19, 2019
c020288
Merge pull request #335 from stellarterm/pages-refactor
gpg90 Feb 19, 2019
801b3e3
Moment.js for date formatting added, history account Undefined time b…
little-wave Feb 19, 2019
ff78a20
Merge pull request #350 from stellarterm/components-refactor
gpg90 Feb 27, 2019
4e5f249
Merge pull request #351 from stellarterm/history-datetime-bugfix
gpg90 Feb 27, 2019
d17dfd5
Fixed display of available balance if we have open offers
little-wave Feb 11, 2019
6d9e5d8
Added menu to create a custom pair of assets
egor-lukashev Feb 5, 2019
a6864e2
Fixed calculate padded reserve(extra value changed to 0.5)
egor-lukashev Mar 1, 2019
8064b9e
Fix bug with width asset-pair if one of asset empty
egor-lukashev Mar 1, 2019
f9a8190
Session components refactored, Debounce promice added, linter error f…
little-wave Feb 22, 2019
2b223a6
Hierarchical structure for Session component added
little-wave Feb 28, 2019
8bbf666
AddTrustFromFederation bugfix, code prettify, PropTypes errors fixes,…
flat-resonance Mar 1, 2019
8cb77a7
Merge pull request #352 from stellarterm/reserved-balance
gpg90 Mar 4, 2019
b2c1789
Merge pull request #353 from stellarterm/custom-exchange-pair
gpg90 Mar 4, 2019
a4d68b0
Stellarterm.toml file added to .well-known/stellar.toml, Netlify head…
little-wave Mar 4, 2019
5a0538e
Card Issuer: (not you) text removed
little-wave Mar 4, 2019
65e36ff
Added search asset by domain, set default counter asset, added messag…
egor-lukashev Mar 4, 2019
5ea52d4
Merge pull request #356 from stellarterm/custom-exchange-pair
gpg90 Mar 5, 2019
6a68783
Merge pull request #355 from stellarterm/stellarterm-toml
gpg90 Mar 5, 2019
610807f
Merge pull request #359 from stellarterm/issuerId-fix
gpg90 Mar 5, 2019
d77c875
Added multisig transactions functional
shiny-mountain Mar 6, 2019
e976330
Merge pull request #358 from stellarterm/sessions-refactor
gpg90 Mar 11, 2019
cb3f019
Improving texts for multi-sig pop-up
gpg90 Mar 11, 2019
4b27c0a
Remove json files from repo, build them dynamically
flat-resonance Jan 22, 2019
3ba7092
Add new tokens
flat-resonance Mar 7, 2019
cdf89cc
Merge pull request #363 from stellarterm/support-multisig
gpg90 Mar 11, 2019
2a7358e
Added message to RemoveTrustLink when any orders exists
little-wave Mar 12, 2019
5728e8f
Merge pull request #364 from stellarterm/usd-tokens-adding
gpg90 Mar 12, 2019
e5372ff
Sending more asset than user have bug-fix
little-wave Mar 12, 2019
9f2c024
Sending XLM now calculating with dependency on active offers
little-wave Mar 12, 2019
9191b8e
Fixed view asset pick bug, after editing destination
little-wave Mar 13, 2019
39f6faa
Merge remote-tracking branch 'origin/master' into ledger-bugfix
flat-resonance Mar 13, 2019
02984ba
Change browser support message
flat-resonance Mar 13, 2019
1f79cd9
Sending asset/XLM now calculating with dependency on active offers
little-wave Mar 14, 2019
ab40046
Change stellar logo
flat-resonance Mar 15, 2019
be4285a
Merge pull request #372 from stellarterm/stellar-logo-change
gpg90 Mar 15, 2019
3792b12
Merge pull request #369 from stellarterm/removeAsset-bugfix
gpg90 Mar 15, 2019
b11a008
Merge pull request #373 from stellarterm/send-bugfixes
gpg90 Mar 18, 2019
0a94f4c
Merge pull request #370 from stellarterm/ledger-bugfix
gpg90 Mar 18, 2019
ce4c084
Added keyboard selection in assets-dropdown
shiny-mountain Mar 12, 2019
8207345
Merge pull request #376 from stellarterm/custom-exchange-pair
gpg90 Mar 19, 2019
b19db78
Added QR-code for account ID in 'activate account page' and 'balances…
shiny-mountain Mar 19, 2019
3a1c5c0
Extra amount fixed 0.5XLM -> 0.1 XLM. Merge tool mention.
gpg90 Mar 19, 2019
de802dc
Custody note on main page
gpg90 Mar 19, 2019
c2a0141
Custody note on TOS
gpg90 Mar 19, 2019
a7cc614
Merge pull request #378 from stellarterm/custody-notes
gpg90 Mar 19, 2019
e172467
Added missing space
gpg90 Mar 19, 2019
fbf3296
Merge pull request #377 from stellarterm/min-balance-new-content
gpg90 Mar 19, 2019
1f6adc1
Fixed display error of adding asset if is not enough XLM
shiny-mountain Mar 19, 2019
604e7b5
Fix linter errors
flat-resonance Mar 19, 2019
7fa86ff
Merge pull request #379 from stellarterm/min-balance-new-content
gpg90 Mar 19, 2019
a212961
OfferMakers refactor
egor-lukashev Feb 21, 2019
f5d622e
Fixed link
shiny-mountain Mar 20, 2019
2529078
Fixed mistake n getErrorType function
shiny-mountain Mar 21, 2019
7252366
Add new assets to bittrex whitelist
flat-resonance Mar 21, 2019
44a99e3
Merge pull request #383 from stellarterm/bittrex-white-list-change
gpg90 Mar 21, 2019
b44aa48
Some minor view bugs fixed
little-wave Mar 5, 2019
9923716
Fixed display account history details for payment to activate another…
shiny-mountain Mar 25, 2019
7ea9317
Set minimum amount of asset for creating offer: 0.0000001
shiny-mountain Mar 22, 2019
4fe5875
Added success messagess for creating offer and send payment, forms af…
shiny-mountain Mar 21, 2019
0470e01
Added coinbase account to the directory
shiny-mountain Mar 25, 2019
61c3a7f
Changed error message
shiny-mountain Mar 25, 2019
ac892f7
Set and update fee during Transaction creation
flat-resonance Mar 26, 2019
d44dc47
Load fee value from horizon
flat-resonance Mar 26, 2019
04492e4
If tried to create pair with the same assets in custom-exchange-pair …
shiny-mountain Mar 26, 2019
c9ea2ce
Change horizon server
flat-resonance Mar 26, 2019
0f1d57a
Merge pull request #386 from stellarterm/offermaker-refactor
gpg90 Mar 26, 2019
912ca44
Merge pull request #387 from stellarterm/add-asset-bugfix
gpg90 Mar 26, 2019
6e7b4ca
Merge pull request #388 from stellarterm/account-history-details-fix
gpg90 Mar 26, 2019
6cf0bc8
Merge pull request #389 from stellarterm/minor-bugs
gpg90 Mar 26, 2019
40a2228
Change horizon server on frontend
flat-resonance Mar 26, 2019
86fc94d
Merge pull request #385 from stellarterm/horizon-server
gpg90 Mar 26, 2019
0f77c44
Request fee stats every minute. Move Fee Data to separate file
flat-resonance Mar 26, 2019
e005c6c
Fixed console error on click to link inside trust-button
shiny-mountain Mar 26, 2019
eb2bdac
Merge pull request #384 from stellarterm/dynamic-transaction-fee
gpg90 Mar 26, 2019
b19a177
Added monitoring of account signers
shiny-mountain Mar 27, 2019
a00ee15
Updating placeholder address to a shorter one
gpg90 Mar 28, 2019
ae0137c
Components refactored, some views optimized
little-wave Mar 13, 2019
d059fe2
Deleted underline for assetcards
shiny-mountain Mar 29, 2019
3970440
Merge pull request #398 from stellarterm/address-placeholder-change
gpg90 Mar 29, 2019
4adba23
Update message for missing signatures for new offer
gpg90 Mar 29, 2019
631a3f2
Update message for missing signatures for new tx
gpg90 Mar 29, 2019
0361eb3
Merge pull request #394 from stellarterm/multisig-improvements
gpg90 Mar 29, 2019
3aa8578
Small message tweak.
gpg90 Mar 29, 2019
0edaed5
Merge pull request #395 from stellarterm/offermaker-set-min-amount
gpg90 Mar 29, 2019
8845a56
Merge pull request #400 from stellarterm/signers-update-fix
gpg90 Mar 29, 2019
e7fe88b
Merge pull request #401 from stellarterm/trustbutton-link-fix
gpg90 Mar 29, 2019
0f9cabd
Merge pull request #403 from stellarterm/coinbase-account-adding
gpg90 Mar 29, 2019
fb05a8c
Federations support added, now .toml file used from used environment,…
little-wave Mar 6, 2019
537c448
Send view bugfixes. Now user can't send 0 asset amount
little-wave Apr 1, 2019
5badea6
Added stellarterm.com home domain set on federation
little-wave Apr 1, 2019
fc94472
Adding link to fed server
gpg90 Apr 1, 2019
3b4648a
Now homeDomain setted both on set and edit federation
little-wave Apr 1, 2019
b70a7f5
Asc order to accepted assets added, view bugfixes, scroll bugfix in E…
little-wave Apr 2, 2019
25ee40b
Response extra field parse, send error text bugfix
little-wave Apr 4, 2019
637df7e
Fixed display 'unknown' domain for assets in search by anchor. If the…
shiny-mountain Mar 21, 2019
2fbd582
Merge remote-tracking branch 'origin/federation-stellarterm' into qr-…
shiny-mountain Apr 5, 2019
7d9a226
Changed styles for accountIdBlock with QR-code
shiny-mountain Apr 5, 2019
805e459
Fixed display domain for accepted assets in history
shiny-mountain Apr 5, 2019
0ed48f1
Merge pull request #402 from stellarterm/base-refactor
gpg90 Apr 5, 2019
5ee512b
Federation texts updates
gpg90 Apr 5, 2019
0b8da97
Updated placeholder for federation input
gpg90 Apr 5, 2019
06a4bfc
Merge branch 'master' into federation-stellarterm
gpg90 Apr 5, 2019
91598da
Merge pull request #409 from stellarterm/federation-stellarterm
gpg90 Apr 5, 2019
ae34cd1
Change text for same asset selection error
gpg90 Apr 5, 2019
6413422
Merge pull request #412 from stellarterm/custom-exchange-pair-fix
gpg90 Apr 5, 2019
6c3cc83
Adding space
gpg90 Apr 5, 2019
17b041f
Merge pull request #414 from stellarterm/qr-code-adding
gpg90 Apr 5, 2019
e1bb039
Add line break
gpg90 Apr 5, 2019
d532400
Fixed bug with update data for unknown assets
shiny-mountain Apr 8, 2019
a682064
Federation bugfixes and request chain impromenets
little-wave Apr 9, 2019
a2a6772
Fix uppercase text bug in manual exchange pair
little-wave Apr 8, 2019
48a35ef
homeDomain field on session account updated
little-wave Apr 9, 2019
5ca94ad
Fixed infinite homeDomain transactions on Session federation change
little-wave Apr 12, 2019
3be724e
Improving no federation text
gpg90 Apr 14, 2019
d729300
Merge branch 'master' into federation-improvements
flat-resonance Apr 16, 2019
3975806
Merge branch 'master' into no-trustline-send-bugfix
flat-resonance Apr 16, 2019
c272847
Merge branch 'master' into unknown-asset-card-improvements
flat-resonance Apr 16, 2019
2bac166
Unlist stronghold BTS, ETH, USD
flat-resonance Apr 19, 2019
73a336e
Merge pull request #425 from stellarterm/stronghold-delist
gpg90 Apr 19, 2019
ddfb917
Merge pull request #410 from stellarterm/minor-view-bugs
gpg90 Apr 19, 2019
dd13967
Merge pull request #411 from stellarterm/send-minor-bugs
gpg90 Apr 19, 2019
6d95b35
Merge pull request #420 from stellarterm/federation-improvements
gpg90 Apr 19, 2019
97a41e2
Merge pull request #421 from stellarterm/manual-asset-uppercase-fix
gpg90 Apr 19, 2019
3419616
Merge pull request #413 from stellarterm/no-trustline-send-bugfix
gpg90 Apr 19, 2019
7cf89de
Merge branch 'master' into unknown-asset-card-improvements
gpg90 Apr 19, 2019
432877c
Merge pull request #422 from stellarterm/unknown-asset-card-improvements
gpg90 Apr 22, 2019
4b3295e
Project restructuring completed
little-wave Apr 9, 2019
2d64550
Manually accept padding fixed
little-wave Apr 18, 2019
756718d
Import files structure fixes
little-wave Apr 22, 2019
ae677f2
Merge pull request #424 from stellarterm/project-restructuring
gpg90 Apr 26, 2019
cbdc2ab
Added sorting by values to AssetList component, sorting optimization …
little-wave Apr 3, 2019
f08da2a
Merge pull request #435 from stellarterm/markets-sorting
gpg90 Apr 29, 2019
e923b67
Added multisig setup
shiny-mountain Apr 11, 2019
4ba9122
Fixed bug with set inflation destination, fixed error display with al…
shiny-mountain Apr 30, 2019
02ba4ba
Fixed bug with vault logo
shiny-mountain Apr 30, 2019
3d45cb6
Merge pull request #434 from stellarterm/multisig-setup
gpg90 Apr 30, 2019
caea11f
Change ledger library, change ledger support logic
flat-resonance May 3, 2019
4d61250
Merge pull request #438 from stellarterm/ledger-library-fix
gpg90 May 4, 2019
b6e1851
Added 'mintx.co' assets
shiny-mountain May 13, 2019
8b56f06
Changed 'mintx.co' icon
shiny-mountain May 13, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/
src/env-consts.js
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": "airbnb",
"globals": {
"StellarSdk": true,
"window": true,
"document": true,
"localStorage": true,
"fetch": true
},
"rules": {
"max-len": ["error", {
"code": 120,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true
}],
"react/require-default-props": 0,
"react/jsx-indent": 0,
"react/jsx-indent-props": ["error", 4],
"react/jsx-closing-bracket-location": ["error", "after-props"],
"jsx-a11y/no-static-element-interactions": 0,
"indent": ["error", 4],
"new-cap": "warn",
"no-underscore-dangle": "off",
"semi": "error",
"curly": ["error", "all"]
}
}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ node_modules/
dist/
.sass-cache/
src/images.js
src/env-consts.js

npm-debug.log
package-lock.json
api/package-lock.json

# OSX
*.DS_Store
Expand All @@ -13,3 +15,9 @@ package-lock.json
._*

.idea

directory/logos.json
directory/directory.json

api/setEnvironment.sh
api/setStagingEnvironment.sh
17 changes: 5 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,17 @@ language: node_js

git:
depth: 10000
branches:
only:
- master
node_js:
- node
- "8"
install:
- npm run setup
before_script:
# - npm run lint || true
script:
- npm run production
- npm run test
- cd dist; echo "./fetchTravisBuild.sh stellarterm-build-output/irisli/stellarterm/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/dist/index.html $(openssl dgst -sha256 index.html | sed 's/^.* //')"
- cd dist; echo "./fetchTravisBuild.sh stellarterm-build-output/stellarterm/stellarterm/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/dist/index.html $(openssl dgst -sha256 index.html | sed 's/^.* //')"
- npm run hash

addons:
artifacts:
secret:
secure: K+WCWifkX+7AMZ73tspCU2/pS50tPYnH6DtZGQInoxSZHR44WO29aqF0l3kpmLv86We4FzD/hqt4zibOavvtV7+Fk9qRuwnFMfDcFaaneYbuQnKlvW5IRO0+PQkNKYkgxSK6RJISaclZ8D/ua/jjtFkuP7Cvnnfgs0HUEI/3mIn+EZfyzSvzLZBY0nM8hHcBwkdJheexIDxe6vv463g/eEOJDPQYjlgYyVCgchIXfW5UTeNoRkIJNe6UmjyNBWNFQMt/J0+dk/ryphj1o+tNpvHO5Jgh2UEPHTuTXvCFVk//+89QWyk8taAIql87+fEGlZ2wecUmVgjHpE0natpEmar5lExzAQN7YAgm8QMtxEKmOqWKebp9Ahp8Ws1QtuDDQJUPejkHBSYtkeA7OqDpMOFD5u4s6eentu/AJ9MOIsl5wW+ib7pHu+Q9zD/D9yxFH/G5VuJK0pqWmCvKShn+9zP8XE/dmhh+P80GBBGW4Q40r61g5D3/ShtP8Q/rwW07JG8v2AZXFMj6yezuKIkh7Vo/Q5gciuF7UKOAo5SH73HBOJwpFOPWP7A21Hu+0QggloCR3wD4QYKfvVwqK0EMVHrKzBjam0q4BGqisrTE1A4fo+LutTC1Juzd/D4tXdqM3wMjTss9SLIdCa7A+hQu9gckUMAkXcJVhV870QY9LEA=
bucket: stellarterm-build-output
key:
secure: C4xjYYkzvHRuy+0KiDL21/J4T39rClfZFFLYPI+i21TeL1pclkNSFZSyqLFk8ToMfp3tgVv8D9hbUu/Glxg0kyUSkrUAGYRahGMlZC8+cfP+WFiFUR5gAfCkQAr/sx+y8kRgMlMwzD3SwRqoDH42riGFvCv0f9MScPZVxTeQIkLri7yPoXcv1ZiEPt7nCL3B/mJmm7iPebuFzcYMNiITIggoOnOHq+V5lq8BMWB1Y1pK9d/RoVDFJVKgExJpLdUZyg5agq8h4OByXCFN6zWk4f0ombch0wt1liGDrrKK59J8rbS8L7aXrp5jJyy4/sHIhf7bziSmmA8k5nFJmyNtaVqWMv8osMwwYtVnAavOushKbabzxImAc9kaKbNb3R3sUiwqecKDoC2DDyYihyEZeKgrb5+37xTpYgcSLqZWm/aZHkgeM7pjmP58sAQ9VgCWzoGSnn12A9rBCD+sLRQ0Wqtfh5HmheiIELx4TN4a6TZpt4wDV5debza1nzV46DO6zuDYbQ3vO62LKS8xa5elpy+662QmuVyfuPe56eQnYI7r/hUTINspnfbbur4qRrzO+ZXgsc15vAf5P+Sop95C43ZcQo9lk2V8T+nsr4a7GWlM6zY+TZ8y9NIKJ4P4poXryCEdAcc6WQJdnzStoFyPGcTCIq8urhX9KFciyAroOLA=
paths:
- /home/travis/build/irisli/stellarterm/dist/index.html
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

5 changes: 1 addition & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Contributing to StellarTerm
StellarTerm is primarily written by and maintained by [Iris Li](https://iris.li/). If you would like to make a code contribution, please make a pull request and we can discuss further details on there.

## How to request inclusion in the Markets tab
If you would like your asset listed in StellarTerm, please send me an email at **stellarterm@iris.li**.
StellarTerm is maintained by Ultra Stellar, LLC. If you would like to make a code contribution, please make a pull request and we can discuss further details on there.

## License
The project is licensed under the [Apache-2.0 license](./LICENSE-2.0.txt). By contributing, you are agreeing to the terms in the project's [LICENSE file](./LICENSE-2.0.txt).
2 changes: 1 addition & 1 deletion LICENSE-2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2017 Iris Li
Copyright 2017 Ultra Stellar, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Travis CI status](https://travis-ci.org/irisli/stellarterm.svg?branch=master)](https://travis-ci.org/irisli/stellarterm)
[![Travis CI status](https://travis-ci.org/stellarterm/stellarterm.svg?branch=master)](https://travis-ci.org/stellarterm/stellarterm)

# StellarTerm ecosystem - [client](https://stellarterm.com/) | [api](https://github.com/irisli/stellarterm/tree/master/api) | [directory](https://github.com/irisli/stellarterm/blob/master/directory/)
# StellarTerm ecosystem - [client](https://stellarterm.com/) | [api](https://github.com/stellarterm/stellarterm/tree/master/api) | [directory](https://github.com/stellarterm/stellarterm/blob/master/directory/)
This StellarTerm monorepo consists of multiple projects built for the [Stellar network](https://www.stellar.org/) including a [trading client](https://stellarterm.com/). The projects are in this monorepo to enable faster development speed.

## Web Client
Expand All @@ -13,8 +13,8 @@ The API uses the [Serverless framework](https://serverless.com/) for deployment

It is currently under active development and is not yet finished. See it in action here: [https://api.stellarterm.com/](https://api.stellarterm.com/)

## [Directory](https://github.com/irisli/stellarterm/blob/master/directory/README.md)
StellarTerm maintains a manually curated directory file with a listing of well known anchors and assets on the Stellar network. For more information, see the [directory README](https://github.com/irisli/stellarterm/blob/master/directory/README.md).
## [Directory](https://github.com/stellarterm/stellarterm/blob/master/directory/README.md)
StellarTerm maintains a manually curated directory file with a listing of well known anchors and assets on the Stellar network. For more information, see the [directory README](https://github.com/stellarterm/stellarterm/blob/master/directory/README.md).

-------------------------------------------------------------------------------

Expand Down Expand Up @@ -50,7 +50,7 @@ node --version
### Environment Setup
```sh
# Clone the project
git clone https://github.com/irisli/stellarterm.git
git clone https://github.com/stellarterm/stellarterm.git
cd stellarterm

# Install the npm and bower dependencies
Expand All @@ -71,7 +71,7 @@ npm run production
```

## License
Products in the StellarTerm ecosystem is open source software and is licensed under the [Apache-2.0 license](https://github.com/irisli/stellarterm/blob/master/LICENSE-2.0.txt). Please understand the license carefully before using StellarTerm.
Products in the StellarTerm ecosystem is open source software and is licensed under the [Apache-2.0 license](https://github.com/stellarterm/stellarterm/blob/master/LICENSE-2.0.txt). Please understand the license carefully before using StellarTerm.

## Credits
- Started the project using the super helpful [react-gulp-browserify yeoman generator](https://github.com/randylien/generator-react-gulp-browserify)
2 changes: 2 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# package directories
node_modules
jspm_packages
package-lock.json


setEnvironment.sh
setStagingEnvironment.sh

# Serverless directories
.serverless
Expand Down
30 changes: 26 additions & 4 deletions api/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
if [ -z "$STELLARTERM_S3_BUCKET" ]; then
echo "Environment variable STELLARTERM_S3_BUCKET must be set. Take a look at setEnvironment.example.sh for an example."
echo "Run: source setEnvironment.sh"
printf "\033[1;31mERROR: \033[0;31mEnvironment variable STELLARTERM_S3_BUCKET must be set.\033[0;33m \nTake a look at setEnvironment.example.sh for an example.\n"
printf "Run: source setEnvironment.sh\033[0m\n"
exit 1
fi
if [ -z "$STELLARTERM_AWS_PROFILE" ]; then
echo "Environment variable STELLARTERM_AWS_PROFILE must be set. Take a look at setEnvironment.example.sh for an example."
echo "Run: source setEnvironment.sh"
printf "\033[1;31mERROR: \033[0;31mEnvironment variable STELLARTERM_AWS_PROFILE must be set.\033[0;33m Take a look at setEnvironment.example.sh for an example.\n"
echo "Run: source setEnvironment.sh\033[0m\n"
exit 1
fi

(cd ./../directory/ && ./checkBuild.sh)
if [ $? == 1 ]
then
exit 1
fi

export BRANCH="$(git branch | grep \* | cut -d ' ' -f2)"

if [ $BRANCH != "master" ] && [ $BRANCH != "staging" ]
then
printf "\033[1;31mERROR: \033[0;31mYou must be at staging or master branch.\033[0m\n"
exit 1
fi

if [ $BRANCH == "master" ]
then
BRANCH="dev"
fi

printf "\033[1;33mStarting API deploy\n"
printf "Stage for deploy is $BRANCH\033[0m\n"

serverless --aws-profile $STELLARTERM_AWS_PROFILE deploy
# serverless --aws-profile $STELLARTERM_AWS_PROFILE deploy function -f ticker
6 changes: 4 additions & 2 deletions api/functions/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ const PQueue = require('p-queue');
const queue = new PQueue({concurrency: 20});
const run = queue.add;

const { HORIZON_SERVER } = require('./horizon-server.constant');

const directory = require('../directory.json');

StellarSdk.Network.usePublicNetwork();

S = new StellarSdk.Server('https://horizon.stellar.org');
S = new StellarSdk.Server(HORIZON_SERVER);
StellarSdk.Network.usePublicNetwork();

function historyGenerator() {
Expand Down Expand Up @@ -167,7 +169,7 @@ function getLumenPrice() {
}

function getHorizonMain() {
return rp('https://horizon.stellar.org/')
return rp(HORIZON_SERVER)
.then(horizonMain => {
return JSON.parse(horizonMain);
})
Expand Down
3 changes: 3 additions & 0 deletions api/functions/horizon-server.constant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// const HORIZON_SERVER = 'https://horizon.stellar.org';
const HORIZON_SERVER = 'https://horizon.stellar.lobstr.co';
module.exports = { HORIZON_SERVER };
35 changes: 32 additions & 3 deletions api/functions/ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ const PQueue = require('p-queue');
const queue = new PQueue({concurrency: 20});
const run = queue.add;

const { HORIZON_SERVER } = require('./horizon-server.constant');

const directory = require('../directory.json');

Server = new StellarSdk.Server('https://horizon.stellar.org');
Server = new StellarSdk.Server(HORIZON_SERVER);
StellarSdk.Network.usePublicNetwork();

function medianOf3(a,b,c) {
Expand All @@ -27,15 +29,18 @@ function tickerGenerator() {
apiLicense: 'Apache-2.0',
},
};
const feeData = {};

let tickerPromise = Promise.resolve()
.then(() => fetchFeeData(feeData))
.then(() => phase1(ticker))
.then(() => loadAssets(ticker))
.then(() => phase3(ticker))
.then(() => phase4(ticker))
.then(() => {
return {
'v1/ticker.json': JSON.stringify(ticker, null, 2)
'v1/ticker.json': JSON.stringify(ticker),
'v1/feeData.json': JSON.stringify(feeData),
};
})

Expand Down Expand Up @@ -425,14 +430,38 @@ function getLumenPrice() {
}

function getHorizonMain() {
return rp('https://horizon.stellar.org/')
return rp(HORIZON_SERVER)
.then(horizonMainJson => {
let horizonMain = JSON.parse(horizonMainJson);
console.log('Phase 1: Horizon at ledger #' + horizonMain.core_latest_ledger);
return horizonMain;
})
}

function fetchFeeData(feeData) {
console.log('Starting to load fee stats');
return rp('https://horizon.stellar.org/fee_stats')
.then((response) => {
const feeStats = JSON.parse(response);
const {
ledger_capacity_usage: ledgerCapacityUsage,
min_accepted_fee: minAcceptedFee,
p10_accepted_fee: p10AcceptedFee,
} = feeStats;

if (ledgerCapacityUsage >= 0.8) {
const feeValue = Math.max(minAcceptedFee * 1.5, p10AcceptedFee);
feeData.fee_value = Math.min(feeValue, 10000);
} else {
feeData.fee_value = 100;
}
console.log('Fee stats loaded');
})
.catch(() => {
console.log('Unable to load fee stats!');
});
}

function getStellarTermDotComVersion() {
console.log('Phase 1: Fetching stellarterm.com')
return rp('https://stellarterm.com/')
Expand Down
3 changes: 2 additions & 1 deletion api/functions/utils/testWalker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ const _ = require('lodash');
const StellarSdk = require('stellar-sdk');
const directory = require('../../directory.json');
const tradeWalker = require('./tradeWalker');
const { HORIZON_SERVER } = require('../horizon-server.constant');

Server = new StellarSdk.Server('https://horizon.stellar.org');
Server = new StellarSdk.Server(HORIZON_SERVER);
StellarSdk.Network.usePublicNetwork();


Expand Down
2 changes: 1 addition & 1 deletion api/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports.ticker = (event, context, callback) => {
Body: contents,
ContentType: 'application/json',
ACL: 'public-read',
CacheControl: 'public, max-age=5',
CacheControl: 'public, max-age=50',
}).promise()
}))
})
Expand Down
2 changes: 1 addition & 1 deletion api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ custom:
provider:
name: aws
runtime: nodejs6.10
stage: dev
stage: ${env:BRANCH}
region: us-west-2
timeout: 180
memorySize: 256
Expand Down