Visible accounts for dapps (default whitelist) (#3898)
* Add APIs for Dapp management * Move AddDapps modal * Add DappsPermissions Modal (basics) * Allow whitelist editing * Add select/unselect tests * Case * Case * Modal render/non-render tests * UI made slightly prettier * Adjust spacing * Allow get/set of null for default whitelist (all) * Allow null = all for selection * Adjust selected background * Address valid comment on formatters location
This commit is contained in:
@@ -236,6 +236,29 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
getDappsAddresses: {
|
||||
desc: 'Returns the list of accounts available to a specific dapp',
|
||||
params: [
|
||||
{
|
||||
type: String,
|
||||
desc: 'Dapp Id'
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
type: Array,
|
||||
desc: 'The list of available accounts'
|
||||
}
|
||||
},
|
||||
|
||||
getNewDappsWhitelist: {
|
||||
desc: 'Returns the list of accounts available to a new dapps',
|
||||
params: [],
|
||||
returns: {
|
||||
type: Array,
|
||||
desc: 'The list of available accounts'
|
||||
}
|
||||
},
|
||||
|
||||
hashContent: {
|
||||
desc: 'Creates a hash of the file as retrieved',
|
||||
params: [
|
||||
@@ -282,6 +305,15 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
listRecentDapps: {
|
||||
desc: 'Returns a list of the most recent active dapps',
|
||||
params: [],
|
||||
returns: {
|
||||
type: Array,
|
||||
desc: 'Array of Dapp Ids'
|
||||
}
|
||||
},
|
||||
|
||||
removeAddress: {
|
||||
desc: 'Removes an address from the addressbook',
|
||||
params: [
|
||||
@@ -586,6 +618,24 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setDappsAddresses: {
|
||||
desc: 'Sets the available addresses for a dapp',
|
||||
params: [
|
||||
{
|
||||
type: String,
|
||||
desc: 'Dapp Id'
|
||||
},
|
||||
{
|
||||
type: Array,
|
||||
desc: 'Array of available accounts available to the dapp'
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
type: Boolean,
|
||||
desc: 'True if the call succeeded'
|
||||
}
|
||||
},
|
||||
|
||||
setExtraData: {
|
||||
desc: 'Changes extra data for newly mined blocks',
|
||||
params: [
|
||||
@@ -645,6 +695,20 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setNewDappsWhitelist: {
|
||||
desc: 'Sets the list of accounts available to new dapps',
|
||||
params: [
|
||||
{
|
||||
type: Array,
|
||||
desc: 'List of accounts available by default'
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
type: Boolean,
|
||||
desc: 'True if the call succeeded'
|
||||
}
|
||||
},
|
||||
|
||||
setTransactionsLimit: {
|
||||
desc: 'Changes limit for transactions in queue.',
|
||||
params: [
|
||||
|
||||
Reference in New Issue
Block a user