├── .gitignore ├── LICENSE ├── README.md ├── core ├── .gitignore ├── pom.xml └── src │ ├── main │ ├── java │ │ └── eu │ │ │ └── bittrade │ │ │ └── libs │ │ │ └── steemj │ │ │ ├── SteemJ.java │ │ │ ├── apis │ │ │ └── login │ │ │ │ └── models │ │ │ │ └── SteemVersionInfo.java │ │ │ ├── base │ │ │ └── models │ │ │ │ ├── Account.java │ │ │ │ ├── BeneficiaryRouteType.java │ │ │ │ ├── Block.java │ │ │ │ ├── BlockHeaderExtensions.java │ │ │ │ ├── BlockId.java │ │ │ │ ├── ChainProperties.java │ │ │ │ ├── Checksum.java │ │ │ │ ├── CommentOptionsExtension.java │ │ │ │ ├── CommentPayoutBeneficiaries.java │ │ │ │ ├── FeedHistory.java │ │ │ │ ├── FutureExtensions.java │ │ │ │ ├── HardforkVersionVote.java │ │ │ │ ├── LiquidityBalance.java │ │ │ │ ├── Permlink.java │ │ │ │ ├── Pow.java │ │ │ │ ├── Ripemd160.java │ │ │ │ ├── ScheduledHardfork.java │ │ │ │ ├── SignedBlockWithInfo.java │ │ │ │ ├── Transaction.java │ │ │ │ ├── Version.java │ │ │ │ ├── deserializer │ │ │ │ ├── AccountAuthHashMapDeserializer.java │ │ │ │ ├── AssetDeserializer.java │ │ │ │ ├── BlockHeaderExtensionsDeserializer.java │ │ │ │ ├── CommentOptionsExtensionDeserializer.java │ │ │ │ ├── CurveIdDeserializer.java │ │ │ │ ├── GuestBloggerPairDeserializer.java │ │ │ │ ├── OperationHistoryHashMapDeserializer.java │ │ │ │ ├── PublicKeyHashMapDeserializer.java │ │ │ │ └── TagUsagePairDeserializer.java │ │ │ │ └── serializer │ │ │ │ ├── AccountAuthHashMapSerializer.java │ │ │ │ ├── AssetSerializer.java │ │ │ │ ├── BlockHeaderExtensionsSerializer.java │ │ │ │ ├── BooleanSerializer.java │ │ │ │ ├── CommentOptionsExtensionSerializer.java │ │ │ │ ├── FutureExtensionsSerializer.java │ │ │ │ ├── PublicKeyHashMapSerializer.java │ │ │ │ └── PublicKeySerializer.java │ │ │ ├── chain │ │ │ ├── ChangeRecoveryAccountRequest.java │ │ │ ├── DeclineVotingRightsRequestObject.java │ │ │ ├── EscrowObject.java │ │ │ ├── LimitOrder.java │ │ │ ├── SignedTransaction.java │ │ │ ├── VestingDelegation.java │ │ │ ├── VestingDelegationExpiration.java │ │ │ ├── WithdrawVestingRoutes.java │ │ │ ├── WitnessVote.java │ │ │ └── smt │ │ │ │ └── objects │ │ │ │ ├── AccountBalanceObject.java │ │ │ │ └── SmtTokenObject.java │ │ │ ├── communication │ │ │ ├── AbstractClient.java │ │ │ ├── CommunicationHandler.java │ │ │ ├── HttpClient.java │ │ │ ├── HttpClientRequestInitializer.java │ │ │ ├── WebsocketClient.java │ │ │ ├── WebsocketEndpoint.java │ │ │ ├── WebsocketReconnectHandler.java │ │ │ └── jrpc │ │ │ │ ├── JsonRPCRequest.java │ │ │ │ └── JsonRPCResponse.java │ │ │ ├── configuration │ │ │ ├── PrivateKeyStorage.java │ │ │ └── SteemJConfig.java │ │ │ ├── enums │ │ │ ├── AddressPrefixType.java │ │ │ ├── BlockHeaderExtentsionsType.java │ │ │ ├── CommentOptionsExtensionsType.java │ │ │ ├── OperationType.java │ │ │ ├── PrivateKeyType.java │ │ │ ├── RequestMethod.java │ │ │ ├── RewardFundType.java │ │ │ ├── SteemApiType.java │ │ │ ├── SynchronizationType.java │ │ │ ├── ValidationType.java │ │ │ └── WitnessScheduleType.java │ │ │ ├── exceptions │ │ │ ├── SteemCommunicationException.java │ │ │ ├── SteemConnectionException.java │ │ │ ├── SteemFatalErrorException.java │ │ │ ├── SteemInvalidTransactionException.java │ │ │ ├── SteemKeyHandlingException.java │ │ │ ├── SteemResponseException.java │ │ │ ├── SteemTimeoutException.java │ │ │ └── SteemTransformationException.java │ │ │ ├── fc │ │ │ └── TimePointSec.java │ │ │ ├── interfaces │ │ │ ├── ByteTransformable.java │ │ │ ├── SignatureObject.java │ │ │ └── Validatable.java │ │ │ ├── plugins │ │ │ └── apis │ │ │ │ ├── account │ │ │ │ ├── by │ │ │ │ │ └── key │ │ │ │ │ │ ├── AccountByKeyApi.java │ │ │ │ │ │ └── models │ │ │ │ │ │ ├── GetKeyReferencesArgs.java │ │ │ │ │ │ └── GetKeyReferencesReturn.java │ │ │ │ └── history │ │ │ │ │ ├── AccountHistoryApi.java │ │ │ │ │ └── models │ │ │ │ │ ├── AppliedOperation.java │ │ │ │ │ ├── GetAccountHistoryArgs.java │ │ │ │ │ ├── GetAccountHistoryReturn.java │ │ │ │ │ ├── GetOpsInBlockArgs.java │ │ │ │ │ ├── GetOpsInBlockReturn.java │ │ │ │ │ ├── GetTransactionArgs.java │ │ │ │ │ └── deserializer │ │ │ │ │ └── AppliedOperationHashMapDeserializer.java │ │ │ │ ├── block │ │ │ │ ├── BlockApi.java │ │ │ │ └── models │ │ │ │ │ ├── ExtendedSignedBlock.java │ │ │ │ │ ├── GetBlockArgs.java │ │ │ │ │ ├── GetBlockHeaderArgs.java │ │ │ │ │ ├── GetBlockHeaderReturn.java │ │ │ │ │ └── GetBlockReturn.java │ │ │ │ ├── chain │ │ │ │ ├── ChainApi.java │ │ │ │ └── models │ │ │ │ │ ├── PushBlockArgs.java │ │ │ │ │ ├── PushBlockReturn.java │ │ │ │ │ └── PushTransactionReturn.java │ │ │ │ ├── condenser │ │ │ │ ├── CondenserApi.java │ │ │ │ └── models │ │ │ │ │ ├── AccountVote.java │ │ │ │ │ ├── DiscussionIndex.java │ │ │ │ │ ├── ExtendedAccount.java │ │ │ │ │ ├── ExtendedDynamicGlobalProperties.java │ │ │ │ │ ├── ExtendedLimitOrder.java │ │ │ │ │ ├── State.java │ │ │ │ │ └── TagIndex.java │ │ │ │ ├── database │ │ │ │ ├── DatabaseApi.java │ │ │ │ ├── enums │ │ │ │ │ ├── OrderType.java │ │ │ │ │ └── SortOrderType.java │ │ │ │ └── models │ │ │ │ │ ├── CandleStick.java │ │ │ │ │ ├── Comment.java │ │ │ │ │ ├── Config.java │ │ │ │ │ ├── DynamicGlobalProperty.java │ │ │ │ │ ├── FindAccountRecoveryRequestsArgs.java │ │ │ │ │ ├── FindAccountRecoveryRequestsReturn.java │ │ │ │ │ ├── FindAccountsArgs.java │ │ │ │ │ ├── FindAccountsReturn.java │ │ │ │ │ ├── FindChangeRecoveryAccountRequestsArgs.java │ │ │ │ │ ├── FindChangeRecoveryAccountRequestsReturn.java │ │ │ │ │ ├── FindCommentsArgs.java │ │ │ │ │ ├── FindCommentsReturn.java │ │ │ │ │ ├── FindDeclineVotingRightsRequestsArgs.java │ │ │ │ │ ├── FindDeclineVotingRightsRequestsReturn.java │ │ │ │ │ ├── FindEscrowsArgs.java │ │ │ │ │ ├── FindEscrowsReturn.java │ │ │ │ │ ├── FindLimitOrdersArgs.java │ │ │ │ │ ├── FindLimitOrdersReturn.java │ │ │ │ │ ├── FindOwnerHistoriesArgs.java │ │ │ │ │ ├── FindOwnerHistoriesReturn.java │ │ │ │ │ ├── FindSavingsWithdrawalsArgs.java │ │ │ │ │ ├── FindSavingsWithdrawalsReturn.java │ │ │ │ │ ├── FindSbdConversionRequestsArgs.java │ │ │ │ │ ├── FindSbdConversionRequestsReturn.java │ │ │ │ │ ├── FindVestingDelegationExpirationsArgs.java │ │ │ │ │ ├── FindVestingDelegationExpirationsReturn.java │ │ │ │ │ ├── FindVestingDelegationsArgs.java │ │ │ │ │ ├── FindVestingDelegationsReturn.java │ │ │ │ │ ├── FindVotesArgs.java │ │ │ │ │ ├── FindVotesReturn.java │ │ │ │ │ ├── FindWithdrawVestingRoutesArgs.java │ │ │ │ │ ├── FindWithdrawVestingRoutesReturn.java │ │ │ │ │ ├── FindWitnessesArgs.java │ │ │ │ │ ├── GetOrderBookArgs.java │ │ │ │ │ ├── GetOrderBookReturn.java │ │ │ │ │ ├── GetPotentialSignaturesArgs.java │ │ │ │ │ ├── GetPotentialSignaturesReturn.java │ │ │ │ │ ├── GetRequiredSignaturesArgs.java │ │ │ │ │ ├── GetRequiredSignaturesReturn.java │ │ │ │ │ ├── GetSmtNextIdentifierReturn.java │ │ │ │ │ ├── GetTransactionHexArgs.java │ │ │ │ │ ├── GetTransactionHexReturn.java │ │ │ │ │ ├── HardforkProperty.java │ │ │ │ │ ├── ListAccountRecoveryRequestsArgs.java │ │ │ │ │ ├── ListAccountRecoveryRequestsReturn.java │ │ │ │ │ ├── ListAccountsArgs.java │ │ │ │ │ ├── ListAccountsReturn.java │ │ │ │ │ ├── ListChangeRecoveryAccountRequestsArgs.java │ │ │ │ │ ├── ListChangeRecoveryAccountRequestsReturn.java │ │ │ │ │ ├── ListCommentsArgs.java │ │ │ │ │ ├── ListCommentsReturn.java │ │ │ │ │ ├── ListDeclineVotingRightsRequestsArgs.java │ │ │ │ │ ├── ListDeclineVotingRightsRequestsReturn.java │ │ │ │ │ ├── ListEscrowsArgs.java │ │ │ │ │ ├── ListEscrowsReturn.java │ │ │ │ │ ├── ListLimitOrdersArgs.java │ │ │ │ │ ├── ListLimitOrdersReturn.java │ │ │ │ │ ├── ListOwnerHistoriesArgs.java │ │ │ │ │ ├── ListOwnerHistoriesReturn.java │ │ │ │ │ ├── ListSavingsWithdrawalsArgs.java │ │ │ │ │ ├── ListSavingsWithdrawalsReturn.java │ │ │ │ │ ├── ListSbdConversionRequestsArgs.java │ │ │ │ │ ├── ListSbdConversionRequestsReturn.java │ │ │ │ │ ├── ListVestingDelegationExpirationsArgs.java │ │ │ │ │ ├── ListVestingDelegationExpirationsReturn.java │ │ │ │ │ ├── ListVestingDelegationsArgs.java │ │ │ │ │ ├── ListVestingDelegationsReturn.java │ │ │ │ │ ├── ListVotesArgs.java │ │ │ │ │ ├── ListVotesReturn.java │ │ │ │ │ ├── ListWithdrawVestingRoutesArgs.java │ │ │ │ │ ├── ListWithdrawVestingRoutesReturn.java │ │ │ │ │ ├── ListWitnessVotesArgs.java │ │ │ │ │ ├── ListWitnessVotesReturn.java │ │ │ │ │ ├── ListWitnessesArgs.java │ │ │ │ │ ├── ListWitnessesReturn.java │ │ │ │ │ ├── Market.java │ │ │ │ │ ├── Order.java │ │ │ │ │ ├── OrderBook.java │ │ │ │ │ ├── OrderHistoryItem.java │ │ │ │ │ ├── OwnerAuthorityHistory.java │ │ │ │ │ ├── RewardFund.java │ │ │ │ │ ├── SavingsWithdraw.java │ │ │ │ │ ├── VerifyAccountAuthorityArgs.java │ │ │ │ │ ├── VerifyAccountAuthorityReturn.java │ │ │ │ │ ├── VerifyAuthorityArgs.java │ │ │ │ │ ├── VerifyAuthorityReturn.java │ │ │ │ │ ├── VerifySignaturesArgs.java │ │ │ │ │ ├── VerifySignaturesReturn.java │ │ │ │ │ ├── Witness.java │ │ │ │ │ └── WitnessSchedule.java │ │ │ │ ├── debug │ │ │ │ └── node │ │ │ │ │ └── DebugNodeApi.java │ │ │ │ ├── follow │ │ │ │ ├── FollowApi.java │ │ │ │ ├── enums │ │ │ │ │ └── FollowType.java │ │ │ │ └── models │ │ │ │ │ ├── AccountReputation.java │ │ │ │ │ ├── BlogEntry.java │ │ │ │ │ ├── CommentBlogEntry.java │ │ │ │ │ ├── CommentFeedEntry.java │ │ │ │ │ ├── FeedEntry.java │ │ │ │ │ ├── FollowApiObject.java │ │ │ │ │ ├── FollowCountApiObject.java │ │ │ │ │ ├── GetFollowersArgs.java │ │ │ │ │ ├── GetFollowersReturn.java │ │ │ │ │ ├── PostsPerAuthorPair.java │ │ │ │ │ ├── deserializer │ │ │ │ │ └── FollowTypeDeserializer.java │ │ │ │ │ ├── operations │ │ │ │ │ ├── FollowOperation.java │ │ │ │ │ └── ReblogOperation.java │ │ │ │ │ └── serializer │ │ │ │ │ └── FollowTypeSerializer.java │ │ │ │ ├── market │ │ │ │ └── history │ │ │ │ │ ├── MarketHistoryApi.java │ │ │ │ │ └── models │ │ │ │ │ ├── Bucket.java │ │ │ │ │ ├── GetMarketHistoryArgs.java │ │ │ │ │ ├── GetMarketHistoryBucketsReturn.java │ │ │ │ │ ├── GetMarketHistoryReturn.java │ │ │ │ │ ├── GetOrderBookArgs.java │ │ │ │ │ ├── GetOrderBookReturn.java │ │ │ │ │ ├── GetRecentTradesArgs.java │ │ │ │ │ ├── GetRecentTradesReturn.java │ │ │ │ │ ├── GetTickerReturn.java │ │ │ │ │ ├── GetTradeHistoryArgs.java │ │ │ │ │ ├── GetTradeHistoryReturn.java │ │ │ │ │ ├── GetVolumeReturn.java │ │ │ │ │ ├── MarketTrade.java │ │ │ │ │ └── Order.java │ │ │ │ ├── network │ │ │ │ └── broadcast │ │ │ │ │ ├── api │ │ │ │ │ └── NetworkBroadcastApi.java │ │ │ │ │ └── models │ │ │ │ │ └── BroadcastTransactionSynchronousReturn.java │ │ │ │ ├── tags │ │ │ │ ├── TagsApi.java │ │ │ │ ├── enums │ │ │ │ │ └── DiscussionSortType.java │ │ │ │ └── models │ │ │ │ │ ├── Discussion.java │ │ │ │ │ ├── DiscussionQuery.java │ │ │ │ │ ├── DiscussionQueryResult.java │ │ │ │ │ ├── GetActiveVotesArgs.java │ │ │ │ │ ├── GetActiveVotesReturn.java │ │ │ │ │ ├── GetDiscussionArgs.java │ │ │ │ │ ├── GetDiscussionsByAuthorBeforeDateArgs.java │ │ │ │ │ ├── GetRepliesByLastUpdateArgs.java │ │ │ │ │ ├── GetTagsUsedByAuthorArgs.java │ │ │ │ │ ├── GetTagsUsedByAuthorReturn.java │ │ │ │ │ ├── GetTrendingTagsArgs.java │ │ │ │ │ ├── GetTrendingTagsReturn.java │ │ │ │ │ ├── Tag.java │ │ │ │ │ ├── TagCount.java │ │ │ │ │ ├── TagName.java │ │ │ │ │ └── VoteState.java │ │ │ │ └── witness │ │ │ │ ├── WitnessApi.java │ │ │ │ ├── enums │ │ │ │ └── BandwidthType.java │ │ │ │ └── models │ │ │ │ ├── AccountBandwidth.java │ │ │ │ ├── GetAccountBandwidthArgs.java │ │ │ │ ├── GetAccountBandwidthReturn.java │ │ │ │ ├── ReserveRatioObject.java │ │ │ │ └── operations │ │ │ │ └── EnableContentEditingOperation.java │ │ │ ├── protocol │ │ │ ├── AccountName.java │ │ │ ├── AnnotatedSignedTransaction.java │ │ │ ├── Asset.java │ │ │ ├── AssetSymbolType.java │ │ │ ├── Authority.java │ │ │ ├── BlockHeader.java │ │ │ ├── HardforkVersion.java │ │ │ ├── LegacyAsset.java │ │ │ ├── Price.java │ │ │ ├── PublicKey.java │ │ │ ├── SignedBlock.java │ │ │ ├── SignedBlockHeader.java │ │ │ ├── TransactionId.java │ │ │ ├── enums │ │ │ │ ├── CurveId.java │ │ │ │ └── LegacyAssetSymbolType.java │ │ │ └── operations │ │ │ │ ├── AbstractAccountCreateOperation.java │ │ │ │ ├── AbstractAccountOperation.java │ │ │ │ ├── AbstractEscrowOperation.java │ │ │ │ ├── AbstractLimitOrderOperation.java │ │ │ │ ├── AbstractTransferOperation.java │ │ │ │ ├── AccountCreateOperation.java │ │ │ │ ├── AccountCreateWithDelegationOperation.java │ │ │ │ ├── AccountUpdateOperation.java │ │ │ │ ├── AccountWitnessProxyOperation.java │ │ │ │ ├── AccountWitnessVoteOperation.java │ │ │ │ ├── BaseOperation.java │ │ │ │ ├── CancelTransferFromSavingsOperation.java │ │ │ │ ├── ChallengeAuthorityOperation.java │ │ │ │ ├── ChangeRecoveryAccountOperation.java │ │ │ │ ├── ClaimAccountOperation.java │ │ │ │ ├── ClaimRewardBalanceOperation.java │ │ │ │ ├── CommentOperation.java │ │ │ │ ├── CommentOptionsOperation.java │ │ │ │ ├── ConvertOperation.java │ │ │ │ ├── CreateClaimedAccountOperation.java │ │ │ │ ├── CustomBinaryOperation.java │ │ │ │ ├── CustomJsonOperation.java │ │ │ │ ├── CustomJsonOperationPayload.java │ │ │ │ ├── CustomOperation.java │ │ │ │ ├── DeclineVotingRightsOperation.java │ │ │ │ ├── DelegateVestingSharesOperation.java │ │ │ │ ├── DeleteCommentOperation.java │ │ │ │ ├── EscrowApproveOperation.java │ │ │ │ ├── EscrowDisputeOperation.java │ │ │ │ ├── EscrowReleaseOperation.java │ │ │ │ ├── EscrowTransferOperation.java │ │ │ │ ├── FeedPublishOperation.java │ │ │ │ ├── LimitOrderCancelOperation.java │ │ │ │ ├── LimitOrderCreate2Operation.java │ │ │ │ ├── LimitOrderCreateOperation.java │ │ │ │ ├── Operation.java │ │ │ │ ├── Pow2Operation.java │ │ │ │ ├── PowOperation.java │ │ │ │ ├── ProveAuthorityOperation.java │ │ │ │ ├── RecoverAccountOperation.java │ │ │ │ ├── ReportOverProductionOperation.java │ │ │ │ ├── RequestAccountRecoveryOperation.java │ │ │ │ ├── ResetAccountOperation.java │ │ │ │ ├── SetResetAccountOperation.java │ │ │ │ ├── SetWithdrawVestingRouteOperation.java │ │ │ │ ├── TransferFromSavingsOperation.java │ │ │ │ ├── TransferOperation.java │ │ │ │ ├── TransferToSavingsOperation.java │ │ │ │ ├── TransferToVestingOperation.java │ │ │ │ ├── VoteOperation.java │ │ │ │ ├── WithdrawVestingOperation.java │ │ │ │ ├── WitnessSetPropertiesOperation.java │ │ │ │ ├── WitnessUpdateOperation.java │ │ │ │ └── virtual │ │ │ │ ├── AuthorRewardOperation.java │ │ │ │ ├── CommentBenefactorRewardOperation.java │ │ │ │ ├── CommentPayoutUpdateOperation.java │ │ │ │ ├── CommentRewardOperation.java │ │ │ │ ├── CurationRewardOperation.java │ │ │ │ ├── FillConvertRequestOperation.java │ │ │ │ ├── FillOrderOperation.java │ │ │ │ ├── FillTransferFromSavingsOperation.java │ │ │ │ ├── FillVestingWithdrawOperation.java │ │ │ │ ├── HardforkOperation.java │ │ │ │ ├── InterestOperation.java │ │ │ │ ├── LiquidityRewardOperation.java │ │ │ │ ├── ProducerRewardOperation.java │ │ │ │ ├── ReturnVestingDelegationOperation.java │ │ │ │ ├── ShutdownWitnessOpeartion.java │ │ │ │ └── value │ │ │ │ ├── AuthorRewardOperationValue.java │ │ │ │ ├── CommentBenefactorRewardOperationValue.java │ │ │ │ ├── CurationRewardValue.java │ │ │ │ ├── FillConvertRequestOperationValue.java │ │ │ │ ├── FillOrderOperationValue.java │ │ │ │ ├── FillTransferFromSavingsOperationValue.java │ │ │ │ ├── FillVestingWithdrawOperationValue.java │ │ │ │ ├── InterestOperationValue.java │ │ │ │ ├── ProducerRewardOperationValue.java │ │ │ │ └── ReturnVestingDelegationOperationValue.java │ │ │ └── util │ │ │ ├── BrainkeyDictionaryManager.java │ │ │ ├── CondenserUtils.java │ │ │ ├── KeyGenerator.java │ │ │ └── SteemJUtils.java │ └── resources │ │ └── dictionary.txt │ └── test │ ├── java │ └── eu │ │ └── bittrade │ │ └── libs │ │ └── steemj │ │ ├── BaseIT.java │ │ ├── BaseITForOperationParsing.java │ │ ├── BaseTest.java │ │ ├── BaseTransactionBroadcastIT.java │ │ ├── BaseTransactionVerificationIT.java │ │ ├── BaseTransactionalIT.java │ │ ├── BaseTransactionalUT.java │ │ ├── BaseUT.java │ │ ├── BaseUTForValidation.java │ │ ├── IntegrationTest.java │ │ ├── SteemJIT.java │ │ ├── base │ │ └── models │ │ │ ├── AccountNameTest.java │ │ │ ├── AuthorityTest.java │ │ │ ├── ChainPropertiesTest.java │ │ │ ├── PermlinkTest.java │ │ │ ├── PublicKeyTest.java │ │ │ ├── Ripedm160Test.java │ │ │ ├── SginedTransactionTest.java │ │ │ ├── VersionTest.java │ │ │ └── operations │ │ │ ├── AccountCreateOperationIT.java │ │ │ ├── AccountCreateOperationParsingIT.java │ │ │ ├── AccountCreateOperationTest.java │ │ │ ├── AccountCreateWithDelegationOperationIT.java │ │ │ ├── AccountCreateWithDelegationOperationParsingIT.java │ │ │ ├── AccountCreateWithDelegationOperationTest.java │ │ │ ├── AccountUpdateOperationIT.java │ │ │ ├── AccountUpdateOperationParsingIT.java │ │ │ ├── AccountUpdateOperationTest.java │ │ │ ├── AccountWitnessProxyOperationIT.java │ │ │ ├── AccountWitnessProxyOperationParsingIT.java │ │ │ ├── AccountWitnessProxyOperationTest.java │ │ │ ├── AccountWitnessVoteOperationIT.java │ │ │ ├── AccountWitnessVoteOperationParsingIT.java │ │ │ ├── AccountWitnessVoteOperationTest.java │ │ │ ├── CancelTransferFromSavingsOperationIT.java │ │ │ ├── CancelTransferFromSavingsOperationParsingIT.java │ │ │ ├── CancelTransferFromSavingsOperationTest.java │ │ │ ├── ChallengeAuthorityOperationIT.java │ │ │ ├── ChallengeAuthorityOperationParsingIT.java │ │ │ ├── ChallengeAuthorityOperationTest.java │ │ │ ├── ChangeRecoveryAccountOperationIT.java │ │ │ ├── ChangeRecoveryAccountOperationParsingIT.java │ │ │ ├── ChangeRecoveryAccountOperationTest.java │ │ │ ├── ClaimAccountOperationTest.java │ │ │ ├── ClaimRewardBalanceOperationIT.java │ │ │ ├── ClaimRewardBalanceOperationParsingIT.java │ │ │ ├── ClaimRewardBalanceOperationTest.java │ │ │ ├── CommentOperationEncodingIT.java │ │ │ ├── CommentOperationIT.java │ │ │ ├── CommentOperationParsingIT.java │ │ │ ├── CommentOperationTest.java │ │ │ ├── CommentOperationToPostIT.java │ │ │ ├── CommentOptionsOperationExtensionIT.java │ │ │ ├── CommentOptionsOperationExtensionParsingIT.java │ │ │ ├── CommentOptionsOperationExtensionTest.java │ │ │ ├── CommentOptionsOperationIT.java │ │ │ ├── CommentOptionsOperationParsingIT.java │ │ │ ├── CommentOptionsOperationTest.java │ │ │ ├── ConvertOperationIT.java │ │ │ ├── ConvertOperationITParsing.java │ │ │ ├── ConvertOperationTest.java │ │ │ ├── CreateClaimedAccountOperationTest.java │ │ │ ├── CustomBinaryOperationIT.java │ │ │ ├── CustomBinaryOperationParsingIT.java │ │ │ ├── CustomBinaryOperationTest.java │ │ │ ├── CustomJsonOperationIT.java │ │ │ ├── CustomJsonOperationParsingIT.java │ │ │ ├── CustomJsonOperationTest.java │ │ │ ├── CustomOperationIT.java │ │ │ ├── CustomOperationParsingIT.java │ │ │ ├── CustomOperationTest.java │ │ │ ├── DeclineVotingRightsOperationIT.java │ │ │ ├── DeclineVotingRightsOperationParsingIT.java │ │ │ ├── DeclineVotingRightsOperationTest.java │ │ │ ├── DelegateVestingSharesOperationIT.java │ │ │ ├── DelegateVestingSharesOperationParsingIT.java │ │ │ ├── DelegateVestingSharesOperationTest.java │ │ │ ├── DeleteCommentOperationIT.java │ │ │ ├── DeleteCommentOperationParsingIT.java │ │ │ ├── DeleteCommentOperationTest.java │ │ │ ├── EscrowApproveOperationIT.java │ │ │ ├── EscrowApproveOperationParsingIT.java │ │ │ ├── EscrowApproveOperationTest.java │ │ │ ├── EscrowDisputeOperationIT.java │ │ │ ├── EscrowDisputeOperationParsingIT.java │ │ │ ├── EscrowDisputeOperationTest.java │ │ │ ├── EscrowReleaseOperationIT.java │ │ │ ├── EscrowReleaseOperationParsingIT.java │ │ │ ├── EscrowReleaseOperationTest.java │ │ │ ├── EscrowTransferOperationIT.java │ │ │ ├── EscrowTransferOperationParsingIT.java │ │ │ ├── EscrowTransferOperationTest.java │ │ │ ├── FeedPublishOperationIT.java │ │ │ ├── FeedPublishOperationParsingIT.java │ │ │ ├── FeedPublishOperationTest.java │ │ │ ├── LimitOrderCancelOperationIT.java │ │ │ ├── LimitOrderCancelOperationParsingIT.java │ │ │ ├── LimitOrderCancelOperationTest.java │ │ │ ├── LimitOrderCreate2OperationIT.java │ │ │ ├── LimitOrderCreate2OperationParsingIT.java │ │ │ ├── LimitOrderCreate2OperationTest.java │ │ │ ├── LimitOrderCreateOperationIT.java │ │ │ ├── LimitOrderCreateOperationParsingIT.java │ │ │ ├── LimitOrderCreateOperationTest.java │ │ │ ├── PowOperationIT.java │ │ │ ├── PowOperationParsingIT.java │ │ │ ├── ProveAuthorityOperationIT.java │ │ │ ├── ProveAuthorityOperationParsingIT.java │ │ │ ├── ProveAuthorityOperationTest.java │ │ │ ├── RecoverAccountOperationIT.java │ │ │ ├── RecoverAccountOperationParsingIT.java │ │ │ ├── RecoverAccountOperationTest.java │ │ │ ├── RequestAccountRecoveryOperationIT.java │ │ │ ├── RequestAccountRecoveryOperationParsingIT.java │ │ │ ├── RequestAccountRecoveryOperationTest.java │ │ │ ├── ResetAccountOperationIT.java │ │ │ ├── ResetAccountOperationParsingIT.java │ │ │ ├── ResetAccountOperationTest.java │ │ │ ├── SetResetAccountOperationIT.java │ │ │ ├── SetResetAccountOperationParsingIT.java │ │ │ ├── SetResetAccountOperationTest.java │ │ │ ├── SetWithdrawVestingRouteOperationIT.java │ │ │ ├── SetWithdrawVestingRouteOperationParsingIT.java │ │ │ ├── SetWithdrawVestingRouteOperationTest.java │ │ │ ├── TransferFromSavingsOperationIT.java │ │ │ ├── TransferFromSavingsOperationParsingIT.java │ │ │ ├── TransferFromSavingsOperationTest.java │ │ │ ├── TransferOperationIT.java │ │ │ ├── TransferOperationParsingIT.java │ │ │ ├── TransferOperationTest.java │ │ │ ├── TransferToSavingsOperationIT.java │ │ │ ├── TransferToSavingsOperationParsingIT.java │ │ │ ├── TransferToSavingsOperationTest.java │ │ │ ├── TransferToVestingOperationIT.java │ │ │ ├── TransferToVestingOperationParsingIT.java │ │ │ ├── TransferToVestingOperationTest.java │ │ │ ├── VoteOperationIT.java │ │ │ ├── VoteOperationParsingIT.java │ │ │ ├── VoteOperationTest.java │ │ │ ├── WithdrawVestingOperationIT.java │ │ │ ├── WithdrawVestingOperationParsingIT.java │ │ │ ├── WithdrawVestingOperationTest.java │ │ │ ├── WitnessUpdateOperationIT.java │ │ │ ├── WitnessUpdateOperationParsingIT.java │ │ │ ├── WitnessUpdateOperationTest.java │ │ │ └── virtual │ │ │ ├── AuthorRewardOperationIT.java │ │ │ ├── CommentBenefactorRewardOperationIT.java │ │ │ ├── CurationRewardOperationIT.java │ │ │ ├── FillConvertRequestOperationIT.java │ │ │ ├── FillOrderOperationIT.java │ │ │ ├── FillTransferFromSavingsOperationIT.java │ │ │ ├── FillVestingWithdrawOperationIT.java │ │ │ ├── InterestOperationIT.java │ │ │ ├── ProducerRewardOperationIT.java │ │ │ └── ReturnVestingDelegationOperationIT.java │ │ ├── configuration │ │ └── SteemJConfigTest.java │ │ ├── plugins │ │ └── apis │ │ │ ├── account │ │ │ ├── by │ │ │ │ └── key │ │ │ │ │ └── AccountByKeyApiIT.java │ │ │ └── history │ │ │ │ ├── AccountHistoryApiIT.java │ │ │ │ └── models │ │ │ │ ├── GetAccountHistoryArgsTest.java │ │ │ │ ├── GetOpsInBlockArgsTest.java │ │ │ │ └── GetTransactionArgsTest.java │ │ │ ├── block │ │ │ └── BlockApiIT.java │ │ │ ├── condenser │ │ │ └── CondenserApiIT.java │ │ │ ├── database │ │ │ └── DatabaseApiIT.java │ │ │ ├── follow │ │ │ ├── FollowApiIT.java │ │ │ └── models │ │ │ │ └── operations │ │ │ │ ├── FollowOperationIT.java │ │ │ │ └── ReblogOperationIT.java │ │ │ ├── market │ │ │ └── history │ │ │ │ └── MarketHistoryApiIT.java │ │ │ ├── network │ │ │ └── broadcast │ │ │ │ └── NetworkBroadcastApiIT.java │ │ │ ├── tags │ │ │ └── TagsApiIT.java │ │ │ └── witness │ │ │ ├── WitnessApiIT.java │ │ │ └── model │ │ │ └── operations │ │ │ └── EnableContentEditingOperationIT.java │ │ ├── protocol │ │ ├── LegacyAssetTest.java │ │ └── PriceTest.java │ │ └── util │ │ ├── BrainkeyDictionaryManagerTest.java │ │ ├── CondenserUtilsTest.java │ │ ├── KeyGeneratorTest.java │ │ └── SteemJUtilsTest.java │ └── resources │ ├── accountDetailsUsedDuringTests.properties │ └── log4j2.xml ├── pom.xml └── sample ├── pom.xml └── src └── main ├── java └── my │ └── sample │ └── project │ └── SteemJUsageExample.java └── resources └── log4j2.xml /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .idea 3 | .settings 4 | *.project 5 | *.classpath 6 | -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/BlockHeaderExtensions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 22 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; 23 | 24 | import eu.bittrade.libs.steemj.base.models.deserializer.BlockHeaderExtensionsDeserializer; 25 | import eu.bittrade.libs.steemj.base.models.serializer.BlockHeaderExtensionsSerializer; 26 | import eu.bittrade.libs.steemj.interfaces.ByteTransformable; 27 | 28 | /** 29 | * This class is used as a Java implementation of a variant that can contain a: 30 | * 35 | * 36 | * The used type is indicated by an id, which is the first field in a JSON 37 | * response. 38 | * 39 | * @author dez1337 40 | */ 41 | @JsonSerialize(using = BlockHeaderExtensionsSerializer.class) 42 | @JsonDeserialize(using = BlockHeaderExtensionsDeserializer.class) 43 | public abstract class BlockHeaderExtensions implements ByteTransformable { 44 | @Override 45 | public String toString() { 46 | return ToStringBuilder.reflectionToString(this); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/BlockId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | /** 20 | * This class is the java implementation of the Steem "block_id_type" object. 21 | * 22 | * @author dez1337 23 | */ 24 | public class BlockId extends Ripemd160 { 25 | /** Generated serial version uid. */ 26 | private static final long serialVersionUID = 5819705609731889206L; 27 | 28 | /** 29 | * @param hashValue 30 | * The ripemd160 hash. 31 | */ 32 | public BlockId(String hashValue) { 33 | super(hashValue); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/Checksum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | /** 20 | * This class is the java implementation of the Steem "checksum_type" object. 21 | * 22 | * @author dez1337 23 | */ 24 | public class Checksum extends Ripemd160 { 25 | 26 | /** Generated serial version uid. */ 27 | private static final long serialVersionUID = 4420141835144717006L; 28 | 29 | /** 30 | * @param hashValue 31 | * The ripemd160 hash. 32 | */ 33 | public Checksum(String hashValue) { 34 | super(hashValue); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/LiquidityBalance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | import java.math.BigInteger; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import eu.bittrade.libs.steemj.protocol.AccountName; 24 | 25 | /** 26 | * This class represents a Graphene Chain "liquidity_balance" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class LiquidityBalance { 31 | private AccountName account; 32 | // Original type is uint128_t. 33 | private BigInteger weight; 34 | 35 | /** 36 | * This object is only used to wrap the JSON response in a POJO, so 37 | * therefore this class should not be instantiated. 38 | */ 39 | private LiquidityBalance() { 40 | } 41 | 42 | public AccountName getAccount() { 43 | return account; 44 | } 45 | 46 | public BigInteger getWeight() { 47 | return weight; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return ToStringBuilder.reflectionToString(this); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/AccountAuthHashMapSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | import java.util.Map; 21 | import java.util.Map.Entry; 22 | 23 | import com.fasterxml.jackson.core.JsonGenerator; 24 | import com.fasterxml.jackson.databind.JsonSerializer; 25 | import com.fasterxml.jackson.databind.SerializerProvider; 26 | 27 | /** 28 | * @author dez1337 29 | */ 30 | public class AccountAuthHashMapSerializer extends JsonSerializer> { 31 | 32 | @Override 33 | public void serialize(Map accountAuthMap, JsonGenerator jsonGenerator, 34 | SerializerProvider serializerProvider) throws IOException { 35 | jsonGenerator.writeStartArray(); 36 | for (Entry accountAuth : accountAuthMap.entrySet()) { 37 | jsonGenerator.writeStartArray(); 38 | jsonGenerator.writeString(accountAuth.getKey()); 39 | jsonGenerator.writeNumber(accountAuth.getValue()); 40 | jsonGenerator.writeEndArray(); 41 | } 42 | jsonGenerator.writeEndArray(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/AssetSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | import java.util.Locale; 21 | 22 | import com.fasterxml.jackson.core.JsonGenerator; 23 | import com.fasterxml.jackson.databind.JsonSerializer; 24 | import com.fasterxml.jackson.databind.SerializerProvider; 25 | 26 | import eu.bittrade.libs.steemj.protocol.LegacyAsset; 27 | 28 | /** 29 | * @author dez1337 30 | */ 31 | public class AssetSerializer extends JsonSerializer { 32 | 33 | @Override 34 | public void serialize(LegacyAsset asset, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) 35 | throws IOException { 36 | String amountFormat = "%." + (int) asset.getPrecision() + "f"; 37 | jsonGenerator.writeString(String.format(Locale.US, amountFormat, asset.toReal()) + " " 38 | + asset.getSymbol().toString().toUpperCase()); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/BooleanSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | 21 | import com.fasterxml.jackson.core.JsonGenerator; 22 | import com.fasterxml.jackson.databind.JsonSerializer; 23 | import com.fasterxml.jackson.databind.SerializerProvider; 24 | 25 | /** 26 | * @author dez1337 27 | */ 28 | public class BooleanSerializer extends JsonSerializer { 29 | 30 | @Override 31 | public void serialize(Boolean boolValue, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) 32 | throws IOException { 33 | jsonGenerator.writeString(boolValue.toString()); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/FutureExtensionsSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | 21 | import com.fasterxml.jackson.core.JsonGenerator; 22 | import com.fasterxml.jackson.databind.JsonSerializer; 23 | import com.fasterxml.jackson.databind.SerializerProvider; 24 | 25 | import eu.bittrade.libs.steemj.base.models.FutureExtensions; 26 | 27 | /** 28 | * @author dez1337 29 | */ 30 | public class FutureExtensionsSerializer extends JsonSerializer { 31 | 32 | @Override 33 | public void serialize(FutureExtensions futureExtensions, JsonGenerator jsonGenerator, 34 | SerializerProvider serializerProvider) throws IOException { 35 | // As long as Extensions are not supported we simply return nothing 36 | // here. 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/PublicKeyHashMapSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | import java.util.Map; 21 | import java.util.Map.Entry; 22 | 23 | import com.fasterxml.jackson.core.JsonGenerator; 24 | import com.fasterxml.jackson.databind.JsonSerializer; 25 | import com.fasterxml.jackson.databind.SerializerProvider; 26 | 27 | import eu.bittrade.libs.steemj.protocol.PublicKey; 28 | 29 | /** 30 | * @author dez1337 31 | */ 32 | public class PublicKeyHashMapSerializer extends JsonSerializer> { 33 | 34 | @Override 35 | public void serialize(Map keyAuthMap, JsonGenerator jsonGenerator, 36 | SerializerProvider serializerProvider) throws IOException { 37 | jsonGenerator.writeStartArray(); 38 | for (Entry keyAuth : keyAuthMap.entrySet()) { 39 | jsonGenerator.writeStartArray(); 40 | jsonGenerator.writeString(keyAuth.getKey().getAddressFromPublicKey()); 41 | jsonGenerator.writeNumber(keyAuth.getValue()); 42 | jsonGenerator.writeEndArray(); 43 | } 44 | jsonGenerator.writeEndArray(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/base/models/serializer/PublicKeySerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.serializer; 18 | 19 | import java.io.IOException; 20 | 21 | import com.fasterxml.jackson.core.JsonGenerator; 22 | import com.fasterxml.jackson.databind.JsonSerializer; 23 | import com.fasterxml.jackson.databind.SerializerProvider; 24 | 25 | import eu.bittrade.libs.steemj.protocol.PublicKey; 26 | 27 | /** 28 | * @author dez1337 29 | */ 30 | public class PublicKeySerializer extends JsonSerializer { 31 | 32 | @Override 33 | public void serialize(PublicKey publicKey, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) 34 | throws IOException { 35 | jsonGenerator.writeString(publicKey.getAddressFromPublicKey()); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/chain/DeclineVotingRightsRequestObject.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.chain; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | import eu.bittrade.libs.steemj.fc.TimePointSec; 8 | import eu.bittrade.libs.steemj.protocol.AccountName; 9 | 10 | /** 11 | * This class represents a Steem "decline_voting_rights_request_object" object. 12 | * 13 | * @author dez1337 14 | */ 15 | public class DeclineVotingRightsRequestObject { 16 | // Original type is "id_type". 17 | @JsonProperty("id") 18 | private long id; 19 | @JsonProperty("account") 20 | private AccountName account; 21 | @JsonProperty("effective_date") 22 | private TimePointSec effectiveDate; 23 | 24 | /** 25 | * This object is only used to wrap the JSON response in a POJO, so 26 | * therefore this class should not be instantiated. 27 | */ 28 | private DeclineVotingRightsRequestObject() { 29 | } 30 | 31 | /** 32 | * @return the id 33 | */ 34 | public long getId() { 35 | return id; 36 | } 37 | 38 | /** 39 | * @return the account 40 | */ 41 | public AccountName getAccount() { 42 | return account; 43 | } 44 | 45 | /** 46 | * @return the effectiveDate 47 | */ 48 | public TimePointSec getEffectiveDate() { 49 | return effectiveDate; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | return ToStringBuilder.reflectionToString(this); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/chain/smt/objects/AccountBalanceObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.chain.smt.objects; 18 | 19 | public class AccountBalanceObject { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/chain/smt/objects/SmtTokenObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.chain.smt.objects; 18 | 19 | public class SmtTokenObject { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/communication/HttpClientRequestInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.communication; 18 | 19 | import java.io.IOException; 20 | 21 | import com.google.api.client.http.HttpRequest; 22 | import com.google.api.client.http.HttpRequestInitializer; 23 | 24 | import eu.bittrade.libs.steemj.configuration.SteemJConfig; 25 | 26 | /** 27 | * This class is used to initialize a http request. 28 | * 29 | * @author dez1337 30 | */ 31 | public class HttpClientRequestInitializer implements HttpRequestInitializer { 32 | 33 | @Override 34 | public void initialize(HttpRequest request) throws IOException { 35 | request.setConnectTimeout(SteemJConfig.getInstance().getIdleTimeout()); 36 | request.setReadTimeout(SteemJConfig.getInstance().getResponseTimeout()); 37 | request.setNumberOfRetries(0); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/AddressPrefixType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing address prefixes. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum AddressPrefixType { 25 | /** The Steem address prefix */ 26 | STM, 27 | /** The Steem test net address prefix */ 28 | TST, 29 | /** The https://testnet.steem.vc test net prefix */ 30 | STX 31 | } 32 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/BlockHeaderExtentsionsType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * The "block_header_exntesions" type is a variant, which means that it can 21 | * cover several different types. This enum stores the known core types. 22 | * 23 | * Different types are identifies by their order: The first type has the id 0, 24 | * the next one the id 1 and so on. Therefore do not change the order of 25 | * this enum. 26 | * 27 | * @author dez1337 28 | */ 29 | public enum BlockHeaderExtentsionsType { 30 | /** NA */ 31 | VOID_T, 32 | /** Normal witness version reporting, for diagnostics and voting. */ 33 | VERSION, 34 | /** NA */ 35 | HARDFORK_VERSION_VOTE 36 | } 37 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/CommentOptionsExtensionsType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * The "comment_options_exntesions" type is a variant, which means that it can 21 | * cover several different types. This enum stores the known core types. 22 | * 23 | * Different types are identifies by their order: The first type has the id 0, 24 | * the next one the id 1 and so on. Therefore do not change the order of 25 | * this enum. 26 | * 27 | * @author dez1337 28 | */ 29 | public enum CommentOptionsExtensionsType { 30 | /** NA */ 31 | COMMENT_PAYOUT_BENEFICIARIES 32 | } 33 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/PrivateKeyType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing private key types. 21 | * 22 | * Attention 23 | * 24 | * Changing the order of the private key types will result in an unexpected 25 | * behavior. 26 | * 27 | * @author dez1337 28 | */ 29 | public enum PrivateKeyType { 30 | /** The owner key type */ 31 | OWNER, 32 | /** The active key type */ 33 | ACTIVE, 34 | /** The memo key type */ 35 | MEMO, 36 | /** The posting key type */ 37 | POSTING, 38 | /** 39 | * The 'OTHER' key type is no real key type - It is only used to indicate 40 | * that an authority needs to be provided. 41 | */ 42 | OTHER 43 | } 44 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/RewardFundType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing reward funds. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum RewardFundType { 25 | COMMENT, POST 26 | } 27 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/SteemApiType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing APIs. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum SteemApiType { 25 | /** The Steem "account_by_key_api" */ 26 | ACCOUNT_BY_KEY_API, 27 | /** The Steem "account_history_api" */ 28 | ACCOUNT_HISTORY_API, 29 | /** The Steem "block_api" */ 30 | BLOCK_API, 31 | /** The Steem "chain_api" */ 32 | CHAIN_API, 33 | /** The Steem "condenser_api" */ 34 | CONDENSER_API, 35 | /** The Steem "database_api" */ 36 | DATABASE_API, 37 | /** The Steem "debug_node_api" */ 38 | DEBUG_NODE_API, 39 | /** The Steem "follow_api" */ 40 | FOLLOW_API, 41 | /** The Steem "market_history_api" */ 42 | MARKET_HISTORY_API, 43 | /** The Steem "network_broadcast_api" */ 44 | NETWORK_BROADCAST_API, 45 | /** The Steem "tags_api" */ 46 | TAGS_API, 47 | /** The Steem "witness_api" */ 48 | WITNESS_API 49 | } 50 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/SynchronizationType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing synchronization types. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum SynchronizationType { 25 | /** Synchronize everything. */ 26 | FULL, 27 | /** Only synchronize available APIs. */ 28 | APIS_ONLY, 29 | /** Only synchronize properties. */ 30 | PROPERTIES_ONLY, 31 | /** Do not synchronize values with the connected Node. */ 32 | NONE 33 | } 34 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/ValidationType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing validation types. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum ValidationType { 25 | /** 26 | * Indicates that all validation methods (except of null pointer checks) 27 | * should be skipped. 28 | */ 29 | SKIP_VALIDATION, 30 | /** Indicates that the validation of assets should be skipped. */ 31 | SKIP_ASSET_VALIDATION, 32 | /** 33 | * Indicates that the JSON response should not be handled strict. This can 34 | * help in cases where the Steem node provides an API in an incompatible 35 | * version which results in incompatible/missing fields. 36 | */ 37 | SKIP_JSON_VALIDATION 38 | } 39 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/enums/WitnessScheduleType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.enums; 18 | 19 | /** 20 | * An enumeration for all existing witness schedule types. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum WitnessScheduleType { 25 | TOP19, TIMESHARE, MINER, NONE 26 | } 27 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemCommunicationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * Generic Exception Type to handle connection problems with the Steem Node. 21 | * 22 | * @author dez1337 23 | */ 24 | public class SteemCommunicationException extends Exception { 25 | private static final long serialVersionUID = -3389735550453652555L; 26 | 27 | public SteemCommunicationException() { 28 | super(); 29 | } 30 | 31 | public SteemCommunicationException(String message) { 32 | super(message); 33 | } 34 | 35 | public SteemCommunicationException(Throwable cause) { 36 | super("Sorry, an error occurred while processing your request.", cause); 37 | } 38 | 39 | public SteemCommunicationException(String message, Throwable cause) { 40 | super(message, cause); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemConnectionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle connection problems. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemConnectionException extends SteemCommunicationException { 25 | private static final long serialVersionUID = 8749084658239933634L; 26 | 27 | public SteemConnectionException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemConnectionException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemFatalErrorException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle unexpected and urgent problems. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemFatalErrorException extends RuntimeException { 25 | private static final long serialVersionUID = -1387551120252237903L; 26 | 27 | public SteemFatalErrorException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemFatalErrorException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemInvalidTransactionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle invalid transactions. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemInvalidTransactionException extends Exception { 25 | private static final long serialVersionUID = -3747123400720358339L; 26 | 27 | public SteemInvalidTransactionException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemInvalidTransactionException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemKeyHandlingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle problems while working with keys. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemKeyHandlingException extends Exception { 25 | private static final long serialVersionUID = 6567388066484382881L; 26 | 27 | public SteemKeyHandlingException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemKeyHandlingException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemTimeoutException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle timeouts. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemTimeoutException extends SteemCommunicationException { 25 | private static final long serialVersionUID = 147694337695115012L; 26 | 27 | public SteemTimeoutException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemTimeoutException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/exceptions/SteemTransformationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.exceptions; 18 | 19 | /** 20 | * A custom Exception to handle transformation-Exceptions. 21 | * 22 | * @authordez1337 23 | */ 24 | public class SteemTransformationException extends SteemCommunicationException { 25 | private static final long serialVersionUID = -1405676306096463952L; 26 | 27 | public SteemTransformationException(String message) { 28 | super(message); 29 | } 30 | 31 | public SteemTransformationException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/interfaces/ByteTransformable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.interfaces; 18 | 19 | import eu.bittrade.libs.steemj.exceptions.SteemInvalidTransactionException; 20 | 21 | /** 22 | * This interface is used to make sure each operation implements a method to get 23 | * its byte representation. 24 | * 25 | * @author dez1337 26 | */ 27 | public interface ByteTransformable { 28 | /** 29 | * Covert the operation into a byte array. 30 | * 31 | * @return The operation as a byte array. 32 | * @throws SteemInvalidTransactionException 33 | * If there was a problem while transforming the transaction 34 | * into a byte array. 35 | */ 36 | byte[] toByteArray() throws SteemInvalidTransactionException; 37 | } 38 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/interfaces/SignatureObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.interfaces; 18 | 19 | /** 20 | * This interface is used to mark classes which can contain information required 21 | * to sign a transaction. 22 | * 23 | * @author dez1337 24 | */ 25 | public interface SignatureObject { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/interfaces/Validatable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.interfaces; 18 | 19 | import java.security.InvalidParameterException; 20 | import java.util.List; 21 | 22 | import eu.bittrade.libs.steemj.enums.ValidationType; 23 | 24 | /** 25 | * This interface is used to make sure an object implements the validate method. 26 | * 27 | * @author dez1337 28 | */ 29 | public interface Validatable { 30 | /** 31 | * Use this method to verify that this object is valid. 32 | * 33 | * @param validationsToSkip 34 | * An indicator telling the method what should be validated. 35 | * @throws InvalidParameterException 36 | * If a field does not fulfill the requirements. 37 | */ 38 | public void validate(List validationsToSkip); 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/account/by/key/models/GetKeyReferencesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.account.by.key.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | import eu.bittrade.libs.steemj.protocol.AccountName; 26 | 27 | /** 28 | * This class is the java implementation of the Steem 29 | * "get_key_references_return" object. 30 | * 31 | * @author dez1337 32 | */ 33 | public class GetKeyReferencesReturn { 34 | @JsonProperty("accounts") 35 | private List accounts; 36 | 37 | /** 38 | * This object is only used to wrap the JSON response in a POJO, so 39 | * therefore this class should not be instantiated. 40 | */ 41 | private GetKeyReferencesReturn() { 42 | } 43 | 44 | /** 45 | * @return the accounts 46 | */ 47 | public List getAccounts() { 48 | return accounts; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return ToStringBuilder.reflectionToString(this); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/account/history/models/GetOpsInBlockReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.account.history.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class implements the Steem "get_ops_in_block_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetOpsInBlockReturn { 31 | @JsonProperty("ops") 32 | private List operations; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetOpsInBlockReturn() { 39 | } 40 | 41 | /** 42 | * Get the list of {@link AppliedOperation AppliedOperations} returned from 43 | * the Steem Node. 44 | * 45 | * @return A list of {@link AppliedOperation AppliedOperations}. 46 | */ 47 | public List getOperations() { 48 | return operations; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return ToStringBuilder.reflectionToString(this); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/block/models/GetBlockHeaderReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.block.models; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | import com.fasterxml.jackson.annotation.JsonProperty; 22 | import com.google.common.base.Optional; 23 | 24 | import eu.bittrade.libs.steemj.protocol.BlockHeader; 25 | 26 | /** 27 | * This class is the java implementation of the Steem "get_block_header_return" 28 | * object. 29 | * 30 | * @author dez1337 31 | */ 32 | public class GetBlockHeaderReturn { 33 | @JsonProperty("header") 34 | private BlockHeader header; 35 | 36 | /** 37 | * This object is only used to wrap the JSON response in a POJO, so 38 | * therefore this class should not be instantiated. 39 | */ 40 | private GetBlockHeaderReturn() { 41 | } 42 | 43 | /** 44 | * @return the header 45 | */ 46 | public Optional getHeader() { 47 | return Optional.fromNullable(header); 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return ToStringBuilder.reflectionToString(this); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/block/models/GetBlockReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.block.models; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | import com.fasterxml.jackson.annotation.JsonProperty; 22 | import com.google.common.base.Optional; 23 | 24 | /** 25 | * This class is the java implementation of the Steem "get_block_return" object. 26 | * 27 | * @author dez1337 28 | */ 29 | public class GetBlockReturn { 30 | @JsonProperty("block") 31 | private ExtendedSignedBlock block; 32 | 33 | /** 34 | * This object is only used to wrap the JSON response in a POJO, so 35 | * therefore this class should not be instantiated. 36 | */ 37 | private GetBlockReturn() { 38 | } 39 | 40 | /** 41 | * @return the header 42 | */ 43 | public Optional getBlock() { 44 | return Optional.fromNullable(block); 45 | } 46 | 47 | @Override 48 | public String toString() { 49 | return ToStringBuilder.reflectionToString(this); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/chain/models/PushBlockReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.chain.models; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | import com.fasterxml.jackson.annotation.JsonProperty; 22 | import com.google.common.base.Optional; 23 | 24 | /** 25 | * This class is the java implementation of the Steem "push_block_return" 26 | * object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class PushBlockReturn { 31 | @JsonProperty("success") 32 | private boolean success; 33 | @JsonProperty("error") 34 | private String error; 35 | 36 | /** 37 | * This object is only used to wrap the JSON response in a POJO, so 38 | * therefore this class should not be instantiated. 39 | */ 40 | private PushBlockReturn() { 41 | } 42 | 43 | /** 44 | * @return the success 45 | */ 46 | public boolean isSuccess() { 47 | return success; 48 | } 49 | 50 | /** 51 | * @return the error 52 | */ 53 | public Optional getError() { 54 | return Optional.fromNullable(error); 55 | } 56 | 57 | @Override 58 | public String toString() { 59 | return ToStringBuilder.reflectionToString(this); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/condenser/models/TagIndex.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.condenser.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | import eu.bittrade.libs.steemj.plugins.apis.tags.models.TagName; 26 | 27 | /** 28 | * This class represents a Steem "tag_index" object. 29 | * 30 | * @author dez1337 31 | */ 32 | public class TagIndex { 33 | @JsonProperty("trending") 34 | List trending; 35 | /// --> pending payouts?? 36 | 37 | /** 38 | * This object is only used to wrap the JSON response in a POJO, so 39 | * therefore this class should not be instantiated. 40 | */ 41 | protected TagIndex() { 42 | } 43 | 44 | /** 45 | * @return the trending 46 | */ 47 | public List getTrending() { 48 | return trending; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return ToStringBuilder.reflectionToString(this); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/enums/OrderType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.enums; 18 | 19 | /** 20 | * An enumeration for all existing order types. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum OrderType { 25 | /** Indicates that the operation is of type "buy". */ 26 | BUY, 27 | /** Indicates that the operation is of type "sell". */ 28 | SELL 29 | } 30 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindAccountRecoveryRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | import org.apache.commons.lang3.builder.ToStringBuilder; 7 | 8 | import com.fasterxml.jackson.annotation.JsonCreator; 9 | import com.fasterxml.jackson.annotation.JsonProperty; 10 | 11 | import eu.bittrade.libs.steemj.protocol.AccountName; 12 | 13 | /** 14 | * This class represents a Steem "find_account_recovery_requests_args" object. 15 | * 16 | * @author dez1337 17 | */ 18 | public class FindAccountRecoveryRequestsArgs { 19 | @JsonProperty("accounts") 20 | private List accounts; 21 | 22 | /** 23 | * 24 | * @param accounts 25 | */ 26 | @JsonCreator() 27 | public FindAccountRecoveryRequestsArgs(@JsonProperty("accounts") List accounts) { 28 | this.setAccounts(accounts); 29 | } 30 | 31 | /** 32 | * 33 | * @param account 34 | */ 35 | public FindAccountRecoveryRequestsArgs(AccountName account) { 36 | this.setAccounts(Arrays.asList(account)); 37 | } 38 | 39 | /** 40 | * @return the accounts 41 | */ 42 | public List getAccounts() { 43 | return accounts; 44 | } 45 | 46 | /** 47 | * @param accounts 48 | * the accounts to set 49 | */ 50 | public void setAccounts(List accounts) { 51 | this.accounts = accounts; 52 | } 53 | 54 | @Override 55 | public String toString() { 56 | return ToStringBuilder.reflectionToString(this); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindAccountRecoveryRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_account_recovery_requests_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindAccountRecoveryRequestsReturn extends ListAccountRecoveryRequestsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindAccountRecoveryRequestsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindAccountsReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | import eu.bittrade.libs.steemj.protocol.AccountName; 26 | 27 | /** 28 | * This class represents a Steem "find_accounts_return" object. 29 | * 30 | * @author dez1337 31 | */ 32 | public class FindAccountsReturn { 33 | @JsonProperty("accounts") 34 | private List accounts; 35 | 36 | /** 37 | * This object is only used to wrap the JSON response in a POJO, so 38 | * therefore this class should not be instantiated. 39 | */ 40 | private FindAccountsReturn() { 41 | } 42 | 43 | /** 44 | * @return the accounts 45 | */ 46 | public List getAccounts() { 47 | return accounts; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return ToStringBuilder.reflectionToString(this); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindChangeRecoveryAccountRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_change_recovery_account_requests_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class FindChangeRecoveryAccountRequestsArgs { 12 | // TODO: vector< account_name_type > accounts; 13 | 14 | @Override 15 | public String toString() { 16 | return ToStringBuilder.reflectionToString(this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindChangeRecoveryAccountRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_change_recovery_account_requests_return" 5 | * object. 6 | * 7 | * @author dez1337 8 | */ 9 | public class FindChangeRecoveryAccountRequestsReturn extends ListChangeRecoveryAccountRequestsReturn { 10 | /** 11 | * This object is only used to wrap the JSON response in a POJO, so 12 | * therefore this class should not be instantiated. 13 | */ 14 | private FindChangeRecoveryAccountRequestsReturn() { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindCommentsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_comments_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindCommentsArgs { 11 | // TODO: vector< std::pair< account_name_type, string > > comments; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindCommentsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_comments_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindCommentsReturn extends ListCommentsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindCommentsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindDeclineVotingRightsRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_decline_voting_rights_requests_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class FindDeclineVotingRightsRequestsArgs { 12 | // TODO: vector< account_name_type > accounts; 13 | 14 | @Override 15 | public String toString() { 16 | return ToStringBuilder.reflectionToString(this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindDeclineVotingRightsRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_decline_voting_rights_requests_return" 5 | * object. 6 | * 7 | * @author dez1337 8 | */ 9 | public class FindDeclineVotingRightsRequestsReturn extends ListDeclineVotingRightsRequestsReturn { 10 | /** 11 | * This object is only used to wrap the JSON response in a POJO, so 12 | * therefore this class should not be instantiated. 13 | */ 14 | private FindDeclineVotingRightsRequestsReturn() { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindEscrowsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_escrows_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindEscrowsArgs { 11 | // TODO: account_name_type from; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindEscrowsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_escrows_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindEscrowsReturn extends ListEscrowsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindEscrowsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindLimitOrdersArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_limit_orders_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindLimitOrdersArgs { 11 | // TODO: account_name_type account; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindLimitOrdersReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_limit_orders_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindLimitOrdersReturn extends ListLimitOrdersReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindLimitOrdersReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindOwnerHistoriesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_owner_histories_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindOwnerHistoriesReturn extends ListOwnerHistoriesReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindOwnerHistoriesReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindSavingsWithdrawalsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_savings_withdrawals_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindSavingsWithdrawalsArgs { 11 | // TODO: account_name_type account; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindSavingsWithdrawalsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_savings_withdrawals_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindSavingsWithdrawalsReturn extends ListSavingsWithdrawalsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindSavingsWithdrawalsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindSbdConversionRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_sbd_conversion_requests_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindSbdConversionRequestsArgs { 11 | // TODO: account_name_type account; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindSbdConversionRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_sbd_conversion_requests_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindSbdConversionRequestsReturn extends ListSbdConversionRequestsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindSbdConversionRequestsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVestingDelegationExpirationsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_vesting_delegation_expirations_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class FindVestingDelegationExpirationsArgs { 12 | // TODO: fc::variant start; 13 | // TODO: uint32_t limit; 14 | // TODO: sort_order_type order; 15 | 16 | @Override 17 | public String toString() { 18 | return ToStringBuilder.reflectionToString(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVestingDelegationExpirationsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_vesting_delegation_expirations_return" 5 | * object. 6 | * 7 | * @author dez1337 8 | */ 9 | public class FindVestingDelegationExpirationsReturn extends ListVestingDelegationExpirationsReturn { 10 | /** 11 | * This object is only used to wrap the JSON response in a POJO, so 12 | * therefore this class should not be instantiated. 13 | */ 14 | private FindVestingDelegationExpirationsReturn() { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVestingDelegationsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_vesting_delegations_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindVestingDelegationsArgs { 11 | // TODO: account_name_type account; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVestingDelegationsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_vesting_delegations_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindVestingDelegationsReturn extends ListVestingDelegationsReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindVestingDelegationsReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVotesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | import eu.bittrade.libs.steemj.base.models.Permlink; 8 | import eu.bittrade.libs.steemj.protocol.AccountName; 9 | 10 | /** 11 | * This class represents a Steem "find_votes_args" object. 12 | * 13 | * @author dez1337 14 | */ 15 | public class FindVotesArgs { 16 | @JsonProperty("author") 17 | private AccountName author; 18 | @JsonProperty("permlink") 19 | private Permlink permlink; 20 | 21 | /** 22 | * @return the author 23 | */ 24 | public AccountName getAuthor() { 25 | return author; 26 | } 27 | 28 | /** 29 | * @param author 30 | * the author to set 31 | */ 32 | public void setAuthor(AccountName author) { 33 | this.author = author; 34 | } 35 | 36 | /** 37 | * @return the permlink 38 | */ 39 | public Permlink getPermlink() { 40 | return permlink; 41 | } 42 | 43 | /** 44 | * @param permlink 45 | * the permlink to set 46 | */ 47 | public void setPermlink(Permlink permlink) { 48 | this.permlink = permlink; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return ToStringBuilder.reflectionToString(this); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindVotesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_votes_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindVotesReturn extends ListVotesReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindVotesReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindWithdrawVestingRoutesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "find_withdraw_vesting_routes_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class FindWithdrawVestingRoutesArgs { 11 | // TODO: account_name_type account; 12 | // TODO: sort_order_type order; 13 | 14 | @Override 15 | public String toString() { 16 | return ToStringBuilder.reflectionToString(this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/FindWithdrawVestingRoutesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "find_withdraw_vesting_routes_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class FindWithdrawVestingRoutesReturn extends ListWithdrawVestingRoutesReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private FindWithdrawVestingRoutesReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetOrderBookArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_order_book_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetOrderBookArgs { 11 | // TODO: uint32_t limit; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetOrderBookReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "get_order_book_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class GetOrderBookReturn extends OrderBook { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private GetOrderBookReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetPotentialSignaturesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_potential_signatures_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetPotentialSignaturesArgs { 11 | // TODO: signed_transaction trx; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetPotentialSignaturesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | /** 4 | * This class represents a Steem "get_potential_signatures_return" object. 5 | * 6 | * @author dez1337 7 | */ 8 | public class GetPotentialSignaturesReturn extends GetRequiredSignaturesReturn { 9 | /** 10 | * This object is only used to wrap the JSON response in a POJO, so 11 | * therefore this class should not be instantiated. 12 | */ 13 | private GetPotentialSignaturesReturn() { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetRequiredSignaturesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_required_signatures_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetRequiredSignaturesArgs { 11 | // TODO: signed_transaction trx; 12 | // TODO: flat_set< public_key_type > available_keys; 13 | 14 | @Override 15 | public String toString() { 16 | return ToStringBuilder.reflectionToString(this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetRequiredSignaturesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_required_signatures_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetRequiredSignaturesReturn { 11 | // TODO: set< public_key_type > keys; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link GetPotentialSignaturesReturn} class. 19 | */ 20 | protected GetRequiredSignaturesReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetSmtNextIdentifierReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_smt_next_identifier_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetSmtNextIdentifierReturn { 11 | // TODO: vector< asset_symbol_type > nais; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | */ 17 | private GetSmtNextIdentifierReturn() { 18 | } 19 | 20 | @Override 21 | public String toString() { 22 | return ToStringBuilder.reflectionToString(this); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetTransactionHexArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_transaction_hex_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetTransactionHexArgs { 11 | // TODO: signed_transaction trx; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/GetTransactionHexReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "get_transaction_hex_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class GetTransactionHexReturn { 11 | // TODO: std::string hex; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | */ 17 | private GetTransactionHexReturn() { 18 | } 19 | 20 | @Override 21 | public String toString() { 22 | return ToStringBuilder.reflectionToString(this); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListAccountRecoveryRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_account_recovery_requests_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListAccountRecoveryRequestsArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListAccountRecoveryRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_account_recovery_requests_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListAccountRecoveryRequestsReturn { 11 | // TODO: vector< api_account_recovery_request_object > requests; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link FindAccountRecoveryRequestsReturn} class. 19 | */ 20 | protected ListAccountRecoveryRequestsReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListAccountsReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | import eu.bittrade.libs.steemj.protocol.AccountName; 26 | 27 | /** 28 | * This class represents a Steem "list_accounts_return" object. 29 | * 30 | * @author dez1337 31 | */ 32 | public class ListAccountsReturn { 33 | @JsonProperty("accounts") 34 | private List accounts; 35 | 36 | /** 37 | * This object is only used to wrap the JSON response in a POJO, so 38 | * therefore this class should not be instantiated. 39 | */ 40 | private ListAccountsReturn() { 41 | } 42 | 43 | /** 44 | * @return the accounts 45 | */ 46 | public List getAccounts() { 47 | return accounts; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return ToStringBuilder.reflectionToString(this); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListChangeRecoveryAccountRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_change_recovery_account_requests_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class ListChangeRecoveryAccountRequestsArgs { 12 | // TODO: fc::variant start; 13 | // TODO: uint32_t limit; 14 | // TODO: sort_order_type order; 15 | 16 | @Override 17 | public String toString() { 18 | return ToStringBuilder.reflectionToString(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListChangeRecoveryAccountRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | import eu.bittrade.libs.steemj.chain.ChangeRecoveryAccountRequest; 8 | 9 | /** 10 | * This class represents a Steem "list_change_recovery_account_requests_return" 11 | * object. 12 | * 13 | * @author dez1337 14 | */ 15 | public class ListChangeRecoveryAccountRequestsReturn { 16 | @JsonProperty("requests") 17 | private ChangeRecoveryAccountRequest requests; 18 | 19 | /** 20 | * This object is only used to wrap the JSON response in a POJO, so 21 | * therefore this class should not be instantiated. 22 | * 23 | * Visibility set to protected as this is the parent of the 24 | * {@link FindChangeRecoveryAccountRequestsReturn} class. 25 | */ 26 | protected ListChangeRecoveryAccountRequestsReturn() { 27 | } 28 | 29 | /** 30 | * @return the requests 31 | */ 32 | public ChangeRecoveryAccountRequest getRequests() { 33 | return requests; 34 | } 35 | 36 | @Override 37 | public String toString() { 38 | return ToStringBuilder.reflectionToString(this); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListCommentsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_comments_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListCommentsArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListCommentsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | /** 8 | * This class represents a Steem "list_comments_return" object. 9 | * 10 | * @author dez1337 11 | */ 12 | public class ListCommentsReturn { 13 | @JsonProperty("comments") 14 | private Comment comments; 15 | 16 | /** 17 | * This object is only used to wrap the JSON response in a POJO, so 18 | * therefore this class should not be instantiated. 19 | * 20 | * Visibility set to protected as this is the parent of the 21 | * {@link FindCommentsReturn} class. 22 | */ 23 | protected ListCommentsReturn() { 24 | } 25 | 26 | /** 27 | * @return the comments 28 | */ 29 | public Comment getComments() { 30 | return comments; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return ToStringBuilder.reflectionToString(this); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListDeclineVotingRightsRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_decline_voting_rights_requests_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class ListDeclineVotingRightsRequestsArgs { 12 | // TODO: fc::variant start; 13 | // TODO: uint32_t limit; 14 | // TODO: sort_order_type order; 15 | 16 | @Override 17 | public String toString() { 18 | return ToStringBuilder.reflectionToString(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListDeclineVotingRightsRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.commons.lang3.builder.ToStringBuilder; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | import eu.bittrade.libs.steemj.chain.DeclineVotingRightsRequestObject; 10 | 11 | /** 12 | * This class represents a Steem "list_decline_voting_rights_requests_return" 13 | * object. 14 | * 15 | * @author dez1337 16 | */ 17 | public class ListDeclineVotingRightsRequestsReturn { 18 | @JsonProperty("requests") 19 | private List requests; 20 | 21 | /** 22 | * This object is only used to wrap the JSON response in a POJO, so 23 | * therefore this class should not be instantiated. 24 | * 25 | * Visibility set to protected as this is the parent of the 26 | * {@link FindDeclineVotingRightsRequestsReturn} class. 27 | */ 28 | protected ListDeclineVotingRightsRequestsReturn() { 29 | } 30 | 31 | /** 32 | * @return the requests 33 | */ 34 | public List getRequests() { 35 | return requests; 36 | } 37 | 38 | @Override 39 | public String toString() { 40 | return ToStringBuilder.reflectionToString(this); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListLimitOrdersArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_limit_orders_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListLimitOrdersArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListLimitOrdersReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.commons.lang3.builder.ToStringBuilder; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | import eu.bittrade.libs.steemj.chain.LimitOrder; 10 | 11 | /** 12 | * This class represents a Steem "list_limit_orders_return" object. 13 | * 14 | * @author dez1337 15 | */ 16 | public class ListLimitOrdersReturn { 17 | @JsonProperty("orders") 18 | private List orders; 19 | 20 | /** 21 | * This object is only used to wrap the JSON response in a POJO, so 22 | * therefore this class should not be instantiated. 23 | * 24 | * Visibility set to protected as this is the parent of the 25 | * {@link FindLimitOrdersReturn} class. 26 | */ 27 | protected ListLimitOrdersReturn() { 28 | } 29 | 30 | /** 31 | * @return the orders 32 | */ 33 | public List getOrders() { 34 | return orders; 35 | } 36 | 37 | @Override 38 | public String toString() { 39 | return ToStringBuilder.reflectionToString(this); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListOwnerHistoriesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "list_owner_histories_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class ListOwnerHistoriesReturn { 31 | @JsonProperty("owner_auths") 32 | private List ownerAuths; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | * 38 | * Visibility set to protected as it is the parent of the 39 | * {@link FindOwnerHistoriesReturn} class. 40 | */ 41 | protected ListOwnerHistoriesReturn() { 42 | } 43 | 44 | /** 45 | * @return the ownerAuths 46 | */ 47 | public List getOwnerAuths() { 48 | return ownerAuths; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return ToStringBuilder.reflectionToString(this); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListSavingsWithdrawalsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_savings_withdrawals_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListSavingsWithdrawalsArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListSavingsWithdrawalsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.commons.lang3.builder.ToStringBuilder; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | /** 10 | * This class represents a Steem "list_savings_withdrawals_return" object. 11 | * 12 | * @author dez1337 13 | */ 14 | public class ListSavingsWithdrawalsReturn { 15 | @JsonProperty("withdrawals") 16 | private List withdrawals; 17 | 18 | /** 19 | * This object is only used to wrap the JSON response in a POJO, so 20 | * therefore this class should not be instantiated. 21 | * 22 | * Visibility set to protected as this is the parent of the 23 | * {@link ListLimitOrdersReturn} class. 24 | */ 25 | protected ListSavingsWithdrawalsReturn() { 26 | } 27 | 28 | /** 29 | * @return the withdrawals 30 | */ 31 | public List getWithdrawals() { 32 | return withdrawals; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return ToStringBuilder.reflectionToString(this); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListSbdConversionRequestsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_sbd_conversion_requests_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListSbdConversionRequestsArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListSbdConversionRequestsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_sbd_conversion_requests_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListSbdConversionRequestsReturn { 11 | // TODO: vector< api_convert_request_object > requests; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link FindSbdConversionRequestsReturn} class. 19 | */ 20 | protected ListSbdConversionRequestsReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVestingDelegationExpirationsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_vesting_delegation_expirations_args" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class ListVestingDelegationExpirationsArgs { 12 | // TODO: fc::variant start; 13 | // TODO: uint32_t limit; 14 | // TODO: sort_order_type order; 15 | 16 | @Override 17 | public String toString() { 18 | return ToStringBuilder.reflectionToString(this); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVestingDelegationExpirationsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_vesting_delegation_expirations_return" 7 | * object. 8 | * 9 | * @author dez1337 10 | */ 11 | public class ListVestingDelegationExpirationsReturn { 12 | // TODO: vector< api_vesting_delegation_expiration_object > delegations; 13 | 14 | /** 15 | * This object is only used to wrap the JSON response in a POJO, so 16 | * therefore this class should not be instantiated. 17 | * 18 | * Visibility set to protected as this is the parent of the 19 | * {@link FindVestingDelegationExpirationsReturn} class. 20 | */ 21 | protected ListVestingDelegationExpirationsReturn() { 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return ToStringBuilder.reflectionToString(this); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVestingDelegationsArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_vesting_delegations_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListVestingDelegationsArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVestingDelegationsReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_vesting_delegations_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListVestingDelegationsReturn { 11 | // TODO: vector< api_vesting_delegation_object > delegations; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link FindVestingDelegationsReturn} class. 19 | */ 20 | protected ListVestingDelegationsReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVotesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_votes_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListVotesArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListVotesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_votes_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListVotesReturn { 11 | // TODO: vector< api_comment_vote_object > votes; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link FindVotesReturn} class. 19 | */ 20 | protected ListVotesReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListWithdrawVestingRoutesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_withdraw_vesting_routes_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListWithdrawVestingRoutesArgs { 11 | // TODO: fc::variant start; 12 | // TODO: uint32_t limit; 13 | // TODO: sort_order_type order; 14 | 15 | @Override 16 | public String toString() { 17 | return ToStringBuilder.reflectionToString(this); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListWithdrawVestingRoutesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "list_withdraw_vesting_routes_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class ListWithdrawVestingRoutesReturn { 11 | // TODO: vector< api_withdraw_vesting_route_object > routes; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | * 17 | * Visibility set to protected as this is the parent of the 18 | * {@link FindWithdrawVestingRoutesReturn} class. 19 | */ 20 | protected ListWithdrawVestingRoutesReturn() { 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return ToStringBuilder.reflectionToString(this); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListWitnessVotesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | import eu.bittrade.libs.steemj.chain.WitnessVote; 26 | 27 | /** 28 | * This class represents a Steem "list_witness_votes_return" object. 29 | * 30 | * @author dez1337 31 | */ 32 | public class ListWitnessVotesReturn { 33 | @JsonProperty("votes") 34 | private List votes; 35 | 36 | /** 37 | * This object is only used to wrap the JSON response in a POJO, so 38 | * therefore this class should not be instantiated. 39 | */ 40 | protected ListWitnessVotesReturn() { 41 | } 42 | 43 | /** 44 | * @return the votes 45 | */ 46 | public List getVotes() { 47 | return votes; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return ToStringBuilder.reflectionToString(this); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/ListWitnessesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "list_witnesses_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class ListWitnessesReturn { 31 | @JsonProperty("witnesses") 32 | private List witnesses; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | protected ListWitnessesReturn() { 39 | } 40 | 41 | /** 42 | * @return the witnesses 43 | */ 44 | public List getWitnesses() { 45 | return witnesses; 46 | } 47 | 48 | /** 49 | * @param witnesses 50 | * the witnesses to set 51 | */ 52 | public void setWitnesses(List witnesses) { 53 | this.witnesses = witnesses; 54 | } 55 | 56 | @Override 57 | public String toString() { 58 | return ToStringBuilder.reflectionToString(this); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifyAccountAuthorityArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "verify_account_authority_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class VerifyAccountAuthorityArgs { 11 | // TODO: account_name_type account; 12 | // TODO: flat_set< public_key_type > signers; 13 | 14 | @Override 15 | public String toString() { 16 | return ToStringBuilder.reflectionToString(this); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifyAccountAuthorityReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "verify_account_authority_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class VerifyAccountAuthorityReturn extends VerifyAuthorityReturn { 11 | /** 12 | * This object is only used to wrap the JSON response in a POJO, so 13 | * therefore this class should not be instantiated. 14 | */ 15 | private VerifyAccountAuthorityReturn() { 16 | } 17 | 18 | @Override 19 | public String toString() { 20 | return ToStringBuilder.reflectionToString(this); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifyAuthorityArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "verify_authority_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class VerifyAuthorityArgs { 11 | // TODO signed_transaction trx; 12 | 13 | @Override 14 | public String toString() { 15 | return ToStringBuilder.reflectionToString(this); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifyAuthorityReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | /** 8 | * This class represents a Steem "verify_authority_return" object. 9 | * 10 | * @author dez1337 11 | */ 12 | public class VerifyAuthorityReturn { 13 | @JsonProperty("valid") 14 | private boolean valid; 15 | 16 | /** 17 | * This object is only used to wrap the JSON response in a POJO, so 18 | * therefore this class should not be instantiated. 19 | * 20 | * Visibility set to protected as this is the parent of the 21 | * {@link VerifyAccountAuthorityReturn} class. 22 | */ 23 | protected VerifyAuthorityReturn() { 24 | } 25 | 26 | /** 27 | * @return the valid 28 | */ 29 | public boolean isValid() { 30 | return valid; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return ToStringBuilder.reflectionToString(this); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifySignaturesArgs.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "verify_signatures_args" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class VerifySignaturesArgs { 11 | /* 12 | * TODO: fc::sha256 hash; vector< signature_type > signatures; vector< 13 | * account_name_type > required_owner; vector< account_name_type > 14 | * required_active; vector< account_name_type > required_posting; vector< 15 | * authority > required_other; 16 | * 17 | * void get_required_owner_authorities( flat_set< account_name_type >& a 18 | * )const { a.insert( required_owner.begin(), required_owner.end() ); } 19 | * 20 | * void get_required_active_authorities( flat_set< account_name_type >& a 21 | * )const { a.insert( required_active.begin(), required_active.end() ); } 22 | * 23 | * void get_required_posting_authorities( flat_set< account_name_type >& a 24 | * )const { a.insert( required_posting.begin(), required_posting.end() ); } 25 | * 26 | * void get_required_authorities( vector< authority >& a )const { a.insert( 27 | * a.end(), required_other.begin(), required_other.end() ); } 28 | */ 29 | 30 | @Override 31 | public String toString() { 32 | return ToStringBuilder.reflectionToString(this); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/database/models/VerifySignaturesReturn.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.plugins.apis.database.models; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | /** 6 | * This class represents a Steem "verify_signatures_return" object. 7 | * 8 | * @author dez1337 9 | */ 10 | public class VerifySignaturesReturn { 11 | // TODO bool valid; 12 | 13 | /** 14 | * This object is only used to wrap the JSON response in a POJO, so 15 | * therefore this class should not be instantiated. 16 | */ 17 | private VerifySignaturesReturn() { 18 | } 19 | 20 | @Override 21 | public String toString() { 22 | return ToStringBuilder.reflectionToString(this); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/debug/node/DebugNodeApi.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.debug.node; 18 | 19 | /** 20 | * This class implements the "debug_node_api". 21 | * 22 | * @author dez1337 23 | */ 24 | public class DebugNodeApi { 25 | // DECLARE_API( 26 | /** 27 | * Push blocks from existing database. 28 | */ 29 | // (debug_push_blocks) 30 | 31 | /** 32 | * Generate blocks locally. 33 | */ 34 | // (debug_generate_blocks) 35 | 36 | /* 37 | * Generate blocks locally until a specified head block time. Can generate 38 | * them sparsely. 39 | */ 40 | // (debug_generate_blocks_until) 41 | 42 | /* 43 | * Pop a block from the blockchain, returning it 44 | */ 45 | /* 46 | * (debug_pop_block) (debug_get_witness_schedule) 47 | * (debug_get_hardfork_property_object) 48 | * 49 | * (debug_set_hardfork) (debug_has_hardfork) (debug_get_json_schema) 50 | */ 51 | } 52 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/follow/enums/FollowType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.follow.enums; 18 | 19 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 20 | import com.fasterxml.jackson.databind.annotation.JsonSerialize; 21 | 22 | import eu.bittrade.libs.steemj.plugins.apis.follow.models.deserializer.FollowTypeDeserializer; 23 | import eu.bittrade.libs.steemj.plugins.apis.follow.models.serializer.FollowTypeSerializer; 24 | 25 | /** 26 | * An enumeration for all existing follow types. 27 | * 28 | * @author dez1337 29 | */ 30 | @JsonDeserialize(using = FollowTypeDeserializer.class) 31 | @JsonSerialize(using = FollowTypeSerializer.class) 32 | public enum FollowType { 33 | /** Used to unfollow someone. */ 34 | UNDEFINED, 35 | /** Used to follow someone. */ 36 | BLOG, 37 | /** Used to mute someone. */ 38 | IGNORE 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/follow/models/serializer/FollowTypeSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.follow.models.serializer; 18 | 19 | import java.io.IOException; 20 | 21 | import com.fasterxml.jackson.core.JsonGenerator; 22 | import com.fasterxml.jackson.databind.JsonSerializer; 23 | import com.fasterxml.jackson.databind.SerializerProvider; 24 | 25 | import eu.bittrade.libs.steemj.plugins.apis.follow.enums.FollowType; 26 | 27 | /** 28 | * @author dez1337 29 | */ 30 | public class FollowTypeSerializer extends JsonSerializer { 31 | @Override 32 | public void serialize(FollowType followType, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) 33 | throws IOException { 34 | if (followType.equals(FollowType.UNDEFINED)) { 35 | jsonGenerator.writeString(""); 36 | } else { 37 | jsonGenerator.writeString(followType.toString().toLowerCase()); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/market/history/models/GetMarketHistoryReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.market.history.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class implements the Steem "get_ops_in_block_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetMarketHistoryReturn { 31 | @JsonProperty("buckets") 32 | private List buckets; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetMarketHistoryReturn() { 39 | } 40 | 41 | /** 42 | * @return the buckets 43 | */ 44 | public List getBuckets() { 45 | return buckets; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/market/history/models/GetOrderBookReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.market.history.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | /** 24 | * This class represents a Steem "get_order_book_return" object of the 25 | * "market_history_plugin". 26 | * 27 | * @author dez1337 28 | */ 29 | public class GetOrderBookReturn { 30 | private List bids; 31 | private List asks; 32 | 33 | /** 34 | * This object is only used to wrap the JSON response in a POJO, so 35 | * therefore this class should not be instantiated. 36 | */ 37 | protected GetOrderBookReturn() { 38 | } 39 | 40 | /** 41 | * @return the bids 42 | */ 43 | public List getBids() { 44 | return bids; 45 | } 46 | 47 | /** 48 | * @return the asks 49 | */ 50 | public List getAsks() { 51 | return asks; 52 | } 53 | 54 | @Override 55 | public String toString() { 56 | return ToStringBuilder.reflectionToString(this); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/market/history/models/GetRecentTradesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.market.history.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class implements the Steem "get_trade_history_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetRecentTradesReturn { 31 | @JsonProperty("trades") 32 | private List trades; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetRecentTradesReturn() { 39 | } 40 | 41 | /** 42 | * @return the trades 43 | */ 44 | public List getTrades() { 45 | return trades; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/market/history/models/GetTradeHistoryReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.market.history.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class implements the Steem "get_trade_history_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetTradeHistoryReturn { 31 | @JsonProperty("trades") 32 | private List trades; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetTradeHistoryReturn() { 39 | } 40 | 41 | /** 42 | * @return the trades 43 | */ 44 | public List getTrades() { 45 | return trades; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/tags/enums/DiscussionSortType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags.enums; 18 | 19 | /** 20 | * An enumeration representing all sort types for discussions. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum DiscussionSortType { 25 | /** Get trending discussions first. */ 26 | GET_DISCUSSIONS_BY_TRENDING, 27 | /** Get discussions based on their creation date. */ 28 | GET_DISCUSSIONS_BY_CREATED, GET_DISCUSSIONS_BY_ACTIVE, GET_DISCUSSIONS_BY_CASHOUT, GET_DISCUSSIONS_BY_VOTES, GET_DISCUSSIONS_BY_CHILDREN, GET_DISCUSSIONS_BY_HOT, GET_DISCUSSIONS_BY_FEED, GET_DISCUSSIONS_BY_BLOG, GET_DISCUSSIONS_BY_COMMENTS, GET_DISCUSSIONS_BY_PROMOTED; 29 | } 30 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/tags/models/DiscussionQueryResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "discussion_query_result" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class DiscussionQueryResult { 31 | @JsonProperty("discussions") 32 | private List discussions; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private DiscussionQueryResult() { 39 | } 40 | 41 | /** 42 | * @return the discussions 43 | */ 44 | public List getDiscussions() { 45 | return discussions; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/tags/models/GetActiveVotesReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "get_active_votes_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetActiveVotesReturn { 31 | @JsonProperty("votes") 32 | private List votes; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetActiveVotesReturn() { 39 | } 40 | 41 | /** 42 | * @return the votes 43 | */ 44 | public List getVotes() { 45 | return votes; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/tags/models/GetTagsUsedByAuthorReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "get_tags_used_by_author_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetTagsUsedByAuthorReturn { 31 | @JsonProperty("tags") 32 | private List tags; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetTagsUsedByAuthorReturn() { 39 | } 40 | 41 | /** 42 | * @return the tags 43 | */ 44 | public List getTags() { 45 | return tags; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/tags/models/GetTrendingTagsReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags.models; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.commons.lang3.builder.ToStringBuilder; 22 | 23 | import com.fasterxml.jackson.annotation.JsonProperty; 24 | 25 | /** 26 | * This class represents a Steem "get_trending_tags_return" object. 27 | * 28 | * @author dez1337 29 | */ 30 | public class GetTrendingTagsReturn { 31 | @JsonProperty("tags") 32 | private List tags; 33 | 34 | /** 35 | * This object is only used to wrap the JSON response in a POJO, so 36 | * therefore this class should not be instantiated. 37 | */ 38 | private GetTrendingTagsReturn() { 39 | } 40 | 41 | /** 42 | * @return the tags 43 | */ 44 | public List getTags() { 45 | return tags; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return ToStringBuilder.reflectionToString(this); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/witness/enums/BandwidthType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.witness.enums; 18 | 19 | /** 20 | * An enumeration for all existing vandwidth types. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum BandwidthType { 25 | /** Rate limiting posting reward eligibility over time. */ 26 | POST, 27 | /** Rate limiting for all forum related actins. */ 28 | FORUM, 29 | /** Rate limiting for all other actions. */ 30 | MARKET 31 | } 32 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/plugins/apis/witness/models/GetAccountBandwidthReturn.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.witness.models; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | import com.fasterxml.jackson.annotation.JsonProperty; 22 | import com.google.common.base.Optional; 23 | 24 | /** 25 | * This class implements the Steem "get_account_bandwidth_return" object. 26 | * 27 | * @author dez1337 28 | */ 29 | public class GetAccountBandwidthReturn { 30 | @JsonProperty("bandwidth") 31 | private Optional bandwidth; 32 | 33 | /** 34 | * This object is only used to wrap the JSON response in a POJO, so 35 | * therefore this class should not be instantiated. 36 | */ 37 | private GetAccountBandwidthReturn() { 38 | } 39 | 40 | /** 41 | * @return the bandwidth 42 | */ 43 | public Optional getBandwidth() { 44 | return bandwidth; 45 | } 46 | 47 | @Override 48 | public String toString() { 49 | return ToStringBuilder.reflectionToString(this); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/TransactionId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.protocol; 18 | 19 | import java.io.Serializable; 20 | 21 | import eu.bittrade.libs.steemj.base.models.Ripemd160; 22 | 23 | /** 24 | * This class is the java implementation of the Steem "transaction_id_type" 25 | * object. 26 | * 27 | * @author dez1337 28 | */ 29 | public class TransactionId extends Ripemd160 implements Serializable { 30 | /** Generated serial version uid. */ 31 | private static final long serialVersionUID = -8046859919278042955L; 32 | 33 | /** 34 | * Create a new wrapper for the given ripemd160 hash. 35 | * 36 | * @param hashValue 37 | * The hash to wrap. 38 | */ 39 | public TransactionId(String hashValue) { 40 | super(hashValue); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/enums/CurveId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.protocol.enums; 18 | 19 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; 20 | 21 | import eu.bittrade.libs.steemj.base.models.deserializer.CurveIdDeserializer; 22 | 23 | /** 24 | * An enumeration for all existing curve types. 25 | * 26 | * @author dez1337 27 | */ 28 | @JsonDeserialize(using = CurveIdDeserializer.class) 29 | public enum CurveId { 30 | /** */ 31 | QUADRATIC, 32 | /** */ 33 | QUADRATIC_CURATION, 34 | /** */ 35 | LINEAR, 36 | /** */ 37 | SQUARE_ROOT 38 | } 39 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/enums/LegacyAssetSymbolType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.protocol.enums; 18 | 19 | /** 20 | * This enum stores all available asset symbols. 21 | * 22 | * @author dez1337 23 | */ 24 | public enum LegacyAssetSymbolType { 25 | /** Steem Power (SP) Symbol */ 26 | VESTS, 27 | /** Steem Sybol */ 28 | STEEM, 29 | /** Steem Backed Dollar (SBD) Symbol */ 30 | SBD, 31 | /** Steem Dollar Symbol */ 32 | STMD, 33 | /** Steem Sybol for the test network */ 34 | TESTS, 35 | /** Steem Backed Dollar Symbol for the test network */ 36 | TBD, 37 | /** Steem Dollar Symbol for the test network */ 38 | TSTD 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/BaseOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.protocol.operations; 18 | 19 | import org.apache.commons.lang3.builder.ToStringBuilder; 20 | 21 | /** 22 | * This class summarizes utility methods for the different operation types. 23 | * 24 | * @author dez1337 25 | */ 26 | public class BaseOperation { 27 | @Override 28 | public String toString() { 29 | return ToStringBuilder.reflectionToString(this); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/AuthorRewardOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.base.models.Permlink; 6 | import eu.bittrade.libs.steemj.protocol.AccountName; 7 | import eu.bittrade.libs.steemj.protocol.Asset; 8 | 9 | public class AuthorRewardOperationValue { 10 | 11 | @JsonProperty("author") 12 | private AccountName author; 13 | @JsonProperty("permlink") 14 | private Permlink permlink; 15 | @JsonProperty("sbd_payout") 16 | private Asset sbdPayout; 17 | @JsonProperty("steem_payout") 18 | private Asset steemPayout; 19 | @JsonProperty("vesting_payout") 20 | private Asset vestingPayout; 21 | 22 | /** 23 | * Get the author who received this reward. 24 | * 25 | * @return The author who received the reward. 26 | */ 27 | public AccountName getAuthor() { 28 | return author; 29 | } 30 | 31 | /** 32 | * Get the permanent link of the post for which the author is rewarded. 33 | * 34 | * @return The permanent link of the article. 35 | */ 36 | public Permlink getPermlink() { 37 | return permlink; 38 | } 39 | 40 | /** 41 | * Get the SDB amount the author gets for the article. 42 | * 43 | * @return The amount of SBD. 44 | */ 45 | public Asset getSbdPayout() { 46 | return sbdPayout; 47 | } 48 | 49 | /** 50 | * Get the Steem amount the author gets for the article. 51 | * 52 | * @return The amount of Steem. 53 | */ 54 | public Asset getSteemPayout() { 55 | return steemPayout; 56 | } 57 | 58 | /** 59 | * Get the Vests amount the author gets for the article. 60 | * 61 | * @return The amount of Vests. 62 | */ 63 | public Asset getVestingPayout() { 64 | return vestingPayout; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/CommentBenefactorRewardOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.base.models.Permlink; 6 | import eu.bittrade.libs.steemj.protocol.AccountName; 7 | import eu.bittrade.libs.steemj.protocol.Asset; 8 | 9 | public class CommentBenefactorRewardOperationValue { 10 | @JsonProperty("benefactor") 11 | private AccountName benefactor; 12 | @JsonProperty("author") 13 | private AccountName author; 14 | @JsonProperty("permlink") 15 | private Permlink permlink; 16 | @JsonProperty("sbd_payout") 17 | private Asset sbdPayout; 18 | @JsonProperty("steem_payout") 19 | private Asset steemPayout; 20 | @JsonProperty("vesting_payout") 21 | private Asset vestingPayout; 22 | 23 | /** 24 | * @return the benefactor 25 | */ 26 | public AccountName getBenefactor() { 27 | return benefactor; 28 | } 29 | 30 | /** 31 | * @return the author 32 | */ 33 | public AccountName getAuthor() { 34 | return author; 35 | } 36 | 37 | /** 38 | * @return the permlink 39 | */ 40 | public Permlink getPermlink() { 41 | return permlink; 42 | } 43 | 44 | /** 45 | * @return the sbd payout 46 | */ 47 | public Asset getSbdPayout() { 48 | return sbdPayout; 49 | } 50 | 51 | /** 52 | * @return the steem payout 53 | */ 54 | public Asset getSteemPayout() { 55 | return steemPayout; 56 | } 57 | 58 | /** 59 | * @return the vesting payout 60 | */ 61 | public Asset getVestingPayout() { 62 | return vestingPayout; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/CurationRewardValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.base.models.Permlink; 6 | import eu.bittrade.libs.steemj.protocol.AccountName; 7 | import eu.bittrade.libs.steemj.protocol.Asset; 8 | 9 | public class CurationRewardValue { 10 | 11 | @JsonProperty("curator") 12 | private AccountName curator; 13 | @JsonProperty("reward") 14 | private Asset reward; 15 | @JsonProperty("comment_author") 16 | private AccountName commentAuthor; 17 | @JsonProperty("comment_permlink") 18 | private Permlink commentPermlink; 19 | 20 | /** 21 | * Get the person that receives the reward. 22 | * 23 | * @return The person that receives the reward. 24 | */ 25 | public AccountName getCurator() { 26 | return curator; 27 | } 28 | 29 | /** 30 | * Get the amount and the currency the curator receives. 31 | * 32 | * @return The reward. 33 | */ 34 | public Asset getReward() { 35 | return reward; 36 | } 37 | 38 | /** 39 | * Get the author of the post or comment that this curation reward is for. 40 | * 41 | * @return The author of the post or comment. 42 | */ 43 | public AccountName getCommentAuthor() { 44 | return commentAuthor; 45 | } 46 | 47 | /** 48 | * Get the permanent link of the post or comment that this curation reward 49 | * is for. 50 | * 51 | * @return The permanent link of the post or comment that this curation 52 | * reward is for. 53 | */ 54 | public Permlink getCommentPermlink() { 55 | return commentPermlink; 56 | } 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/FillConvertRequestOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class FillConvertRequestOperationValue { 9 | @JsonProperty("owner") 10 | private AccountName owner; 11 | // Original type is uint32_t so we have to use long here. 12 | @JsonProperty("requestid") 13 | private long requestId; 14 | @JsonProperty("amount_in") 15 | private Asset amountIn; 16 | @JsonProperty("amount_out") 17 | private Asset amountOut; 18 | 19 | /** 20 | * Get the owner of this conversion request. 21 | * 22 | * @return The owner as an AccountName instance. 23 | */ 24 | public AccountName getOwner() { 25 | return owner; 26 | } 27 | 28 | /** 29 | * Get the id of this request. 30 | * 31 | * @return The id of this request. 32 | */ 33 | public long getRequestId() { 34 | return requestId; 35 | } 36 | 37 | /** 38 | * Get the amount and the type of the currency that has been converted 39 | * within this operation. 40 | * 41 | * @return The source asset. 42 | */ 43 | public Asset getAmountIn() { 44 | return amountIn; 45 | } 46 | 47 | /** 48 | * Get the amount and the type of the target currency. 49 | * 50 | * @return The target asset. 51 | */ 52 | public Asset getAmountOut() { 53 | return amountOut; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/FillOrderOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class FillOrderOperationValue { 9 | 10 | @JsonProperty("current_owner") 11 | private AccountName currentOwner; 12 | @JsonProperty("current_orderid") 13 | // Original type is uint32_t here so we have to use long. 14 | private int currentOrderId; 15 | @JsonProperty("current_pays") 16 | private Asset currentPays; 17 | @JsonProperty("open_owner") 18 | private AccountName openOwner; 19 | @JsonProperty("open_orderid") 20 | // Original type is uint32_t here so we have to use long. 21 | private long openOrderId; 22 | @JsonProperty("open_pays") 23 | private Asset openPays; 24 | 25 | /** 26 | * @return The current owner. 27 | */ 28 | public AccountName getCurrentOwner() { 29 | return currentOwner; 30 | } 31 | 32 | /** 33 | * @return The current order id. 34 | */ 35 | public int getCurrentOrderId() { 36 | return currentOrderId; 37 | } 38 | 39 | /** 40 | * @return The current pays. 41 | */ 42 | public Asset getCurrentPays() { 43 | return currentPays; 44 | } 45 | 46 | /** 47 | * @return The open owner. 48 | */ 49 | public AccountName getOpenOwner() { 50 | return openOwner; 51 | } 52 | 53 | /** 54 | * @return The open order id. 55 | */ 56 | public long getOpenOrderId() { 57 | return openOrderId; 58 | } 59 | 60 | /** 61 | * @return The open pays. 62 | */ 63 | public Asset getOpenPays() { 64 | return openPays; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/FillTransferFromSavingsOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class FillTransferFromSavingsOperationValue { 9 | private AccountName from; 10 | private AccountName to; 11 | private Asset amount; 12 | // Original type is uint32_t here so we have to use long. 13 | @JsonProperty("request_id") 14 | private long requestId; 15 | private String memo; 16 | 17 | /** 18 | * @return the from 19 | */ 20 | public AccountName getFrom() { 21 | return from; 22 | } 23 | 24 | /** 25 | * @return the to 26 | */ 27 | public AccountName getTo() { 28 | return to; 29 | } 30 | 31 | /** 32 | * @return the amount 33 | */ 34 | public Asset getAmount() { 35 | return amount; 36 | } 37 | 38 | /** 39 | * @return the requestId 40 | */ 41 | public long getRequestId() { 42 | return requestId; 43 | } 44 | 45 | /** 46 | * @return the memo 47 | */ 48 | public String getMemo() { 49 | return memo; 50 | } 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/FillVestingWithdrawOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class FillVestingWithdrawOperationValue { 9 | @JsonProperty("from_account") 10 | private AccountName fromAccount; 11 | @JsonProperty("to_account") 12 | private AccountName toAccount; 13 | private Asset withdrawn; 14 | private Asset deposited; 15 | public AccountName getFromAccount() { 16 | return fromAccount; 17 | } 18 | public AccountName getToAccount() { 19 | return toAccount; 20 | } 21 | public Asset getWithdrawn() { 22 | return withdrawn; 23 | } 24 | public Asset getDeposited() { 25 | return deposited; 26 | } 27 | 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/InterestOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import org.apache.commons.lang3.builder.ToStringBuilder; 4 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | 7 | import eu.bittrade.libs.steemj.protocol.AccountName; 8 | import eu.bittrade.libs.steemj.protocol.Asset; 9 | 10 | public class InterestOperationValue { 11 | @JsonProperty("owner") 12 | private AccountName owner; 13 | @JsonProperty("interest") 14 | private Asset interest; 15 | 16 | /** 17 | * @return The owner. 18 | */ 19 | public AccountName getOwner() { 20 | return owner; 21 | } 22 | 23 | /** 24 | * @return The interest. 25 | */ 26 | public Asset getInterest() { 27 | return interest; 28 | } 29 | 30 | private InterestOperationValue() { 31 | super(); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return ToStringBuilder.reflectionToString(this); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/ProducerRewardOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class ProducerRewardOperationValue { 9 | 10 | 11 | @JsonProperty("producer") 12 | private AccountName producer; 13 | @JsonProperty("vesting_shares") 14 | private Asset vestingShares; 15 | 16 | /** 17 | * Get the block producer. 18 | * 19 | * @return The block producer. 20 | */ 21 | public AccountName getProducer() { 22 | return producer; 23 | } 24 | 25 | /** 26 | * Get the amount of VESTS the producer got. 27 | * 28 | * @return The vesting shares paid to the producer. 29 | */ 30 | public Asset getVestingShares() { 31 | return vestingShares; 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/java/eu/bittrade/libs/steemj/protocol/operations/virtual/value/ReturnVestingDelegationOperationValue.java: -------------------------------------------------------------------------------- 1 | package eu.bittrade.libs.steemj.protocol.operations.virtual.value; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import eu.bittrade.libs.steemj.protocol.AccountName; 6 | import eu.bittrade.libs.steemj.protocol.Asset; 7 | 8 | public class ReturnVestingDelegationOperationValue { 9 | 10 | private AccountName account; 11 | @JsonProperty("vesting_shares") 12 | private Asset vestingShares; 13 | public AccountName getAccount() { 14 | return account; 15 | } 16 | public Asset getVestingShares() { 17 | return vestingShares; 18 | } 19 | 20 | 21 | 22 | } 23 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/BaseITForOperationParsing.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj; 18 | 19 | import eu.bittrade.libs.steemj.exceptions.SteemCommunicationException; 20 | import eu.bittrade.libs.steemj.exceptions.SteemResponseException; 21 | 22 | /** 23 | * @author dez1337 24 | */ 25 | public abstract class BaseITForOperationParsing extends BaseIT { 26 | /** 27 | * Test if a JSON String received from a Steem Node is correctly parsed into 28 | * a POJO. 29 | * 30 | * @throws SteemCommunicationException 31 | * If something went wrong. 32 | * @throws SteemResponseException 33 | * If the response is an error. 34 | */ 35 | public abstract void testOperationParsing() throws SteemCommunicationException, SteemResponseException; 36 | } 37 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/BaseTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj; 18 | 19 | import org.apache.logging.log4j.LogManager; 20 | import org.apache.logging.log4j.Logger; 21 | import org.joou.UInteger; 22 | import org.joou.UShort; 23 | 24 | /** 25 | * This class defines static properties used in all tests. 26 | * 27 | * @author dez1337 28 | */ 29 | public abstract class BaseTest { 30 | protected static final Logger LOGGER = LogManager.getLogger(BaseTest.class); 31 | 32 | protected static final UShort REF_BLOCK_NUM = UShort.valueOf((short) 34294); 33 | protected static final UInteger REF_BLOCK_PREFIX = UInteger.valueOf(3707022213L); 34 | protected static final String EXPIRATION_DATE = "2016-04-06T08:29:27UTC"; 35 | } 36 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/BaseTransactionBroadcastIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj; 18 | 19 | /** 20 | * This class defines which tests should at least be performed for an operation 21 | * and prepares a transaction object so that it does not need to be created in 22 | * each sub test case. 23 | * 24 | * @author dez1337 25 | */ 26 | public class BaseTransactionBroadcastIT extends BaseTransactionalIT { 27 | /** 28 | * Setup the test environment for transaction related tests. 29 | */ 30 | protected static void setupIntegrationTestEnvironmentForTransactionBroadcastTests(String mode, String endpoint) { 31 | setupIntegrationTestEnvironmentForTransactionalTests(mode, endpoint); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/BaseUTForValidation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj; 18 | 19 | /** 20 | * @author dez1337 21 | */ 22 | public class BaseUTForValidation { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/IntegrationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj; 18 | 19 | public interface IntegrationTest { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/Ripedm160Test.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | import static org.hamcrest.MatcherAssert.assertThat; 20 | import static org.hamcrest.Matchers.equalTo; 21 | 22 | import org.junit.Test; 23 | 24 | /** 25 | * Test the Ripedm160Test object. 26 | * 27 | * @author dez1337 28 | * 29 | */ 30 | public class Ripedm160Test { 31 | private final int EXPECTED_NUMBER = 14534105; 32 | 33 | /** 34 | * Test the 35 | * {@link eu.bittrade.libs.steemj.base.models.Ripemd160#getNumberFromHash()} 36 | * method. 37 | * 38 | * @throws Exception 39 | * If something went wrong. 40 | */ 41 | @Test 42 | public void testVestsAssetToByteArray() throws Exception { 43 | Ripemd160 hash = new Ripemd160("00ddc5d91d1bd0050853ce67c665c390cb232bbf") { 44 | private static final long serialVersionUID = 3981401550230595705L; 45 | }; 46 | 47 | assertThat(hash.getNumberFromHash(), equalTo(EXPECTED_NUMBER)); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/VersionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models; 18 | 19 | import static org.hamcrest.MatcherAssert.assertThat; 20 | import static org.hamcrest.Matchers.equalTo; 21 | 22 | import org.junit.Test; 23 | 24 | /** 25 | * @author dez1337 26 | */ 27 | public class VersionTest { 28 | /** 29 | * Test if a Version object results in the expected String representation 30 | * under the use of the 31 | * {@link eu.bittrade.libs.steemj.base.models.Version#Version(byte,byte,short)} 32 | * constructor. 33 | */ 34 | @Test 35 | public void versionToStringTest() { 36 | Version version = new Version((byte) 0, (byte) 19, (short) 2); 37 | 38 | assertThat(version.toString(), equalTo("0.19.2")); 39 | } 40 | 41 | /** 42 | * Test if a Version object results in the expected String representation 43 | * under the use of the 44 | * {@link eu.bittrade.libs.steemj.base.models.Version#Version(String)} 45 | * constructor. 46 | */ 47 | @Test 48 | public void versionFromStringToStringTest() { 49 | Version version = new Version("0.19.1"); 50 | 51 | assertThat(version.toString(), equalTo("0.19.1")); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/AccountUpdateOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.AccountUpdateOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link AccountUpdateOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class AccountUpdateOperationTest { 27 | // TODO: Implement 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/AccountWitnessProxyOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.AccountWitnessProxyOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link AccountWitnessProxyOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class AccountWitnessProxyOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/CancelTransferFromSavingsOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.CancelTransferFromSavingsOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link CancelTransferFromSavingsOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class CancelTransferFromSavingsOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/ChangeRecoveryAccountOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.ChangeRecoveryAccountOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link ChangeRecoveryAccountOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class ChangeRecoveryAccountOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/CommentOptionsOperationExtensionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.CommentOptionsOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link CommentOptionsOperation} including an 23 | * extension. 24 | * 25 | * @author dez1337 26 | */ 27 | public class CommentOptionsOperationExtensionTest { 28 | // TODO: Implement. 29 | } 30 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/CustomBinaryOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.CustomBinaryOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link CustomBinaryOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class CustomBinaryOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/EscrowApproveOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.EscrowApproveOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link EscrowApproveOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class EscrowApproveOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/EscrowDisputeOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.EscrowDisputeOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link EscrowDisputeOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class EscrowDisputeOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/EscrowReleaseOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.EscrowReleaseOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link EscrowReleaseOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class EscrowReleaseOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/EscrowTransferOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.EscrowTransferOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link EscrowTransferOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class EscrowTransferOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/RecoverAccountOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.RecoverAccountOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link RecoverAccountOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class RecoverAccountOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/RequestAccountRecoveryOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.RequestAccountRecoveryOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link RequestAccountRecoveryOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class RequestAccountRecoveryOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/ResetAccountOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.ResetAccountOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link ResetAccountOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class ResetAccountOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/TransferFromSavingsOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.TransferFromSavingsOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link TransferFromSavingsOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class TransferFromSavingsOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/base/models/operations/TransferToSavingsOperationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.base.models.operations; 18 | 19 | import eu.bittrade.libs.steemj.protocol.operations.TransferToSavingsOperation; 20 | 21 | /** 22 | * Test the transformation of the {@link TransferToSavingsOperation}. 23 | * 24 | * @author dez1337 25 | */ 26 | public class TransferToSavingsOperationTest { 27 | // TODO: Implement. 28 | } 29 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/plugins/apis/follow/models/operations/FollowOperationIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.follow.models.operations; 18 | 19 | public class FollowOperationIT { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/plugins/apis/follow/models/operations/ReblogOperationIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.follow.models.operations; 18 | 19 | public class ReblogOperationIT { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/plugins/apis/tags/TagsApiIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.plugins.apis.tags; 18 | 19 | public class TagsApiIT { 20 | /*DECLARE_API( 21 | (get_trending_tags) 22 | (get_tags_used_by_author) 23 | (get_discussion) 24 | (get_content_replies) 25 | (get_post_discussions_by_payout) 26 | (get_comment_discussions_by_payout) 27 | (get_discussions_by_trending) 28 | (get_discussions_by_created) 29 | (get_discussions_by_active) 30 | (get_discussions_by_cashout) 31 | (get_discussions_by_votes) 32 | (get_discussions_by_children) 33 | (get_discussions_by_hot) 34 | (get_discussions_by_feed) 35 | (get_discussions_by_blog) 36 | (get_discussions_by_comments) 37 | (get_discussions_by_promoted) 38 | (get_replies_by_last_update) 39 | (get_discussions_by_author_before_date) 40 | (get_active_votes) 41 | )*/ 42 | } 43 | -------------------------------------------------------------------------------- /core/src/test/java/eu/bittrade/libs/steemj/util/BrainkeyDictionaryManagerTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | package eu.bittrade.libs.steemj.util; 18 | 19 | import static org.hamcrest.MatcherAssert.assertThat; 20 | import static org.hamcrest.Matchers.equalTo; 21 | 22 | import org.junit.Test; 23 | 24 | /** 25 | * Test the brain key dictionary import. 26 | * 27 | * @author dez1337 28 | * 29 | */ 30 | public class BrainkeyDictionaryManagerTest { 31 | private static final int NUMBER_OF_WORDS = 49748; //earlier 49744 32 | 33 | /** 34 | * Verify that the brain key dictionary has the correct amount of words. 35 | */ 36 | @Test 37 | public void testBrainkeyDictionaryManager() { 38 | assertThat(BrainkeyDictionaryManager.getInstance().getBrainKeyDictionary().length, equalTo(NUMBER_OF_WORDS)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /core/src/test/resources/accountDetailsUsedDuringTests.properties: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of SteemJ (formerly known as 'Steem-Java-Api-Wrapper') 3 | * 4 | * SteemJ is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * SteemJ is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with SteemJ. If not, see . 16 | */ 17 | 18 | steemj.api.username= 19 | steemj.api.password= 20 | steemj.default.account=dez1337 21 | steemj.default.account.posting.key=5KSEmixsFoGvvNz7sNG4RsyaKQyJMBBqrdT6y54qr4cdVhU9rz7 22 | steemj.default.account.active.key=5KHX3ALEC6wc8YUYEM19FU1Zwi5C8HT8eEJ8YcPMae8pJdsDB9F 23 | steemj.default.account.owner.key=5JkDbVk8F9qpxjQpSDSJToJLRfKEcgCXsSn4uqFvjMtoyDPwbJR 24 | steemj.default.account.memo.key= 25 | -------------------------------------------------------------------------------- /core/src/test/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /sample/src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | --------------------------------------------------------------------------------