Skip to content

Releases: refring/monero-rpc-php

0.8.1

Choose a tag to compare

@refring refring released this 07 Dec 11:03

What's Changed

Integrated changes to the rpc from the Monero v0.18.4.1 - v0.18.4.4 releases, added support for php 8.5 and some small fixes for existing calls.

Added

  • WalletRpcClient::setSubaddressLookahead()
  • Test execution for php 8.5
  • Conditional test execution based on Monero version

Changed

  • Added kexIsDone property to IsMultisigResponse

Fixed

  • DaemonTest::testSetBansMissingIp() - was disabled because of errors on older versions of the Monero daemon

Full Changelog: 0.8.0...0.8.1

0.8.0

Choose a tag to compare

@refring refring released this 19 May 21:35

What's Changed

Integrated changes to the rpc from the Monero v0.18.4.0 release and some small fixes for existing calls.

Added

  • WalletRpcClient::getDefaultFeePriority()
  • WalletRpcClient::scanTx()

Changed

  • WalletRpcClient::sign() and verify() added missing parameters and output fields
  • DaemonRpcClient::setDaemon() has a new proxy parameter
  • DaemonRpcClient::setBans() now throws InvalidHostOrSubnet or NoIpOrHostSuppliedException exceptions

Fixed

  • The regex parameter for WalletRpcClient::getAccounts() was not working because of a misspelling

Full Changelog: 0.7.4...0.8.0

0.7.4

Choose a tag to compare

@refring refring released this 09 Jan 11:40

Resolved PHP 8.4 deprecation notices and enabled test execution on this version, ensuring compatibility with PHP 8.4

Additionally, updated tests to run against Monero 0.18.3.4

Full Changelog: 0.7.3...0.7.4

0.7.3

Choose a tag to compare

@refring refring released this 21 Feb 12:36

Accept a TransferPriority enum for the priority param in the sweepAll and sweepSingle WalletRpcClient methods to make the api more consistent

Full Changelog: 0.7.2...0.7.3

0.7.2

Choose a tag to compare

@refring refring released this 29 Nov 15:31

Require ext-bcmath in composer.json and updated dependencies

0.7.1

Choose a tag to compare

@refring refring released this 02 Nov 20:18

The square/pjson package was updated to v0.4.0 which allows the latest version of monero-rpc-php to be installed without setting minimum-stability to dev.

Full Changelog: 0.7.0...0.7.1

0.7.0

Choose a tag to compare

@refring refring released this 13 Oct 10:36

This marks the first release where the API is deemed reasonably stable and the warning about the API being prone to big changes has been removed from the README.

With this release all the rpc methods have now been implemented, except for the 'daemon other' binary methods.

Added

  • Amount class for representing piconeros
  • Renamed Recipient to Destination and it now requires an Amount object
  • Better handling of bigint (de)serialization
  • DaemonRpcClient:: sendRawTransaction()
  • DaemonRpcClient::getAltBlocksHashes()
  • DaemonRpcClient::isKeyImageSpent()
  • DaemonRpcClient::startMining()
  • DaemonRpcClient::stopMining()
  • DaemonRpcClient::miningStatus()
  • DaemonRpcClient::saveBlockchain()
  • DaemonRpcClient::setLogHashRate()
  • DaemonRpcClient::setLogLevel()
  • DaemonRpcClient::setLogCategories()
  • DaemonRpcClient::setLimit()
  • DaemonRpcClient::getLimit()
  • DaemonRpcClient::outPeers()
  • DaemonRpcClient::inPeers()
  • DaemonRpcClient::getPeerList()
  • DaemonRpcClient::update()
  • DaemonRpcClient::setBootstrapDaemon()
  • DaemonRpcClient::getTransactionPoolStats()
  • DaemonRpcClient::getOuts()
  • DaemonRpcClient::getTransactions()
  • DaemonRpcClient::stopDaemon()
  • DaemonRpcClient::getTransactionPool()
  • InvalidDestinationException
  • BigInt class
  • Peer class
  • TransferType::BLOCK
  • REGTEST/fakechain nettype
  • SpentStatus enum

Changed

  • Packagist package name is now refring/monero-rpc-php
  • WalletRpcClient::getTransfers() will now return all types of transfer by default
  • Made accountIndex 0 the default for various methods
  • Many Model classes have been moved into wallet/daemon specific namespaces
  • Always initialize Response class array properties with an empty array
  • Renamed PeerStructure class to SyncPeer
  • Renamed DaemonBaseResponse trait to DaemonBaseResponse
  • Renamed RpcAccessBaseResponse trait to DaemonStandardResponseFields
  • Renamed GetLastBlockHeaderBaseResponse to GetLastBlockHeaderResponse

Fixed

  • Set default ringsize to 16 for WalletRpcClient::transfer()
  • Reset endpoint after callign an 'other' daemon rpc method

Full changelog: 0.6.0...0.7.0

0.6.0

Choose a tag to compare

@refring refring released this 28 Sep 18:30

Added

  • DaemonRpcClient::getHeight()
  • Errors: IndexOutOfRangeException, InvalidAddressException, InvalidOriginalPasswordException and InvalidPaymentIdException
  • Github Actions: dependabot config for keeping actions and composer deps up to date
  • Github Actions: symfonycorp/security-checker-action for checking security vulnerabilities in deps
  • Integration tests: addressbook methods, integrated address methods, restore_deterministic_wallet and query_key

Changed

  • Removed DaemonOtherClient and moved methods to DaemonRpcClient
  • Removed RegtestRpcClient and moved method generateblocks to DaemonRpcClient::generateBlocks()
  • addAuxPow() now returns AuxPow objects instead of a generic array
  • Some cosmetic changes like better and more consistent comments
  • AddressBook methods no longer have paymentId
  • Tests: Work with mnemonics instead of private spend keys
  • Tests: NonEmptyBlockchainTest now reset the chain after running so the tests can be run again without errors

0.5.0

Choose a tag to compare

@refring refring released this 20 Sep 20:08

Added

  • Support for the "other" Daemon rpc requests through DaemonOtherClient
  • Support for logging
  • DaemonOtherClient::popBlocks()
  • DaemonOtherClient::getNetStats()
  • AddressIndexOutOfBoundException
  • AttributeNotFoundException
  • TagNotFoundException
  • KeyPairHelper for tests
  • A bunch of integration tests for the wallet

Changed

  • Renamed Builder to ClientBuilder
  • WalletRpcClient::validateAddress() now also takes a string as $address
  • WalletRpcClient::untagAccounts() now also takes an int as $accounts

0.4.0

Choose a tag to compare

@refring refring released this 15 Sep 22:30

Added

  • DaemonBaseResponse class
  • RpcAccessBaseResponse class
  • HardforkInformation class

Changed

  • Many changes based on core_rpc_server_commands_defs.h definitions from the main Monero repo from the main Monero repo
  • WalletRpcClient::transfer() now accepts a single Recipient as well as an array of Recipient
  • Connection was renamed to ConnectionInfo
  • Chain was renamed to ChainInformation