Giter Site home page Giter Site logo

joe-sdk's Introduction

Trader Joe SDK

This repo contains tools for developing with TraderJoe XYZ.

Running

This project uses standard npm and yarn workflows.

Install dependencies

yarn

Compile

yarn build

Installation

This project is available as an npm package. Add to your project with npm install @traderjoe-xyz/sdk

Attribution

This code was adapted from this Uniswap repo: uniswap-sdk.

joe-sdk's People

Contributors

0xmurloc avatar cryptofish7 avatar hruday11 avatar intro0000 avatar jo-oladeji avatar mathieu-be avatar max-3-7 avatar xir0dev 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

joe-sdk's Issues

Only a stupid question...

I just tried to get token data from "@traderjoe-xyz/sdk"
When I tried using Fetcher.fetchTokenData(ChainId.AVALANCHE, Token1); it shows the following error:

"Unsupported getDefaultProvider network"

Were you able to help me how I can fix this issue?

I read source code of "joe-sdk" and I can see it's backed by @ethersproject
and the problem I found is it does not support Avalanche.

Any help/advice is appreciated!

Exemple of end to end Transaction ?

Hi guys ! Love your projet !

Im a BigDataEngineer with ok knowledge on crypto tx (if done via DEX , CEX...) but very basic knowledge on crypto tx on the "Development" and "Api" side.

Your code is very clean and understandable, but i wondered if one of you guys could lead me to the "Big Steps" to perform a swap programmaticaly using your API. If you have a snippet it would be amazing !

In this use case i would be more interessed in speed than in fees optimisations. For this mater, if validation of the transaction could be done programmaticaly aswell (via private key ?) I would be super interested too !

Thanks a lot in advance guys !

Raphael

Malware in scrypt-shim dependency used here.

Security Threat

In the current verison of Trader Joe sdk there is a dependency called @openzeppelin/[email protected] which is no longer being developed and needs to be upgraded urgently. The reason is that it has dependencies that result in the installation of scrypt-shim@github:web3-js/scrypt-shim . This package contains malicious code and presents a high risk security threat and should be removed as soon as possible.
scrypt-shim : npmjs has flagged this as well.

How can I use the npm module <@traderjoe-xyz/sdk>

I just installed node_module @traderjoe-xyz/sdk using npm i @traderjoe-xyz/sdk to use it in my node.js project.
But when I tried to import it in my code, I showed an error:

node:internal/modules/cjs/loader:361
      throw err;
      ^

Error: Cannot find module '/home/<USER-NAME>/Desktop/projects/<PROJECT-NAME>/node_modules/@traderjoe-xyz/sdk/dist/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:353:19)
    at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/<USER-NAME>/Desktop/projects/<PROJECT-NAME>/<SUBDIRECTORIES...>/traderjoe.js:1:70)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/<USER-NAME>/Desktop/projects/<PROJECT-NAME>/node_modules/@traderjoe-xyz/sdk/package.json',
  requestPath: '@traderjoe-xyz/sdk'
}

I checked the module directory inside node_modules folder, but it didn't have dist/index.js file.

Can anyone tell me how can I overcome this issue?

Any advice/help is appreciated!

Long story short, I WANNA USE TRADERJOE-XYZ/SDK IN MY NODE.JS PROJECT

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.