Skip to content

Commit

Permalink
added getAllOtherAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
CoNETProject committed Jun 2, 2024
1 parent b8a5644 commit 13177c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type WorkerCommandErrorType = 'NOT_READY'|'INVALID_DATA'|
'PouchDB_ERROR'|'GENERATE_PASSCODE_ERROR'|'FAILURE'|'COUNTDOWN'

type WorkerCommandType = 'READY'|'testPasscode'|'getCONETBalance'|'getRegiestNodes'|'unlock_cCNTP'|
'encrypt_createPasscode'|'encrypt_lock'|'encrypt_deletePasscode'|'storePreferences'|'burnCCNTP'|
'encrypt_createPasscode'|'encrypt_lock'|'encrypt_deletePasscode'|'storePreferences'|'burnCCNTP'|'getAllOtherAssets'|
'newProfile'|'invitation'|'WORKER_MESSAGE'|'startProxy'|'createAccount'|'preBurnCCNTP'|'getGuardianRegion'|
'isAddress'|'getFaucet'|'syncAsset'|'sendAsset'|'getUSDCPrice'|'registerReferrer'|'showSRP'|'getAllProfiles'|
'buyUSDC'|'mintCoNETCash'|'getSINodes'|'getRecipientCoNETCashAddress'|'setRegion'|'ipaddress'|'startLiveness'|'stopLiveness'|
Expand Down
15 changes: 15 additions & 0 deletions src/API/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,19 @@ export class platform {
return resolve (data[0])
})
})

public getAllOtherAssets: () => Promise<type_platformStatus> = () => new Promise(async resolve=> {
const cmd: WorkerCommand = {
cmd: 'getAllOtherAssets',
uuid: v4(),
data: []
}
return postMessage (cmd, false, null, (err: any, data: any) => {
if (err) {
return resolve (err)
}

return resolve (data[0])
})
})
}

0 comments on commit 13177c6

Please sign in to comment.