Skip to content
docs

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.

TConfig extends object = Record<string, never>

readonly _account: ReadOnlyAccountLike | AccountLike

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:94


readonly _config: TConfig

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:95

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.

ChainTx

DescribeActivityContext

ActivityItem | null


getApprovals(options?): Promise<ApprovalsResult>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:97

GetApprovalsOptions

Promise<ApprovalsResult>


getSupportedStandards(): Promise<ApprovalStandard[]>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:96

Promise<ApprovalStandard[]>


quoteRevoke(approval): Promise<{ fee: bigint; }>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:98

Approval

Promise<{ fee: bigint; }>


revoke(approval): Promise<{ fee: bigint; hash: string; }>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:99

Approval

Promise<{ fee: bigint; hash: string; }>


revokeAll(approvals): Promise<RevokeResult[]>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:100

Approval[]

Promise<RevokeResult[]>