Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/validation/fixtures/mocks.js
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | export const validWalletPre_2_1_0 = { | ||||
state: { | state: { | ||||
balances: { totalBalance: '10.00', totalBalanceInSatoshis: '1000' }, | balances: { totalBalance: '10.00', totalBalanceInSatoshis: '1000' }, | ||||
nonSlpUtxos: [], | nonSlpUtxos: [], | ||||
slpUtxos: [], | slpUtxos: [], | ||||
tokens: [], | tokens: [], | ||||
}, | }, | ||||
}; | }; | ||||
export const validWallet = { | export const validWalletJson = { | ||||
mnemonic: 'one two three four five six seven eight nine ten eleven twelve', | mnemonic: 'one two three four five six seven eight nine ten eleven twelve', | ||||
name: 'test', | name: 'test', | ||||
paths: [{ path: 1899, address: 'string', hash: 'string', wif: 'string' }], | paths: [[1899, { address: 'string', hash: 'string', wif: 'string' }]], | ||||
state: { | |||||
balanceSats: 0, | |||||
nonSlpUtxos: [], | |||||
slpUtxos: [], | |||||
tokens: [], | |||||
}, | |||||
}; | |||||
export const validWalletJsonMultiPath = { | |||||
mnemonic: 'one two three four five six seven eight nine ten eleven twelve', | |||||
name: 'test', | |||||
paths: [ | |||||
[1899, { address: 'string', hash: 'string', wif: 'string' }], | |||||
[145, { address: 'string', hash: 'string', wif: 'string' }], | |||||
], | |||||
state: { | state: { | ||||
balanceSats: 1000, | balanceSats: 1000, | ||||
nonSlpUtxos: [], | nonSlpUtxos: [], | ||||
slpUtxos: [], | slpUtxos: [], | ||||
tokens: [], | tokens: [], | ||||
}, | }, | ||||
}; | }; |