From 133af198b6f35a313973d497591afe247a5c0351 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 10 May 2019 15:52:35 +0100 Subject: [PATCH] add account_set sdk call --- dist/bundle.es.js | 1 + dist/flow-typed/Lbry.js | 14 ++++++++++++++ flow-typed/Lbry.js | 14 ++++++++++++++ src/lbry.js | 1 + 4 files changed, 30 insertions(+) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 172c991..c7c71e9 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -643,6 +643,7 @@ const Lbry = { account_unlock: (params = {}) => daemonCallWithResult('account_unlock', params), account_list: (params = {}) => daemonCallWithResult('account_list', params), account_send: (params = {}) => daemonCallWithResult('account_send', params), + account_set: (params = {}) => daemonCallWithResult('account_set', params), address_is_mine: (params = {}) => daemonCallWithResult('address_is_mine', params), address_unused: (params = {}) => daemonCallWithResult('address_unused', params), transaction_list: (params = {}) => daemonCallWithResult('transaction_list', params), diff --git a/dist/flow-typed/Lbry.js b/dist/flow-typed/Lbry.js index 93ce160..60725fe 100644 --- a/dist/flow-typed/Lbry.js +++ b/dist/flow-typed/Lbry.js @@ -130,6 +130,19 @@ declare type SyncApplyResponse = { data: string, }; +declare type AccountSetResponse = Array<{ + id: string, + is_default: string, + ledger: string, + name: string, + seed: string, + encrypted: string, + private_key: string, + public_key: string, + address_generator: string, + modified_on: string, +}>; + // // Types used in the generic Lbry object that is exported // @@ -172,6 +185,7 @@ declare type LbryTypes = { account_unlock: (params: {}) => Promise, account_list: (params: {}) => Promise, account_send: (params: {}) => Promise, + account_set: (params: {}) => Promise, address_is_mine: (params: {}) => Promise, address_unused: (params: {}) => Promise, // New address transaction_list: (params: {}) => Promise, diff --git a/flow-typed/Lbry.js b/flow-typed/Lbry.js index 93ce160..60725fe 100644 --- a/flow-typed/Lbry.js +++ b/flow-typed/Lbry.js @@ -130,6 +130,19 @@ declare type SyncApplyResponse = { data: string, }; +declare type AccountSetResponse = Array<{ + id: string, + is_default: string, + ledger: string, + name: string, + seed: string, + encrypted: string, + private_key: string, + public_key: string, + address_generator: string, + modified_on: string, +}>; + // // Types used in the generic Lbry object that is exported // @@ -172,6 +185,7 @@ declare type LbryTypes = { account_unlock: (params: {}) => Promise, account_list: (params: {}) => Promise, account_send: (params: {}) => Promise, + account_set: (params: {}) => Promise, address_is_mine: (params: {}) => Promise, address_unused: (params: {}) => Promise, // New address transaction_list: (params: {}) => Promise, diff --git a/src/lbry.js b/src/lbry.js index 1d306bb..e6012b1 100644 --- a/src/lbry.js +++ b/src/lbry.js @@ -82,6 +82,7 @@ const Lbry: LbryTypes = { account_unlock: (params = {}) => daemonCallWithResult('account_unlock', params), account_list: (params = {}) => daemonCallWithResult('account_list', params), account_send: (params = {}) => daemonCallWithResult('account_send', params), + account_set: (params = {}) => daemonCallWithResult('account_set', params), address_is_mine: (params = {}) => daemonCallWithResult('address_is_mine', params), address_unused: (params = {}) => daemonCallWithResult('address_unused', params), transaction_list: (params = {}) => daemonCallWithResult('transaction_list', params),