Skip to content

Generated schema for tokenization/predetermined_balances.proto: 5 messages in the x/tokenization module.

Proto package tokenization, part of the x/tokenization module. It declares 5 messages. Read the raw source.

Messages

IncrementedBalances

IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.

Field#TypeRuleDescription
startBalances1Balancerepeated
incrementTokenIdsBy2stringsingularThe amount by which to increment token IDs.
incrementOwnershipTimesBy3stringsingularThe amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.
durationFromTimestamp4stringsingularThe amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.
allowOverrideTimestamp5boolsingularWhether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).
recurringOwnershipTimes6RecurringOwnershipTimessingularRecurring ownership times.
allowOverrideWithAnyValidToken7boolsingularAllow override of any valid ID
allowAmountScaling8boolsingularWhen true, the actual transfer can be any evenly divisible integer multiple (>=1x) of startBalances. approvalCriteria.coinTransfers are scaled by the same multiplier. All other IncrementedBalances fields must be zero/false/nil when this is true.
maxScalingMultiplier9stringsingularMaximum allowed scaling multiplier. Must be > 0 when allowAmountScaling is true. The chain rejects transfers where the computed multiplier exceeds this cap. Ignored (set to "0") when allowAmountScaling is false.

ManualBalances

ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.

Field#TypeRuleDescription
balances1Balancerepeated

PredeterminedBalances

PredeterminedBalances represents balances with predetermined order calculation.

Field#TypeRuleDescription
manualBalances1ManualBalancesrepeatedManual balances that can be entered. If this is nil, then we use the incremented balances.
incrementedBalances2IncrementedBalancessingularBalances that have a starting amount and increment. If this is nil, then we use the manual balances.
orderCalculationMethod3PredeterminedOrderCalculationMethodsingularThe method to calculate the order of predetermined balances.

PredeterminedOrderCalculationMethod

PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.

Field#TypeRuleDescription
useOverallNumTransfers1boolsingularUse the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.
usePerToAddressNumTransfers2boolsingularUse the number of transfers per "to" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.
usePerFromAddressNumTransfers3boolsingularUse the number of transfers per "from" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.
usePerInitiatedByAddressNumTransfers4boolsingularUse the number of transfers per "initiated by" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.
useMerkleChallengeLeafIndex5boolsingularUse the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.
challengeTrackerId6stringsingularIf useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.

RecurringOwnershipTimes

RecurringOwnershipTimes represents a list of recurring ownership times.

Field#TypeRuleDescription
startTime1stringsingularThe original start time of the first interval.
intervalLength2stringsingularThe interval length in unix milliseconds.
chargePeriodLength3stringsingularGrace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period

Edit this page on GitHub