upgradeExecutorFetchPrivilegedAccounts
Type Aliases
UpgradeExecutorFetchPrivilegedAccountsParams<TChain>
type UpgradeExecutorFetchPrivilegedAccountsParams<TChain>: object;
This type is for the params of the upgradeExecutorFetchPrivilegedAccounts function
Type parameters
Type parameter |
---|
TChain extends Chain | undefined |
Type declaration
Member | Type |
---|---|
publicClient | PublicClient <Transport , TChain > |
upgradeExecutorAddress | Address |
Source
src/upgradeExecutorFetchPrivilegedAccounts.ts:8
UpgradeExecutorPrivilegedAccounts
type UpgradeExecutorPrivilegedAccounts: object;
This type is for the result of the upgradeExecutorFetchPrivilegedAccounts function.
It is an object containing the addresses of the privileged accounts as keys, and an array with a hash for each role they have.
Index signature
[account
: `0x${string}`]: UpgradeExecutorRole
[]
Source
src/upgradeExecutorFetchPrivilegedAccounts.ts:19
Functions
upgradeExecutorFetchPrivilegedAccounts()
function upgradeExecutorFetchPrivilegedAccounts<TChain>(upgradeExecutorFetchPrivilegedAccountsParams: UpgradeExecutorFetchPrivilegedAccountsParams<TChain>): Promise<UpgradeExecutorPrivilegedAccounts>
Returns all accounts that have been granted a role in the UpgradeExecutor
Returns an object containing the addresses of the privileged accounts as keys, and an array with a hash for each role they have.
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type | Description |
---|---|---|
upgradeExecutorFetchPrivilegedAccountsParams | UpgradeExecutorFetchPrivilegedAccountsParams <TChain > | UpgradeExecutorFetchPrivilegedAccountsParams |
Returns
Promise
<UpgradeExecutorPrivilegedAccounts
>
Promise<UpgradeExecutorPrivilegedAccounts> - an object containing the addresses of the privileged accounts as keys, and an array with a hash for each role they have
Example
const privilegedAccounts = await upgradeExecutorFetchPrivilegedAccounts({
upgradeExecutorAddress,
publicClient,
});