Type Alias: TransferTokenOwnershipParams
TransferTokenOwnershipParams = {
newOwner:string;sender?:string;tokenAddress:string; }
Defined in: cct/evm/token/operations/transfer-token-ownership.ts:35
Parameters for TransferTokenOwnership.
Properties
newOwner
newOwner:
string
Defined in: cct/evm/token/operations/transfer-token-ownership.ts:47
Address to propose as the next owner. It gains nothing until it calls acceptOwnership.
Remarks
The zero address is allowed and meaningful: it parks the pending owner on an
address nobody can sign as, retracting a mistaken proposal. The one address the contract
rejects is the current owner's own, which assertTokenOwnershipTransfer catches against
the token's on-chain owner().
sender?
optionalsender?:string
Defined in: cct/evm/token/operations/transfer-token-ownership.ts:54
The current token owner. Sets tx.from for offline / multisig signing, and when supplied is
checked against the token's on-chain owner() before any calldata is built. Optional for
TransferTokenOwnership.generate; TransferTokenOwnership.execute defaults it to
the signing wallet, so the owner check always runs on a broadcast tx.
tokenAddress
tokenAddress:
string
Defined in: cct/evm/token/operations/transfer-token-ownership.ts:38
Token whose ownership is being proposed away. Must be non-zero — it is the tx to, and a
call to 0x0 hits no code, so it would mine as a successful no-op.