Skip to content

Commit

Permalink
Swap (#50)
Browse files Browse the repository at this point in the history
cross chain swap
  • Loading branch information
beichenzhidi authored Jan 8, 2021
1 parent a0e1822 commit 065c213
Show file tree
Hide file tree
Showing 56 changed files with 6,707 additions and 535 deletions.
1,901 changes: 1,676 additions & 225 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"postinstall": "node patch.js",
"ng": "ng",
"start": "ng serve",
"start": "ng serve --open --port=9999",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
Expand Down Expand Up @@ -57,6 +57,7 @@
"electron-log": "^3.0.9",
"electron-updater": "^4.3.1",
"electron-util": "^0.11.0",
"ethers": "^5.0.23",
"find-process": "^1.4.3",
"fs-extra": "^8.1.0",
"inly": "^4.0.5",
Expand All @@ -75,6 +76,7 @@
"to-executable-name": "^2.0.0",
"tslib": "^1.13.0",
"uuid": "^3.4.0",
"web3": "^1.3.0",
"xhr2": "^0.1.4",
"zone.js": "^0.10.3"
},
Expand Down
5 changes: 5 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import { RepresentationRewardComponent } from './components/qlc/representation/r
import { MiningRewardComponent } from './components/qlc/mining/mining-reward/mining-reward.component';
import { StakingDashboardComponent } from './components/staking-dashboard/staking-dashboard.component';
import { PortalComponent } from './components/portal/portal.component';
import { CcswapComponent } from './components/ccswap/ccswap.component';
import { Erc20WalletComponent } from './components/erc20/erc20-wallet/erc20-wallet.component';

const routes: Routes = [
{ path: '', component: HomeComponent },
Expand Down Expand Up @@ -77,6 +79,8 @@ const routes: Routes = [
{ path: 'wallets/neo/import', component: NeoImportComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'wallets/neo/settings', component: NeoSettingsComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'wallets/neo/:wallet', component: MyneowalletComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'wallets/erc20/:address', component: Erc20WalletComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'wallets/erc20', component: Erc20WalletComponent, canActivate: [CanActivateRouteGuard] },
//{ path: 'wallets/chainx/account/create', component: ChainxCreateComponent, canActivate: [CanActivateRouteGuard] },
//{ path: 'wallets/chainx/account/:address', component: ChainxAccountComponent, canActivate: [CanActivateRouteGuard] },
//{ path: 'wallets/chainx/send', component: ChainxSendComponent, canActivate: [CanActivateRouteGuard] },
Expand All @@ -85,6 +89,7 @@ const routes: Routes = [
{ path: 'staking/qlc', component: MystakingsComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'staking/qlc/create', component: StakingCreateComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'staking/qlc/revoke', component: StakingRevokeComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'swap', component: CcswapComponent, canActivate: [CanActivateRouteGuard] },
//{ path: 'staking/chainx', component: ChainxStakingComponent, canActivate: [CanActivateRouteGuard] },
//{ path: 'staking/chainx/invoke', component: ChainxStakingComponent, canActivate: [CanActivateRouteGuard] },
{ path: 'mining', component: MiningComponent, canActivate: [CanActivateRouteGuard] },
Expand Down
6 changes: 5 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ import { UserSubmenuComponent } from './components/user-dashboard/user-submenu/u
import { StakingDashboardComponent } from './components/staking-dashboard/staking-dashboard.component';
import { SqueezeNumberPipe } from './pipes/squeeze-number.pipe';
import { PortalComponent } from './components/portal/portal.component';
import { CcswapComponent } from './components/ccswap/ccswap.component';
import { Erc20WalletComponent } from './components/erc20/erc20-wallet/erc20-wallet.component';

export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
Expand Down Expand Up @@ -139,7 +141,9 @@ export function createTranslateLoader(http: HttpClient) {
UserSubmenuComponent,
StakingDashboardComponent,
SqueezeNumberPipe,
PortalComponent
PortalComponent,
CcswapComponent,
Erc20WalletComponent
],
imports: [
BrowserModule,
Expand Down
Loading

0 comments on commit 065c213

Please sign in to comment.