Skip to main content

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

MemberType
publicClientPublicClient<Transport, TChain>
upgradeExecutorAddressAddress

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

ParameterTypeDescription
upgradeExecutorFetchPrivilegedAccountsParamsUpgradeExecutorFetchPrivilegedAccountsParams<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,
});

Source

src/upgradeExecutorFetchPrivilegedAccounts.ts:92