Class: ApplyTokenTransferFeeConfigUpdates
Defined in: cct/evm/token-pool/operations/apply-token-transfer-fee-config-updates.ts:112
Applies enabled v2.0.0 token-transfer fee configuration updates. Owner-only.
Extends
EVMOperation<ApplyTokenTransferFeeConfigUpdatesParams,ParsedParams>
Constructors
Constructor
new ApplyTokenTransferFeeConfigUpdates():
ApplyTokenTransferFeeConfigUpdates
Returns
ApplyTokenTransferFeeConfigUpdates
Inherited from
EVMOperation< ApplyTokenTransferFeeConfigUpdatesParams, ParsedParams >.constructor
Properties
name
readonlyname:"applyTokenTransferFeeConfigUpdates"='applyTokenTransferFeeConfigUpdates'
Defined in: cct/evm/token-pool/operations/apply-token-transfer-fee-config-updates.ts:116
camelCase id; matches the token-manager facade method and error context.
Overrides
EVMOperation.name
Methods
buildUnsigned()
protectedbuildUnsigned(chain:EVMChain,params:ParsedParams):Promise<UnsignedEVMTx>
Defined in: cct/evm/token-pool/operations/apply-token-transfer-fee-config-updates.ts:192
Resolves the v2.0.0 interface and, when known, verifies the owner sender. The encoder is resolved before the role read, so older pools fail without unnecessary RPCs.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | ParsedParams |
Returns
Promise<UnsignedEVMTx>
Throws
CCTContractTypeInvalidError if the pool's reported type is not supported
Throws
CCTContractVersionUnsupportedError if the pool reports an unknown version
Throws
CCTOperationUnsupportedError on a pre-v2.0.0 pool
Throws
CCTParamsInvalidError if sender is supplied and is not the pool owner
Overrides
EVMOperation.buildUnsigned
execute()
execute(
chain:EVMChain,params:EVMExecuteParams<ApplyTokenTransferFeeConfigUpdatesParams>):Promise<TransactionResult>
Defined in: cct/evm/operation.ts:150
generate, then sign and submit; returns the confirmed tx hash.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | EVMExecuteParams<ApplyTokenTransferFeeConfigUpdatesParams> |
Returns
Promise<TransactionResult>
Inherited from
EVMOperation.execute
generate()
generate(
chain:EVMChain,params:ApplyTokenTransferFeeConfigUpdatesParams):Promise<UnsignedEVMTx>
Defined in: cct/evm/operation.ts:110
Run prepare and buildUnsigned, applying optional sender; no signing.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | ApplyTokenTransferFeeConfigUpdatesParams |
Returns
Promise<UnsignedEVMTx>
Remarks
Also pins every built transaction to chain.network.chainId (no RPC, known at
construction). This is the one point every CCT builder and both execute paths pass
through; unpinned, ethers would infer the chain from the eventual signer's provider.
Inherited from
EVMOperation.generate
parse()
protectedparse(__namedParameters:ApplyTokenTransferFeeConfigUpdatesParams):ParsedParams
Defined in: cct/evm/token-pool/operations/apply-token-transfer-fee-config-updates.ts:128
Defaults omitted lists while validating all ABI fields before any RPC.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | ApplyTokenTransferFeeConfigUpdatesParams |
Returns
ParsedParams
Throws
CCTParamsInvalidError if a selector or fee field cannot be encoded, a selector is zero, duplicated, or overlaps the other list, or both lists are empty
Overrides
EVMOperation.parse
prepare()
protectedprepare(params:ApplyTokenTransferFeeConfigUpdatesParams):ParsedParams
Defined in: cct/operation.ts:48
validate then parse — the single pre-RPC step, before any chain access.
Parameters
| Parameter | Type |
|---|---|
params | ApplyTokenTransferFeeConfigUpdatesParams |
Returns
ParsedParams
Inherited from
EVMOperation.prepare
resolveWalletSender()
protectedresolveWalletSender(wallet:unknown,sender?:string):Promise<string>
Defined in: cct/evm/operation.ts:130
Resolves the address a signed submission is authorized against: the signing wallet's own.
The chain gates on msg.sender, and submit clears any builder-set tx.from before
populating the tx (so ethers' own from/signer guard never fires) — an explicit sender that
differs from the wallet would therefore let an op's pre-tx checks authorize one address while
a different one actually signs, passing every local guard and reverting on-chain. Ops that
gate on an on-chain role call this from execute; build with generateUnsigned* instead
when the eventual signer isn't known yet, where sender is trusted as given.
Parameters
| Parameter | Type |
|---|---|
wallet | unknown |
sender? | string |
Returns
Promise<string>
Throws
CCIPWalletInvalidError if wallet is not a valid signer
Throws
CCTParamsInvalidError if sender is given and is not the wallet's address
Inherited from
EVMOperation.resolveWalletSender
validate()
protectedvalidate(_params:ApplyTokenTransferFeeConfigUpdatesParams):void
Defined in: cct/operation.ts:36
Reject invalid params before any chain RPC. No-op by default: an op that normalizes as it checks does that work in parse instead, and needs no empty stub here.
Parameters
| Parameter | Type |
|---|---|
_params | ApplyTokenTransferFeeConfigUpdatesParams |
Returns
void
Inherited from
EVMOperation.validate