GithubHelp home page GithubHelp logo

aurora-is-near / aurora-cli Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 6.0 428 KB

Aurora Engine command-line interface (CLI).

Home Page: https://aurora-is-near.github.io/aurora-cli/

License: Creative Commons Zero v1.0 Universal

JavaScript 98.14% Makefile 1.86%

aurora-cli's People

Contributors

0x3bfc avatar artob avatar birchmd avatar frankbraun avatar luciotato avatar pustovalov avatar spilin avatar strokovok 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

Watchers

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

aurora-cli's Issues

`aurora install` seems to be broken

If I just install aurora-cli with npm install aurora-is-near/aurora-cli on a system with no ~/near_modules directory and run the commands as described in Deploying the EVM with the CLI I get the following error:

$ aurora install --chain 1313161556 --owner test.near release.wasm
/home/admin/node_modules/borsh/lib/index.js:261
        throw new BorshError(`Class ${obj.constructor.name} is missing in schema`);
              ^

BorshError: Class InitCallArgs is missing in schema
    at serializeStruct (/home/admin/node_modules/borsh/lib/index.js:261:15)
    at Object.serialize (/home/admin/node_modules/borsh/lib/index.js:287:5)
    at InitCallArgs.encode (file:///home/admin/node_modules/@aurora-is-near/engine/lib/schema.js:6:37)
    at file:///home/admin/node_modules/@aurora-is-near/engine/lib/engine.js:76:166
    at Engine.promiseAndThen (file:///home/admin/node_modules/@aurora-is-near/engine/lib/engine.js:84:26)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async Engine.initialize (file:///home/admin/node_modules/@aurora-is-near/engine/lib/engine.js:76:20)
    at async Command.<anonymous> (file:///home/admin/node_modules/@aurora-is-near/cli/lib/aurora.js:29:33) {
  fieldPath: [],
  originalMessage: 'Class InitCallArgs is missing in schema'
}

Can't install aurora-cli via npm 7.*

Attempts to run npm install -g aurora-is-near/aurora-cli with and without sudo are not successful if using nodejs15/16+npm7.*
It only works when using nodejs14+npm6.*

Is aurora-cli supposed to work with 7.* npm versions?

npm install -g aurora-is-near/aurora-cli ERROR

root@cfb95a1aec96:/usr/local/lib/node_modules# npm install -g aurora-is-near/aurora-cli
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar ENOENT: Cannot cd into '/usr/local/lib/node_modules/@auroraisnear/cli/node_modules/@aurora-is-near/engine'
npm WARN tarball tarball data for @aurora-is-near/engine@git+ssh://[email protected]/aurora-is-near/aurora.js.git#46df44a17a77a7009acad8c1f920da0c92068378 (null) seems to be corrupted. Trying again.
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar TAR_ENTRY_INFO stripping / from absolute path
npm WARN tar ENOENT: Cannot cd into '/usr/local/lib/node_modules/@auroraisnear/cli/node_modules/@aurora-is-near/engine'
npm WARN tarball tarball data for @aurora-is-near/engine@git+ssh://[email protected]/aurora-is-near/aurora.js.git#46df44a17a77a7009acad8c1f920da0c92068378 (null) seems to be corrupted. Trying again.
npm ERR! code ENOENT
npm ERR! path /usr/local/lib/node_modules/@auroraisnear/cli/node_modules/@aurora-is-near/engine
npm ERR! enoent ENOENT: Cannot cd into '/usr/local/lib/node_modules/@auroraisnear/cli/node_modules/@aurora-is-near/engine'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-14T07_34_32_360Z-debug.log
root@cfb95a1aec96:/usr/local/lib/node_modules# ls
@aurora-is-near  near-cli  yarn

ๅ›พ็‰‡

ReferenceError: require is not defined in ES module scope

After recent update aurora command fails:

const { Table } = require('console-table-printer');
                  ^
ReferenceError: require is not defined in ES module scope, you can use import instead

aurora.js file is autogenerated, so probably replacing require with import manually doesn't make sense.

Using Rainbow bridge programatically

My understanding of Rainbow Bridge is that eth token in solidity are bridged as near-wrapped-eth-token written in rust.
Is there a way to programaticlly call the near-wrapped-eth-token interfaces/functions from a 3rd party solidity contract running on Aurora.

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.