Ixian SDK
DLT.WalletState Class Reference

Public Member Functions

 WalletState ()
 
 WalletState (IEnumerable< Wallet > genesisState)
 
 WalletState (WalletState oldWS)
 
void clear ()
 
bool snapshot ()
 
void revert ()
 
void commit ()
 
IxiNumber getWalletBalance (byte[] id, bool snapshot=false)
 
Wallet getWallet (byte[] id, bool snapshot=false)
 
void setWallet (Wallet w, bool snapshot=false)
 
void setWalletBalance (byte[] id, IxiNumber balance, bool snapshot=false)
 
void setWalletPublicKey (byte[] id, byte[] public_key, bool snapshot=false)
 
byte [] calculateWalletStateChecksum (int block_version=0, bool snapshot=false)
 
WsChunk [] getWalletStateChunks (int chunk_size, ulong block_num)
 
void setWalletChunk (Wallet[] wallets)
 
IxiNumber calculateTotalSupply ()
 
Wallet [] debugGetWallets ()
 

Public Attributes

int version = 0
 

Properties

int numWallets [get]
 
bool hasSnapshot [get]
 

Detailed Description

Definition at line 19 of file WalletState.cs.

Constructor & Destructor Documentation

◆ WalletState() [1/3]

DLT.WalletState.WalletState ( )

Definition at line 44 of file WalletState.cs.

◆ WalletState() [2/3]

DLT.WalletState.WalletState ( IEnumerable< Wallet genesisState)

Definition at line 48 of file WalletState.cs.

◆ WalletState() [3/3]

DLT.WalletState.WalletState ( WalletState  oldWS)

Definition at line 59 of file WalletState.cs.

Member Function Documentation

◆ calculateTotalSupply()

IxiNumber DLT.WalletState.calculateTotalSupply ( )

Definition at line 385 of file WalletState.cs.

◆ calculateWalletStateChecksum()

byte [] DLT.WalletState.calculateWalletStateChecksum ( int  block_version = 0,
bool  snapshot = false 
)

Definition at line 251 of file WalletState.cs.

◆ clear()

void DLT.WalletState.clear ( )

Definition at line 69 of file WalletState.cs.

◆ commit()

void DLT.WalletState.commit ( )

Definition at line 111 of file WalletState.cs.

◆ debugGetWallets()

Wallet [] DLT.WalletState.debugGetWallets ( )

Definition at line 412 of file WalletState.cs.

◆ getWallet()

Wallet DLT.WalletState.getWallet ( byte []  id,
bool  snapshot = false 
)

Definition at line 137 of file WalletState.cs.

◆ getWalletBalance()

IxiNumber DLT.WalletState.getWalletBalance ( byte []  id,
bool  snapshot = false 
)

Definition at line 130 of file WalletState.cs.

◆ getWalletStateChunks()

WsChunk [] DLT.WalletState.getWalletStateChunks ( int  chunk_size,
ulong  block_num 
)

Definition at line 334 of file WalletState.cs.

◆ revert()

void DLT.WalletState.revert ( )

Definition at line 98 of file WalletState.cs.

◆ setWallet()

void DLT.WalletState.setWallet ( Wallet  w,
bool  snapshot = false 
)

Definition at line 159 of file WalletState.cs.

◆ setWalletBalance()

void DLT.WalletState.setWalletBalance ( byte []  id,
IxiNumber  balance,
bool  snapshot = false 
)

Definition at line 177 of file WalletState.cs.

◆ setWalletChunk()

void DLT.WalletState.setWalletChunk ( Wallet []  wallets)

Definition at line 361 of file WalletState.cs.

◆ setWalletPublicKey()

void DLT.WalletState.setWalletPublicKey ( byte []  id,
byte []  public_key,
bool  snapshot = false 
)

Definition at line 216 of file WalletState.cs.

◆ snapshot()

bool DLT.WalletState.snapshot ( )

Definition at line 83 of file WalletState.cs.

Member Data Documentation

◆ version

int DLT.WalletState.version = 0

Definition at line 22 of file WalletState.cs.

Property Documentation

◆ hasSnapshot

bool DLT.WalletState.hasSnapshot
get

Definition at line 42 of file WalletState.cs.

◆ numWallets

int DLT.WalletState.numWallets
get

Definition at line 41 of file WalletState.cs.


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