Git Product home page Git Product logo

coinlib's People

Contributors

caleb-bitaccess avatar dependabot[bot] avatar dwolfgram avatar dylanseago avatar dzdidi avatar jordan-bravo avatar jordan-bravo-bd avatar lexy212 avatar moeadham 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coinlib's Issues

TypeError: coinPayments.forAsset is not a function

The coinPayments object doesn't seem to have a forAsset function as shown in the documentation found in the README.md file and on NPM.

const coinPayments = new CoinPayments({
    seed: 'my key'
  });

  const bchPayments = coinPayments.forAsset('BCH');
  await bchPayments.init();

This is the code I'm using, and it simply returns the error TypeError: coinPayments.forAsset is not a function. I'm using version 4.5.1.

Send from all addresses in a single transaction

Hi,

I am able to create the xpub, and create as many addresses as I want, but what I want to do is to create a transaction with the amount from all the addresses in a single transfer.. How can I do that?

This creates a transaction from the address with ID 1234 only:
let unsignedTx = await tronPayments.createSweepTransaction(1234, 12345)

Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js': Cannot find module 'eslint/use-at-your-own-risk'

Hello
I downloaded and installed the project with npm i
Node version (node -v) : 12.14.1

And when I run npm run build I get this error:
npm run build

@bitaccess/[email protected] prebuild /Users/luis/Documents/Personal/cumbi/coinlib
npm run lint && lerna run --parallel prebuild

@bitaccess/[email protected] lint /Users/luis/Documents/Personal/cumbi/coinlib
bin/find-bad-imports.sh && eslint packages//src packages//test --ext .ts,.js

(node:70122) Warning: require() of ES modules is not supported.
require() of /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/universal.js from /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/eslint/lib/linter/linter.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename universal.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/package.json.

Oops! Something went wrong! :(

ESLint: 8.21.0

Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js': Cannot find module 'eslint/use-at-your-own-risk'
Require stack:

  • /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js
  • /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js
  • /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
  • /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
  • /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
    Referenced from: /Users/luis/Documents/Personal/cumbi/coinlib/.eslintrc.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js:34:5
    at Object. (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js:5:60)
    at Module._compile (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
    at Module.load (internal/modules/cjs/loader.js:811:32)
    at Function.Module._load (internal/modules/cjs/loader.js:723:14)

How can I solve it?

build docker file

can update use dockerFile. also test.js for call function. so we can test with easy

bugs

npm install

Install dependencies for packages and link them together (done by lerna)

npm run bs

Execute tests (done by Jest)

npm run test

use this method

pm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node-gyp rebuild
npm ERR! npm ERR! make: Entering directory '/root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1/build'
npm ERR! npm ERR! CXX(target) Release/obj.target/secp256k1/native/addon.o
npm ERR! npm ERR! make: Leaving directory '/root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1/build'
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using [email protected]

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.