Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Transaction is stored as a json array in post-content, deserialized using JsonMapper.
4 *
5 * Meta keys used when saving Bitcoin_Transaction as a WP_Post.
6 *
7 * @package brianhenryie/bh-wp-bitcoin-gateway
8 */
9
10namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Payments;
11
12interface Bitcoin_Transaction_WP_Post_Interface {
13
14    /**
15     * Post type names must be between 1 and 20 characters in length
16     * 'bh-bitcoin-transaction' is 22 characters
17     *
18     * @see https://github.com/WordPress/WordPress/blob/ec24ee6087dad52052c7d8a11d50c24c9ba89a3b/wp-includes/post.php#L1825-L1828
19     */
20    const string POST_TYPE = 'bh-bitcoin-tx';
21
22    const string BLOCK_HEIGHT_META_KEY = 'bitcoin_transaction_block_height';
23
24    const string BLOCK_DATETIME_META_KEY = 'blockchain_datetime';
25
26    /**
27     * Store a list of <post_id:bitcoin_address_xpub> in post meta.
28     */
29    const string BITCOIN_ADDRESSES_POST_IDS_META_KEY = 'bitcoin_addresses_post_ids';
30}