web3j-cli
web3j-cli copied to clipboard
Could not generate ERC3643 Factory contract wrapper
Contract ABI json :
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_addr",
"type": "address"
}
],
"name": "Deployed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_idFactory",
"type": "address"
}
],
"name": "IdFactorySet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_implementationAuthority",
"type": "address"
}
],
"name": "ImplementationAuthoritySet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_ir",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_irs",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_tir",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_ctr",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_mc",
"type": "address"
},
{
"indexed": true,
"internalType": "string",
"name": "_salt",
"type": "string"
}
],
"name": "TREXSuiteDeployed",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "_salt",
"type": "string"
},
{
"components": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
},
{
"internalType": "uint8",
"name": "decimals",
"type": "uint8"
},
{
"internalType": "address",
"name": "irs",
"type": "address"
},
{
"internalType": "address",
"name": "ONCHAINID",
"type": "address"
},
{
"internalType": "address[]",
"name": "irAgents",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "tokenAgents",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "complianceModules",
"type": "address[]"
},
{
"internalType": "bytes[]",
"name": "complianceSettings",
"type": "bytes[]"
}
],
"internalType": "struct ITREXFactory.TokenDetails",
"name": "_tokenDetails",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256[]",
"name": "claimTopics",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "issuers",
"type": "address[]"
},
{
"internalType": "uint256[][]",
"name": "issuerClaims",
"type": "uint256[][]"
}
],
"internalType": "struct ITREXFactory.ClaimDetails",
"name": "_claimDetails",
"type": "tuple"
}
],
"name": "deployTREXSuite",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getIdFactory",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getImplementationAuthority",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_salt",
"type": "string"
}
],
"name": "getToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_contract",
"type": "address"
},
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "recoverContractOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_idFactory",
"type": "address"
}
],
"name": "setIdFactory",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_implementationAuthority",
"type": "address"
}
],
"name": "setImplementationAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]```
Got error:
web3j generate solidity --abiFile=/smart-contracts/TREXFactory.json --outputDir=./ --package=com.contract
_ _____ _
| | |____ (_)
__ _____| |__ / /_
\ \ /\ / / _ \ '_ \ \ \ |
\ V V / __/ |_) |.___/ / |
\_/\_/ \___|_.__/ \____/| |
_/ |
|__/
by Web3Labs
Generating com.hamsa.TREXFactory ... SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J(W): Ignoring binding found at [jar:file:/Users/lijunjie/.web3j/web3j-cli-shadow-1.5.3/lib/web3j-cli-1.5.3-all.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J(W): See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
class com.squareup.javapoet.ParameterizedTypeName cannot be cast to class com.squareup.javapoet.ClassName (com.squareup.javapoet.ParameterizedTypeName and com.squareup.javapoet.ClassName are in unnamed module of loader 'app')
Anyone found a solution for this issue ?