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 * Functions required by the core plugin for any Bitcoin_Wallet instance.
4 *
5 * @package    brianhenryie/bh-wp-bitcoin-gateway
6 */
7
8namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Wallet;
9
10interface Bitcoin_Wallet_Interface {
11
12    /**
13     * Used when adding this wallet as a parent of a generated address.
14     */
15    public function get_post_id(): int;
16
17    /**
18     * The current status of the wallet.
19     *
20     * TODO: Mark wallets inactive when removed from a gateway; add wp_comment for changes.
21     */
22    public function get_status(): Bitcoin_Wallet_Status;
23
24    /**
25     * Return the xpub/ypub/zpub this wallet represents.
26     */
27    public function get_xpub(): string;
28
29    /**
30     * Get the index of the last generated address, so generating new addresses can start higher.
31     */
32    public function get_address_index(): ?int;
33}