Skip to main content
Version: 1.15.0

Type Alias: AcceptAdminParams

AcceptAdminParams = { address: string; sender?: string; tokenAddress: string; }

Defined in: cct/evm/token-admin-registry/operations/accept-admin.ts:30

Parameters for acceptAdmin.

Remarks​

sender is typed optional to satisfy EVMOperation's shared shape, but is required for AcceptAdmin.generate: the pre-tx check below has nothing to compare pendingAdministrator against without it, so an omitted sender is rejected in AcceptAdmin.parse. AcceptAdmin.execute relaxes this — it defaults sender to the signing wallet's own address, since that is the only address that can ever satisfy the pending-administrator check for a signed submission (see AcceptAdmin.execute).

Properties​

address​

address: string

Defined in: cct/evm/token-admin-registry/operations/accept-admin.ts:38

Contract to resolve the TokenAdminRegistry from. Pass the registry itself for a direct lookup; a Router, OnRamp, OffRamp, or TokenPool also work but add hops and need a configured lane.


sender?​

optional sender?: string

Defined in: cct/evm/token-admin-registry/operations/accept-admin.ts:44

Pending administrator accepting the role. Required for AcceptAdmin.generate (unsigned/offline flows); optional for AcceptAdmin.execute, which defaults it to the wallet's address — see the remarks above.


tokenAddress​

tokenAddress: string

Defined in: cct/evm/token-admin-registry/operations/accept-admin.ts:32

Token whose pending registry admin role is being accepted.