ApprovalCriteria defines the criteria for approving transfers.

from message badges.ApprovalCriteria

Hierarchy

Constructors

Properties

approvalAmounts?: proto.badges.ApprovalAmounts

Threshold limit of amounts that can be transferred using this approval.

from field: badges.ApprovalAmounts approvalAmounts = 4;

coinTransfers: proto.badges.CoinTransfer[] = []

The sdk.Coins that need to be transferred for approval.

from field: repeated badges.CoinTransfer coinTransfers = 7;

maxNumTransfers?: proto.badges.MaxNumTransfers

Maximum number of transfers that can be processed using this approval.

from field: badges.MaxNumTransfers maxNumTransfers = 5;

merkleChallenges: proto.badges.MerkleChallenge[] = []

Merkle challenge that must be satisfied for approval.

from field: repeated badges.MerkleChallenge merkleChallenges = 2;

mustOwnBadges: proto.badges.MustOwnBadges[] = []

List of badges that the user must own for approval.

from field: repeated badges.MustOwnBadges mustOwnBadges = 1;

overridesFromOutgoingApprovals: boolean = false

Overrides the user's outgoing approvals for approval.

from field: bool overridesFromOutgoingApprovals = 13;

overridesToIncomingApprovals: boolean = false

Overrides the user's incoming approvals for approval.

from field: bool overridesToIncomingApprovals = 14;

predeterminedBalances?: proto.badges.PredeterminedBalances

Predetermined balances for eeach approval.

from field: badges.PredeterminedBalances predeterminedBalances = 3;

requireFromDoesNotEqualInitiatedBy: boolean = false

Require the "from" address to not be equal to the "initiated by" address for approval.

from field: bool requireFromDoesNotEqualInitiatedBy = 12;

requireFromEqualsInitiatedBy: boolean = false

Require the "from" address to be equal to the "initiated by" address for approval.

from field: bool requireFromEqualsInitiatedBy = 10;

requireToDoesNotEqualInitiatedBy: boolean = false

Require the "to" address to not be equal to the "initiated by" address for approval.

from field: bool requireToDoesNotEqualInitiatedBy = 11;

requireToEqualsInitiatedBy: boolean = false

Require the "to" address to be equal to the "initiated by" address for approval.

from field: bool requireToEqualsInitiatedBy = 9;

zkProofs: proto.badges.ZkProof[] = []

The ZKPs that need to be solved for approval.

from field: repeated badges.ZkProof zkProofs = 6;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "badges.ApprovalCriteria" = "badges.ApprovalCriteria"

Methods