forked from sora-xor/polkaswap-exchange-web
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from soramitsu/adar-dev
Adar dev
- Loading branch information
Showing
158 changed files
with
4,011 additions
and
1,974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4c5953fe-147b-468c-a916-4c6a8aadfbc8=9db69079be0a7f4f6ed6e2a1fd065f6077144011c52fdb544f891b52863fd5ef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// RECIPIENT_NAME // Name of the recipient;// WALLET_ADDRESS // wallet address in SORA network;// AMOUNT // Amount to be received recipient should receive. Amounts can be expressed either in Dollars or in target tokens. If you want the recipient to receive tokens equivalent to the specified Dollar value, leave IS_AMOUNT_IN_TOKENS parameter empty. If you want to send a specific number of tokens to the recipient, set IS_AMOUNT_IN_TOKENS parameter to true.;// TARGET_TOKEN // The token that the recipient will receive (eg XOR, XSTUSD, etc);// IS_AMOUNT_IN_TOKENS // optional parameter, if true - the AMOUNT parameter becomes the value of tokens sent | ||
// RECIPIENT_NAME // Name of the recipient;// WALLET_ADDRESS // wallet address in SORA network;// AMOUNT // Amount to be received recipient should receive. Amounts can be expressed either in Dollars or in target tokens. If you want the recipient to receive tokens equivalent to the specified Dollar value, leave IS_AMOUNT_IN_TOKENS parameter empty. If you want to send a specific number of tokens to the recipient, set IS_AMOUNT_IN_TOKENS parameter to true.;// TARGET_TOKEN // The token that the recipient will receive (eg XOR, XSTUSD, etc);// IS_AMOUNT_IN_TOKENS // optional parameter, if true - the AMOUNT parameter becomes the value of tokens sent.; // USE_SWAPLESS_TRANSFER // an optional parameter. If true, for this transaction, ADAR will use your existing tokens (your TARGET_TOKEN balance) as the input token (regardless of the input token you select in the wizard) and send the specified amount to the recipient without performing a swap operation. | ||
Melanie Wilson (the recipient will get 2000 XOR);5FcNgN7kg1C7sZZpiQ2GB1PZvD5JchNVKK6EqtUqJtmjrKJJ;2000;XOR;TRUE | ||
Charles Scott (the recipient will get $3000 worth of PSWAP tokens);cnWX1RR9W3iZXtrL5W6WjJoDsWWZHLDCDCMkmWyirHAZJyVu8;3000;PSWAP; | ||
Charles Scott (the recipient will get $3000 worth of PSWAP tokens);cnWX1RR9W3iZXtrL5W6WjJoDsWWZHLDCDCMkmWyirHAZJyVu8;3000;PSWAP; | ||
George Tyler (swapless, the recipient will get 2000 XOR);5FcNgN7kg1C7sZZpiQ2GB1PZvD5JchNVKK6EqtUqJtmjrKJJ;2000;XOR;TRUE;TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
[ | ||
{ | ||
"title": "JOIN AIRDROP", | ||
"img": "/marketing/synths.png", | ||
"backgroundColor": "var(--s-color-theme-accent)", | ||
"link": "https://gleam.io/zHQmD/polkaswap-34000-xst-airdrop-campaign" | ||
}, | ||
{ | ||
"title": "GET SORA CARD", | ||
"img": "/marketing/card.png", | ||
"backgroundColor": "#F8087B", | ||
"link": "/#/card" | ||
}, | ||
{ | ||
"title": "CONNECT WITH GOOGLE", | ||
"img": "/marketing/google.png", | ||
"link": "https://medium.com/polkaswap/how-to-use-connect-with-google-on-polkawap-a4f9ea2cd2f2" | ||
}, | ||
{ | ||
"title": "LEARN ABOUT SYNTHETICS", | ||
"img": "/marketing/synths.png", | ||
"backgroundColor": "var(--s-color-theme-accent)", | ||
"link": "https://medium.com/polkaswap/unveiling-synthetic-assets-a-game-changer-in-the-financial-landscape-1720e5858422" | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<template> | ||
<div class="statistics-dialog"> | ||
<s-scrollbar class="statistics-dialog__scrollbar"> | ||
<div class="statistics-dialog__group"> | ||
<span class="statistics-dialog__group-title">{{ t('footer.statistics.dialog.indexer') }}</span> | ||
<s-radio-group v-model="indexerType" class="statistics-dialog__block s-flex"> | ||
<s-radio | ||
v-for="indexer in indexers" | ||
:key="indexer.type" | ||
:label="indexer.type" | ||
:value="indexer.type" | ||
:disabled="!indexer.endpoint" | ||
size="medium" | ||
class="statistics-dialog__item s-flex" | ||
> | ||
<div class="service-item s-flex"> | ||
<div class="service-item__label s-flex"> | ||
<div class="service-item__name">{{ indexer.name }}</div> | ||
<div v-if="indexer.endpoint" class="service-item__endpoint">{{ indexer.endpoint }}</div> | ||
</div> | ||
<div class="service-item__status" :class="indexer.online ? 'success' : 'error'"> | ||
{{ indexer.online ? TranslationConsts.online : TranslationConsts.offline }} | ||
</div> | ||
</div> | ||
</s-radio> | ||
</s-radio-group> | ||
<s-divider /> | ||
<div class="statistics-dialog__group"> | ||
<div class="statistics-dialog__item"> | ||
<div class="switcher"> | ||
<s-switch disabled :value="false" /> | ||
<span>{{ t('footer.statistics.dialog.useCeres') }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</s-scrollbar> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { IndexerType } from '@soramitsu/soraneo-wallet-web/lib/consts'; | ||
import { Component, Mixins, Prop, ModelSync } from 'vue-property-decorator'; | ||
import TranslationMixin from '@/components/mixins/TranslationMixin'; | ||
import type { Indexer } from '@/types/indexers'; | ||
@Component | ||
export default class SelectIndexer extends Mixins(TranslationMixin) { | ||
@Prop({ default: () => [], type: Array }) indexers!: Array<Indexer>; | ||
@ModelSync('value', 'input', { type: String }) readonly indexerType!: IndexerType; | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.statistics-dialog__item { | ||
&.el-radio { | ||
&.s-medium { | ||
height: initial; | ||
} | ||
.el-radio__label { | ||
flex: 1; | ||
} | ||
} | ||
} | ||
</style> | ||
|
||
<style lang="scss" scoped> | ||
$statistics-border-radius: 8px; | ||
.statistics-dialog { | ||
&__group { | ||
&-title { | ||
font-weight: 600; | ||
letter-spacing: var(--s-letter-spacing-small); | ||
line-height: var(--s-line-height-small); | ||
font-size: var(--s-font-size-small); | ||
} | ||
} | ||
&__block { | ||
flex-direction: column; | ||
margin-top: $inner-spacing-small; | ||
} | ||
&__item { | ||
margin-right: 0; | ||
align-items: center; | ||
padding: $inner-spacing-small $inner-spacing-big; | ||
white-space: normal; | ||
} | ||
} | ||
.service-item { | ||
align-items: center; | ||
justify-content: space-between; | ||
flex-wrap: nowrap; | ||
letter-spacing: var(--s-letter-spacing-small); | ||
line-height: var(--s-line-height-medium); | ||
&__label { | ||
flex-direction: column; | ||
flex: 1; | ||
margin-right: $inner-spacing-mini; | ||
} | ||
&__name { | ||
color: var(--s-color-base-content-primary); | ||
font-size: var(--s-font-size-medium); | ||
font-weight: 600; | ||
} | ||
&__endpoint { | ||
background: var(--s-color-base-background); | ||
padding: 6px; | ||
margin-top: 6px; | ||
border-radius: $statistics-border-radius; | ||
color: var(--s-color-base-content-secondary); | ||
font-size: var(--s-font-size-mini); | ||
font-weight: 300; | ||
} | ||
&__status { | ||
$status-classes: 'error', 'success'; | ||
padding: 2px 6px; | ||
border-radius: $statistics-border-radius; | ||
font-weight: 400; | ||
font-size: var(--s-font-size-mini); | ||
letter-spacing: var(--s-letter-spacing-small); | ||
@each $status in $status-classes { | ||
&.#{$status} { | ||
color: var(--s-color-status-#{$status}); | ||
background-color: var(--s-color-status-#{$status}-background); | ||
[design-system-theme='dark'] & { | ||
--s-color-status-#{$status}: var(--s-color-base-on-accent); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
.switcher { | ||
display: flex; | ||
align-items: center; | ||
& > span { | ||
margin-left: $inner-spacing-small; | ||
color: var(--s-color-base-content-primary); | ||
font-size: var(--s-font-size-medium); | ||
font-weight: 600; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { WALLET_CONSTS } from '@soramitsu/soraneo-wallet-web'; | ||
|
||
const { IndexerType } = WALLET_CONSTS; | ||
|
||
export const IndexerModel = { | ||
name: '', | ||
type: IndexerType.SUBQUERY, | ||
address: '', | ||
}; |
Oops, something went wrong.