├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── frontend ├── .babelrc ├── .editorconfig ├── .postcssrc.js ├── build │ ├── build.js │ ├── check-versions.js │ ├── logo.png │ ├── utils.js │ ├── vue-loader.conf.js │ ├── webpack.base.conf.js │ ├── webpack.dev.conf.js │ └── webpack.prod.conf.js ├── config │ ├── dev.env.js │ ├── index.js │ └── prod.env.js ├── doc │ └── 接口文档.pdf ├── package.json ├── readme.md ├── src │ ├── assets │ │ ├── api.js │ │ ├── app-config.js │ │ ├── blockies.min.js │ │ ├── routes.js │ │ └── utility.js │ ├── components │ │ ├── vue-blockies.vue │ │ ├── vue-bread.vue │ │ ├── vue-footer.vue │ │ ├── vue-header.vue │ │ ├── vue-modal.vue │ │ ├── vue-pagination.vue │ │ └── vue-tab-buttons.vue │ ├── index.css │ ├── index.html │ ├── index.js │ └── routes │ │ ├── 404.vue │ │ ├── accounts.vue │ │ ├── address.vue │ │ ├── block.vue │ │ ├── blocks.vue │ │ ├── home.vue │ │ ├── oops.vue │ │ ├── tx.vue │ │ ├── txs-internal.vue │ │ ├── txs-pending.vue │ │ └── txs.vue └── static │ └── img │ ├── 404.jpg │ ├── block_bg.jpg │ ├── favicon.png │ ├── icon.png │ ├── logo.png │ ├── oops.jpg │ └── warning_icon.png └── web3j-app ├── .travis.yml ├── LICENSE ├── README.rst ├── abi ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── abi │ │ ├── EventEncoder.java │ │ ├── EventValues.java │ │ ├── FunctionEncoder.java │ │ ├── FunctionReturnDecoder.java │ │ ├── TypeDecoder.java │ │ ├── TypeEncoder.java │ │ ├── TypeMappingException.java │ │ ├── TypeReference.java │ │ ├── Utils.java │ │ └── datatypes │ │ ├── Address.java │ │ ├── Array.java │ │ ├── Bool.java │ │ ├── Bytes.java │ │ ├── BytesType.java │ │ ├── DynamicArray.java │ │ ├── DynamicBytes.java │ │ ├── Event.java │ │ ├── Fixed.java │ │ ├── FixedPointType.java │ │ ├── Function.java │ │ ├── Int.java │ │ ├── IntType.java │ │ ├── NumericType.java │ │ ├── StaticArray.java │ │ ├── Type.java │ │ ├── Ufixed.java │ │ ├── Uint.java │ │ ├── Utf8String.java │ │ └── generated │ │ ├── AbiTypes.java │ │ ├── Bytes1.java │ │ ├── Bytes10.java │ │ ├── Bytes11.java │ │ ├── Bytes12.java │ │ ├── Bytes13.java │ │ ├── Bytes14.java │ │ ├── Bytes15.java │ │ ├── Bytes16.java │ │ ├── Bytes17.java │ │ ├── Bytes18.java │ │ ├── Bytes19.java │ │ ├── Bytes2.java │ │ ├── Bytes20.java │ │ ├── Bytes21.java │ │ ├── Bytes22.java │ │ ├── Bytes23.java │ │ ├── Bytes24.java │ │ ├── Bytes25.java │ │ ├── Bytes26.java │ │ ├── Bytes27.java │ │ ├── Bytes28.java │ │ ├── Bytes29.java │ │ ├── Bytes3.java │ │ ├── Bytes30.java │ │ ├── Bytes31.java │ │ ├── Bytes32.java │ │ ├── Bytes4.java │ │ ├── Bytes5.java │ │ ├── Bytes6.java │ │ ├── Bytes7.java │ │ ├── Bytes8.java │ │ ├── Bytes9.java │ │ ├── Int104.java │ │ ├── Int112.java │ │ ├── Int120.java │ │ ├── Int128.java │ │ ├── Int136.java │ │ ├── Int144.java │ │ ├── Int152.java │ │ ├── Int16.java │ │ ├── Int160.java │ │ ├── Int168.java │ │ ├── Int176.java │ │ ├── Int184.java │ │ ├── Int192.java │ │ ├── Int200.java │ │ ├── Int208.java │ │ ├── Int216.java │ │ ├── Int224.java │ │ ├── Int232.java │ │ ├── Int24.java │ │ ├── Int240.java │ │ ├── Int248.java │ │ ├── Int256.java │ │ ├── Int32.java │ │ ├── Int40.java │ │ ├── Int48.java │ │ ├── Int56.java │ │ ├── Int64.java │ │ ├── Int72.java │ │ ├── Int8.java │ │ ├── Int80.java │ │ ├── Int88.java │ │ ├── Int96.java │ │ ├── StaticArray1.java │ │ ├── StaticArray10.java │ │ ├── StaticArray11.java │ │ ├── StaticArray12.java │ │ ├── StaticArray13.java │ │ ├── StaticArray14.java │ │ ├── StaticArray15.java │ │ ├── StaticArray16.java │ │ ├── StaticArray17.java │ │ ├── StaticArray18.java │ │ ├── StaticArray19.java │ │ ├── StaticArray2.java │ │ ├── StaticArray20.java │ │ ├── StaticArray21.java │ │ ├── StaticArray22.java │ │ ├── StaticArray23.java │ │ ├── StaticArray24.java │ │ ├── StaticArray25.java │ │ ├── StaticArray26.java │ │ ├── StaticArray27.java │ │ ├── StaticArray28.java │ │ ├── StaticArray29.java │ │ ├── StaticArray3.java │ │ ├── StaticArray30.java │ │ ├── StaticArray31.java │ │ ├── StaticArray32.java │ │ ├── StaticArray4.java │ │ ├── StaticArray5.java │ │ ├── StaticArray6.java │ │ ├── StaticArray7.java │ │ ├── StaticArray8.java │ │ ├── StaticArray9.java │ │ ├── Uint104.java │ │ ├── Uint112.java │ │ ├── Uint120.java │ │ ├── Uint128.java │ │ ├── Uint136.java │ │ ├── Uint144.java │ │ ├── Uint152.java │ │ ├── Uint16.java │ │ ├── Uint160.java │ │ ├── Uint168.java │ │ ├── Uint176.java │ │ ├── Uint184.java │ │ ├── Uint192.java │ │ ├── Uint200.java │ │ ├── Uint208.java │ │ ├── Uint216.java │ │ ├── Uint224.java │ │ ├── Uint232.java │ │ ├── Uint24.java │ │ ├── Uint240.java │ │ ├── Uint248.java │ │ ├── Uint256.java │ │ ├── Uint32.java │ │ ├── Uint40.java │ │ ├── Uint48.java │ │ ├── Uint56.java │ │ ├── Uint64.java │ │ ├── Uint72.java │ │ ├── Uint8.java │ │ ├── Uint80.java │ │ ├── Uint88.java │ │ └── Uint96.java │ └── test │ └── java │ └── org │ └── web3j │ └── abi │ ├── EventEncoderTest.java │ ├── FunctionEncoderTest.java │ ├── FunctionReturnDecoderTest.java │ ├── TypeDecoderTest.java │ ├── TypeEncoderTest.java │ ├── UtilsTest.java │ └── datatypes │ ├── AddressTest.java │ ├── FixedPointTypeTest.java │ ├── StaticArrayTest.java │ └── Utf8StringTest.java ├── app ├── build.gradle └── src │ ├── main │ ├── java │ │ └── me │ │ │ └── bing │ │ │ └── web3j │ │ │ └── app │ │ │ ├── Application.java │ │ │ ├── common │ │ │ ├── Constant.java │ │ │ ├── DateUtils.java │ │ │ └── NumberUtils.java │ │ │ ├── mapper │ │ │ ├── AccountMapper.java │ │ │ ├── BlockMapper.java │ │ │ ├── TransactionMapper.java │ │ │ └── model │ │ │ │ ├── Account.java │ │ │ │ ├── Block.java │ │ │ │ ├── BlockTransactionCount.java │ │ │ │ ├── DayCount.java │ │ │ │ ├── Transaction.java │ │ │ │ └── TransactionStatusEnum.java │ │ │ ├── service │ │ │ ├── EthService.java │ │ │ ├── MarketCapitalizationService.java │ │ │ ├── SyncToDatabaseTask.java │ │ │ ├── http │ │ │ │ ├── HttpService.java │ │ │ │ └── Response.java │ │ │ └── utils │ │ │ │ ├── ConverterFunctionUtil.java │ │ │ │ ├── IpcWeb3j.java │ │ │ │ └── PageIterator.java │ │ │ └── web │ │ │ ├── EthController.java │ │ │ ├── model │ │ │ ├── AccountExtensionVo.java │ │ │ ├── AccountVo.java │ │ │ ├── BlockVo.java │ │ │ ├── CapitalizationVo.java │ │ │ ├── ListAccountByPageVo.java │ │ │ ├── ListBlockByPageVo.java │ │ │ ├── ListBlockVo.java │ │ │ ├── ListTransactionByPageVo.java │ │ │ ├── ListTransactionVo.java │ │ │ ├── MapVo.java │ │ │ ├── ResponseVo.java │ │ │ └── TransactionVo.java │ │ │ └── utils │ │ │ ├── BlockUtils.java │ │ │ └── ConverterFunctionUtil.java │ └── resources │ │ ├── application.properties │ │ ├── logback.xml │ │ └── mybatis │ │ ├── SCHEME.sql │ │ ├── mapper │ │ ├── AccountMapper.xml │ │ ├── BlockMapper.xml │ │ └── TransactionMapper.xml │ │ └── mybatis-config.xml │ └── test │ └── java │ └── me │ └── bing │ └── web3j │ └── app │ ├── ControllerIT.java │ └── ControllerTest.java ├── build.gradle ├── codegen ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── codegen │ │ ├── AbiTypesGenerator.java │ │ ├── AbiTypesMapperGenerator.java │ │ ├── Console.java │ │ ├── FunctionWrapperGenerator.java │ │ ├── GenerationReporter.java │ │ ├── Generator.java │ │ ├── LogGenerationReporter.java │ │ ├── SolidityFunctionWrapper.java │ │ ├── SolidityFunctionWrapperGenerator.java │ │ ├── TruffleJsonFunctionWrapperGenerator.java │ │ └── TupleGenerator.java │ └── test │ ├── java │ └── org │ │ └── web3j │ │ └── codegen │ │ ├── AbiTypesGeneratorTest.java │ │ ├── AbiTypesMapperGeneratorTest.java │ │ ├── ContractJsonParseTest.java │ │ ├── SolidityFunctionWrapperGeneratorTest.java │ │ ├── SolidityFunctionWrapperTest.java │ │ ├── TruffleJsonFunctionWrapperGeneratorTest.java │ │ └── TupleGeneratorTest.java │ └── resources │ ├── solidity │ ├── arrays │ │ └── Arrays.sol │ ├── build.sh │ ├── contracts │ │ ├── HumanStandardToken.sol │ │ ├── HumanStandardTokenFactory.sol │ │ ├── SampleRecipientSuccess.sol │ │ ├── SampleRecipientThrow.sol │ │ ├── StandardToken.sol │ │ ├── Token.sol │ │ └── readme.txt │ ├── fibonacci │ │ └── Fibonacci.sol │ ├── greeter │ │ └── Greeter.sol │ ├── readme.txt │ ├── shipit │ │ └── ShipIt.sol │ └── simplestorage │ │ └── SimpleStorage.sol │ └── truffle │ ├── MetaCoin │ ├── ConvertLib.sol │ └── MetaCoin.sol │ └── build.sh ├── config └── checkstyle │ ├── checkstyle.xml │ └── suppressions.xml ├── console ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── console │ │ ├── ConsoleDevice.java │ │ ├── IODevice.java │ │ ├── KeyImporter.java │ │ ├── Runner.java │ │ ├── WalletCreator.java │ │ ├── WalletManager.java │ │ ├── WalletRunner.java │ │ ├── WalletSendFunds.java │ │ └── WalletUpdater.java │ └── test │ ├── java │ └── org │ │ └── web3j │ │ └── console │ │ ├── KeyImporterTest.java │ │ ├── WalletCreatorTest.java │ │ ├── WalletTester.java │ │ └── WalletUpdaterTest.java │ └── resources │ └── keyfiles │ ├── UTC--2016-11-03T05-55-06.340672473Z--ef678007d18427e6022059dbc264f27507cd1ffc │ ├── UTC--2016-11-03T07-47-45.988Z--4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818 │ ├── readme.txt │ └── sample-private-key.txt ├── core ├── build.gradle └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── web3j │ │ │ ├── contracts │ │ │ └── token │ │ │ │ ├── ERC20BasicInterface.java │ │ │ │ └── ERC20Interface.java │ │ │ ├── ens │ │ │ ├── Contracts.java │ │ │ ├── EnsResolutionException.java │ │ │ ├── EnsResolver.java │ │ │ ├── NameHash.java │ │ │ ├── RecordTypes.java │ │ │ └── contracts │ │ │ │ └── generated │ │ │ │ ├── ENS.java │ │ │ │ └── PublicResolver.java │ │ │ ├── protocol │ │ │ ├── ObjectMapperFactory.java │ │ │ ├── Service.java │ │ │ ├── Web3j.java │ │ │ ├── Web3jService.java │ │ │ ├── admin │ │ │ │ ├── Admin.java │ │ │ │ ├── JsonRpc2_0Admin.java │ │ │ │ └── methods │ │ │ │ │ └── response │ │ │ │ │ ├── BooleanResponse.java │ │ │ │ │ ├── NewAccountIdentifier.java │ │ │ │ │ ├── PersonalListAccounts.java │ │ │ │ │ ├── PersonalSign.java │ │ │ │ │ └── PersonalUnlockAccount.java │ │ │ ├── core │ │ │ │ ├── DefaultBlockParameter.java │ │ │ │ ├── DefaultBlockParameterName.java │ │ │ │ ├── DefaultBlockParameterNumber.java │ │ │ │ ├── Ethereum.java │ │ │ │ ├── JsonRpc2_0Web3j.java │ │ │ │ ├── RemoteCall.java │ │ │ │ ├── Request.java │ │ │ │ ├── Response.java │ │ │ │ ├── filters │ │ │ │ │ ├── BlockFilter.java │ │ │ │ │ ├── Callback.java │ │ │ │ │ ├── Filter.java │ │ │ │ │ ├── FilterException.java │ │ │ │ │ ├── LogFilter.java │ │ │ │ │ └── PendingTransactionFilter.java │ │ │ │ └── methods │ │ │ │ │ ├── request │ │ │ │ │ ├── EthFilter.java │ │ │ │ │ ├── Filter.java │ │ │ │ │ ├── ShhFilter.java │ │ │ │ │ ├── ShhPost.java │ │ │ │ │ └── Transaction.java │ │ │ │ │ └── response │ │ │ │ │ ├── AbiDefinition.java │ │ │ │ │ ├── DbGetHex.java │ │ │ │ │ ├── DbGetString.java │ │ │ │ │ ├── DbPutHex.java │ │ │ │ │ ├── DbPutString.java │ │ │ │ │ ├── EthAccounts.java │ │ │ │ │ ├── EthBlock.java │ │ │ │ │ ├── EthBlockNumber.java │ │ │ │ │ ├── EthCall.java │ │ │ │ │ ├── EthCoinbase.java │ │ │ │ │ ├── EthCompileLLL.java │ │ │ │ │ ├── EthCompileSerpent.java │ │ │ │ │ ├── EthCompileSolidity.java │ │ │ │ │ ├── EthEstimateGas.java │ │ │ │ │ ├── EthFilter.java │ │ │ │ │ ├── EthGasPrice.java │ │ │ │ │ ├── EthGetBalance.java │ │ │ │ │ ├── EthGetBlockTransactionCountByHash.java │ │ │ │ │ ├── EthGetBlockTransactionCountByNumber.java │ │ │ │ │ ├── EthGetCode.java │ │ │ │ │ ├── EthGetCompilers.java │ │ │ │ │ ├── EthGetStorageAt.java │ │ │ │ │ ├── EthGetTransactionCount.java │ │ │ │ │ ├── EthGetTransactionReceipt.java │ │ │ │ │ ├── EthGetUncleCountByBlockHash.java │ │ │ │ │ ├── EthGetUncleCountByBlockNumber.java │ │ │ │ │ ├── EthGetWork.java │ │ │ │ │ ├── EthHashrate.java │ │ │ │ │ ├── EthLog.java │ │ │ │ │ ├── EthMining.java │ │ │ │ │ ├── EthProtocolVersion.java │ │ │ │ │ ├── EthSendRawTransaction.java │ │ │ │ │ ├── EthSendTransaction.java │ │ │ │ │ ├── EthSign.java │ │ │ │ │ ├── EthSubmitHashrate.java │ │ │ │ │ ├── EthSubmitWork.java │ │ │ │ │ ├── EthSyncing.java │ │ │ │ │ ├── EthTransaction.java │ │ │ │ │ ├── EthUninstallFilter.java │ │ │ │ │ ├── Log.java │ │ │ │ │ ├── MinerStartResponse.java │ │ │ │ │ ├── NetListening.java │ │ │ │ │ ├── NetPeerCount.java │ │ │ │ │ ├── NetVersion.java │ │ │ │ │ ├── ShhAddToGroup.java │ │ │ │ │ ├── ShhHasIdentity.java │ │ │ │ │ ├── ShhMessages.java │ │ │ │ │ ├── ShhNewFilter.java │ │ │ │ │ ├── ShhNewGroup.java │ │ │ │ │ ├── ShhNewIdentity.java │ │ │ │ │ ├── ShhPost.java │ │ │ │ │ ├── ShhUninstallFilter.java │ │ │ │ │ ├── ShhVersion.java │ │ │ │ │ ├── Transaction.java │ │ │ │ │ ├── TransactionReceipt.java │ │ │ │ │ ├── TxPoolContent.java │ │ │ │ │ ├── VoidResponse.java │ │ │ │ │ ├── Web3ClientVersion.java │ │ │ │ │ └── Web3Sha3.java │ │ │ ├── deserializer │ │ │ │ ├── KeepAsJsonDeserialzier.java │ │ │ │ └── RawResponseDeserializer.java │ │ │ ├── exceptions │ │ │ │ ├── ClientConnectionException.java │ │ │ │ └── TransactionException.java │ │ │ ├── http │ │ │ │ └── HttpService.java │ │ │ ├── ipc │ │ │ │ ├── IOFacade.java │ │ │ │ ├── IpcService.java │ │ │ │ ├── UnixDomainSocket.java │ │ │ │ ├── UnixIpcService.java │ │ │ │ ├── WindowsIpcService.java │ │ │ │ └── WindowsNamedPipe.java │ │ │ └── rx │ │ │ │ ├── JsonRpc2_0Rx.java │ │ │ │ └── Web3jRx.java │ │ │ ├── tx │ │ │ ├── ChainId.java │ │ │ ├── ClientTransactionManager.java │ │ │ ├── Contract.java │ │ │ ├── FastRawTransactionManager.java │ │ │ ├── ManagedTransaction.java │ │ │ ├── RawTransactionManager.java │ │ │ ├── ReadonlyTransactionManager.java │ │ │ ├── TransactionManager.java │ │ │ ├── Transfer.java │ │ │ ├── exceptions │ │ │ │ └── ContractCallException.java │ │ │ └── response │ │ │ │ ├── Callback.java │ │ │ │ ├── EmptyTransactionReceipt.java │ │ │ │ ├── NoOpProcessor.java │ │ │ │ ├── PollingTransactionReceiptProcessor.java │ │ │ │ ├── QueuingTransactionReceiptProcessor.java │ │ │ │ └── TransactionReceiptProcessor.java │ │ │ └── utils │ │ │ ├── Async.java │ │ │ ├── Collection.java │ │ │ ├── Files.java │ │ │ ├── Observables.java │ │ │ └── Version.java │ └── resources │ │ └── solidity │ │ ├── build.sh │ │ ├── ens │ │ ├── AbstractENS.sol │ │ ├── ENS.sol │ │ └── PublicResolver.sol │ │ └── readme.txt │ └── test │ ├── java │ └── org │ │ └── web3j │ │ ├── TempFileProvider.java │ │ ├── ens │ │ ├── ContractsTest.java │ │ ├── EnsResolverTest.java │ │ └── NameHashTest.java │ │ ├── protocol │ │ ├── RequestTester.java │ │ ├── ResponseTester.java │ │ ├── admin │ │ │ ├── RequestTest.java │ │ │ └── ResponseTest.java │ │ ├── core │ │ │ ├── EqualsVerifierResponseTest.java │ │ │ ├── JsonRpc2_0Web3jTest.java │ │ │ ├── RawResponseTest.java │ │ │ ├── RequestTest.java │ │ │ ├── ResponseTest.java │ │ │ └── filters │ │ │ │ ├── BlockFilterTest.java │ │ │ │ ├── FilterTester.java │ │ │ │ ├── LogFilterTest.java │ │ │ │ └── PendingTransactionFilterTest.java │ │ ├── http │ │ │ └── HttpServiceTest.java │ │ ├── ipc │ │ │ ├── IpcServiceTest.java │ │ │ └── UnixDomainSocketTest.java │ │ └── rx │ │ │ └── JsonRpc2_0RxTest.java │ │ ├── tx │ │ ├── ContractTest.java │ │ ├── ManagedTransactionTester.java │ │ ├── TransferTest.java │ │ └── response │ │ │ └── PollingTransactionReceiptProcessorTest.java │ │ └── utils │ │ ├── AsyncTest.java │ │ ├── CollectionTest.java │ │ ├── ObservablesTests.java │ │ └── VersionTest.java │ └── resources │ └── web3j-version.properties ├── crypto ├── build.gradle └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── web3j │ │ │ └── crypto │ │ │ ├── Bip39Wallet.java │ │ │ ├── CipherException.java │ │ │ ├── ContractUtils.java │ │ │ ├── Credentials.java │ │ │ ├── ECDSASignature.java │ │ │ ├── ECKeyPair.java │ │ │ ├── Keys.java │ │ │ ├── LinuxSecureRandom.java │ │ │ ├── MnemonicUtils.java │ │ │ ├── RawTransaction.java │ │ │ ├── SecureRandomUtils.java │ │ │ ├── Sign.java │ │ │ ├── SignedRawTransaction.java │ │ │ ├── TransactionDecoder.java │ │ │ ├── TransactionEncoder.java │ │ │ ├── TransactionUtils.java │ │ │ ├── Wallet.java │ │ │ ├── WalletFile.java │ │ │ └── WalletUtils.java │ └── resources │ │ └── en-mnemonic-word-list.txt │ └── test │ ├── java │ └── org │ │ └── web3j │ │ └── crypto │ │ ├── ContractUtilsTest.java │ │ ├── CredentialsTest.java │ │ ├── ECRecoverTest.java │ │ ├── KeysTest.java │ │ ├── MnemonicUtilsTest.java │ │ ├── SampleKeys.java │ │ ├── SecureRandomUtilsTest.java │ │ ├── SignTest.java │ │ ├── TransactionDecoderTest.java │ │ ├── TransactionEncoderTest.java │ │ ├── TransactionUtilsTest.java │ │ ├── WalletTest.java │ │ └── WalletUtilsTest.java │ └── resources │ ├── keyfiles │ ├── UTC--2016-11-03T05-55-06.340672473Z--ef678007d18427e6022059dbc264f27507cd1ffc │ ├── UTC--2016-11-03T07-47-45.988Z--4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818 │ └── readme.txt │ └── mnemonics │ └── test-vectors.txt ├── docs ├── Makefile ├── make.bat ├── requirements.txt ├── source │ ├── _static │ │ └── web3j.png │ ├── abi.rst │ ├── command_line.rst │ ├── companies.rst │ ├── conf.py │ ├── credits.rst │ ├── development.rst │ ├── ens.rst │ ├── filters.rst │ ├── getting_started.rst │ ├── images │ │ ├── favicon.ico │ │ ├── infura_cert.png │ │ ├── pending_transaction.png │ │ ├── smart_contract.png │ │ ├── transaction_process.png │ │ ├── web3j_network.png │ │ └── web3j_transaction.png │ ├── index.rst │ ├── infura.rst │ ├── links.rst │ ├── management_apis.rst │ ├── modules.rst │ ├── projects.rst │ ├── quickstart.rst │ ├── rlp.rst │ ├── smart_contracts.rst │ ├── transactions.rst │ └── trouble.rst └── watch.sh ├── geth ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── protocol │ │ └── geth │ │ ├── Geth.java │ │ ├── JsonRpc2_0Geth.java │ │ └── response │ │ ├── PersonalEcRecover.java │ │ └── PersonalImportRawKey.java │ └── test │ └── java │ └── org │ └── web3j │ └── protocol │ └── geth │ ├── RequestTest.java │ └── ResponseTest.java ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── infura ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── protocol │ │ └── infura │ │ └── InfuraHttpService.java │ └── test │ └── java │ └── org │ └── web3j │ └── protocol │ └── infura │ └── InfuraHttpServiceTest.java ├── integration-tests ├── build.gradle ├── scripts │ └── generateWrappers.sh └── src │ └── test │ ├── java │ └── org │ │ └── web3j │ │ ├── ens │ │ └── EnsIT.java │ │ ├── generated │ │ ├── Arrays.java │ │ ├── Fibonacci.java │ │ ├── Greeter.java │ │ ├── HumanStandardToken.java │ │ ├── MetaCoin.java │ │ ├── ShipIt.java │ │ └── SimpleStorage.java │ │ └── protocol │ │ ├── core │ │ ├── CoreIT.java │ │ ├── IntegrationTestConfig.java │ │ ├── ObservableIT.java │ │ └── TestnetConfig.java │ │ ├── parity │ │ └── ParityIT.java │ │ └── scenarios │ │ ├── CreateRawTransactionIT.java │ │ ├── DeployContractIT.java │ │ ├── EventFilterIT.java │ │ ├── FastRawTransactionManagerIT.java │ │ ├── FunctionWrappersIT.java │ │ ├── GreeterContractIT.java │ │ ├── HumanStandardTokenGeneratedIT.java │ │ ├── HumanStandardTokenIT.java │ │ ├── Scenario.java │ │ ├── SendEtherIT.java │ │ ├── SignTransactionIT.java │ │ └── SimpleStorageContractIT.java │ └── resources │ └── logback-test.xml ├── logos ├── web3j-black.png ├── web3j-orange.png └── web3j-small.png ├── parity ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── protocol │ │ └── parity │ │ ├── JsonRpc2_0Parity.java │ │ ├── Parity.java │ │ ├── Trace.java │ │ └── methods │ │ ├── request │ │ ├── Derivation.java │ │ └── TraceFilter.java │ │ └── response │ │ ├── FullTraceInfo.java │ │ ├── ParityAddressesResponse.java │ │ ├── ParityAllAccountsInfo.java │ │ ├── ParityDefaultAddressResponse.java │ │ ├── ParityDeriveAddress.java │ │ ├── ParityExportAccount.java │ │ ├── ParityFullTraceResponse.java │ │ ├── ParityListRecentDapps.java │ │ ├── ParityTraceGet.java │ │ ├── ParityTracesResponse.java │ │ ├── StateDiff.java │ │ ├── Trace.java │ │ └── VMTrace.java │ └── test │ └── java │ └── org │ └── web3j │ └── protocol │ └── parity │ ├── EqualsVerifierParityResponseTest.java │ ├── RequestTest.java │ └── ResponseTest.java ├── rlp ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── web3j │ │ └── rlp │ │ ├── RlpDecoder.java │ │ ├── RlpEncoder.java │ │ ├── RlpList.java │ │ ├── RlpString.java │ │ └── RlpType.java │ └── test │ └── java │ └── org │ └── web3j │ └── rlp │ ├── RlpDecoderTest.java │ └── RlpEncoderTest.java ├── settings.gradle ├── tuples ├── build.gradle └── src │ └── main │ └── java │ └── org │ └── web3j │ └── tuples │ ├── EmptyTuple.java │ ├── Tuple.java │ └── generated │ ├── Tuple1.java │ ├── Tuple10.java │ ├── Tuple11.java │ ├── Tuple12.java │ ├── Tuple13.java │ ├── Tuple14.java │ ├── Tuple15.java │ ├── Tuple16.java │ ├── Tuple17.java │ ├── Tuple18.java │ ├── Tuple19.java │ ├── Tuple2.java │ ├── Tuple20.java │ ├── Tuple3.java │ ├── Tuple4.java │ ├── Tuple5.java │ ├── Tuple6.java │ ├── Tuple7.java │ ├── Tuple8.java │ └── Tuple9.java └── utils ├── build.gradle └── src ├── main └── java │ └── org │ └── web3j │ ├── crypto │ └── Hash.java │ ├── exceptions │ ├── MessageDecodingException.java │ └── MessageEncodingException.java │ └── utils │ ├── Assertions.java │ ├── Bytes.java │ ├── Convert.java │ ├── Numeric.java │ └── Strings.java └── test └── java └── org └── web3j ├── crypto └── HashTest.java └── utils ├── AssertionsTest.java ├── BytesTest.java ├── ConvertTest.java ├── NumericTest.java └── StringsTest.java /.gitattributes: -------------------------------------------------------------------------------- 1 | 2 | # don't touch end of line 3 | * -text 4 | -------------------------------------------------------------------------------- /frontend/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /frontend/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 4 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /frontend/.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserslist" field in package.json 6 | "postcss-import": {}, 7 | "autoprefixer": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /frontend/build/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/build/logo.png -------------------------------------------------------------------------------- /frontend/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const utils = require('./utils') 3 | const config = require('../config') 4 | const isProduction = process.env.NODE_ENV === 'production' 5 | const sourceMapEnabled = isProduction 6 | ? config.build.productionSourceMap 7 | : config.dev.cssSourceMap 8 | 9 | module.exports = { 10 | loaders: utils.cssLoaders({ 11 | sourceMap: sourceMapEnabled, 12 | extract: isProduction 13 | }), 14 | cssSourceMap: sourceMapEnabled, 15 | cacheBusting: config.dev.cacheBusting, 16 | transformToRequire: { 17 | video: ['src', 'poster'], 18 | source: 'src', 19 | img: 'src', 20 | image: 'xlink:href' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /frontend/config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /frontend/config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /frontend/doc/接口文档.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/doc/接口文档.pdf -------------------------------------------------------------------------------- /frontend/src/assets/app-config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | apiPrefixes: { 4 | // http://192.168.1.168:8080/api/ 5 | // https://52.53.225.118/api/ 6 | // https://explorer.nebulas.io/api/ 7 | // first item is default 8 | mainnet: { 9 | name: "Mainnet", 10 | //url: "https://explorer.nebulas.io/main/api/" 11 | //url: "http://178.128.3.xx:8080/api/" 12 | url: "http://localhost:8080/api/" 13 | }, 14 | testnet: { 15 | name: "Testnet", 16 | url: "https://explorer.nebulas.io/test/api/" 17 | } 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /frontend/src/components/vue-blockies.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /frontend/src/components/vue-tab-buttons.vue: -------------------------------------------------------------------------------- 1 | 8 | 17 | -------------------------------------------------------------------------------- /frontend/src/routes/404.vue: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /frontend/src/routes/oops.vue: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /frontend/static/img/404.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/404.jpg -------------------------------------------------------------------------------- /frontend/static/img/block_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/block_bg.jpg -------------------------------------------------------------------------------- /frontend/static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/favicon.png -------------------------------------------------------------------------------- /frontend/static/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/icon.png -------------------------------------------------------------------------------- /frontend/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/logo.png -------------------------------------------------------------------------------- /frontend/static/img/oops.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/oops.jpg -------------------------------------------------------------------------------- /frontend/static/img/warning_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/frontend/static/img/warning_icon.png -------------------------------------------------------------------------------- /web3j-app/.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | 3 | jdk: 4 | - oraclejdk8 5 | 6 | sudo: false # as per http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/ 7 | 8 | # Avoid uploading cache after every build with Gradle - see https://docs.travis-ci.com/user/languages/java/#Caching 9 | before_cache: 10 | - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock 11 | - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ 12 | cache: 13 | directories: 14 | - $HOME/.gradle/caches/ 15 | - $HOME/.gradle/wrapper/ 16 | 17 | # Don't run integrationTests as they require a live Ethereum client to be running 18 | # Add --info to view details of test failures 19 | script: ./gradlew --info check jacocoRootTestReport 20 | 21 | # Upload code coverage metrics 22 | after_success: 23 | - bash <(curl -s https://codecov.io/bash) 24 | -------------------------------------------------------------------------------- /web3j-app/abi/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Ethereum Application Binary Interface (ABI) for working with smart contracts' 3 | 4 | dependencies { 5 | compile project(':utils') 6 | } 7 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/EventValues.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Persisted solidity event parameters. 9 | */ 10 | public class EventValues { 11 | private final List indexedValues; 12 | private final List nonIndexedValues; 13 | 14 | public EventValues(List indexedValues, List nonIndexedValues) { 15 | this.indexedValues = indexedValues; 16 | this.nonIndexedValues = nonIndexedValues; 17 | } 18 | 19 | public List getIndexedValues() { 20 | return indexedValues; 21 | } 22 | 23 | public List getNonIndexedValues() { 24 | return nonIndexedValues; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/TypeMappingException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi; 2 | 3 | public class TypeMappingException extends RuntimeException { 4 | 5 | public TypeMappingException(Exception e) { 6 | super(e); 7 | } 8 | 9 | public TypeMappingException(String message) { 10 | super(message); 11 | } 12 | 13 | public TypeMappingException(String message, Exception e) { 14 | super(message, e); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/Bytes.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | /** 4 | * Statically allocated sequence of bytes. 5 | */ 6 | public class Bytes extends BytesType { 7 | 8 | public static final String TYPE_NAME = "bytes"; 9 | 10 | protected Bytes(int byteSize, byte[] value) { 11 | super(value, TYPE_NAME + value.length); 12 | if (!isValid(byteSize, value)) { 13 | throw new UnsupportedOperationException( 14 | "Input byte array must be in range 0 < M <= 32 and length must match type"); 15 | } 16 | } 17 | 18 | private boolean isValid(int byteSize, byte[] value) { 19 | int length = value.length; 20 | return length > 0 && length <= 32 && length == byteSize; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/DynamicArray.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Dynamic array type. 7 | */ 8 | public class DynamicArray extends Array { 9 | 10 | @SafeVarargs 11 | public DynamicArray(T... values) { 12 | super(values[0].getTypeAsString() + "[]", values); 13 | } 14 | 15 | public DynamicArray(List values) { 16 | super(values.get(0).getTypeAsString() + "[]", values); 17 | } 18 | 19 | private DynamicArray(String type) { 20 | super(type); 21 | } 22 | 23 | public static DynamicArray empty(String type) { 24 | return new DynamicArray(type); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/DynamicBytes.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | /** 4 | * Dynamically allocated sequence of bytes. 5 | */ 6 | public class DynamicBytes extends BytesType { 7 | 8 | public static final String TYPE_NAME = "bytes"; 9 | public static final DynamicBytes DEFAULT = new DynamicBytes(new byte[]{}); 10 | 11 | public DynamicBytes(byte[] value) { 12 | super(value, TYPE_NAME); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/Int.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | import java.math.BigInteger; 4 | 5 | /** 6 | * Integer type. 7 | */ 8 | public class Int extends IntType { 9 | 10 | public static final String TYPE_NAME = "int"; 11 | public static final Int DEFAULT = new Int(BigInteger.ZERO); 12 | 13 | public Int(BigInteger value) { 14 | // "int" values should be declared as int256 in computing function selectors 15 | this(MAX_BIT_LENGTH, value); 16 | } 17 | 18 | protected Int(int bitSize, BigInteger value) { 19 | super(TYPE_NAME, bitSize, value); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/Type.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | /** 4 | * ABI Types. 5 | */ 6 | public interface Type { 7 | int MAX_BIT_LENGTH = 256; 8 | int MAX_BYTE_LENGTH = MAX_BIT_LENGTH / 8; 9 | 10 | T getValue(); 11 | 12 | String getTypeAsString(); 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes1.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes1 extends Bytes { 12 | public static final Bytes1 DEFAULT = new Bytes1(new byte[1]); 13 | 14 | public Bytes1(byte[] value) { 15 | super(1, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes10.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes10 extends Bytes { 12 | public static final Bytes10 DEFAULT = new Bytes10(new byte[10]); 13 | 14 | public Bytes10(byte[] value) { 15 | super(10, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes11.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes11 extends Bytes { 12 | public static final Bytes11 DEFAULT = new Bytes11(new byte[11]); 13 | 14 | public Bytes11(byte[] value) { 15 | super(11, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes12.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes12 extends Bytes { 12 | public static final Bytes12 DEFAULT = new Bytes12(new byte[12]); 13 | 14 | public Bytes12(byte[] value) { 15 | super(12, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes13.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes13 extends Bytes { 12 | public static final Bytes13 DEFAULT = new Bytes13(new byte[13]); 13 | 14 | public Bytes13(byte[] value) { 15 | super(13, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes14.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes14 extends Bytes { 12 | public static final Bytes14 DEFAULT = new Bytes14(new byte[14]); 13 | 14 | public Bytes14(byte[] value) { 15 | super(14, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes15.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes15 extends Bytes { 12 | public static final Bytes15 DEFAULT = new Bytes15(new byte[15]); 13 | 14 | public Bytes15(byte[] value) { 15 | super(15, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes16.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes16 extends Bytes { 12 | public static final Bytes16 DEFAULT = new Bytes16(new byte[16]); 13 | 14 | public Bytes16(byte[] value) { 15 | super(16, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes17.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes17 extends Bytes { 12 | public static final Bytes17 DEFAULT = new Bytes17(new byte[17]); 13 | 14 | public Bytes17(byte[] value) { 15 | super(17, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes18.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes18 extends Bytes { 12 | public static final Bytes18 DEFAULT = new Bytes18(new byte[18]); 13 | 14 | public Bytes18(byte[] value) { 15 | super(18, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes19.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes19 extends Bytes { 12 | public static final Bytes19 DEFAULT = new Bytes19(new byte[19]); 13 | 14 | public Bytes19(byte[] value) { 15 | super(19, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes2.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes2 extends Bytes { 12 | public static final Bytes2 DEFAULT = new Bytes2(new byte[2]); 13 | 14 | public Bytes2(byte[] value) { 15 | super(2, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes20.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes20 extends Bytes { 12 | public static final Bytes20 DEFAULT = new Bytes20(new byte[20]); 13 | 14 | public Bytes20(byte[] value) { 15 | super(20, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes21.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes21 extends Bytes { 12 | public static final Bytes21 DEFAULT = new Bytes21(new byte[21]); 13 | 14 | public Bytes21(byte[] value) { 15 | super(21, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes22.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes22 extends Bytes { 12 | public static final Bytes22 DEFAULT = new Bytes22(new byte[22]); 13 | 14 | public Bytes22(byte[] value) { 15 | super(22, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes23.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes23 extends Bytes { 12 | public static final Bytes23 DEFAULT = new Bytes23(new byte[23]); 13 | 14 | public Bytes23(byte[] value) { 15 | super(23, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes24.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes24 extends Bytes { 12 | public static final Bytes24 DEFAULT = new Bytes24(new byte[24]); 13 | 14 | public Bytes24(byte[] value) { 15 | super(24, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes25.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes25 extends Bytes { 12 | public static final Bytes25 DEFAULT = new Bytes25(new byte[25]); 13 | 14 | public Bytes25(byte[] value) { 15 | super(25, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes26.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes26 extends Bytes { 12 | public static final Bytes26 DEFAULT = new Bytes26(new byte[26]); 13 | 14 | public Bytes26(byte[] value) { 15 | super(26, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes27.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes27 extends Bytes { 12 | public static final Bytes27 DEFAULT = new Bytes27(new byte[27]); 13 | 14 | public Bytes27(byte[] value) { 15 | super(27, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes28.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes28 extends Bytes { 12 | public static final Bytes28 DEFAULT = new Bytes28(new byte[28]); 13 | 14 | public Bytes28(byte[] value) { 15 | super(28, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes29.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes29 extends Bytes { 12 | public static final Bytes29 DEFAULT = new Bytes29(new byte[29]); 13 | 14 | public Bytes29(byte[] value) { 15 | super(29, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes3.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes3 extends Bytes { 12 | public static final Bytes3 DEFAULT = new Bytes3(new byte[3]); 13 | 14 | public Bytes3(byte[] value) { 15 | super(3, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes30.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes30 extends Bytes { 12 | public static final Bytes30 DEFAULT = new Bytes30(new byte[30]); 13 | 14 | public Bytes30(byte[] value) { 15 | super(30, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes31.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes31 extends Bytes { 12 | public static final Bytes31 DEFAULT = new Bytes31(new byte[31]); 13 | 14 | public Bytes31(byte[] value) { 15 | super(31, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes32.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes32 extends Bytes { 12 | public static final Bytes32 DEFAULT = new Bytes32(new byte[32]); 13 | 14 | public Bytes32(byte[] value) { 15 | super(32, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes4.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes4 extends Bytes { 12 | public static final Bytes4 DEFAULT = new Bytes4(new byte[4]); 13 | 14 | public Bytes4(byte[] value) { 15 | super(4, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes5.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes5 extends Bytes { 12 | public static final Bytes5 DEFAULT = new Bytes5(new byte[5]); 13 | 14 | public Bytes5(byte[] value) { 15 | super(5, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes6.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes6 extends Bytes { 12 | public static final Bytes6 DEFAULT = new Bytes6(new byte[6]); 13 | 14 | public Bytes6(byte[] value) { 15 | super(6, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes7.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes7 extends Bytes { 12 | public static final Bytes7 DEFAULT = new Bytes7(new byte[7]); 13 | 14 | public Bytes7(byte[] value) { 15 | super(7, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes8.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes8 extends Bytes { 12 | public static final Bytes8 DEFAULT = new Bytes8(new byte[8]); 13 | 14 | public Bytes8(byte[] value) { 15 | super(8, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Bytes9.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import org.web3j.abi.datatypes.Bytes; 4 | 5 | /** 6 | * Auto generated code. 7 | *

