-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support ahUSDT on mainnet and PINK (#18)
* Support ahUSDT on mainnet and PINK * Add dev deploy * Update website metadata * Improve no-data style * Add gap between chain options * Fix fee asset id
- Loading branch information
1 parent
e7838a5
commit 462174c
Showing
28 changed files
with
366 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy development | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-package: | ||
name: Deploy package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: darwinia-network/devops | ||
path: .github | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy app | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel_group: itering | ||
preview_output: true | ||
alias_domain: "crosschain-dev" | ||
project_name: "crosschain-ui" | ||
script_run: false | ||
dist_path: . | ||
enable_notify_slack: true | ||
slack_channel: darwinia-apps | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ body { | |
|
||
@layer components { | ||
.border-radius { | ||
@apply rounded-lg; | ||
@apply rounded-2xl; | ||
} | ||
|
||
.app-header { | ||
|
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
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
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,75 @@ | ||
import { ChainConfig, ChainID, ParachainID, WalletID } from "@/types"; | ||
import { bnToBn } from "@polkadot/util"; | ||
|
||
export const assethubPolkadotChain: ChainConfig = { | ||
/** | ||
* Chain | ||
*/ | ||
id: ChainID.INVALID, | ||
network: "assethub-polkadot", | ||
name: "Polkadot AssetHub", | ||
nativeCurrency: { | ||
name: "DOT", | ||
symbol: "DOT", | ||
decimals: 10, | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: [], | ||
webSocket: [], | ||
}, | ||
public: { | ||
http: [], | ||
webSocket: [], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: "Subscan", | ||
url: "https://assethub-polkadot.subscan.io", | ||
}, | ||
}, | ||
|
||
/** | ||
* Custom | ||
*/ | ||
logo: "asset-hub.svg", | ||
assets: [ | ||
{ | ||
icon: "usdt.svg", | ||
id: 1984, | ||
name: "Tether USD", | ||
symbol: "USDT", | ||
decimals: 6, | ||
cross: [ | ||
{ | ||
isReserve: true, | ||
target: { network: "darwinia", symbol: "ahUSDT" }, | ||
fee: { amount: bnToBn(20000), asset: { id: 1984, decimals: 6, symbol: "USDT", native: true } }, // 0.02 USDT | ||
}, | ||
], | ||
}, | ||
{ | ||
icon: "pink.jpg", | ||
id: 23, | ||
name: "PINK", | ||
symbol: "PINK", | ||
decimals: 10, | ||
cross: [ | ||
{ | ||
isReserve: true, | ||
target: { network: "darwinia", symbol: "ahPINK" }, | ||
fee: { amount: bnToBn(20000), asset: { id: 1984, decimals: 6, symbol: "USDT", native: false } }, // 0.02 USDT | ||
}, | ||
], | ||
}, | ||
], | ||
wallets: [WalletID.TALISMAN], | ||
addressType: "substrate", | ||
|
||
/** | ||
* Substrate | ||
*/ | ||
endpoint: "wss://polkadot-asset-hub-rpc.polkadot.io", | ||
parachainId: ParachainID.ASSETHUB_POLKADOT, | ||
}; |
Oops, something went wrong.