This file contains hidden or 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
| export const SURFLUX_API_URL = process.env.SURFLUX_API_URL || 'http://localhost:8000'; | |
| export const SURFLUX_API_KEY = process.env.SURFLUX_API_KEY || 'test_api_key'; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Surflux DeepBook Trading Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lightweight-charts.standalone.production.js"></script> | |
| <script> | |
| tailwind.config = { |
This file contains hidden or 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
| fn verify_signature( | |
| &self, | |
| caller: &ManagedAddress, | |
| url: &ManagedBuffer, | |
| signature: &Signature<Self::Api>, | |
| ) { | |
| let mut data = ManagedBuffer::new(); | |
| data.append(caller.as_managed_buffer()); | |
| data.append(url); |
This file contains hidden or 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
| import { BadRequestException, Body, Controller, Post, UseGuards } from '@nestjs/common'; | |
| import { ApiTags } from '@nestjs/swagger'; | |
| import { CachingService } from '../../common/caching/caching.service'; | |
| import { randomBytes } from 'crypto'; | |
| import { Constants } from '../../utils/constants'; | |
| import { JwtService } from '@nestjs/jwt'; | |
| import { LoginDto } from './dto/login.dto'; | |
| import { Address, SignableMessage, UserPublicKey } from '@elrondnetwork/erdjs/out'; | |
| import { ThrottlerBehindProxyGuard } from '../../common/throttle/throttle.guard'; |