Skip to content

T extends NumberType

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2207

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new OutgoingApprovalCriteriaWithDetails<T>(data): OutgoingApprovalCriteriaWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2214

Parameters

data

iOutgoingApprovalCriteriaWithDetails<T>

Returns

OutgoingApprovalCriteriaWithDetails<T>

Overrides

OutgoingApprovalCriteria.constructor

Properties

altTimeChecks?

optional altTimeChecks?: AltTimeChecks<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:321

Alternative time-based checks for approval denial (offline hours/days).

Implementation of

iOutgoingApprovalCriteriaWithDetails.altTimeChecks

Inherited from

OutgoingApprovalCriteria.altTimeChecks


approvalAmounts?

optional approvalAmounts?: ApprovalAmounts<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:310

The maximum approved amounts for this approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.approvalAmounts

Inherited from

OutgoingApprovalCriteria.approvalAmounts


autoDeletionOptions?

optional autoDeletionOptions?: AutoDeletionOptions<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:312

Whether the approval should be deleted after one use.

Implementation of

iOutgoingApprovalCriteriaWithDetails.autoDeletionOptions

Inherited from

OutgoingApprovalCriteria.autoDeletionOptions


coinTransfers?

optional coinTransfers?: CoinTransfer<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:316

The BADGE or sdk.coin transfers to be executed upon every approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.coinTransfers

Inherited from

OutgoingApprovalCriteria.coinTransfers


dynamicStoreChallenges?

optional dynamicStoreChallenges?: DynamicStoreChallenge<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:317

The list of dynamic store challenges that the initiator must pass for approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.dynamicStoreChallenges

Inherited from

OutgoingApprovalCriteria.dynamicStoreChallenges


ethSignatureChallenges?

