├── .gitignore ├── LICENSE ├── README.md ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── mvc │ │ ├── PolymorphicApplication.java │ │ └── polymorphic │ │ ├── common │ │ ├── BlockChainService.java │ │ ├── BlockConfig.java │ │ ├── BlockException.java │ │ ├── BlockResult.java │ │ ├── SpringContextUtil.java │ │ ├── bean │ │ │ ├── BchTransaction.java │ │ │ └── BtcTransaction.java │ │ └── interceptor │ │ │ └── ServiceAuthRestInterceptor.java │ │ ├── configuration │ │ ├── CorsConfig.java │ │ ├── RpcConfiguration.java │ │ ├── SwaggerConfig.java │ │ └── TokenConfig.java │ │ ├── controller │ │ ├── BlockController.java │ │ ├── Controller.java │ │ ├── DemoController.java │ │ └── EthereumController.java │ │ ├── exceptions │ │ └── ExceededGasException.java │ │ ├── model │ │ ├── Account.java │ │ ├── ApprovalEventResponse.java │ │ ├── Block.java │ │ ├── EthTransaction.java │ │ ├── Filter.java │ │ ├── HumanStandardToken.java │ │ ├── JsonCredentials.java │ │ ├── Method.java │ │ ├── NodeConfiguration.java │ │ ├── Receipt.java │ │ ├── TransactionResponse.java │ │ ├── TransferEventResponse.java │ │ └── dto │ │ │ ├── BalanceDTO.java │ │ │ ├── ExportAccountDTO.java │ │ │ ├── ImportRawKeyDTO.java │ │ │ ├── NewAccountDTO.java │ │ │ ├── PersonalByPrivateKeyDTO.java │ │ │ ├── RawTransactionDTO.java │ │ │ ├── SendTransactionDTO.java │ │ │ ├── TransactionByHashDTO.java │ │ │ └── TransactionCountDTO.java │ │ ├── service │ │ ├── BchService.java │ │ ├── BtcService.java │ │ ├── ContractService.java │ │ ├── EthService.java │ │ ├── EtherscanUrl.java │ │ ├── RpcService.java │ │ └── RpcServiceImpl.java │ │ └── utils │ │ ├── BlockServiceUtil.java │ │ ├── Denomination.java │ │ ├── EthereumUtil.java │ │ ├── FileUtil.java │ │ └── RSACoder.java └── resources │ ├── application-template.yml │ └── logback.xml └── test └── resources ├── SimpleStorage.sol └── sample.sol /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # wallet demo 2 | about Ethereum 3 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/mvc/PolymorphicApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/PolymorphicApplication.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/BlockChainService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/BlockChainService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/BlockConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/BlockConfig.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/BlockException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/BlockException.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/BlockResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/BlockResult.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/SpringContextUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/SpringContextUtil.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/bean/BchTransaction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/bean/BchTransaction.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/bean/BtcTransaction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/bean/BtcTransaction.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/common/interceptor/ServiceAuthRestInterceptor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/common/interceptor/ServiceAuthRestInterceptor.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/configuration/CorsConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/configuration/CorsConfig.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/configuration/RpcConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/configuration/RpcConfiguration.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/configuration/SwaggerConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/configuration/SwaggerConfig.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/configuration/TokenConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/configuration/TokenConfig.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/controller/BlockController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/controller/BlockController.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/controller/Controller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/controller/Controller.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/controller/DemoController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/controller/DemoController.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/controller/EthereumController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/controller/EthereumController.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/exceptions/ExceededGasException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/exceptions/ExceededGasException.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/Account.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/Account.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/ApprovalEventResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/ApprovalEventResponse.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/Block.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/Block.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/EthTransaction.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/EthTransaction.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/Filter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/Filter.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/HumanStandardToken.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/HumanStandardToken.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/JsonCredentials.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/JsonCredentials.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/Method.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/Method.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/NodeConfiguration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/NodeConfiguration.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/Receipt.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/Receipt.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/TransactionResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/TransactionResponse.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/TransferEventResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/TransferEventResponse.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/BalanceDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/BalanceDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/ExportAccountDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/ExportAccountDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/ImportRawKeyDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/ImportRawKeyDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/NewAccountDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/NewAccountDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/PersonalByPrivateKeyDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/PersonalByPrivateKeyDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/RawTransactionDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/RawTransactionDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/SendTransactionDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/SendTransactionDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/TransactionByHashDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/TransactionByHashDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/model/dto/TransactionCountDTO.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/model/dto/TransactionCountDTO.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/BchService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/BchService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/BtcService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/BtcService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/ContractService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/ContractService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/EthService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/EthService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/EtherscanUrl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/EtherscanUrl.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/RpcService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/RpcService.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/service/RpcServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/service/RpcServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/utils/BlockServiceUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/utils/BlockServiceUtil.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/utils/Denomination.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/utils/Denomination.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/utils/EthereumUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/utils/EthereumUtil.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/utils/FileUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/utils/FileUtil.java -------------------------------------------------------------------------------- /src/main/java/com/mvc/polymorphic/utils/RSACoder.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/java/com/mvc/polymorphic/utils/RSACoder.java -------------------------------------------------------------------------------- /src/main/resources/application-template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/resources/application-template.yml -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/main/resources/logback.xml -------------------------------------------------------------------------------- /src/test/resources/SimpleStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/test/resources/SimpleStorage.sol -------------------------------------------------------------------------------- /src/test/resources/sample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvchain/mvc-polymorphic-api/HEAD/src/test/resources/sample.sol --------------------------------------------------------------------------------