Coder Social home page Coder Social logo

dandao2022 / swapbot Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 14.0 5.08 MB

uniswap telegram bot, web3js, ethereum,ethscriptions

TypeScript 96.48% JavaScript 0.45% Solidity 3.07%
blockchain ethereum telegram uniswap web3 telegram-bot uniswap-bot ethscriptions

swapbot's People

Contributors

dandao2022 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swapbot's Issues

Menu buttons don't work

Although there is no proper installation guide I managed to set up the bot. But buttons don't work on the bot. Only commands (/menu, /bindTopChannel, /bindChannel) work. Additionally when i paste and send contract to the bot, it doesn't respond this message, too.

The example code cannot run properly

Code example:

import { fastGetPrice } from "dandao";
async function main (): Promise<void>
{

    let price = await fastGetPrice( "0x6B175474E89094C44Da98b954EedeAC495271d0F", 1 );
    console.log( price );

}

main().then();

Issue:

Debugger listening on ws://127.0.0.1:53448/d55e24e9-d97c-41c3-8fcd-0d428422a340
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
/root/apps/tgbot/node_modules/dandao/build/main.js:8373
                if (block?.transactions?.length) {
                          ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Object.require.extensions.<computed> [as .js] (/root/apps/tgbot/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/root/apps/tgbot/src/btc1mm.ts:4:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
Waiting for the debugger to disconnect...

Environment: Ubuntu 22.04 x64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.