dandao2022 / swapbot Goto Github PK
View Code? Open in Web Editor NEWuniswap telegram bot, web3js, ethereum,ethscriptions
uniswap telegram bot, web3js, ethereum,ethscriptions
Could you please include them? They are unverified on etherscan too so can't find source..
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.