Giter VIP home page Giter VIP logo

epirus-cli's People

Contributors

alexandrour avatar antonydenyer avatar cfelde avatar conor10 avatar eepstein avatar iikirilov avatar josh-richardson avatar puneetha17 avatar rach-id avatar snazha-blkio avatar xaviarias avatar yuriymyronovych avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

epirus-cli's Issues

Showing java.lang.OutOfMemoryError: Java heap space in windows

do i miss any settings or configuration ?

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.bouncycastle.crypto.generators.SCrypt.SMix(Unknown Source)
at org.bouncycastle.crypto.generators.SCrypt.MFcrypt(Unknown Source)
at org.bouncycastle.crypto.generators.SCrypt.generate(Unknown Source)
at org.web3j.crypto.Wallet.generateDerivedScryptKey(Wallet.java:145)
at org.web3j.crypto.Wallet.create(Wallet.java:80)
at org.web3j.crypto.Wallet.createStandard(Wallet.java:98)
at org.web3j.crypto.WalletUtils.generateWalletFile(WalletUtils.java:81)
at org.web3j.crypto.WalletUtils.generateNewWalletFile(WalletUtils.java:72)
at org.web3j.crypto.WalletUtils.generateFullNewWalletFile(WalletUtils.java:50)
at org.web3j.crypto.WalletUtils.generateNewWalletFile(WalletUtils.java:63)
at io.epirus.console.project.wallet.ProjectWallet.(ProjectWallet.java:41)
at io.epirus.console.account.AccountUtils.accountDefaultWalletInit(AccountUtils.java:47)
at io.epirus.console.project.InteractiveOptions.createWallet(InteractiveOptions.java:104)
at io.epirus.console.EpirusCommand.maybeCreateDefaultWallet(EpirusCommand.java:127)
at io.epirus.console.EpirusCommand.parse(EpirusCommand.java:110)
at io.epirus.console.Epirus.main(Epirus.java:17)

Epirus got stuck at generating project

I was trying to generate a project from a .abi file. But it got stuck here:
image

I saw that the project structure had been generated. But the Web3test.java file contained only the main() method.
image

I used the following command and the .abi is attached.

epirus import -n web3test -p com.web3test -s stableswap.abi --java

stableswap.abi.zip

jstack output:
epirus_jstack.txt

Could someone please help me with that? If more info is required, please let me know. Thanks!

ECR777 is currently unsupported

In the generation of a new project ERC777 does not allow to create the new project

`D:/Project_path>epirus new erc777


| | ()
| |
_ __ _ _ __ _ _ ___
| | | ' | | '_| | | / __|
| |
| |) | | | | || _
|| ./||| _,|__/
| |
|
|
Please enter the project name [Web3App]:

Please enter the package name for your project [io.epirus]:

Please enter the destination of your project [D:/Project_path]:

Generating ERC777 Kotlin project is currently unsupported
`

Unsupported type encountered: tuple

First off, thank you all for creating such an amazing product which has saved my life many times over!

I'm just curious if there is a way to work around this?

Version: Version: 1.4.1 Build timestamp: 2021-02-02 11:20:39.278 UTC

Command : epirus generate solidity --abiFile=MCDResolver.abi --package=abc --outputDir=abcp
Output: Generating abc.MCDResolver ... Unsupported type encountered: tuple

Cheers!
-Adam

Wrapper generation with struct having address array

Hi everyone, I'm currently trying your new Epirus CLI.

I'm having issues while generating a Java wrapper from a Json with a Struct which has an address array as internal type for one of it components.

Here is my UserRegistry.json

{
  "contractName": "UserRegistry",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "viewUser",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "id",
              "type": "uint256"
            },
            {
              "internalType": "string",
              "name": "name",
              "type": "string"
            },
            {
              "internalType": "address[]",
              "name": "friends",
              "type": "address[]"
            }
          ],
          "internalType": "struct Lib.User",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "bytecode": "0x"
}

I can successfully use the CLI with
epirus truffle generate -t UserRegistry.json -o /tmp -p com but the generated Java class is bugged (can't compile)

I tweaked the generated Java class to make it compile but I'm having issues at runtime.

Web3j RPC logs show my transaction is well sent to my eth node and I get a proper response from it but it seems the deserialization fails.

Do you have any insight?

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.