ReviewGate
Defined in: gate.ts:31
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ReviewGate(
now?):ReviewGate
Defined in: gate.ts:34
Parameters
Section titled “Parameters”() => number
Returns
Section titled “Returns”ReviewGate
Accessors
Section titled “Accessors”pending
Section titled “pending”Get Signature
Section titled “Get Signature”get pending():
number
Defined in: gate.ts:56
Returns
Section titled “Returns”number
Methods
Section titled “Methods”clear()
Section titled “clear()”clear():
void
Defined in: gate.ts:60
Returns
Section titled “Returns”void
consume()
Section titled “consume()”consume(
op):boolean
Defined in: gate.ts:47
True (and the matcher is spent) when a pre-approval covers op.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean
preApprove()
Section titled “preApprove()”preApprove(
matchers,ttlMs?,account?):void
Defined in: gate.ts:41
Each matcher passes ONE operation, within ttlMs (default 10 min). With account, only an op
whose account is that account (an op without one does not pass). reviewSwapPlan and
reviewEarnPlan always bind.
Parameters
Section titled “Parameters”matchers
Section titled “matchers”ttlMs?
Section titled “ttlMs?”number = ...
account?
Section titled “account?”string
Returns
Section titled “Returns”void