W33 — система криптовалютного эквайринга, состоящая из двух основных компонентов:
- Backend (w33-server): NestJS REST API для обработки криптовалютных транзакций
- Frontend (w33-client): Vue 3 веб-приложение для управления проектами и кошельками
W33 — система криптовалютного эквайринга, состоящая из двух основных компонентов:
| import { Body, Controller, Get, Headers, HttpException, HttpStatus, Post, Query, Req, Res, UnauthorizedException, UseGuards, UseInterceptors } from "@nestjs/common"; | |
| import { ApiBody, ApiExcludeEndpoint, ApiHeader, ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger"; | |
| import { Response } from "express"; | |
| import { Tags } from "../../swagger/tags.enum"; | |
| import { ApiIntercepter } from "../../intercepters/api.intercepter"; | |
| import { AppleOAuthGuard } from "@app/shared/guards/apple-0auth.guard"; | |
| import { Public } from "@app/shared/guards"; | |
| import { AppleLoginDto } from "@app/shared/dto/user/apple-login.dto"; | |
| import { ExistingUserDTO, LoginResponse, NewUserDTO } from "@app/shared/dto"; | |
| import { UserEntity, UserRequest } from "@app/shared/interfaces/user"; |
| 1.detach | |
| dmesg -c | |
| nvme detach-ns /dev/nvme0 -n 1 -c 0 | |
| nvme delete-ns /dev/nvme0 -n 1 | |
| nvme reset /dev/nvme0 | |
| 2.创建 | |
| **#1953125000 = 1,000,000,000,000/512 = 1,953,125,000 (1TB)** | |
| nvme create-ns /dev/nvme0 -s 976562500 -c 976562500 -f 0 -d 0 -m 0 | |
| nvme attach-ns /dev/nvme0 -n 1 -c 0 |
| BSC 0x99d364e98cdc3c9fa9dadb14756061a29c2eaddd | |
| ETH 0xb1F8e55c7f64D203C1400B9D8555d050F94aDF39 | |
| TRX TYPACdASdAe4ZjcACwHscmqy6KCssP2jDt |
| export default function useWrapCallback( | |
| inputCurrency: Currency | undefined, | |
| outputCurrency: Currency | undefined, | |
| typedValue: string | undefined | |
| ): { wrapType: WrapType; execute?: undefined | (() => Promise<void>); inputError?: string } { | |
| const { chainId, account } = useActiveWeb3React() | |
| const wethContract = useWETHContract() | |
| const balance = useCurrencyBalance(account ?? undefined, inputCurrency) | |
| // we can always parse the amount typed as the input currency, since wrapping is 1:1 | |
| const inputAmount = useMemo(() => tryParseAmount(typedValue, inputCurrency), [inputCurrency, typedValue]) |
| // File: contracts/EternalStorage.sol | |
| // Initial code from Roman Storm Multi Sender | |
| // To Use this Dapp: https://bulktokensending.github.io/bulktokensending | |
| pragma solidity ^0.6.6; | |
| import 'VonderToken.sol'; | |
| /** |
| const ethers = require(`ethers`) | |
| const { ChainId, Token, TokenAmount, Fetcher, Pair, Route, Trade, TradeType, Percent } = | |
| require(`@pancakeswap-libs/sdk`); | |
| const Web3 = require(`web3`); | |
| const { JsonRpcProvider } = require("@ethersproject/providers"); | |
| require(“dotenv”).config() | |
| const provider = new JsonRpcProvider(`https://bsc-dataseed1.binance.org/`); | |
| const web3 = new Web3(`wss://apis.ankr.com/wss/c40792ffe3514537be9fb4109b32d257/946dd909d324e5a6caa2b72ba75c5799/binance/full/main`); |
| /*** Usage | |
| const HexAddress = require("./utils/HexAddress"); | |
| let base58 = HexAddress.toBase58(res.result.contributor); | |
| */ | |
| const jsSHA = require("jssha"); | |
| const BASE = 58; | |
| const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; |