oxen-electron-gui-wallet/src/store/gateway/state.js

150 lines
2.5 KiB
JavaScript

export default {
app: {
status: {
code: 1 // Connecting to backend
},
config: {
appearance: {
theme: "dark"
}
},
pending_config: {},
remotes: {}
},
wallets: {
list: [],
legacy: [],
// List of wallets that are in a sub folder (format of the old GUI)
directories: []
},
old_gui_import_status: {
code: 0, // Success
failed_wallets: []
},
wallet: {
status: {
code: 1,
message: null
},
info: {
name: "",
address: "",
height: 0,
balance: 0,
unlocked_balance: 0,
accrued_balance: 0,
accrued_balance_next_payout: 0,
view_only: false
},
secret: {
mnemonic: "",
view_key: "",
spend_key: ""
},
transactions: {
tx_list: []
},
address_list: {
used: [],
unused: [],
address_book: []
},
onsRecords: [],
isRPCSyncing: false
},
tx_status: {
code: 0,
message: "",
i18n: "",
sending: false
},
// differentiate between a tx and sweep_all
sweep_all_status: {
code: 0,
message: "",
i18n: "",
sending: false
},
service_node_status: {
stake: {
code: 0,
message: "",
i18n: "",
sending: false
},
registration: {
code: 0,
message: "",
i18n: "",
sending: false
},
unlock: {
code: 0,
message: "",
i18n: "",
sending: false
}
},
prove_transaction_status: {
code: 0,
message: "",
i18n: "",
state: {}
},
check_transaction_status: {
code: 0,
message: "",
i18n: "",
state: {}
},
sign_status: {
code: 0,
message: "",
i18n: "",
signature: "",
sending: false
},
verify_status: {
code: 0,
message: "",
i18n: "",
sending: false
},
ons_status: {
code: 0,
message: "",
i18n: "",
sending: false
},
daemon: {
info: {
alt_blocks_count: 0,
cumulative_difficulty: 0,
difficulty: 0,
grey_peerlist_size: 0,
height: 0,
height_without_bootstrap: 0,
incoming_connections_count: 0,
is_ready: false,
outgoing_connections_count: 0,
status: "OK",
target: 240,
target_height: 0,
testnet: false,
top_block_hash: null,
tx_count: 0,
tx_pool_size: 0,
white_peerlist_size: 0
},
connections: [],
bans: [],
tx_pool_backlog: [],
service_nodes: {
nodes: [],
fetching: true
}
},
update_required: false
};