Search
Preparing search index...
The search index is not available
Home
StateService
Class StateService
Hierarchy
Service
StateService
Implements
State
Index
Constructors
constructor
Properties
state$
Accessors
account
account$
account
Address
account
Address$
account
Member
account
Member$
gateway
Batch
gateway
Batch$
network
network$
p2p
Payment
Deposit
Address
p2p
Payment
Deposit
Address$
state
wallet
wallet$
wallet
Address
wallet
Address$
Methods
destroy
dump
init
restore
Constructors
constructor
new
State
Service
(
options
?:
StateOptions
)
:
StateService
Parameters
Default value
options:
StateOptions
= {}
Returns
StateService
Properties
Readonly
state$
state$
:
BehaviorSubject
<
State
>
= new BehaviorSubject<State>(null)
Accessors
account
get
account
(
)
:
Account
Returns
Account
account$
get
account$
(
)
:
BehaviorSubject
<
Account
>
Returns
BehaviorSubject
<
Account
>
account
Address
get
accountAddress
(
)
:
string
Returns
string
account
Address$
get
accountAddress$
(
)
:
Observable
<
string
>
Returns
Observable
<
string
>
account
Member
get
accountMember
(
)
:
AccountMember
Returns
AccountMember
account
Member$
get
accountMember$
(
)
:
BehaviorSubject
<
AccountMember
>
Returns
BehaviorSubject
<
AccountMember
>
gateway
Batch
get
gatewayBatch
(
)
:
GatewayBatch
Returns
GatewayBatch
gateway
Batch$
get
gatewayBatch$
(
)
:
BehaviorSubject
<
GatewayBatch
>
Returns
BehaviorSubject
<
GatewayBatch
>
network
get
network
(
)
:
Network
Returns
Network
network$
get
network$
(
)
:
BehaviorSubject
<
Network
>
Returns
BehaviorSubject
<
Network
>
p2p
Payment
Deposit
Address
get
p2pPaymentDepositAddress
(
)
:
string
Returns
string
p2p
Payment
Deposit
Address$
get
p2pPaymentDepositAddress$
(
)
:
BehaviorSubject
<
string
>
Returns
BehaviorSubject
<
string
>
state
get
state
(
)
:
State
Returns
State
wallet
get
wallet
(
)
:
Wallet
Returns
Wallet
wallet$
get
wallet$
(
)
:
BehaviorSubject
<
Wallet
>
Returns
BehaviorSubject
<
Wallet
>
wallet
Address
get
walletAddress
(
)
:
string
Returns
string
wallet
Address$
get
walletAddress$
(
)
:
Observable
<
string
>
Returns
Observable
<
string
>
Methods
destroy
destroy
(
)
:
void
Returns
void
dump
dump
(
)
:
StateStorageState
Returns
StateStorageState
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
restore
restore
(
state
:
StateStorageState
)
:
this
Parameters
state:
StateStorageState
Returns
this
Globals
State
Service
constructor
state$
account
account$
account
Address
account
Address$
account
Member
account
Member$
gateway
Batch
gateway
Batch$
network
network$
p2p
Payment
Deposit
Address
p2p
Payment
Deposit
Address$
state
wallet
wallet$
wallet
Address
wallet
Address$
destroy
dump
init
restore