Do not modifiy! 8 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 9 | * codegen module to update. 10 | */ 11 | public class Bytes9 extends Bytes { 12 | public static final Bytes9 DEFAULT = new Bytes9(new byte[9]); 13 | 14 | public Bytes9(byte[] value) { 15 | super(9, value); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int104.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int104 extends Int { 13 | public static final Int104 DEFAULT = new Int104(BigInteger.ZERO); 14 | 15 | public Int104(BigInteger value) { 16 | super(104, value); 17 | } 18 | 19 | public Int104(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int112.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int112 extends Int { 13 | public static final Int112 DEFAULT = new Int112(BigInteger.ZERO); 14 | 15 | public Int112(BigInteger value) { 16 | super(112, value); 17 | } 18 | 19 | public Int112(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int120.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int120 extends Int { 13 | public static final Int120 DEFAULT = new Int120(BigInteger.ZERO); 14 | 15 | public Int120(BigInteger value) { 16 | super(120, value); 17 | } 18 | 19 | public Int120(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int128.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int128 extends Int { 13 | public static final Int128 DEFAULT = new Int128(BigInteger.ZERO); 14 | 15 | public Int128(BigInteger value) { 16 | super(128, value); 17 | } 18 | 19 | public Int128(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int136.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int136 extends Int { 13 | public static final Int136 DEFAULT = new Int136(BigInteger.ZERO); 14 | 15 | public Int136(BigInteger value) { 16 | super(136, value); 17 | } 18 | 19 | public Int136(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int144.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int144 extends Int { 13 | public static final Int144 DEFAULT = new Int144(BigInteger.ZERO); 14 | 15 | public Int144(BigInteger value) { 16 | super(144, value); 17 | } 18 | 19 | public Int144(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int152.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int152 extends Int { 13 | public static final Int152 DEFAULT = new Int152(BigInteger.ZERO); 14 | 15 | public Int152(BigInteger value) { 16 | super(152, value); 17 | } 18 | 19 | public Int152(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int16.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int16 extends Int { 13 | public static final Int16 DEFAULT = new Int16(BigInteger.ZERO); 14 | 15 | public Int16(BigInteger value) { 16 | super(16, value); 17 | } 18 | 19 | public Int16(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int160.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int160 extends Int { 13 | public static final Int160 DEFAULT = new Int160(BigInteger.ZERO); 14 | 15 | public Int160(BigInteger value) { 16 | super(160, value); 17 | } 18 | 19 | public Int160(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int168.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int168 extends Int { 13 | public static final Int168 DEFAULT = new Int168(BigInteger.ZERO); 14 | 15 | public Int168(BigInteger value) { 16 | super(168, value); 17 | } 18 | 19 | public Int168(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int176.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int176 extends Int { 13 | public static final Int176 DEFAULT = new Int176(BigInteger.ZERO); 14 | 15 | public Int176(BigInteger value) { 16 | super(176, value); 17 | } 18 | 19 | public Int176(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int184.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int184 extends Int { 13 | public static final Int184 DEFAULT = new Int184(BigInteger.ZERO); 14 | 15 | public Int184(BigInteger value) { 16 | super(184, value); 17 | } 18 | 19 | public Int184(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int192.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int192 extends Int { 13 | public static final Int192 DEFAULT = new Int192(BigInteger.ZERO); 14 | 15 | public Int192(BigInteger value) { 16 | super(192, value); 17 | } 18 | 19 | public Int192(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int200.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int200 extends Int { 13 | public static final Int200 DEFAULT = new Int200(BigInteger.ZERO); 14 | 15 | public Int200(BigInteger value) { 16 | super(200, value); 17 | } 18 | 19 | public Int200(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int208.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int208 extends Int { 13 | public static final Int208 DEFAULT = new Int208(BigInteger.ZERO); 14 | 15 | public Int208(BigInteger value) { 16 | super(208, value); 17 | } 18 | 19 | public Int208(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int216.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int216 extends Int { 13 | public static final Int216 DEFAULT = new Int216(BigInteger.ZERO); 14 | 15 | public Int216(BigInteger value) { 16 | super(216, value); 17 | } 18 | 19 | public Int216(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int224.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int224 extends Int { 13 | public static final Int224 DEFAULT = new Int224(BigInteger.ZERO); 14 | 15 | public Int224(BigInteger value) { 16 | super(224, value); 17 | } 18 | 19 | public Int224(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int232.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int232 extends Int { 13 | public static final Int232 DEFAULT = new Int232(BigInteger.ZERO); 14 | 15 | public Int232(BigInteger value) { 16 | super(232, value); 17 | } 18 | 19 | public Int232(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int24.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int24 extends Int { 13 | public static final Int24 DEFAULT = new Int24(BigInteger.ZERO); 14 | 15 | public Int24(BigInteger value) { 16 | super(24, value); 17 | } 18 | 19 | public Int24(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int240.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int240 extends Int { 13 | public static final Int240 DEFAULT = new Int240(BigInteger.ZERO); 14 | 15 | public Int240(BigInteger value) { 16 | super(240, value); 17 | } 18 | 19 | public Int240(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int248.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int248 extends Int { 13 | public static final Int248 DEFAULT = new Int248(BigInteger.ZERO); 14 | 15 | public Int248(BigInteger value) { 16 | super(248, value); 17 | } 18 | 19 | public Int248(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int256.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int256 extends Int { 13 | public static final Int256 DEFAULT = new Int256(BigInteger.ZERO); 14 | 15 | public Int256(BigInteger value) { 16 | super(256, value); 17 | } 18 | 19 | public Int256(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int32.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int32 extends Int { 13 | public static final Int32 DEFAULT = new Int32(BigInteger.ZERO); 14 | 15 | public Int32(BigInteger value) { 16 | super(32, value); 17 | } 18 | 19 | public Int32(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int40.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int40 extends Int { 13 | public static final Int40 DEFAULT = new Int40(BigInteger.ZERO); 14 | 15 | public Int40(BigInteger value) { 16 | super(40, value); 17 | } 18 | 19 | public Int40(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int48.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int48 extends Int { 13 | public static final Int48 DEFAULT = new Int48(BigInteger.ZERO); 14 | 15 | public Int48(BigInteger value) { 16 | super(48, value); 17 | } 18 | 19 | public Int48(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int56.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int56 extends Int { 13 | public static final Int56 DEFAULT = new Int56(BigInteger.ZERO); 14 | 15 | public Int56(BigInteger value) { 16 | super(56, value); 17 | } 18 | 19 | public Int56(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int64.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int64 extends Int { 13 | public static final Int64 DEFAULT = new Int64(BigInteger.ZERO); 14 | 15 | public Int64(BigInteger value) { 16 | super(64, value); 17 | } 18 | 19 | public Int64(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int72.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int72 extends Int { 13 | public static final Int72 DEFAULT = new Int72(BigInteger.ZERO); 14 | 15 | public Int72(BigInteger value) { 16 | super(72, value); 17 | } 18 | 19 | public Int72(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int8.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int8 extends Int { 13 | public static final Int8 DEFAULT = new Int8(BigInteger.ZERO); 14 | 15 | public Int8(BigInteger value) { 16 | super(8, value); 17 | } 18 | 19 | public Int8(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int80.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int80 extends Int { 13 | public static final Int80 DEFAULT = new Int80(BigInteger.ZERO); 14 | 15 | public Int80(BigInteger value) { 16 | super(80, value); 17 | } 18 | 19 | public Int80(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int88.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int88 extends Int { 13 | public static final Int88 DEFAULT = new Int88(BigInteger.ZERO); 14 | 15 | public Int88(BigInteger value) { 16 | super(88, value); 17 | } 18 | 19 | public Int88(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Int96.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Int; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Int96 extends Int { 13 | public static final Int96 DEFAULT = new Int96(BigInteger.ZERO); 14 | 15 | public Int96(BigInteger value) { 16 | super(96, value); 17 | } 18 | 19 | public Int96(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray1.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray1 extends StaticArray { 14 | public StaticArray1(List values) { 15 | super(1, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray1(T... values) { 20 | super(1, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray10.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray10 extends StaticArray { 14 | public StaticArray10(List values) { 15 | super(10, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray10(T... values) { 20 | super(10, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray11.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray11 extends StaticArray { 14 | public StaticArray11(List values) { 15 | super(11, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray11(T... values) { 20 | super(11, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray12.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray12 extends StaticArray { 14 | public StaticArray12(List values) { 15 | super(12, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray12(T... values) { 20 | super(12, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray13.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray13 extends StaticArray { 14 | public StaticArray13(List values) { 15 | super(13, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray13(T... values) { 20 | super(13, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray14.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray14 extends StaticArray { 14 | public StaticArray14(List values) { 15 | super(14, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray14(T... values) { 20 | super(14, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray15.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray15 extends StaticArray { 14 | public StaticArray15(List values) { 15 | super(15, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray15(T... values) { 20 | super(15, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray16.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray16 extends StaticArray { 14 | public StaticArray16(List values) { 15 | super(16, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray16(T... values) { 20 | super(16, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray17.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray17 extends StaticArray { 14 | public StaticArray17(List values) { 15 | super(17, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray17(T... values) { 20 | super(17, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray18.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray18 extends StaticArray { 14 | public StaticArray18(List values) { 15 | super(18, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray18(T... values) { 20 | super(18, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray19.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray19 extends StaticArray { 14 | public StaticArray19(List values) { 15 | super(19, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray19(T... values) { 20 | super(19, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray2.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray2 extends StaticArray { 14 | public StaticArray2(List values) { 15 | super(2, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray2(T... values) { 20 | super(2, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray20.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray20 extends StaticArray { 14 | public StaticArray20(List values) { 15 | super(20, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray20(T... values) { 20 | super(20, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray21.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray21 extends StaticArray { 14 | public StaticArray21(List values) { 15 | super(21, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray21(T... values) { 20 | super(21, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray22.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray22 extends StaticArray { 14 | public StaticArray22(List values) { 15 | super(22, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray22(T... values) { 20 | super(22, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray23.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray23 extends StaticArray { 14 | public StaticArray23(List values) { 15 | super(23, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray23(T... values) { 20 | super(23, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray24.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray24 extends StaticArray { 14 | public StaticArray24(List values) { 15 | super(24, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray24(T... values) { 20 | super(24, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray25.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray25 extends StaticArray { 14 | public StaticArray25(List values) { 15 | super(25, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray25(T... values) { 20 | super(25, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray26.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray26 extends StaticArray { 14 | public StaticArray26(List values) { 15 | super(26, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray26(T... values) { 20 | super(26, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray27.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray27 extends StaticArray { 14 | public StaticArray27(List values) { 15 | super(27, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray27(T... values) { 20 | super(27, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray28.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray28 extends StaticArray { 14 | public StaticArray28(List values) { 15 | super(28, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray28(T... values) { 20 | super(28, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray29.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray29 extends StaticArray { 14 | public StaticArray29(List values) { 15 | super(29, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray29(T... values) { 20 | super(29, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray3.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray3 extends StaticArray { 14 | public StaticArray3(List values) { 15 | super(3, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray3(T... values) { 20 | super(3, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray30.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray30 extends StaticArray { 14 | public StaticArray30(List values) { 15 | super(30, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray30(T... values) { 20 | super(30, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray31.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray31 extends StaticArray { 14 | public StaticArray31(List values) { 15 | super(31, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray31(T... values) { 20 | super(31, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray32.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray32 extends StaticArray { 14 | public StaticArray32(List values) { 15 | super(32, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray32(T... values) { 20 | super(32, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray4.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray4 extends StaticArray { 14 | public StaticArray4(List values) { 15 | super(4, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray4(T... values) { 20 | super(4, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray5.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray5 extends StaticArray { 14 | public StaticArray5(List values) { 15 | super(5, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray5(T... values) { 20 | super(5, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray6.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray6 extends StaticArray { 14 | public StaticArray6(List values) { 15 | super(6, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray6(T... values) { 20 | super(6, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray7.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray7 extends StaticArray { 14 | public StaticArray7(List values) { 15 | super(7, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray7(T... values) { 20 | super(7, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray8.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray8 extends StaticArray { 14 | public StaticArray8(List values) { 15 | super(8, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray8(T... values) { 20 | super(8, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/StaticArray9.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.util.List; 4 | import org.web3j.abi.datatypes.StaticArray; 5 | import org.web3j.abi.datatypes.Type; 6 | 7 | /** 8 | * Auto generated code. 9 | *

Do not modifiy! 10 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 11 | * codegen module to update. 12 | */ 13 | public class StaticArray9 extends StaticArray { 14 | public StaticArray9(List values) { 15 | super(9, values); 16 | } 17 | 18 | @SafeVarargs 19 | public StaticArray9(T... values) { 20 | super(9, values); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint104.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint104 extends Uint { 13 | public static final Uint104 DEFAULT = new Uint104(BigInteger.ZERO); 14 | 15 | public Uint104(BigInteger value) { 16 | super(104, value); 17 | } 18 | 19 | public Uint104(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint112.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint112 extends Uint { 13 | public static final Uint112 DEFAULT = new Uint112(BigInteger.ZERO); 14 | 15 | public Uint112(BigInteger value) { 16 | super(112, value); 17 | } 18 | 19 | public Uint112(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint120.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint120 extends Uint { 13 | public static final Uint120 DEFAULT = new Uint120(BigInteger.ZERO); 14 | 15 | public Uint120(BigInteger value) { 16 | super(120, value); 17 | } 18 | 19 | public Uint120(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint128.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint128 extends Uint { 13 | public static final Uint128 DEFAULT = new Uint128(BigInteger.ZERO); 14 | 15 | public Uint128(BigInteger value) { 16 | super(128, value); 17 | } 18 | 19 | public Uint128(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint136.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint136 extends Uint { 13 | public static final Uint136 DEFAULT = new Uint136(BigInteger.ZERO); 14 | 15 | public Uint136(BigInteger value) { 16 | super(136, value); 17 | } 18 | 19 | public Uint136(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint144.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint144 extends Uint { 13 | public static final Uint144 DEFAULT = new Uint144(BigInteger.ZERO); 14 | 15 | public Uint144(BigInteger value) { 16 | super(144, value); 17 | } 18 | 19 | public Uint144(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint152.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint152 extends Uint { 13 | public static final Uint152 DEFAULT = new Uint152(BigInteger.ZERO); 14 | 15 | public Uint152(BigInteger value) { 16 | super(152, value); 17 | } 18 | 19 | public Uint152(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint16.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint16 extends Uint { 13 | public static final Uint16 DEFAULT = new Uint16(BigInteger.ZERO); 14 | 15 | public Uint16(BigInteger value) { 16 | super(16, value); 17 | } 18 | 19 | public Uint16(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint160.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint160 extends Uint { 13 | public static final Uint160 DEFAULT = new Uint160(BigInteger.ZERO); 14 | 15 | public Uint160(BigInteger value) { 16 | super(160, value); 17 | } 18 | 19 | public Uint160(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint168.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint168 extends Uint { 13 | public static final Uint168 DEFAULT = new Uint168(BigInteger.ZERO); 14 | 15 | public Uint168(BigInteger value) { 16 | super(168, value); 17 | } 18 | 19 | public Uint168(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint176.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint176 extends Uint { 13 | public static final Uint176 DEFAULT = new Uint176(BigInteger.ZERO); 14 | 15 | public Uint176(BigInteger value) { 16 | super(176, value); 17 | } 18 | 19 | public Uint176(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint184.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint184 extends Uint { 13 | public static final Uint184 DEFAULT = new Uint184(BigInteger.ZERO); 14 | 15 | public Uint184(BigInteger value) { 16 | super(184, value); 17 | } 18 | 19 | public Uint184(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint192.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint192 extends Uint { 13 | public static final Uint192 DEFAULT = new Uint192(BigInteger.ZERO); 14 | 15 | public Uint192(BigInteger value) { 16 | super(192, value); 17 | } 18 | 19 | public Uint192(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint200.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint200 extends Uint { 13 | public static final Uint200 DEFAULT = new Uint200(BigInteger.ZERO); 14 | 15 | public Uint200(BigInteger value) { 16 | super(200, value); 17 | } 18 | 19 | public Uint200(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint208.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint208 extends Uint { 13 | public static final Uint208 DEFAULT = new Uint208(BigInteger.ZERO); 14 | 15 | public Uint208(BigInteger value) { 16 | super(208, value); 17 | } 18 | 19 | public Uint208(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint216.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint216 extends Uint { 13 | public static final Uint216 DEFAULT = new Uint216(BigInteger.ZERO); 14 | 15 | public Uint216(BigInteger value) { 16 | super(216, value); 17 | } 18 | 19 | public Uint216(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint224.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint224 extends Uint { 13 | public static final Uint224 DEFAULT = new Uint224(BigInteger.ZERO); 14 | 15 | public Uint224(BigInteger value) { 16 | super(224, value); 17 | } 18 | 19 | public Uint224(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint232.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint232 extends Uint { 13 | public static final Uint232 DEFAULT = new Uint232(BigInteger.ZERO); 14 | 15 | public Uint232(BigInteger value) { 16 | super(232, value); 17 | } 18 | 19 | public Uint232(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint24.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint24 extends Uint { 13 | public static final Uint24 DEFAULT = new Uint24(BigInteger.ZERO); 14 | 15 | public Uint24(BigInteger value) { 16 | super(24, value); 17 | } 18 | 19 | public Uint24(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint240.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint240 extends Uint { 13 | public static final Uint240 DEFAULT = new Uint240(BigInteger.ZERO); 14 | 15 | public Uint240(BigInteger value) { 16 | super(240, value); 17 | } 18 | 19 | public Uint240(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint248.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint248 extends Uint { 13 | public static final Uint248 DEFAULT = new Uint248(BigInteger.ZERO); 14 | 15 | public Uint248(BigInteger value) { 16 | super(248, value); 17 | } 18 | 19 | public Uint248(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint256.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint256 extends Uint { 13 | public static final Uint256 DEFAULT = new Uint256(BigInteger.ZERO); 14 | 15 | public Uint256(BigInteger value) { 16 | super(256, value); 17 | } 18 | 19 | public Uint256(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint32.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint32 extends Uint { 13 | public static final Uint32 DEFAULT = new Uint32(BigInteger.ZERO); 14 | 15 | public Uint32(BigInteger value) { 16 | super(32, value); 17 | } 18 | 19 | public Uint32(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint40.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint40 extends Uint { 13 | public static final Uint40 DEFAULT = new Uint40(BigInteger.ZERO); 14 | 15 | public Uint40(BigInteger value) { 16 | super(40, value); 17 | } 18 | 19 | public Uint40(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint48.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint48 extends Uint { 13 | public static final Uint48 DEFAULT = new Uint48(BigInteger.ZERO); 14 | 15 | public Uint48(BigInteger value) { 16 | super(48, value); 17 | } 18 | 19 | public Uint48(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint56.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint56 extends Uint { 13 | public static final Uint56 DEFAULT = new Uint56(BigInteger.ZERO); 14 | 15 | public Uint56(BigInteger value) { 16 | super(56, value); 17 | } 18 | 19 | public Uint56(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint64.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint64 extends Uint { 13 | public static final Uint64 DEFAULT = new Uint64(BigInteger.ZERO); 14 | 15 | public Uint64(BigInteger value) { 16 | super(64, value); 17 | } 18 | 19 | public Uint64(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint72.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint72 extends Uint { 13 | public static final Uint72 DEFAULT = new Uint72(BigInteger.ZERO); 14 | 15 | public Uint72(BigInteger value) { 16 | super(72, value); 17 | } 18 | 19 | public Uint72(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint8.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint8 extends Uint { 13 | public static final Uint8 DEFAULT = new Uint8(BigInteger.ZERO); 14 | 15 | public Uint8(BigInteger value) { 16 | super(8, value); 17 | } 18 | 19 | public Uint8(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint80.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint80 extends Uint { 13 | public static final Uint80 DEFAULT = new Uint80(BigInteger.ZERO); 14 | 15 | public Uint80(BigInteger value) { 16 | super(80, value); 17 | } 18 | 19 | public Uint80(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint88.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint88 extends Uint { 13 | public static final Uint88 DEFAULT = new Uint88(BigInteger.ZERO); 14 | 15 | public Uint88(BigInteger value) { 16 | super(88, value); 17 | } 18 | 19 | public Uint88(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/main/java/org/web3j/abi/datatypes/generated/Uint96.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes.generated; 2 | 3 | import java.math.BigInteger; 4 | import org.web3j.abi.datatypes.Uint; 5 | 6 | /** 7 | * Auto generated code. 8 | *

Do not modifiy! 9 | *

Please use org.web3j.codegen.AbiTypesGenerator in the 10 | * codegen module to update. 11 | */ 12 | public class Uint96 extends Uint { 13 | public static final Uint96 DEFAULT = new Uint96(BigInteger.ZERO); 14 | 15 | public Uint96(BigInteger value) { 16 | super(96, value); 17 | } 18 | 19 | public Uint96(long value) { 20 | this(BigInteger.valueOf(value)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/abi/src/test/java/org/web3j/abi/EventEncoderTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.hamcrest.CoreMatchers.is; 6 | import static org.hamcrest.MatcherAssert.assertThat; 7 | 8 | public class EventEncoderTest { 9 | 10 | @Test 11 | public void testBuildEventSignature() { 12 | assertThat(EventEncoder.buildEventSignature("Deposit(address,hash256,uint256)"), 13 | is("0x50cb9fe53daa9737b786ab3646f04d0150dc50ef4e75f59509d83667ad5adb20")); 14 | 15 | assertThat(EventEncoder.buildEventSignature("Notify(uint256,uint256)"), 16 | is("0x71e71a8458267085d5ab16980fd5f114d2d37f232479c245d523ce8d23ca40ed")); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /web3j-app/abi/src/test/java/org/web3j/abi/datatypes/AddressTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.hamcrest.core.Is.is; 6 | import static org.junit.Assert.assertThat; 7 | 8 | public class AddressTest { 9 | 10 | @Test 11 | public void testToString() { 12 | assertThat(new Address("00052b08330e05d731e38c856c1043288f7d9744").toString(), 13 | is("0x00052b08330e05d731e38c856c1043288f7d9744")); 14 | assertThat(new Address("0x00052b08330e05d731e38c856c1043288f7d9744").toString(), 15 | is("0x00052b08330e05d731e38c856c1043288f7d9744")); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/abi/src/test/java/org/web3j/abi/datatypes/Utf8StringTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.abi.datatypes; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.hamcrest.core.Is.is; 6 | import static org.junit.Assert.assertThat; 7 | 8 | public class Utf8StringTest { 9 | 10 | @Test 11 | public void testToString() { 12 | assertThat(new Utf8String("").toString(), is("")); 13 | assertThat(new Utf8String("string").toString(), is("string")); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/app/build.gradle: -------------------------------------------------------------------------------- 1 | description 'Restful api provider for frontend' 2 | 3 | dependencies { 4 | compile project(':core') 5 | compile("org.springframework.boot:spring-boot-starter-web") 6 | compile("org.springframework.boot:spring-boot-starter-actuator") 7 | compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2") 8 | compile('mysql:mysql-connector-java:8.0.11') 9 | compile('org.apache.commons:commons-lang3:3.7') 10 | compile('joda-time:joda-time:2.9.9') 11 | testCompile("org.springframework.boot:spring-boot-starter-test") 12 | } 13 | 14 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/common/Constant.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.common; 2 | 3 | import java.math.BigInteger; 4 | 5 | /** 6 | * @author bing on 2018/7/5 7 | */ 8 | public class Constant { 9 | private Constant() {} 10 | 11 | public static String IpcAddress = "/Users/bing/test/data/geth.ipc"; 12 | 13 | public static String CapAddress = "https://api.coinmarketcap.com/v1/ticker/ethereum/"; 14 | 15 | public static BigInteger GWeiFactor = BigInteger.valueOf(10).pow(9); 16 | 17 | public static String LatestBlockNumberKey = "latest"; 18 | 19 | public static long TimestampFactor = 1000; 20 | 21 | public static long EightHourToSecond = 8 * 60 * 60; 22 | 23 | public static BigInteger MineReward = GWeiFactor.multiply(GWeiFactor).multiply(BigInteger.valueOf(3)); 24 | } 25 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/common/DateUtils.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.common; 2 | 3 | import java.util.Date; 4 | import org.joda.time.LocalDate; 5 | 6 | /** 7 | * @author bing on 2018/7/18 8 | */ 9 | public class DateUtils { 10 | private DateUtils() {} 11 | 12 | public static Date now() { 13 | return LocalDate.now().toDate(); 14 | } 15 | 16 | public static String toDay(Date date) { 17 | return LocalDate.fromDateFields(date).toString("yyyy-MM-dd"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/common/NumberUtils.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.common; 2 | 3 | import java.math.BigDecimal; 4 | 5 | /** 6 | * @author bing on 2018/7/18 7 | */ 8 | public class NumberUtils { 9 | private NumberUtils(){} 10 | 11 | public static String fromGWei(long gwei) { 12 | return BigDecimal.valueOf(gwei) 13 | .divide(new BigDecimal(Constant.GWeiFactor), 8, BigDecimal.ROUND_DOWN) 14 | .stripTrailingZeros().toPlainString(); 15 | } 16 | 17 | public static String percentage(String value, String total) { 18 | return new BigDecimal(value) 19 | .divide(new BigDecimal(total), 8, BigDecimal.ROUND_DOWN) 20 | .multiply(new BigDecimal(100)) 21 | .stripTrailingZeros().toPlainString(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/mapper/AccountMapper.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.mapper; 2 | 3 | import java.util.List; 4 | import me.bing.web3j.app.mapper.model.Account; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | /** 9 | * @author bing on 2018/7/1 10 | */ 11 | @Mapper 12 | public interface AccountMapper { 13 | 14 | Account load(@Param("hash") String hash); 15 | 16 | Long count(); 17 | 18 | List topByBalance(@Param("offset") long offset, @Param("limit") long limit); 19 | 20 | Integer update(@Param("addresses") List addresses); 21 | 22 | Long sumBalance(); 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/mapper/model/BlockTransactionCount.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.mapper.model; 2 | 3 | /** 4 | * @author bing on 2018/7/18 5 | */ 6 | public class BlockTransactionCount { 7 | 8 | private Long block; 9 | private Long count; 10 | 11 | public BlockTransactionCount(){} 12 | 13 | public BlockTransactionCount(Long block, Long count) { 14 | this.block = block; 15 | this.count = count; 16 | } 17 | 18 | public Long getBlock() { 19 | return block; 20 | } 21 | 22 | public void setBlock(Long block) { 23 | this.block = block; 24 | } 25 | 26 | public Long getCount() { 27 | return count; 28 | } 29 | 30 | public void setCount(Long count) { 31 | this.count = count; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/mapper/model/DayCount.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.mapper.model; 2 | 3 | /** 4 | * @author bing on 2018/7/18 5 | */ 6 | public class DayCount { 7 | private String day; 8 | private Long count; 9 | 10 | public DayCount(){} 11 | 12 | public DayCount(String day, Long count) { 13 | this.day = day; 14 | this.count = count; 15 | } 16 | 17 | public String getDay() { 18 | return day; 19 | } 20 | 21 | public void setDay(String day) { 22 | this.day = day; 23 | } 24 | 25 | public Long getCount() { 26 | return count; 27 | } 28 | 29 | public void setCount(Long count) { 30 | this.count = count; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/mapper/model/TransactionStatusEnum.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.mapper.model; 2 | 3 | public enum TransactionStatusEnum { 4 | FAIL(0), 5 | SUCCESS(1), 6 | PENDING(2); 7 | 8 | int value; 9 | 10 | TransactionStatusEnum(int value) { 11 | this.value = value; 12 | } 13 | 14 | public int getValue() { 15 | return value; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/service/utils/IpcWeb3j.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.service.utils; 2 | 3 | import me.bing.web3j.app.common.Constant; 4 | import org.web3j.protocol.Web3j; 5 | import org.web3j.protocol.ipc.UnixIpcService; 6 | 7 | /** 8 | * @author bing on 2018/6/29 9 | */ 10 | public enum IpcWeb3j { 11 | INSTANCE; 12 | 13 | Web3j value; 14 | 15 | IpcWeb3j() { 16 | this.value = Web3j.build(new UnixIpcService(Constant.IpcAddress)); 17 | } 18 | 19 | public Web3j get() { 20 | return this.value; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/web/model/ListBlockByPageVo.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.web.model; 2 | 3 | import me.bing.web3j.app.service.utils.PageIterator; 4 | import me.bing.web3j.app.web.model.BlockVo.Block; 5 | 6 | /** 7 | * @author bing on 2018/7/6 8 | */ 9 | public class ListBlockByPageVo extends ResponseVo> { 10 | @Override 11 | public void setData(PageIterator data) { 12 | super.setData(data); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/web/model/ListBlockVo.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.web.model; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * @author bing on 2018/7/6 7 | */ 8 | public class ListBlockVo extends ResponseVo> { 9 | @Override 10 | public void setData(List data) { 11 | super.setData(data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/java/me/bing/web3j/app/web/model/ListTransactionVo.java: -------------------------------------------------------------------------------- 1 | package me.bing.web3j.app.web.model; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * @author bing on 2018/7/17 7 | */ 8 | public class ListTransactionVo extends ResponseVo> { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | mybatis.config-location=classpath:mybatis/mybatis-config.xml 2 | 3 | spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver 4 | spring.datasource.url = jdbc:mysql://localhost:3306/eth_test?useUnicode=true&characterEncoding=utf-8&useSSL=false 5 | spring.datasource.username = root 6 | #spring.datasource.password = 7 | 8 | spring.jackson.serialization.write-dates-as-timestamps=true 9 | -------------------------------------------------------------------------------- /web3j-app/app/src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /web3j-app/codegen/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'web3j project code generators' 3 | 4 | dependencies { 5 | compile project(':core'), 6 | "com.squareup:javapoet:$javapoetVersion" 7 | testCompile project(path: ':core', configuration: 'testArtifacts') 8 | } 9 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/main/java/org/web3j/codegen/Console.java: -------------------------------------------------------------------------------- 1 | package org.web3j.codegen; 2 | 3 | /** 4 | * Command line utility classes. 5 | */ 6 | public class Console { 7 | public static void exitError(String message) { 8 | System.err.println(message); 9 | System.exit(1); 10 | } 11 | 12 | public static void exitError(Throwable throwable) { 13 | exitError(throwable.getMessage()); 14 | } 15 | 16 | public static void exitSuccess(String message) { 17 | System.out.println(message); 18 | System.exit(0); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/main/java/org/web3j/codegen/GenerationReporter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.codegen; 2 | 3 | /** 4 | * Can be used to provide report about a code generation process. 5 | */ 6 | interface GenerationReporter { 7 | void report(String msg); 8 | } 9 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/main/java/org/web3j/codegen/LogGenerationReporter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.codegen; 2 | 3 | import org.slf4j.Logger; 4 | 5 | /** 6 | * A reporter generation that outputs messages using a logger instance. 7 | */ 8 | class LogGenerationReporter implements GenerationReporter { 9 | 10 | private final Logger logger; 11 | 12 | public LogGenerationReporter(Logger logger) { 13 | this.logger = logger; 14 | } 15 | 16 | @Override 17 | public void report(String msg) { 18 | logger.warn(msg); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/java/org/web3j/codegen/AbiTypesGeneratorTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.codegen; 2 | 3 | import org.junit.Test; 4 | 5 | import org.web3j.TempFileProvider; 6 | 7 | import static org.hamcrest.core.Is.is; 8 | import static org.junit.Assert.assertThat; 9 | 10 | 11 | public class AbiTypesGeneratorTest extends TempFileProvider { 12 | 13 | @Test 14 | public void testGetPackageName() { 15 | assertThat(AbiTypesGenerator.getPackageName(String.class), is("java.lang")); 16 | } 17 | 18 | @Test 19 | public void testCreatePackageName() { 20 | assertThat(AbiTypesGenerator.createPackageName(String.class), is("java.lang.generated")); 21 | } 22 | 23 | @Test 24 | public void testGeneration() throws Exception { 25 | AbiTypesGenerator.main(new String[] { tempDirPath }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/java/org/web3j/codegen/AbiTypesMapperGeneratorTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.codegen; 2 | 3 | import org.junit.Test; 4 | 5 | import org.web3j.TempFileProvider; 6 | 7 | 8 | public class AbiTypesMapperGeneratorTest extends TempFileProvider { 9 | 10 | @Test 11 | public void testGeneration() throws Exception { 12 | AbiTypesMapperGenerator.main(new String[] { tempDirPath }); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | targets=" 4 | arrays/Arrays 5 | contracts/HumanStandardToken 6 | fibonacci/Fibonacci 7 | greeter/Greeter 8 | shipit/ShipIt 9 | simplestorage/SimpleStorage 10 | " 11 | 12 | for target in ${targets}; do 13 | dirName=$(dirname $target) 14 | fileName=$(basename $target) 15 | 16 | cd $dirName 17 | echo "Compiling Solidity files in ${dirName}:" 18 | solc --bin --abi --optimize --overwrite ${fileName}.sol -o build/ 19 | echo "Complete" 20 | 21 | echo "Generating web3j bindings" 22 | web3j solidity generate \ 23 | build/${fileName}.bin \ 24 | build/${fileName}.abi \ 25 | -p org.web3j.generated \ 26 | -o ../../../../../../integration-tests/src/test/java/ > /dev/null 27 | echo "Complete" 28 | 29 | cd - 30 | done 31 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/contracts/SampleRecipientThrow.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.2; 2 | 3 | /* 4 | This is an example contract that helps test the functionality of the approveAndCall() functionality of HumanStandardToken.sol. 5 | This one will throw and thus needs to propagate the error up. 6 | */ 7 | contract SampleRecipientThrow { 8 | function () { 9 | throw; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/contracts/readme.txt: -------------------------------------------------------------------------------- 1 | Smart Contract examples from https://github.com/ConsenSys/Tokens based on EIP-20 2 | (https://github.com/ethereum/EIPs/issues/20). 3 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/fibonacci/Fibonacci.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.2; 2 | 3 | contract Fibonacci { 4 | 5 | event Notify(uint input, uint result); 6 | 7 | function fibonacci(uint number) constant returns(uint result) { 8 | if (number == 0) return 0; 9 | else if (number == 1) return 1; 10 | else return Fibonacci.fibonacci(number - 1) + Fibonacci.fibonacci(number - 2); 11 | } 12 | 13 | function fibonacciNotify(uint number) returns(uint result) { 14 | result = fibonacci(number); 15 | Notify(number, result); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/readme.txt: -------------------------------------------------------------------------------- 1 | All resources should be compiled with: 2 | 3 | solc .sol --bin --abi --optimize -o build/ 4 | 5 | Or you can use the Solidity browser at https://ethereum.github.io/browser-solidity/. 6 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/shipit/ShipIt.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.2; 2 | contract ShipIt { 3 | 4 | enum Status{ 5 | SHIPMENT_CREATED 6 | } 7 | 8 | struct Shipment{ 9 | address sender; 10 | address receiver; 11 | uint creationDate; 12 | uint departureDate; 13 | Status status; 14 | uint packageWeight; 15 | string depot; 16 | bytes32 receiverHash; 17 | } 18 | 19 | mapping(address => Shipment) public shipments; 20 | } 21 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/solidity/simplestorage/SimpleStorage.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.0; 2 | 3 | contract SimpleStorage { 4 | uint storedData; 5 | 6 | function SimpleStorage() { 7 | storedData = 5; 8 | } 9 | 10 | function set(uint x) { 11 | storedData = x; 12 | } 13 | 14 | function get() constant returns (uint retVal) { 15 | return storedData; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/truffle/MetaCoin/ConvertLib.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.4.2; 2 | 3 | library ConvertLib{ 4 | function convert(uint amount,uint conversionRate) pure public returns (uint convertedAmount) 5 | { 6 | return amount * conversionRate; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /web3j-app/codegen/src/test/resources/truffle/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | targets=" 4 | MetaCoin/MetaCoin 5 | " 6 | 7 | for target in ${targets}; do 8 | dirName=$(dirname $target) 9 | fileName=$(basename $target) 10 | 11 | cd $dirName 12 | echo "Generating web3j bindings" 13 | web3j truffle generate \ 14 | build/contracts/${fileName}.json \ 15 | -p org.web3j.generated \ 16 | -o ../../../../../../integration-tests/src/test/java/ > /dev/null 17 | echo "Complete" 18 | 19 | cd - 20 | done 21 | -------------------------------------------------------------------------------- /web3j-app/config/checkstyle/suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /web3j-app/console/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.github.johnrengelman.shadow' 2 | apply plugin: 'application' 3 | 4 | description 'web3j command line tools' 5 | 6 | dependencies { 7 | compile project(':codegen'), 8 | project(':infura') 9 | runtime "org.slf4j:slf4j-nop:$slf4jVersion" // prevent logging of the library to the console 10 | testCompile project(path: ':crypto', configuration: 'testArtifacts'), 11 | project(path: ':core', configuration: 'testArtifacts') 12 | } 13 | 14 | // Build command line library release with target distShadowZip 15 | mainClassName = 'org.web3j.console.Runner' 16 | applicationName = 'web3j' 17 | -------------------------------------------------------------------------------- /web3j-app/console/src/main/java/org/web3j/console/ConsoleDevice.java: -------------------------------------------------------------------------------- 1 | package org.web3j.console; 2 | 3 | import java.io.Console; 4 | 5 | /** 6 | * System Console device wrapper. 7 | */ 8 | public class ConsoleDevice implements IODevice { 9 | 10 | private Console console = System.console(); 11 | 12 | @Override 13 | public void printf(String format, Object... args) { 14 | console.printf(format, args); 15 | } 16 | 17 | @Override 18 | public String readLine(String fmt, Object... args) { 19 | return console.readLine(fmt, args); 20 | } 21 | 22 | @Override 23 | public char[] readPassword(String fmt, Object... args) { 24 | return console.readPassword(fmt, args); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /web3j-app/console/src/main/java/org/web3j/console/IODevice.java: -------------------------------------------------------------------------------- 1 | package org.web3j.console; 2 | 3 | /** 4 | * IO device abstraction. 5 | */ 6 | public interface IODevice { 7 | void printf(String format, Object... args); 8 | 9 | String readLine(String fmt, Object... args); 10 | 11 | char[] readPassword(String fmt, Object... args); 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/console/src/test/java/org/web3j/console/WalletCreatorTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.console; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.mockito.Matchers.contains; 6 | import static org.mockito.Matchers.startsWith; 7 | import static org.mockito.Mockito.verify; 8 | import static org.mockito.Mockito.when; 9 | 10 | public class WalletCreatorTest extends WalletTester { 11 | 12 | @Test 13 | public void testWalletCreation() { 14 | when(console.readPassword(contains("password"))) 15 | .thenReturn(WALLET_PASSWORD, WALLET_PASSWORD); 16 | when(console.readLine(startsWith("Please enter a destination directory "))) 17 | .thenReturn(tempDirPath); 18 | 19 | WalletCreator.main(console); 20 | 21 | verify(console).printf(contains("successfully created in")); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/console/src/test/java/org/web3j/console/WalletTester.java: -------------------------------------------------------------------------------- 1 | package org.web3j.console; 2 | 3 | import org.junit.Before; 4 | 5 | import org.web3j.TempFileProvider; 6 | 7 | import static org.mockito.Mockito.mock; 8 | import static org.web3j.crypto.SampleKeys.PASSWORD; 9 | 10 | public abstract class WalletTester extends TempFileProvider { 11 | 12 | static final char[] WALLET_PASSWORD = PASSWORD.toCharArray(); 13 | 14 | IODevice console; 15 | 16 | @Before 17 | public void setUp() throws Exception { 18 | super.setUp(); 19 | 20 | console = mock(IODevice.class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/console/src/test/resources/keyfiles/UTC--2016-11-03T05-55-06.340672473Z--ef678007d18427e6022059dbc264f27507cd1ffc: -------------------------------------------------------------------------------- 1 | {"address":"ef678007d18427e6022059dbc264f27507cd1ffc","crypto":{"cipher":"aes-128-ctr","ciphertext":"e1a92bbba0920bdd234b792eac5c662511cffc8714e83e668ddae0507abe91e3","cipherparams":{"iv":"683392b3259b5dcc48516b22b0835972"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"f89eaf8557a983755043ed490cbaf2c075f6ee5e53bc354c4f9d485f9d6d3b1b"},"mac":"f8fe5929187d70ee1e659e6d2e669e778e8792012ecfc1a7b1bb0ee8d4a1e454"},"id":"6ded30ab-7bdc-47da-b7ff-ccfdb2e62f56","version":3} -------------------------------------------------------------------------------- /web3j-app/console/src/test/resources/keyfiles/UTC--2016-11-03T07-47-45.988Z--4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818: -------------------------------------------------------------------------------- 1 | {"version":3,"id":"cb3dff1c-f9f8-42a1-9bf7-a5b9838697b9","address":"4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818","Crypto":{"ciphertext":"ac2973d1fff7a826fa19cb548fec4d341fbf16f2cf5031d4a902312a0416a78a","cipherparams":{"iv":"86c8eb32a78eb5a6eaa7de29f92318f4"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"37a6ce728936771a8337397449525bc6879196fb7b57070ddb0d38d3a94f4642","n":1024,"r":8,"p":1},"mac":"59b6206df4a55abf40357e56ce96a6637600579872243e163bbbbd9c39975019"}} -------------------------------------------------------------------------------- /web3j-app/console/src/test/resources/keyfiles/readme.txt: -------------------------------------------------------------------------------- 1 | Generated using Geth for the sole purpose of testing key management. 2 | 3 | Feel free to do as you please with these files, as they're not used for any of the project 4 | integration testing so will never have any funds in them. 5 | -------------------------------------------------------------------------------- /web3j-app/console/src/test/resources/keyfiles/sample-private-key.txt: -------------------------------------------------------------------------------- 1 | a392604efc2fad9c0b3da43b5f698a2e3f270f170d859912be0d54742275c5f6 -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/ens/EnsResolutionException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.ens; 2 | 3 | /** 4 | * ENS resolution exception. 5 | */ 6 | public class EnsResolutionException extends RuntimeException { 7 | public EnsResolutionException(String message) { 8 | super(message); 9 | } 10 | 11 | public EnsResolutionException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/ens/RecordTypes.java: -------------------------------------------------------------------------------- 1 | package org.web3j.ens; 2 | 3 | import org.web3j.utils.Numeric; 4 | 5 | /** 6 | * Record type interfaces supported by resolvers as per 7 | * EIP-137 8 | */ 9 | public class RecordTypes { 10 | 11 | public static final byte[] ADDR = Numeric.hexStringToByteArray("0x3b3b57de"); 12 | public static final byte[] NAME = Numeric.hexStringToByteArray("0x691f3431"); 13 | public static final byte[] ABI = Numeric.hexStringToByteArray("0x2203ab56"); 14 | public static final byte[] PUB_KEY = Numeric.hexStringToByteArray("0xc8690233"); 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/Web3jService.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol; 2 | 3 | import java.io.IOException; 4 | import java.util.concurrent.CompletableFuture; 5 | 6 | import org.web3j.protocol.core.Request; 7 | import org.web3j.protocol.core.Response; 8 | 9 | /** 10 | * Services API. 11 | */ 12 | public interface Web3jService { 13 | T send( 14 | Request request, Class responseType) throws IOException; 15 | 16 | CompletableFuture sendAsync( 17 | Request request, Class responseType); 18 | } 19 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/admin/methods/response/BooleanResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.admin.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * Boolean response type. 7 | */ 8 | public class BooleanResponse extends Response { 9 | public boolean success() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/admin/methods/response/NewAccountIdentifier.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.admin.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * personal_newAccount 7 | * parity_newAccountFromPhrase 8 | * parity_newAccountFromSecret 9 | * parity_newAccountFromWallet. 10 | */ 11 | public class NewAccountIdentifier extends Response { 12 | public String getAccountId() { 13 | return getResult(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/admin/methods/response/PersonalListAccounts.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.admin.methods.response; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * personal_listAccounts. 9 | */ 10 | public class PersonalListAccounts extends Response> { 11 | public List getAccountIds() { 12 | return getResult(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/admin/methods/response/PersonalSign.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.admin.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * personal_sign 7 | * parity_signMessage. 8 | */ 9 | public class PersonalSign extends Response { 10 | public String getSignedMessage() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/admin/methods/response/PersonalUnlockAccount.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.admin.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * personal_unlockAccount. 7 | */ 8 | public class PersonalUnlockAccount extends Response { 9 | public Boolean accountUnlocked() { 10 | return getResult(); 11 | } 12 | } -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/DefaultBlockParameter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core; 2 | 3 | import java.math.BigInteger; 4 | 5 | /** 6 | * Wrapper for parameter that takes either a block number or block name as input 7 | * 8 | *

See the 9 | * specification for further information. 10 | */ 11 | public interface DefaultBlockParameter { 12 | static DefaultBlockParameter valueOf(BigInteger blockNumber) { 13 | return new DefaultBlockParameterNumber(blockNumber); 14 | } 15 | 16 | static DefaultBlockParameter valueOf(String blockName) { 17 | return DefaultBlockParameterName.fromString(blockName); 18 | } 19 | 20 | String getValue(); 21 | } 22 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/filters/Callback.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.filters; 2 | 3 | /** 4 | * Filter callback interface. 5 | */ 6 | public interface Callback { 7 | void onEvent(T value); 8 | } 9 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/filters/FilterException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.filters; 2 | 3 | /** 4 | * Filter exception wrapper. 5 | */ 6 | public class FilterException extends RuntimeException { 7 | 8 | public FilterException(String message) { 9 | super(message); 10 | } 11 | 12 | public FilterException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/request/ShhFilter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.request; 2 | 3 | /** 4 | * Filter implementation as per docs 5 | */ 6 | public class ShhFilter extends Filter { 7 | private String to; 8 | 9 | public ShhFilter(String to) { 10 | super(); 11 | this.to = to; 12 | } 13 | 14 | public String getTo() { 15 | return to; 16 | } 17 | 18 | @Override 19 | ShhFilter getThis() { 20 | return this; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/DbGetHex.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * db_getHex. 7 | */ 8 | public class DbGetHex extends Response { 9 | 10 | public String getStoredValue() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/DbGetString.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * db_getString. 7 | */ 8 | public class DbGetString extends Response { 9 | 10 | public String getStoredValue() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/DbPutHex.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * db_putHex. 7 | */ 8 | public class DbPutHex extends Response { 9 | 10 | public boolean valueStored() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/DbPutString.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * db_putString. 7 | */ 8 | public class DbPutString extends Response { 9 | 10 | public boolean valueStored() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthAccounts.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * eth_accounts. 9 | */ 10 | public class EthAccounts extends Response> { 11 | public List getAccounts() { 12 | return getResult(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthBlockNumber.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_blockNumber. 10 | */ 11 | public class EthBlockNumber extends Response { 12 | public BigInteger getBlockNumber() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthCall.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_call. 7 | */ 8 | public class EthCall extends Response { 9 | public String getValue() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthCoinbase.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_coinbase. 7 | */ 8 | public class EthCoinbase extends Response { 9 | public String getAddress() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthCompileLLL.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_compileLLL. 7 | */ 8 | public class EthCompileLLL extends Response { 9 | public String getCompiledSourceCode() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthCompileSerpent.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_compileSerpent. 7 | */ 8 | public class EthCompileSerpent extends Response { 9 | public String getCompiledSourceCode() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthEstimateGas.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_estimateGas. 10 | */ 11 | public class EthEstimateGas extends Response { 12 | public BigInteger getAmountUsed() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthFilter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_newFilter. 10 | */ 11 | public class EthFilter extends Response { 12 | public BigInteger getFilterId() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGasPrice.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_gasPrice. 10 | */ 11 | public class EthGasPrice extends Response { 12 | public BigInteger getGasPrice() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetBalance.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getBalance. 10 | */ 11 | public class EthGetBalance extends Response { 12 | public BigInteger getBalance() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetBlockTransactionCountByHash.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getBlockTransactionCountByHash. 10 | */ 11 | public class EthGetBlockTransactionCountByHash extends Response { 12 | public BigInteger getTransactionCount() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetBlockTransactionCountByNumber.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getBlockTransactionCountByNumber. 10 | */ 11 | public class EthGetBlockTransactionCountByNumber extends Response { 12 | public BigInteger getTransactionCount() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetCode.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_getCode. 7 | */ 8 | public class EthGetCode extends Response { 9 | public String getCode() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetCompilers.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * eth_getCompilers. 9 | */ 10 | public class EthGetCompilers extends Response> { 11 | public List getCompilers() { 12 | return getResult(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetStorageAt.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_getStorageAt. 7 | */ 8 | public class EthGetStorageAt extends Response { 9 | public String getData() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetTransactionCount.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getTransactionCount. 10 | */ 11 | public class EthGetTransactionCount extends Response { 12 | public BigInteger getTransactionCount() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetUncleCountByBlockHash.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getUncleCountByBlockHash. 10 | */ 11 | public class EthGetUncleCountByBlockHash extends Response { 12 | public BigInteger getUncleCount() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetUncleCountByBlockNumber.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_getUncleCountByBlockNumber. 10 | */ 11 | public class EthGetUncleCountByBlockNumber extends Response { 12 | public BigInteger getUncleCount() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthGetWork.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * eth_getWork. 9 | */ 10 | public class EthGetWork extends Response> { 11 | 12 | public String getCurrentBlockHeaderPowHash() { 13 | return getResult().get(0); 14 | } 15 | 16 | public String getSeedHashForDag() { 17 | return getResult().get(1); 18 | } 19 | 20 | public String getBoundaryCondition() { 21 | return getResult().get(2); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthHashrate.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * eth_hashrate. 10 | */ 11 | public class EthHashrate extends Response { 12 | public BigInteger getHashrate() { 13 | return Numeric.decodeQuantity(getResult()); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthMining.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_mining. 7 | */ 8 | public class EthMining extends Response { 9 | public boolean isMining() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthProtocolVersion.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_protocolVersion. 7 | */ 8 | public class EthProtocolVersion extends Response { 9 | public String getProtocolVersion() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthSendRawTransaction.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_sendRawTransaction. 7 | */ 8 | public class EthSendRawTransaction extends Response { 9 | public String getTransactionHash() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthSendTransaction.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_sendTransaction. 7 | */ 8 | public class EthSendTransaction extends Response { 9 | public String getTransactionHash() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthSign.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_sign. 7 | */ 8 | public class EthSign extends Response { 9 | public String getSignature() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthSubmitHashrate.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_submitHashrate. 7 | */ 8 | public class EthSubmitHashrate extends Response { 9 | 10 | public boolean submissionSuccessful() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthSubmitWork.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_submitWork. 7 | */ 8 | public class EthSubmitWork extends Response { 9 | 10 | public boolean solutionValid() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/EthUninstallFilter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * eth_uninstallFilter. 7 | */ 8 | public class EthUninstallFilter extends Response { 9 | public boolean isUninstalled() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/MinerStartResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | public class MinerStartResponse extends Response { 6 | } 7 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/NetListening.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * net_listening. 7 | */ 8 | public class NetListening extends Response { 9 | public boolean isListening() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/NetPeerCount.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * net_peerCount. 10 | */ 11 | public class NetPeerCount extends Response { 12 | 13 | public BigInteger getQuantity() { 14 | return Numeric.decodeQuantity(getResult()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/NetVersion.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * net_version. 7 | */ 8 | public class NetVersion extends Response { 9 | public String getNetVersion() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhAddToGroup.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_addToGroup. 7 | */ 8 | public class ShhAddToGroup extends Response { 9 | 10 | public boolean addedToGroup() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhHasIdentity.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_hasIdentity. 7 | */ 8 | public class ShhHasIdentity extends Response { 9 | 10 | public boolean hasPrivateKeyForIdentity() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhNewFilter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.math.BigInteger; 4 | 5 | import org.web3j.protocol.core.Response; 6 | import org.web3j.utils.Numeric; 7 | 8 | /** 9 | * shh_newFilter. 10 | */ 11 | public class ShhNewFilter extends Response { 12 | 13 | public BigInteger getFilterId() { 14 | return Numeric.decodeQuantity(getResult()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhNewGroup.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_newGroup. 7 | */ 8 | public class ShhNewGroup extends Response { 9 | 10 | public String getAddress() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhNewIdentity.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_newIdentity. 7 | */ 8 | public class ShhNewIdentity extends Response { 9 | 10 | public String getAddress() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhPost.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_post. 7 | */ 8 | public class ShhPost extends Response { 9 | 10 | public boolean messageSent() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhUninstallFilter.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_uninstallFilter. 7 | */ 8 | public class ShhUninstallFilter extends Response { 9 | 10 | public boolean isUninstalled() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/ShhVersion.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * shh_version. 7 | */ 8 | public class ShhVersion extends Response { 9 | 10 | public String getVersion() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/TxPoolContent.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | import java.util.stream.Collectors; 6 | import org.web3j.protocol.core.Response; 7 | 8 | /** 9 | * @author bing on 2018/6/28 10 | */ 11 | public class TxPoolContent extends Response>>> { 12 | public Map>> getTxPoolContent() { 13 | return getResult(); 14 | } 15 | 16 | public List getPendingTransactions() { 17 | return getResult().get("pending").values().stream().flatMap(m -> m.values().stream()).collect(Collectors.toList()); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/VoidResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * Null response object returned by the below methods. 7 | *

    8 | *
  • personal_setAccountName
  • 9 | *
  • personal_setAccountMeta
  • 10 | *
11 | */ 12 | public class VoidResponse extends Response { 13 | public boolean isValid() { 14 | return !hasError(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/Web3ClientVersion.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * web3_clientVersion. 7 | */ 8 | public class Web3ClientVersion extends Response { 9 | 10 | public String getWeb3ClientVersion() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/core/methods/response/Web3Sha3.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * web3_sha3. 7 | */ 8 | public class Web3Sha3 extends Response { 9 | } 10 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/deserializer/KeepAsJsonDeserialzier.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.deserializer; 2 | 3 | import java.io.IOException; 4 | 5 | import com.fasterxml.jackson.core.JsonParser; 6 | import com.fasterxml.jackson.core.JsonProcessingException; 7 | import com.fasterxml.jackson.core.TreeNode; 8 | import com.fasterxml.jackson.databind.DeserializationContext; 9 | import com.fasterxml.jackson.databind.JsonDeserializer; 10 | 11 | public class KeepAsJsonDeserialzier extends JsonDeserializer { 12 | 13 | @Override 14 | public String deserialize(JsonParser jp, DeserializationContext ctxt) 15 | throws IOException, JsonProcessingException { 16 | 17 | TreeNode tree = jp.getCodec().readTree(jp); 18 | return tree.toString(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/exceptions/ClientConnectionException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.exceptions; 2 | 3 | /** 4 | * Client connection exception. 5 | */ 6 | public class ClientConnectionException extends RuntimeException { 7 | public ClientConnectionException(String message) { 8 | super(message); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/exceptions/TransactionException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.exceptions; 2 | 3 | /** 4 | * Transaction timeout exception indicates that we have breached some threshold waiting for a 5 | * transaction to execute. 6 | */ 7 | public class TransactionException extends Exception { 8 | public TransactionException(String message) { 9 | super(message); 10 | } 11 | 12 | public TransactionException(Throwable cause) { 13 | super(cause); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/ipc/IOFacade.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.ipc; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Simple IO facade for the *nix and Windows IPC implementations. 7 | */ 8 | public interface IOFacade { 9 | void write(String payload) throws IOException; 10 | 11 | String read() throws IOException; 12 | 13 | void close() throws IOException; 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/ipc/UnixIpcService.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.ipc; 2 | 3 | /** 4 | * Unix domain socket implementation of our services API. 5 | */ 6 | public class UnixIpcService extends IpcService { 7 | private final String ipcSocketPath; 8 | 9 | public UnixIpcService(String ipcSocketPath) { 10 | super(); 11 | this.ipcSocketPath = ipcSocketPath; 12 | } 13 | 14 | public UnixIpcService(String ipcSocketPath, boolean includeRawResponse) { 15 | super(includeRawResponse); 16 | this.ipcSocketPath = ipcSocketPath; 17 | } 18 | 19 | @Override 20 | protected IOFacade getIO() { 21 | return new UnixDomainSocket(ipcSocketPath); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/protocol/ipc/WindowsIpcService.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.ipc; 2 | 3 | /** 4 | * Windows named pipe implementation of our services API. 5 | * 6 | *

This implementation is experimental. 7 | */ 8 | public class WindowsIpcService extends IpcService { 9 | private final String ipcSocketPath; 10 | 11 | public WindowsIpcService(String ipcSocketPath) { 12 | super(); 13 | this.ipcSocketPath = ipcSocketPath; 14 | } 15 | 16 | public WindowsIpcService(String ipcSocketPath, boolean includeRawResponse) { 17 | super(includeRawResponse); 18 | this.ipcSocketPath = ipcSocketPath; 19 | } 20 | 21 | @Override 22 | protected IOFacade getIO() { 23 | return new WindowsNamedPipe(ipcSocketPath); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/tx/ChainId.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tx; 2 | 3 | /** 4 | * Ethereum chain ids as per 5 | * EIP-155. 6 | */ 7 | public class ChainId { 8 | public static final byte NONE = -1; 9 | public static final byte MAINNET = 1; 10 | public static final byte EXPANSE_MAINNET = 2; 11 | public static final byte ROPSTEN = 3; 12 | public static final byte RINKEBY = 4; 13 | public static final byte ROOTSTOCK_MAINNET = 30; 14 | public static final byte ROOTSTOCK_TESTNET = 31; 15 | public static final byte KOVAN = 42; 16 | public static final byte ETHEREUM_CLASSIC_MAINNET = 61; 17 | public static final byte ETHEREUM_CLASSIC_TESTNET = 62; 18 | } 19 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/tx/exceptions/ContractCallException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tx.exceptions; 2 | 3 | /** 4 | * Exception resulting from issues calling methods on Smart Contracts. 5 | */ 6 | public class ContractCallException extends RuntimeException { 7 | 8 | public ContractCallException(String message) { 9 | super(message); 10 | } 11 | 12 | public ContractCallException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/tx/response/Callback.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tx.response; 2 | 3 | import org.web3j.protocol.core.methods.response.TransactionReceipt; 4 | 5 | /** 6 | * Transaction receipt processor callback. 7 | */ 8 | public interface Callback { 9 | void accept(TransactionReceipt transactionReceipt); 10 | 11 | void exception(Exception exception); 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/tx/response/NoOpProcessor.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tx.response; 2 | 3 | import java.io.IOException; 4 | 5 | import org.web3j.protocol.Web3j; 6 | import org.web3j.protocol.core.methods.response.TransactionReceipt; 7 | import org.web3j.protocol.exceptions.TransactionException; 8 | 9 | /** 10 | * Return an {@link EmptyTransactionReceipt} receipt back to callers containing only the 11 | * transaction hash. 12 | */ 13 | public class NoOpProcessor extends TransactionReceiptProcessor { 14 | 15 | public NoOpProcessor(Web3j web3j) { 16 | super(web3j); 17 | } 18 | 19 | @Override 20 | public TransactionReceipt waitForTransactionReceipt(String transactionHash) 21 | throws IOException, TransactionException { 22 | return new EmptyTransactionReceipt(transactionHash); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/java/org/web3j/utils/Files.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.IOException; 6 | 7 | /** 8 | * File utility functions. 9 | */ 10 | public class Files { 11 | 12 | private Files() { } 13 | 14 | public static byte[] readBytes(File file) throws IOException { 15 | byte[] bytes = new byte[(int) file.length()]; 16 | try (FileInputStream fileInputStream = new FileInputStream(file)) { 17 | fileInputStream.read(bytes); 18 | } 19 | return bytes; 20 | } 21 | 22 | public static String readString(File file) throws IOException { 23 | return new String(readBytes(file)); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/resources/solidity/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | set -o pipefail 5 | 6 | targets=" 7 | ens/ENS 8 | ens/PublicResolver 9 | " 10 | 11 | for target in ${targets}; do 12 | dirName=$(dirname $target) 13 | fileName=$(basename $target) 14 | 15 | cd $dirName 16 | echo "Compiling Solidity file ${fileName}.sol:" 17 | solc --bin --abi --optimize --overwrite ${fileName}.sol -o build/ 18 | echo "Complete" 19 | 20 | echo "Generating web3j bindings" 21 | web3j solidity generate \ 22 | build/${fileName}.bin \ 23 | build/${fileName}.abi \ 24 | -p org.web3j.ens.contracts.generated \ 25 | -o ../../../../main/java/ > /dev/null 26 | echo "Complete" 27 | 28 | cd - 29 | done 30 | -------------------------------------------------------------------------------- /web3j-app/core/src/main/resources/solidity/readme.txt: -------------------------------------------------------------------------------- 1 | Source: https://github.com/ethereum/ens/tree/5108f51d656f201dc0054e55f5fd000d00ef9ef3/contracts 2 | 3 | We exclude the LLL implementations as web3j only supports Solidity smart contract wrappers. 4 | -------------------------------------------------------------------------------- /web3j-app/core/src/test/java/org/web3j/TempFileProvider.java: -------------------------------------------------------------------------------- 1 | package org.web3j; 2 | 3 | import java.io.File; 4 | import java.nio.file.Files; 5 | 6 | import org.junit.After; 7 | import org.junit.Before; 8 | 9 | /** 10 | * Base class for tests wishing to use temporary file locations. 11 | */ 12 | public class TempFileProvider { 13 | private File tempDir; 14 | protected String tempDirPath; 15 | 16 | @Before 17 | public void setUp() throws Exception { 18 | tempDir = Files.createTempDirectory( 19 | TempFileProvider.class.getSimpleName()).toFile(); 20 | tempDirPath = tempDir.getPath(); 21 | } 22 | 23 | @After 24 | public void tearDown() throws Exception { 25 | for (File file:tempDir.listFiles()) { 26 | file.delete(); 27 | } 28 | tempDir.delete(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /web3j-app/core/src/test/java/org/web3j/protocol/core/JsonRpc2_0Web3jTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.core; 2 | 3 | import java.util.concurrent.ScheduledExecutorService; 4 | 5 | import org.junit.Test; 6 | 7 | import org.web3j.protocol.Web3j; 8 | import org.web3j.protocol.Web3jService; 9 | 10 | import static org.mockito.Mockito.mock; 11 | import static org.mockito.Mockito.verify; 12 | 13 | public class JsonRpc2_0Web3jTest { 14 | 15 | @Test 16 | public void testStopExecutorOnShutdown() { 17 | ScheduledExecutorService scheduledExecutorService = mock(ScheduledExecutorService.class); 18 | 19 | Web3j web3j = Web3j.build( 20 | mock(Web3jService.class), 10, scheduledExecutorService 21 | ); 22 | 23 | web3j.shutdown(); 24 | 25 | verify(scheduledExecutorService).shutdown(); 26 | } 27 | } -------------------------------------------------------------------------------- /web3j-app/core/src/test/java/org/web3j/utils/AsyncTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | import java.util.concurrent.ExecutionException; 4 | 5 | import org.junit.Test; 6 | 7 | import org.web3j.utils.Async; 8 | 9 | import static org.hamcrest.core.Is.is; 10 | import static org.junit.Assert.assertThat; 11 | 12 | public class AsyncTest { 13 | 14 | @Test 15 | public void testRun() throws Exception { 16 | assertThat(Async.run(() -> "").get(), is("")); 17 | } 18 | 19 | @Test(expected = ExecutionException.class) 20 | public void testRunException() throws Exception { 21 | Async.run(() -> { 22 | throw new RuntimeException(""); 23 | }).get(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /web3j-app/core/src/test/java/org/web3j/utils/VersionTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | import java.io.IOException; 4 | 5 | import org.junit.Test; 6 | 7 | import static org.hamcrest.core.Is.is; 8 | import static org.junit.Assert.assertThat; 9 | import static org.web3j.utils.Version.DEFAULT; 10 | import static org.web3j.utils.Version.getTimestamp; 11 | import static org.web3j.utils.Version.getVersion; 12 | 13 | public class VersionTest { 14 | 15 | @Test 16 | public void testGetVersion() throws IOException { 17 | assertThat(getVersion(), is(DEFAULT)); 18 | } 19 | 20 | @Test 21 | public void testGetTimestamp() throws IOException { 22 | assertThat(getTimestamp(), is("2017-01-31 01:21:09.843 UTC")); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /web3j-app/core/src/test/resources/web3j-version.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 31 12:21:09 AEDT 2017 2 | version=none 3 | timestamp=2017-01-31 01\:21\:09.843 UTC 4 | -------------------------------------------------------------------------------- /web3j-app/crypto/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'web3j Ethereum crypto library' 3 | 4 | dependencies { 5 | compile project(':rlp'), 6 | project(':utils'), 7 | "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion", 8 | "org.slf4j:slf4j-api:$slf4jVersion" 9 | } 10 | 11 | configurations { 12 | testArtifacts.extendsFrom testRuntime 13 | } 14 | 15 | artifacts { 16 | testArtifacts testJar 17 | } -------------------------------------------------------------------------------- /web3j-app/crypto/src/main/java/org/web3j/crypto/CipherException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.crypto; 2 | 3 | /** 4 | * Cipher exception wrapper. 5 | */ 6 | public class CipherException extends Exception { 7 | 8 | public CipherException(String message) { 9 | super(message); 10 | } 11 | 12 | public CipherException(Throwable cause) { 13 | super(cause); 14 | } 15 | 16 | public CipherException(String message, Throwable cause) { 17 | super(message, cause); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /web3j-app/crypto/src/test/java/org/web3j/crypto/SecureRandomUtilsTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.crypto; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.assertFalse; 6 | import static org.web3j.crypto.SecureRandomUtils.isAndroidRuntime; 7 | import static org.web3j.crypto.SecureRandomUtils.secureRandom; 8 | 9 | public class SecureRandomUtilsTest { 10 | 11 | @Test 12 | public void testSecureRandom() { 13 | secureRandom().nextInt(); 14 | } 15 | 16 | @Test 17 | public void testIsNotAndroidRuntime() { 18 | assertFalse(isAndroidRuntime()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /web3j-app/crypto/src/test/resources/keyfiles/UTC--2016-11-03T05-55-06.340672473Z--ef678007d18427e6022059dbc264f27507cd1ffc: -------------------------------------------------------------------------------- 1 | {"address":"ef678007d18427e6022059dbc264f27507cd1ffc","crypto":{"cipher":"aes-128-ctr","ciphertext":"e1a92bbba0920bdd234b792eac5c662511cffc8714e83e668ddae0507abe91e3","cipherparams":{"iv":"683392b3259b5dcc48516b22b0835972"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"f89eaf8557a983755043ed490cbaf2c075f6ee5e53bc354c4f9d485f9d6d3b1b"},"mac":"f8fe5929187d70ee1e659e6d2e669e778e8792012ecfc1a7b1bb0ee8d4a1e454"},"id":"6ded30ab-7bdc-47da-b7ff-ccfdb2e62f56","version":3} -------------------------------------------------------------------------------- /web3j-app/crypto/src/test/resources/keyfiles/UTC--2016-11-03T07-47-45.988Z--4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818: -------------------------------------------------------------------------------- 1 | {"version":3,"id":"cb3dff1c-f9f8-42a1-9bf7-a5b9838697b9","address":"4f9c1a1efaa7d81ba1cabf07f2c3a5ac5cf4f818","Crypto":{"ciphertext":"ac2973d1fff7a826fa19cb548fec4d341fbf16f2cf5031d4a902312a0416a78a","cipherparams":{"iv":"86c8eb32a78eb5a6eaa7de29f92318f4"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"37a6ce728936771a8337397449525bc6879196fb7b57070ddb0d38d3a94f4642","n":1024,"r":8,"p":1},"mac":"59b6206df4a55abf40357e56ce96a6637600579872243e163bbbbd9c39975019"}} -------------------------------------------------------------------------------- /web3j-app/crypto/src/test/resources/keyfiles/readme.txt: -------------------------------------------------------------------------------- 1 | Generated using Geth for the sole purpose of testing key management. 2 | 3 | Feel free to do as you please with these files, as they're not used for any of the project 4 | integration testing so will never have any funds in them. 5 | -------------------------------------------------------------------------------- /web3j-app/docs/requirements.txt: -------------------------------------------------------------------------------- 1 | Sphinx==1.3.6 2 | watchdog==0.8.3 3 | -------------------------------------------------------------------------------- /web3j-app/docs/source/_static/web3j.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/_static/web3j.png -------------------------------------------------------------------------------- /web3j-app/docs/source/companies.rst: -------------------------------------------------------------------------------- 1 | Companies using web3j 2 | ===================== 3 | 4 | - `Amberdata `_ 5 | - `blk.io `_ 6 | - `comitFS `_ 7 | - `ConsenSys `_ 8 | - `ING `_ 9 | - `Othera `_ 10 | - `TrustWallet `_ 11 | -------------------------------------------------------------------------------- /web3j-app/docs/source/credits.rst: -------------------------------------------------------------------------------- 1 | Thanks and Credits 2 | ================== 3 | 4 | - The `Nethereum `_ project for the inspiration 5 | - `Othera `_ for the great things they are building on the platform 6 | - `Finhaus `_ guys for putting me onto Nethereum 7 | - `bitcoinj `_ for the reference Elliptic Curve crypto implementation 8 | - Everyone involved in the Ethererum project and its surrounding ecosystem 9 | - And of course the users of the library, who've provided valuable input & feedback 10 | -------------------------------------------------------------------------------- /web3j-app/docs/source/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/favicon.ico -------------------------------------------------------------------------------- /web3j-app/docs/source/images/infura_cert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/infura_cert.png -------------------------------------------------------------------------------- /web3j-app/docs/source/images/pending_transaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/pending_transaction.png -------------------------------------------------------------------------------- /web3j-app/docs/source/images/smart_contract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/smart_contract.png -------------------------------------------------------------------------------- /web3j-app/docs/source/images/transaction_process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/transaction_process.png -------------------------------------------------------------------------------- /web3j-app/docs/source/images/web3j_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/web3j_network.png -------------------------------------------------------------------------------- /web3j-app/docs/source/images/web3j_transaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/docs/source/images/web3j_transaction.png -------------------------------------------------------------------------------- /web3j-app/docs/source/projects.rst: -------------------------------------------------------------------------------- 1 | Projects using web3j 2 | ==================== 3 | 4 | - `Ether Wallet `_ by 5 | `@vikulin `_ 6 | - `eth-contract-api `_ by 7 | `@adridadou `_ 8 | - `Ethereum Paper Wallet `_ by 9 | `@matthiaszimmermann `_ 10 | - `web3j-scala `_ by 11 | `@mslinn `_ 12 | -------------------------------------------------------------------------------- /web3j-app/docs/source/quickstart.rst: -------------------------------------------------------------------------------- 1 | Quickstart 2 | ========== 3 | 4 | A `web3j sample project `_ is available that 5 | demonstrates a number of core features of Ethereum with web3j, including: 6 | 7 | - Connecting to a node on the Ethereum network 8 | - Loading an Ethereum wallet file 9 | - Sending Ether from one address to another 10 | - Deploying a smart contract to the network 11 | - Reading a value from the deployed smart contract 12 | - Updating a value in the deployed smart contract 13 | - Viewing an event logged by the smart contract 14 | -------------------------------------------------------------------------------- /web3j-app/docs/watch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | command -v watchmedo >/dev/null 2>&1 || { printf >&2 "Please install watch via pip:\npip install watch\n"; exit 1; } 4 | 5 | make clean html 6 | 7 | watchmedo shell-command \ 8 | --patterns='*.rst;*.py' \ 9 | --ignore-pattern='_build/*' \ 10 | --recursive \ 11 | --command='make html' \ 12 | --wait \ 13 | source 14 | 15 | -------------------------------------------------------------------------------- /web3j-app/geth/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Geth JSON-RPC API' 3 | 4 | dependencies { 5 | compile project(':core') 6 | testCompile project(path: ':core', configuration: 'testArtifacts') 7 | } 8 | -------------------------------------------------------------------------------- /web3j-app/geth/src/main/java/org/web3j/protocol/geth/response/PersonalEcRecover.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.geth.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * personal_ecRecover. 7 | */ 8 | public class PersonalEcRecover extends Response { 9 | public String getRecoverAccountId() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/geth/src/main/java/org/web3j/protocol/geth/response/PersonalImportRawKey.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.geth.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * personal_importRawKey. 7 | */ 8 | public class PersonalImportRawKey extends Response { 9 | public String getAccountId() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /web3j-app/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 29 16:19:47 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip 7 | -------------------------------------------------------------------------------- /web3j-app/infura/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java-library' 2 | description 'web3j customisations for working with Infura.io' 3 | 4 | dependencies { 5 | compile project(':core') 6 | } 7 | -------------------------------------------------------------------------------- /web3j-app/integration-tests/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'web3j integration tests' 3 | 4 | dependencies { 5 | compile project(':core'), 6 | project(':parity') 7 | testCompile "ch.qos.logback:logback-core:$logbackVersion", 8 | "ch.qos.logback:logback-classic:$logbackVersion", 9 | "com.carrotsearch:junit-benchmarks:$junitBenchmarkVersion" 10 | } 11 | 12 | // we don't want integration tests to run by default 13 | test.enabled = project.hasProperty('integration-tests') ? 14 | project.getProperty('integration-tests') : false 15 | -------------------------------------------------------------------------------- /web3j-app/integration-tests/scripts/generateWrappers.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | targets=" 4 | arrays/build/Arrays 5 | contracts/build/HumanStandardToken 6 | fibonacci/build/Fibonacci 7 | greeter/build/Greeter 8 | shipit/build/ShipIt 9 | simplestorage/build/SimpleStorage 10 | " 11 | 12 | for target in ${targets}; do 13 | 14 | web3j solidity generate \ 15 | ../../codegen/src/test/resources/solidity/${target}.bin \ 16 | ../../codegen/src/test/resources/solidity/${target}.abi \ 17 | -o /Users/Conor/code/java/web3j/integration-tests/src/test/java \ 18 | -p org.web3j.generated 19 | 20 | done -------------------------------------------------------------------------------- /web3j-app/integration-tests/src/test/java/org/web3j/ens/EnsIT.java: -------------------------------------------------------------------------------- 1 | package org.web3j.ens; 2 | 3 | import org.junit.Test; 4 | 5 | import org.web3j.protocol.Web3j; 6 | import org.web3j.protocol.http.HttpService; 7 | 8 | import static org.hamcrest.CoreMatchers.is; 9 | import static org.junit.Assert.assertThat; 10 | 11 | public class EnsIT { 12 | 13 | @Test 14 | public void testEns() throws Exception { 15 | 16 | Web3j web3j = Web3j.build(new HttpService()); 17 | EnsResolver ensResolver = new EnsResolver(web3j); 18 | 19 | assertThat(ensResolver.resolve("web3j.test"), 20 | is("0x19e03255f667bdfd50a32722df860b1eeaf4d635")); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /web3j-app/integration-tests/src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /web3j-app/logos/web3j-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/logos/web3j-black.png -------------------------------------------------------------------------------- /web3j-app/logos/web3j-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/logos/web3j-orange.png -------------------------------------------------------------------------------- /web3j-app/logos/web3j-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bing-chou/etherscan-explorer/beb0d132e35a70072e219ee9da61fddc28fa32d2/web3j-app/logos/web3j-small.png -------------------------------------------------------------------------------- /web3j-app/parity/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Parity JSON-RPC API' 3 | 4 | dependencies { 5 | compile project(':core') 6 | testCompile project(path: ':core', configuration: 'testArtifacts'), 7 | "nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion" 8 | } 9 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityAddressesResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import java.util.ArrayList; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * parity_listAccounts 9 | * parity_getGetDappAddresses 10 | * parity_getGetNewDappsAddresses 11 | * parity_importGethAccounts 12 | * parity_listGethAccounts. 13 | */ 14 | public class ParityAddressesResponse extends Response> { 15 | public ArrayList getAddresses() { 16 | return getResult(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityDefaultAddressResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * parity_getDappDefaultAddress 7 | * parity_getNewDappsDefaultAddress. 8 | */ 9 | public class ParityDefaultAddressResponse extends Response { 10 | public String getAddress() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityDeriveAddress.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * parity_deriveAddressHash 7 | * parity_deriveAddressIndex. 8 | */ 9 | public class ParityDeriveAddress extends Response { 10 | public String getAddress() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityExportAccount.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import org.web3j.crypto.WalletFile; 4 | import org.web3j.protocol.core.Response; 5 | 6 | /** 7 | * parity_ExportAccount. 8 | */ 9 | public class ParityExportAccount extends Response { 10 | public WalletFile getWallet() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityFullTraceResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * trace_rawTransaction 7 | * trace_replayTransaction. 8 | */ 9 | public class ParityFullTraceResponse extends Response { 10 | public FullTraceInfo getFullTraceInfo() { 11 | return getResult(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityListRecentDapps.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import java.util.ArrayList; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * parity_ListRecentDapps. 9 | */ 10 | public class ParityListRecentDapps extends Response> { 11 | public ArrayList getDappsIds() { 12 | return getResult(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityTraceGet.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import org.web3j.protocol.core.Response; 4 | 5 | /** 6 | * trace_get. 7 | */ 8 | public class ParityTraceGet extends Response { 9 | public Trace getTrace() { 10 | return getResult(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/parity/src/main/java/org/web3j/protocol/parity/methods/response/ParityTracesResponse.java: -------------------------------------------------------------------------------- 1 | package org.web3j.protocol.parity.methods.response; 2 | 3 | import java.util.List; 4 | 5 | import org.web3j.protocol.core.Response; 6 | 7 | /** 8 | * trace_block 9 | * trace_filter 10 | * trace_transaction. 11 | */ 12 | public class ParityTracesResponse extends Response> { 13 | public List getTraces() { 14 | return getResult(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /web3j-app/rlp/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Ethereum Recursive Length Prefix (RLP) encoding for serializing objects' 3 | 4 | dependencies { 5 | compile project(':utils') 6 | } 7 | -------------------------------------------------------------------------------- /web3j-app/rlp/src/main/java/org/web3j/rlp/RlpList.java: -------------------------------------------------------------------------------- 1 | package org.web3j.rlp; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | /** 7 | * RLP list type. 8 | */ 9 | public class RlpList implements RlpType { 10 | private final List values; 11 | 12 | public RlpList(RlpType... values) { 13 | this.values = Arrays.asList(values); 14 | } 15 | 16 | public RlpList(List values) { 17 | this.values = values; 18 | } 19 | 20 | public List getValues() { 21 | return values; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web3j-app/rlp/src/main/java/org/web3j/rlp/RlpType.java: -------------------------------------------------------------------------------- 1 | package org.web3j.rlp; 2 | 3 | /** 4 | * Base RLP type. 5 | */ 6 | public interface RlpType { 7 | } 8 | -------------------------------------------------------------------------------- /web3j-app/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'base' 2 | 3 | include 'abi' 4 | include 'codegen' 5 | include 'console' 6 | include 'core' 7 | include 'crypto' 8 | include 'geth' 9 | include 'infura' 10 | include 'integration-tests' 11 | include 'parity' 12 | include 'rlp' 13 | include 'tuples' 14 | include 'utils' 15 | include 'app' 16 | -------------------------------------------------------------------------------- /web3j-app/tuples/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Simple Java tuples library' 3 | -------------------------------------------------------------------------------- /web3j-app/tuples/src/main/java/org/web3j/tuples/EmptyTuple.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tuples; 2 | 3 | /** 4 | * Empty Tuple type. 5 | */ 6 | public class EmptyTuple implements Tuple { 7 | 8 | @Override 9 | public int getSize() { 10 | return 0; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /web3j-app/tuples/src/main/java/org/web3j/tuples/Tuple.java: -------------------------------------------------------------------------------- 1 | package org.web3j.tuples; 2 | 3 | /** 4 | * Tuple abstraction. 5 | */ 6 | public interface Tuple { 7 | 8 | int getSize(); 9 | } 10 | -------------------------------------------------------------------------------- /web3j-app/utils/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | description 'Minimal set of web3j utility classes' 3 | 4 | dependencies { 5 | compile "org.bouncycastle:bcprov-jdk15on:$bouncycastleVersion" 6 | } 7 | -------------------------------------------------------------------------------- /web3j-app/utils/src/main/java/org/web3j/exceptions/MessageDecodingException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.exceptions; 2 | 3 | /** 4 | * Encoding exception. 5 | */ 6 | public class MessageDecodingException extends RuntimeException { 7 | public MessageDecodingException(String message) { 8 | super(message); 9 | } 10 | 11 | public MessageDecodingException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/utils/src/main/java/org/web3j/exceptions/MessageEncodingException.java: -------------------------------------------------------------------------------- 1 | package org.web3j.exceptions; 2 | 3 | /** 4 | * Encoding exception. 5 | */ 6 | public class MessageEncodingException extends RuntimeException { 7 | public MessageEncodingException(String message) { 8 | super(message); 9 | } 10 | 11 | public MessageEncodingException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /web3j-app/utils/src/main/java/org/web3j/utils/Assertions.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | /** 4 | * Assertion utility functions. 5 | */ 6 | public class Assertions { 7 | 8 | /** 9 | * Verify that the provided precondition holds true. 10 | * 11 | * @param assertionResult assertion value 12 | * @param errorMessage error message if precondition failure 13 | */ 14 | public static void verifyPrecondition(boolean assertionResult, String errorMessage) { 15 | if (!assertionResult) { 16 | throw new RuntimeException(errorMessage); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /web3j-app/utils/src/main/java/org/web3j/utils/Bytes.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | import java.util.Arrays; 4 | 5 | /** 6 | * Byte array utility functions. 7 | */ 8 | public class Bytes { 9 | 10 | private Bytes() {} 11 | 12 | public static byte[] trimLeadingBytes(byte[] bytes, byte b) { 13 | int offset = 0; 14 | for (; offset < bytes.length - 1; offset++) { 15 | if (bytes[offset] != b) { 16 | break; 17 | } 18 | } 19 | return Arrays.copyOfRange(bytes, offset, bytes.length); 20 | } 21 | 22 | public static byte[] trimLeadingZeroes(byte[] bytes) { 23 | return trimLeadingBytes(bytes, (byte) 0); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /web3j-app/utils/src/test/java/org/web3j/utils/AssertionsTest.java: -------------------------------------------------------------------------------- 1 | package org.web3j.utils; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.web3j.utils.Assertions.verifyPrecondition; 6 | 7 | public class AssertionsTest { 8 | 9 | @Test 10 | public void testVerifyPrecondition() { 11 | verifyPrecondition(true, ""); 12 | } 13 | 14 | @Test(expected = RuntimeException.class) 15 | public void testVerifyPreconditionFailure() { 16 | verifyPrecondition(false, ""); 17 | } 18 | } 19 | --------------------------------------------------------------------------------