optional ethSignatureChallenges?: ETHSignatureChallenge[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:318

The list of ETH signature challenges that the initiator must pass for approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.ethSignatureChallenges

Inherited from

OutgoingApprovalCriteria.ethSignatureChallenges


evmQueryChallenges?

optional evmQueryChallenges?: EVMQueryChallengeWithDetails<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2212

EVM query challenges that must pass for approval. Read-only contract queries that verify external EVM state.

Implementation of

iOutgoingApprovalCriteriaWithDetails.evmQueryChallenges

Overrides

OutgoingApprovalCriteria.evmQueryChallenges


initiatorChecks?

optional initiatorChecks?: AddressChecks

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:320

Address checks for initiator

Implementation of

iOutgoingApprovalCriteriaWithDetails.initiatorChecks

Inherited from

OutgoingApprovalCriteria.initiatorChecks


maxNumTransfers?

optional maxNumTransfers?: MaxNumTransfers<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:311

The max num transfers for this approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.maxNumTransfers

Inherited from

OutgoingApprovalCriteria.maxNumTransfers


merkleChallenges?

optional merkleChallenges?: MerkleChallengeWithDetails<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2211

The list of merkle challenges that need valid proofs to be approved.

Implementation of

iOutgoingApprovalCriteriaWithDetails.merkleChallenges

Overrides

OutgoingApprovalCriteria.merkleChallenges


mustOwnTokens?

optional mustOwnTokens?: MustOwnTokens<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:308

The list of must own tokens that need valid proofs to be approved.

Implementation of

iOutgoingApprovalCriteriaWithDetails.mustOwnTokens

Inherited from

OutgoingApprovalCriteria.mustOwnTokens


mustPrioritize?

optional mustPrioritize?: boolean

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:322

If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.

Implementation of

iOutgoingApprovalCriteriaWithDetails.mustPrioritize

Inherited from

OutgoingApprovalCriteria.mustPrioritize


predeterminedBalances?

optional predeterminedBalances?: PredeterminedBalances<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:309

The predetermined balances for each transfer. These allow approvals to use predetermined balance amounts rather than an incrementing tally system.

Implementation of

iOutgoingApprovalCriteriaWithDetails.predeterminedBalances

Inherited from

OutgoingApprovalCriteria.predeterminedBalances


recipientChecks?

optional recipientChecks?: AddressChecks

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:319

Address checks for recipient

Implementation of

iOutgoingApprovalCriteriaWithDetails.recipientChecks

Inherited from

OutgoingApprovalCriteria.recipientChecks


requireToDoesNotEqualInitiatedBy?

optional requireToDoesNotEqualInitiatedBy?: boolean

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:315

Whether the to address must not equal the initiatedBy address.

Implementation of

iOutgoingApprovalCriteriaWithDetails.requireToDoesNotEqualInitiatedBy

Inherited from

OutgoingApprovalCriteria.requireToDoesNotEqualInitiatedBy


requireToEqualsInitiatedBy?

optional requireToEqualsInitiatedBy?: boolean

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:314

Whether the to address must equal the initiatedBy address.

Implementation of

iOutgoingApprovalCriteriaWithDetails.requireToEqualsInitiatedBy

Inherited from

OutgoingApprovalCriteria.requireToEqualsInitiatedBy


votingChallenges?

optional votingChallenges?: VotingChallenge<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:323

The list of voting challenges that must be satisfied for approval.

Implementation of

iOutgoingApprovalCriteriaWithDetails.votingChallenges

Inherited from

OutgoingApprovalCriteria.votingChallenges

Methods

castToCollectionApprovalCriteria()

castToCollectionApprovalCriteria(): ApprovalCriteriaWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2230

Returns

ApprovalCriteriaWithDetails<T>

Overrides

OutgoingApprovalCriteria.castToCollectionApprovalCriteria


clone()

clone(): OutgoingApprovalCriteriaWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2226

Deep copies the object and returns a new instance.

Returns

OutgoingApprovalCriteriaWithDetails<T>

Overrides

OutgoingApprovalCriteria.clone


convert()

convert<U>(convertFunction, options?): OutgoingApprovalCriteriaWithDetails<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2222

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

OutgoingApprovalCriteriaWithDetails<U>

Overrides

OutgoingApprovalCriteria.convert


equals()

equals<U>(other, normalizeNumberTypes?): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147

Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

Type Parameters

U

U extends CustomType<U>

Parameters

other

CustomType<U> | null | undefined

normalizeNumberTypes?

boolean

Returns

boolean

Inherited from

OutgoingApprovalCriteria.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:157

Internal helper method to convert the number fields of the object to a different NumberType equivalent.

Returns

string[]

Inherited from

OutgoingApprovalCriteria.getNumberFieldNames


hasNumberFields()

hasNumberFields(): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161

Checks if the object has number fields.

Returns

boolean

Inherited from

OutgoingApprovalCriteria.hasNumberFields


toBech32Addresses()

toBech32Addresses(prefix): OutgoingApprovalCriteria<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:447

Parameters

prefix

string

Returns

OutgoingApprovalCriteria<T>

Inherited from

OutgoingApprovalCriteria.toBech32Addresses


toJson()

toJson(): JsonObject

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139

Converts the object to a JSON object with all primitive types.

Returns

JsonObject

Inherited from

OutgoingApprovalCriteria.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143

Converts the object to a JSON string.

Returns

string

Inherited from

OutgoingApprovalCriteria.toJsonString


toProto()

toProto(): OutgoingApprovalCriteria

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:369

Returns

OutgoingApprovalCriteria

Inherited from

OutgoingApprovalCriteria.toProto


fromJson()

static fromJson<U>(jsonValue, convertFunction, options?): OutgoingApprovalCriteria<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:377

Type Parameters

U

U extends NumberType

Parameters

jsonValue

JsonValue

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

OutgoingApprovalCriteria<U>

Inherited from

OutgoingApprovalCriteria.fromJson


fromJsonString()

static fromJsonString<U>(jsonString, convertFunction, options?): OutgoingApprovalCriteria<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:385

Type Parameters

U

U extends NumberType

Parameters

jsonString

string

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

OutgoingApprovalCriteria<U>

Inherited from

OutgoingApprovalCriteria.fromJsonString


fromProto()

static fromProto<U>(item, convertFunction): OutgoingApprovalCriteria<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:393

Type Parameters

U

U extends NumberType

Parameters

item

OutgoingApprovalCriteria

convertFunction

(item) => U

Returns

OutgoingApprovalCriteria<U>

Inherited from

OutgoingApprovalCriteria.fromProto

Edit this page on GitHub