MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / QuipWallet

Class QuipWallet

include/quip_wallet.hpp:7–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace quip {
6
7class QuipWallet {
8public:
9 QuipWallet(const string &rpc_url, const string &contract_address);
10 virtual ~QuipWallet();
11
12 // Transfer funds using Winternitz signature
13 virtual bool
14 transferWithWinternitz(const WinternitzAddress &winternitz_address,
15 const Signature &pq_sig, const Address &to_address,
16 Amount amount);
17
18 // Execute a contract call using Winternitz signature
19 virtual bool
20 executeWithWinternitz(const WinternitzAddress &winternitz_address,
21 const Signature &pq_sig, const Address &target_address,
22 const vector<uint8_t> &opdata);
23
24 // Execute a contract call using Winternitz signature with custom ETH value
25 virtual bool
26 executeWithWinternitzValue(const WinternitzAddress &winternitz_address,
27 const Signature &pq_sig, const Address &target_address,
28 const vector<uint8_t> &opdata, Amount eth_value);
29
30 // Change the PQ owner using Winternitz signature
31 virtual bool changePqOwner(const WinternitzAddress &winternitz_address,
32 const Signature &pq_sig);
33
34 // Get the current PQ owner
35 virtual Address getPqOwner();
36
37 // Get the wallet's balance
38 virtual Amount getBalance();
39
40private:
41 class Impl;
42 unique_ptr<Impl> impl_;
43};
44
45} // namespace quip

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected