plebble
us.wallet.wallet_rpc_api Class Reference
Inheritance diagram for us.wallet.wallet_rpc_api:
Collaboration diagram for us.wallet.wallet_rpc_api:

Public Member Functions

 wallet_rpc_api (rpc_api endpoint_)
 
void ping (Stream a0)
 
void balance (bool a0, Stream a1)
 
void list (bool a0, Stream a1)
 
void new_address (Stream a0)
 
void add_address (byte[] a0, Stream a1)
 
void transfer (byte[] a0, long a1, byte[] a2, Stream a3)
 
void transfer_from (byte[] a0, byte[] a1, long a2, byte[] a3, Stream a4)
 
void tx_charge_pay (byte[] a0, long a1, byte[] a2, long a3, byte[] a4, Stream a5)
 
void tx_pay (string a0, Stream a1)
 
void tx_new (Stream a0)
 
void tx_add_section (string a0, byte[] a1, Stream a2)
 
void tx_add_input (string a0, int a1, byte[] a2, long a3, Stream a4)
 
void tx_add_output (string a0, int a1, byte[] a2, long a3, Stream a4)
 
void tx_make_p2pkh (tx_make_p2pkh_input a0, Stream a1)
 
void tx_sign (string a0, string a1, Stream a2)
 
void tx_send (string a0, Stream a1)
 
void tx_decode (string a0, Stream a1)
 
void tx_check (string a0, Stream a1)
 
void set_supply (byte[] a0, long a1, Stream a2)
 
void store_kv (byte[] addr, String key, String value, Stream os)
 
void rm_kv (byte[] addr, String key, Stream os)
 
void rm_file (byte[] addr, byte[] filename, Stream os)
 
void search (byte[] addr, String keywords, Stream os)
 
void store_file (byte[] addr, byte[] content, Stream os)
 
void file (byte[] addr, Stream os)
 
- Public Member Functions inherited from us.wallet.wallet_api
void store_kv (byte[] arg0, string arg1, string arg2, Stream os)
 
void rm_kv (byte[] arg0, string arg1, Stream os)
 
void search (byte[] arg0, string arg1, Stream os)
 

Private Member Functions

String to_string (bool b)
 
String to_string (long b)
 
String to_string (tx_make_p2pkh_input i)
 
String to_string (sigcode_t i)
 
String to_string (byte[] b)
 
void proc_ans (pair< String, datagram > r, Stream os)
 

Private Attributes

rpc_api endpoint
 

Constructor & Destructor Documentation

◆ wallet_rpc_api()

us.wallet.wallet_rpc_api.wallet_rpc_api ( rpc_api  endpoint_)
inline

Member Function Documentation

◆ add_address()

void us.wallet.wallet_rpc_api.add_address ( byte[]  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.add_address().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ balance()

void us.wallet.wallet_rpc_api.balance ( bool  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.balance().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ file()

void us.wallet.wallet_rpc_api.file ( byte[]  addr,
Stream  os 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.wallet_rpc_api.endpoint, us.pair< f, s >.first, us.pair< f, s >.second, and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ list()

void us.wallet.wallet_rpc_api.list ( bool  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.list().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_address()

void us.wallet.wallet_rpc_api.new_address ( Stream  a0)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), and us.wallet.wallet_rpc_api.endpoint.

Referenced by us.wallet.daemon_rpc_api.new_address().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ping()

void us.wallet.wallet_rpc_api.ping ( Stream  a0)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), and us.wallet.wallet_rpc_api.endpoint.

Referenced by us.wallet.daemon_rpc_api.ping().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ proc_ans()

void us.wallet.wallet_rpc_api.proc_ans ( pair< String, datagram r,
Stream  os 
)
inlineprivate

◆ rm_file()

void us.wallet.wallet_rpc_api.rm_file ( byte[]  addr,
byte[]  filename,
Stream  os 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.wallet_rpc_api.endpoint, us.wallet.wallet_rpc_api.proc_ans(), and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.rm_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rm_kv()

void us.wallet.wallet_rpc_api.rm_kv ( byte[]  addr,
String  key,
Stream  os 
)
inline

References us.wallet.wallet_rpc_api.endpoint, us.wallet.wallet_rpc_api.proc_ans(), and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.rm_kv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ search()

void us.wallet.wallet_rpc_api.search ( byte[]  addr,
String  keywords,
Stream  os 
)
inline

References us.wallet.wallet_rpc_api.endpoint, us.wallet.wallet_rpc_api.proc_ans(), and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.search().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_supply()

void us.wallet.wallet_rpc_api.set_supply ( byte[]  a0,
long  a1,
Stream  a2 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.set_supply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ store_file()

void us.wallet.wallet_rpc_api.store_file ( byte[]  addr,
byte[]  content,
Stream  os 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.wallet_rpc_api.endpoint, us.wallet.wallet_rpc_api.proc_ans(), and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.store_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ store_kv()

void us.wallet.wallet_rpc_api.store_kv ( byte[]  addr,
String  key,
String  value,
Stream  os 
)
inline

References us.wallet.wallet_rpc_api.endpoint, us.wallet.wallet_rpc_api.proc_ans(), and us.wallet.rpc_api.sendrecv().

Referenced by us.wallet.daemon_rpc_api.store_kv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_string() [1/5]

◆ to_string() [2/5]

String us.wallet.wallet_rpc_api.to_string ( byte[]  b)
inlineprivate

References us.gov.crypto.base58.encode().

Here is the call graph for this function:

◆ to_string() [3/5]

String us.wallet.wallet_rpc_api.to_string ( long  b)
inlineprivate

◆ to_string() [4/5]

String us.wallet.wallet_rpc_api.to_string ( sigcode_t  i)
inlineprivate

◆ to_string() [5/5]

String us.wallet.wallet_rpc_api.to_string ( tx_make_p2pkh_input  i)
inlineprivate

References us.wallet.tx_make_p2pkh_input.to_string().

Here is the call graph for this function:

◆ transfer()

void us.wallet.wallet_rpc_api.transfer ( byte[]  a0,
long  a1,
byte[]  a2,
Stream  a3 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.transfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transfer_from()

void us.wallet.wallet_rpc_api.transfer_from ( byte[]  a0,
byte[]  a1,
long  a2,
byte[]  a3,
Stream  a4 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.transfer_from().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_add_input()

void us.wallet.wallet_rpc_api.tx_add_input ( string  a0,
int  a1,
byte[]  a2,
long  a3,
Stream  a4 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_add_input().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_add_output()

void us.wallet.wallet_rpc_api.tx_add_output ( string  a0,
int  a1,
byte[]  a2,
long  a3,
Stream  a4 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_add_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_add_section()

void us.wallet.wallet_rpc_api.tx_add_section ( string  a0,
byte[]  a1,
Stream  a2 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_add_section().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_charge_pay()

void us.wallet.wallet_rpc_api.tx_charge_pay ( byte[]  a0,
long  a1,
byte[]  a2,
long  a3,
byte[]  a4,
Stream  a5 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_charge_pay().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_check()

void us.wallet.wallet_rpc_api.tx_check ( string  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_check().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_decode()

void us.wallet.wallet_rpc_api.tx_decode ( string  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_decode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_make_p2pkh()

void us.wallet.wallet_rpc_api.tx_make_p2pkh ( tx_make_p2pkh_input  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_make_p2pkh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_new()

void us.wallet.wallet_rpc_api.tx_new ( Stream  a0)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), and us.wallet.wallet_rpc_api.endpoint.

Referenced by us.wallet.daemon_rpc_api.tx_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_pay()

void us.wallet.wallet_rpc_api.tx_pay ( string  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_pay().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_send()

void us.wallet.wallet_rpc_api.tx_send ( string  a0,
Stream  a1 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_send().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tx_sign()

void us.wallet.wallet_rpc_api.tx_sign ( string  a0,
string  a1,
Stream  a2 
)
inline

Implements us.wallet.wallet_api.

References us.wallet.rpc_api.ask_string(), us.wallet.wallet_rpc_api.endpoint, and us.wallet.wallet_rpc_api.to_string().

Referenced by us.wallet.daemon_rpc_api.tx_sign().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ endpoint


The documentation for this class was generated from the following file: