Ixian SDK
IXICore.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)
 
void setCachedBlockVersion (int block_version)
 
byte [] calculateWalletStateChecksum (bool snapshot=false)
 
byte [] calculateWalletStateDeltaChecksum ()
 
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]

IXICore.WalletState.WalletState ( )

Definition at line 44 of file WalletState.cs.

◆ WalletState() [2/3]

IXICore.WalletState.WalletState ( IEnumerable< Wallet genesisState)

Definition at line 48 of file WalletState.cs.

◆ WalletState() [3/3]

IXICore.WalletState.WalletState ( WalletState  oldWS)

Definition at line 59 of file WalletState.cs.

Member Function Documentation

◆ calculateTotalSupply()

IxiNumber IXICore.WalletState.calculateTotalSupply ( )

Definition at line 445 of file WalletState.cs.

◆ calculateWalletStateChecksum()

byte [] IXICore.WalletState.calculateWalletStateChecksum ( bool  snapshot = false)

Definition at line 302 of file WalletState.cs.

◆ calculateWalletStateDeltaChecksum()

byte [] IXICore.WalletState.calculateWalletStateDeltaChecksum ( )

Definition at line 368 of file WalletState.cs.

◆ clear()

void IXICore.WalletState.clear ( )

Definition at line 69 of file WalletState.cs.

◆ commit()

void IXICore.WalletState.commit ( )

Definition at line 111 of file WalletState.cs.

◆ debugGetWallets()

Wallet [] IXICore.WalletState.debugGetWallets ( )

Definition at line 472 of file WalletState.cs.

◆ getWallet()

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

Definition at line 144 of file WalletState.cs.

◆ getWalletBalance()

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

Definition at line 137 of file WalletState.cs.

◆ getWalletStateChunks()

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

Definition at line 394 of file WalletState.cs.

◆ revert()

void IXICore.WalletState.revert ( )

Definition at line 98 of file WalletState.cs.

◆ setCachedBlockVersion()

void IXICore.WalletState.setCachedBlockVersion ( int  block_version)

Definition at line 286 of file WalletState.cs.

◆ setWallet()

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

Definition at line 166 of file WalletState.cs.

◆ setWalletBalance()

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

Definition at line 184 of file WalletState.cs.

◆ setWalletChunk()

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

Definition at line 421 of file WalletState.cs.

◆ setWalletPublicKey()

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

Definition at line 251 of file WalletState.cs.

◆ snapshot()

bool IXICore.WalletState.snapshot ( )

Definition at line 83 of file WalletState.cs.

Member Data Documentation

◆ version

int IXICore.WalletState.version = 0

Definition at line 22 of file WalletState.cs.

Property Documentation

◆ hasSnapshot

bool IXICore.WalletState.hasSnapshot
get

Definition at line 42 of file WalletState.cs.

◆ numWallets

int IXICore.WalletState.numWallets
get

Definition at line 41 of file WalletState.cs.


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