epirus-io / epirus-cli Goto Github PK
View Code? Open in Web Editor NEWEpirus SDK CLI
Home Page: https://www.web3labs.com/epirus
License: Other
Epirus SDK CLI
Home Page: https://www.web3labs.com/epirus
License: Other
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)
I was trying to generate a project from a .abi file. But it got stuck here:
I saw that the project structure had been generated. But the Web3test.java file contained only the main() method.
I used the following command and the .abi is attached.
epirus import -n web3test -p com.web3test -s stableswap.abi --java
jstack output:
epirus_jstack.txt
Could someone please help me with that? If more info is required, please let me know. Thanks!
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
`
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
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?
https://docs.epirus.io/sdk/cli/ giving a 404
According to documentation https://docs.web3j.io/smart_contracts/#solidity-smart-contract-wrappers
This command
epirus solidity generate -a=MyContracts.abi -o=/src/main/java -p=com.abcd
Returns
Unknown options: '-a=MyContracts.abi', '-o=/src/main/java', '-p=com.abcd'
epirus [OPTIONS] [COMMAND]
Description:
Run Epirus CLI commands
Version 1.3.0
I had used it with version 1.2.4 without problem
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.