Skip to content

Instantly share code, notes, and snippets.

@owenvoke
Last active May 6, 2021 12:44
Show Gist options
  • Save owenvoke/37be6376059e963eafed7a7aeb274364 to your computer and use it in GitHub Desktop.
Save owenvoke/37be6376059e963eafed7a7aeb274364 to your computer and use it in GitHub Desktop.

The following a migration guide for Version constants in v2.5.0 of the arionum-php package.

The old constants were available in the pxgamer\Arionum\Transaction class, but have now moved to a dedicated class at:

OwenVoke\Arionum\Transaction\Version

These will be removed from Transaction in v3.0.0.

Old ~~ New
Transaction::VERSION_STANDARD => Version::STANDARD
Transaction::VERSION_ALIAS_SEND => Version::ALIAS_SEND
Transaction::VERSION_ALIAS_SET => Version::ALIAS_SET
Transaction::VERSION_MASTERNODE_CREATE => Version::MASTERNODE_CREATE
Transaction::VERSION_MASTERNODE_PAUSE => Version::MASTERNODE_PAUSE
Transaction::VERSION_MASTERNODE_RESUME => Version::MASTERNODE_RESUME
Transaction::VERSION_MASTERNODE_RELEASE => Version::MASTERNODE_RELEASE

There are also now 6 new transaction constants related to the asset system:

  • Version::ASSET_CREATE
  • Version::ASSET_SEND
  • Version::ASSET_MARKET
  • Version::ASSET_CANCEL_ORDER
  • Version::ASSET_DIVIDENDS
  • Version::ASSET_INFLATE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment