Skip to content

0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Jul 21:07
08bb2f0

Added

  • Add tests for types implementing HashType in utils.rs (#59)
  • Add tests for HashString's implementation of the traits Debug, Serialize, and Deserialize, in utils.rs (#59)
  • Add tests for models.rs (#63)
  • Add PartialEq trait for the following types in src/models.rs (#65):
    • BlockTemplate, Transaction, SubaddressBalanceData, BalanceData, TransferPriority, SubaddressData, SubaddressIndex, Payment, AddressData, IncomingTransfers, GotAccount, GetAccountsData, GotTransfer, SignedKeyImage, KeyImageImportResponse
  • Add GenerateBlocksResponse struct (#65)
  • Add all paremeter, of type Option<bool> to the export_key_images method, and pass it to the RPC (#65)
  • Add an error for on_get_block_hash on invalid height, instead of returning success with an incorrect hash (#65)

Removed

  • Remove SubAddressIndex from src/models.rs (#55)
  • Remove SubaddressIndex from src/models.rs (#62)

Changed

  • Change any use of SubAddressIndex to SubaddressIndex (#55)
  • Change HashType's from_str implementation for Vec<u8> in order to accept inputs starting with 0x (#61)
  • Change HashType's bytes implementation by adding AsRef<[u8]> as a trait bound and returning the as_ref implementation (#61)
  • Change any use of SubaddressIndex to subaddress::Index (#62)
  • Change types of address and account indices to use u32 instead of u64 (#62)
  • Change label_address to receive an argument named index of type subaddress::Index instead of receiving the arguments account_index and address_index, both of type u64 (#62)
  • Change get_address_index to return anyhow::Result<subaddress::Index> instead of anyhow::Result<(u64, u64)> (#62)
  • Use Amount type from monero-rs where possible (#68)
  • Rename DaemonClient to DaemonJsonRpcClient, and RegtestDaemonClient to RegtestDaemonJsonRpcClient (#70)
  • Change TransferData's tx_key field from HashString<CryptoNoteHash> to HashString<Vec<u8>> (#65)
  • get_balance method now passes the correct parameter name to the RPC (#65)
  • Change generate_blocks to return anyhow::Result<GenerateBlocksResponse> instead of anyhow::Result<u64> (#65)
  • submit_block method now works correctly and had its return type changed to anyhow::Result<()> (#65)
  • Change get_payments to actually return a vector of Payments (#65)
  • Change check_tx_key's tx_key parameter to type Vec<u8> (#65)
  • Change check_tx_key's return type from anyhow::Result<(NonZeroU64, bool, NonZeroU64)> to anyhow::Result<(u64, bool, Amount)>, since the first element can be 0, and the last element depicts an amount (#65)