ApprovalsProtocolBase
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:93
What an implementation inherits from core’s ApprovalsProtocol (ProtocolBase
underneath): the account and config it was built with, the activity hook, and
the five protocol methods throwing NotImplementedError until overridden.
Typed here for the minimal account surface this module needs ({ getAddress }
for reads, plus sendTransaction & co. for writes) and the { hash, fee } a
revoke resolves to.
Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig extends object = Record<string, never>
Properties
Section titled “Properties”_account
Section titled “_account”
readonly_account:ReadOnlyAccountLike|AccountLike
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:94
_config
Section titled “_config”
readonly_config:TConfig
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:95
Methods
Section titled “Methods”describeActivity()
Section titled “describeActivity()”describeActivity(
tx,ctx):ActivityItem|null
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:102
Recognize this module’s transactions for a wallet’s history; null for anything else. Pure and synchronous.
Parameters
Section titled “Parameters”ChainTx
DescribeActivityContext
Returns
Section titled “Returns”ActivityItem | null
getApprovals()
Section titled “getApprovals()”getApprovals(
options?):Promise<ApprovalsResult>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:97
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<ApprovalsResult>
getSupportedStandards()
Section titled “getSupportedStandards()”getSupportedStandards():
Promise<ApprovalStandard[]>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:96
Returns
Section titled “Returns”Promise<ApprovalStandard[]>
quoteRevoke()
Section titled “quoteRevoke()”quoteRevoke(
approval):Promise<{fee:bigint; }>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:98
Parameters
Section titled “Parameters”approval
Section titled “approval”Returns
Section titled “Returns”Promise<{ fee: bigint; }>
revoke()
Section titled “revoke()”revoke(
approval):Promise<{fee:bigint;hash:string; }>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:99
Parameters
Section titled “Parameters”approval
Section titled “approval”Returns
Section titled “Returns”Promise<{ fee: bigint; hash: string; }>
revokeAll()
Section titled “revokeAll()”revokeAll(
approvals):Promise<RevokeResult[]>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:100
Parameters
Section titled “Parameters”approvals
Section titled “approvals”Approval[]
Returns
Section titled “Returns”Promise<RevokeResult[]>