Class: GetMinters
Defined in: cct/evm/token/operations/get-minters.ts:23
Lists the accounts holding a BurnMintERC677 token's mint role, via getMinters().
Extends
EVMQuery<GetMintersParams,GetMintersResult>
Constructors
Constructor
new GetMinters():
GetMinters
Returns
GetMinters
Inherited from
EVMQuery<GetMintersParams, GetMintersResult>.constructor
Properties
name
readonlyname:"getMinters"='getMinters'
Defined in: cct/evm/token/operations/get-minters.ts:24
camelCase id; matches the token-manager facade method and error context.
Overrides
EVMQuery.name
Methods
prepare()
protectedprepare(params:GetMintersParams):GetMintersParams
Defined in: cct/evm/token/operations/get-minters.ts:30
Validates the token address; nothing to convert for read.
Parameters
| Parameter | Type |
|---|---|
params | GetMintersParams |
Returns
Throws
CCTParamsInvalidError if tokenAddress is not a valid, non-zero address
Overrides
EVMQuery.prepare
query()
query(
chain:EVMChain,params:GetMintersParams):Promise<GetMintersResult>
Defined in: cct/query.ts:25
Run prepare and read; no wallet.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | GetMintersParams |
Returns
Promise<GetMintersResult>
Inherited from
EVMQuery.query
read()
protectedread(chain:EVMChain,__namedParameters:GetMintersParams):Promise<string[]>
Defined in: cct/evm/token/operations/get-minters.ts:41
Enumerates the role set in a single eth_call.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
__namedParameters | GetMintersParams |
Returns
Promise<string[]>
Remarks
No version resolution: getMinters() is identical at v1.5.1 and v1.6.2, and a
contract that does not declare it is reported by readV1TokenRoleHolders.
Throws
CCTContractTypeInvalidError if tokenAddress is not a BurnMintERC677 token
Overrides
EVMQuery.read